Remove VEC_LSHIFT_EXPR and vec_shl_optab
[official-gcc.git] / gcc / ChangeLog
blob536a0007dc03a03f9ca42a3a1e89cfc9c768683f
1 2014-10-28  Alan Lawrence  <alan.lawrence@arm.com>
3         * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
4         * fold-const.c (const_binop): Likewise.
5         * cfgexpand.c (expand_debug_expr): Likewise.
6         * tree-inline.c (estimate_operator_cost): Likewise.
7         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8         * optabs.c (optab_for_tree_code): Likewise.
9         (expand_vec_shift_expr): Likewise, update comment.
10         * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
11         * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
12         * optabs.def: Remove vec_shl_optab.
13         * doc/md.texi: Remove references to vec_shr_m.
15 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
17         * asan.c (report_error_func): Add noabort path.
18         (check_func): Ditto.  Formatting.
19         (asan_expand_check_ifn): Handle noabort path.
20         * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
21         to default value.
22         * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
23         * opts.c (finish_options): Reword comment.
24         * sanitizer.def: Add noabort ASan builtins.
26 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
28         * asan.c (set_asan_shadow_offset): New function.
29         (asan_shadow_offset): Likewise.
30         (asan_emit_stack_protection): Call asan_shadow_offset.
31         (build_shadow_mem_access): Likewise.
32         * asan.h (set_asan_shadow_offset): Declare.
33         * common.opt (fasan-shadow-offset): New option.
34         (frandom-seed): Fixed parameter name.
35         * doc/invoke.texi (fasan-shadow-offset): Describe new option.
36         (frandom-seed): Fixed parameter name.
37         * opts-global.c (handle_common_deferred_options): Handle
38         -fasan-shadow-offset.
39         * opts.c (common_handle_option): Likewise.
41 2014-10-27  Jiong Wang <jiong.wang@arm.com>
43         PR target/63442
44         * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
46 2014-10-27  DJ Delorie  <dj@redhat.com>
48         * tree.c (build_common_tree_nodes): Don't even store the
49         __int128 types if they're not supported.
51 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
53         * config/i386/i386.c (ix86_loop_memcount): Delete.
54         (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
56 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
58         * config/i386/i386.c (find_constant_1): Delete.
59         (find_constant): Use FOR_EACH_SUBRTX.
61 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
63         * config/i386/i386.c (extended_reg_mentioned_1): Delete.
64         (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
66 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
68         * config/i386/i386.c: Include rtl-iter.h
69         (ix86_check_avx256_register): Take a const_rtx and return a bool.
70         (ix86_check_avx256_stores): Update call accordingly.
71         (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
72         (ix86_avx_u128_mode_needed): Likewise.  Use FOR_EACH_SUBRTX.
74 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
76         * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
77         Take an rtx and return a bool.
78         * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
79         Use FOR_EACH_SUBRTX_VAR.
80         * config/alpha/predicates.md (some_small_symbolic_operand): Update
81         accordingly.
83 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
85         * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
86         a bool.
87         * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
88         (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX.  Return a bool.
90 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
92         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
93         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
95 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
97         * config/alpha/alpha.c: Include rtl-iter.h.
98         (split_small_symbolic_operand_1): Delete.
99         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
101 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
103         * config/s390/s390.c: Include rtl-iter.h.
104         (check_dpu): Delete.
105         (s390_loop_unroll_adjust): Only iterate over patterns.
106         Use FOR_EACH_SUBRTX.
108 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
110         * config/spu/spu.c: Include rtl-iter.h
111         (ea_symbol_ref): Replace with...
112         (ea_symbol_ref_p): ...this new function.
113         (spu_legitimate_address_p): Update call accordingly.
114         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
116 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
117             Tom Tromey  <tromey@redhat.com>
119         * aclocal.m4, configure: Rebuild.
120         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
121         * configure.ac: Use GCC_ENABLE_PLUGINS.
122         * stor-layout.c (finish_bitfield_layout): Now public.  Change
123         argument type to 'tree'.
124         (finish_record_layout): Update.
125         * stor-layout.h (finish_bitfield_layout): Declare.
127 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
129         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
130         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
131         Restore, enable for bigendian, update to use __builtin..._scal...
133 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
135         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
136         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
137         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
138         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
140         * config/aarch64/aarch64-simd.md
141         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
142         (reduc_<maxmin_uns>_internal<mode>): ...this.
143         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
144         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
146         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
147         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
148         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
150         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
151         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
152         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
153         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
154         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
155         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
156         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
157         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
159 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
161         * config/aarch64/aarch64-simd-builtins.def
162         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
163         Remove.
164         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
166         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
167         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
169         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
170         (aarch64_reduc_plus_internal<mode>): ...this.
172         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
173         (aarch64_reduc_plus_internalv2si): ...this.
175         (reduc_splus_<mode>/V2F): Rename to...
176         (aarch64_reduc_plus_internal<mode>): ...this.
178         * config/aarch64/iterators.md
179         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
180         (UNSPEC_ADDV): New.
181         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
183         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
184         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
185         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
186         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
187         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
189 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
191         PR tree-optimization/61114
192         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
193         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
195         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
196         back to old reduc_... + BIT_FIELD_REF only if not.
198         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
199         return the reduce-to-scalar (reduc_..._scal) optab.
200         (scalar_reduc_to_vector): New.
202         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
203         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
204         New.
206         * optabs.h (scalar_reduc_to_vector): Declare.
208         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
209         to either scalar or vector.
211 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
213         PR tree-optimization/61114
214         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
215         extract_bit_field around optab result.
217         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
218         scalar not vector.
220         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
221         for REDUC_{MIN,MAX,PLUS}_EXPR.
223         * tree-vect-loop.c (vect_analyze_loop): Update comment.
224         (vect_create_epilog_for_reduction): For direct vector reduction, use
225         result of tree code directly without extract_bit_field.
227         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
228         comment.
230 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
232         * basic-block.h: Remove all includes.
233         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
234         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
235         * Makefile.in (GTFILES): Add cfg.h to list.
236         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
237         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
238         * genconditions.c (write_header): Add predict.h and basic-block.h to
239         lits of includes.
240         * genemit.c (main): Ditto.
241         * genpreds.c (write_insn_preds_c): Ditto.
242         * genrecog.c (write_header): Ditto.
243         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
244         to list of includes.
245         * alias.c: Adjust include files.
246         * asan.c: Ditto.
247         * auto-inc-dec.c: Ditto.
248         * auto-profile.c: Ditto.
249         * bb-reorder.c: Ditto.
250         * bt-load.c: Ditto.
251         * builtins.c: Ditto.
252         * caller-save.c: Ditto.
253         * calls.c: Ditto.
254         * cfg.c: Ditto.
255         * cfganal.c: Ditto.
256         * cfgbuild.c: Ditto.
257         * cfgcleanup.c: Ditto.
258         * cfgexpand.c: Ditto.
259         * cfghooks.c: Ditto.
260         * cfgloop.c: Ditto.
261         * cfgloopanal.c: Ditto.
262         * cfgloopmanip.c: Ditto.
263         * cfgrtl.c: Ditto.
264         * cgraphbuild.c: Ditto.
265         * cgraphclones.c: Ditto.
266         * cgraphunit.c: Ditto.
267         * combine-stack-adj.c: Ditto.
268         * combine.c: Ditto.
269         * compare-elim.c: Ditto.
270         * coverage.c: Ditto.
271         * cprop.c: Ditto.
272         * cse.c: Ditto.
273         * cselib.c: Ditto.
274         * data-streamer-in.c: Ditto.
275         * data-streamer-out.c: Ditto.
276         * data-streamer.c: Ditto.
277         * dce.c: Ditto.
278         * ddg.c: Ditto.
279         * ddg.h: Ditto.
280         * df-core.c: Ditto.
281         * df-problems.c: Ditto.
282         * df-scan.c: Ditto.
283         * df.h: Ditto.
284         * dojump.c: Ditto.
285         * dominance.c: Ditto.
286         * domwalk.c: Ditto.
287         * dse.c: Ditto.
288         * dwarf2cfi.c: Ditto.
289         * emit-rtl.c: Ditto.
290         * et-forest.c: Ditto.
291         * except.c: Ditto.
292         * expmed.c: Ditto.
293         * expr.c: Ditto.
294         * final.c: Ditto.
295         * fold-const.c: Ditto.
296         * function.c: Ditto.
297         * fwprop.c: Ditto.
298         * gcc-plugin.h: Ditto.
299         * gcse.c: Ditto.
300         * generic-match-head.c: Ditto.
301         * ggc-page.c: Ditto.
302         * gimple-builder.c: Ditto.
303         * gimple-expr.c: Ditto.
304         * gimple-fold.c: Ditto.
305         * gimple-iterator.c: Ditto.
306         * gimple-low.c: Ditto.
307         * gimple-match-head.c: Ditto.
308         * gimple-pretty-print.c: Ditto.
309         * gimple-ssa-isolate-paths.c: Ditto.
310         * gimple-ssa-strength-reduction.c: Ditto.
311         * gimple-streamer-in.c: Ditto.
312         * gimple-streamer-out.c: Ditto.
313         * gimple-streamer.h: Ditto.
314         * gimple-walk.c: Ditto.
315         * gimple.c: Ditto.
316         * gimplify-me.c: Ditto.
317         * gimplify.c: Ditto.
318         * graph.c: Ditto.
319         * graphite-blocking.c: Ditto.
320         * graphite-clast-to-gimple.c: Ditto.
321         * graphite-dependences.c: Ditto.
322         * graphite-interchange.c: Ditto.
323         * graphite-isl-ast-to-gimple.c: Ditto.
324         * graphite-optimize-isl.c: Ditto.
325         * graphite-poly.c: Ditto.
326         * graphite-scop-detection.c: Ditto.
327         * graphite-sese-to-poly.c: Ditto.
328         * graphite.c: Ditto.
329         * haifa-sched.c: Ditto.
330         * hw-doloop.c: Ditto.
331         * ifcvt.c: Ditto.
332         * init-regs.c: Ditto.
333         * internal-fn.c: Ditto.
334         * ipa-cp.c: Ditto.
335         * ipa-devirt.c: Ditto.
336         * ipa-icf-gimple.c: Ditto.
337         * ipa-icf.c: Ditto.
338         * ipa-inline-analysis.c: Ditto.
339         * ipa-inline.c: Ditto.
340         * ipa-polymorphic-call.c: Ditto.
341         * ipa-profile.c: Ditto.
342         * ipa-prop.c: Ditto.
343         * ipa-pure-const.c: Ditto.
344         * ipa-reference.c: Ditto.
345         * ipa-split.c: Ditto.
346         * ipa-utils.c: Ditto.
347         * ipa.c: Ditto.
348         * ira-build.c: Ditto.
349         * ira-color.c: Ditto.
350         * ira-conflicts.c: Ditto.
351         * ira-costs.c: Ditto.
352         * ira-emit.c: Ditto.
353         * ira-lives.c: Ditto.
354         * ira.c: Ditto.
355         * jump.c: Ditto.
356         * lcm.c: Ditto.
357         * loop-doloop.c: Ditto.
358         * loop-init.c: Ditto.
359         * loop-invariant.c: Ditto.
360         * loop-iv.c: Ditto.
361         * loop-unroll.c: Ditto.
362         * lower-subreg.c: Ditto.
363         * lra-assigns.c: Ditto.
364         * lra-coalesce.c: Ditto.
365         * lra-constraints.c: Ditto.
366         * lra-eliminations.c: Ditto.
367         * lra-lives.c: Ditto.
368         * lra-spills.c: Ditto.
369         * lra.c: Ditto.
370         * lto-cgraph.c: Ditto.
371         * lto-compress.c: Ditto.
372         * lto-opts.c: Ditto.
373         * lto-section-in.c: Ditto.
374         * lto-section-out.c: Ditto.
375         * lto-streamer-in.c: Ditto.
376         * lto-streamer-out.c: Ditto.
377         * lto-streamer.c: Ditto.
378         * mcf.c: Ditto.
379         * mode-switching.c: Ditto.
380         * modulo-sched.c: Ditto.
381         * omp-low.c: Ditto.
382         * optabs.c: Ditto.
383         * opts-global.c: Ditto.
384         * passes.c: Ditto.
385         * postreload-gcse.c: Ditto.
386         * postreload.c: Ditto.
387         * predict.c: Ditto.
388         * print-rtl.c: Ditto.
389         * profile.c: Ditto.
390         * recog.c: Ditto.
391         * ree.c: Ditto.
392         * reg-stack.c: Ditto.
393         * regcprop.c: Ditto.
394         * regcprop.h: Ditto.
395         * reginfo.c: Ditto.
396         * regrename.c: Ditto.
397         * regstat.c: Ditto.
398         * reload.c: Ditto.
399         * reload1.c: Ditto.
400         * reorg.c: Ditto.
401         * resource.c: Ditto.
402         * rtlanal.c: Ditto.
403         * sched-deps.c: Ditto.
404         * sched-ebb.c: Ditto.
405         * sched-int.h: Ditto.
406         * sched-rgn.c: Ditto.
407         * sched-vis.c: Ditto.
408         * sel-sched-dump.c: Ditto.
409         * sel-sched-ir.c: Ditto.
410         * sel-sched-ir.h: Ditto.
411         * sel-sched.c: Ditto.
412         * sese.c: Ditto.
413         * shrink-wrap.c: Ditto.
414         * stack-ptr-mod.c: Ditto.
415         * stmt.c: Ditto.
416         * store-motion.c: Ditto.
417         * symtab.c: Ditto.
418         * toplev.c: Ditto.
419         * tracer.c: Ditto.
420         * trans-mem.c: Ditto.
421         * tree-affine.c: Ditto.
422         * tree-call-cdce.c: Ditto.
423         * tree-cfg.c: Ditto.
424         * tree-cfgcleanup.c: Ditto.
425         * tree-chrec.c: Ditto.
426         * tree-complex.c: Ditto.
427         * tree-data-ref.c: Ditto.
428         * tree-dfa.c: Ditto.
429         * tree-eh.c: Ditto.
430         * tree-emutls.c: Ditto.
431         * tree-if-conv.c: Ditto.
432         * tree-inline.c: Ditto.
433         * tree-into-ssa.c: Ditto.
434         * tree-loop-distribution.c: Ditto.
435         * tree-nested.c: Ditto.
436         * tree-nrv.c: Ditto.
437         * tree-object-size.c: Ditto.
438         * tree-outof-ssa.c: Ditto.
439         * tree-parloops.c: Ditto.
440         * tree-phinodes.c: Ditto.
441         * tree-predcom.c: Ditto.
442         * tree-pretty-print.c: Ditto.
443         * tree-profile.c: Ditto.
444         * tree-scalar-evolution.c: Ditto.
445         * tree-sra.c: Ditto.
446         * tree-ssa-address.c: Ditto.
447         * tree-ssa-alias.c: Ditto.
448         * tree-ssa-ccp.c: Ditto.
449         * tree-ssa-coalesce.c: Ditto.
450         * tree-ssa-copy.c: Ditto.
451         * tree-ssa-copyrename.c: Ditto.
452         * tree-ssa-dce.c: Ditto.
453         * tree-ssa-dom.c: Ditto.
454         * tree-ssa-dse.c: Ditto.
455         * tree-ssa-forwprop.c: Ditto.
456         * tree-ssa-ifcombine.c: Ditto.
457         * tree-ssa-live.c: Ditto.
458         * tree-ssa-loop-ch.c: Ditto.
459         * tree-ssa-loop-im.c: Ditto.
460         * tree-ssa-loop-ivcanon.c: Ditto.
461         * tree-ssa-loop-ivopts.c: Ditto.
462         * tree-ssa-loop-manip.c: Ditto.
463         * tree-ssa-loop-niter.c: Ditto.
464         * tree-ssa-loop-prefetch.c: Ditto.
465         * tree-ssa-loop-unswitch.c: Ditto.
466         * tree-ssa-loop.c: Ditto.
467         * tree-ssa-math-opts.c: Ditto.
468         * tree-ssa-operands.c: Ditto.
469         * tree-ssa-phiopt.c: Ditto.
470         * tree-ssa-phiprop.c: Ditto.
471         * tree-ssa-pre.c: Ditto.
472         * tree-ssa-propagate.c: Ditto.
473         * tree-ssa-reassoc.c: Ditto.
474         * tree-ssa-sccvn.c: Ditto.
475         * tree-ssa-sink.c: Ditto.
476         * tree-ssa-strlen.c: Ditto.
477         * tree-ssa-structalias.c: Ditto.
478         * tree-ssa-tail-merge.c: Ditto.
479         * tree-ssa-ter.c: Ditto.
480         * tree-ssa-threadedge.c: Ditto.
481         * tree-ssa-threadupdate.c: Ditto.
482         * tree-ssa-uncprop.c: Ditto.
483         * tree-ssa-uninit.c: Ditto.
484         * tree-ssa.c: Ditto.
485         * tree-ssanames.c: Ditto.
486         * tree-stdarg.c: Ditto.
487         * tree-streamer-in.c: Ditto.
488         * tree-streamer-out.c: Ditto.
489         * tree-streamer.c: Ditto.
490         * tree-switch-conversion.c: Ditto.
491         * tree-tailcall.c: Ditto.
492         * tree-vect-data-refs.c: Ditto.
493         * tree-vect-generic.c: Ditto.
494         * tree-vect-loop-manip.c: Ditto.
495         * tree-vect-loop.c: Ditto.
496         * tree-vect-patterns.c: Ditto.
497         * tree-vect-slp.c: Ditto.
498         * tree-vect-stmts.c: Ditto.
499         * tree-vectorizer.c: Ditto.
500         * tree-vrp.c: Ditto.
501         * tree.c: Ditto.
502         * tsan.c: Ditto.
503         * ubsan.c: Ditto.
504         * valtrack.c: Ditto.
505         * valtrack.h: Ditto.
506         * value-prof.c: Ditto.
507         * var-tracking.c: Ditto.
508         * varasm.c: Ditto.
509         * varpool.c: Ditto.
510         * vtable-verify.c: Ditto.
511         * web.c: Ditto.
512         * config/aarch64/aarch64-builtins.c: Ditto.
513         * config/aarch64/aarch64.c: Ditto.
514         * config/alpha/alpha.c: Ditto.
515         * config/arc/arc.c: Ditto.
516         * config/arm/arm.c: Ditto.
517         * config/avr/avr.c: Ditto.
518         * config/bfin/bfin.c: Ditto.
519         * config/c6x/c6x.c: Ditto.
520         * config/cr16/cr16.c: Ditto.
521         * config/cris/cris.c: Ditto.
522         * config/darwin-c.c: Ditto.
523         * config/darwin.c: Ditto.
524         * config/epiphany/epiphany.c: Ditto.
525         * config/epiphany/mode-switch-use.c: Ditto.
526         * config/epiphany/resolve-sw-modes.c: Ditto.
527         * config/fr30/fr30.c: Ditto.
528         * config/frv/frv.c: Ditto.
529         * config/h8300/h8300.c: Ditto.
530         * config/i386/i386.c: Ditto.
531         * config/i386/winnt.c: Ditto.
532         * config/ia64/ia64.c: Ditto.
533         * config/iq2000/iq2000.c: Ditto.
534         * config/lm32/lm32.c: Ditto.
535         * config/m32c/m32c.c: Ditto.
536         * config/m32r/m32r.c: Ditto.
537         * config/m68k/m68k.c: Ditto.
538         * config/mcore/mcore.c: Ditto.
539         * config/mep/mep.c: Ditto.
540         * config/microblaze/microblaze.c: Ditto.
541         * config/mips/mips.c: Ditto.
542         * config/mmix/mmix.c: Ditto.
543         * config/mn10300/mn10300.c: Ditto.
544         * config/moxie/moxie.c: Ditto.
545         * config/msp430/msp430.c: Ditto.
546         * config/nds32/nds32-cost.c: Ditto.
547         * config/nds32/nds32-fp-as-gp.c: Ditto.
548         * config/nds32/nds32-intrinsic.c: Ditto.
549         * config/nds32/nds32-isr.c: Ditto.
550         * config/nds32/nds32-md-auxiliary.c: Ditto.
551         * config/nds32/nds32-memory-manipulation.c: Ditto.
552         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
553         * config/nds32/nds32-predicates.c: Ditto.
554         * config/nds32/nds32.c: Ditto.
555         * config/nios2/nios2.c: Ditto.
556         * config/pa/pa.c: Ditto.
557         * config/pdp11/pdp11.c: Ditto.
558         * config/rl78/rl78.c: Ditto.
559         * config/rs6000/rs6000.c: Ditto.
560         * config/rx/rx.c: Ditto.
561         * config/s390/s390.c: Ditto.
562         * config/sh/sh-mem.cc: Ditto.
563         * config/sh/sh.c: Ditto.
564         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
565         * config/sh/sh_treg_combine.cc: Ditto.
566         * config/sparc/sparc.c: Ditto.
567         * config/spu/spu.c: Ditto.
568         * config/stormy16/stormy16.c: Ditto.
569         * config/tilegx/tilegx.c: Ditto.
570         * config/tilepro/tilepro.c: Ditto.
571         * config/v850/v850.c: Ditto.
572         * config/vax/vax.c: Ditto.
573         * config/xtensa/xtensa.c: Ditto.
575 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
577         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
578         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
579         Remove using preprocessor directives.
581 2014-10-27  Richard Biener  <rguenther@suse.de>
583         * match.pd (0 % X): Properly use the iterator iterating over
584         all modulo operators.
585         (X % 1): Likewise.
587 2014-10-27  Richard Biener  <rguenther@suse.de>
589         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
590         (lattice): New global.
591         (fwprop_ssa_val): New function.
592         (fold_all_stmts): Likewise.
593         (pass_forwprop::execute): Finally fold all stmts.
595 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
597         PR c++/53061
598         * doc/invoke.texi (fmessage-length): Update text to match reality.
600 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
602         * config/microblaze/microblaze.c: Include rtl-iter.h.
603         (microblaze_tls_referenced_p_1): Delete.
604         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
606 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
608         * config/mips/mips.c (mips_at_reg_p): Delete.
609         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
611 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
613         * config/mips/mips.c (mips_record_lo_sum): Replace with...
614         (mips_record_lo_sums): ...this new function.
615         (mips_reorg_process_insns): Update accordingly.
617 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
619         * config/mips/mips.c (mips_sim_insn): Update comment.
620         (mips_sim_wait_regs_2): Delete.
621         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
623 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
625         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
626         and return a bool.  Iterate over all subrtxes here.
627         (r10k_needs_protection_p): Update accordingly.
629 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
631         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
632         rather than an rtx pointer.  Change type of insn from "void *"
633         to its real type.  Return bool rather than int.  Iterate over
634         all subrtxes here.
635         (r10k_needs_protection_p_store): Update accordingly.
636         (r10k_needs_protection_p): Likewise.
638 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
640         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
641         (mips16_rewrite_pool_refs): Take the insn and constant pool as
642         parameters.  Iterate over the instruction's pattern and return void.
643         (mips16_lay_out_constants): Update accordingly.
645 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
647         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
648         (mips_refers_to_kernel_reg_p): ...this new function.
649         (mips_expand_prologue): Update accordingly.
651 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
653         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
654         as a parameter instead of the containing MEM.  Iterate over all
655         subrtxes.  Don't return a value.
656         (mips_rewrite_small_data): Update call accordingly.
658 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
660         * config/mips/mips.c: Include rtl-iter.h.
661         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
662         Take the context as a parameter instead of the containing MEM.
663         Iterate over all subrtxes.
664         (mips_small_data_pattern_p): Update call accordingly.
666 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
668         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
669         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
671 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
673         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
674         return a bool.  Replace "void *" with specific type.  Iterate
675         over all subrtxes.
676         (mep_store_data_bypass_1): Update calls accordingly.
678 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
680         * config/mep/mep.c: Include rtl-iter.h.
681         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
682         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
684 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
686         * config/xtensa/xtensa.c: Include rtl-iter.h.
687         (xtensa_tls_referenced_p_1): Delete.
688         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
690 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
692         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
693         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
695 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
697         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
698         rtx as argument and return the number of changes.
699         * config/sh/sh.c: Include rtl-iter.h.
700         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
701         over all subrtxes.  Return the number of changes made.
702         * config/sh/sh.md: Update caller accordingly.
704 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
706         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
707         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
709 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
711         * config/m68k/m68k.c: Include rtl-iter.h.
712         (m68k_final_prescan_insn_1): Delete.
713         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
715 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
717         PR tree-optimization/63641
718         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
719         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
721 2014-10-25  Alan Modra  <amodra@gmail.com>
723         PR rtl-optimization/63615
724         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
725         decomposing PLUS or MINUS if operands are not placed adjacent
726         in the "ops" array.
728 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
730         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
731         not allow e500 double in registers not satisyfing
732         SPE_SIMD_REGNO_P.
734 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
736         * dwarf2out.c (declare_in_namespace): Only emit external
737         declarations in the local scope once.
739 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
741         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
743 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
745         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
746         update uses to use new macro arguments.
747         (__LD3_LANE_FUNC): Likewise.
748         (__LD4_LANE_FUNC): Likewise.
750 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
752         * config/aarch64/aarch64-builtins.c
753         (aarch64_types_loadstruct_lane_qualifiers): Define.
754         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
755         ld4_lane): New builtins.
756         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
757         New pattern.
758         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
759         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
760         (aarch64_ld2_lane<mode>): New expand.
761         (aarch64_ld3_lane<mode>): Likewise.
762         (aarch64_ld4_lane<mode>): Likewise.
763         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
764         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
766 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
768         * avr-protos.h (avr_out_sign_extend): New.
769         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
770         (avr_out_sign_extend): New function.
771         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
772         (extendhisi2, extendpsisi2): Use it.
773         (adjust_len) [sext]: New.
775 2014-10-24  Martin Liska  <mliska@suse.cz>
777         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
778         added.
780 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
782         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
783         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
784         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
785         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
787 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
789         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
790         do while (0).
791         * config/aarch64/aarch64.c (is_mem_p): Delete.
792         (is_memory_op): Rename to...
793         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
794         (dep_between_memop_and_curr): Assert that the input is a SET.
795         (aarch64_madd_needs_nop): Add comment.  Do not call
796         dep_between_memop_and_curr on NULL body.
797         (aarch64_final_prescan_insn): Add comment.
798         Include rtl-iter.h.
800 2014-10-24  Richard Biener  <rguenther@suse.de>
802         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
803         to genmatch BUILD_LIBS instead.
805 2014-10-24  Richard Biener  <rguenther@suse.de>
807         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
808         and build_call_expr_loc.
809         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
810         non_lvalue_loc to build it for GENERIC.
811         (decision_tree::gen_generic): Add location argument to
812         generic_simplify prototype.
813         (capture_info): New class.
814         (capture_info::capture_info): New constructor.
815         (capture_info::walk_match): New method.
816         (capture_info::walk_result): New method.
817         (capture_info::walk_c_expr): New method.
818         (dt_simplify::gen): Handle preserving side-effects for
819         GENERIC code generation.
820         (decision_tree::gen_generic): Do not reject operands
821         with TREE_SIDE_EFFECTS.
822         * generic-match.h: New file.
823         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
824         * match.pd: Add some constant folding patterns from fold-const.c.
825         * fold-const.c: Include generic-match.h.
826         (fold_unary_loc): Dispatch to generic_simplify.
827         (fold_ternary_loc): Likewise.
828         (fold_binary_loc): Likewise.  Remove patterns now implemented
829         by generic_simplify.
830         * gimple-fold.c (replace_stmt_with_simplification): New function.
831         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
832         (no_follow_ssa_edges): New function.
833         (fold_stmt): New overload with valueization hook.  Use
834         no_follow_ssa_edges for the overload without hook.
835         (fold_stmt_inplace): Likewise.
836         * gimple-fold.h (no_follow_ssa_edges): Declare.
838 2014-10-24  Felix Yang  <felix.yang@huawei.com>
839         Jiji Jiang  <jiangjiji@huawei.com>
841         PR target/63173
842         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
843         (__LD3R_FUNC): Ditto.
844         (__LD4R_FUNC): Ditto.
845         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
846          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
847          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
848          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
849          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
850          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
851         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
852          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
853          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
854          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
855          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
856          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
857         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
858          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
859          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
860          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
861          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
862          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
863         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
864         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
865         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
866         builtins.
867         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
868         (aarch64_simd_ld3r<mode>): Likewise.
869         (aarch64_simd_ld4r<mode>): Likewise.
870         (aarch64_ld2r<mode>): New expand.
871         (aarch64_ld3r<mode>): Likewise.
872         (aarch64_ld4r<mode>): Likewise.
874 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
876         * rtlanal.c (get_base_term): Handle SCRATCH.
878 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
880         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
881         register pressure.
883 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
885         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
886         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
887         (max_issue, choose_ready, sched_init): Update.
889 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
891         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
892         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
893         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
894         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
895         (print_rank_for_schedule_stats): Print out elements of ready list that
896         ended up on their respective places due to each of the sorting
897         heuristics.
898         (ready_sort): Update.
899         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
900         (schedule_block): Update.
902 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
904         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
905         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
906         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
907         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
908         (model_start_schedule): Update.
909         (sched_pressure_start_bb): New static function.  Calculate
910         sched_class_regs_num.
911         (schedule_block): Use it.
912         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
914 2014-10-24  Richard Biener  <rguenther@suse.de>
916         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
917         host library and make sure to pull in the required libintl
918         and libiconv dependencies.
920 2014-10-24  Richard Biener  <rguenther@suse.de>
922         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
924 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
926         PR bootstrap/63632
927         * collect2.c (main): Filter out -fno-lto.
929 2014-10-24  Martin Liska  <mliska@suse.cz>
931         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
932         division by zero in dumps.
933         (sem_item_optimizer::merge_classes): Ditto.
935 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
937         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
939 2014-10-23  Ian Lance Taylor  <iant@google.com>
941         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
943 2014-10-23  Ian Lance Taylor  <iant@google.com>
945         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
947 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
949         PR debug/63623
950         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
951         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
952         instead of only handling autoinc in dest if it is a MEM.
953         (vt_stack_adjustments): Fix up formatting.
955 2014-10-23  DJ Delorie  <dj@redhat.com>
957         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
958         independend of -mlarge.
959         * config/msp430/constraints.md (Ys): Update comment.
961 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
963         PR target/63534
964         PR target/63618
965         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
966         while it is pseudo.
967         * dse.c (deletable_insn_p): Likewise.
969 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
971         * config/avr/avr.c: Fix GNU coding rules and typos.
972         * config/avr/avr.h: Dito.
973         * config/avr/avr-c.c: Dito.
974         * config/avr/avr.md: Dito.
976 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
978         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
979         New.
980         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
981         iterator.
982         (define_expand "abs<mode>2"): Ditto.
984 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
986         * tree-core.h (tree_var_decl): Extend `function_code' field
987         by one bit, move `regdecl_flag' field to ...
988         (tree_decl_with_vis): Here.
989         * tree.h (DECL_STATIC_CHAIN): Update struct name.
991 2014-10-23  Richard Biener  <rguenther@suse.de>
993         * Makefile.in (BUILD_CPPLIB): Add.
994         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
995         Drop LIBIBERTY.
997 2014-10-23  Richard Biener  <rguenther@suse.de>
999         * fold-const.c (fold_binary_loc): Preserve side-effects of
1000         X - X when simplifying to 0.
1001         * stor-layout.c (finish_bitfield_representative): Strip
1002         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
1004 2014-10-22  Richard Biener  <rguenther@suse.de>
1005             Tobias Burnus <burnus@net-b.de>
1007         PR lto/63603
1008         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
1010 2014-10-22  Dehao Chen  <dehao@google.com>
1012         * auto-profile.c: Change order of header files.
1014 2014-10-22  Guozhi Wei  <carrot@google.com>
1016         PR tree-optimization/63530
1017         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
1018         pointer alignment according to DR_MISALIGNMENT.
1020 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
1022         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
1024 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
1026         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
1027         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
1028         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
1029         * dominance.h: New.  Add prototypes for dominance.c.
1030         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
1031         * cfghooks.h: (struct profile_record) Relocate here.
1032         Relocate 2 prototypes from basic-block.h.
1033         * basic-block.h: Move prototypes and struct to new header files.
1034         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
1035         * rtl.h: Move a few prototypes to new header files.
1036         * cfgcleanup.c (merge_memattrs): Make static.
1037         * genopinit.c (main): Add predict.h to list of includes.
1038         * predict.h: Update prototype list to match predict.c.
1039         * predict.c (maybe_hot_count_p): Export.
1040         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
1041         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
1042         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
1043         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
1044         * profile.h: Adjust prototypes.
1045         * ifcvt.h: New.  Relocate struct ce_if_block here.
1046         * ifcvt.c: Include ifcvt.h.
1047         * config/frv/frv.c: Include ifcvt.h.
1048         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
1050 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1052         * lra.c (lra): Remove call to recog_init.
1053         * config/i386/i386.md (preferred_for_speed): New attribute
1054         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
1055         "enabled".  Remove check for sched1.
1057 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1059         * recog.h (recog_data_d): Remove enabled_alternatives.
1060         * recog.c (extract_insn): Don't set it.
1061         * reload.c (find_reloads): Call get_enabled_alternatives.
1063 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1065         * recog.h (constrain_operands): Add an alternative_mask parameter.
1066         (constrain_operands_cached): Likewise.
1067         (get_preferred_alternatives): Declare new form.
1068         * recog.c (get_preferred_alternatives): New bb-taking instance.
1069         (constrain_operands): Take the set of available alternatives as
1070         a parameter.
1071         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
1072         (extract_constrain_insn_cached): Update calls to constrain_operands.
1073         * caller-save.c (reg_save_code): Likewise.
1074         * ira.c (setup_prohibited_mode_move_regs): Likewise.
1075         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1076         * ree.c (combine_reaching_defs): Likewise.
1077         * reload.c (can_reload_into): Likewise.
1078         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
1079         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
1080         (emit_insn_if_valid_for_reload): Likewise.
1081         * reorg.c (fill_slots_from_thread): Likewise.
1082         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
1083         * config/pa/pa.c (pa_can_combine_p): Likewise.
1084         * config/rl78/rl78.c (insn_ok_now): Likewise.
1085         * config/sh/sh.md (define_peephole2): Likewise.
1086         * final.c (final_scan_insn): Update call to constrain_operands_cached.
1088 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1090         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
1091         attributes.
1092         * genattr.c (main): Handle "preferred_for_size" and
1093         "preferred_for_speed" in the same way as "enabled".
1094         * recog.h (bool_attr): New enum.
1095         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
1096         (get_preferred_alternatives, check_bool_attrs): Declare.
1097         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
1098         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
1099         New functions.
1100         (get_enabled_alternatives): Use get_bool_attr_mask.
1101         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
1102         instead of recog_data.enabled_alternatives.
1103         * ira.c (ira_setup_alts): Likewise.
1104         * postreload.c (reload_cse_simplify_operands): Likewise.
1105         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1106         * ira-lives.c (preferred_alternatives): New variable.
1107         (process_bb_node_lives): Set it.
1108         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
1109         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
1110         of recog_data.enabled_alternatives.
1111         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
1112         to preferred_alternatives.
1113         * lra-constraints.c (process_alt_operands): Update accordingly.
1114         * lra.c (lra_set_insn_recog_data): Likewise.
1115         (lra_update_insn_recog_data): Assert check_bool_attrs.
1117 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1119         * recog.h (extract_constrain_insn): Declare.
1120         * recog.c (extract_constrain_insn): New function.
1121         * lra.c (check_rtl): Use it.
1122         * postreload.c (reload_cse_simplify_operands): Likewise.
1123         * reg-stack.c (check_asm_stack_operands): Likewise.
1124         (subst_asm_stack_regs): Likewise.
1125         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
1126         * regrename.c (build_def_use): Likewise.
1127         * sel-sched.c (get_reg_class): Likewise.
1128         * config/arm/arm.c (note_invalid_constants): Likewise.
1129         * config/s390/predicates.md (execute_operation): Likewise.
1131 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1132             Yury Gribov  <y.gribov@samsung.com>
1134         * common.opt (flag_sanitize_recover): New variable.
1135         (fsanitize-recover): Remove Var/Init, deprecate.
1136         (fsanitize-recover=): New option.
1137         * doc/invoke.texi (fsanitize-recover): Update docs.
1138         * opts.c (finish_options): Use opts->x_flag_sanitize
1139         instead of flag_sanitize.  Prohibit -fsanitize-recover
1140         for anything besides UBSan.  Formatting.
1141         (common_handle_option): Handle OPT_fsanitize_recover_
1142         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
1143         instead of flag_sanitize.
1144         * asan.c (pass_sanopt::execute): Fix up formatting.
1145         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
1146         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
1147         instrument_bool_enum_load, ubsan_instrument_float_cast,
1148         instrument_nonnull_arg, instrument_nonnull_return): Check
1149         bits in flag_sanitize_recover bitmask instead of
1150         flag_sanitize_recover as bool flag.
1152 2014-10-22  Jiong Wang <jiong.wang@arm.com>
1154         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
1156 2014-10-22  Renlin Li <renlin.li@arm.com>
1158         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
1159         __ARM_FEATURE_IDIV__.
1161 2014-10-22  Richard Biener  <rguenther@suse.de>
1163         * Makefile.in (s-match): Adjust dependencies to only catch
1164         match.pd.
1166 2014-10-22  Richard Biener  <rguenther@suse.de>
1167         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1169         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
1170         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
1171         (gimple-match.c): Generate by triggering s-match.
1172         (generic-match.c): Likewise.
1173         (s-match): Rule to build gimple-match.c and generic-match.c
1174         by running the genmatch generator program.
1175         (build/hash-table.o): Dependencies to build hash-table.c for the host.
1176         (build/genmatch.o): Dependencies to build genmatch.
1177         (genprog): Add match.
1178         (build/genmatch): Likewise.
1179         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
1180         * generic-match-head.c: New file.
1181         * gimple-match-head.c: Likewise.
1182         * gimple-match.h: Likewise.
1183         * genmatch.c: Likewise.
1184         * match.pd: Likewise.
1185         * builtins.h (fold_builtin_n): Export.
1186         * builtins.c (fold_builtin_n): Likewise.
1187         * gimple-fold.h (gimple_build): Declare various overloads.
1188         (gimple_simplify): Likewise.
1189         (gimple_convert): Re-implement in terms of gimple_build.
1190         * gimple-fold.c (gimple_convert): Remove.
1191         (gimple_build): New functions.
1192         * doc/match-and-simplify.texi: New file.
1193         * doc/gccint.texi: Add menu item Match and Simplify and include
1194         match-and-simplify.texi.
1196 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1198         PR target/63594
1199         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
1200         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
1201         even for just TARGET_AVX2, not only for
1202         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
1203         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
1204         otherwise build it using concatenation of 256-bit
1205         broadcast.
1206         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
1207         avx512 broadcast patterns.
1208         (vec_dup<mode>): Likewise.  For avx2 use
1209         v<sseintprefix>broadcast<bcstscalarsuff> instead of
1210         vbroadcast<ssescalarmodesuffix>.
1211         (AVX2_VEC_DUP_MODE): New mode iterator.
1212         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
1213         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
1215         PR target/63542
1216         * config/i386/i386.c (ix86_pic_register_p): Also return
1217         true if x is a hard register with ORIGINAL_REGNO equal to
1218         pic_offset_table_rtx pseudo REGNO.
1219         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
1220         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
1222 2014-10-22  Alan Modra  <amodra@gmail.com>
1224         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
1225         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
1226         (gcc_obstack_init): Use obstack_specify_allocation in place of
1227         _obstack_begin.
1228         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
1229         (regexp_representation): Likewise.
1230         * godump.c (go_output_type): Likewise.
1232 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
1234         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
1235         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
1236         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
1238 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
1240         * doc/invoke.texi (pedantic-errors): Explain better.
1242 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
1243             Vidya Praveen <vidya.praveen@atmel.com>
1244             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
1245             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
1246             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
1248         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
1249         __MEMX for avrtiny.
1250         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
1251         (avr_nonconst_pointer_addrspace): Likewise.
1252         * config/avr/avr.h (AVR_HAVE_LPM): Define.
1254         Added AVRTINY architecture to avr target.
1255         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
1256         (base_arch_s): member added for AVRTINY architecture.
1257         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
1258         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
1259         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
1260         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
1261         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
1262         in callee saved register list.
1263         (avr_option_override): CCP address updated for AVRTINY.
1264         (avr_init_expanders): tmp and zero rtx initialized as per arch.
1265         Reset avr_have_dimode if AVRTINY.
1266         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
1267         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
1268         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
1269         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
1270         (expand_epilogue): Likewise.
1271         (avr_print_operand): Print CCP address in case of AVRTINY also.
1272         <TBD>bad address
1273         (function_arg_regno_p): Check different register list for arguments
1274         if AVRTINY.
1275         (init_cumulative_args): Check for AVRTINY to update number of argument
1276         registers.
1277         (tiny_valid_direct_memory_access_range): New function. Return false if
1278         direct memory access range is not in accepted range for AVRTINY.
1279         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
1280         indirect load (with displacement) for AVRTINY.
1281         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
1282         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
1283         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
1284         indirect load (no displacement) for AVRTINY.
1285         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
1286         indirect load (with displacement) for AVRTINY.
1287         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
1288         indirect load for pre-decrement address.
1289         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
1290         functions. Update instruction length for AVRTINY.
1291         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
1292         SImode.
1293         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
1294         (out_movsi_r_mr): Likewise, for SImode.
1295         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
1296         indirect store (no displacement) for AVRTINY.
1297         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
1298         indirect store (with displacement) for AVRTINY.
1299         (out_movsi_mr_r): Emit out insn for IO address store. Update store
1300         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
1301         store functions.
1302         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
1303         indirect load (no displacement) for PSImode in AVRTINY.
1304         (avr_out_load_psi_reg_disp_tiny): New function to handle register
1305         indirect load (with displacement) for PSImode in AVRTINY.
1306         (avr_out_load_psi): Call PSImode register indirect load functions for
1307         AVRTINY. Update instruction length for AVRTINY.
1308         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
1309         indirect store (no displacement) for PSImode in AVRTINY.
1310         (avr_out_store_psi_reg_disp_tiny): New function to handle register
1311         indirect store (with displacement) for PSImode in AVRTINY.
1312         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
1313         register indirect store functions for AVRTINY.
1314         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
1315         register indirect store (with displacement) for AVRTINY.
1316         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
1317         register indirect store function for QImode in AVRTINY.
1318         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
1319         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
1320         indirect store (no displacement) for HImode in AVRTINY.
1321         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
1322         indirect store (with displacement) for HImode in AVRTINY.
1323         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
1324         indirect store for post-increment address in HImode.
1325         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
1326         register indirect store function for HImode in AVRTINY.
1327         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
1328         in case of AVRTINY.
1329         (order_regs_for_local_alloc): Updated register allocation order for
1330         AVRTINY.
1331         (avr_conditional_register_usage): New function. It is a target hook
1332         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
1333         used registers list and register allocation order for AVRTINY.
1334         (avr_return_in_memory): Update return value size for AVRTINY.
1335         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
1336         for AVRTINY arch and tiny program memory base address.
1337         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
1338         (avr_texinfo): Added description for AVRTINY arch.
1339         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
1340         STATIC_CHAIN_REGNUM for AVRTINY.
1341         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
1342         * config/avr/avr.md: Added constants for tmp/ zero registers in
1343         AVRTINY. Attributes for AVRTINY added.
1344         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
1345         memory access range.
1346         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
1347         in AVRTINY memory access range.
1348         (*mov<mode>): Likewise for HImode and SImode.
1349         (*movsf): Likewise for SFmode.
1350         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
1351         not have sbiw.
1352         * config/avr/avr-protos.h: Added function prototype for
1353         tiny_valid_direct_memory_access_range.
1354         * config/avr/avr-tables.opt: Regenerate.
1355         * gcc/config/avr/t-multilib: Regenerate.
1356         * doc/avr-mmcu.texi: Regenerate.
1358 2014-10-21  Andrew Pinski  <apinski@cavium.com>
1360         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
1361         available option also.
1362         * config/aarch64/aarch64-cost-tables.h: New file.
1363         * config/aarch64/aarch64-cores.def (thunderx): New core.
1364         * config/aarch64/aarch64-tune.md: Regenerate.
1365         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
1366         of config/arm/aarch-cost-tables.h.
1367         (thunderx_regmove_cost): New variable.
1368         (thunderx_tunings): New variable.
1370 2014-10-21  Dehao Chen  <dehao@google.com>
1372         * auto-profile.c: New file.
1373         * auto-profile.h: New file.
1374         * basic-block.h (maybe_hot_count_p): New export func.
1375         (add_working_set): New export func.
1376         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
1377         (GCOV_TAG_AFDO_FUNCTION): Likewise.
1378         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
1379         * opts.c (enable_fdo_optimizations): New func.
1380         (common_handle_option): Handle -fauto-profile flag.
1381         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
1382         (class pass_early_inline): Export early_inliner.
1383         (early_inliner): Likewise.
1384         (pass_early_inline::execute): Likewise.
1385         * ipa-inline.h (early_inliner): Likewise.
1386         * predict.c (maybe_hot_count_p): New export func.
1387         (counts_to_freqs): AutoFDO logic.
1388         (rebuild_frequencies): Likewise.
1389         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
1390         * profile.c (add_working_set): New func.
1391         * Makefile.in (auto-profile.o): New object file.
1392         * passes.def (pass_ipa_auto_profile): New pass.
1393         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
1394         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
1395         * toplev.c (compile_file): AutoFDO logic.
1396         * doc/invoke.texi (-fauto-profile): New doc.
1397         * coverage.c (coverage_init): AutoFDO logic.
1398         * common.opt (-fauto-profile): New flag.
1399         * timevar.def (TV_IPA_AUTOFDO): New tag.
1400         * value-prof.c (gimple_alloc_histogram_value): New export func.
1401         (check_ic_target): Likewise.
1402         * value-prof.h (gimple_alloc_histogram_value): Likewise.
1403         (check_ic_target): Likewise.
1405 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
1407         * cgraph.c (cgraph_c_finalize): New function.
1408         * cgraph.h (cgraph_c_finalize): New prototype.
1409         (cgraphunit_c_finalize): New prototype.
1410         * cgraphunit.c (first_analyzed): Move from analyze_functions
1411         to file-scope.
1412         (first_analyzed_var): Likewise.
1413         (analyze_functions): Move static variables into file-scope.
1414         (cgraphunit_c_finalize): New function.
1415         * diagnostic.c (diagnostic_finish): Free the memory for
1416         context->classify_diagnostic and context->printer, running the
1417         destructor for the latter.
1418         (bt_stop): Use toplev::main.
1419         * dwarf2out.c (dwarf2out_finalize): New function.
1420         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
1421         * gcse.c (gcse_c_finalize): New function.
1422         * gcse.h (gcse_c_finalize): New prototype.
1423         * ggc-page.c (init_ggc): Make idempotent.
1424         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
1425         * ipa-cp.c (ipa_cp_c_finalize): New function.
1426         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
1427         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
1428         a field of class pass_ipa_pure_const.
1429         (node_duplication_hook_holder): Likewise.
1430         (node_removal_hook_holder): Likewise.
1431         (register_hooks): Convert to method...
1432         (pass_ipa_pure_const::register_hooks): ...here, converting
1433         static variable init_p into...
1434         (pass_ipa_pure_const::init_p): ...new field.
1435         (pure_const_generate_summary): Update invocation of
1436         register_hooks to invoke as a method of current_pass.
1437         (pure_const_read_summary): Likewise.
1438         (propagate): Convert to...
1439         (pass_ipa_pure_const::execute): ...method.
1440         * ipa-reference.c (ipa_init): Move static bool init_p from here
1441         to...
1442         (ipa_init_p): New file-scope variable, so that it can be reset
1443         when repeatedly invoking the compiler within one process by...
1444         (ipa_reference_c_finalize): New function.
1445         * ipa-reference.h (ipa_reference_c_finalize): New.
1446         * main.c (main): Replace invocation of toplev_main with
1447         construction of a toplev instance, and call its "main" method.
1448         * params.c (global_init_params): Add an assert that
1449         params_finished is false.
1450         (params_c_finalize): New.
1451         * params.h (params_c_finalize): New.
1452         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
1453         invoking generate_summary, for the benefit of pass_ipa_pure_const.
1454         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
1455         before calling write_summary hook.
1456         (ipa_write_optimization_summaries_1): Likewise when calling
1457         write_optimization_summary hook.
1458         (ipa_read_summaries_1): Likewise for read_summary hook.
1459         (ipa_read_optimization_summaries_1): Likewise for
1460         read_optimization_summary hook.
1461         (execute_ipa_stmt_fixups): Likewise.
1462         * stringpool.c (init_stringpool): Clean up if we're called more
1463         than once.
1464         * timevar.c (timevar_init): Ignore repeated calls.
1465         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
1466         "ipa-prop.h".
1467         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
1468         (initialize_rtl): Move static local "initialized_once"
1469         into file scope, and rename to...
1470         (rtl_initialized): New variable.
1471         (do_compile): Move timevar initialization from here to
1472         toplev::start_timevars.
1473         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
1474         toplev::finalize): New functions.
1475         (toplev_main): Rename to...
1476         (toplev::main): ...this.
1477         * toplev.h (class toplev): New class.
1479 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1481         * loop-doloop.c: Include loop-unroll.h.
1483 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1485         * cfg.h: New.  Header file for cfg.c.
1486         * cfganal.h: New.  Header file for cfganal.c.
1487         * lcm.h: New.  Header file for lcm.c.
1488         * loop-unroll.h: New.  Header file for loop-unroll.h.
1489         * cfgloop.h: (unroll_loops): Remove prototype.
1490         * basic-block.h: Move prototypes and structs to new header files.
1491         Include cfg.h, cfganal.h, and lcm.h.
1492         * loop-init.c: Include loop-unroll.h.
1493         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
1494         * modulo-sched.c: Include loop-unroll.h.
1496 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1498         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
1499         MARKER_BYTE_UNKNOWN markers when handling casts.
1501 2014-10-21  Richard Biener  <rguenther@suse.de>
1503         * tree-ssa-phiopt.c (value_replacement): Properly verify we
1504         are the non-singleton PHI.
1506 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
1508         PR tree-optimization/63563
1509         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
1510         if either dra or drb stmts are not normal loads/stores.
1512 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
1514         * config/i386/i386.c (expand_vec_perm_1): Fix
1515         expand_vec_perm_palignr case.
1516         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
1517         VI1_AVX512.
1519 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1521         * cfgloopanal.c (seq_cost): Delete.
1522         * rtl.h (seq_cost): New prototype.
1523         * rtlanal.c (seq_cost): New function.
1524         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
1526 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
1528         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
1529         * basic-block.h: Remove prototypes for cfgrtl.c.
1530         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
1531         prototypes to cfgrtl.h.
1532         * profile.h (profile_info): Add extern export declaration.
1533         * rtl.h: Remove prototypes for cfgrtl.h.
1534         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
1535         * ipa-inline.c: Include profile.h.
1536         * loop-unroll.c: Ditto.
1537         * modulo-sched.c: Ditto.
1538         * postreload-gcse.c: Ditto.
1539         * predict.c: Ditto.
1540         * sched-ebb.c: Ditto.
1541         * sched-rgn.c: Ditto.
1542         * tracer.c: Ditto.
1543         * tree-ssa-loop-ivcanon.c: Ditto.
1545 2014-10-20  Richard Biener  <rguenther@suse.de>
1547         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
1548         operands to get a def operand kind match.  Signal mismatches
1549         to the parent so we can try swapping its operands.
1550         (vect_build_slp_tree): Try swapping operands if they have
1551         a mismatched operand kind.
1553 2014-10-20  Alan Modra  <amodra@gmail.com>
1555         PR debug/60655
1556         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
1557         Increase "ops" array size.  Correct array size tests.  Init
1558         n_constants in loop.  Break out of innermost loop when finding
1559         a trivial CONST expression.
1561 2014-10-20  Martin Liska  <mliska@suse.cz>
1563         PR ipa/63583
1564         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
1565         Gimple tempate string is compared.
1567 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
1569         * varasm.c (const_alias_set): Remove.
1570         (init_varasm_once): Remove initialization of const_alias_set.
1571         (build_constant_desc): Do not set alias set to const_alias_set.
1573 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
1575         * configure: Regenerate.
1576         * configure.ac: Move the test for section attribute specifier "e" in GAS
1577         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
1578         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
1579         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
1580         ifdef HAVE_GAS_SECTION_EXCLUDE.
1582 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
1584         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
1585         match_operand expression.
1587 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1588             David Edelsohn  <dje.gcc@gmail.com>
1590         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
1591         function.
1592         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1594 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1596         * doc/invoke.texi (Options to Request or Suppress Warnings):
1597         Explain options precedence.
1598         (Wtrampolines): Do not indent paragraph.
1600 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
1602         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
1603         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
1604         (pa_jump_in_call_delay): Likewise.
1605         * config/pa/pa.c (pa_option_override): Remove jump in call delay
1606         override.
1607         (pa_output_millicode_call): Remove support for jump in call delay.
1608         (pa_output_call): Likewise.
1609         (pa_jump_in_call_delay): Delete.
1610         (pa_following_call): Likewise.
1611         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
1612         (uncond_branch): Remove following call check from attribute length.
1614 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
1616         PR target/53513
1617         * config/sh/sh-modes.def (PSI): Remove.
1618         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
1619         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
1620         (sh_reorg): Remove commented out FPSCR code.
1621         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
1622         insn instead of move insn.
1623         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1624         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1625         handling.
1626         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1627         (sh1_builtin_p): Uncomment.
1628         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1629         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1630         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1631         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1632         (general_movsrc_operand, general_movdst_operand): Disallow
1633         fpscr_operand.
1634         * config/sh/sh.md (FPSCR_FR): New constant.
1635         (push_fpscr): Emit sts_fpscr insn.
1636         (pop_fpscr): Emit lds_fpscr_insn.
1637         (movsi_ie): Disallow FPSCR operands.
1638         (fpu_switch, unnamed related split, extend_psi_si,
1639         truncate_si_psi): Remove insns.
1640         (lds_fpscr, sts_fpscr): New insns.
1641         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1643 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1645         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1646         (clone_inlined_nodes): Do not overwrite the clone if above predicate
1647         returns true.
1649 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
1651         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1652         (expand_vec_perm_d): Ditto.
1653         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1654         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1655         V4DFmode.
1656         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1657         (ix86_expand_sse_unpack): Handle V64QImode.
1658         (expand_vec_perm_blend): Update conditions for TARGET, handle
1659         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1660         (expand_vec_perm_pshufb): Handle V64QImode.
1661         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1662         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1663         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
1664         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1665         (ix86_expand_vecop_qihi): Handle V64QImode.
1666         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1667         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1668         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1669         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1670         (mul<mode>3): Use VI1_AVX512.
1671         (<sse2_avx2>_packsswb): Ditto.
1672         (<sse2_avx2>_packuswb): Ditto.
1673         (<ssse3_avx2>_pshufb<mode>3): Ditto.
1674         (<shift_insn><mode>3): Ditto.
1676 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
1678         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1679         conditions to fix bootstrap.
1681 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
1683         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
1685 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1686             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1687             Anna Tikhonova  <anna.tikhonova@intel.com>
1688             Ilya Tocar  <ilya.tocar@intel.com>
1689             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1690             Ilya Verbin  <ilya.verbin@intel.com>
1691             Kirill Yukhin  <kirill.yukhin@intel.com>
1692             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1694         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1695         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1696         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1697         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1698         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1699         (define_expand "vec_init<mode>"): Use VF48_I1248.
1701 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1702             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1703             Anna Tikhonova  <anna.tikhonova@intel.com>
1704             Ilya Tocar  <ilya.tocar@intel.com>
1705             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1706             Ilya Verbin  <ilya.verbin@intel.com>
1707             Kirill Yukhin  <kirill.yukhin@intel.com>
1708             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1710         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1711         expand_sse2_mulvxdi3.
1713 2014-10-17  Richard Biener  <rguenther@suse.de>
1715         * fold-const.c (fold_comparison): Remove redundant constant
1716         folding and operand swapping.
1717         (fold_binary_loc): Do comparison operand swapping here.
1718         (fold_ternary_loc): Canonicalize operand order for
1719         commutative ternary operations.
1720         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1721         and FMA_EXPR.
1723 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
1725         PR tree-optimization/63464
1726         * gimple.h (gimple_seq_discard): New prototype.
1727         * gimple.c: Include stringpool.h and tree-ssanames.h.
1728         (gimple_seq_discard): New function.
1729         * optabs.h (lshift_cheap_p): New prototype.
1730         * optabs.c (lshift_cheap_p): New function, moved from...
1731         * tree-switch-conversion.c (lshift_cheap_p): ... here.
1732         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1733         (reassoc_branch_fixups): New variable.
1734         (update_range_test): Add otherrangep and seq arguments.
1735         Unshare exp.  If otherrange is NULL, use for other ranges
1736         array of pointers pointed by otherrangep instead.
1737         Emit seq before gimplified statements for tem.
1738         (optimize_range_tests_diff): Adjust update_range_test
1739         caller.
1740         (optimize_range_tests_xor): Likewise.  Fix up comment.
1741         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1742         functions.
1743         (optimize_range_tests): Adjust update_range_test caller.
1744         Call optimize_range_tests_to_bit_test.
1745         (branch_fixup): New function.
1746         (execute_reassoc): Call branch_fixup.
1748         PR tree-optimization/63302
1749         * tree-ssa-reassoc.c (optimize_range_tests_xor,
1750         optimize_range_tests_diff): Use !integer_pow2p () instead of
1751         tree_log2 () < 0.
1753 2014-10-17  Martin Liska  <mliska@suse.cz>
1755         * ipa-icf.c (sem_function::merge): Local flags are set to false
1756         to enforce equal calling convention to be used.
1757         * opts.c (common_handle_option): Indentation fix.
1759 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
1761         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1763 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1765         PR rtl-optimization/61605
1766         * regcprop.c (copyprop_hardreg_forward_1): Use
1767         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1769 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1771         PR rtl-optimization/61605
1772         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
1773         notice stores for noops.  Don't regard noops as copies.
1775 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
1777         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1778         register in a special way.
1779         (__cpuid_count): Ditto.
1780         * config/i386/driver-i386.h: Protect with
1781         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1782         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1783         is required to compile the function.
1785 2014-10-16  DJ Delorie  <dj@redhat.com>
1787         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1788         integers.
1790         * config/rs6000/rs6000-c.c (rid_int128): New.
1791         (rs6000_macro_to_expand): Use instead of RID_INT128.
1793 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1795         * function.h: Flatten file.  Remove includes, adjust prototypes to
1796         reflect only what is in function.h.
1797         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1798         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1799         from expr.h.
1800         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1801         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1802         prototypes to predict.h.
1803         (init_varasm_status): Move prototype to varasm.h.
1804         * expr.h: Adjust include files.
1805         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1806         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1807         to function.h.
1808         (locate_and_pad_parm): Move prototype to function.h.
1809         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1810         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1811         assign_temp, reposition_prologue_and_epilogue_notes,
1812         prologue_epilogue_contains, sibcall_epilogue_contains,
1813         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1814         set_return_jump_label): Move prototypes to function.h.
1815         * predict.h (optimize_function_for_size_p,
1816         optimize_function_for_speed_p): Relocate prototypes from function.h.
1817         * shrink-wrap.h (emit_return_into_block, active_insn_between,
1818         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1819         function.h.
1820         * varasm.h (init_varasm_status): Relocate prototype from function.h.
1821         * genattrtab.c (write_header): Add predict.h to include list.
1822         * genconditions.c (write_header): Add predict.h to include list.
1823         * genemit.c (main): Adjust header file includes.
1824         * gengtype.c (ifiles): Add flattened function.h header files.
1825         * genoutput.c (output_prologue): Add predict.h to include list.
1826         * genpreds.c (write_insn_preds_c): Adjust header file includes.
1827         * genrecog.c (write_header): Add flattened function.h header files.
1828         * alias.c: Adjust include files.
1829         * auto-inc-dec.c: Likewise.
1830         * basic-block.h: Likewise.
1831         * bb-reorder.c: Likewise.
1832         * bt-load.c: Likewise.
1833         * builtins.c: Likewise.
1834         * caller-save.c: Likewise.
1835         * calls.c: Likewise.
1836         * cfgbuild.c: Likewise.
1837         * cfgcleanup.c: Likewise.
1838         * cfgexpand.c: Likewise.
1839         * cfgloop.c: Likewise.
1840         * cfgloop.h: Likewise.
1841         * cfgrtl.c: Likewise.
1842         * cgraph.h: Likewise.
1843         * cgraphclones.c: Likewise.
1844         * cgraphunit.c: Likewise.
1845         * combine-stack-adj.c: Likewise.
1846         * combine.c: Likewise.
1847         * coverage.c: Likewise.
1848         * cprop.c: Likewise.
1849         * cse.c: Likewise.
1850         * cselib.c: Likewise.
1851         * dbxout.c: Likewise.
1852         * ddg.c: Likewise.
1853         * df-core.c: Likewise.
1854         * df-problems.c: Likewise.
1855         * df-scan.c: Likewise.
1856         * dojump.c: Likewise.
1857         * dwarf2cfi.c: Likewise.
1858         * dwarf2out.c: Likewise.
1859         * emit-rtl.c: Likewise.
1860         * except.c: Likewise.
1861         * explow.c: Likewise.
1862         * expr.c: Likewise.
1863         * final.c: Likewise.
1864         * function.c: Likewise.
1865         * gcse.c: Likewise.
1866         * gimple-fold.c: Likewise.
1867         * gimple-low.c: Likewise.
1868         * gimple-streamer.h: Likewise.
1869         * haifa-sched.c: Likewise.
1870         * ifcvt.c: Likewise.
1871         * ira.c: Likewise.
1872         * jump.c: Likewise.
1873         * lcm.c: Likewise.
1874         * loop-invariant.c: Likewise.
1875         * lra-assigns.c: Likewise.
1876         * lra-coalesce.c: Likewise.
1877         * lra-constraints.c: Likewise.
1878         * lra-eliminations.c: Likewise.
1879         * lra-lives.c: Likewise.
1880         * lra-spills.c: Likewise.
1881         * lra.c: Likewise.
1882         * lto-cgraph.c: Likewise.
1883         * lto-section-in.c: Likewise.
1884         * lto-section-out.c: Likewise.
1885         * lto-streamer-in.c: Likewise.
1886         * lto-streamer-out.c: Likewise.
1887         * mode-switching.c: Likewise.
1888         * modulo-sched.c: Likewise.
1889         * omp-low.c: Likewise.
1890         * optabs.c: Likewise.
1891         * passes.c: Likewise.
1892         * postreload-gcse.c: Likewise.
1893         * postreload.c: Likewise.
1894         * predict.c: Likewise.
1895         * profile.c: Likewise.
1896         * recog.c: Likewise.
1897         * ree.c: Likewise.
1898         * reg-stack.c: Likewise.
1899         * regcprop.c: Likewise.
1900         * reginfo.c: Likewise.
1901         * regrename.c: Likewise.
1902         * reload.c: Likewise.
1903         * reload1.c: Likewise.
1904         * reorg.c: Likewise.
1905         * resource.c: Likewise.
1906         * rtlanal.c: Likewise.
1907         * sched-deps.c: Likewise.
1908         * sched-ebb.c: Likewise.
1909         * sched-rgn.c: Likewise.
1910         * sel-sched-dump.c: Likewise.
1911         * sel-sched-ir.c: Likewise.
1912         * sel-sched.c: Likewise.
1913         * shrink-wrap.c: Likewise.
1914         * simplify-rtx.c: Likewise.
1915         * statistics.c: Likewise.
1916         * stmt.c: Likewise.
1917         * stor-layout.c: Likewise.
1918         * store-motion.c: Likewise.
1919         * symtab.c: Likewise.
1920         * targhooks.c: Likewise.
1921         * toplev.c: Likewise.
1922         * trans-mem.c: Likewise.
1923         * tree-cfg.c: Likewise.
1924         * tree-cfgcleanup.c: Likewise.
1925         * tree-dfa.c: Likewise.
1926         * tree-eh.c: Likewise.
1927         * tree-inline.c: Likewise.
1928         * tree-into-ssa.c: Likewise.
1929         * tree-nested.c: Likewise.
1930         * tree-nrv.c: Likewise.
1931         * tree-profile.c: Likewise.
1932         * tree-ssa-alias.c: Likewise.
1933         * tree-ssa-ccp.c: Likewise.
1934         * tree-ssa-copy.c: Likewise.
1935         * tree-ssa-copyrename.c: Likewise.
1936         * tree-ssa-dom.c: Likewise.
1937         * tree-ssa-operands.c: Likewise.
1938         * tree-ssa-propagate.c: Likewise.
1939         * tree-ssa-structalias.c: Likewise.
1940         * tree-ssa-tail-merge.c: Likewise.
1941         * tree-ssa-threadedge.c: Likewise.
1942         * tree-ssa-threadupdate.c: Likewise.
1943         * tree-ssa-uncprop.c: Likewise.
1944         * tree-ssa-uninit.c: Likewise.
1945         * tree-ssa.c: Likewise.
1946         * tree-stdarg.c: Likewise.
1947         * tree-tailcall.c: Likewise.
1948         * tree.c: Likewise.
1949         * tsan.c: Likewise.
1950         * valtrack.c: Likewise.
1951         * varasm.c: Likewise.
1952         * vmsdbgout.c: Likewise.
1953         * web.c: Likewise.
1954         * config/aarch64/aarch64.c: Add flattened includes from function.h.
1955         * config/alpha/alpha.c: Likewise.
1956         * config/arc/arc.c: Likewise.
1957         * config/arm/arm.c: Likewise.
1958         * config/avr/avr-log.c: Likewise.
1959         * config/avr/avr.c: Likewise.
1960         * config/bfin/bfin.c: Likewise.
1961         * config/c6x/c6x.c: Likewise.
1962         * config/cr16/cr16.c: Likewise.
1963         * config/cris/cris.c: Likewise.
1964         * config/darwin.c: Likewise.
1965         * config/epiphany/epiphany.c: Likewise.
1966         * config/epiphany/mode-switch-use.c: Likewise.
1967         * config/epiphany/resolve-sw-modes.c: Likewise.
1968         * config/fr30/fr30.c: Likewise.
1969         * config/frv/frv.c: Likewise.
1970         * config/h8300/h8300.c: Likewise.
1971         * config/i386/i386.c: Likewise.
1972         * config/ia64/ia64.c: Likewise.
1973         * config/iq2000/iq2000.c: Likewise.
1974         * config/lm32/lm32.c: Likewise.
1975         * config/m32c/m32c.c: Likewise.
1976         * config/m32r/m32r.c: Likewise.
1977         * config/m68k/m68k.c: Likewise.
1978         * config/mcore/mcore.c: Likewise.
1979         * config/mep/mep-pragma.c: Likewise.
1980         * config/mep/mep.c: Likewise.
1981         * config/microblaze/microblaze.c: Likewise.
1982         * config/mips/mips.c: Likewise.
1983         * config/mmix/mmix.c: Likewise.
1984         * config/mn10300/mn10300.c: Likewise.
1985         * config/moxie/moxie.c: Likewise.
1986         * config/msp430/msp430.c: Likewise.
1987         * config/nds32/nds32-cost.c: Likewise.
1988         * config/nds32/nds32-fp-as-gp.c: Likewise.
1989         * config/nds32/nds32-intrinsic.c: Likewise.
1990         * config/nds32/nds32-isr.c: Likewise.
1991         * config/nds32/nds32-md-auxiliary.c: Likewise.
1992         * config/nds32/nds32-memory-manipulation.c: Likewise.
1993         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1994         * config/nds32/nds32-predicates.c: Likewise.
1995         * config/nds32/nds32.c: Likewise.
1996         * config/nios2/nios2.c: Likewise.
1997         * config/pa/pa.c: Likewise.
1998         * config/pdp11/pdp11.c: Likewise.
1999         * config/rl78/rl78.c: Likewise.
2000         * config/rs6000/rs6000.c: Likewise.
2001         * config/rx/rx.c: Likewise.
2002         * config/s390/s390.c: Likewise.
2003         * config/score/score.c: Likewise.
2004         * config/sh/sh.c: Likewise.
2005         * config/sparc/sparc.c: Likewise.
2006         * config/spu/spu.c: Likewise.
2007         * config/stormy16/stormy16.c: Likewise.
2008         * config/tilegx/tilegx.c: Likewise.
2009         * config/tilepro/tilepro.c: Likewise.
2010         * config/v850/v850.c: Likewise.
2011         * config/vax/vax.c: Likewise.
2012         * config/xtensa/xtensa.c: Likewise.
2014 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
2016         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
2017         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
2019 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
2021         * config/sh/sh-protos.h (fldi_ok): Remove.
2022         * config/sh/sh.c (fldi_ok): Likewise.
2023         (sh_secondary_reload): Don't use fldi_ok.
2024         * config/sh/constraints.md (G constraint, H constraint): Don't use
2025         fldi_ok.
2027 2014-10-16  Martin Liska  <mliska@suse.cz>
2029         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
2030         Cast to unsigned long.
2031         (sem_item_optimizer::dump_cong_classes): Likewise.
2033 2014-10-16  Tom de Vries  <tom@codesourcery.com>
2035         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
2036         with SSA_NAME_IN_FREELIST.
2038 2014-10-16  Richard Biener  <rguenther@suse.de>
2040         PR middle-end/63554
2041         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
2042         (fold_builtin_strncat_chk): Move ...
2043         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
2044         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
2046 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
2048         PR target/59401
2049         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
2050         GBR to 0.
2052 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2053             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2054             Anna Tikhonova  <anna.tikhonova@intel.com>
2055             Ilya Tocar  <ilya.tocar@intel.com>
2056             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2057             Ilya Verbin  <ilya.verbin@intel.com>
2058             Kirill Yukhin  <kirill.yukhin@intel.com>
2059             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2061         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
2062         V64QI modes.
2064 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2065             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2066             Anna Tikhonova  <anna.tikhonova@intel.com>
2067             Ilya Tocar  <ilya.tocar@intel.com>
2068             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2069             Ilya Verbin  <ilya.verbin@intel.com>
2070             Kirill Yukhin  <kirill.yukhin@intel.com>
2071             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2073         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
2074         V16SI, V32HI, V64QI modes.
2076 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
2078         PR target/53513
2079         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
2080         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
2082         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
2083         to match fp insn patterns.
2084         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
2085         list.
2086         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
2087         expand_df_unop, expand_df_binop): Remove.
2088         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
2089         FPSCR_STAT_REG as not call clobbered.
2090         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
2091         invoking fpscr_set_from_mem.
2093         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
2094         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
2095         FPSCR_STAT_REG.
2096         (REGISTER_NAMES): Adjust.
2097         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2098         (FIRST_PSEUDO_REGISTER): Increase to 156.
2099         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
2100         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
2101         FPSCR_STAT_REG.
2102         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
2103         FPSCR_MODES_REG and FPSCR_STAT_REG.
2104         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2106         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
2107         FPSCR_SZ): Add new constants.
2108         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
2110         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
2111         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
2112         Use TARGET_FPU_ANY condition.
2113         (fpu_switch peephole2): Remove.
2114         (fpu_switch split): Use simple_mem_operand to capture the mem and
2115         adjust split implementation.
2116         (extend_psi_si, truncate_si_psi): New insns.
2117         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
2118         set of FPSCR_MODES_REG.
2120         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
2121         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
2122         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
2123         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
2124         call_value_compact, call_value_compact_rettramp, call,
2125         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
2126         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
2127         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
2128         sibcall_value_compact, sibcall_value, call_value_pop_compact,
2129         call_value_pop_compact_rettramp, various unnamed splits):
2130         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
2131         function uses.
2133         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
2134         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
2135         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
2136         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
2137         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
2139         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
2140         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
2141         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
2142         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
2143         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
2144         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
2145         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
2147 2014-10-16  Martin Liska  <mliska@suse.cz>
2148             Jan Hubicka  <hubicka@ucw.cz>
2150         * Makefile.in: New object files included.
2151         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
2152         is printed.
2153         (verify_edge_corresponds_to_fndecl): More sensitive verification
2154         of nodes that are merged by IPA ICF.
2155         * cgraph.h (cgraph_node::num_references): New function.
2156         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
2157         * common.opt: New options ipa-icf, ipa-icf-functions and
2158         ipa-icf-variables introduced.
2159         * doc/invoke.texi: Documentation of new options introduced.
2160         * ipa-icf-gimple.c: New file.
2161         * ipa-icf-gimple.h: New file.
2162         * ipa-icf.c: New file.
2163         * ipa-icf.h: New file.
2164         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
2165         (input_overwrite_node): Likewise.
2166         * lto-section-in.c: New icf section added.
2167         * lto-streamer.h (enum lto_section_type): Likewise.
2168         * opts.c (common_handle_option): New option added.
2169         * passes.def: New pass included.
2170         * timevar.def: Time variable for IPA ICF added.
2171         * tree-pass.h: New IPA ICF pass entry point added.
2173 2014-10-16  Richard Biener  <rguenther@suse.de>
2175         PR tree-optimization/63168
2176         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
2177         latches if after merging they are no longer simple.
2178         * cfghooks.c (merge_blocks): Handle merging a latch block
2179         into another block.
2181 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2182             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2183             Anna Tikhonova  <anna.tikhonova@intel.com>
2184             Ilya Tocar  <ilya.tocar@intel.com>
2185             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2186             Ilya Verbin  <ilya.verbin@intel.com>
2187             Kirill Yukhin  <kirill.yukhin@intel.com>
2188             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2190         * config/i386/sse.md
2191         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
2192         support AVX-512VL instructions.
2194 2014-10-16  DJ Delorie  <dj@redhat.com>
2196         * tree-core.h: Fix comment to not assume pointers are multiples of
2197         bytes.
2199 2014-10-15  Tom Tromey  <tromey@redhat.com>
2201         * timevar.h (class auto_timevar): New class.
2203 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
2205         PR go/59432
2206         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2207         Remove the second alternative.
2208         (regprefix): Remove mode attribute.
2209         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
2210         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
2212         Revert:
2213         2013-11-05  Ian Lance Taylor  <iant@google.com>
2215         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2216         If possible, add .cfi directives to record change to bx.
2217         * config/i386/i386.c (ix86_emit_cfi): New function.
2218         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
2220 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
2222         PR lto/62026
2223         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
2224         to duplicate.
2225         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
2226         at WPA time.
2228 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2230         PR rtl-optimization/63448
2231         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
2232         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
2233         (LRA_MAX_INHERITANCE_PASSES): Use it.
2234         (lra_constraint_iter_after_spill): Remove.
2235         (lra_assignment_iter): New.
2236         (lra_assignment_iter_after_spill): New.
2237         * lra-assigns.c (lra_assignment_iter): New.
2238         (lra_assignment_iter_after_spill): New.
2239         (former_reload_pseudo_spill_p): New.
2240         (spill_for): Set up former_reload_pseudo_spill_p.
2241         (setup_live_pseudos_and_spill_after_risky): Ditto.
2242         (assign_by_spills): Ditto.
2243         (lra_assign): Increment lra_assignment_iter.  Print the iteration
2244         number.  Reset former_reload_pseudo_spill_p.  Check
2245         lra_assignment_iter_after_spill.
2246         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
2247         lra_assignment_iter and lra_assignment_iter_after_spill.
2248         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
2249         (lra_constraints): Remove code with
2250         lra_assignment_iter_after_spill.
2252 2014-10-15  Teresa Johnson  <tejohnson@google.com>
2254         PR bootstrap/63432
2255         * tree-ssa-threadupdate.c (recompute_probabilities): Better
2256         overflow checking.
2258 2014-10-15  Renlin Li <renlin.li@arm.com>
2260         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2261         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
2262         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
2263         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
2265 2014-10-15  Richard Biener  <rguenther@suse.de>
2267         * gimple-fold.c (gimple_fold_call): Properly keep virtual
2268         SSA form up-to-date when devirtualizing a call to
2269         __builtin_unreachable and avoid fixing up EH info here.
2271 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2272             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2273             Anna Tikhonova  <anna.tikhonova@intel.com>
2274             Ilya Tocar  <ilya.tocar@intel.com>
2275             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2276             Ilya Verbin  <ilya.verbin@intel.com>
2277             Kirill Yukhin  <kirill.yukhin@intel.com>
2278             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2280         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
2281         to support AVX-512BW.
2282         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
2283         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
2284         (define_insn "*<plusminus_insn><mode>3"): Ditto.
2285         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
2286         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2287         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
2288         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2289         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
2290         (define_insn "*andnot<mode>3"): Ditto.
2291         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
2292         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
2293         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2294         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
2295         (define_insn "*abs<mode>2"): Remove masking support.
2296         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
2297         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
2298         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
2300 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2301             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2302             Anna Tikhonova  <anna.tikhonova@intel.com>
2303             Ilya Tocar  <ilya.tocar@intel.com>
2304             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2305             Ilya Verbin  <ilya.verbin@intel.com>
2306             Kirill Yukhin  <kirill.yukhin@intel.com>
2307             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2309         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
2310         * config/i386/sse.md
2311         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
2312         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
2313         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
2314         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2315         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2316         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2317         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2319 2014-10-15  Renlin Li <renlin.li@arm.com>
2321         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
2323 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
2325         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
2326         MINUS_EXPR in unsigned type to avoid undefined behavior.
2328 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2330         * stor-layout.c (self_referential_size): Do not promote arguments.
2332 2014-10-15  Marek Polacek  <polacek@redhat.com>
2334         * doc/invoke.texi: Update to reflect that GNU11 is the default
2335         mode for C.
2336         * c-common.h (c_language_kind): Update comment.
2338 2014-10-15  Richard Biener  <rguenther@suse.de>
2340         * hash-table.c: Include bconfig.h if building for the host.
2341         * hash-table.h: Do not include ggc.h on the host but just declare
2342         a few ggc allocation templates.
2344 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
2345             Jeff Law  <law@redhat.com>
2347         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
2348         multiple hard registers, use smaller mode derived from MODE.
2350 2014-10-15  Andreas Schwab  <schwab@suse.de>
2352         * explow.c (convert_memory_address_addr_space_1): Mark in_const
2353         as ATTRIBUTE_UNUSED.
2355 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
2357         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
2358         (decide_unrolling): ... this one.
2359         (peel_loops_completely): Remove.
2360         (decide_peel_simple): Remove.
2361         (decide_peel_once_rolling): Remove.
2362         (decide_peel_completely): Remove.
2363         (peel_loop_simple): Remove.
2364         (peel_loop_completely): Remove.
2365         (unroll_and_peel_loops): Rename to ...
2366         (unroll_loops): ... this one; handle only unrolling.
2367         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
2368         LPT_PEEL_SIMPLE.
2369         (UAP_PEEL): Remove.
2370         (unroll_and_peel_loops): Remove.
2371         (unroll_loops): New.
2372         * passes.def: Replace
2373         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
2374         * loop-init.c (gate_rtl_unroll_and_peel_loops,
2375         rtl_unroll_and_peel_loops): Rename to ...
2376         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
2377         (pass_rtl_unroll_and_peel_loops): Rename to ...
2378         (pass_rtl_unroll_loops): ... this one.
2379         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
2380         (make_pass_rtl_unroll_loops): New.
2381         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
2382         (canonicalize_loop_induction_variables): Update.
2384 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2386         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
2387         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
2388         !TARGET_HARD_FLOAT_POSTINC.
2389         (*lsip, *ssip): new instructions.
2391 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2393         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
2394         remove.
2396 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2398         * explow.c (convert_memory_address_addr_space): Rename to ...
2399         (convert_memory_address_addr_space_1): This.  Add in_const argument.
2400         Inside a CONST RTL, permute the conversion and addition of constant
2401         for zero and sign extended pointers.
2402         (convert_memory_address_addr_space): New function.
2404 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2406         Revert:
2407         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2409         PR middle-end/49721
2410         * explow.c (convert_memory_address_addr_space): Also permute the
2411         conversion and addition of constant for zero-extend.
2413 2014-10-14  DJ Delorie  <dj@redhat.com>
2415         * config/msp430/msp430-modes.def (PSI): Add.
2417         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
2418         (msp430_hard_regno_nregs_with_padding): New.
2419         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
2420         (msp430_hard_regno_nregs_has_padding): New.
2421         (msp430_hard_regno_nregs_with_padding): New.
2422         (msp430_unwind_word_mode): Use PSImode instead of SImode.
2423         (msp430_addr_space_legitimate_address_p): New.
2424         (msp430_asm_integer): New.
2425         (msp430_init_dwarf_reg_sizes_extra): New.
2426         (msp430_print_operand): Use X suffix for PSImode even in small model.
2427         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
2428         (PTR_SIZE): ...but 4 bytes for EH.
2429         (SIZE_TYPE): Use __int20.
2430         (PTRDIFF_TYPE): Likewise.
2431         (INCOMING_FRAME_SP_OFFSET): Adjust.
2432         * config/msp430/msp430.md (movqi_topbyte): New.
2433         (movpsi): Use fixed suffixes.
2434         (movsipsi2): Enable for 430X, not large model.
2435         (extendhipsi2): Likewise.
2436         (zero_extendhisi2): Likewise.
2437         (zero_extendhisipsi2): Likewise.
2438         (extend_and_shift1_hipsi2): Likewise.
2439         (extendpsisi2): Likewise.
2440         (*bitbranch<mode>4_z): Fix suffix logic.
2442 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
2444         PR ada/62019
2445         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
2446         do not choke on null node.
2447         <VAR_DECL>: Likewise.
2449 2014-10-14  DJ Delorie  <dj@redhat.com>
2451         * machmode.h (int_n_data_t): New.
2452         (int_n_enabled_p): New.
2453         (int_n_data): New.
2454         * tree.c (int_n_enabled_p): New.
2455         (int_n_trees): New.
2456         (make_or_reuse_type): Check for all __intN types, not just
2457         __int128.
2458         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
2459         entries.
2460         * tree.h (int128_integer_type_node): Remove.
2461         (int128_unsigned_type_node): Remove.
2462         (int_n_trees_t): New.
2463         (int_n_enabled_p): New.
2464         (int_n_trees): New.
2465         * toplev.c (standard_type_bitsize): New.
2466         (do_compile): Check which __intN types are enabled for the current
2467         run.
2468         * builtin-types.def (BT_INT128): Remove.
2469         (BT_UINT128): Remove.
2470         * machmode.def: Add macro to create __int128 for all targets.
2471         * stor-layout.c (mode_for_size): Support __intN types.
2472         (smallest_mode_for_size): Likewise.
2473         (initialize_sizetypes): Support __intN types.
2474         * genmodes.c (struct mode_data): Add int_n field.
2475         (blank_mode): Likewise.
2476         (INT_N): New.
2477         (make_int_n): New.
2478         (emit_insn_modes_h): Count __intN entries and define
2479         NUM_INT_N_ENTS.
2480         (emit_mode_int_n): New.
2481         (emit_insn_modes_c): Call it.
2482         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
2483         types, not just __int128.
2484         * tree-core.h (integer_type_kind): Remove __int128-specific
2485         entries, reserve spots for __intN entries.
2487         * config/msp430/msp430-modes.def (PSI): Add.
2489 2014-10-14  Kito Cheng  <kito@0xlab.org>
2491         * ira.c: Fix typo in comment.
2492         * ira.h: Ditto.
2493         * ira-build.c: Ditto.
2494         * ira-color.c: Ditto.
2495         * ira-emit.c: Ditto.
2496         * ira-int.h: Ditto.
2497         * ira-lives.c: Ditto.
2499 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
2501         PR rtl-optimization/63475
2502         * alias.c (true_dependence_1): Always use get_addr to extract
2503         true address operands from x_addr and mem_addr.  Use extracted
2504         address operands to check for references with alignment ANDs.
2505         Use extracted address operands with find_base_term and
2506         base_alias_check. For noncanonicalized operands call canon_rtx with
2507         extracted address operand.
2508         (write_dependence_1): Ditto.
2509         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
2511 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
2513         PR target/63534
2514         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
2515         __morestack local.
2517 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2518             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2519             Anna Tikhonova  <anna.tikhonova@intel.com>
2520             Ilya Tocar  <ilya.tocar@intel.com>
2521             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2522             Ilya Verbin  <ilya.verbin@intel.com>
2523             Kirill Yukhin  <kirill.yukhin@intel.com>
2524             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2526         * config/i386/i386.c
2527         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
2528         (ix86_expand_int_vcond): Ditto.
2530 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2531             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2532             Anna Tikhonova  <anna.tikhonova@intel.com>
2533             Ilya Tocar  <ilya.tocar@intel.com>
2534             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2535             Ilya Verbin  <ilya.verbin@intel.com>
2536             Kirill Yukhin  <kirill.yukhin@intel.com>
2537             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2539         * config/i386/i386.c
2540         (emit_reduc_half): Handle V64QI and V32HI mode.
2541         * config/i386/sse.md
2542         (define_mode_iterator VI_AVX512BW): New.
2543         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
2545 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2546             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2547             Anna Tikhonova  <anna.tikhonova@intel.com>
2548             Ilya Tocar  <ilya.tocar@intel.com>
2549             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2550             Ilya Verbin  <ilya.verbin@intel.com>
2551             Kirill Yukhin  <kirill.yukhin@intel.com>
2552             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2554         * config/i386/sse.md
2555         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
2557 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2558             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2559             Anna Tikhonova  <anna.tikhonova@intel.com>
2560             Ilya Tocar  <ilya.tocar@intel.com>
2561             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2562             Ilya Verbin  <ilya.verbin@intel.com>
2563             Kirill Yukhin  <kirill.yukhin@intel.com>
2564             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2566         * config/i386/i386.c
2567         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
2568         * config/i386/sse.md
2569         (define_mode_iterator VI): Add V64QI and V32HI modes.
2571 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2572             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2573             Anna Tikhonova  <anna.tikhonova@intel.com>
2574             Ilya Tocar  <ilya.tocar@intel.com>
2575             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2576             Ilya Verbin  <ilya.verbin@intel.com>
2577             Kirill Yukhin  <kirill.yukhin@intel.com>
2578             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2580         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
2582 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2583             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2584             Anna Tikhonova  <anna.tikhonova@intel.com>
2585             Ilya Tocar  <ilya.tocar@intel.com>
2586             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2587             Ilya Verbin  <ilya.verbin@intel.com>
2588             Kirill Yukhin  <kirill.yukhin@intel.com>
2589             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2591         * config/i386/sse.md
2592         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
2593         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
2595 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2596             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2597             Anna Tikhonova  <anna.tikhonova@intel.com>
2598             Ilya Tocar  <ilya.tocar@intel.com>
2599             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2600             Ilya Verbin  <ilya.verbin@intel.com>
2601             Kirill Yukhin  <kirill.yukhin@intel.com>
2602             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2604         * config/i386/sse.md
2605         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
2606         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
2608 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2609             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2610             Anna Tikhonova  <anna.tikhonova@intel.com>
2611             Ilya Tocar  <ilya.tocar@intel.com>
2612             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2613             Ilya Verbin  <ilya.verbin@intel.com>
2614             Kirill Yukhin  <kirill.yukhin@intel.com>
2615             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2617         * config/i386/sse.md
2618         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
2619         (define_mode_iterator VI2_AVX2): Add V32HI mode.
2620         (define_expand "mul<mode>3<mask_name>"): Add masking.
2621         (define_insn "*mul<mode>3<mask_name>"): Ditto.
2622         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2623         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2624         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2625         (define_mode_attr SDOT_PMADD_SUF): Ditto.
2626         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2627         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2628         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2629         (define_insn "avx2_packusdw"): Delete.
2630         (define_insn "sse4_1_packusdw"): Ditto.
2631         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2633 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2634             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2635             Anna Tikhonova  <anna.tikhonova@intel.com>
2636             Ilya Tocar  <ilya.tocar@intel.com>
2637             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2638             Ilya Verbin  <ilya.verbin@intel.com>
2639             Kirill Yukhin  <kirill.yukhin@intel.com>
2640             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2642         * config/i386/sse.md
2643         (define_insn "vec_dup<mode>"): Update constraints.
2645 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2646             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2647             Anna Tikhonova  <anna.tikhonova@intel.com>
2648             Ilya Tocar  <ilya.tocar@intel.com>
2649             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2650             Ilya Verbin  <ilya.verbin@intel.com>
2651             Kirill Yukhin  <kirill.yukhin@intel.com>
2652             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2654         * config/i386/sse.md
2655         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2656         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2657         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2659 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2660             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2661             Anna Tikhonova  <anna.tikhonova@intel.com>
2662             Ilya Tocar  <ilya.tocar@intel.com>
2663             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2664             Ilya Verbin  <ilya.verbin@intel.com>
2665             Kirill Yukhin  <kirill.yukhin@intel.com>
2666             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2668         * config/i386/sse.md
2669         (define_expand "mul<mode>3<mask_name>"): Add masking.
2671 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2672             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2673             Anna Tikhonova  <anna.tikhonova@intel.com>
2674             Ilya Tocar  <ilya.tocar@intel.com>
2675             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2676             Ilya Verbin  <ilya.verbin@intel.com>
2677             Kirill Yukhin  <kirill.yukhin@intel.com>
2678             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2680         * config/i386/sse.md
2681         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2682         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2684 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2685             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2686             Anna Tikhonova  <anna.tikhonova@intel.com>
2687             Ilya Tocar  <ilya.tocar@intel.com>
2688             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2689             Ilya Verbin  <ilya.verbin@intel.com>
2690             Kirill Yukhin  <kirill.yukhin@intel.com>
2691             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2693         * config/i386/sse.md
2694         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2695         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2696         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2697         Ditto.
2699 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2700             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2701             Anna Tikhonova  <anna.tikhonova@intel.com>
2702             Ilya Tocar  <ilya.tocar@intel.com>
2703             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2704             Ilya Verbin  <ilya.verbin@intel.com>
2705             Kirill Yukhin  <kirill.yukhin@intel.com>
2706             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2708         * config/i386/sse.md
2709         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2710         use VF_128_256 mode iterator and update assembler emit code.
2711         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2712         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2713         Add masking, use VF_128_256 mode iterator.
2714         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2715         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2716         Add masking, use VF_128_256 mode iterator and update assembler emit
2717         code.
2718         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2719         (define_mode_attr avx512flogicsuff): Delete.
2720         (define_insn "avx512f_<logic><mode>"): Ditto.
2721         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2722         MODE_TI.
2723         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2725 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2726             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2727             Anna Tikhonova  <anna.tikhonova@intel.com>
2728             Ilya Tocar  <ilya.tocar@intel.com>
2729             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2730             Ilya Verbin  <ilya.verbin@intel.com>
2731             Kirill Yukhin  <kirill.yukhin@intel.com>
2732             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2734         * config/i386/sse.md
2735         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2736         (define_expand "vashr<mode>3<mask_name>"): Add masking,
2737         use VI12_128 mode iterator.
2738         (define_expand "ashrv2di3<mask_name>"): New.
2740 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2741             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2742             Anna Tikhonova  <anna.tikhonova@intel.com>
2743             Ilya Tocar  <ilya.tocar@intel.com>
2744             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2745             Ilya Verbin  <ilya.verbin@intel.com>
2746             Kirill Yukhin  <kirill.yukhin@intel.com>
2747             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2749         * config/i386/i386.c
2750         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2751         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2752         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2753         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2754         CODE_FOR_avx512vl_ucmpv4si3_mask.
2755         * config/i386/sse.md
2756         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2757         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2758         (define_insn
2759         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2760         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2761         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2762         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2763         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2764         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2766 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2767             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2768             Anna Tikhonova  <anna.tikhonova@intel.com>
2769             Ilya Tocar  <ilya.tocar@intel.com>
2770             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2771             Ilya Verbin  <ilya.verbin@intel.com>
2772             Kirill Yukhin  <kirill.yukhin@intel.com>
2773             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2775         * config/i386/sse.md
2776         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2777         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2778         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2779         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2780         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2781         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2782         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2783         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2784         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2786 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2787             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2788             Anna Tikhonova  <anna.tikhonova@intel.com>
2789             Ilya Tocar  <ilya.tocar@intel.com>
2790             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2791             Ilya Verbin  <ilya.verbin@intel.com>
2792             Kirill Yukhin  <kirill.yukhin@intel.com>
2793             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2795         * config/i386/sse.md
2796         (define_insn "avx512f_blendm<mode>"): Delete.
2797         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2798         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2799         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2800         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2801         (define_insn
2802         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2803         Remove.
2804         (define_insn
2805         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2806         New.
2807         (define_insn
2808         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2809         Ditto.
2810         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2811         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2812         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2813         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2814         Delete.
2815         (define_insn
2816         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2817         New.
2818         (define_insn
2819         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2820         Ditto.
2821         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2822         Delete.
2823         (define_insn
2824         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2825         New.
2826         (define_insn
2827         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2828         Ditto.
2830 2014-10-14  Richard Biener  <rguenther@suse.de>
2832         PR tree-optimization/63512
2833         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2834         modified.
2836 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
2838         PR target/63260
2839         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2840         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
2841         of FPSCR.
2842         (negsf2_i): Rename to *negsf2_i.
2843         (abssf2_i): Rename to *abssf2_i.
2844         (negdf2_i): Rename to *negdf2_i.
2845         (absdf2_i): Rename to *absdf2_i.
2847 2014-10-14  Felix Yang  <felix.yang@huawei.com>
2848             Jeff Law  <law@redhat.com>
2850         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2851         "replace" into boolean bitfields; turn member "loop_depth" into a short
2852         integer; add new member "no_equiv" and "reserved".
2853         (no_equiv): Set no_equiv of struct equivalence if register is marked
2854         as having no known equivalence.
2855         (update_equiv_regs): Check all definitions for a multiple-set
2856         register to make sure that the RHS have the same value.
2858 2014-10-13  Richard Henderson  <rth@redhat.com>
2860         * combine-stack-adj.c (no_unhandled_cfa): New.
2861         (maybe_merge_cfa_adjust): New.
2862         (combine_stack_adjustments_for_block): Use them.
2864 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
2866         * Makefile.in (TAGS): Tag ../include files.
2868 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2870         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2871         to rs6000_dbx_register_number.
2872         (DWARF_FRAME_REGNUM): Redefine as identity map.
2873         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2874         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2875         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2876         argument to handle .debug_frame and .eh_frame directly.  Always
2877         translate SPE high register numbers.  Add special treatment for CR,
2878         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
2880         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2881         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2882         (RS6000_USE_DWARF_NUMBERING): Define.
2883         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2884         (RS6000_USE_DWARF_NUMBERING): Define.
2885         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2886         (RS6000_USE_DWARF_NUMBERING): Define.
2887         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2888         (RS6000_USE_DWARF_NUMBERING): Define.
2889         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2890         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2892 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2894         * config/i386/i386.c (ix86_address_cost): Lower cost for
2895         when address contains GOT register.
2897 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2898             Vladimir Makarov  <vmakarov@redhat.com>
2900         PR target/8340
2901         PR middle-end/47602
2902         PR rtl-optimization/55458
2903         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2904         (ix86_init_pic_reg): New.
2905         (ix86_select_alt_pic_regnum): Add check on pseudo register.
2906         (ix86_save_reg): Likewise.
2907         (ix86_expand_prologue): Remove PIC register initialization
2908         now performed in ix86_init_pic_reg.
2909         (ix86_output_function_epilogue): Add check on pseudo register.
2910         (set_pic_reg_ever_alive): New.
2911         (legitimize_pic_address): Replace df_set_regs_ever_live with new
2912         set_pic_reg_ever_alive.
2913         (legitimize_tls_address): Likewise.
2914         (ix86_pic_register_p): New check.
2915         (ix86_delegitimize_address): Add check on pseudo register.
2916         (ix86_expand_call): Insert move from pseudo PIC register to ABI
2917         defined REAL_PIC_OFFSET_TABLE_REGNUM.
2918         (TARGET_INIT_PIC_REG): New.
2919         (TARGET_USE_PSEUDO_PIC_REG): New.
2920         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2921         if pic_offset_table_rtx exists.
2922         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2923         Document.
2924         * doc/tm.texi: Regenerate.
2925         * function.c (assign_parms): Generate pseudo register for PIC.
2926         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2927         register.
2928         * ira-color.c (color_pass): Add check on pseudo register.
2929         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2930         register.
2931         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2932         register.
2933         (ira): Add target specific PIC register initialization.
2934         (do_reload): Keep PIC pseudo register.
2935         * lra-assigns.c (spill_for): Add checks on pseudo register.
2936         * lra-constraints.c (contains_symbol_ref_p): New.
2937         (lra_constraints): Enable lra risky transformations when PIC is pseudo
2938         register.
2939         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2940         * target.def (use_pseudo_pic_reg): New.
2941         (init_pic_reg): New.
2943 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2945         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2946         Remove m_SILVERMONT and m_INTEL from the tune.
2948 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2950         PR libfortran/63471
2951         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2952         when _HPUX_SOURCE is defined.
2954 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2956         PR tree-optimization/62127
2957         * tree.c (remap_type_1): When remapping array, remap
2958         also its type.
2960 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
2962         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2963         longer impact parallelization.
2965 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2967         PR bootstrap/63496
2968         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2970 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
2972         * asan.c (instrument_derefs): BIT_FIELD_REF added.
2974 2014-10-13  Richard Biener  <rguenther@suse.de>
2976         PR tree-optimization/63419
2977         * gimple-fold.h (gimple_convert): New function.
2978         * gimple-fold.c (gimple_convert): Likewise.
2979         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2980         to split out required conversions early.
2982 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
2984         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2985         Add the parts of an insn in reverse order, with the pattern at
2986         the top of the queue.  Detect when we're iterating over a SEQUENCE
2987         pattern and in that case just consider patterns of subinstructions.
2989 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2991         PR target/59401
2992         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2993         of rtx.
2994         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2995         insn walking.
2996         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2997         address.  Use def chains to handle GBR clobbering call insns.
2999 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
3001         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
3002         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
3003         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
3004         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
3005         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
3006         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
3007         * doc/gty.texi (for_user): Document new option.
3008         * gengtype.c (create_user_defined_type): Don't try to get a struct for
3009         char.
3010         (walk_type): Don't error out on for_user option.
3011         (write_func_for_structure): Emit user marking routines if requested by
3012         for_user option.
3013         (write_local_func_for_structure): Likewise.
3014         (main): Mark types with for_user option as used.
3015         * ggc.h (gt_pch_nx): Add overload for unsigned int.
3016         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
3017         * hash-table.h (ggc_hasher): New struct.
3018         (hash_table::create_ggc): New function.
3019         (gt_pch_nx): New overload for hash_table.
3021 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
3023         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
3024         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
3025         * config/sh/sh.c: Likewise.
3026         * config/sh/sh-mem.cc: Likewise.
3027         * config/sh/sh.md: Likewise.
3028         * config/sh/predicates.md: Likewise.
3029         * config/sh/sync.md: Likewise.
3031 2014-10-11  Martin Liska  <mliska@suse.cz>
3033         PR middle-end/63376
3034         * cgraphunit.c (symbol_table::process_new_functions): Missing call
3035         for call_cgraph_insertion_hooks added.
3037 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
3039         PR c/63495
3040         * stor-layout.c (min_align_of_type): Don't decrease alignment
3041         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
3042         TYPE_USER_ALIGN is set.
3044 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
3046         PR rtl-optimization/63483
3047         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
3048         references when alignment ANDs are involved.
3049         (write_dependence_p): Ditto.
3050         (may_alias_p): Ditto.
3052 2014-10-10  Marek Polacek  <polacek@redhat.com>
3054         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
3055         * doc/invoke.texi: Document -fsanitize=object-size.
3056         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
3057         or it into SANITIZE_UNDEFINED.
3058         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
3059         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
3060         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
3061         * opts.c (common_handle_option): Handle -fsanitize=object-size.
3062         * ubsan.c: Include tree-object-size.h.
3063         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
3064         (ubsan_expand_bounds_ifn): Use false instead of 0.
3065         (ubsan_expand_objsize_ifn): New function.
3066         (instrument_object_size): New function.
3067         (pass_ubsan::execute): Add object size instrumentation.
3068         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
3070 2014-10-10  Richard Henderson  <rth@redhat.com>
3072         PR target/63404
3073         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
3074         Restrict the set of expressions we're willing to move.
3076 2014-10-10  Jeff Law  <law@redhat.com>
3078         * ira.c (struct equivalence): Promote INIT_INSNs field to
3079         an rtx_insn_list.  Add comments.
3080         (no_equiv): Promote LIST to an rtx_insn_list.  Update
3081         testing for and creating the special marker.  Use methods
3082         to extract the insn and next pointers.  Promote INSN to an
3083         rtx_insn.
3084         (update_equiv_regs): Update test for special marker in the
3085         INIT_INSNs list.
3087 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3089         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
3090         * configure: Regenerate.
3091         * config/aarch64/aarch64.c (aarch64_override_options): Handle
3092         TARGET_FIX_ERR_A53_835769_DEFAULT.
3093         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
3094         value to 2.
3095         * doc/install.texi (aarch64*-*-*): Document
3096         new --enable-fix-cortex-a53-835769 option.
3098 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3099             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3101         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
3102         (ADJUST_INSN_LENGTH): Define.
3103         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
3104         * config/aarch64/aarch64.c (is_mem_p): New function.
3105         (is_memory_op): Likewise.
3106         (aarch64_prev_real_insn): Likewise.
3107         (is_madd_op): Likewise.
3108         (dep_between_memop_and_curr): Likewise.
3109         (aarch64_madd_needs_nop): Likewise.
3110         (aarch64_final_prescan_insn): Likewise.
3111         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
3112         and -mno-fix-cortex-a53-835769 options.
3114 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
3116         PR tree-optimization/63464
3117         * tree-switch-conversion.c (struct case_bit_test): Remove
3118         hi and lo fields, add wide_int mask field.
3119         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
3120         hi/lo fields into wide_int mask operations, optimize by pretending
3121         minval to be 0 if maxval is small enough.
3122         (process_switch): Adjust caller.
3124 2014-10-10  Richard Biener  <rguenther@suse.de>
3126         PR tree-optimization/63379
3127         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
3128         a neutral operand for min/max when it is not a reduction chain.
3130 2014-10-10  Richard Biener  <rguenther@suse.de>
3132         PR tree-optimization/63476
3133         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
3134         (BB_LIVE_VOP_ON_EXIT): New define.
3135         (create_expression_by_pieces): Assign VUSEs to stmts.
3136         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
3137         (pass_pre::execute): Assert virtual SSA form is up-to-date
3138         after insertion.
3140 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
3142         * lra-assigns.c (assign_by_spills): Error out on spill failure.
3144 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
3146         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
3147         assertion.
3149 2014-10-09  Richard Biener  <rguenther@suse.de>
3151         PR tree-optimization/63380
3152         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
3153         may trap.
3155 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3157         * config/avr/avr.opt (mmcu=): Change to have a string value.
3158         (mn-flash=, mskip-bug, march=, mrmw): New options.
3159         (HeaderInclude): New.
3160         (mmcu=): Remove Var / Init clauses.
3161         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
3162         -specs option.
3163         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
3164         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
3165         (SYMBOL_FLAG_IO_LOW): Define.
3166         (avr_device_to_as, avr_device_to_ld): Don't declare.
3167         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3168         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
3169         (EXTRA_SPEC_FUNCTIONS): Don't define.
3170         (ASM_SPEC): Translate -arch= option to -mmcu= option.
3171         (LINK_SPEC): Translate -arch= option to -m= option.
3172         Don't use device_to_ld / device_to_data_start.
3173         (STARTFILE_SPEC): Now empty.
3174         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
3175         * config/avr/gen-avr-mmcu-specs.c: New file.
3176         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
3177         (s-device-specs): Likewise.
3178         (GCC_PASSES): Add s-device-specs.
3179         (install-driver): Depend on install-device-specs.
3180         (install-device-specs): New rule.
3181         * config/avr/avr.c (avr_option_override): Look up mcu arch by
3182         avr_arch_index and provide fallback initialization for avr_n_flash.
3183         (varasm.h): #include.
3184         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
3185         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
3186         (avr_attribute_table): Add "io", "address" and "io_low".
3187         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
3188         Add special handling for symbols with "io" and/or "address" attributes.
3189         (avr_asm_asm_output_aligned_bss): New function.
3190         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
3191         as appropriate.  Handle io_low attribute.
3192         (avr_out_sbxx_branch): Handle symbolic io addresses.
3193         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
3194         avr_n_flash instead of avr_current_device->n_flash.
3195         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
3196         (avr_emit_movmemhi): Likewise.
3197         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
3198         Use TARGET_RMW instead of avr_current_device->dev_attributes.
3199         Don't define avr_current_device->macro (that's the specfile's job).
3200         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
3201         * config/avr/avr.c (avr_2word_insn_p): Likewise.
3202         * config/avr/avr.md (*cpse.ne): Likewise.
3203         (mov<mode>): Use avr_eval_addr_attrib.
3204         (cbi): Change constraint for low_io_address_operand operand to "i".
3205         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
3206         * config/avr/predicates.md (io_address_operand):
3207         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
3208         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
3209         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
3210         Update prototype.
3211         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
3212         * config/avr/genmultilib.awk: Use -march=.
3213         Remove Multilib matches processing.
3214         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
3215         * config/avr/avr-arch.h: Add double include guard.
3216         (avr_mcu_t) <library_name>: Update comment.
3217         * config/avr/driver-avr.c (avr_device_to_as): Delete.
3218         (avr_device_to_ld, avr_device_to_data_start): Likewise.
3219         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
3220         (avr_device_to_sp8): Likewise.
3221         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
3223         * doc/extend.texi (io, address): Document new AVR variable attributes.
3224         (io_low): Likewise.
3226 2014-10-09  Marek Polacek  <polacek@redhat.com>
3228         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
3230 2014-10-08  Richard Biener  <rguenther@suse.de>
3232         PR tree-optimization/61969
3233         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
3234         variables.
3236 2014-10-09  Richard Biener  <rguenther@suse.de>
3238         PR tree-optimization/63445
3239         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
3240         overflow for non-equality compares.
3242 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
3244         PR rtl-optimization/57003
3245         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3246         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
3247         killing regs_invalidated_by_call.
3249 2014-10-08  Teresa Johnson  <tejohnson@google.com>
3251         PR bootstrap/63432.
3252         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
3253         (ssa_fix_duplicate_block_edges): Invoke it.
3254         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
3256 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
3258         PR target/52941
3259         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
3260         atomic_fetch_<fetchop_name>si_hard,
3261         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
3262         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
3263         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
3264         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
3266 2014-10-08  Rong Xu  <xur@google.com>
3268         * gcov-tool.c (profile_overlap): New driver function
3269         to compute profile overlap.
3270         (print_overlap_usage_message): New.
3271         (overlap_usage): New.
3272         (do_overlap): New.
3273         (print_usage): Add calls to overlap function.
3274         (main): Ditto.
3275         * doc/gcov-tool.texi: Add documentation.
3277 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3279         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
3280         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
3282 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
3284         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
3285         pattern matching of MEM_REF.
3286         (check_stmt_for_type_change): Update.
3288 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3290         * config/mips/linux64.h: Remove.
3291         * config/mips/gnu-user64.h: Remove.
3292         * gcc.config (mips*-*-*): Remove references to linux64.h and
3293         gnu-user64.h
3294         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
3295         with modified version from gnu-user64.h.
3296         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
3297         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
3298         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
3299         linux64.h.
3300         (GNU_USER_LINK_EMULATION64): Ditto.
3301         (GNU_USER_LINK_EMULATIONN32): Ditto.
3302         (GLIBC_DYNAMIC_LINKER32): Ditto.
3303         (GLIBC_DYNAMIC_LINKER64): Ditto.
3304         (GLIBC_DYNAMIC_LINKERN32): Ditto.
3305         (UCLIBC_DYNAMIC_LINKER32): Ditto.
3306         (UCLIBC_DYNAMIC_LINKER64): Ditto.
3307         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
3308         (BIONIC_DYNAMIC_LINKERN32): Ditto.
3309         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
3310         (GLIBC_DYNAMIC_LINKER): Delete.
3311         (UCLIBC_DYNAMIC_LINKER): Delete.
3313 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3314             Richard Biener  <rguenther@suse.de>
3316         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
3317         Get address space from operand 0 (BASE).
3319 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
3321         PR target/61387
3322         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
3324 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
3326         * dwarf2out.c: Remove current_function_has_inlines.
3327         (gen_subprogram_die): Same.
3328         (gen_inlined_subroutine_die): Same.
3330 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
3332         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
3333         type.
3334         (_addcarry_u64): Ditto.
3335         (_addcarryx_u64): Ditto.
3337 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3339         * cgraph.h (cgraph_node::get_fun): Declare.
3340         * cgraph.c (cgraph_node::get_fun): New method.
3341         * ipa-inline.c (can_inline_edge_p): Use it.
3343 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3345         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
3346         and -ftrapping-math.
3347         * lto-wrapper.c (merge_and_complain): Likewise.
3348         (run_gcc): Likewise.
3350 2014-10-06  Rong Xu  <xur@google.com>
3352         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
3353         * tree-profile.c: (params.h): New include.
3354         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
3355         and __gcov_indirect_call_topn_counters for
3356         indirect_call_topn_profile.
3357         (gimple_init_edge_profiler): New decls for
3358         __gcov_indirect_call_topn_profiler.
3359         (gimple_gen_ic_profiler): Generate the correct profiler call.
3360         (gimple_gen_ic_func_profiler): Fix format.
3361         * value-prof.c (params.h): New include.
3362         (dump_histogram_value): Hanlde indirect_call_topn counters.
3363         (stream_in_histogram_value): Ditto.
3364         (gimple_indirect_call_to_profile): Use indirect_call_topn
3365         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
3366         (gimple_find_values_to_profile): Hanlde indirect_call_topn
3367         counters.
3368         * value-prof.h (enum hist_type): Histrogram type for
3369         indirect_call_topn counters.
3370         * profile.c (instrument_values): Instrument
3371         indirect_call_topn counters.
3373 2014-10-06  Rong Xu  <xur@google.com>
3375         * Makefile.in: Fix dependence.
3376         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
3377         indirect call topn profiler.
3378         * gcov-io.h: Ditto.
3380 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3382         * calls.c (expand_call): Do not use the target as the return slot if
3383         it is not sufficiently aligned.
3385 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3387         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
3388         discussion of permutes and why we don't handle them.
3390 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3392         * config/sparc/predicates.md (int_register_operand): Delete.
3394 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3396         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
3398 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
3400         * ubsan.h (ubsan_get_source_location): New prototype.
3401         * ubsan.c (ubsan_source_location_type): New variable.
3402         Function renamed to ...
3403         (ubsan_get_source_location_type): ... this.  Cache
3404         return value in ubsan_source_location_type variable.
3405         (ubsan_source_location, ubsan_create_data): Use
3406         ubsan_get_source_location_type instead of
3407         ubsan_source_location_type.
3408         * asan.c (asan_protect_global): Don't protect globals
3409         with ubsan_get_source_location_type () type.
3410         (asan_add_global): Provide global decl location info
3411         if possible.
3413 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3415         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
3416         sanity check.
3418 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3420         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
3421         on size.
3422         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
3423         into vptr pointer.
3424         (ipa_polymorphic_call_context::dump): Fix formating.
3425         (walk_ssa_copies): Add logic avoiding loops; update uses.
3426         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
3428 2014-10-02  Mark Wielaard  <mjw@redhat.com>
3430         PR debug/63239
3431         * dwarf2out.c (gen_subprogram_die): When a member function is
3432         explicitly deleted then add a DW_AT_GNU_deleted attribute.
3433         * langhooks.h (struct lang_hooks_for_decls): Add
3434         function_decl_deleted_p langhook.
3435         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
3436         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
3438 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3440         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
3441         NULL pointer checks.
3442         (ipa_polymorphic_call_context::get_dynamic_type): Return true
3443         if type doesn't change.
3444         * cgraph.h (cgraph_indirect_call_info): New flag.
3445         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
3446         (cgraph_node::dump): Dump it.
3447         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
3448         of context.get_dynamic_type.
3449         (ipa_make_edge_direct_to_target): Do not speculate
3450         edge that is already speuclative.
3451         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
3452         speculate to __builtin_unreachable
3453         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
3454         vptr_changed.
3455         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
3457 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3459         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
3460         get_dynamic_type; drop TODO.
3461         * ipa-polymorphic-call.c
3462         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
3463         for otr_type to be unknown.
3465 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3467         * common/config/score/score-common.c: Remove.
3468         * config.gcc: Remove support for score-*.
3469         * config/score/constraints.md: Remove.
3470         * config/score/elf.h: Remove.
3471         * config/score/predicates.md: Remove.
3472         * config/score/score-conv.h: Remove.
3473         * config/score/score-generic.md: Remove.
3474         * config/score/score-modes.def: Remove.
3475         * config/score/score-protos.h: Remove.
3476         * config/score/score.c: Remove.
3477         * config/score/score.h: Remove.
3478         * config/score/score.md: Remove.
3479         * config/score/score.opt: Remove.
3480         * doc/md.texi: Don't document score-*.
3482 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3484         PR pch/63429
3485         * genconditions.c: Directly include ggc.h before rtl.h.
3487 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3489         * ipa-polymorphic-call.c
3490         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
3491         code determining speculative type.
3492         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
3494 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3496         * altivec.md (altivec_lvsl): New define_expand.
3497         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
3498         (altivec_lvsr): New define_expand.
3499         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
3500         * rs6000.c (rs6000_expand_builtin): Change to use
3501         altivec_lvs[lr]_direct; remove commented-out code.
3503 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3505         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3506         Issue a warning message when vec_lvsl or vec_lvsr is used with a
3507         little endian target.
3509 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3511         * tree-pretty-print.c (dump_location): Make it extern. Dump also
3512         the column.
3513         * tree-pretty-print.h (dump_location): Declare.
3514         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
3515         (pp_gimple_stmt_1): Likewise.
3516         (dump_implicit_edges): Likewise.
3517         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
3518         LOCATION_LINE.
3521 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3523         * gcc.c (driver::global_initializations): Remove "const" so
3524         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
3525         and decoded_options_count.
3527 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
3529         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
3530         macro.
3531         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
3532         TARGET_E500_DOUBLE case here.
3534 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
3536         PR c++/54427
3537         PR c++/57198
3538         PR c++/58845
3539         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
3541 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3543         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
3544         * lto-cgraph.c (lto_output_edge, input_edge): Stream
3545         in_polymorphic_cdtor
3546         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
3547         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
3548         * cgraphclones.c (cgraph_edge::clone): Likewise.
3549         * ipa-prop.c (update_jump_functions_after_inlining,
3550         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
3551         to possible_dynamic_type_change.
3552         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
3553         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3554         IN_POLY_CDOTR argument.
3556         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
3557         for BASE and OUTER_TYPE being NULL.
3558         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3559         in_poly_cdtor parameter.
3561 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3563         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
3564         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
3565         TARGET_AVX512F.
3566         (expand_vec_perm_1): Likewise.
3568 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3569             Uros Bizjak  <ubizjak@gmail.com>
3571         PR tree-optimization/61403
3572         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
3573         error in comment.  Also optimize 256-bit vectors for AVX2
3574         or AVX (floating vectors only), provided the first permutation
3575         can be performed in one insn.
3577 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3579         * gcc.c (class driver): New class.
3580         (main): Reimplement in terms of driver::main, moving most of the
3581         locals to be locals within individual methods of class driver.
3582         The remaining locals "explicit_link_files", "decoded_options" and
3583         "decoded_options_count" are used by multiple driver:: methods, and
3584         so become member data.  Doing so isolates the argc/argv reads and
3585         writes.  Replace "goto out" with a special exit code from
3586         new method driver::prepare_infiles.  Split out the old
3587         implementation of main into the following...
3588         (driver::main): New function, corresponding to the old "main"
3589         implementation.
3590         (driver::set_progname): New function, taken from the old
3591         "main" implementation.
3592         (driver::expand_at_files): Likewise.
3593         (driver::decode_argv): Likewise.
3594         (driver::global_initializations): Likewise.
3595         (driver::build_multilib_strings): Likewise.
3596         (driver::set_up_specs): Likewise.
3597         (driver::putenv_COLLECT_GCC): Likewise.
3598         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
3599         (driver::handle_unrecognized_options): Likewise.
3600         (driver::maybe_print_and_exit): Likewise.
3601         (driver::prepare_infiles): Likewise.
3602         (driver::do_spec_on_infiles): Likewise.
3603         (driver::maybe_run_linker): Likewise.
3604         (driver::final_actions): Likewise.
3605         (driver::get_exit_code): Likewise.
3607 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
3609         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
3610         don't emit empty ctors.
3612 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
3614         * convert.c (convert_to_integer): Do not introduce useless conversions
3615         between integral types.
3617 2014-10-03  David Sherwood  <david.sherwood@arm.com>
3619         * ira-int.h (ira_allocno): Mark hard_regno as signed.
3621 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3623         * lra-constraints.c (inherit_in_ebb): Handle calls with
3624         multiple return values.
3625         * caller-save.c (save_call_clobbered_regs): Likewise.
3627 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3629         * tree-vect-data-refs.c (vect_permute_load_chain,
3630         vect_shift_permute_load_chain): Fix a typo in temporary var names,
3631         suffle3 to shuffle3.
3633         PR libgomp/61200
3634         * omp-low.c (taskreg_contexts): New variable.
3635         (scan_omp_parallel): Push newly created context into taskreg_contexts
3636         vector and move record layout code to finish_taskreg_scan.
3637         (scan_omp_task): Likewise.
3638         (finish_taskreg_scan): New function.
3639         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3640         vector elements and release it.
3642         PR target/62128
3643         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3644         of palignr arguments can't be used due to min 0 or max - min
3645         too high, try also op0, op1 order of palignr arguments.
3647 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
3649         * cgraph.h (ipa_polymorphic_call_context):
3650         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3651         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3652         * ipa-polymorphic-call.c
3653         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3654         past end of dynamic types.
3655         (ipa_polymorphic_call_context::stream_out,
3656         speculative_outer_type): Stream dynamic flag.
3657         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3658         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3659         Clear DYNAMIC.
3660         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3661         set it.
3662         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3663         * ipa-prop.c (update_jump_functions_after_inlining,
3664         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3666 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3668         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3669         up when synthesizing counts to avoid rounding errors.
3671 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3673         PR middle-end/63422
3674         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3675         asserts to handle incoming insanities.
3677 2014-10-02  Martin Jambor  <mjambor@suse.cz>
3679         PR tree-optimization/63375
3680         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3681         references.
3683 2014-10-02  Olivier Hainque  <hainque@adacore.com>
3685         * Makefile.in (CROSS): Define, to @CROSS.
3687 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
3689         PR target/62128
3690         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3691         if it expands to a single insn only.
3692         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
3693         fail unless in_order is true.  Add forward declaration.
3694         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3695         is useful for one_operand_p.
3696         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3698 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3700         * cgraphclones.c (build_function_type_skip_args): Do not make new
3701         type variant of old.
3703 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3705         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3706         when speculation is added.
3707         (ipa_edge_args): Add polymorphic_call_contexts.
3708         (ipa_get_ith_polymorhic_call_context): New accesor.
3709         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3710         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3711         (ipa_compute_jump_functions_for_edge): Compute contexts.
3712         (update_jump_functions_after_inlining): Update contexts.
3713         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3714         update dumping; add speculative edge creation.
3715         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3716         context updating.
3717         (update_indirect_edges_after_inlining): Pass down context.
3718         (ipa_edge_duplication_hook): Duplicate contexts.
3719         (ipa_write_node_info): Stream out contexts.
3720         (ipa_read_node_info): Stream in contexts.
3721         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3722         types.
3723         (try_speculative_devirtualization): New function.
3724         * ipa-utils.h (try_speculative_devirtualization): Declare.
3726 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3728         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3729         dumping during WPA.
3731 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3733         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3734         type variants.
3736 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3738         * ipa-polymorphic-call.c
3739         (ipa_polymorphic_call_context::restrict_to_inner_class):
3740         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3741         use speculation_consistent_p to do so; Add CONSDER_BASES
3742         and CONSIDER_PLACEMENT_NEW parameters.
3743         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3744         short circuit obvious cases.
3745         (ipa_polymorphic_call_context::dump): Improve formatting.
3746         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3747         combine_speculation_with to record speculations; Do not ICE when
3748         object is located in pointer type decl; do not ICE for methods
3749         of UNION_TYPE; do not record nonpolymorphic types.
3750         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3751         (ipa_polymorphic_call_context::combine_speculation_with): New method.
3752         (ipa_polymorphic_call_context::combine_with): New method.
3753         (ipa_polymorphic_call_context::make_speculative): Move here; use
3754         combine speculation.
3755         * cgraph.h (ipa_polymorphic_call_context): Update
3756         restrict_to_inner_class prototype; add offset_by, make_speculative,
3757         combine_with, useless_p, combine_speculation_with and
3758         speculation_consistent_p methods.
3759         (ipa_polymorphic_call_context::offset_by): New method.
3760         (ipa_polymorphic_call_context::useless_p): New method.
3762 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3764         PR rtl-optimization/62151
3765         * combine.c (can_combine_p): Allow the destination register of INSN
3766         to be clobbered in I3.
3767         (subst): Do not substitute into clobbers of registers.
3769 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
3771         PR debug/63342
3772         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3773         offset, TARGET_MEM_REF and SSA_NAME.
3775         * config/i386/i386.c (expand_vec_perm_palignr): Handle
3776         256-bit vectors for TARGET_AVX2.
3778         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3779         dfirst permutation.
3781         PR target/63428
3782         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3783         argument to avx2_permv2ti.
3785 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3787         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3789 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
3791         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3792         (fmod<mode>3): Ditto.
3793         (fpremxf4_i387): Ditto.
3794         (reminderxf3): Ditto.
3795         (reminder<mode>3): Ditto.
3796         (fprem1xf4_i387): Ditto.
3798 2014-09-30  Teresa Johnson  <tejohnson@google.com>
3800         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3801         duplicate_blocks bitmap.
3802         (remove_ctrl_stmt_and_useless_edges): Ditto.
3803         (create_block_for_threading): Ditto.
3804         (compute_path_counts): New function.
3805         (update_profile): Ditto.
3806         (recompute_probabilities): Ditto.
3807         (update_joiner_offpath_counts): Ditto.
3808         (freqs_to_counts_path): Ditto.
3809         (clear_counts_path): Ditto.
3810         (ssa_fix_duplicate_block_edges): Update profile info.
3811         (ssa_create_duplicates): Pass new parameter.
3812         (ssa_redirect_edges): Remove old profile update.
3813         (thread_block_1): New duplicate_blocks bitmap,
3814         remove old profile update.
3815         (thread_single_edge): Pass new parameter.
3817 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
3819         PR middle-end/62120
3820         * varasm.c (decode_reg_name_and_count): Check availability for
3821         registers from ADDITIONAL_REGISTER_NAMES.
3823 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
3825         PR plugins/63410
3826         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3827         (PLUGIN_HEADERS): Add pass-instances.def.
3829 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
3831         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3832         iterator.
3833         * config/aarch64/aarch64-simd.md
3834         (aarch64_sqdmull_laneq<mode>): Expand iterator.
3835         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3836         (vqdmulls_lane_s32): Fix return type.
3837         (vqdmulls_laneq_s32): New.
3839 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
3841         PR inline-asm/63282
3842         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3843         or invert_jump_1 if jump isn't any_condjump_p.
3845 2014-09-30  Terry Guo  <terry.guo@arm.com>
3847         * config/arm/arm-cores.def (cortex-m7): New core name.
3848         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3849         (fpv5-d16): Ditto.
3850         * config/arm/arm-tables.opt: Regenerated.
3851         * config/arm/arm-tune.md: Regenerated.
3852         * config/arm/arm.h (TARGET_VFP5): New macro.
3853         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3854         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3855         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3856         * doc/invoke.texi: Document new cpu and fpu names.
3858 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
3860         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3861         before sinking insn.
3863 2014-09-30  David Sherwood  <david.sherwood@arm.com>
3865         * ira-int.h (ira_allocno): Add "wmode" field.
3866         * ira-build.c (create_insn_allocnos): Add new "parent" function
3867         parameter.
3868         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3869         that cannot be accessed in wmode.
3871 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
3873         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3874         integer overflow.
3876 2014-09-29  Andi Kleen  <ak@linux.intel.com>
3878         * opts.c (print_filtered_help): Print --param min/max/default
3879         with -Q.
3881 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3883         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3885 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3887         * tree-vrp.c (get_single_symbol): New function.
3888         (build_symbolic_expr): Likewise.
3889         (symbolic_range_based_on_p): New predicate.
3890         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3891         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
3892         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3893         operand is symbolic and based on the other operand.
3895 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
3897         * config/microblaze/microblaze.md (call_internal1): Use VOID
3898         instead of SI to fix "((void (*)(void)) 0)()" issue
3900 2014-09-29  Nick Clifton  <nickc@redhat.com>
3902         * config/msp430/msp430.c (msp430_expand_prologue): Return a
3903         CLOBBER rtx for naked functions.
3904         (msp430_expand_epilogue): Likewise.
3905         (msp430_use_f5_series_hwmult): Cache result.
3906         (use_32bit_hwmult): Cache result.
3907         (msp430_no_hwmult): New function.
3908         (msp430_output_labelref): Use it.
3910 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
3912         PR middle-end/63247
3913         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3914         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3915         use the alignment of avar rather than ovar.
3917 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
3919         * config/pa/pa.c (pa_output_function_epilogue): Only update
3920         last_address when a nonnote insn is found.
3922 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3924         PR ipa/60665
3925         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3927 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3929         PR ipa/62121
3930         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3931         fix pasto in checking array size.
3933 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3935         PR middle-end/35545
3936         * passes.def (pass_tracer): Move before last dominator pass.
3938 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
3940         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
3941         users.
3942         (run_attempt): Handle errors of "pex_run" invocation.
3944 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
3946         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3947         (CC1_SPEC): Define.
3948         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3949         (TARGET_ASAN_SHADOW_OFFSET): Define.
3951 2014-09-26  Martin Liska  <mliska@suse.cz>
3953         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3954         introduced.
3955         * cgraph.h: Likewise.
3956         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3957         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3958         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3959         * tree-ssa-alias.h: Likewise.
3961 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
3962             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3964         * common.opt: New option.
3965         * doc/invoke.texi: Describe new option.
3966         * gcc.c (execute): Don't free first string early, but at the end
3967         of the function.  Call retry_ice if compiler exited with
3968         ICE_EXIT_CODE.
3969         (main): Factor out common code.
3970         (print_configuration): New function.
3971         (files_equal_p): Likewise.
3972         (check_repro): Likewise.
3973         (run_attempt): Likewise.
3974         (do_report_bug): Likewise.
3975         (append_text): Likewise.
3976         (try_generate_repro): Likewise
3978 2014-09-25  Andi Kleen  <ak@linux.intel.com>
3980         * config/i386/i386.c (x86_print_call_or_nop): New function.
3981         (x86_function_profiler): Support -mnop-mcount and
3982         -mrecord-mcount.
3983         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3984         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3986 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3988         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3989         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3990         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3991         Remove.
3993 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3995         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3996         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3997         types_odr_comparable): Declare.
3998         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3999         * ipa-polymorphic-call.c: New file.
4000         (contains_polymorphic_type_p, possible_placement_new,
4001         ipa_polymorphic_call_context::restrict_to_inner_class,
4002         contains_type_p, decl_maybe_in_construction_p,
4003         ipa_polymorphic_call_context::stream_out,
4004         ipa_polymorphic_call_context::debug,
4005         ipa_polymorphic_call_context::stream_in,
4006         ipa_polymorphic_call_context::set_by_decl,
4007         ipa_polymorphic_call_context::set_by_invariant,
4008         walk_ssa_copies,
4009         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4010         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
4011         extr_type_from_vtbl_ptr_store, record_known_type
4012         check_stmt_for_type_change,
4013         ipa_polymorphic_call_context::get_dynamic_type): Move here from
4014         ipa-devirt.c
4015         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
4016         and streamer-hooks.h
4017         (contains_polymorphic_type_p, possible_placement_new,
4018         ipa_polymorphic_call_context::restrict_to_inner_class,
4019         contains_type_p, decl_maybe_in_construction_p,
4020         ipa_polymorphic_call_context::stream_out,
4021         ipa_polymorphic_call_context::debug,
4022         ipa_polymorphic_call_context::stream_in,
4023         ipa_polymorphic_call_context::set_by_decl,
4024         ipa_polymorphic_call_context::set_by_invariant,
4025         walk_ssa_copies,
4026         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4027         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
4028         extr_type_from_vtbl_ptr_store, record_known_type
4029         check_stmt_for_type_change,
4030         ipa_polymorphic_call_context::get_dynamic_type): Move to
4031         ipa-polymorphic-call.c
4032         (type_all_derivations_known_p, types_odr_comparable,
4033         types_must_be_same_for_odr): Export.
4034         (type_known_to_have_no_deriavations_p): New function.
4035         * Makefile.in: Add ipa-polymorphic-call.c
4037 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
4039         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
4040         for better storage.
4041         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
4042         (possible_polymorphic_call_targets): Instead of computing both
4043         speculative and non-speculative answers, do just one at a time.
4044         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
4045         (dump_targets): Break out from ...
4046         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
4047         and non-speculative lists.
4048         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
4049         * ipa-utils.h (possible_polymorphic_call_targets): Update.
4051 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
4053         PR rtl-optimization/63348
4054         * emit-rtl.c (try_split): Do not emit extra barrier.
4056 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
4058         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
4059         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
4060         new predicates.
4061         (aarch64_<sur>shll2_n<mode>): Likewise.
4062         (aarch64_<sur>shr_n<mode>): Likewise.
4063         (aarch64_<sur>sra_n<mode>: Likewise.
4064         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
4065         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
4066         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
4067         * config/aarch64/iterators.md (ve_mode): New.
4068         (offsetlr): Remap to infix text for use in new predicates.
4069         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
4070         (aarch64_simd_shift_imm_hi): Likewise.
4071         (aarch64_simd_shift_imm_si): Likewise.
4072         (aarch64_simd_shift_imm_di): Likewise.
4073         (aarch64_simd_shift_imm_offset_qi): Likewise.
4074         (aarch64_simd_shift_imm_offset_hi): Likewise.
4075         (aarch64_simd_shift_imm_offset_si): Likewise.
4076         (aarch64_simd_shift_imm_offset_di): Likewise.
4077         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
4078         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
4079         (aarch64_simd_shift_imm_bitsize_si): Likewise.
4080         (aarch64_simd_shift_imm_bitsize_di): Likewise.
4082 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
4084         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
4085         new created BB as the intersection of live-in from "old_dest" and
4086         live-out from "bb".
4088 2014-09-25  Felix Yang  <felix.yang@huawei.com>
4090         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
4091         * genautomata.c (merge_states): Ditto.
4093 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4095         PR target/62218
4096         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
4097         in instruction sequence.
4099 2014-09-25  Nick Clifton  <nickc@redhat.com>
4101         PR target/62218
4102         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
4103         in instruction sequence.
4105 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4107         PR target/63335
4108         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
4109         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
4111 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4112             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4113             Anna Tikhonova  <anna.tikhonova@intel.com>
4114             Ilya Tocar  <ilya.tocar@intel.com>
4115             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4116             Ilya Verbin  <ilya.verbin@intel.com>
4117             Kirill Yukhin  <kirill.yukhin@intel.com>
4118             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4120         * config/i386/sse.md
4121         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
4122         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
4123         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
4124         (define_expand "<avx512>_perm<mode>_mask"): ... this.
4125         Use VI8F_256_512 mode iterator.
4126         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
4127         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
4129 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4130             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4131             Anna Tikhonova  <anna.tikhonova@intel.com>
4132             Ilya Tocar  <ilya.tocar@intel.com>
4133             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4134             Ilya Verbin  <ilya.verbin@intel.com>
4135             Kirill Yukhin  <kirill.yukhin@intel.com>
4136             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4138         * config/i386/sse.md
4139         (define_insn "avx_movshdup256<mask_name>"): Add masking.
4140         (define_insn "sse3_movshdup<mask_name>"): Ditto.
4141         (define_insn "avx_movsldup256<mask_name>"): Ditto.
4142         (define_insn "sse3_movsldup<mask_name>"): Ditto.
4143         (define_insn "vec_dupv2df<mask_name>"): Ditto.
4144         (define_insn "*vec_concatv2df"): Add EVEX version.
4146 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4147             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4148             Anna Tikhonova  <anna.tikhonova@intel.com>
4149             Ilya Tocar  <ilya.tocar@intel.com>
4150             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4151             Ilya Verbin  <ilya.verbin@intel.com>
4152             Kirill Yukhin  <kirill.yukhin@intel.com>
4153             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4155         * config/i386/sse.md
4156         (define_insn "vec_set<mode>_0"): Add EVEX version.
4158 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4159             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4160             Anna Tikhonova  <anna.tikhonova@intel.com>
4161             Ilya Tocar  <ilya.tocar@intel.com>
4162             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4163             Ilya Verbin  <ilya.verbin@intel.com>
4164             Kirill Yukhin  <kirill.yukhin@intel.com>
4165             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4167         * config/i386/sse.md
4168         (define_insn
4169         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
4170         New.
4171         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4172         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
4173         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
4174         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
4175         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
4176         (define_expand "sse2_cvtpd2ps_mask): New.
4177         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
4178         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
4180 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4181             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4182             Anna Tikhonova  <anna.tikhonova@intel.com>
4183             Ilya Tocar  <ilya.tocar@intel.com>
4184             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4185             Ilya Verbin  <ilya.verbin@intel.com>
4186             Kirill Yukhin  <kirill.yukhin@intel.com>
4187             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4189         * config/i386/i386.c
4190         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
4191         (ufix_notruncv8dfv8si2_mask_round): ... this.
4192         * config/i386/sse.md
4193         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
4194         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
4195         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
4196         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
4197         (define_expand "sse2_cvtpd2dq"): Delete.
4198         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
4199         make 2nd operand const0 vector.
4200         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
4201         Delete.
4202         (define_mode_attr pd2udqsuff): New.
4203         (define_insn
4204         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
4205         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
4206         (define_insn "*avx_cvttpd2dq256_2"): Delete.
4207         (define_expand "sse2_cvttpd2dq"): Ditto.
4208         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
4209         make 2nd operand const0 vector.
4211 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
4213         PR tree-optimization/63341
4214         * tree-vectorizer.h (vect_create_data_ref_ptr,
4215         vect_create_addr_base_for_vector_ref): Add another tree argument
4216         defaulting to NULL_TREE.
4217         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
4218         argument, pass it down to vect_create_addr_base_for_vector_ref.
4219         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
4220         add that to base_offset too if non-NULL.
4221         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
4222         for dr_explicit_realign_optimized set it to vector byte size
4223         - 1 instead of setting offset, pass byte_offset down to
4224         vect_create_data_ref_ptr.
4226 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4228         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
4229         forgotten debug output; canonicalize querries more wtih LTO.
4231 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4233         * cgraph.h (class ipa_polymorphic_call_context): Move here from
4234         ipa-utils.h; add stream_int and stream_out methods.
4235         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
4236         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
4237         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
4238         add CONTEXT.
4239         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4240         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4241         ipa_polymorphic_call_context::clear_speculation,
4242         ipa_polymorphic_call_context::clear_outer_type): Move here from
4243         ipa-utils.h
4244         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
4245         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4246         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4247         ipa_polymorphic_call_context::clear_speculation,
4248         ipa_polymorphic_call_context::clear_outer_type): Likewise.
4249         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
4250         streamer-hooks.h
4251         (ipa_polymorphic_call_context::stream_out): New method.
4252         (ipa_polymorphic_call_context::stream_in): New method.
4253         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
4254         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
4255         OUTER_TYPE.
4256         (ipa_analyze_call_uses): Simplify.
4257         (update_indirect_edges_after_inlining): Do not care about outer_type.
4258         (ipa_write_indirect_edge_info): Update.
4259         (ipa_write_indirect_edge_info): Likewise.
4260         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
4261         (dump_edge_flags): Break out from ...
4262         (cgraph_node::dump): ... here; dump indirect edges.
4264 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4266         * ipa-utils.h (polymorphic_call_context): Add
4267         metdhos dump, debug and clear_outer_type.
4268         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4269         (ipa_polymorphic_call_context::clear_outer_type): New method.
4270         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
4271         * ipa-devirt.c (types_odr_comparable): New function.
4272         (types_must_be_same_for_odr): New function.
4273         (odr_subtypes_equivalent_p): Simplify.
4274         (possible_placement_new): Break out from ...
4275         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
4276         be more cuatious about returning false in cases the context may be
4277         valid in derived type or via placement new.
4278         (contains_type_p): Clear maybe_derived_type
4279         (ipa_polymorphic_call_context::dump): New method.
4280         (ipa_polymorphic_call_context::debug): New method.
4281         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
4282         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
4283         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4284         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
4285         to suceed on all valid cases; remove confused sanity check.
4286         (dump_possible_polymorphic_call_targets): Simplify.
4288 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
4290         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
4291         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
4292         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
4293         varpool.c: Rename all instances of DECL_ABSTRACT to
4294         DECL_ABSTRACT_P.
4296 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4298         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
4299         special handling for stores whose SET_SRC is an UNSPEC (such as
4300         UNSPEC_STVE).
4302 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
4304         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
4305         !REG_P (src) to release more instruction sink opportunities.
4307 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4309         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
4310         move costs for 128-bit types.
4312 2014-09-24  Martin Jambor  <mjambor@suse.cz>
4314         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
4315         when duplicating a PASS_THROUGH jump function when creating a
4316         speculative edge.
4318 2014-09-24  Marek Polacek  <polacek@redhat.com>
4320         PR c/61405
4321         PR c/53874
4322         * asan.c (maybe_instrument_call): Add default case.
4323         * ipa-pure-const.c (special_builtin_state): Likewise.
4324         * predict.c (expr_expected_value_1): Likewise.
4325         * lto-streamer-out.c (write_symbol): Initialize variable.
4327 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4329         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
4330         the lane.
4331         (vmuld_laneq_f64): Likewise.
4332         (vmuls_lane_f32): Likewise.
4333         (vmuls_laneq_f32): Likewise.
4335 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
4337         PR bootstrap/63235
4338         * varpool.c (varpool_node::add): Pass decl attributes
4339         to lookup_attribute.
4341 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
4343         PR sanitizer/63316
4344         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
4346 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4348         PR tree-optimization/63266
4349         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
4350         marker for unknown byte value.
4351         (MARKER_MASK): New macro.
4352         (MARKER_BYTE_UNKNOWN): New macro.
4353         (HEAD_MARKER): New macro.
4354         (do_shift_rotate): Mark bytes with unknown values due to sign
4355         extension when doing an arithmetic right shift. Replace hardcoded
4356         mask for marker by new MARKER_MASK macro.
4357         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
4358         numbers accordingly.
4360 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4361             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4362             Anna Tikhonova  <anna.tikhonova@intel.com>
4363             Ilya Tocar  <ilya.tocar@intel.com>
4364             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4365             Ilya Verbin  <ilya.verbin@intel.com>
4366             Kirill Yukhin  <kirill.yukhin@intel.com>
4367             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4369         * config/i386/sse.md
4370         (define_insn
4371         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
4372         Add masking.
4373         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
4374         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
4376 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4377             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4378             Anna Tikhonova  <anna.tikhonova@intel.com>
4379             Ilya Tocar  <ilya.tocar@intel.com>
4380             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4381             Ilya Verbin  <ilya.verbin@intel.com>
4382             Kirill Yukhin  <kirill.yukhin@intel.com>
4383             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4385         * config/i386/sse.md
4386         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
4387         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
4388         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
4389         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
4390         (define_expand "avx512vl_pshuflw_mask"): New.
4391         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
4392         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
4393         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
4394         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
4395         (define_expand "avx512vl_pshufhw_mask"): New.
4396         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
4398 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4399             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4400             Anna Tikhonova  <anna.tikhonova@intel.com>
4401             Ilya Tocar  <ilya.tocar@intel.com>
4402             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4403             Ilya Verbin  <ilya.verbin@intel.com>
4404             Kirill Yukhin  <kirill.yukhin@intel.com>
4405             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4407         * config/i386/i386.c
4408         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
4409         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
4410         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
4411         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
4412         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
4413         * config/i386/sse.md
4414         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
4415         (define_insn
4416         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
4417         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
4418         (define_insn
4419         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
4420         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
4421         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
4422         (define_expand "avx512vl_pshufd_mask"): New.
4423         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
4425 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4426             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4427             Anna Tikhonova  <anna.tikhonova@intel.com>
4428             Ilya Tocar  <ilya.tocar@intel.com>
4429             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4430             Ilya Verbin  <ilya.verbin@intel.com>
4431             Kirill Yukhin  <kirill.yukhin@intel.com>
4432             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4434         * config/i386/i386.c
4435         (CODE_FOR_avx2_extracti128): Rename to ...
4436         (CODE_FOR_avx_vextractf128v4di): this.
4437         (CODE_FOR_avx2_inserti128): Rename to ...
4438         (CODE_FOR_avx_vinsertf128v4di): this.
4439         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
4440         CODE_FOR_avx_vextractf128v4di.
4441         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
4442         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
4443         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
4444         CODE_FOR_avx512vl_vinsertv8si.
4445         * config/i386/sse.md
4446         (define_expand
4447         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
4448         AVX512_VEC mode iterator.
4449         (define_insn
4450         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
4451         Ditto.
4452         (define_expand
4453         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
4454         AVX512_VEC_2 mode iterator.
4455         (define_insn "vec_set_lo_<mode><mask_name>"): New.
4456         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4457         (define_expand "avx512vl_vinsert<mode>"): Ditto.
4458         (define_insn "avx2_vec_set_lo_v4di"): Delete.
4459         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
4460         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
4461         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4462         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
4463         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4464         (define_expand "avx2_extracti128"): Delete.
4465         (define_expand "avx2_inserti128"): Ditto.
4467 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4468             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4469             Anna Tikhonova  <anna.tikhonova@intel.com>
4470             Ilya Tocar  <ilya.tocar@intel.com>
4471             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4472             Ilya Verbin  <ilya.verbin@intel.com>
4473             Kirill Yukhin  <kirill.yukhin@intel.com>
4474             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4476         * config/i386/sse.md
4477         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
4478         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
4479         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
4480         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
4481         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
4482         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
4483         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
4484         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
4485         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
4486         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
4487         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
4488         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
4489         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
4491 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4493         PR rtl-optimization/63210
4494         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
4495         HARD_REGNO is not available for CONFLICT_A.
4497 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4499         * cgraph.h (symtab_node): Add no_reorder attribute.
4500         (symbol_table::output_asm_statements): Remove.
4501         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
4502         (cgraph_node::create_version_clone): Dito.
4503         (symbol_table::output_asm_statements): Remove.
4504         * trans-mem.c (ipa_tm_create_version_alias): Dito.
4505         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
4506         (output_in_order): Add no_reorder flag. Only handle no_reorder
4507         nodes when set.
4508         (symbol_table::compile): Add separate pass for no_reorder nodes.
4509         (process_common_attributes): Set no_reorder flag in symtab node.
4510         Add node argument.
4511         (process_function_and_variable_attributes): Pass symtab nodes to
4512         process_common_attributes.
4513         * doc/extend.texi (no_reorder): Document no_reorder attribute.
4514         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
4515         (lto_output_varpool_node): Dito.
4516         (input_overwrite_node): Dito.
4517         (input_varpool_node): Dito.
4518         * varpool.c (varpool_node::add): Set no_reorder attribute.
4519         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
4520         (symbol_table::output_variables): Dito.
4521         * symtab.c (symtab_node::dump_base): Print no_reorder.
4523 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
4525         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
4526         be INVALID_REGNUM.
4528 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4530         * configure: Regenerate.
4532 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
4534         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
4535         when result_mode == shift_mode.
4537 2014-09-23  Kostya Serebryany  <kcc@google.com>
4539         Update to match the changed asan API.
4540         * asan.c (asan_global_struct): Update the __asan_global definition
4541         to match the new API.
4542         (asan_add_global): Ditto.
4543         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
4544         to __asan_init_v4.
4546 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4548         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
4549         refine the constraints used on 32/64-bit floating point moves.
4550         (f32_av): Likewise.
4551         (f64_vsx): Likewise.
4552         (f64_dm): Likewise.
4553         (f64_av): Likewise.
4554         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
4555         (BOOL_REGS_OP1): Likewise.
4556         (BOOL_REGS_OP2): Likewise.
4557         (BOOL_REGS_UNARY): Likewise.
4558         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
4559         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
4560         for moves involving VSX registers.  Do not use constraints that
4561         target VSX registers for decimal types.
4562         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
4563         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
4565 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
4567         * tree.h (int_bit_position): Turn into inline function;
4568         implement using wide int.
4569         * tree.c (int_bit_position): Remove.
4571 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
4573         PR bootstrap/63280
4574         * target-globals.c (target_globals::~target_globals): Fix location
4575         of ira_int destruction.
4577 2014-09-23  Renlin Li  <renlin.li@arm.com>
4579         * config/aarch64/aarch64.md (return): New.
4580         (simple_return): Likewise.
4581         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
4582         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
4584 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
4586         * common/config/aarch64/aarch64-common.c:
4587         (default_options aarch_option_optimization_table):
4588         Default to -fsched-pressure.
4590 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
4592         * cfgcleanup.c (try_optimize_cfg): Do not remove label
4593         with LABEL_PRESERVE_P flag set.
4595 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4596             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4597             Anna Tikhonova  <anna.tikhonova@intel.com>
4598             Ilya Tocar  <ilya.tocar@intel.com>
4599             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4600             Ilya Verbin  <ilya.verbin@intel.com>
4601             Kirill Yukhin  <kirill.yukhin@intel.com>
4602             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4604         * config/i386/sse.md
4605         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
4606         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
4607         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
4608         (define_insn "sse2_shufpd_v2df_mask"): New.
4610 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4611             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4612             Anna Tikhonova  <anna.tikhonova@intel.com>
4613             Ilya Tocar  <ilya.tocar@intel.com>
4614             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4615             Ilya Verbin  <ilya.verbin@intel.com>
4616             Kirill Yukhin  <kirill.yukhin@intel.com>
4617             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4619         * config/i386/sse.md
4620         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
4621         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4622         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4623         (define_insn "sse_shufps_v4sf_mask"): New.
4625 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4626             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4627             Anna Tikhonova  <anna.tikhonova@intel.com>
4628             Ilya Tocar  <ilya.tocar@intel.com>
4629             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4630             Ilya Verbin  <ilya.verbin@intel.com>
4631             Kirill Yukhin  <kirill.yukhin@intel.com>
4632             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4634         * config/i386/sse.md
4635         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4636         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4637         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4638         (define_insn "unpcklps128_mask"): New.
4640 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4641             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4642             Anna Tikhonova  <anna.tikhonova@intel.com>
4643             Ilya Tocar  <ilya.tocar@intel.com>
4644             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4645             Ilya Verbin  <ilya.verbin@intel.com>
4646             Kirill Yukhin  <kirill.yukhin@intel.com>
4647             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4649         * config/i386/sse.md
4650         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4651         (define_insn "avx512vl_unpckhpd128_mask"): New.
4652         (define_expand "avx_movddup256<mask_name>"): Add masking.
4653         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4654         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4655         (define_insn "avx512vl_unpcklpd128_mask"): New.
4657 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4659         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4660         * doc/tm.texi: Regenerate.
4661         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4662         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4663         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4664         Remove.
4665         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4666         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4667         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4668         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4669         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4670         Remove.
4671         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4672         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4673         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4674         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4675         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4676         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4677         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4678         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4679         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4680         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4681         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4682         Remove.
4684 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
4686         * tree-ssa-ccp.c (prop_value_d): Rename to ...
4687         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4688         * ipa-prop.c (struct type_change_info): Rename to ...
4689         (prop_type_change_info): ... this; update uses.
4690         * ggc-page.c (globals): Rename to ...
4691         (static struct ggc_globals): ... this; update uses.
4692         * tree-ssa-loop-im.c (mem_ref): Rename to ...
4693         (im_mem_ref): ... this; update uses.
4694         * ggc-common.c (loc_descriptor): Rename to ...
4695         (ggc_loc_descriptor): ... this; update uses.
4696         * lra-eliminations.c (elim_table): Rename to ...
4697         (lra_elim_table): ... this; update uses.
4698         * bitmap.c (output_info): Rename to ...
4699         (bitmap_output_info): ... this; update uses.
4700         * gcse.c (expr): Rename to ...
4701         (gcse_expr) ... this; update uses.
4702         (occr): Rename to ...
4703         (gcse_occr): .. this; update uses.
4704         * tree-ssa-copy.c (prop_value_d): Rename to ...
4705         (prop_value_t): ... this.
4706         * predict.c (block_info_def): Rename to ...
4707         (block_info): ... this; update uses.
4708         (edge_info_def): Rename to ...
4709         (edge_info): ... this; update uses.
4710         * profile.c (bb_info): Rename to ...
4711         (bb_profile_info): ... this; update uses.
4712         * alloc-pool.c (output_info): Rename to ...
4713         (pool_output_info): ... this; update uses.
4714         * ipa-cp.c (topo_info): Rename to ..
4715         (ipa_topo_info): ... this; update uses.
4716         * tree-nrv.c (nrv_data): Rename to ...
4717         (nrv_data_t): ... this; update uses.
4718         * ipa-split.c (bb_info): Rename to ...
4719         (split_bb_info): ... this one.
4720         * profile.h (edge_info): Rename to ...
4721         (edge_profile_info): ... this one; update uses.
4722         * dse.c (bb_info): Rename to ...
4723         (dse_bb_info): ... this one; update uses.
4724         * cprop.c (occr): Rename to ...
4725         (cprop_occr): ... this one; update uses.
4726         (expr): Rename to ...
4727         (cprop_expr): ... this one; update uses.
4729 2014-09-22  Jason Merrill  <jason@redhat.com>
4731         * Makefile.in (check-parallel-%): Add @.
4733 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4735         * config/aarch64/geniterators.sh: New.
4736         * config/aarch64/iterators.md (VDQF_DF): New.
4737         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4738         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4740 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
4742         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4743         -lnosys when -msim absent.
4745 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
4747         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4749 2014-09-22  Richard Biener  <rguenther@suse.de>
4751         * gimplify.c (gimplify_init_constructor): Do not leave
4752         non-GIMPLE vector constructors around.
4753         * tree-cfg.c (verify_gimple_assign_single): Verify that
4754         CONSTRUCTORs have gimple elements.
4756 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
4758         PR debug/63328
4759         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4760         insert a debug source bind stmt setting DEBUG_EXPR_DECL
4761         instead of a normal gimple assignment stmt.
4763 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4765         * config/bfin/bfin.md: Fix use of constraints in define_split.
4767 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4769         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4770         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4772 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4774         * hard-reg-set.h: Include hash-table.h.
4775         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4776         field.
4777         * target-globals.c (target_globals::~target_globals): Call
4778         hard_regs->finalize.
4779         * rtl.h (subreg_shape): New structure.
4780         (shape_of_subreg): New function.
4781         (simplifiable_subregs): Declare.
4782         * reginfo.c (simplifiable_subreg): New structure.
4783         (simplifiable_subregs_hasher): Likewise.
4784         (simplifiable_subregs): New function.
4785         (invalid_mode_changes): Delete.
4786         (alid_mode_changes, valid_mode_changes_obstack): New variables.
4787         (record_subregs_of_mode): Remove subregs_of_mode parameter.
4788         Record valid mode changes in valid_mode_changes.
4789         (find_subregs_of_mode): Remove subregs_of_mode parameter.
4790         Update calls to record_subregs_of_mode.
4791         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4792         handling.  Initialize new variables.  Update call to
4793         find_subregs_of_mode.
4794         (invalid_mode_change_p): Check new variables instead of
4795         invalid_mode_changes.
4796         (finish_subregs_of_mode): Finalize new variables instead of
4797         invalid_mode_changes.
4798         (target_hard_regs::finalize): New function.
4799         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4800         even when CLASS_CANNOT_CHANGE_MODE is undefined.
4802 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4804         * combine.c (subst): Use simplify_subreg_regno rather than
4805         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4807 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4809         * rtl.h (subreg_info): Expand commentary
4810         * rtlanal.c (subreg_get_info): Likewise.
4812 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4814         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4815         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4816         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4818 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4820         * config/arm/arm.c: #include "tm-constrs.h"
4821         (thumb1_size_rtx_costs): Adjust rtx costs.
4823 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
4825         * configure.ac (target_header_dir): Move block defining
4826         this to before the block setting inhibit_libc.
4827         (inhibit_libc): When considering $with_headers, just
4828         check it it's explicitly "no".  If not, also check if
4829         $target_header_dir/stdio.h is present.  If not, set
4830         inhibit_libc=true.
4831         * configure: Regenerate.
4833 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
4835         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4837 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4839         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
4840         insn for divides by integer powers of two.
4841         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4842         (mod<mode>3): Fix formatting.
4843         (three anonymous define_insn and two define_split): Delete.
4845 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4847         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4848         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4849         (floatdisf2_internal2): Ditto.
4850         (ashrdi3_no_power): Ditto.  Fix formatting.
4852 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4854         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4855         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4856         Tidy.
4858 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4860         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4861         constant, use addsi3 directly.
4862         (three anonymous define_insn, two define_split): Delete.
4863         (sub<mode>3): Move.  Do not allow constant second operand.
4864         Generate different insn for constant first operand.
4865         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4866         (subf<mode>3_imm): New.
4867         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4868         (*plus_ltu<mode>): Only handle registers.
4869         (*plus_ltu<mode>_1): New.  Handle integer third operand.
4870         (*plus_gtu<mode>): Only handle registers.
4871         (*plus_gtu<mode>_1): New.  Handle integer third operand.
4873 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4875         * config/rs6000/rs6000.md (iorxor): New code_iterator.
4876         (iorxor): New code_attr.
4877         (IORXOR): New code_attr.
4878         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4879         (ior<mode>3, xor<mode>3): Delete.
4880         (<iorxor><mode>3): New.
4881         (splitter for "big" integer ior, xor): New.
4882         (*bool<mode>3): Move.  Also handle AND.
4883         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4884         (splitter for "big" integer ior, xor): Delete.
4886 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4888         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4889         (two anonymous define_insn and two define_split): Delete.
4890         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4892 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4894         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4895         (two anonymous define_insn and two define_split): Delete.
4896         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4898 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4900         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4902 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4904         * config/rs6000/predicates.md (ca_operand): Allow subregs.
4905         (input_operand): Do not allow ca_operand.
4906         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4907         carry bit, allow SImode and Pmode.
4908         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4910 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
4912         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4913         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
4914         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4915         (*call_rex64_ms_sysv): Remove.
4916         (*call_value_rex64_ms_sysv): Ditto.
4917         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4919 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
4921         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4922         operand 3 to "CnL".
4924 2014-09-20  Andreas Schwab  <schwab@suse.de>
4926         * config/ia64/ia64.md: Remove constraints from define_split
4927         patterns.
4929 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4931         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4932         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4933         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4934         (get_dynamic_type): Remove.
4935         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4936         (clear_speculation): Bring to ipa-deivrt.h
4937         (get_class_context): Rename to ...
4938         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4939         (contains_type_p): Update.
4940         (get_dynamic_type): Rename to ...
4941         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4942         (possible_polymorphic_call_targets): UPdate.
4943         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4944         * ipa-prop.c (ipa_analyze_call_uses): Update.
4946 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4948         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4949         privatize dynamic TLS variables.
4951 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4953         * diagnostic.c (warning_n): New function.
4954         * diagnostic-core.h (warning_n): Declare.
4955         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4956         output dynamic counts when available.
4958 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4960         PR tree-optimization/63255
4961         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4962         issue in setting body_removed flag.
4964 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4966         PR c++/61825
4967         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4968         that visibility change is possible
4969         (handle_weakref_attribute): Likewise.
4970         * cgraph.h (symtab_node): Add method get_create and
4971         field refuse_visibility_changes.
4972         (symtab_node::get_create): New method.
4973         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4974         * varasm.c (mark_weak): Verify that visibility change is
4975         possible.
4977 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4979         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4980         for base_reg_operand to be common between LO_SUM and PLUS.
4981         (fusion_gpr_mem_combo): New predicate to match a fused address
4982         that combines the addis and memory offset address.
4984         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4985         calling signature.
4986         (emit_fusion_gpr_load): Likewise.
4988         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4989         signature to pass each argument separately, rather than
4990         using an operands array.  Rewrite the insns found by peephole2 to
4991         be a single insn, rather than hoping the insns will still be
4992         together when the peephole pass is done.  Drop being called via a
4993         normal peephole.
4994         (emit_fusion_gpr_load): Change calling signature to be called from
4995         the fusion_gpr_load_<mode> insns with a combined memory address
4996         instead of the peephole pass passing the addis and offset
4997         separately.
4999         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
5000         fusion.
5001         (power8 fusion peephole): Drop support for doing power8 via a
5002         normal peephole that was created by the peephole2 pass.
5003         (power8 fusion peephole2): Create a new insn with the fused
5004         address, so that the fused operation is kept together after
5005         register allocation is done.
5006         (fusion_gpr_load_<mode>): Likewise.
5008 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
5010         PR lto/63286
5011         * tree.c (need_assembler_name_p): Do not mangle variadic types.
5013 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
5015         * recog.c (scratch_operand): Do not simply allow all hard registers:
5016         only allow those that are allocatable.
5018 2014-09-19  Felix Yang  <felix.yang@huawei.com>
5020         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
5021         comments and fix spacing to conform to coding style.
5023 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
5025         * genrecog.c (validate_pattern): Allow empty constraints in
5026         a match_scratch.
5028 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
5030         * dwarf2out.c (decl_ultimate_origin): Update comment.
5031         * tree.c (block_ultimate_origin): Same.
5033 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5035         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
5036         Update GCC version name to GCC 5.
5037         (rs6000_function_arg_boundary): Likewise.
5038         (rs6000_function_arg): Likewise.
5040 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
5042         * config/sh/sh.md: Fix use of constraints in define_split.
5044 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
5046         PR ipa/61998
5047         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
5049 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
5051         * doc/md.texi (Modifiers): Consistently use "read/write"
5052         nomenclature rather than "input/output".
5053         * genrecog.c (constraints_supported_in_insn_p): New.
5054         (validate_pattern): If needed, also check constraints on
5055         MATCH_SCRATCH operands.
5056         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
5057         operands with no '=' or '+' modifier.
5059 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
5061         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
5062         scratch register as written.
5064 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5066         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
5067         assignment.
5069 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5071         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
5072         expanders.
5074 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5076         PR target/62662
5077         * config/s390/s390.c (s390_emit_epilogue): When doing the return
5078         address load optimization force s390_optimize_prologue to leave it
5079         that way.  Only do the optimization if we already decided to push
5080         r14 into a stack slot.
5082 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
5084         * asan.c (build_check_stmt): Alignment arg was added.
5085         (asan_expand_check_ifn): Optimization for alignment >= 8.
5087 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5089         * config/i386/vxworksae.h: Remove obsolete definitions.
5090         (STACK_CHECK_PROTECT): Define.
5091         * config/i386/vx-common.h: Remove.  Merge contents within
5092         config/i386/vxworks.h.
5093         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
5094         i386/vx-common.h.
5096 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5098         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
5099         * config/rs6000/t-vxworksmils: New file.
5100         * config/rs6000/vxworksmils.h: New file.
5102 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5104         * varasm.c (default_section_type_flags): Flag .persistent.bss
5105         sections as SECTION_BSS.
5107 2014-09-19  Nick Clifton  <nickc@redhat.com>
5109         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
5110         pop'ed registers so that DCE does not eliminate them.
5112 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
5114         PR lto/63298
5115         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
5117 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
5119         * system.h (LIBGCC2_TF_CEXT): Poison.
5120         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
5121         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
5122         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
5123         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
5124         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
5125         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
5126         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
5127         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
5128         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
5130 2014-09-19  Kito Cheng  <kito@0xlab.org>
5132         * except.h: Fix header guard.
5133         * addresses.h: Add missing header guard.
5134         * cfghooks.h: Likewise.
5135         * collect-utils.h: Likewise.
5136         * collect2-aix.h: Likewise.
5137         * conditions.h: Likewise.
5138         * cselib.h: Likewise.
5139         * dwarf2asm.h: Likewise.
5140         * graphds.h: Likewise.
5141         * graphite-scop-detection.h: Likewise.
5142         * gsyms.h: Likewise.
5143         * hw-doloop.h: Likewise.
5144         * incpath.h: Likewise.
5145         * ipa-inline.h: Likewise.
5146         * ipa-ref.h: Likewise.
5147         * ira-int.h: Likewise.
5148         * ira.h: Likewise.
5149         * lra-int.h: Likewise.
5150         * lra.h: Likewise.
5151         * lto-section-names.h: Likewise.
5152         * read-md.h: Likewise.
5153         * reload.h: Likewise.
5154         * rtl-error.h: Likewise.
5155         * sdbout.h: Likewise.
5156         * targhooks.h: Likewise.
5157         * tree-affine.h: Likewise.
5158         * xcoff.h: Likewise.
5159         * xcoffout.h: Likewise.
5161 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5163         PR debug/63285
5164         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
5165         if advance != 0.
5167 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5169         PR target/61360
5170         * lra.c (lra): Call recog_init.
5172 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
5174         PR c++/62017
5175         * asan.c (transform_statements): Don't instrument clobber statements.
5177 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5179         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
5180         to neon_load1_1reg<q>.
5182 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
5184         PR debug/63284
5185         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
5186         if there are only debug stmts after the noreturn call, instead
5187         remove the debug stmts.
5189 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
5191         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
5192         (odr_types_equivalent_p): Use pair hash.
5193         (odr_subtypes_equivalent_p): Likewise, do structural compare
5194         on ODR types that may be mismatched.
5195         (warn_odr): Support warning when only one field is given.
5196         (odr_types_equivalent_p): Strenghten comparsions made;
5197         support VOIDtype.
5198         (add_type_duplicate): Update VISITED hash set.
5200 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5202         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
5203         Enable selection of 'posix' or no thread model.
5205 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
5207         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
5208         when architecture is older than ARMv7.
5210 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
5212         PR target/61853
5213         * config/pa/pa.c (pa_function_value): Directly handle aggregates
5214         that fit exactly in a word or double word.
5216 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
5218         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
5219         zmm/k regs support.
5221 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5222             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5223             Anna Tikhonova  <anna.tikhonova@intel.com>
5224             Ilya Tocar  <ilya.tocar@intel.com>
5225             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5226             Ilya Verbin  <ilya.verbin@intel.com>
5227             Kirill Yukhin  <kirill.yukhin@intel.com>
5228             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5230         * config/i386/i386.c
5231         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
5232         * config/i386/sse.md
5233         (define_mode_iterator VI48F_256): New.
5234         (define_mode_attr extract_type): Ditto.
5235         (define_mode_attr extract_suf): Ditto.
5236         (define_mode_iterator AVX512_VEC): Ditto.
5237         (define_expand
5238         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
5239         AVX512_VEC.
5240         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
5241         (define_insn
5242         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
5243         Ditto.
5244         (define_mode_attr extract_type_2): Ditto.
5245         (define_mode_attr extract_suf_2): Ditto.
5246         (define_mode_iterator AVX512_VEC_2): Ditto.
5247         (define_expand
5248         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
5249         AVX512_VEC_2 mode iterator.
5250         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5251         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
5252         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5253         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5254         (define_split for V16FI mode): Ditto.
5255         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5256         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5257         (define_split for VI8F_256 mode): Ditto.
5258         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5259         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5260         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5261         (define_split for VI4F_256 mode): Ditto.
5262         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
5263         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5264         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5265         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
5266         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
5267         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
5268         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
5269         Update `type' attribute, remove explicit `memory' attribute calculation.
5271 2014-09-16  Kito Cheng  <kito@0xlab.org>
5273         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
5274         ira_spilled_reg_stack_slots_num if using lra.
5275         (do_reload): Remove release ira_spilled_reg_stack_slots part.
5276         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
5277         make sure not using lra.
5278         (ira_reuse_stack_slot): Likewise.
5279         (ira_mark_new_stack_slot): Likewise.
5281 2014-09-15  Andi Kleen  <ak@linux.intel.com>
5283         * function.c (allocate_struct_function): Force
5284         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
5285         profiling is disabled.
5287 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5289         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
5290         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
5291         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
5292         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
5293         macro with statically checked member functions.
5294         * rtl.h (rtx_insn::deleted): New method.
5295         (rtx_insn::set_deleted): Likewise.
5296         (rtx_insn::set_undeleted): Likewise.
5297         (INSN_DELETED_P): Remove.
5299 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5301         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
5302         result of emit_jump_insn_before to a new variable.
5303         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
5304         (mark_jump_label_1): Likewise.
5305         (mark_jump_label_asm): Likewise.
5306         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
5307         * rtl.h (mark_jump_label): Adjust.
5309 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
5311         * Makefile.in (dg_target_exps): Remove.
5312         (check_gcc_parallelize): Change to just an upper bound number.
5313         (check-%-subtargets): Always print the non-parallelized goals.
5314         (check_p_vars, check_p_comma, check_p_subwork): Remove.
5315         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
5316         check_p_numbers3, check_p_numbers4, check_p_numbers5,
5317         check_p_numbers6): New variables.
5318         (check_p_numbers): Set to sequence from 1 to 9999.
5319         (check_p_subdirs): Set to sequence from 1 to minimum of
5320         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
5321         or 128.
5322         (check-%, check-parallel-%): Rewritten so that for parallelized
5323         testing each job runs all the *.exp files, with
5324         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
5326 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5328         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
5329         rtx to rtx_insn *.
5330         (arc_sets_cc_p): Likewise.
5331         * config/arc/arc.c (arc_print_operand): Use methods of
5332         "final_sequence" for clarity, and to enable strengthening of
5333         locals "jump" and "delay" from rtx to rtx_insn *.
5334         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
5335         rtx_insn *; use method of rtx_sequence for typesafety.
5336         (arc_get_insn_variants): Use insn method of rtx_sequence for
5337         typesafety.
5338         (arc_pad_return): Likewise.
5339         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
5340         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
5341         dyn_cast to rtx_sequence *, using insn method for typesafety.
5342         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
5343         rtx_sequence * and use insn method when invoking get_attr_length.
5344         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
5345         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
5346         rtx_sequence *, introducing a local "seq", using its insn method
5347         from typesafety and clarity.
5348         (add_sched_insns_for_speculation): Strengthen local "next" from
5349         rtx to rtx_insn *.
5350         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
5351         (predicate_insn): Likewise.
5352         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
5353         second param.
5354         * config/cris/cris.c (cris_notice_update_cc): Likewise.
5355         * config/epiphany/epiphany-protos.h
5356         (extern void epiphany_insert_mode_switch_use): Likewise for param
5357         "insn".
5358         (get_attr_sched_use_fpu): Likewise for param.
5359         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
5360         Likewise for param "insn".
5361         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
5362         param "insn" of "target_insert_mode_switch_use" callback.
5363         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
5364         (frv_issues_to_branch_unit_p): Likewise.
5365         (frv_pack_insn_p): Likewise.
5366         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
5367         const rtx * (i.e. mutable rtx_def * const *) to
5368         rtx_insn * const *.
5369         * config/i386/i386-protos.h (standard_sse_constant_opcode):
5370         Strengthen first param from rtx to rtx_insn *.
5371         (output_fix_trunc): Likewise.
5372         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
5373         (output_fix_trunc): Likewise.
5374         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
5375         local "insn".
5376         (min_insn_size): Likewise for param "insn".
5377         (get_mem_group): Likewise.
5378         (is_cmp): Likewise.
5379         (get_insn_path): Likewise.
5380         (get_insn_group): Likewise.
5381         (count_num_restricted): Likewise.
5382         (fits_dispatch_window): Likewise.
5383         (add_insn_window): Likewise.
5384         (add_to_dispatch_window): Likewise.
5385         (debug_insn_dispatch_info_file): Likewise.
5386         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
5387         first param.
5388         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
5389         "cmp" and local "prev".
5390         (m32c_output_compare): Likewise for param "insn".
5391         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
5392         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
5393         (define_predicate "large_insn_p"): Likewise.
5394         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
5395         param from rtx to rtx_insn *.
5396         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
5397         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
5398         (m68k_sched_attr_size): Likewise.
5399         (sched_get_opxy_mem_type): Likewise for param "insn".
5400         (m68k_sched_attr_op_mem): Likewise.
5401         (sched_mem_operand_p): Likewise.
5402         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
5403         * config/mep/mep.c (mep_multi_slot): Likewise.
5404         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
5405         first param.
5406         (mips_sync_loop_insns): Likewise.
5407         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
5408         method of "final_sequence" for typesafety.
5409         (mips_process_sync_loop): Strengthen param "insn" from rtx to
5410         rtx_insn *.
5411         (mips_output_sync_loop): Likewise.
5412         (mips_sync_loop_insns): Likewise.
5413         (mips_74k_agen_init): Likewise.
5414         (mips_sched_init): Use NULL rather than NULL_RTX when working with
5415         insns.
5416         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
5417         Strengthen param "insn" from rtx to rtx_insn *.
5418         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
5419         local "insn".
5420         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
5421         param.
5422         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
5423         "insn".  Use method of rtx_sequence for typesafety.
5424         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
5425         rtx_insn *.
5426         (branch_needs_nop_p): Likewise.
5427         (use_skip_p): Likewise.
5428         (pa_insn_refs_are_delayed): Likewise.
5429         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
5430         for locals "insn", "ninsn".
5431         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
5432         "insn".
5433         (is_cracked_insn): Likewise.
5434         (is_branch_slot_insn): Likewise.
5435         (is_nonpipeline_insn): Likewise.
5436         (insn_terminates_group_p): Likewise.
5437         (insn_must_be_first_in_group): Likewise.
5438         (insn_must_be_last_in_group): Likewise.
5439         (force_new_group): Likewise for param "next_insn".
5440         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
5441         "insn".
5442         (s390_sched_score): Likewise.
5443         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
5444         (rtx sfunc_uses_reg): Likewise for sole param.
5445         * config/sh/sh.c (sh_print_operand): Use insn method of
5446         final_sequence for typesafety.
5447         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
5448         Use insn method of final_sequence for typesafety.
5449         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
5450         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
5451         for param.
5452         (eligible_for_return_delay): Likewise.
5453         (eligible_for_sibcall_delay): Likewise.
5454         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
5455         (eligible_for_return_delay): Likewise.
5456         (eligible_for_sibcall_delay): Likewise.
5457         * config/stormy16/stormy16-protos.h
5458         (xstormy16_output_cbranch_hi): Likewise for final param.
5459         (xstormy16_output_cbranch_si): Likewise.
5460         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
5461         (xstormy16_output_cbranch_si): Likewise.
5462         * config/v850/v850-protos.h (notice_update_cc): Likewise.
5463         * config/v850/v850.c (notice_update_cc): Likewise.
5465         * final.c (get_attr_length_1): Strengthen param "insn" and param
5466         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
5467         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
5468         (get_attr_min_length): Likewise.
5469         (shorten_branches): Likewise for signature of locals "length_fun"
5470         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
5471         from a checked cast and use its methods for clarity and to enable
5472         strengthening local "inner_insn" from rtx to rtx_insn *.
5473         * genattr.c (gen_attr): When writing out the prototypes of the
5474         various generated "get_attr_" functions, strengthen the params of
5475         the non-const functions from rtx to rtx_insn *.
5476         Similarly, strengthen the params of insn_default_length,
5477         insn_min_length, insn_variable_length_p, insn_current_length.
5478         (main): Similarly, strengthen the param of num_delay_slots,
5479         internal_dfa_insn_code, insn_default_latency, bypass_p,
5480         insn_latency, min_issue_delay, print_reservation,
5481         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
5482         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
5483         to hook_int_rtx_insn_unreachable.
5484         * genattrtab.c (write_attr_get): When writing out the generated
5485         "get_attr_" functions, strengthen the param "insn" from rtx to
5486         rtx_insn *, eliminating a checked cast.
5487         (make_automaton_attrs): When writing out prototypes of
5488         "internal_dfa_insn_code_", "insn_default_latency_" functions
5489         and the "internal_dfa_insn_code" and "insn_default_latency"
5490         callbacks, strengthen their params from rtx to rtx_insn *
5491         * genautomata.c (output_internal_insn_code_evaluation): When
5492         writing out code, add a checked cast from rtx to rtx_insn * when
5493         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
5494         (output_dfa_insn_code_func): Strengthen param of generated
5495         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
5496         (output_trans_func): Likewise for generated function
5497         "state_transition".
5498         (output_internal_insn_latency_func): When writing out generated
5499         function "internal_insn_latency", rename params from "insn" and
5500         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
5501         locals "insn" and "insn2" as rtx_insn * with checked casts once
5502         we've proven that we're not dealing with const0_rtx.
5503         (output_insn_latency_func):  Strengthen param of generated
5504         function "insn_latency" from rtx to rtx_insn *.
5505         (output_print_reservation_func): Likewise for generated function
5506         "print_reservation".
5507         (output_insn_has_dfa_reservation_p): Likewise for generated
5508         function "insn_has_dfa_reservation_p".
5509         * hooks.c (hook_int_rtx_unreachable): Rename to...
5510         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
5511         from rtx to rtx_insn *.
5512         * hooks.h (hook_int_rtx_unreachable): Likewise.
5513         (extern int hook_int_rtx_insn_unreachable): Likewise.
5514         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
5515         (get_attr_min_length): Likewise.
5516         * recog.c (get_enabled_alternatives): Likewise.
5517         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
5518         * reorg.c (find_end_label): Introduce local rtx "pat" and
5519         strengthen local "insn" from rtx to rtx_insn *.
5520         (redundant_insn): Use insn method of "seq" rather than element for
5521         typesafety; strengthen local "control" from rtx to rtx_insn *.
5522         * resource.c (mark_referenced_resources): Add checked cast to
5523         rtx_insn * within INSN/JUMP_INSN case.
5524         (mark_set_resources): Likewise.
5525         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
5526         rtx to rtx_insn *.
5528 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5530         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
5531         param "label" from rtx to rtx_insn *.
5532         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
5533         and local "op".
5534         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
5535         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
5536         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5537         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5538         * final.c (default_label_align_after_barrier_max_skip): Strengthen
5539         param from rtx to rtx_insn *.
5540         (default_loop_align_max_skip): Likewise.
5541         (default_label_align_max_skip): Likewise.
5542         (default_jump_align_max_skip): Likewise.
5543         * target.def (label_align_after_barrier_max_skip): Likewise.
5544         (loop_align_max_skip): Likewise.
5545         (label_align_max_skip): Likewise.
5546         (jump_align_max_skip): Likewise.
5547         * targhooks.h (default_label_align_after_barrier_max_skip):
5548         Likewise.
5549         (default_loop_align_max_skip): Likewise.
5550         (default_label_align_max_skip): Likewise.
5551         (default_jump_align_max_skip): Likewise.
5553 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5555         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
5556         from const_rtx to const rtx_insn *.  Update union members from rtx
5557         to rtx_insn *.
5558         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
5559         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
5560         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
5561         strengthen both params from const_rtx to const rtx_insn *.
5562         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
5563         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
5564         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
5565         rtx_insn *.
5566         * target.def (can_follow_jump): Strengthen both params from
5567         const_rtx to const rtx_insn *, and update default implementation
5568         from hook_bool_const_rtx_const_rtx_true to
5569         hook_bool_const_rtx_insn_const_rtx_insn_true.
5571 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5573         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
5574         "insn" from rtx to rtx_insn *.
5575         * sched-int.h (deps_start_bb): Likewise for 2nd param.
5577 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5578             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5579             Anna Tikhonova  <anna.tikhonova@intel.com>
5580             Ilya Tocar  <ilya.tocar@intel.com>
5581             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5582             Ilya Verbin  <ilya.verbin@intel.com>
5583             Kirill Yukhin  <kirill.yukhin@intel.com>
5584             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5586         * config/i386/sse.md
5587         (define_insn "vcvtph2ps<mask_name>"): Add masking.
5588         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
5589         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
5590         (define_expand "vcvtps2ph_mask"): New.
5591         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
5592         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
5593         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
5595 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5596             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5597             Anna Tikhonova  <anna.tikhonova@intel.com>
5598             Ilya Tocar  <ilya.tocar@intel.com>
5599             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5600             Ilya Verbin  <ilya.verbin@intel.com>
5601             Kirill Yukhin  <kirill.yukhin@intel.com>
5602             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5604         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
5605         New.
5606         (define_mode_iterator VI24_AVX512BW_1): Ditto.
5607         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
5608         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
5609         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
5610         also for TARGET_AVX512VL.
5611         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
5613 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
5615         * doc/install.texi (Options specification): add
5616         --disable-libsanitizer item.
5618 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
5619             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5621         PR target/61407
5622         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5623         and above.
5624         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5625         kernel version check to avoid incrementing it after every major OS X
5626         release.
5627         (darwin_default_min_version): Avoid static memory buffer.
5629 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
5631         * tree.c (need_assembler_name_p): Store C++ type mangling only
5632         for aggregates.
5634 2014-09-13  Marek Polacek  <polacek@redhat.com>
5636         * tree.c (protected_set_expr_location): Don't check whether T is
5637         non-null here.
5639 2014-09-12  DJ Delorie  <dj@redhat.com>
5641         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5642         (extend_and_shift1_hipsi2): Likewise.
5643         (extend_and_shift2_hipsi2): Likewise.
5645 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
5647         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5648         with NULL when dealing with an insn.
5649         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5650         from rtx to rtx_insn *.
5651         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5652         const_rtx to const rtx_insn *.
5653         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5655 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
5657         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5658         assert.
5660 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
5662         * target.def (libgcc_floating_mode_supported_p): New hook.
5663         * targhooks.c (default_libgcc_floating_mode_supported_p): New
5664         function.
5665         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5666         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5667         (LIBGCC2_HAS_TF_MODE): Remove.
5668         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5669         * doc/tm.texi: Regenerate.
5670         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5671         machine mode.
5672         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5673         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5674         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5675         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5676         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5677         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5678         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5679         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5680         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5681         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5682         function.
5683         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5684         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5685         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5686         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5687         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5688         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5689         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5690         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5691         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5692         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5693         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5694         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5695         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5696         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5697         Remove.
5698         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5699         New macro.
5700         (ia64_libgcc_floating_mode_supported_p): New function.
5701         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5702         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5703         (IA64_NO_LIBGCC_TFMODE): Define.
5704         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5705         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5706         macro.
5707         (pdp11_scalar_mode_supported_p): New function.
5708         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5709         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5711 2014-09-12  Richard Biener  <rguenther@suse.de>
5713         PR middle-end/63237
5714         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5716 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
5718         * tree.c (integer_each_onep): New function.
5719         * tree.h (integer_each_onep): Declare it.
5720         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5721         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5722         (X & 1) == 0 for vector and complex.
5724 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5726         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5727         for A57.
5728         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
5729         cost to spilling from integer to FP registers.
5731 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5733         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5734         move handling.
5735         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5736         are now handled correctly.
5738 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5740         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5741         handling of CALLER_SAVE_REGS and POINTER_REGS.
5743 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5745         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5746         the number of hard registers.
5748 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5749             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5750             Anna Tikhonova  <anna.tikhonova@intel.com>
5751             Ilya Tocar  <ilya.tocar@intel.com>
5752             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5753             Ilya Verbin  <ilya.verbin@intel.com>
5754             Kirill Yukhin  <kirill.yukhin@intel.com>
5755             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5757         * config/i386/sse.md
5758         (define_mode_iterator VI48_AVX512VL): New.
5759         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5760         "avx512f_vternlog<mode>_maskz" and update mode iterator.
5761         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5762         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5763         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5764         "avx512f_vternlog<mode>_mask" and update mode iterator.
5765         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5766         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5767         iterator.
5768         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5769         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5770         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5771         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5772         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5773         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5775 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5776             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5777             Anna Tikhonova  <anna.tikhonova@intel.com>
5778             Ilya Tocar  <ilya.tocar@intel.com>
5779             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5780             Ilya Verbin  <ilya.verbin@intel.com>
5781             Kirill Yukhin  <kirill.yukhin@intel.com>
5782             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5784         * config/i386/sse.md (VI128_256): Delete.
5785         (define_mode_iterator VI124_256): New.
5786         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5787         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5788         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5789         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5790         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5791         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5792         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5793         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5794         iterator.
5795         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5796         in presence of AVX-512.
5798 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5799             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5800             Anna Tikhonova  <anna.tikhonova@intel.com>
5801             Ilya Tocar  <ilya.tocar@intel.com>
5802             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5803             Ilya Verbin  <ilya.verbin@intel.com>
5804             Kirill Yukhin  <kirill.yukhin@intel.com>
5805             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5807         * config/i386/sse.md
5808         (define_expand "<avx512>_gathersi<mode>"): Rename from
5809         "avx512f_gathersi<mode>".
5810         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5811         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5812         (define_expand "<avx512>_gatherdi<mode>"): Rename from
5813         "avx512f_gatherdi<mode>".
5814         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5815         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5816         wide versions.
5817         (define_expand "<avx512>_scattersi<mode>"): Rename from
5818         "avx512f_scattersi<mode>".
5819         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5820         (define_expand "<avx512>_scatterdi<mode>"): Rename from
5821         "avx512f_scatterdi<mode>".
5822         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5824 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
5826         * ira.h (ira_finish_once): Delete.
5827         * ira-int.h (target_ira_int::~target_ira_int): Declare.
5828         (target_ira_int::free_ira_costs): Likewise.
5829         (target_ira_int::free_register_move_costs): Likewise.
5830         (ira_finish_costs_once): Delete.
5831         * ira.c (free_register_move_costs): Replace with...
5832         (target_ira_int::free_register_move_costs): ...this new function.
5833         (target_ira_int::~target_ira_int): Define.
5834         (ira_init): Call free_register_move_costs as a member function rather
5835         than a global function.
5836         (ira_finish_once): Delete.
5837         * ira-costs.c (free_ira_costs): Replace with...
5838         (target_ira_int::free_ira_costs): ...this new function.
5839         (ira_init_costs): Call free_ira_costs as a member function rather
5840         than a global function.
5841         (ira_finish_costs_once): Delete.
5842         * target-globals.c (target_globals::~target_globals): Call the
5843         target_ira_int destructor.
5844         * toplev.c: Include lra.h.
5845         (finalize): Call lra_finish_once rather than ira_finish_once.
5847 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
5849         * common.opt (flto-odr-type-merging): New flag.
5850         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5851         (types_same_for_odr): Likewise.
5852         (odr_subtypes_equivalent_p): Likewise.
5853         (add_type_duplicate): Do not walk type variants.
5854         (register_odr_type): New function.
5855         * ipa-utils.h (register_odr_type): Declare.
5856         (odr_type_p): New function.
5857         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5858         TYPE_DECLs
5859         * doc/invoke.texi (-flto-odr-type-merging): Document.
5860         * tree.c (need_assembler_name_p): Compute ODR names when asked
5861         for it.
5862         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5864 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5866         PR target/63228
5867         * config/i386/i386.c (ix86_option_override_internal): Also turn
5868         off OPTION_MASK_ABI_X32 for -m16.
5870 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5872         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5873         GPR instead of P.
5875 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
5877         PR target/58757
5878         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5879         Directly forward to __*_DENORM_MIN__.
5881 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
5883         * rtl.h (LABEL_REF_LABEL): New macro.
5885         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5886         of XEXP (, 0), where we know that we have a LABEL_REF.
5887         * cfgbuild.c (make_edges): Likewise.
5888         (purge_dead_tablejump_edges): Likewise.
5889         * cfgexpand.c (convert_debug_memory_address): Likewise.
5890         * cfgrtl.c (patch_jump_insn): Likewise.
5891         * combine.c (distribute_notes): Likewise.
5892         * cse.c (hash_rtx_cb): Likewise.
5893         (exp_equiv_p): Likewise.
5894         (fold_rtx): Likewise.
5895         (check_for_label_ref): Likewise.
5896         * cselib.c (rtx_equal_for_cselib_1): Likewise.
5897         (cselib_hash_rtx): Likewise.
5898         * emit-rtl.c (mark_label_nuses): Likewise.
5899         * explow.c (convert_memory_address_addr_space): Likewise.
5900         * final.c (output_asm_label): Likewise.
5901         (output_addr_const): Likewise.
5902         * gcse.c (add_label_notes): Likewise.
5903         * genconfig.c (walk_insn_part): Likewise.
5904         * genrecog.c (validate_pattern): Likewise.
5905         * ifcvt.c (cond_exec_get_condition): Likewise.
5906         (noce_emit_store_flag): Likewise.
5907         (noce_get_alt_condition): Likewise.
5908         (noce_get_condition): Likewise.
5909         * jump.c (maybe_propagate_label_ref): Likewise.
5910         (mark_jump_label_1): Likewise.
5911         (redirect_exp_1): Likewise.
5912         (rtx_renumbered_equal_p): Likewise.
5913         * lra-constraints.c (operands_match_p): Likewise.
5914         * reload.c (operands_match_p): Likewise.
5915         (find_reloads): Likewise.
5916         * reload1.c (set_label_offsets): Likewise.
5917         * reorg.c (get_branch_condition): Likewise.
5918         * rtl.c (rtx_equal_p_cb): Likewise.
5919         (rtx_equal_p): Likewise.
5920         * rtlanal.c (reg_mentioned_p): Likewise.
5921         (rtx_referenced_p): Likewise.
5922         (get_condition): Likewise.
5923         * sched-vis.c (print_value): Likewise.
5924         * varasm.c (const_hash_1): Likewise.
5925         (compare_constant): Likewise.
5926         (const_rtx_hash_1): Likewise.
5927         (output_constant_pool_1): Likewise.
5929 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5931         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5932         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5933         instead of minus.
5934         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5935         cr6_test_for_lt_reverse): Ditto.
5937 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
5939         PR c++/61489
5940         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5942 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5944         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5945         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5946         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5947         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5948         Delete.
5950         (aarch64_fold_builtin): Remove all reinterpret cases.
5952         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5954         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5956         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5957         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5958         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5959         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5960         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5961         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5962         aarch64_reinterpretv2df<mode>): Delete.
5964         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5966         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5967         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5968         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5969         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5970         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5971         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5972         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5973         vreinterpret_u32_f64): Use cast.
5975         * config/aarch64/iterators.md (VD_RE): Delete.
5977 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5979         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5980         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5981         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5982         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5983         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5984         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5985         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5986         Replace inline assembler with __aarch64_vset_lane_any.
5988 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
5990         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5991         types.
5992         (vmull_high_lane_s32): Likewise.
5993         (vmull_high_lane_u16): Likewise.
5994         (vmull_high_lane_u32): Likewise.
5996 2014-09-11  Jason Merrill  <jason@redhat.com>
5998         PR c++/58678
5999         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
6001 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
6003         PR target/63223
6004         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
6005         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
6006         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
6008 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6009             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6010             Anna Tikhonova  <anna.tikhonova@intel.com>
6011             Ilya Tocar  <ilya.tocar@intel.com>
6012             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6013             Ilya Verbin  <ilya.verbin@intel.com>
6014             Kirill Yukhin  <kirill.yukhin@intel.com>
6015             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6017         * config/i386/sse.md
6018         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
6019         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
6020         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
6021         New.
6022         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
6023         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
6024         iterator.
6025         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
6026         New.
6027         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
6028         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
6029         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
6030         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
6031         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
6032         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
6033         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
6034         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
6035         iterator.
6036         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
6037         New.
6038         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
6039         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
6040         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
6042 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6044         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
6045         to access removed nodes.
6047 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6049         PR tree-optimization/63186
6050         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
6051         (mark_nonssa_use): Likewise.
6052         (verify_non_ssa_vars): Verify all header blocks for label
6053         definitions.
6055 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6056             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6057             Anna Tikhonova  <anna.tikhonova@intel.com>
6058             Ilya Tocar  <ilya.tocar@intel.com>
6059             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6060             Ilya Verbin  <ilya.verbin@intel.com>
6061             Kirill Yukhin  <kirill.yukhin@intel.com>
6062             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6064         * config/i386/sse.md
6065         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
6066         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
6067         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
6068         "<avx2_avx512f>_permvar<mode><mask_name>".
6069         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
6070         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
6071         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
6072         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
6073         Ditto.
6074         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
6075         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
6076         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
6077         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
6079 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6081         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
6082         V2DF, V4SF, DF, and DI modes.
6083         (vsx_fmav2df2): Likewise.
6084         (vsx_float_fix_<mode>2): Likewise.
6085         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
6087 2014-09-10  Xinliang David Li  <davidxl@google.com>
6089         PR target/63209
6090         * config/arm/arm.md (movcond_addsi): Handle case where source
6091         and target operands are the same.
6093 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
6095         * final.c (this_is_asm_operands): Strengthen this variable from
6096         rtx to const rtx_insn *.
6097         * output.h (this_is_asm_operands): Likewise.
6098         * rtl-error.c (location_for_asm): Strengthen param "insn" from
6099         const_rtx to const rtx_insn *.
6100         (diagnostic_for_asm): Likewise.
6101         * rtl-error.h (error_for_asm): Likewise.
6102         (warning_for_asm): Likewise.
6104 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
6106         * genextract.c (print_header): When writing out insn_extract to
6107         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
6108         * recog.h (insn_extract): Strengthen the param from rtx to
6109         rtx_insn *.
6111 2014-09-10  Mike Stump  <mikestump@comcast.net>
6113         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
6114         8.6.1.
6116 2014-09-10  Martin Jambor  <mjambor@suse.cz>
6118         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
6119         (analyze): Do not set analyze flag if expand_thunk returns false;.
6120         (create_wrapper): Likewise.
6121         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6123 2014-09-10  Martin Jambor  <mjambor@suse.cz>
6125         PR ipa/61654
6126         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
6127         new decl properly.  Analyze the new thunk if it is expanded.
6129 2014-09-10  Andreas Schwab  <schwab@suse.de>
6131         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
6132         [USED_FOR_TARGET]: Define.
6134 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
6136         * config/mips/mips.c (mips_secondary_reload_class): Handle
6137         regno < 0 case.
6139 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
6141         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
6142         assignment.
6144 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
6146         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
6147         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
6148         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
6149         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
6150         flag_delete_null_pointer_checks for them.
6151         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6152         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
6153         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
6154         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
6155         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
6156         stmt's iterator.
6157         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
6158         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
6159         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
6160         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
6161         * doc/invoke.texi (-fsanitize=nonnull-attribute,
6162         -fsanitize=returns-nonnull-attribute): Document.
6164         * ubsan.h (struct ubsan_mismatch_data): Removed.
6165         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6166         * ubsan.c (ubsan_source_location): For unknown locations,
6167         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
6168         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6169         Allow more than one location and arbitrary extra arguments passed
6170         in ... instead of through MISMATCH pointer.
6171         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
6172         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
6173         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
6174         callers.
6176 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6177             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6178             Anna Tikhonova  <anna.tikhonova@intel.com>
6179             Ilya Tocar  <ilya.tocar@intel.com>
6180             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6181             Ilya Verbin  <ilya.verbin@intel.com>
6182             Kirill Yukhin  <kirill.yukhin@intel.com>
6183             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6185         * config/i386/sse.md
6186         (define_mode_iterator VI48F): New.
6187         (define_insn "<avx512>_compress<mode>_mask"): Rename from
6188         "avx512f_compress<mode>_mask" and update mode iterator.
6189         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
6190         "avx512f_compressstore<mode>_mask" and update mode iterator.
6191         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
6192         "avx512f_expand<mode>_maskz" and update mode iterator.
6193         (define_insn "<avx512>_expand<mode>_mask"): Rename from
6194         "avx512f_expand<mode>_mask" and update mode iterator.
6196 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6197             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6198             Anna Tikhonova  <anna.tikhonova@intel.com>
6199             Ilya Tocar  <ilya.tocar@intel.com>
6200             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6201             Ilya Verbin  <ilya.verbin@intel.com>
6202             Kirill Yukhin  <kirill.yukhin@intel.com>
6203             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6205         * config/i386/i386.c
6206         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
6207         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
6208         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
6209         avx512dq_rangepv4sf_mask.
6210         * config/i386/sse.md
6211         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
6212         UNSPEC_RANGE.
6213         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
6214         (define_insn "reduces<mode>"): Ditto.
6215         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6216         Ditto.
6217         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
6218         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
6219         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
6221 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6222             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6223             Anna Tikhonova  <anna.tikhonova@intel.com>
6224             Ilya Tocar  <ilya.tocar@intel.com>
6225             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6226             Ilya Verbin  <ilya.verbin@intel.com>
6227             Kirill Yukhin  <kirill.yukhin@intel.com>
6228             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6230         * config/i386/i386.c
6231         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
6232         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
6233         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
6234         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
6235         avx512vl_getmantv2df_mask.
6236         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
6237         avx512f_vgetmantv4sf_round.
6238         * config/i386/sse.md
6239         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
6240         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
6241         mode iterator.
6242         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
6243         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
6244         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
6245         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
6246         iterator..
6247         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
6248         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
6249         update mode iterator.
6250         (define_expand
6251         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
6252         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
6253         mode iterator.
6254         (define_insn
6255         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
6256         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
6257         update mode iterator.
6258         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
6259         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
6260         iterator..
6261         (define_insn
6262         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
6263         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
6264         mode iterator..
6265         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
6266         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
6267         update mode iterator.
6268         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
6269         "avx512f_getmant<mode><round_saeonly_name>".
6271 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6273         PR ipa/63166
6274         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
6276 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6278             Anna Tikhonova  <anna.tikhonova@intel.com>
6279             Ilya Tocar  <ilya.tocar@intel.com>
6280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6281             Ilya Verbin  <ilya.verbin@intel.com>
6282             Kirill Yukhin  <kirill.yukhin@intel.com>
6283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6285         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
6286         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
6287         (define_mode_iterator FMAMODE_AVX512): New.
6288         (define_mode_iterator FMAMODE): Remove conditions.
6289         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
6290         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
6291         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
6292         mode iterator.
6293         (define_mode_iterator FMAMODE_NOVF512): Remove.
6294         (define_insn "*fma_fmadd_<mode>"): Rename from
6295         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
6296         FMAMODE mode iterator.
6297         (define_mode_iterator VF_SF_AVX512VL): New.
6298         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
6299         Use VF_SF_AVX512VL mode iterator.
6300         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
6301         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6302         iterator.
6303         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
6304         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6305         iterator.
6306         (define_insn "*fma_fmsub_<mode>"): Rename from
6307         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
6308         FMAMODE mode iterator.
6309         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
6310         Use VF_SF_AVX512VL mode iterator.
6311         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
6312         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6313         iterator.
6314         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
6315         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6316         iterator.
6317         (define_insn "*fma_fnmadd_<mode>"): Rename from
6318         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
6319         use FMAMODE mode iterator.
6320         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
6321         Use VF_SF_AVX512VL mode iterator.
6322         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
6323         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6324         iterator.
6325         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
6326         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6327         iterator.
6328         (define_insn "*fma_fnmsub_<mode>"): Rename from
6329         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
6330         FMAMODE mode iterator.
6331         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
6332         Use VF_SF_AVX512VL mode iterator.
6333         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
6334         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6335         iterator.
6336         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
6337         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6338         iterator.
6339         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
6340         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
6341         use VF_AVX512VL mode iterator.
6342         (define_insn "*fma_fmaddsub_<mode>"): Rename from
6343         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
6344         remove subst usage.
6345         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
6346         Use VF_SF_AVX512VL mode iterator.
6347         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
6348         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6349         iterator.
6350         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
6351         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6352         iterator.
6353         (define_insn "*fma_fmsubadd_<mode>"): Rename from
6354         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
6355         remove usage of subst.
6356         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
6357         Use VF_SF_AVX512VL mode iterator.
6358         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
6359         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6360         iterator.
6361         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
6362         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6363         iterator.
6365 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
6367         Revert r213751:
6368         * calls.c (precompute_arguments): Check
6369          promoted_for_signed_and_unsigned_p and set the promoted mode.
6370         (promoted_for_signed_and_unsigned_p): New function.
6371         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6372         and set the promoted mode.
6373         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6374         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6375         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6377 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6379         * opth-gen.awk: Generate mapping from cpp message reasons to the
6380         options that enable them.
6381         * doc/options.texi (CppReason): Document.
6383 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6385         * doc/invoke.texi (Wnormalized=): Update.
6387 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6389         PR target/63195
6390         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
6391         operands.  Split off the constant operand alternative to ...
6392         (*bool<mode>3_imm): New.
6394 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6396         * rtl.h (single_set_2): Strengthen first param from const_rtx to
6397         const rtx_insn *, and move prototype to above...
6398         (single_set): ...this.  Convert this from a macro to an inline
6399         function, enforcing the requirement that the param is a const
6400         rtx_insn *.
6401         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
6403         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
6404         Strengthen both params from rtx to rtx_insn *.
6405         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6406         Likewise; introduce locals "producer_set", "consumer_set", using
6407         them in place of "producer" and "consumer" when dealing with SET
6408         rather than insn.
6409         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
6410         when invoking single_set in region guarded by INSN_P.
6411         (avr_out_bitop): Likewise.
6412         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
6413         region guarded by GET_CODE check, using methods to strengthen
6414         local "this_insn" from rtx to rtx_insn *, and for clarity.
6415         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
6416         Strengthen local "insn" from rtx to rtx_insn *.
6417         (define_insn_and_split "xload<mode>_A"): Likewise.
6418         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
6419         "insn".
6420         (find_load): Likewise for return type.
6421         (workaround_speculation): Likewise for both locals named
6422         "load_insn".
6423         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
6424         local "cc0_user".
6425         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
6426         for local "prev".
6427         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
6428         param 2.
6429         * config/h8300/h8300.c (notice_update_cc): Likewise.
6430         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
6431         "insn" and "dep_insn".
6432         (exact_store_load_dependency): Likewise for both params.
6433         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
6434         since this now clashes with inline function.  Instead, delay
6435         calling single_set until the point where its needed, and then
6436         assign the result to "compare_set" and rework the conditional that
6437         follows.
6438         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
6439         local "last" from rtx to rtx_insn *.
6440         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
6441         second param.
6442         (mips_store_data_bypass_p): Likewise for both params.
6443         * config/mips/mips.c (mips_load_store_insns): Likewise for second
6444         param.
6445         (mips_store_data_bypass_p): Likewise for both params.
6446         (mips_orphaned_high_part_p): Likewise for param "insn".
6447         * config/mn10300/mn10300.c (extract_bundle): Likewise.
6448         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
6449         Introduce local rtx "insn2_pat".
6450         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
6451         "ninsn".
6452         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
6453         Introduce local rtx "set", using it in place of "insn" for the
6454         result of single_set.  This appears to fix a bug, since the call
6455         to find_regno_note on a SET does nothing.
6456         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
6457         params from rtx to rtx_insn *.
6458         (set_to_load_agen): Likewise.
6459         * config/s390/s390.c (s390_label_align): Likewise for local
6460         "prev_insn".  Introduce new rtx locals "set" and "src", using
6461         them in place of "prev_insn" for the results of single_set
6462         and SET_SRC respectively.
6463         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
6464         Introduce new rtx local "set" using in place of "jump" for the
6465         result of single_set.  Use SET_SRC (set) rather than plain
6466         XEXP (set, 1).
6467         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
6468         rtx to rtx_insn *.
6469         (noncall_uses_reg): Likewise.
6470         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
6471         guarded by GET_CODE check, using its methods for clarity, and to
6472         enable strengthening local "this_insn" from rtx to rtx_insn *.
6473         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
6474         "insn" from rtx to rtx_insn *.
6475         (define_expand "umulhisi3"): Likewise.
6476         (define_expand "smulsi3_highpart"): Likewise.
6477         (define_expand "umulsi3_highpart"): Likewise.
6478         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6479         local "after".  Replace GET_CODE check with a dyn_cast,
6480         introducing new local rtx_sequence * "seq", using insn method for
6481         typesafety.
6483         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
6484         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
6485         place of "insn" once we're dealing with patterns rather than the
6486         input insn.
6487         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
6488         (scan_trace): Likewise for local "elt", updating lookups within
6489         sequence to use insn method rather than element method.
6490         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
6491         to rtx_insn *.
6492         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
6493         * ifcvt.c (noce_try_abs): Likewise for local "insn".
6494         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
6495         invoking single_set.
6496         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
6497         "insn" from rtx to rtx_insn *.
6498         (skip_usage_debug_insns): Likewise for return type, adding a
6499         checked cast.
6500         (check_secondary_memory_needed_p): Likewise for local "insn".
6501         (inherit_reload_reg): Likewise.
6502         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
6503         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
6504         checked casts.
6505         (store_data_bypass_p): Likewise for both params.
6506         (if_test_bypass_p): Likewise.
6507         * recog.h (store_data_bypass_p): Likewise for both params.
6508         (if_test_bypass_p): Likewise.
6509         * reload.c (find_equiv_reg): Likewise for local "where".
6510         * reorg.c (delete_jump): Likewise for param "insn".
6511         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
6512         to const rtx_insn *.
6513         * store-motion.c (replace_store_insn): Likewise for param "del".
6514         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
6515         and use its methods for clarity, and to strengthen local "del"
6516         from rtx to rtx_insn *.
6517         (build_store_vectors): Use insn method of "st" when calling
6518         replace_store_insn for typesafety and clarity.
6520 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6522         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
6523         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
6524         on how to make it legal in future.
6526 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6528         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
6529         to rtx_insn *.
6530         (restinsn): Likewise.
6531         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6532         Likewise for param.
6533         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
6534         Likewise.
6535         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
6536         first param.
6537         (arc_hazard): Likewise for both params.
6538         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
6539         checked casts to rtx_sequence * and uses of the insn method for
6540         type-safety.
6541         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
6542         (arc_adjust_insn_length): Likewise for param "insn".
6543         (struct insn_length_parameters_s): Likewise for first param of
6544         "get_variants" callback field.
6545         (arc_get_insn_variants): Likewise for first param and local
6546         "inner".  Replace a check of GET_CODE with a dyn_cast to
6547         rtx_sequence *, using methods for type-safety and clarity.
6548         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
6549         rtx_sequence * and uses of the insn method for type-safety when
6550         invoking arc_adjust_insn_length.
6551         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
6552         for param.
6553         (arm_address_offset_is_imm): Likewise.
6554         (struct tune_params): Likewise for params 1 and 3 of the
6555         "sched_adjust_cost" callback field.
6556         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
6557         params 1 and 3 ("insn" and "dep").
6558         (xscale_sched_adjust_cost): Likewise.
6559         (fa726te_sched_adjust_cost): Likewise.
6560         (cortexa7_older_only): Likewise for param "insn".
6561         (cortexa7_younger): Likewise.
6562         (arm_attr_length_move_neon): Likewise.
6563         (arm_address_offset_is_imm): Likewise.
6564         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
6565         * config/avr/avr.c (avr_notice_update_cc): Likewise.
6566         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
6567         (workaround_speculation): Likewise for local "last_condjump".
6568         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
6569         (shadow_or_blockage_p): Likewise.
6570         (get_unit_reqs): Likewise.
6571         (get_unit_operand_masks): Likewise.
6572         (c6x_registers_update): Likewise.
6573         (returning_call_p): Likewise.
6574         (can_use_callp): Likewise.
6575         (convert_to_callp): Likewise.
6576         (find_last_same_clock): Likwise for local "t".
6577         (reorg_split_calls): Likewise for local "shadow".
6578         (hwloop_pattern_reg): Likewise for param "insn".
6579         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
6580         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
6581         (frv_extract_membar): Likewise.
6582         (frv_optimize_membar_local): Strengthen param "last_membar" from
6583         rtx * to rtx_insn **.
6584         (frv_optimize_membar_global): Strengthen param "membar" from rtx
6585         to rtx_insn *.
6586         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
6587         to rtx_insn **.
6588         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
6589         both params from rtx to rtx_insn *.
6590         (ia64_ld_address_bypass_p): Likewise.
6591         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
6592         "insn".
6593         (ia64_safe_type): Likewise.
6594         (group_barrier_needed): Likewise.
6595         (safe_group_barrier_needed): Likewise.
6596         (ia64_single_set): Likewise.
6597         (is_load_p): Likewise.
6598         (record_memory_reference): Likewise.
6599         (get_mode_no_for_insn): Likewise.
6600         (important_for_bundling_p): Likewise.
6601         (unknown_for_bundling_p): Likewise.
6602         (ia64_st_address_bypass_p): Likewise for both params.
6603         (ia64_ld_address_bypass_p): Likewise.
6604         (expand_vselect): Introduce new local rtx_insn * "insn", using it
6605         in place of rtx "x" after the emit_insn call.
6606         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
6607         Strengthen param from rtx to rtx_insn *.
6608         (ix86_agi_dependent): Likewise for both params.
6609         (ix86_attr_length_immediate_default): Likewise for param 1.
6610         (ix86_attr_length_address_default): Likewise for param.
6611         (ix86_attr_length_vex_default): Likewise for param 1.
6612         * config/i386/i386.c (ix86_attr_length_immediate_default):
6613         Likewise for param "insn".
6614         (ix86_attr_length_address_default): Likewise.
6615         (ix86_attr_length_vex_default): Likewise.
6616         (ix86_agi_dependent): Likewise for both params.
6617         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
6618         (vselect_insn): Likewise for this variable.
6619         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
6620         for param 1.
6621         (m68k_sched_attr_opy_type): Likewise.
6622         * config/m68k/m68k.c (sched_get_operand): Likewise.
6623         (sched_attr_op_type): Likewise.
6624         (m68k_sched_attr_opx_type): Likewise.
6625         (m68k_sched_attr_opy_type): Likewise.
6626         (sched_get_reg_operand): Likewise.
6627         (sched_get_mem_operand): Likewise.
6628         (m68k_sched_address_bypass_p): Likewise for both params.
6629         (sched_get_indexed_address_scale): Likewise.
6630         (m68k_sched_indexed_address_bypass_p): Likewise.
6631         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6632         (m68k_sched_indexed_address_bypass_p): Likewise.
6633         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6634         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6635         removing another.
6636         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6637         params from rtx to rtx_insn *.
6638         (mips_fmadd_bypass): Likewise.
6639         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6640         (mips_linked_madd_p): Likewise.
6641         (mips_macc_chains_last_hilo): Likewise for this variable.
6642         (mips_macc_chains_record): Likewise for param.
6643         (vr4130_last_insn): Likewise for this variable.
6644         (vr4130_swap_insns_p): Likewise for both params.
6645         (mips_ls2_variable_issue): Likewise for param.
6646         (mips_need_noat_wrapper_p): Likewise for param "insn".
6647         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6648         in place of "x" after the emit_insn.
6649         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6650         params from rtx to rtx_insn *.
6651         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6652         (pa_combine_instructions): Introduce local "par" for result of
6653         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6654         to make_insn_raw.
6655         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6656         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6657         (rl78_alloc_physical_registers_op1): Likewise.
6658         (rl78_alloc_physical_registers_op2): Likewise.
6659         (rl78_alloc_physical_registers_ro1): Likewise.
6660         (rl78_alloc_physical_registers_cmp): Likewise.
6661         (rl78_alloc_physical_registers_umul): Likewise.
6662         (rl78_alloc_address_registers_macax): Likewise.
6663         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6664         * config/s390/predicates.md (execute_operation): Likewise for
6665         local "insn".
6666         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6667         params.
6668         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6669         (addr_generation_dependency_p): Likewise for param "insn".
6670         (s390_agen_dep_p): Likewise for both params.
6671         (s390_fpload_toreg): Likewise for param "insn".
6672         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6673         * config/sh/sh.c (sh_loop_align): Likewise for param and local
6674         "next".
6675         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6676         * config/sh/sh_treg_combine.cc
6677         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6678         and local "i".
6679         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6680         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6681         "and_insn", "load", "shift".
6682         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6683         "insn".
6684         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6685         for XEXP (note, 0) of the REG_CC_SETTER note.
6686         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6687         rtx_insn *, eliminating a checked cast made redundant by this.
6688         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6689         to rtx_insn *.
6690         * genattr.c (main): When writing out the prototype to
6691         const_num_delay_slots, strengthen the param from rtx to
6692         rtx_insn *.
6693         * genattrtab.c (write_const_num_delay_slots): Likewise when
6694         writing out the implementation of const_num_delay_slots.
6695         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6696         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6697         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6698         favor of new rtx locals "src" and "set" and new local rtx_insn *
6699         "insn" and "seq".
6700         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6701         to rtx_insn *.
6702         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6703         locals "cond", "if_then_else", "set" and new rtx_insn * locals
6704         "insn" and "seq".
6705         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6706         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
6707         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
6708         the top-level scope, replacing with new more tightly-scoped rtx
6709         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6710         "new_insn", "copy_of_insn_b", and make local rtx "set" more
6711         tightly-scoped.
6712         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6713         rtx_insn *.
6714         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6715         "move_insn".
6716         (ira_setup_alts): Likewise for param "insn".
6717         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6718         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6719         and an rtx_insn *.
6720         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6721         new more-tightly scoped rtx locals "add3_insn", "insn",
6722         "add2_insn" and rtx_insn * "move_insn".
6723         * postreload-gcse.c (eliminate_partially_redundant_load): Add
6724         checked cast on result of gen_move_insn when invoking
6725         extract_insn.
6726         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6727         rtx_insn *.
6728         (verify_changes): Add a checked cast on "object" when invoking
6729         insn_invalid_p.
6730         (extract_insn_cached): Strengthen param "insn" from rtx to
6731         rtx_insn *.
6732         (extract_constrain_insn_cached): Likewise.
6733         (extract_insn): Likewise.
6734         * recog.h (insn_invalid_p): Likewise for param 1.
6735         (recog_memoized): Likewise for param.
6736         (extract_insn): Likewise.
6737         (extract_constrain_insn_cached): Likewise.
6738         (extract_insn_cached): Likewise.
6739         * reload.c (can_reload_into): Likewise for local "test_insn".
6740         * reload.h (cleanup_subreg_operands): Likewise for param.
6741         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6742         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6743         result of emit_insn.  Remove a checked cast made redundant by this
6744         change.
6745         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6746         rtx to rtx_insn *.
6747         * sel-sched.c (get_reg_class): Likewise.
6749 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6750             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6752         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6753         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6754         Define.
6755         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6757 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6759         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6760         const rtx_insn *, and from rtx to rtx_insn * for the other
6761         overloaded variant.
6762         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6763         INSN_LOCATION, since we know INSN_P holds.
6764         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6765         (insn_file): Likewise.
6766         (insn_scope): Likewise.
6767         (insn_location): Likewise.
6769         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6770         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6771         for the result of gen_load_const_gp.
6772         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6773         param from rtx to rtx_insn *.
6774         * config/rs6000/rs6000.c (output_call): Likewise.
6775         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6776         introducing a checked cast to rtx_sequence * and use of the insn
6777         method.
6778         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6779         from rtx to rtx_insn *.
6780         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6781         (insn_line): Likewise.
6782         (insn_file): Likewise.
6783         (insn_location): Likewise.
6784         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6785         from rtx to rtx_insn *.
6786         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6787         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6788         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6789         via a checked cast.
6790         * reorg.c (relax_delay_slots): Strengthen locals named "after"
6791         from rtx to rtx_insn *; use methods of "pat" for type-safety.
6793 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6795         * combine.c (try_combine): Eliminate checked cast on result of
6796         gen_rtx_INSN.
6797         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6798         autogenerated one by strengthening the return type and params 2 and 3
6799         from rtx to rtx_insn *, and by naming the params.
6800         * gengenrtl.c (special_rtx): Add INSN to those that are
6801         special-cased.
6802         * rtl.h (gen_rtx_INSN): New prototype.
6804 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6806         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6807         than NULL_RTX.
6808         (no_equiv): Likewise.
6809         (update_equiv_regs): Likewise.
6810         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
6811         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6812         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
6813         clarity.
6814         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6815         from rtx to rtx_insn_list *.
6816         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6817         rtx_insn_list * and use methods for clarity and typesafety.
6818         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6819         "list".
6820         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
6821         redundant check on INSN_P (insns): this cannot hold, as "insns" is
6822         an INSN_LIST, not an insn.
6823         (reverse_equiv_p): Strengthen local "insns" from rtx to
6824         rtx_insn_list * and use methods for clarity and typesafety.
6825         (contains_reloaded_insn_p): Likewise for local "list".
6827 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
6829         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6830         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6831         (arm_builtin_vectorized_function): Likewise.
6832         * config/arm/arm_neon_builtins.def: New macro for copysignf.
6833         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6835 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
6837         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6838         * builtins.h (default_target_builtins): Likewise.
6839         * gcse.h (default_target_gcse): Likewise.
6840         * target-globals.h (target_globals): Add a destructor.  Convert
6841         void-pointer fields back to their real type and change from
6842         GTY((atomic)) to GTY((skip)).
6843         (restore_target_globals): Remove casts accordingly.
6844         * target-globals.c (save_target_globals): Use XCNEW rather than
6845         ggc_internal_cleared_alloc to allocate non-GC structures.
6846         Use ggc_cleared_alloc to allocate the target_globals structure
6847         itself.
6848         (target_globals::~target_globals): Define.
6850 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6852         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6853         mnemonic instead of fldmfdd.
6854         * config/arm/arm.c (vfp_output_fstmd): Rename to...
6855         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
6856         Output vpush when address register is SP.
6857         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6858         (vfp_output_vstmd): ... This.
6859         * config/arm/vfp.md (push_multi_vfp): Update call to
6860         vfp_output_vstmd.
6862 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6864         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6866 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6868         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6869         (*sqrtdf2_vfp): Likewise.
6870         (*cmpsf_vfp): Likewise.
6871         (*cmpsf_trap_vfp): Likewise.
6872         (*cmpdf_vfp): Likewise.
6873         (*cmpdf_trap_vfp): Likewise.
6875 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6877         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6878         (*truncdfsf2_vfp): Likewise.
6879         (*truncsisf2_vfp): Likewise.
6880         (*truncsidf2_vfp): Likewise.
6881         (fixuns_truncsfsi2): Likewise.
6882         (fixuns_truncdfsi2): Likewise.
6883         (*floatsisf2_vfp): Likewise.
6884         (*floatsidf2_vfp): Likewise.
6885         (floatunssisf2): Likewise.
6886         (floatunssidf2): Likewise.
6888 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6890         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6891         (*muldf3_vfp): Likewise.
6892         (*mulsf3negsf_vfp): Likewise.
6893         (*muldf3negdf_vfp): Likewise.
6894         (*mulsf3addsf_vfp): Likewise.
6895         (*muldf3adddf_vfp): Likewise.
6896         (*mulsf3subsf_vfp): Likewise.
6897         (*muldf3subdf_vfp): Likewise.
6898         (*mulsf3negsfaddsf_vfp): Likewise.
6899         (*fmuldf3negdfadddf_vfp): Likewise.
6900         (*mulsf3negsfsubsf_vfp): Likewise.
6901         (*muldf3negdfsubdf_vfp): Likewise.
6903 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6905         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6906         (*absdf2_vfp): Likewise.
6907         (*negsf2_vfp): Likewise.
6908         (*negdf2_vfp): Likewise.
6909         (*addsf3_vfp): Likewise.
6910         (*adddf3_vfp): Likewise.
6911         (*subsf3_vfp): Likewise.
6912         (*subdf3_vfp): Likewise.
6913         (*divsf3_vfp): Likewise.
6914         (*divdf3_vfp): Likewise.
6916 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6918         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6919         multiple.
6920         (arm_print_operand): Don't convert real values to decimal
6921         representation in default case.
6922         (fp_immediate_constant): Delete.
6923         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6924         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6925         syntax.
6926         (*thumb2_movsi_vfp): Likewise.
6927         (*movdi_vfp): Likewise.
6928         (*movdi_vfp_cortexa8): Likewise.
6929         (*movhf_vfp_neon): Likewise.
6930         (*movhf_vfp): Likewise.
6931         (*movsf_vfp): Likewise.
6932         (*thumb2_movsf_vfp): Likewise.
6933         (*movdf_vfp): Likewise.
6934         (*thumb2_movdf_vfp): Likewise.
6935         (*movsfcc_vfp): Likewise.
6936         (*thumb2_movsfcc_vfp): Likewise.
6937         (*movdfcc_vfp): Likewise.
6938         (*thumb2_movdfcc_vfp): Likewise.
6940 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
6942         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6943         (-mtune): Likewise.
6944         (-mcpu): Likewise.
6946 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6948         PR target/61749
6949         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6950         Use qualifier_immediate for last operand.  Rename to...
6951         (aarch64_types_ternop_lane_qualifiers): ... This.
6952         (TYPES_QUADOP): Rename to...
6953         (TYPES_TERNOP_LANE): ... This.
6954         (aarch64_simd_expand_args): Return const0_rtx when encountering user
6955         error.  Change return of 0 to return of NULL_RTX.
6956         (aarch64_crc32_expand_builtin): Likewise.
6957         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6958         ICE when expanding unknown builtin.
6959         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6960         TERNOP_LANE qualifiers.
6961         (sqdmlsl_lane): Likewise.
6962         (sqdmlal_laneq): Likewise.
6963         (sqdmlsl_laneq): Likewise.
6964         (sqdmlal2_lane): Likewise.
6965         (sqdmlsl2_lane): Likewise.
6966         (sqdmlal2_laneq): Likewise.
6967         (sqdmlsl2_laneq): Likewise.
6969 2014-09-09  Nick Clifton  <nickc@redhat.com>
6971         * doc/invoke.texi (Optimization Options): Add missing @gol to the
6972         end of a line.
6973         (S/390 and zSeries Options): Remove superfluous word from the
6974         description of the -mhotpatch option.
6976 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6978         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6979         * ira.c: #include "shrink-wrap.h"
6980         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6981         * ifcvt.c: #include "shrink-wrap.h"
6982         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6984 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
6986         * common/config/picochip/picochip-common.c: Remove.
6987         * config.gcc: Remove support for picochip.
6988         * config/picochip/constraints.md: Remove.
6989         * config/picochip/dfa_space.md: Remove.
6990         * config/picochip/dfa_speed.md: Remove.
6991         * config/picochip/picochip-protos.h: Remove.
6992         * config/picochip/picochip.c: Remove.
6993         * config/picochip/picochip.h: Remove.
6994         * config/picochip/picochip.md: Remove.
6995         * config/picochip/picochip.opt: Remove.
6996         * config/picochip/predicates.md: Remove.
6997         * config/picochip/t-picochip: Remove.
6998         * doc/md.texi: Don't document picochi.
7000 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
7002         * basic-block.h (control_flow_insn_p): Strengthen param from
7003         const_rtx to const rtx_insn *.
7004         * cfgbuild.c (control_flow_insn_p): Likewise.
7006 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
7008         * gcse.c (modify_mem_list): Strengthen this variable from
7009         vec<rtx> * to vec<rtx_insn *> *.
7010         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
7011         vec<rtx_insn *>.
7012         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
7013         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
7014         (record_last_mem_set_info): Strengthen param "insn" from rtx to
7015         rtx_insn *.
7016         (record_last_set_info): Likewise for local "last_set_insn".
7018 2014-09-08  DJ Delorie  <dj@redhat.com>
7020         * doc/invoke.texi (MSP430 Options): Add -minrt.
7022 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7024         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
7025         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
7026         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
7027         handling SH_SPLAT.
7028         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
7029         of extracted lane.
7030         (adjust_splat): New function.
7031         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
7032         (dump_swap_insn_table): Add case for SH_SPLAT.
7034 2014-09-08  Richard Biener  <rguenther@suse.de>
7036         PR ipa/63196
7037         * tree-inline.c (copy_loops): The source loop header should
7038         always be non-NULL.
7039         (tree_function_versioning): If loops need fixup after removing
7040         unreachable blocks fix them.
7041         * omp-low.c (simd_clone_adjust): Do not add incr block to
7042         loop under construction.
7044 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
7046         * config/aarch64/aarch64-builtins.c
7047         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
7049 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
7051         * config/i386/cygming.h (TF_SIZE): Remove.
7052         * config/i386/darwin.h (TF_SIZE): Remove.
7053         * config/i386/dragonfly.h (TF_SIZE): Remove.
7054         * config/i386/freebsd.h (TF_SIZE): Remove.
7055         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
7056         * config/i386/openbsdelf.h (TF_SIZE): Remove.
7057         * config/i386/sol2.h (TF_SIZE): Remove.
7058         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
7059         * config/ia64/linux.h (TF_SIZE): Remove.
7060         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
7061         * doc/tm.texi: Regenerate.
7062         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
7064 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
7066         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
7067         Remove.
7068         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
7069         Remove.
7070         * doc/tm.texi: Regenerate.
7071         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
7072         Poison.
7073         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
7074         * config/cris/cris.h (__make_dp): Remove.
7076 2014-09-08  Richard Biener  <rguenther@suse.de>
7078         PR bootstrap/63204
7079         * cfgloop.c (mark_loop_for_removal): Track former header
7080         unconditionally.
7081         * cfgloop.h (struct loop): Add former_header member unconditionally.
7082         * loop-init.c (fix_loop_structure): Enable bogus loop removal
7083         diagnostic unconditionally.
7085 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
7087         PR target/63190
7088         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
7089         constraint for operand0 and remove write only modifier from operand3.
7091 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
7093         PR rtl-optimization/62208
7094         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
7095         rather than const0_rtx in eq/ne-xor simplifications.
7097 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
7099         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
7100         (arc_output_mi_thunk): Likewise.
7102         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
7103         arguments to silence bogus warning.
7105 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
7107         PR middle-end/63171
7108         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
7110 2014-09-06  Tom de Vries  <tom@codesourcery.com>
7112         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
7113         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
7114         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7116 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
7118         PR target/63188
7119         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
7120         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
7122 2014-09-05  Easwaran Raman  <eraman@google.com>
7124         PR rtl-optimization/62146
7125         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
7126         hoisted instruction unconditional.
7128 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
7130         PR target/63187
7131         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
7132         Do not allow any_mask_operand for operands[2].
7133         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
7135 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7137         * config/arc/arc.c (arc_print_operand): Use insn method of
7138         final_sequence for type-safety.
7139         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
7140         "insn" from rtx to rtx_insn *.
7141         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
7142         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7143         Likewise for locals "branch", "label".
7144         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
7145         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
7146         (same_cmp_following_p): Likewise for locals "i2", "i3".
7147         * config/sh/sh_optimize_sett_clrt.cc
7148         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
7149         param "cbranch_insn".
7150         * function.c (convert_jumps_to_returns): Likewis for local "jump".
7151         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
7152         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
7153         const rtx_insn *.
7154         (condjump_p): Likewise.
7155         (condjump_in_parallel_p): Likewise.
7156         (pc_set): Likewise.
7157         (any_uncondjump_p): Likewise.
7158         (any_condjump_p): Likewise.
7159         (condjump_label): Likewise.
7160         (returnjump_p): Strengthen param "insn" from rtx to
7161         const rtx_insn *.
7162         (onlyjump_p): Strengthen param "insn" from const_rtx to
7163         const rtx_insn *.
7164         (jump_to_label_p): Likewise.
7165         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
7166         (invert_jump): Likewise.
7167         * reorg.c (simplejump_or_return_p): Add checked cast when calling
7168         simplejump_p.
7169         (get_jump_flags): Strengthen param "insn" from rtx to
7170         const rtx_insn *.
7171         (get_branch_condition): Likewise.
7172         (condition_dominates_p): Likewise.
7173         (make_return_insns): Move declaration of local "pat" earlier, to
7174         after we've handled NONJUMP_INSN_P and non-sequences, using its
7175         methods to simplify the code and for type-safety.
7176         * rtl.h (find_constant_src): Strengthen param from const_rtx to
7177         const rtx_insn *.
7178         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
7179         (condjump_p): Strengthen param from const_rtx to
7180         const rtx_insn *.
7181         (any_condjump_p): Likewise.
7182         (any_uncondjump_p): Likewise.
7183         (pc_set): Likewise.
7184         (condjump_label): Likewise.
7185         (simplejump_p): Likewise.
7186         (returnjump_p): Likewise.
7187         (onlyjump_p): Likewise.
7188         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
7189         (invert_jump): Likewise.
7190         (condjump_in_parallel_p): Strengthen param from const_rtx to
7191         const rtx_insn *.
7192         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
7193         to const rtx_insn *.
7194         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
7195         to const rtx_insn *.
7196         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
7198 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7200         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
7201         above the conditional, and convert the check on GET_CODE to a
7202         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
7203         the conditional.  Simplify the conditional by using methods of
7204         "trial_seq".
7206 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7208         * haifa-sched.c (check_clobbered_conditions): Strengthen local
7209         "link" from rtx to rtx_insn_list *, and use its methods for
7210         clarity and type-safety.
7211         (toggle_cancelled_flags): Likewise.
7212         (restore_last_backtrack_point): Likewise.
7213         (queue_to_ready): Use insn method of "link" in one place.
7214         (schedule_block): Strengthen local "link" from rtx to
7215         rtx_insn_list *, and use its methods for clarity and type-safety.
7217 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7219         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
7220         param "insn" from const_rtx to const rtx_insn *.
7221         (sched_get_reverse_condition_uncached): Likewise.
7222         (sched_get_condition_with_rev): Likewise.
7223         (sched_has_condition_p): Likewise.
7224         (sched_insns_conditions_mutex_p): Likewise for both params.
7225         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
7226         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
7227         (setup_insn_reg_uses): Move local "list" to be more tightly
7228         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
7229         its methods for clarity and type-safety.
7230         (sched_analyze_1): Strengthen local "pending" from rtx to
7231         rtx_insn_list *, and local "pending_mem" from rtx to
7232         rtx_expr_list *.  Use methods of each for clarity and type-safety.
7233         (sched_analyze_2): Likewise.
7234         (sched_analyze_insn): Likewise.
7236         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
7237         param from const_rtx to const rtx_insn *.
7238         (sched_insns_conditions_mutex_p): Likewise for both params.
7239         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
7240         param.
7242         * system.h (CONST_CAST_RTX_INSN): New macro.
7244 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7246         * recog.c (peep2_attempt): Strengthen return type from rtx to
7247         rtx_insn *.
7248         (peep2_update_life): Likewise for params "last", "prev", removing
7249         a checked cast made redundant by this.
7250         (peephole2_optimize): Likewise for local "last".
7252 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7254         * basic-block.h (set_block_for_insn): Eliminate this macro in
7255         favor of...
7256         * rtl.h (set_block_for_insn): New inline function, imposing the
7257         requirement that the "insn" param is an rtx_insn *.
7259 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7261         * caller-save.c (setup_save_areas): Strengthen local "insn" from
7262         rtx to rtx_insn *.
7263         * final.c (get_call_reg_set_usage): Likewise for first param,
7264         eliminating a checked cast.
7265         * regs.h (get_call_reg_set_usage): Likewise for first param.
7266         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
7267         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
7268         cast, replacing references to "x" with "call_insn" where
7269         appropriate.
7270         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
7271         rtx_insn *, adding a checked cast.
7273 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7275         * output.h (final_scan_insn): Strengthen first param from rtx to
7276         rtx_insn *.
7278         * final.c (final_scan_insn): Likewise, renaming it back from
7279         "uncast_insn" to "insn", eliminating the checked cast.
7281         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
7282         "vec" with an rtx_sequence * "seq", taking a copy of
7283         "final_sequence", and using methods of "seq" for clarity, and for
7284         type-safety in the calls to final_scan_insn.
7285         * config/mips/mips.c (mips_output_conditional_branch): Use methods
7286         of "final_sequence" for clarity, and for type-safety in the call to
7287         final_scan_insn.
7288         * config/sh/sh.c (print_slot): Strengthen param from rtx to
7289         rtx_sequence * and rename from "insn" to "seq".
7291 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7293         * jump.c (delete_related_insns): Introduce a new local "table" by
7294         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
7295         get_labels method of "table" to simplify access to the labels in
7296         the jump table.
7298 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7300         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
7301         f_minmaxs, f_minmaxd types.
7303 2014-09-05  Richard Biener  <rguenther@suse.de>
7305         * cfgloop.c (mark_loop_for_removal): Record former header
7306         when ENABLE_CHECKING.
7307         * cfgloop.h (strut loop): Add former_header member when
7308         ENABLE_CHECKING.
7309         * loop-init.c (fix_loop_structure): Sanity check loops
7310         marked for removal if they re-appeared.
7312 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7314         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
7315         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
7317         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
7318         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
7319         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
7320         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
7321         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
7322         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
7323         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
7324         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
7325         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
7326         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
7327         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
7328         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
7329         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
7330         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
7331         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
7332         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
7333         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
7334         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
7335         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
7336         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
7337         with int{32,16,8}_t.
7339 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7341         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
7342         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
7343         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
7344         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
7345         Remove temporary __asm__ and reimplement.
7347 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7349         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
7350         handling cmge, cmgt, cmeq, cmtst.
7352         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
7353         cmlt, cmgeu, cmgtu, cmtst): Remove.
7355         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
7356         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
7357         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
7358         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
7360 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7362         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
7363         TYPES_TST): Define.
7364         (aarch64_fold_builtin): Update pattern for cmtst.
7366         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
7367         Declare.
7369         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
7371         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
7372         Switch operands, separate out more cases, refactor.
7374         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
7376         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
7377         argument; rename old version to...
7378         (aarch64_const_vec_all_same_in_range_p): ...this.
7379         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
7381         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
7383 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7385         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7386         Remove qualifier_const_pointer, update comment.
7388 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7390         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
7392 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7394         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
7395         varargs with pointer parameter.
7396         (aarch64_simd_expand_builtin): pass pointer into previous.
7398 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7400         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
7401         alus_ext.
7403 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7405         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
7406         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
7407         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
7408         Replace temporary asm with call to builtin.
7409         (vrbit_p8, vrbitq_p8): New functions.
7411 2014-09-05  Richard Biener  <rguenther@suse.de>
7413         * cfgloop.c (mark_loop_for_removal): New function.
7414         * cfgloop.h (mark_loop_for_removal): Declare.
7415         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
7416         (merge_blocks): Likewise.
7417         (duplicate_block): Likewise.
7418         * except.c (sjlj_emit_dispatch_table): Likewise.
7419         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
7420         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
7421         (thread_through_loop_header): Likewise.
7423 2014-09-05  Richard Biener  <rguenther@suse.de>
7425         PR middle-end/63148
7426         * fold-const.c (try_move_mult_to_index): Remove.
7427         (fold_binary_loc): Do not call it.
7428         * tree-data-ref.c (dr_analyze_indices): Strip conversions
7429         from the base object again.
7431 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
7433         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
7434         DImode.
7436 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7438         PR target/55701
7439         * config/arm/arm.md (setmem): New pattern.
7440         * config/arm/arm-protos.h (struct tune_params): New fields.
7441         (arm_gen_setmem): New prototype.
7442         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7443         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7444         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7445         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7446         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7447         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7448         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7449         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7450         (arm_const_inline_cost): New function.
7451         (arm_block_set_max_insns): New function.
7452         (arm_block_set_non_vect_profit_p): New function.
7453         (arm_block_set_vect_profit_p): New function.
7454         (arm_block_set_unaligned_vect): New function.
7455         (arm_block_set_aligned_vect): New function.
7456         (arm_block_set_unaligned_non_vect): New function.
7457         (arm_block_set_aligned_non_vect): New function.
7458         (arm_block_set_vect, arm_gen_setmem): New functions.
7460 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7462         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
7464 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7466         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7468 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7470         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
7471         an rtx.
7472         * valtrack.h: Adjust.
7474 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7476         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
7477         an rtx.
7478         (emit_jump_insn_before_noloc): Likewise.
7479         (emit_call_insn_before_noloc): Likewise.
7480         (emit_label_before): Likewise.
7481         (emit_label_after): Likewise.
7482         (emit_insn_before_setloc): Likewise.
7483         (emit_jump_insn_before_setloc): Likewise.
7484         (emit_call_insn_before_setloc): Likewise.
7485         (emit_call_insn_before): Likewise.
7486         * rtl.h: Adjust.
7488 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7490         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
7491         rtx_insn *, eliminating a checked cast.
7493 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7495         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
7496         const_rtx to const rtx_insn *.
7497         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
7498         cast.
7500 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7502         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
7503         fixup_args_size_notes.
7504         * expr.c (fixup_args_size_notes): Strengthen first two params from
7505         rtx to rtx_insn *, eliminating a checked cast.
7506         * rtl.h (fixup_args_size_notes): Strengthen first two params from
7507         rtx to rtx_insn *.
7509 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7511         * haifa-sched.c (get_ready_element): Strengthen return type from
7512         rtx to rtx_insn *.
7513         * sched-int.h (get_ready_element): Likewise.
7515 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
7517         PR target/63165
7518         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
7519         indexed_or_indirect_operand instead of memory_operand.
7520         (floatsi<mode>2_lfiwzx_mem): Ditto.
7522 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7524         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
7525         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
7526         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
7528 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7530         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
7531         rtx.
7532         (get_last_nonnote_insn): Likewise.
7533         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
7534         * resource.c (find_basic_block): Likewise.
7535         * rtl.h: Adjust.
7536         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
7537         const_rtx.
7539 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7541         * genattr.c (main): Within the prototype of insn_latency written
7542         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
7543         * genautomata.c (output_internal_maximal_insn_latency_func):
7544         Within the implementation of insn_latency written out to
7545         insn-automata.c, strengthen both params from rtx to rtx_insn *,
7546         eliminating a pair of checked casts.
7548 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7550         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
7551         rtx_insn *.
7553         * rtl.h (eh_returnjump_p): Likewise.
7555 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
7557         * Makefile.in (TAGS): Handle constructs in timevar.def.
7559 2014-09-04  Guozhi Wei  <carrot@google.com>
7561         PR target/62040
7562         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
7563         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
7564         it into two patterns.
7565         (move_lo_quad_internal_be_<mode>): Likewise.
7567 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7569         * doc/options.texi: Document that Var and Init are required if CPP
7570         is given.
7571         * optc-gen.awk: Require Var and Init if CPP is given.
7572         * common.opt (Wpedantic): Use Init.
7574 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7576         * config/rs6000/rs6000.c (special_handling_values): Add
7577         SH_EXTRACT.
7578         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
7579         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
7580         as swappable with special handling SH_EXTRACT.  Remove
7581         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
7582         optimization.
7583         (adjust_extract): New function.
7584         (handle_special_swappables): Add default to case statement; add
7585         case for SH_EXTRACT that calls adjust_extract.
7586         (dump_swap_insn_table): Handle SH_EXTRACT.
7588 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7590         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
7591         selection of 0th memory doubleword, regardless of endianness.
7593 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7595         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
7597 2014-09-04  Alan Modra  <amodra@gmail.com>
7599         PR debug/60655
7600         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
7601         can't be output.
7603 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
7605         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
7606         * targhooks.c (default_dwarf_frame_reg_mode): New function.
7607         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
7608         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
7609         * doc/tm.texi: Regenerate.
7610         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
7611         selection logic to default_dwarf_frame_reg_mode.
7613 2014-09-03  Marek Polacek  <polacek@redhat.com>
7615         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
7616         by -Wall.
7618 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7620         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
7621         the automodified register.
7623 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7625         * output.h (get_some_local_dynamic_name): Declare.
7626         * final.c (some_local_dynamic_name): New variable.
7627         (get_some_local_dynamic_name): New function.
7628         (final_end_function): Clear some_local_dynamic_name.
7629         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7630         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7631         (print_operand): Report an error if '%&' is used inappropriately.
7632         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7633         (get_some_local_dynamic_name_1): Delete.
7634         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7635         (rs6000_get_some_local_dynamic_name): Delete.
7636         (rs6000_get_some_local_dynamic_name_1): Delete.
7637         (print_operand): Report an error if '%&' is used inappropriately.
7638         * config/s390/s390.c (machine_function): Remove some_ld_name.
7639         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7640         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7641         * config/sparc/sparc.c: Include rtl-iter.h.
7642         (machine_function): Remove some_ld_name.
7643         (sparc_print_operand): Report an error if '%&' is used inappropriately.
7644         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7646 2014-09-03  Richard Henderson  <rth@redhat.com>
7648         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7649         (aarch64_popwb_pair_reg): Remove.
7650         (aarch64_set_frame_expr): Remove.
7651         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7652         the restore ops performed by the insns generated.
7653         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7654         insn.  Perform the calls_eh_return addition later; do not attempt to
7655         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
7656         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7657         special markup at all.  Load cfun->machine->frame.hard_fp_offset
7658         into a local variable.
7659         (aarch64_frame_pointer_required): Don't check calls_alloca.
7661 2014-09-03  Richard Biener  <rguenther@suse.de>
7663         * opts.c (default_options_optimization): Adjust
7664         max-combine-insns to 2 for -Og.
7666 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7668         PR ipa/62015
7669         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7670         pass-trough jump functions correctly.
7672 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7674         PR ipa/61986
7675         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7676         created replacements in ascending order of offsets.
7677         (known_aggs_to_agg_replacement_list): Likewise.
7679 2014-09-03  Martin Liska  <mliska@suse.cz>
7681         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7682         is set to set uninitialized value for vnresult.
7684 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7686         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7687         for TARGET_MUST_PASS_IN_STACK.
7689 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7691         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7692         for TARGET_ARG_PARTIAL_BYTES.
7694 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7696         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7697         instructions for varargs implementation.
7698         (nds32_expand_epilogue): Emit stack adjustment instructions for
7699         varargs implementation.
7701 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7703         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7704         optimization detection.
7706 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7708         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7709         arguments.
7710         (nds32_function_arg_advance): Deal with nameless arguments.
7711         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7712         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7713         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7715 2014-09-03  Richard Biener  <rguenther@suse.de>
7717         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7718         (struct bb_bitmap_sets): Remove deferred member.
7719         (BB_DEFERRED): Remove.
7720         (defer_or_phi_translate_block): Remove.
7721         (compute_antic_aux): Remove deferring of blocks, assert
7722         proper iteration order.
7723         (compute_antic): Do not set BB_DEFERRED.
7724         (eliminate): Allocate el_avail of proper size initially.
7726 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7728         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7729         according to the value of crtl->args.pretend_args_size.
7731 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7733         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7734         varargs information.
7736 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7738         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7739         implementation for TARGET_SETUP_INCOMING_VARARGS.
7740         (nds32_strict_argument_naming): Refine comment.
7741         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7742         Define for future implementation.
7744 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
7746         * config/i386/adxintrin.h (_subborrow_u32): New.
7747         (_addcarry_u32): Ditto.
7748         (_subborrow_u64): Ditto.
7749         (_addcarry_u64): Ditto.
7750         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7751         IX86_BUILTIN_SBB64.
7752         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7753         __builtin_ia32_sbb_u64
7755 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7757         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7758         GPR-specific stuff.
7759         (nds32_function_arg_advance): Likewise.
7760         (nds32_init_cumulative_args): Likewise.
7761         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7762         (NDS32_FIRST_GPR_REGNUM): Define.
7763         (NDS32_LAST_GPR_REGNUM): Define.
7764         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7765         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7766         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7767         (machine_function): Use GRP-specific stuff.
7769 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7771         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7772         (nds32_expand_epilogue): Likewise.
7773         (nds32_expand_prologue_v3push): Likewise.
7774         (nds32_expand_epilogue_v3pop): Likewise.
7776 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7778         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7779         v3push/v3pop for variadic function.
7780         * config/nds32/nds32.md (prologue, epilogue): Likewise.
7782 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7784         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7785         Check rtx for varargs implementation.
7786         (nds32_output_stack_pop): Likewise.
7787         * config/nds32/nds32-protos.h: Have a rtx argument for
7788         nds32_output_stack_push and nds32_output_stack_pop.
7789         * config/nds32/nds32.md: Likewise.
7791 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7793         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7794         to check if FUNC is an interrupt service routine.
7795         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7797 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7799         * config/nds32/nds32.h (machine_function): Add some fields for variadic
7800         arguments implementation.
7802 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7804         * config/nds32/nds32-predicates.c
7805         (nds32_valid_stack_push_pop): Rename to ...
7806         (nds32_valid_stack_push_pop_p): ... this.
7807         * config/nds32/nds32-protos.h: Likewise.
7808         * config/nds32/predicates.md: Likewise.
7810 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7812         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7813         (nds32_emit_stack_v3push): ... this.
7814         (nds32_gen_stack_v3pop): Rename to ...
7815         (nds32_emit_stack_v3pop): ... this and consider CFA restore
7816         information.
7818 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7820         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7821         (nds32_emit_stack_push_multiple): ... this.
7822         (nds32_gen_stack_pop_multiple): Rename to ...
7823         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7824         information.
7826 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7828         PR target/61078
7829         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7830         and add a second splitter to handle the remaining cases.
7832 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7834         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7836 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7838         * cfgexpand.c (label_rtx_for_bb): Change type to
7839         hash_map<basic_block, rtx_code_label *> *.
7840         (expand_gimple_basic_block): Adjust.
7841         (pass_expand::execute): Likewise.
7843 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7845         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7846         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7847         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7848         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7849         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7850         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7851         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7852         of rtx.
7854 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7856         * alloc-pool.c: Include coretypes.h.
7857         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7858         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7859         hash_set instead of htab.
7860         * ggc-page.c (in_gc): New variable.
7861         (ggc_free): Do nothing if a collection is taking place.
7862         (ggc_collect): Set in_gc appropriately.
7863         * ggc.h (gt_ggc_mx(const char *)): New function.
7864         (gt_pch_nx(const char *)): Likewise.
7865         (gt_ggc_mx(int)): Likewise.
7866         (gt_pch_nx(int)): Likewise.
7867         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7868         (hash_map::hash_entry::pch_nx): Likewise.
7869         (hash_map::hash_entry::pch_nx_helper): Likewise.
7870 (hash_map::hash_map): Adjust.
7871 (hash_map::create_ggc): New function.
7872 (gt_ggc_mx): Likewise.
7873 (gt_pch_nx): Likewise.
7874         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7875 (default_hashset_traits::pch_nx): Likewise.
7876 (hash_set::hash_entry::ggc_mx): Likewise.
7877 (hash_set::hash_entry::pch_nx): Likewise.
7878 (hash_set::hash_entry::pch_nx_helper): Likewise.
7879 (hash_set::hash_set): Adjust.
7880 (hash_set::create_ggc): New function.
7881 (hash_set::elements): Likewise.
7882 (gt_ggc_mx): Likewise.
7883 (gt_pch_nx): Likewise.
7884         * hash-table.h (hash_table::hash_table): Adjust.
7885 (hash_table::m_ggc): New member.
7886         (hash_table::~hash_table): Adjust.
7887         (hash_table::expand): Likewise.
7888         (hash_table::empty): Likewise.
7889 (gt_ggc_mx): New function.
7890         (hashtab_entry_note_pointers): Likewise.
7891 (gt_pch_nx): Likewise.
7893 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7895         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
7896         built-in definition.
7897         (XVCVUXDDP_SCALE): Likewise.
7898         (XVCVDPSXDS_SCALE): Likewise.
7899         (XVCVDPUXDS_SCALE): Likewise.
7900         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
7901         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7902         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7903         VSX_BUILTIN_XVCVDPUXDS_SCALE.
7904         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7905         prototype.
7906         * config/rs6000/rs6000.c (real.h): New include.
7907         (rs6000_scale_v2df): New function.
7908         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7909         (UNSPEC_VSX_XVCVUXDDP): Likewise.
7910         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7911         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7912         (vsx_xvcvsxddp_scale): New define_expand.
7913         (vsx_xvcvsxddp): New define_insn.
7914         (vsx_xvcvuxddp_scale): New define_expand.
7915         (vsx_xvcvuxddp): New define_insn.
7916         (vsx_xvcvdpsxds_scale): New define_expand.
7917         (vsx_xvcvdpsxds): New define_insn.
7918         (vsx_xvcvdpuxds_scale): New define_expand.
7919         (vsx_xvcvdpuxds): New define_insn.
7920         * doc/extend.texi (vec_ctf): Add new prototypes.
7921         (vec_cts): Likewise.
7922         (vec_ctu): Likewise.
7923         (vec_splat): Likewise.
7924         (vec_div): Likewise.
7925         (vec_mul): Likewise.
7927 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7929         PR target/62275
7930         * config/arm/neon.md
7931         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7932         <v_cmp_result>): New pattern.
7933         * config/arm/iterators.md (NEON_VCVT): New int iterator.
7934         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7935         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7936         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7937         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7938         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7940 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7942         PR target/62275
7943         * config/arm/iterators.md (FIXUORS): New code iterator.
7944         (VCVT): New int iterator.
7945         (su_optab): New code attribute.
7946         (su): Likewise.
7947         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7949 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7951         * config/aarch64/predicates.md (aarch64_comparison_operation):
7952         New special predicate.
7953         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7954         aarch64_comparison_operation instead of matching an operator.
7955         Update operand numbers.
7956         (csinc3<mode>_insn): Likewise.
7957         (*csinv3<mode>_insn): Likewise.
7958         (*csneg3<mode>_insn): Likewise.
7959         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7960         * config/aarch64/aarch64.c (aarch64_get_condition_code):
7961         Return -1 instead of aborting on invalid condition codes.
7962         (aarch64_print_operand): Update aarch64_get_condition_code callsites
7963         to assert that the returned condition code is valid.
7964         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7966 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
7968         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7969         tree.def, and gimple.def
7971 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
7972             Balaji V. Iyer  <balaji.v.iyer@intel.com>
7973             Igor Zamyatin  <igor.zamyatin@intel.com>
7975         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7976         (__cilkrts_cilk_for_64): Likewise.
7977         * cilk-common.c (declare_cilk_for_builtin): New function.
7978         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7979         __cilkrts_cilk_for_64 bultins.
7980         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7981         CILK_TI_F_LOOP_64.
7982         (cilk_for_32_fndecl): New define.
7983         (cilk_for_64_fndecl): Likewise.
7984         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7985         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7986         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7987         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7988         GF_OMP_FOR_COMBINED_INTO.
7989         * gimplify.c (gimplify_scan_omp_clauses): Added
7990         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7991         (gimplify_adjust_omp_clauses): Ditto.
7992         (gimplify_omp_for): Added CILK_FOR case.
7993         (gimplify_expr): Ditto.
7994         * omp-low.c: Include cilk.h.
7995         (extract_omp_for_data): Set appropriate kind for
7996         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7997         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7998         (create_omp_child_function_name): Added second argument to handle
7999         cilk_for case.
8000         (cilk_for_check_loop_diff_type): New function.
8001         (expand_cilk_for_call): Likewise.
8002         (expand_cilk_for): Likewise.
8003         (create_omp_child_function): Set cilk_for_count; handle the cases when
8004         it is true; call create_omp_child_function_name with second argument.
8005         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
8006         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
8007         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
8008         * tree-nested.c (convert_nonlocal_omp_clauses): Added
8009         OMP_CLAUSE__CILK_FOR_COUNT_ case.
8010         (convert_local_omp_clauses): Ditto.
8011         * tree-pretty-print.c (dump_omp_clause): Added
8012         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
8013         (dump_generic_node): Added CILK_FOR case.
8014         * tree.c (omp_clause_num_ops): New element
8015         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
8016         (omp_clause_code_name): New element _Cilk_for_count_.
8017         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
8018         * tree.def: Add tree code for CILK_FOR.
8020 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8022         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
8023         (ppc403-compare): Add "exts with dot" case.
8024         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
8025         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
8026         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
8027         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
8028         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
8029         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
8030         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
8031         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
8032         cell-cmp-microcoded): Similarly.
8033         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
8034         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
8035         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
8036         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
8037         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
8038         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
8039         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
8040         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
8041         (power6-compare): Add "exts with dot" case.
8042         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
8043         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
8044         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
8046         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
8047         if avoiding Cell microcode.
8048         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
8049         (is_cracked_insn): Ditto.
8050         (insn_must_be_first_in_group): Ditto.
8051         * config/rs6000/rs6000.md (dot): Adjust comment.
8052         (cell_micro): Handle exts+dot.
8053         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
8054         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
8055         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
8056         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
8057         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
8058         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
8059         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
8061 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8063         * config/rs6000/rs6000.md (QHSI): Delete.
8064         (EXTQI, EXTHI, EXTSI): New mode iterators.
8065         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
8066         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
8067         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
8068         9 anonymous instructions, and 8 splitters): Delete.
8069         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
8070         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
8071         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
8072         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
8073         *zero_extendsi<mode>2_dot2): New.
8075 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8077         * config/rs6000/rs6000.md (any_extend): New code iterator.
8078         (u, su): New code attributes.
8079         (dmode, DMODE): New mode attributes.
8080         (<su>mul<mode>3_highpart): New.
8081         (*<su>mul<mode>3_highpart): New.
8082         (<su>mulsi3_highpart_le): New.
8083         (<su>muldi3_highpart_le): New.
8084         (<su>mulsi3_highpart_64): New.
8085         (<u>mul<mode><dmode>3): New.
8086         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
8087         splitters): Delete.
8088         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
8089         splitters): Delete.
8091 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8093         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
8094         *mulsi3_internal2, and two splitters): Delete.
8095         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
8096         Delete.
8097         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
8099 2014-09-02  Richard Biener  <rguenther@suse.de>
8101         PR tree-optimization/62695
8102         * tree-ssa-structalias.c (find_func_clobbers): Add missing
8103         vector truncate.
8105 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
8107         PR target/62312
8108         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
8110 2014-09-01  Andi Kleen  <ak@linux.intel.com>
8112         * file-find.c (add_prefix_begin): Add.
8113         (do_add_prefix): Rename from add_prefix with first argument.
8114         (add_prefix): Add new wrapper.
8115         * file-find.h (add_prefix_begin): Add.
8116         * gcc-ar.c (main): Support -B option.
8118 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
8120         * genemit.c: Include dumpfile.h.
8121         (gen_split): Print name of splitter function to dump file.
8123 2014-09-01  Richard Biener  <rguenther@suse.de>
8125         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
8126         Use stack auto_vecs for constraint expressions.
8127         (find_func_aliases_for_call): Likewise.
8128         (find_func_aliases): Likewise.
8129         (find_func_clobbers): Likewise.
8131 2014-09-01  Richard Biener  <rguenther@suse.de>
8133         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
8134         operands vector in most cases.  Remove redundant code.
8136 2014-09-01  Olivier Hainque  <hainque@adacore.com>
8138         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
8139         $WIND_BASE instead of designating a harcoded arbitrary home dir.
8140         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
8142 2014-09-01  Richard Biener  <rguenther@suse.de>
8144         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
8145         copy_reference_ops_from_call, vn_nary_op_compute_hash,
8146         vn_reference_compute_hash, vn_reference_insert): Remove.
8147         (vn_reference_lookup_call): New function.
8148         * tree-ssa-sccvn.c (vn_reference_compute_hash,
8149         copy_reference_ops_from_ref, copy_reference_ops_from_call,
8150         vn_reference_insert, vn_nary_op_compute_hash): Make static.
8151         (create_reference_ops_from_call): Remove.
8152         (vn_reference_lookup_3): Properly update shared_lookup_references.
8153         (vn_reference_lookup_pieces): Assert that we updated
8154         shared_lookup_references properly.
8155         (vn_reference_lookup): Likewise.
8156         (vn_reference_lookup_call): New function.
8157         (visit_reference_op_call): Use it.  Avoid re-building the
8158         reference ops.
8159         (visit_reference_op_load): Remove redundant lookup.
8160         (visit_reference_op_store): Perform special tail-merging work
8161         only when possibly doing tail-merging.
8162         (visit_use): Likewise.
8163         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
8165 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
8167         PR target/62025
8168         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
8169         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
8170         (find_inc): Revert 2014-08-13 change.
8172 2014-09-01  Marek Polacek  <polacek@redhat.com>
8174         PR middle-end/61903
8175         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
8176         Change the type of V to unsigned HOST_WIDE_INT.
8178 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8180         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
8181         the size of byte markers.
8182         (do_shift_rotate): Fix confusion between host, target and marker byte
8183         size.
8184         (verify_symbolic_number_p): Likewise.
8185         (find_bswap_or_nop_1): Likewise.
8186         (find_bswap_or_nop): Likewise.
8188 2014-09-01  Olivier Hainque  <hainque@adacore.com>
8190         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
8191         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
8193 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
8195         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
8196         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
8197         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
8199 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
8201         PR sanitizer/61897
8202         PR sanitizer/62140
8203         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
8204         (build_check_stmt): Likewise.
8205         (instrument_strlen_call): Likewise.
8206         (asan_expand_check_ifn): Likewise and fix types.
8207         (maybe_cast_to_ptrmode): New function.
8209 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8211         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
8213 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
8215         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
8217 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
8219         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
8220         prefix to function labels when generating fast indirect calls.
8222 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
8224         PR bootstrap/62304
8226         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
8227         param back from rtx_insn * to rtx.  Rename param from "label" to
8228         "label_or_return", reintroducing "label" as an rtx_insn * after
8229         we've ensured it's not a RETURN.
8230         (first_active_target_insn): Likewise for return type and param;
8231         add a checked cast to rtx_insn * once we've ensured "insn" is not
8232         a RETURN.
8233         (steal_delay_list_from_target): Convert param "pnew_thread" back
8234         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
8235         with JUMP_LABEL.
8236         (own_thread_p): Convert param "thread" back from an rtx_insn * to
8237         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
8238         cast once we've established we're not dealing with a RETURN,
8239         renaming subsequent uses of "thread" to "thread_insn".
8240         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
8241         to JUMP_LABEL.
8242         (follow_jumps): Convert return type and param "label" from
8243         rtx_insn * back to rtx.  Move initialization of "value" to after
8244         the handling for ANY_RETURN_P, adding a checked cast there to
8245         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
8246         rename to "this_label_or_return", reintroducing "this_label" as
8247         an rtx_insn * once we've handled the case where it could be an
8248         ANY_RETURN_P.
8249         (fill_slots_from_thread): Rename param "thread" to
8250         "thread_or_return", converting from an rtx_insn * back to an rtx.
8251         Reintroduce name "thread" as an rtx_insn * local with a checked
8252         cast once we've handled the case of it being an ANY_RETURN_P.
8253         Convert local "new_thread" from an rtx_insn * back to an rtx.
8254         Add a checked cast when assigning to "trial" from "new_thread".
8255         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
8256         checked cast to rtx_insn * from "new_thread" when invoking
8257         get_label_before.
8258         (fill_eager_delay_slots): Convert locals "target_label",
8259         "insn_at_target" from rtx_insn * back to rtx.
8260         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
8261         (relax_delay_slots): Convert locals "trial", "target_label" from
8262         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
8263         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
8264         invoking update_block.
8265         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
8266         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
8268         * resource.h (mark_target_live_regs): Undo erroneous conversion
8269         of second param of r214693, converting it back from rtx_insn * to
8270         rtx, since it could be a RETURN.
8272         * resource.c (find_dead_or_set_registers): Similarly, convert
8273         param "jump_target" back from an rtx_insn ** to an rtx *, as we
8274         could be writing back a RETURN.  Rename local rtx_insn * "next" to
8275         "next_insn", and introduce "lab_or_return" as a local rtx,
8276         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
8277         (mark_target_live_regs): Undo erroneous conversion
8278         of second param of r214693, converting it back from rtx_insn * to
8279         rtx, since it could be a RETURN.  Rename it from "target" to
8280         "target_maybe_return", reintroducing the name "target" as a local
8281         rtx_insn * with a checked cast, after we've handled the case of
8282         ANY_RETURN_P.
8284 2014-08-29  DJ Delorie  <dj@redhat.com>
8286         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
8287         pointer size up to a power of two.
8288         * defaults.h (DWARF2_ADDR_SIZE): Round up.
8289         (POINTER_SIZE_UNITS): New, rounded up value.
8290         * dwarf2asm.c (size_of_encoded_value): Use it.
8291         (dw2_output_indirect_constant_1): Likewise.
8292         * expmed.c (init_expmed_one_conv): We now know the sizes of
8293         partial int modes.
8294         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
8295         * optabs.c (expand_float): Use precision, not size.
8296         (expand_fix): Likewise.
8297         * simplify-rtx (simplify_unary_operation_1): Likewise.
8298         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8299         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
8300         (default_assemble_integer) Likewise.
8301         (dump_tm_clone_pairs): Likewise.
8302         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
8303         * var-tracking.c (adjust_mems): Allow partial-int modes also.
8304         (prepare_call_arguments): Likewise.
8305         * stor-layout.c (finalize_type_size): Preserve precision.
8306         (layout_type): Use precision, not size.
8308         * expr.c (convert_move): If the target has an explicit converter,
8309         use it.
8311 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8313         * gdbinit.in: Skip various inline functions in rtl.h when
8314         stepping.
8316 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
8318         PR bootstrap/62301
8319         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
8321 2014-08-29  Richard Biener  <rguenther@suse.de>
8323         PR tree-optimization/62291
8324         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
8325         exactly the vector size needed and use quick_push.
8326         (phi_translate_1): Adjust comment.
8327         (valid_in_sets): Remove block argument and remove pointless
8328         checking of NAMEs.
8329         (dependent_clean): Adjust for removal of block argument.
8330         (clean): Likewise.
8331         (compute_antic_aux): Likewise.
8332         (compute_partial_antic_aux): Likewise.
8334 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8335             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8336             Anna Tikhonova  <anna.tikhonova@intel.com>
8337             Ilya Tocar  <ilya.tocar@intel.com>
8338             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8339             Ilya Verbin  <ilya.verbin@intel.com>
8340             Kirill Yukhin  <kirill.yukhin@intel.com>
8341             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8343         * config/i386/sse.md
8344         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
8345         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
8346         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
8347         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
8349 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8350             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8351             Anna Tikhonova  <anna.tikhonova@intel.com>
8352             Ilya Tocar  <ilya.tocar@intel.com>
8353             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8354             Ilya Verbin  <ilya.verbin@intel.com>
8355             Kirill Yukhin  <kirill.yukhin@intel.com>
8356             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8358         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
8359         * config/i386/sse.md
8360         (define_mode_iterator VI4_128_8_256): New.
8361         (define_mode_iterator VI2_128_4_256): Ditto.
8362         (define_mode_iterator PMOV_DST_MODE): Rename into
8363         (define_mode_iterator PMOV_DST_MODE_1): this.
8364         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
8365         Use PMOV_DST_MODE_1 mode iterator.
8366         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8367         Ditto.
8368         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8369         Ditto.
8370         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
8371         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
8372         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
8373         (define_mode_iterator PMOV_DST_MODE_2): New.
8374         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
8375         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
8376         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
8377         Ditto.
8378         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
8379         (define_mode_attr pmov_dst_3): Ditto.
8380         (define_mode_attr pmov_dst_zeroed_3): Ditto.
8381         (define_mode_attr pmov_suff_3): Ditto.
8382         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
8383         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
8384         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
8385         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
8386         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
8387         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
8388         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
8389         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
8390         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
8391         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
8392         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
8393         (define_mode_attr pmov_dst_4): Ditto.
8394         (define_mode_attr pmov_dst_zeroed_4): Ditto.
8395         (define_mode_attr pmov_suff_4): Ditto.
8396         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
8397         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
8398         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
8399         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
8400         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
8401         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
8402         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
8403         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
8404         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
8405         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
8406         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
8408 2014-08-29  Richard Biener  <rguenther@suse.de>
8410         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
8411         NON_LVALUE_EXPR in gimple.
8413 2014-08-29  Richard Biener  <rguenther@suse.de>
8415         PR middle-end/62292
8416         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
8417         from previous refactoring.
8418         (gimple_fold_builtin_strncpy): Likewise.
8420 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8422         PR bootstrap/62300
8423         * function.c (assign_parm_setup_reg): Remove erroneous checked
8424         cast to rtx_insn * on result of gen_extend_insn in favor of
8425         introducing a new local rtx "pat".
8427 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8429         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
8430         to silence warning.
8431         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
8433 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8435         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
8436         (next_insn): Likewise.
8437         * emit-rtl.c (next_insn): Likewise.
8438         (previous_insn): Likewise.
8439         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
8440         "insn" and "next" from rtx to rtx_insn *.
8441         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
8442         "insn", "insn1", "vliw_start",  "prologue_end_note",
8443         "last_insn_in_packet".
8445 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8447         * shrink-wrap.h (active_insn_between): Strengthen both params from
8448         rtx to rtx_insn *.
8449         * function.c (active_insn_between): Likewise.
8451 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8453         * genattr.c (main): When writing out insn-attr.h, strengthen param
8454         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
8455         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
8456         writing out the definition of dfa_clear_single_insn_cache to the
8457         generated insn-automata.c
8459 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8461         * resource.h (clear_hashed_info_for_insn): Strengthen param from
8462         rtx to rtx_insn *.
8463         (incr_ticks_for_insn): Likewise.
8464         (init_resource_info): Likewise.
8466         * resource.c (init_resource_info): Likewise.
8467         (clear_hashed_info_for_insn): Likewise.
8468         (incr_ticks_for_insn): Likewise.
8470         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
8471         rtx to rtx_insn *.
8472         (steal_delay_list_from_target): Use methods of "seq".
8473         (try_merge_delay_insns): Use methods of "merged_insns".
8474         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
8475         (reorg_redirect_jump): Likewise for param "jump".
8477 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8479         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
8480         rtx to rtx_insn *.
8481         * config/s390/s390.c (s390_split_branches): Eliminate top-level
8482         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
8483         "set_insn".
8484         (s390_mainpool_finish): In three places, split out a local rtx
8485         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
8486         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
8487         and split another local rtx "insn" out into rtx "pat" and
8488         rtx_insn * "insn".
8489         * config/sh/sh.c (output_branchy_insn): Rather than working
8490         directly on operands[9], introduce local rtx_code_label *
8491         variables named "lab" in two places, working on them, and then
8492         assigning them to operands[9], so that the intervening operations
8493         are known by the type system to be on insns.
8495 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8497         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
8498         const rtx_insn *.
8500         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
8501         in invocation of INSN_HAS_LOCATION.
8503 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8505         * config/rs6000/altivec.h (vec_xl): New #define.
8506         (vec_xst): Likewise.
8507         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
8508         (XXSPLTD_V2DI): Likewise.
8509         (DIV_V2DI): Likewise.
8510         (UDIV_V2DI): Likewise.
8511         (MUL_V2DI): Likewise.
8512         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8513         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
8514         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
8515         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
8516         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
8517         (UNSPEC_VSX_DIVSD): Likewise.
8518         (UNSPEC_VSX_DIVUD): Likewise.
8519         (UNSPEC_VSX_MULSD): Likewise.
8520         (vsx_mul_v2di): New insn-and-split.
8521         (vsx_div_v2di): Likewise.
8522         (vsx_udiv_v2di): Likewise.
8523         (vsx_xxspltd_<mode>): New insn.
8525 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8527         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
8528         NEXT_INSN.
8529         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
8530         (NEXT_INSN): Likewise.
8531         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
8532         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
8533         const rtx_insn *.
8534         (no_labels_between_p): Likewise for both params.
8536         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
8537         cast when using NEXT_INSN on operands[2].
8538         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
8539         "insn" from rtx to rtx_insn *, adding a checked cast.
8540         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
8541         rtx_insn *.
8542         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
8543         for third param.
8544         (arc_text_label): Likewise for param "insn".
8545         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
8546         "insn".
8547         (arc_ccfsm_record_condition): Likewise for param "jump".
8548         (arc_text_label): Likewise for local "label".
8549         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
8550         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
8551         a method for typesafety.  Add a checked cast.
8552         * config/arc/constraints.md (Clb): Add a checked cast when getting
8553         the CODE_LABEL from a LABEL_REF.
8554         * config/arm/arm.c (require_pic_register): Strengthen locals
8555         "seq", "insn" from rtx to rtx_insn *.
8556         (create_fix_barrier): Likewise for locals "selected", "next".
8557         (thumb1_reorg): Likewise for locals "prev", "insn".
8558         (arm_expand_prologue): Likewise for local "last".
8559         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
8560         operands[0].
8561         (thumb2_output_casesi): Likewise for operands[2].
8562         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
8563         strengthen local "insn" from rtx to rtx_insn *.
8564         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
8565         type and param "insn".
8566         (find_prev_insn_start): Likewise.
8567         (hwloop_optimize): Likewise for locals "insn", "last_insn",
8568         "prev".
8569         (gen_one_bundle): Likewise for loal "t".
8570         (find_load): Likewise for param "insn".
8571         (workaround_speculation): Likewise for locals "insn", "next",
8572         "target", "next_tgt".
8573         * config/c6x/c6x.c (assign_reservations): Likewise for both params
8574         and for locals "insn", "within", "last".
8575         (count_unit_reqs): Likewise for params "head", "tail" and local
8576         "insn".
8577         (try_rename_operands): Likewise for params "head", "tail".
8578         (reshuffle_units): Likewise for locals "head", "tail", "insn".
8579         (struct c6x_sched_context): Likewise for fields
8580         "last_scheduled_insn", "last_scheduled_iter0".
8581         (init_sched_state): Replace NULL_RTX with NULL.
8582         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
8583         to rtx_insn *.
8584         (undo_split_delayed_nonbranch): Likewise for param and for local
8585         "prev".
8586         (conditionalize_after_sched): Likewise for local "insn".
8587         (bb_earliest_end_cycle): Likewise.
8588         (filter_insns_above): Likewise for locals "insn", "next".
8589         (hwloop_optimize): Remove redundant checked cast.
8590         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
8591         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
8592         NULL_RTX with NULL.
8593         (cris_simple_epilogue): Likewise.
8594         (cris_expand_prologue): Likewise.
8595         (cris_expand_epilogue): Likewise.
8596         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
8597         local "insn" from rtx to rtx_insn *.
8598         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
8599         (struct frv_packet_group): Likewise for the elements within array
8600         fields "insns", "sorted", and for field "nop".
8601         (frv_packet): Likewise for the elements within array field
8602         "insns".
8603         (frv_add_insn_to_packet): Likewise for param "insn".
8604         (frv_insert_nop_in_packet): Likewise for param "insn" and local
8605         "last".
8606         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
8607         (frv_sort_insn_group_1): Likewise for local "insn".
8608         (frv_optimize_membar_local): Likewise.
8609         (frv_align_label): Likewise for locals "x", "last", "barrier",
8610         "label".
8611         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
8612         local.
8613         (ia64_sched_init): Likewise for local "insn".
8614         (scheduled_good_insn): Likewise for param "last".
8615         (struct _ia64_sched_context): Likewise for field
8616         "last_scheduled_insn".
8617         (ia64_init_sched_context): Replace NULL_RTX with NULL.
8618         (struct bundle_state): Likewise for field "insn".
8619         (issue_nops_and_insn): Likewise for param "insn".
8620         (get_next_important_insn): Likewise for return type and both
8621         params.
8622         (ia64_add_bundle_selector_before): Likewise for param "insn".
8623         (bundling): Likewise for params "prev_head_insn", "tail" and
8624         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
8625         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8626         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8627         Strengthen final param from rtx to rtx_insn *.
8628         (iq2000_move_1word): Likewise for second param.
8629         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8630         param "cur_insn" and local "next_insn".
8631         (iq2000_move_1word): Likewise for param "insn".
8632         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8633         casts when using NEXT_INSN on operands[1].
8634         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8635         "insn" from rtx to rtx_insn *.
8636         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8637         "x", introducing local rtx_insn * "insn" for when working with the
8638         CODE_LABEL of the LABEL_REF.
8639         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8640         rtx_insn *.
8641         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8642         param.
8643         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8644         type.
8645         (conditionalize_block): Likewise for return type and param.
8646         (mcore_is_dead): Likewise for param "first" and local "insn".
8647         (emit_new_cond_insn): Likewise for return type.
8648         (conditionalize_block): Likewise for return type, param, and
8649         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8650         "newinsn".
8651         (conditionalize_optimization): Likewise for local "insn".
8652         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8653         using NEXT_INSN.
8654         * config/microblaze/microblaze.md: Add checked casts when using
8655         NEXT_INSN.
8656         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8657         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8658         and rtx_insn * "insn".
8659         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8660         checked cast when using NEXT_INSN on operands[2].
8661         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8662         local "insn" from rtx to rtx_insn *.
8663         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8664         Likewise.
8665         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8666         Add a checked cast when using NEXT_INSN on operands[1].
8667         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8668         rtx to rtx_insn *.
8669         (pa_output_cbranch): Likewise for final param.
8670         (pa_output_lbranch): Likewise for second param.
8671         (pa_output_bb): Likewise for third param.
8672         (pa_output_bvb): Likewise.
8673         (pa_output_dbra): Likewise for second param.
8674         (pa_output_movb): Likewise.
8675         (pa_output_parallel_movb): Likewise.
8676         (pa_output_parallel_addb): Likewise.
8677         (pa_output_millicode_call): Likewise for first param.
8678         (pa_output_mul_insn): Likewise for second param.
8679         (pa_output_div_insn): Likewise for third param.
8680         (pa_output_mod_insn): Likewise for second param.
8681         (pa_jump_in_call_delay): Likewise for param.
8682         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8683         (pa_output_div_insn): Likewise.
8684         (pa_output_mod_insn): Likewise.
8685         (pa_output_cbranch): Likewise.
8686         (pa_output_lbranch): Likewise.
8687         (pa_output_bb): Likewise.
8688         (pa_output_bvb): Likewise.
8689         (pa_output_dbra): Likewise.
8690         (pa_output_movb): Likewise.
8691         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8692         to simplify and for typesafety.
8693         (pa_output_call): Use method of rtx_sequence *.
8694         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8695         (pa_jump_in_call_delay): Likewise.
8696         (pa_output_parallel_movb): Likewise.
8697         (pa_output_parallel_addb): Likewise.
8698         (pa_following_call): Likewise.
8699         (pa_combine_instructions): Likewise for locals "anchor",
8700         "floater".
8701         (pa_can_combine_p): Likewise for params "anchor", "floater" and
8702         locals "start", "end".
8703         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8704         param "insn" and local "local_insn".
8705         (picochip_final_prescan_insn): Likewise for local "local_insn".
8706         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8707         local "insn".
8708         (uses_TOC): Likewise.
8709         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8710         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8711         splitting out to more tightly-scoped locals, 3 as rtx and one as
8712         rtx_insn *.
8713         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8714         to rtx_insn *.
8715         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8716         where needed.
8717         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8718         to rtx_insn *.
8719         (fixup_addr_diff_vecs): Likewise.
8720         (reg_unused_after): Likewise for param 2.
8721         (sh_can_redirect_branch): Likewise for both params.
8722         (check_use_sfunc_addr): Likewise for param 1.
8723         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8724         (find_barrier): Likewise for local "last_got".
8725         (gen_block_redirect): Likewise for return type, param "jump" and
8726         locals "prev", "scan", "next", "insn".
8727         (struct far_branch): Likewise for fields "near_label",
8728         "insert_place", "far_label".
8729         (gen_far_branch): Likewise for local "jump".
8730         (fixup_addr_diff_vecs): Likewise for param "first" and locals
8731         "insn", "prev".
8732         (barrier_align): Likewise for param and for locals "prev", "x".
8733         Introduce local rtx_sequence * "prev_seq" and use insn method for
8734         typesafety and clarity.
8735         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8736         (get_dest_uid): Likewise for local "dest".
8737         (split_branches): Likewise for locals "next", "beyond", "label",
8738         "block", "far_label".  Add checked casts when assigning to
8739         bp->far_label and "far_label".
8740         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8741         (sequence_insn_p): Likewise.
8742         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
8743         more loop-scoped rtx "insn" when walking LABEL_REFS.
8744         (sh_can_redirect_branch): Strengthen both params from rtx to
8745         rtx_insn *.
8746         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
8747         new local rtx_sequence * "seq" via a dyn_cast, and use a method
8748         for clarity and typesafety.
8749         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8750         "insn" from rtx to rtx_insn *.
8751         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8752         when using NEXT_INSN on the CODE_LABEL in operands[2].
8753         (define_insn "casesi_worker_2"): Likewise.
8754         (define_insn "casesi_shift_media"): Likewise.
8755         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8756         operands[3].
8757         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8758         Strengthen field "insn" from rtx to rtx_insn *.
8759         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8760         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8761         param "start_insn" and local "start_insn".
8762         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8763         field "insn".
8764         (find_set_of_reg_bb): Likewise for param "insn".
8765         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8766         (trace_reg_uses): Likewise for param "start_insn".
8767         (sh_treg_combine::cbranch_trace): Likewise for field
8768         "cbranch_insn".
8769         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8770         param "insn".
8771         (sh_treg_combine::record_set_of_reg): Likewise for param
8772         "start_insn" and local "i".
8773         (sh_treg_combine::can_remove_cstore): Likewise for local
8774         "prev_insn".
8775         (sh_treg_combine::try_optimize_cbranch): Likewise for param
8776         "insn".
8777         (sh_treg_combine::execute): Likewise for local "i".
8778         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8779         param.
8780         (sparc_check_64): Likewise for second param.
8781         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8782         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
8783         dyn_cast, using its insn method for typesafety and clarity.
8784         (empty_delay_slot): Strengthen param "insn" from rtx to
8785         rtx_insn *.
8786         (set_extends): Likewise.
8787         (sparc_check_64): Likewise.
8788         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8789         for locals "seq", "last_insn".
8790         (combine_bnp): Likewise for param "insn".
8791         (xstormy16_reorg): Likewise for local "insn".
8792         * config/v850/v850.c (substitute_ep_register): Likewise for params
8793         "first_insn", "last_insn" and local "insn".
8794         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8795         elements of "regs" array, and local "insn".
8796         * except.c (emit_note_eh_region_end): Likewise for param "insn".
8797         * final.c (final_sequence): Strengthen this global from rtx to
8798         rtx_sequence *.
8799         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8800         rtx_insn *.
8801         (final_scan_insn): Update assignment to "final_sequence" to be
8802         from "seq", the cast version of "body", for type-safety.
8803         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8804         "insns" from rtx to rtx_insn *.
8805         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8806         * genattr.c (main): When writing out generated insn-attr.h,
8807         strengthen params 1 and 3 of eligible_for_delay,
8808         eligible_for_annul_true, eligible_for_annul_false from rtx to
8809         rtx_insn *.
8810         * genattrtab.c (write_eligible_delay): Likewise when writing out
8811         generated insn-attrtab.c; also local "insn" the generated
8812         functions.
8813         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8814         to rtx_insn *.
8815         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8816         "start_label" from rtx to rtx_insn *.
8817         * ira.c (decrease_live_ranges_number): Likewise for local "p".
8818         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8819         "insns" and local "insn".
8820         (validate_equiv_mem): Likewise for param "start" and local "insn".
8821         (memref_used_between_p): Likewise for params "start", "end" and
8822         local "insn".
8823         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8824         final param.
8825         * loop-doloop.c (doloop_optimize): Within region guarded by
8826         INSN_P (doloop_pat), introduce a new local rtx_insn *
8827         "doloop_insn" via a checked cast, and use it for typesafety,
8828         eventually writing the value back into doloop_pat.
8829         * output.h (final_sequence): Strengthen this global from rtx to
8830         rtx_sequence *.
8831         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8832         reintroducing "insn" as an rtx_insn * via a checked cast.
8833         Strengthen param "attempt" and local "new_insn"from rtx to
8834         rtx_insn *.
8835         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8836         to rtx_insn *.
8837         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8838         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8839         "p" in favor of more tightly-scoped replacements, sometimes rtx
8840         and sometimes rtx_insn *, as appropriate.
8841         (delete_output_reload): Eliminate top-level rtx "i1", splitting
8842         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8843         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
8844         local "trial" from rtx to rtx_insn *.
8845         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8846         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
8847         rtx_sequence * and use methods for clarity and typesafety.
8848         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8849         rtx to rtx_insn *.  Strenghten local "li" from rtx to
8850         rtx_insn_list * and use its methods for clarity and typesafety.
8851         (steal_delay_list_from_target): Strengthen param "insn" from rtx
8852         to rtx_insn *.
8853         (steal_delay_list_from_fallthrough): Likewise.
8854         (try_merge_delay_insns): Likewise for param "thread" and locals
8855         "trial", "next_trial", "delay_insn".
8856         (redundant_insn): Likewise for param "target" and local "trial".
8857         (own_thread_p): Likewise for param "thread" and locals
8858         "active_insn", "insn".
8859         (get_label_before): Likewise for param "insn".
8860         (fill_simple_delay_slots): Likewise for local "new_label"; use
8861         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8862         (label_before_next_insn): Strengthen return type and local "insn"
8863         from rtx to rtx_insn *.
8864         (relax_delay_slots): Likewise for locals "other", "tmp".
8865         (make_return_insns): Likewise for param "first" and locals "insn",
8866         "jump_insn", "prev".  Move declaration of "pat" to its assignment
8867         and strengthen from rtx to rtx_sequence *.  Use its methods for
8868         clarity and typesafety.
8869         * rtlanal.c (no_labels_between_p): Strengthen params from
8870         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
8871         rtx_insn *.
8872         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8873         from const_rtx to const rtx_insn *.
8874         (reg_set_between_p): Rename param "from_insn" to
8875         "uncast_from_insn", and reintroduce "from_insn" as a
8876         const rtx_insn * via a checked cast.
8877         (modified_between_p): Likewise for param "start" as "uncast_start".
8878         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8879         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8880         "tmp", head" from rtx to rtx_insn *.
8881         (recompute_rev_top_order): Likewise for local "insn".
8882         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8883         * store-motion.c (build_store_vectors): Likewise for local "insn".
8884         Strengthen local "st" from rtx to rtx_insn_list * and use methods
8885         for clarity and typesafety.
8886         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8887         rtx to rtx_insn *.
8888         (computation_cost): Likewise for local "seq".
8889         (get_address_cost): Likewise.
8891 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8893         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8894         const rtx_insn *.
8895         (label_is_jump_target_p): Likewise for second param.
8897         * rtlanal.c (tablejump_p): Likewise for param "insn".
8898         (label_is_jump_target_p): Likewise for param "jump_insn".
8900 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8902         * rtl.h (find_first_parameter_load): Strengthen return type and
8903         both params from rtx to rtx_insn *.
8904         * rtlanal.c (find_first_parameter_load): Strengthen return type,
8905         both params and locals "before", "first_set" from rtx to
8906         rtx_insn *.  Remove now-redundant cast.
8907         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8909 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8911         * rtl.h (find_last_value): Delete.
8912         * rtlanal.c (find_last_value): Delete.
8914 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8916         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8917         from rtx to rtx_insn *.
8918         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8919         rtx "note" with new local rtx_insn * "new_head" when calculating
8920         head insn of new basic block.
8921         * combine.c (combine_split_insns): Strengthen return type and local
8922         "ret" from rtx to rtx_insn *.
8923         (likely_spilled_retval_p): Likewise for locals "use" and "p".
8924         (try_combine): Eliminate local "m_split", splitting into new
8925         locals "m_split_insn" and "m_split_pat".
8926         (find_split_point): Strengthen local "seq" from rtx into
8927         rtx_insn *.
8928         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8929         locals "label", "branch".
8930         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8931         for local "insn".
8932         (define_expand "umulsi3_highpart"): Likewise for local "insn".
8933         * dse.c (note_add_store_info): Likewise for fields "first",
8934         "current".
8935         (note_add_store): Likewise for local "insn".
8936         (emit_inc_dec_insn_before): Likewise for locals "insn",
8937         "new_insn", "cur".
8938         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8939         (replace_read): Likewise for locals "insns", "this_insn".
8940         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8941         (notice_eh_throw): Likewise for param "insn".
8942         (before_next_cfi_note): Likewise for return type, param, and local
8943         "prev".
8944         (connect_traces): Likewise for local "note".
8945         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8946         (verify_rtl_sharing): Likewise.
8947         (unshare_all_rtl_in_chain): Likewise for param "insn".
8948         (get_first_nonnote_insn): Likewise for local "insn".
8949         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
8950         "seq" and use its methods to clarify things.
8951         (next_insn): Strengthen return type from rtx to rtx_insn *.
8952         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8953         local rtx_insn * using a checked cast, dropping a checked cast
8954         made redundant by this change.  Use a cast to and method of
8955         rtx_sequence to clarify the code.
8956         (previous_insn): Rename param "insn" to "uncast_insn" and
8957         reintroduce "insn" as a local rtx_insn * using a checked cast,
8958         dropping a checked cast made redundant by this change.  Use a cast
8959         to and method of rtx_sequence to clarify the code.
8960         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8961         reintroduce "insn" as a local rtx_insn * using a checked cast,
8962         dropping a checked cast made redundant by this change.
8963         (next_nonnote_insn_bb): Likewise.
8964         (prev_nonnote_insn): Likewise.
8965         (prev_nonnote_insn_bb): Likewise.
8966         (next_nondebug_insn): Likewise.
8967         (prev_nondebug_insn): Likewise.
8968         (next_nonnote_nondebug_insn): Likewise.
8969         (prev_nonnote_nondebug_insn): Likewise.
8970         (next_real_insn): Likewise.
8971         (prev_real_insn): Likewise.
8972         (next_active_insn): Likewise.
8973         (prev_active_insn): Likewise.
8974         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
8975         clarity.
8976         (prev_cc0_setter): Likewise.
8977         (try_split): Rename param "trial" to "uncast_trial" and
8978         reintroduce "insn" as a local rtx_insn * using a checked cast,
8979         dropping checked casts made redundant by this change.
8980         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8981         rtx to rtx_insn *.
8982         (remove_insn): Rename param "insn" to "uncast_insn" and
8983         reintroduce "insn" as a local rtx_insn * using a checked cast.
8984         (emit_pattern_after_setloc): Likewise for param "after", as
8985         "uncast_after".
8986         (emit_pattern_after): Likewise.  Strengthen local "prev" from
8987         rtx to rtx_insn *.
8988         (emit_pattern_before_setloc): Rename param "before" to
8989         "uncast_before" and reintroduce "before" as a local rtx_insn *
8990         using a checked cast.  Strengthen locals "first", "last" from
8991         rtx to rtx_insn *.
8992         (emit_pattern_before): Likewise rename/cast param "before" to
8993         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8994         * except.c (copy_reg_eh_region_note_forward): Strengthen param
8995         "first" and local "insn" from rtx to rtx_insn *.
8996         (copy_reg_eh_region_note_backward): Likewise for param "last"
8997         and local "insn".
8998         * expr.c (fixup_args_size_notes): Rename param "last" to
8999         "uncast_last" and reintroduce "last" as a local rtx_insn *
9000         using a checked cast.  Strengthen local "insn" from rtx to
9001         rtx_insn *.
9002         * function.c (set_insn_locations): Strengthen param "insn" from
9003         rtx to rtx_insn *.
9004         (record_insns): Likewise for param "insns" and local "tmp".
9005         (active_insn_between): Rename param "tail" to
9006         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
9007         using a checked cast.
9008         (thread_prologue_and_epilogue_insns): Split out top-level local
9009         rtx "seq" into three different rtx_insn * locals.  Strengthen
9010         local "prologue_seq" from rtx to rtx_insn *.
9011         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
9012         from rtx to rtx_insn *.
9013         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
9014         (priority): Likewise for locals "prev_first", "twin".
9015         (setup_insn_max_reg_pressure): Likewise for param "after".
9016         (sched_setup_bb_reg_pressure_info): Likewise.
9017         (no_real_insns_p): Strengthen params from const_rtx to
9018         const rtx_insn *.
9019         (schedule_block): Strengthen local "next_tail" from rtx to
9020         rtx_insn *.
9021         * ifcvt.c (find_active_insn_before): Strengthen return type and
9022         param "insn" from rtx to rtx_insn *.
9023         (find_active_insn_after): Likewise.
9024         (cond_exec_process_insns): Likewise for param "start" and local "insn".
9025         (cond_exec_process_if_block): Likewise for locals "then_start",
9026         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
9027         (noce_process_if_block): Likewise for local "jump".
9028         (merge_if_block): Likewise for two locals named "end".
9029         (cond_exec_find_if_block): Likewise for local "last_insn".
9030         * jump.c (delete_related_insns): Rename param "insn" to
9031         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
9032         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
9033         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
9034         NULL.
9035         (split_reg): Likewise.
9036         * lra.c (lra_process_new_insns): Likewise.
9037         * modulo-sched.c (permute_partial_schedule): Strengthen param
9038         "last" from rtx to rtx_insn *.
9039         * optabs.c (add_equal_note): Likewise for param "insns" and local
9040         "last_insn".
9041         (expand_binop_directly): Add checked casts to rtx_insn * within
9042         NEXT_INSN (pat) uses.
9043         (expand_unop_direct): Likewise.
9044         (maybe_emit_unop_insn): Likewise.
9045         * recog.c (peep2_attempt): Strengthen locals "last",
9046         "before_try", "x" from rtx to rtx_insn *.
9047         * reorg.c (optimize_skip): Strengthen return type and local
9048         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
9049         and locals "trial", "next_trial" from rtx to rtx_insn *.
9050         * resource.c (next_insn_no_annul): Strengthen return type and
9051         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
9052         rtx_sequence to clarify the code.
9053         (mark_referenced_resources): Add a checked cast to rtx_insn *
9054         within PREV_INSN (x).
9055         (find_dead_or_set_registers): Strengthen return type, param
9056         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
9057         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
9058         to rtx_insn **.
9059         (mark_target_live_regs): Strengthen params "insns" and "target",
9060         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
9061         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
9062         the code.
9063         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
9064         from rtx to rtx_insn *.
9065         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
9066         from rtx to rtx_insn *.
9067         (copy_reg_eh_region_note_backward): Likewise.
9068         (unshare_all_rtl_in_chain): Likewise for sole param.
9069         (dump_rtl_slim): Strengthen second and third params from const_rtx
9070         to const rtx_insn *.
9071         * sched-deps.c (sched_free_deps): Strengthen params "head" and
9072         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
9073         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
9074         "next_tail" from rtx to rtx_insn *.
9075         (begin_move_insn): Likewise for local "next".
9076         * sched-int.h (sched_free_deps): Likewise for first and second
9077         params.
9078         (no_real_insns_p): Strengthen both params from const_rtx to
9079         const rtx_insn *.
9080         (sched_setup_bb_reg_pressure_info): Strengthen second params from
9081         rtx to rtx_insn *.
9082         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
9083         "next_tail".
9084         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
9085         and locals "insn", "tail" from const_rtx to const rtx_insn *.
9086         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
9087         rtx_insn *.
9088         (debug_rtl_slim): Strengthen params "first" and "last" from
9089         const_rtx to const rtx_insn *.
9090         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
9091         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
9092         (convert_to_simple_return): Likewise for param "returnjump".
9093         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
9094         "prologue_seq".
9095         (convert_to_simple_return): Likewise for param "returnjump".
9096         * valtrack.c (propagate_for_debug): Likewise for params
9097         "insn", "last".
9098         * valtrack.h (propagate_for_debug): Likewise for second param.
9100 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9102         * output.h (insn_current_reference_address): Strengthen param
9103         from rtx to rtx_insn *.
9104         * final.c (insn_current_reference_address): Likewise.
9106 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9108         * basic-block.h (inside_basic_block_p): Strengthen param from
9109         const_rtx to const rtx_insn *.
9110         * cfgbuild.c (inside_basic_block_p): Likewise.
9112 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9114         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
9115         rtx_insn *.
9116         (get_trace_info): Likewise for param "insn".
9117         (save_point_p): Likewise.
9118         (maybe_record_trace_start): Likewise for both params.
9119         (maybe_record_trace_start_abnormal): Likewise.
9120         (create_trace_edges): Likewise for sole param and for three of the
9121         locals named "lab".
9122         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
9123         to rtx_insn *, and update a call to pat->element to pat->insn.
9125 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9127         * function.h (struct expr_status): Convert field "x_forced_labels"
9128         from rtx_expr_list * to rtx_insn_list *.
9130         * cfgbuild.c (make_edges): Convert local "x" from an
9131         rtx_expr_list * to an rtx_insn_list *, replacing use of
9132         "element" method with "insn" method.
9133         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9134         * except.c (sjlj_emit_dispatch_table): Replace use of
9135         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
9136         forced_labels.
9137         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
9138         rtx_expr_list * to an rtx_insn_list *, replacing use of
9139         "element" method with "insn" method.
9140         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9141         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
9142         rtx_insn *, adding a checked cast.  Replace use of
9143         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
9144         forced_labels.
9145         (expand_label): Likewise for local "label_r".
9147 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9149         * function.h (struct rtl_data): Convert field
9150         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
9151         rtx_insn_list *.
9152         * rtl.h (remove_node_from_insn_list): New prototype.
9154         * builtins.c (expand_builtin): When prepending to
9155         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9156         gen_rtx_EXPR_LIST.
9157         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
9158         to rtx_insn_list *, and use its "insn" method rather than
9159         "element" method.
9160         * cfgrtl.c (delete_insn): Use new function
9161         remove_node_from_insn_list rather than
9162         remove_node_from_expr_list.
9163         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
9164         to rtx_insn_list *, and use its "insn" method rather than
9165         "element" method.
9166         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9167         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9168         * rtlanal.c (remove_node_from_insn_list): New function, adapted
9169         from remove_node_from_expr_list.
9170         * stmt.c (expand_label): When prepending to
9171         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9172         gen_rtx_EXPR_LIST.
9174 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9176         * function.h (struct rtl_data): Strengthen fields "x_return_label"
9177         and "x_naked_return_label" from rtx to rtx_code_label *.
9179 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9181         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
9182         (SET_NEXT_INSN): Likewise.
9183         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
9185         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
9186         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
9187         to split out the SEQUENCE from local "bundle", strengthening the
9188         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
9189         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
9190         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
9191         and the type of the elements of the "slot" array from rtx to
9192         rtx_insn *.
9193         (reorg_split_calls): Likewise for locals "insn" and "next", and
9194         the type of the elements of the "slot" array.
9196         * config/frv/frv.c (frv_nops): Likewise for the elements of this
9197         array.
9198         (frv_function_prologue): Likewise for locals "insn", "next",
9199         "last_call".
9200         (frv_register_nop): Introduce a local "nop_insn" to be the
9201         rtx_insn * containing rtx "nop".
9203         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
9204         used as an insn and sometimes as a pattern, so rename it to
9205         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
9206         using it where dealing with the core insn.
9208         * config/picochip/picochip.c (reorder_var_tracking_notes):
9209         Strengthen locals "insn", "next", "last_insn", "queue",
9210         "next_queue", "prev" from rtx to rtx_insn *.
9212         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
9213         the second param is an rtx_insn ** rather than an rtx **.
9214         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
9215         from rtx to rtx_sequence *, and introduce local named "sequence",
9216         using methods of rtx_sequence to clarify the code.
9217         (remove_insn): Introduce local rtx_sequence * named "sequence" and
9218         use its methods.
9219         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
9220         Rename param "after" to "uncast_after", reintroducing "after" as a
9221         local rtx_insn * with a checked cast.
9222         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
9223         reintroducing "after" as a local rtx_insn * with a checked cast.
9224         Strengthen local "last" from rtx to rtx_insn * and remove the
9225         now-redundant checked casts.
9226         (copy_delay_slot_insn): Strengthen return type and param from rtx
9227         to rtx_insn *.
9229         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
9230         "last" from rtx to rtx_insn *.
9232 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9234         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
9235         param from rtx to rtx_insn *.
9237         * emit-rtl.c (copy_delay_slot_insn): Likewise.
9239         * reorg.c (skip_consecutive_labels): Strengthen return type, param
9240         and local "insn" from rtx to rtx_insn *.
9241         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
9242         (unfilled_slots_next): Likewise.
9243         (function_return_label): Strengthen from rtx to rtx_code_label *.
9244         (function_simple_return_label): Likewise.
9245         (first_active_target_insn): Strengthen return type and param from
9246         rtx to rtx_insn *.
9247         (find_end_label): Strengthen return type from rtx to
9248         rtx_code_label *; strengthen locals as appropriate.
9249         (emit_delay_sequence): Strengthen return type, param "insn" and
9250         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
9251         and local "li" from rtx to rtx_insn_list *, using methods of
9252         rtx_insn_list for clarity and typesafety.
9253         (add_to_delay_list): Strengthen return type and param "insn" from
9254         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
9255         rtx_insn_list * and use methods of rtx_insn_list.
9256         (delete_from_delay_slot): Strengthen return type, param "insn",
9257         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
9258         Strengthen local "seq" from rtx to rtx_sequence *, and local
9259         "delay_list" from rtx to rtx_insn_list *, using methods of
9260         rtx_sequence for clarity and type-safety.
9261         (delete_scheduled_jump): Add checked cast when invoking
9262         delete_from_delay_slot.  Strengthen local "trial" from rtx to
9263         rtx_insn *.
9264         (optimize_skip): Strengthen return type and local "delay_list"
9265         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
9266         rtx_insn *.
9267         (steal_delay_list_from_target): Strengthen return type, param
9268         "delay_list" and local "new_delay_list" from rtx to
9269         rtx_insn_list *.  Strengthen param "seq" from rtx to
9270         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
9271         rtx_insn **.
9272         Split out local "temp" into multiple more-tightly scoped locals:
9273         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
9274         of rtx_insn_list and rtx_sequence for clarity and typesafety.
9275         Strengthen locals named "trial" from rtx to rtx_insn *.
9276         (steal_delay_list_from_fallthrough): Strengthen return type and
9277         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
9278         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
9279         Strengthen local "trial" from rtx to rtx_insn *.
9280         (try_merge_delay_insns): Strength local "merged_insns" from rtx
9281         to rtx_insn_list * and use its methods.  Strengthen local "pat"
9282         from rtx to rtx_sequence * and use its methods.  Strengthen locals
9283         "dtrial" and "new_rtx" from rtx to rtx_insn *.
9284         (get_label_before): Strengthen return type and local "label" from
9285         rtx to rtx_insn *.
9286         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
9287         "next_trial", "next", prev".  Strengthen local "delay_list" from
9288         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
9289         rtx_insn **.
9290         (follow_jumps): Strengthen return type, param "label" and locals
9291         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
9292         (fill_slots_from_thread): Strengthen return type, param
9293         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
9294         "insn", "thread", "opposite_thread" and locals "new_thread",
9295         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
9296         "sequence" from a checked cast to rtx_sequence so that we can call
9297         steal_delay_list_from_target and steal_delay_list_from_fallthrough
9298         with an rtx_sequence *.
9299         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
9300         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
9301         Strengthen local "delay_list" from rtx to rtx_insn_list *.
9302         (relax_delay_slots): Strengthen param "first" and locals "insn",
9303         "next", "trial", "delay_insn", "target_label" from rtx to
9304         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
9305         Introduce a local "trial_seq" for PATTERN (trial) of type
9306         rtx_sequence *, in both cases using methods of rtx_sequence.
9307         (dbr_schedule): Strengthen param "first" and locals "insn",
9308         "next", "epilogue_insn" from rtx to rtx_insn *.
9310 2014-08-28  Richard Biener  <rguenther@suse.de>
9312         PR tree-optimization/62283
9313         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9314         Do not peel loops for alignment where the vector loop likely
9315         doesn't run at least VF times.
9317 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
9319         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
9320         important_candidates.  Consider all important candidates if
9321         IVS doesn't give any result.  Remove check on ivs->upto.
9322         (try_add_cand_for): Call iv_ca_add_use only once.
9324 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9325             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9326             Anna Tikhonova  <anna.tikhonova@intel.com>
9327             Ilya Tocar  <ilya.tocar@intel.com>
9328             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9329             Ilya Verbin  <ilya.verbin@intel.com>
9330             Kirill Yukhin  <kirill.yukhin@intel.com>
9331             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9333         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
9334         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
9335         masking.
9336         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
9337         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9338         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9339         (define_insn "*mul<mode>3"): Add EVEX version.
9341 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9342             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9343             Anna Tikhonova  <anna.tikhonova@intel.com>
9344             Ilya Tocar  <ilya.tocar@intel.com>
9345             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9346             Ilya Verbin  <ilya.verbin@intel.com>
9347             Kirill Yukhin  <kirill.yukhin@intel.com>
9348             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9350         * config/i386/sse.md
9351         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
9352         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
9353         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
9354         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
9355         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
9356         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
9357         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
9358         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
9359         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
9360         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
9361         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
9362         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
9363         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
9364         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
9365         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
9366         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
9368 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9369             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9370             Anna Tikhonova  <anna.tikhonova@intel.com>
9371             Ilya Tocar  <ilya.tocar@intel.com>
9372             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9373             Ilya Verbin  <ilya.verbin@intel.com>
9374             Kirill Yukhin  <kirill.yukhin@intel.com>
9375             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9377         * config/i386/sse.md
9378         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
9379         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
9380         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
9382 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9383             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9384             Anna Tikhonova  <anna.tikhonova@intel.com>
9385             Ilya Tocar  <ilya.tocar@intel.com>
9386             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9387             Ilya Verbin  <ilya.verbin@intel.com>
9388             Kirill Yukhin  <kirill.yukhin@intel.com>
9389             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9391         * config/i386/sse.md
9392         (define_mode_iterator VI128_256): New.
9393         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
9395 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9396             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9397             Anna Tikhonova  <anna.tikhonova@intel.com>
9398             Ilya Tocar  <ilya.tocar@intel.com>
9399             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9400             Ilya Verbin  <ilya.verbin@intel.com>
9401             Kirill Yukhin  <kirill.yukhin@intel.com>
9402             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9404         * config/i386/sse.md
9405         (define_mode_iterator VI8_256_512): New.
9406         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
9407         Ditto.
9408         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9409         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
9410         Ditto.
9411         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
9413 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9415         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
9416         pointer to the cumulative reloc value and return the value for
9417         this reloc instead.
9418         (compute_reloc_for_rtx): Take a const_rtx.  Call
9419         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
9420         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
9421         for_each_rtx for the CONST case.
9423 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9425         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
9426         (mark_constants_in_pattern): ...this new function to iterate over
9427         all the subrtxes.
9428         (mark_constants): Update accordingly.
9430 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9432         * varasm.c: Include rtl-iter.h.
9433         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
9434         Remove the pointer to the cumulative hashval_t and just return
9435         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
9436         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9437         Accumulate the hashval_ts here instead of const_rtx_hash_1.
9439 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9441         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
9442         Give real type of data parameter.  Remove return value.
9443         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
9444         to iterate over subrtxes.
9446 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9448         * var-tracking.c (use_narrower_mode_test): Turn from being a
9449         for_each_rtx callback to being a function that examines each
9450         subrtx itself.
9451         (adjust_mems): Update accordingly.
9453 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9455         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
9456         callback to being a function that examines each subrtx itself.
9457         Remove handling of null rtxes.
9458         (add_uses): Update accordingly.
9460 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9462         * var-tracking.c: Include rtl-iter.h.
9463         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
9464         to being a function that examines each subrtx itself.
9465         (use_type): Update accordingly.
9467 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9469         * store-motion.c: Include rtl-iter.h.
9470         (extract_mentioned_regs_1): Delete.
9471         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
9472         for_each_rtx to iterate over subrtxes.
9474 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9476         * sel-sched.c: Include rtl-iter.h
9477         (count_occurrences_1): Delete.
9478         (count_occurrences_equiv): Turn rtxes into const_rtxes.
9479         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9481 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9483         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
9484         * rtlanal.c (tls_referenced_p_1): Delete.
9485         (tls_referenced_p): Take a const_rtx rather than an rtx.
9486         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9488 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9490         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
9491         (for_each_inc_dec): Take an rtx rather than an rtx *.
9492         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
9493         (cselib_record_sets): Likewise.
9494         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
9495         (check_for_inc_dec): Likewise.
9496         * rtlanal.c (for_each_inc_dec_ops): Delete.
9497         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
9498         rather than a pointer to the memory address.  Replace
9499         for_each_inc_dec_ops argument with separate function and data
9500         arguments.  Abort on non-autoinc addresses.
9501         (for_each_inc_dec_find_mem): Delete.
9502         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
9503         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
9505 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9507         * rtl.h (find_all_hard_regs): Declare.
9508         * rtlanal.c (find_all_hard_regs): New function.
9509         (record_hard_reg_uses_1): Delete.
9510         (record_hard_reg_uses): Use find_all_hard_regs.
9512 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9514         * rtl.h (replace_label_data): Delete.
9515         (replace_label): Take the old label, new label and update-nuses flag
9516         as direct arguments.  Return void.
9517         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
9518         * rtlanal.c (replace_label): Update interface as above.  Handle
9519         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
9520         iterator.  Use FOR_EACH_SUBRTX_PTR.
9522 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9524         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
9525         with const_rtx parameters.
9526         * varasm.c (get_pool_constant): Likewise.
9527         * rtlanal.c (rtx_referenced_p_1): Delete.
9528         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9529         Assert that the rtx we're looking for is nonnull.  Allow searches
9530         for constant pool SYMBOL_REFs.
9532 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9534         * reload1.c: Include rtl-iter.h.
9535         (note_reg_elim_costly): Turn from being a for_each_rtx callback
9536         to being a function that examines each subrtx itself.
9537         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
9539 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9541         * regcprop.c (cprop_find_used_regs_1): Delete.
9542         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9544 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9546         * regcprop.c: Include rtl-iter.h.
9547         (kill_value): Take a const_rtx.
9548         (kill_autoinc_value): Turn from being a for_each_rtx callback
9549         to being a function that examines each subrtx itself.
9550         (copyprop_hardreg_forward_1): Update accordingly.
9552 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9554         * reg-stack.c: Include rtl-iter.h.
9555         (subst_stack_regs_in_debug_insn): Delete.
9556         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
9557         instead of for_each_rtx.
9559 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9561         * lower-subreg.c (find_decomposable_subregs): Turn from being
9562         a for_each_rtx callback to being a function that examines each
9563         subrtx itself.  Remove handling of null rtxes.
9564         (decompose_multiword_subregs): Update accordingly.
9566 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9568         * lower-subreg.c (adjust_decomposed_uses): Delete.
9569         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
9570         Remove handling of null rtxes.
9572 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9574         * lower-subreg.c: Include rtl-iter.h.
9575         (resolve_subreg_use): Turn from being a for_each_rtx callback
9576         to being a function that examines each subrtx itself.  Remove
9577         handling of null rtxes.
9578         (resolve_reg_notes, resolve_simple_move): Update accordingly.
9579         (decompose_multiword_subregs): Likewise.
9581 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9583         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
9584         to being a function that examines each subrtx itself.
9585         (simplify_using_condition, simplify_using_initial_values): Update
9586         accordingly.
9588 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9590         * loop-iv.c: Include rtl-iter.h.
9591         (find_single_def_src): New function.
9592         (replace_single_def_regs): Turn from being a for_each_rtx callback
9593         to being a function that examines each subrtx itself.
9594         (replace_in_expr, simplify_using_initial_values): Update accordingly.
9596 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9598         * jump.c (eh_returnjump_p_1): Delete.
9599         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9600         Remove handling of null rtxes.
9602 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9604         * jump.c: Include rtl-iter.h.
9605         (returnjump_p_1): Delete.
9606         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9607         Remove handling of null rtxes.
9609 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9611         * ira.c: Include rtl-iter.h.
9612         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
9613         to being a function that examines each subrtx itself.  Remove
9614         handling of null rtxes.
9615         (update_equiv_regs): Update call accordingly.
9617 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9619         * fwprop.c: Include rtl-iter.h.
9620         (varying_mem_p): Turn from being a for_each_rtx callback to being
9621         a function that examines each subrtx itself.
9622         (propagate_rtx): Update accordingly.
9624 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9626         * function.c: Include rtl-iter.h
9627         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9628         callback to being a function that examines each subrtx itself.
9629         Return the changed flag.
9630         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9631         (instantiate_virtual_regs): Update calls accordingly.
9633 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9635         * final.c: Include rtl-iter.h.
9636         (mark_symbol_ref_as_used): Delete.
9637         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9638         for_each_rtx.
9640 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9642         * emit-rtl.c: Include rtl-iter.h.
9643         (find_auto_inc): Turn from being a for_each_rtx callback to being
9644         a function that examines each subrtx itself.  Assume the first operand
9645         to an RTX_AUTOINC is the automodified register.
9646         (try_split): Update call accordingly.
9648 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9650         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9651         Return a bool, inverting the result so that 0/false means "not ok".
9652         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9653         subrtxes of a CONST.
9654         (mem_loc_descriptor, add_const_value_attribute)
9655         (resolve_addr_in_expr): Update calls accordingly.
9657 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9659         * dwarf2out.c: Include rtl-iter.h.
9660         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9661         Remove unused data parameter.  Return a bool, inverting the result
9662         so that 0/false means "not ok".
9663         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
9664         instead of for_each_rtx.
9666 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9668         * dse.c: Include rtl-iter.h.
9669         (check_mem_read_rtx): Change void * parameter to real type.
9670         Remove return value.
9671         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
9672         for_each_rtx.  Don't handle null rtxes.
9674 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9676         * df-problems.c: Include rtl-iter.h.
9677         (find_memory): Turn from being a for_each_rtx callback to being
9678         a function that examines each subrtx itself.  Continue to look for
9679         volatile references even after a nonvolatile one has been found.
9680         (can_move_insns_across): Update calls accordingly.
9682 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9684         * ddg.c (walk_mems_2, walk_mems_1): Delete.
9685         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9686         to iterate over subrtxes.  Return a bool rather than an int.
9688 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9690         * ddg.c: Include rtl-iter.h.
9691         (mark_mem_use_1): Rename to...
9692         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
9693         instead of for_each_rtx.
9694         (mem_read_insn_p): Update accordingly.
9696 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9698         * cse.c (change_cc_mode_args): Delete.
9699         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9700         a function that examines each subrtx itself.  Take the fields of
9701         change_cc_mode_args as argument and return void.
9702         (cse_change_cc_mode_insn): Update calls accordingly.
9704 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9706         * cse.c (is_dead_reg): Change argument to const_rtx.
9707         (dead_debug_insn_data): Delete.
9708         (is_dead_debug_insn): Expand commentary.  Turn from being a
9709         for_each_rtx callback to being a function that examines
9710         each subrtx itself.  Take the fields of dead_debug_insn_data
9711         as argument.
9712         (delete_trivially_dead_insns): Update call accordingly.
9714 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9716         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
9717         being a for_each_rtx callback to being a function that examines
9718         each subrtx itself.
9719         (cse_extended_basic_block): Update call accordingly.
9721 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9723         * cse.c (check_dependence_data): Delete.
9724         (check_dependence): Change from being a for_each_rtx callback to being
9725         a function that examines all subrtxes itself.  Don't handle null rtxes.
9726         (invalidate): Update call accordingly.
9728 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9730         * cse.c: Include rtl-iter.h.
9731         (approx_reg_cost_1): Delete.
9732         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9733         Don't handle null rtxes.
9735 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9737         * cfgcleanup.c: Include rtl-iter.h.
9738         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9739         to being a function that examines each subrtx itself.
9740         (thread_jump): Update accordingly.
9742 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9744         * combine-stack-adj.c: Include rtl-iter.h.
9745         (record_stack_refs_data): Delete.
9746         (record_stack_refs): Turn from being a for_each_rtx callback
9747         to being a function that examines each subrtx itself.
9748         Take a pointer to the reflist.  Invert sense of return value
9749         so that true means success and false means failure.  Don't
9750         handle null rtxes.
9751         (combine_stack_adjustments_for_block): Update accordingly.
9753 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9755         * combine.c (record_truncated_value): Turn from being a for_each_rtx
9756         callback to a function that takes an rtx and returns a bool
9757         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9758         for_each_rtx.
9760 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9762         * combine.c: Include rtl-iter.h.
9763         (unmentioned_reg_p_1): Delete.
9764         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9765         Don't handle null rtxes.
9767 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9769         * calls.c: Include rtl-iter.h.
9770         (internal_arg_pointer_based_exp_1): Delete.
9771         (internal_arg_pointer_based_exp): Take a const_rtx.
9772         Use FOR_EACH_SUBRTX to iterate over subrtxes.
9774 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9776         * caller-save.c: Include rtl-iter.h.
9777         (add_used_regs_1): Delete.
9778         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9779         to iterate over subrtxes.  Assert that any remaining pseudos
9780         have been spilled.
9782 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9784         * bt-load.c: Include rtl-iter.h.
9785         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9786         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
9787         to iterate over subrtxes.
9788         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9789         find_btr_use rather than btr_referenced_p.
9791 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9793         * alias.c: Include rtl-iter.h.
9794         (refs_newer_value_cb): Delete.
9795         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9797 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9799         * rtl-iter.h: New file.
9800         * rtlanal.c: Include it.
9801         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9802         (generic_subrtx_iterator <T>::add_single_to_queue)
9803         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9804         (generic_subrtx_iterator <T>::free_array): New functions.
9805         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9806         (generic_subrtx_iterator <const_rtx_accessor>)
9807         (generic_subrtx_iterator <rtx_var_accessor>
9808         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9809         (setup_reg_subrtx_bounds): New function.
9810         (init_rtlanal): Call it.
9812 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
9814         PR target/62261
9815         * config/sh/sh.md (ashlsi3): Handle negative shift count for
9816         TARGET_SHMEDIA.
9817         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9819 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
9821         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9823 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9825         * rtl.h (JUMP_LABEL_AS_INSN): New.
9827 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9829         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9830         rtx_expr_list **.
9831         (alloc_EXPR_LIST): Strengthen return type from rtx to
9832         rtx_expr_list *.
9833         (remove_free_EXPR_LIST_node): Likewise for param.
9834         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9835         from rtx to rtx_expr_list *.
9836         * sched-int.h (struct deps_desc): Strengthen fields
9837         "pending_read_mems" and "pending_write_mems" from rtx to
9838         rtx_expr_list *.
9840         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9841         rtx to rtx_expr_list *.
9842         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9843         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9844         rtx_expr_list **.
9845         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
9846         from rtx to rtx_expr_list *.
9847         * loop-iv.c (simplify_using_initial_values): Strengthen local
9848         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9849         "pnote_next" from rtx * to rtx_expr_list **.
9850         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
9851         param "exprp" from rtx * to rtx_expr_list **.
9852         (add_insn_mem_dependence): Strengthen local "mem_list" from
9853         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
9854         to rtx_expr_list *.
9855         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9856         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
9857         param "old_mems_p" from rtx * to rtx_expr_list **.
9858         * var-tracking.c (struct adjust_mem_data): Strengthen field
9859         "side_effects" from rtx to rtx_expr_list *.
9860         (adjust_insn): Replace NULL_RTX with NULL when assigning to
9861         rtx_expr_list *.
9862         (prepare_call_arguments): Likewise.
9864 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9866         * function.h (struct rtl_data): Strengthen field
9867         "x_stack_slot_list" from rtx to rtx_expr_list *.
9869         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9870         when assigning to stack_slot_list.
9872 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9874         * function.h (struct rtl_data): Strengthen field
9875         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9876         * rtl.h (remove_node_from_expr_list): Strengthen second param from
9877         rtx * to rtx_expr_list **.
9879         * cfgbuild.c (make_edges): In loop over
9880         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9881         rtx_expr_list *, and use methods of the latter class to clarify
9882         the code.
9883         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9884         rtx_expr_list *, and use methods of the latter class to clarify
9885         the code.
9886         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9887         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9888         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9889         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
9890         to rtx_expr_list *.  Use methods of the latter class to clarify
9891         the code.
9893 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9895         * function.h (struct expr_status): Strengthen field
9896         "x_forced_labels" from rtx to rtx_expr_list *.
9898         * cfgbuild.c (make_edges): Split local "x" into two locals,
9899         strengthening one from rtx to rtx_expr_list *, and using methods
9900         of said class.
9901         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9902         loop over forced_labels, introduce strengthen it from rtx to
9903         rtx_expr_list *, using methods to clarify the code.
9904         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9905         to rtx_expr_list *, using methods of said class to clarify the
9906         code.
9907         * reload1.c (set_initial_label_offsets): Split local "x" into two
9908         per-loop variables, strengthening the first from rtx to
9909         rtx_expr_list * and using methods.
9911 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9913         * coretypes.h (class rtx_expr_list): Add forward declaration.
9914         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9915         * gengenrtl.c (special_rtx): Add EXPR_LIST.
9916         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9917         invariant: GET_CODE (X) == EXPR_LIST.
9918         (is_a_helper <rtx_expr_list *>::test): New.
9919         (rtx_expr_list::next): New.
9920         (rtx_expr_list::element): New.
9921         (gen_rtx_EXPR_LIST): New.
9923 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9925         * varasm.c (mark_constants): Convert a GET_CODE check into a
9926         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9927         Use methods of rtx_sequence to clarify the code.
9929 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9931         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9932         local "seq" via a checked cast, and use methods of rtx_sequence
9933         to simplify the code.
9935 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9937         * resource.c (mark_referenced_resources): Strengthen local
9938         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9939         using methods of rtx_sequence to clarify the code.
9940         (find_dead_or_set_registers): Within the switch statement, convert
9941         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
9942         the JUMP_P handling, introduce another local "seq", adding a
9943         checked cast to rtx_sequence *.  In both cases, use methods of
9944         rtx_sequence to clarify the code.
9945         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9946         via a checked cast, and use methods of rtx_sequence to simplify
9947         the code.
9949 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9951         * reorg.c (redundant_insn): In two places in the function, replace
9952         a check of GET_CODE with a dyn_cast, introducing local "seq", and
9953         usings methods of rtx_sequence to clarify the code.
9955 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9957         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9958         local "seq" with a checked cast, and use methods of rtx_sequence
9959         to clarify the code.
9961 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9963         * function.c (contains): Introduce local "seq" for PATTERN (insn),
9964         with a checked cast, in the region for where we know it's a
9965         SEQUENCE.  Use methods of rtx_sequence.
9967 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9969         * final.c (get_attr_length_1): Replace GET_CODE check with a
9970         dyn_cast, introducing local "seq" and the use of methods of
9971         rtx_sequence.
9972         (shorten_branches): Likewise, introducing local "body_seq".
9973         Strengthen local "inner_insn" from rtx to rtx_insn *.
9974         (reemit_insn_block_notes): Replace GET_CODE check with a
9975         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9976         Use methods of rtx_sequence.
9977         (final_scan_insn): Likewise, introducing local "seq" for when
9978         "body" is known to be a SEQUENCE, using its methods.
9980 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9982         * except.c (can_throw_external): Strengthen local "seq" from rtx
9983         to rtx_sequence *.  Use methods of rtx_sequence.
9984         (insn_nothrow_p): Likewise.
9986 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9988         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9989         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9990         Use methods of rtx_sequence.
9991         (scan_trace): Likewise for local "pat".
9993 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9995         * coretypes.h (class rtx_sequence): Add forward declaration.
9996         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9997         invariant: GET_CODE (X) == SEQUENCE.
9998         (is_a_helper <rtx_sequence *>::test): New.
9999         (is_a_helper <const rtx_sequence *>::test): New.
10000         (rtx_sequence::len): New.
10001         (rtx_sequence::element): New.
10002         (rtx_sequence::insn): New.
10004 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10006         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
10007         rtx_insn_list **.
10008         (alloc_INSN_LIST): Strengthen return type from rtx to
10009         rtx_insn_list *.
10010         (copy_INSN_LIST): Likewise for return type and param.
10011         (concat_INSN_LIST): Likewise for both params and return type.
10012         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
10013         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
10014         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
10015         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
10017         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
10018         "implicit_sets", "control_uses", "clobbers" from rtx to
10019         rtx_insn_list *.
10020         (struct deps_desc): Likewise for fields "pending_read_insns",
10021         "pending_write_insns", "pending_jump_insns",
10022         "last_pending_memory_flush", "last_function_call",
10023         "last_function_call_may_noreturn", "sched_before_next_call",
10024         "sched_before_next_jump".
10025         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
10026         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
10028         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
10029         from rtx to rtx_insn_list *.
10030         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
10031         rtx_insn_list *.
10033         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
10034         to rtx_insn_list **.
10035         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
10036         rtx_insn_list *.
10037         (queue_insn): Likewise for local "link".
10038         (struct haifa_saved_data): Strengthen field "insn_queue" from
10039         rtx * to rtx_insn_list **.
10040         (save_backtrack_point): Update allocation of save->insn_queue to
10041         reflect the strengthening of elements from rtx to rtx_insn_list *.
10042         (queue_to_ready): Strengthen local "link" from rtx to
10043         rtx_insn_list *; use methods "next" and "insn" when traversing the
10044         list.
10045         (early_queue_to_ready): Likewise for locals "link", "next_link",
10046         "prev_link".
10047         (schedule_block): Update allocation of insn_queue to reflect the
10048         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
10049         local "link" from rtx to rtx_insn_list *, and use methods when
10050         working it.
10051         (add_to_speculative_block): Strengthen locals "twins" and
10052         "next_node" from rtx to rtx_insn_list *, and use methods when
10053         working with them.  Strengthen local "twin" from rtx to
10054         rtx_insn *, eliminating a checked cast.
10055         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
10056         from rtx to rtx_insn_list *, and use methods when working with
10057         them.
10059         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
10060         from rtx to rtx_insn_list *, adding a checked cast.
10061         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
10062         rtx_insn_list **.
10063         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
10064         "newlink" from rtx to rtx_insn_list *.  Strengthen local
10065         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
10066         from rtx to rtx_insn *.
10067         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
10068         from rtx to rtx_insn_list *.  Use methods of the latter class.
10069         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
10070         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
10071         (remove_free_INSN_LIST_node): Strengthen return type and local
10072         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
10073         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
10074         rtx_insn_list *, using "insn" method.
10076         * sched-deps.c (add_dependence_list):  Strengthen param "list"
10077         from rtx to rtx_insn_list *, and use methods when working with it.
10078         (add_dependence_list_and_free):  Strengthen param "listp" from
10079         rtx * to rtx_insn_list **.
10080         (remove_from_dependence_list): Strenghten param "listp" from rtx *
10081         to rtx_insn_list **, and use methods when working with *listp.
10082         (remove_from_both_dependence_lists): Strengthen param "listp" from
10083         rtx * to rtx_insn_list **
10084         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
10085         to rtx_insn_list **.  Eliminate local "link", in favor of two new
10086         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
10087         respectively.
10088         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
10089         by introducing local "cond_deps".
10090         (remove_from_deps): Strengthen param "insn" from rtx to
10091         rtx_insn *.
10093         * sched-rgn.c (concat_insn_mem_list): Strengthen param
10094         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
10095         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
10096         Use methods of rtx_insn_list.
10098         * store-motion.c (struct st_expr): Strengthen fields
10099         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
10100         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
10101         rtx_insn_list *.
10102         (find_moveable_store): Split out "tmp" into multiple more-tightly
10103         scoped locals.  Use methods of rtx_insn_list *.
10104         (compute_store_table): Strengthen local "tmp" from rtx to
10105         rtx_insn *.  Use methods of rtx_insn_list *.
10107 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10109         * coretypes.h (class rtx_insn_list): Add forward declaration.
10110         * rtl.h (class rtx_insn_list): New subclass of rtx_def
10111         (is_a_helper <rtx_insn_list *>::test): New.
10112         (rtx_insn_list::next): New.
10113         (rtx_insn_list::insn): New.
10114         (gen_rtx_INSN_LIST): Add prototype.
10115         * emit-rtl.c (gen_rtx_INSN_LIST): New.
10116         * gengenrtl.c (special_rtx): Add INSN_LIST.
10118 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10120         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
10121         "prev" from rtx to rtx_insn *.
10123 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10125         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
10126         functions.  Require merely an rtx for now, not an rtx_insn *.
10127         (BLOCK_FOR_INSN): Likewise.
10128         (INSN_LOCATION): Likewise.
10129         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
10131 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10133         * rtl.h (PATTERN): Convert this macro into a pair of inline
10134         functions, for now, requiring const_rtx and rtx.
10136 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10138         * target.def (unwind_emit): Strengthen param "insn" from rtx to
10139         rtx_insn *.
10140         (final_postscan_insn): Likewise.
10141         (adjust_cost): Likewise.
10142         (adjust_priority): Likewise.
10143         (variable_issue): Likewise.
10144         (macro_fusion_pair_p): Likewise.
10145         (dfa_post_cycle_insn): Likewise.
10146         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
10147         (first_cycle_multipass_issue): Likewise.
10148         (dfa_new_cycle): Likewise.
10149         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
10150         (speculate_insn): Likewise for param "insn".
10151         (gen_spec_check): Likewise for params "insn" and "label".
10152         (get_insn_spec_ds): Likewise for param "insn".
10153         (get_insn_checked_ds): Likewise.
10154         (dispatch_do): Likewise.
10155         (dispatch): Likewise.
10156         (cannot_copy_insn_p): Likewise.
10157         (invalid_within_doloop): Likewise.
10158         (legitimate_combined_insn): Likewise.
10159         (needed): Likewise.
10160         (after): Likewise.
10162         * doc/tm.texi: Automatically updated to reflect changes to
10163         target.def.
10165         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
10166         working with insn.
10167         (schedule_block): Likewise.
10168         (sched_init): Likewise.
10169         (sched_speculate_insn): Strengthen param "insn" from rtx to
10170         rtx_insn *.
10171         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
10172         working with insn.
10173         * hooks.c (hook_bool_rtx_true): Rename to...
10174         hook_bool_rtx_insn_true): ...this, and strengthen first param from
10175         rtx to rtx_insn *.
10176         (hook_constcharptr_const_rtx_null): Rename to...
10177         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10178         first param from const_rtx to const rtx_insn *.
10179         (hook_bool_rtx_int_false): Rename to...
10180         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10181         param from rtx to rtx_insn *.
10182         (hook_void_rtx_int): Rename to...
10183         (hook_void_rtx_insn_int): ...this, and strengthen first param from
10184         rtx to rtx_insn *.
10186         * hooks.h (hook_bool_rtx_true): Rename to...
10187         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
10188         rtx to rtx_insn *.
10189         (hook_bool_rtx_int_false): Rename to...
10190         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10191         param from rtx to rtx_insn *.
10192         (hook_void_rtx_int): Rename to...
10193         (hook_void_rtx_insn_int): ...this, and strengthen first param from
10194         rtx to rtx_insn *.
10195         (hook_constcharptr_const_rtx_null): Rename to...
10196         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10197         first param from const_rtx to const rtx_insn *.
10199         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
10200         and local "prev" from rtx to rtx_insn *.
10202         * sched-int.h (sched_speculate_insn): Strengthen first param from
10203         rtx to rtx_insn *.
10205         * sel-sched.c (create_speculation_check): Likewise for local "label".
10206         * targhooks.c (default_invalid_within_doloop): Strengthen param
10207         "insn" from const_rtx to const rtx_insn *.
10208         * targhooks.h (default_invalid_within_doloop): Strengthen param
10209         from const_rtx to const rtx_insn *.
10211         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
10212         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
10214         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
10215         "insn".
10216         (arc_invalid_within_doloop): Likewise, with const.
10218         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
10219         (arm_cannot_copy_insn_p): Likewise for param "insn".
10220         (arm_unwind_emit): Likewise.
10222         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
10223         "dep_insn".
10225         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
10226         (c6x_variable_issue): Likewise.  Removed now-redundant checked
10227         cast.
10228         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
10230         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
10231         Likewise for param "insn".
10232         (epiphany_mode_after): Likewise.
10233         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
10234         params "insn", "dep_insn".
10235         (epiphany_mode_needed): Likewise for param "insn".
10236         (epiphany_mode_after): Likewise.
10238         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
10239         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10240         (ix86_avx_u128_mode_needed): Likewise.
10241         (ix86_i387_mode_needed): Likewise.
10242         (ix86_mode_needed): Likewise.
10243         (ix86_avx_u128_mode_after): Likewise.
10244         (ix86_mode_after): Likewise.
10245         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
10246         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
10247         (ix86_adjust_priority): Likewise for param "insn".
10248         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
10249         (do_dispatch): Likewise.
10250         (has_dispatch): Likewise.
10251         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
10253         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
10254         reflect renaming of default hook implementation from
10255         hook_constcharptr_const_rtx_null to
10256         hook_constcharptr_const_rtx_insn_null.
10257         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
10258         rtx to rtx_insn *.
10259         (ia64_variable_issue): Likewise for param "insn".
10260         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
10261         (ia64_dfa_new_cycle): Likewise.
10262         (ia64_get_insn_spec_ds): Likewise.
10263         (ia64_get_insn_checked_ds): Likewise.
10264         (ia64_speculate_insn): Likewise.
10265         (ia64_gen_spec_check): Likewise for params "insn", "label".
10266         (ia64_asm_unwind_emit): Likewise for param "insn".
10268         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
10270         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
10271         "insn", "def_insn".
10272         (m68k_sched_variable_issue): Likewise for param "insn".
10274         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
10275         "def_insn".
10277         * config/microblaze/microblaze.c (microblaze_adjust_cost):
10278         Likewise for params "insn", "dep".
10280         * config/mips/mips.c (mips_adjust_cost): Likewise.
10281         (mips_variable_issue): Likewise for param "insn".
10282         (mips_final_postscan_insn): Likewise.
10284         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
10285         for params "insn", "dep".
10287         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
10288         "dep_insn".
10289         (pa_adjust_priority): Likewise for param "insn".
10291         * config/picochip/picochip.c (picochip_sched_adjust_cost):
10292         Likewise for params "insn", "dep_insn".
10294         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
10295         param "insn".
10296         (rs6000_variable_issue): Likewise.
10297         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
10298         (rs6000_debug_adjust_cost): Likewise.
10299         (rs6000_adjust_priority): Likewise for param "insn".
10300         (rs6000_use_sched_lookahead_guard): Likewise.
10301         (get_next_active_insn): Likewise for return type and both params.
10302         (redefine_groups): Likewise for params "prev_head_insn", "tail"
10303         and locals "insn", "next_insn".
10304         (pad_groups): Likewise.
10306         * config/s390/s390.c (s390_adjust_priority): Likewise for param
10307         "insn".
10308         (s390_cannot_copy_insn_p): Likewise.
10309         (s390_sched_variable_issue): Likewise for third param, eliminating
10310         checked cast.
10311         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
10312         default hook implementation from hook_constcharptr_const_rtx_null
10313         to hook_constcharptr_const_rtx_insn_null.
10315         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
10316         from rtx to rtx_insn *.
10317         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
10318         (sh_variable_issue): Likewise for param "insn".
10319         (sh_dfa_new_cycle): Likewise.
10320         (sh_mode_needed): Likewise.
10321         (sh_mode_after): Likewise.
10323         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
10324         params "insn", "dep_insn".
10325         (hypersparc_adjust_cost): Likewise.
10326         (sparc_adjust_cost): Likewise.
10328         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
10329         param, eliminated checked cast.
10330         (spu_sched_adjust_cost): Likewise for first and third params.
10332         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
10333         params "insn" and "dep_insn" from rtx to rtx_insn *.
10335         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
10337 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10339         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
10340         (set_is_load_p): ...this, updating to work on a SET pattern rather
10341         than an insn.
10342         (is_store_insn): Rename to...
10343         (set_is_store_p): ...this, updating to work on a SET pattern
10344         rather than an insn.
10345         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
10346         top of function to where it is needed.  Rewrite the bogus
10347         condition that checks for "insn" and "dep" being PARALLEL to
10348         instead use single_set, introducing locals "insn_set" and
10349         "dep_set".  Given that we only ever returned "cost" for a non-pair
10350         of SETs, bail out early if we don't have a pair of SET.
10351         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
10352         use the new locals "insn_set" and "dep_set", and update calls to
10353         is_load_insn and is_store_insn to be calls to set_is_load_p and
10354         set_is_store_p.
10356 2014-08-27  Guozhi Wei  <carrot@google.com>
10358         PR target/62262
10359         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
10360         amount before using it.
10362 2014-08-27  Richard Biener  <rguenther@suse.de>
10364         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
10365         get_maxval_strlen inside a more useful API.
10366         (gimple_fold_builtin_with_strlen): Remove and fold into ...
10367         (gimple_fold_builtin): ... caller.
10368         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
10369         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
10370         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
10371         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
10372         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
10373         gimple_fold_builtin_sprintf): Adjust to compute maxval
10374         themselves.
10376 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
10378         PR other/62248
10379         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
10381 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10382             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10383             Anna Tikhonova  <anna.tikhonova@intel.com>
10384             Ilya Tocar  <ilya.tocar@intel.com>
10385             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10386             Ilya Verbin  <ilya.verbin@intel.com>
10387             Kirill Yukhin  <kirill.yukhin@intel.com>
10388             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10390         * config/i386/sse.md
10391         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
10392         Use `concat_tg_mode' attribute to determine asm register size.
10394 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10395             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10396             Anna Tikhonova  <anna.tikhonova@intel.com>
10397             Ilya Tocar  <ilya.tocar@intel.com>
10398             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10399             Ilya Verbin  <ilya.verbin@intel.com>
10400             Kirill Yukhin  <kirill.yukhin@intel.com>
10401             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10403         * config/i386/sse.md
10404         (define_mode_iterator VI48_AVX512VL): New.
10405         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
10406         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
10407         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
10408         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10409         with VI1): Change mode iterator.
10410         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10411         with VI_ULOADSTORE_BW_AVX512VL): New.
10412         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10413         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10414         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10415         with VI1): Change mode iterator.
10416         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10417         with VI_ULOADSTORE_BW_AVX512VL): New.
10418         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10419         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10420         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10421         with VI1): Change mode iterator.
10422         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10423         with VI_ULOADSTORE_BW_AVX512VL): New.
10424         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10425         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
10426         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
10427         (define_insn "<avx512>_storedqu<mode>_mask" with
10428         VI48_AVX512VL): New.
10429         (define_insn "<avx512>_storedqu<mode>_mask" with
10430         VI12_AVX512VL): Ditto.
10432 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10433             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10434             Anna Tikhonova  <anna.tikhonova@intel.com>
10435             Ilya Tocar  <ilya.tocar@intel.com>
10436             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10437             Ilya Verbin  <ilya.verbin@intel.com>
10438             Kirill Yukhin  <kirill.yukhin@intel.com>
10439             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10441         * config/i386/sse.md
10442         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
10443         (define_mode_iterator VI48_AVX512BW): New.
10444         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
10445         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10446         with VI48_AVX2_48_AVX512F): New.
10447         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10448         with VI2_AVX512VL): Ditto.
10450 2014-08-27  Richard Biener  <rguenther@suse.de>
10452         PR middle-end/62239
10453         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
10454         (fold_builtin_3): Do not fold strcat_chk here.
10455         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
10456         from builtins.c.
10457         (gimple_fold_builtin): Fold strcat_chk here.
10459 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
10461         * dwarf2out.h (dwarf2out_decl): Remove prototype.
10462         * dwarf2out.c (dwarf2out_decl): Make static.
10464 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
10466         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
10468 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10470         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
10471         from rtx to rtx_insn *.
10472         (cselib_lookup_from_insn): Likewise for final param.
10473         (cselib_subst_to_values_from_insn): Likewise.
10474         (cselib_add_permanent_equiv): Likewise.
10476         * cselib.c (cselib_current_insn): Likewise for this variable.
10477         (cselib_subst_to_values_from_insn): Likewise for param "insn".
10478         (cselib_lookup_from_insn): Likewise.
10479         (cselib_add_permanent_equiv): Likewise for param "insn" and local
10480         "save_cselib_current_insn".
10481         (cselib_process_insn): Replace use of NULL_RTX with NULL.
10483         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
10484         from rtx to rtx_insn *.
10486 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10488         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
10489         rtx_insn *.
10491 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10493         * df.h (df_dump_insn_problem_function): Strengthen first param of
10494         this callback from const_rtx to const rtx_insn *.
10495         (struct df_insn_info): Strengthen field "insn" from rtx to
10496         rtx_insn *.
10497         (DF_REF_INSN): Eliminate this function, reinstating the older
10498         macro definition.
10499         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
10500         (df_reg_defined): Likewise.
10501         (df_find_use): Likewise.
10502         (df_reg_used): Likewise.
10503         (df_dump_insn_top): Strengthen param 1 from const_rtx to
10504         const rtx_insn *.
10505         (df_dump_insn_bottom): Likewise.
10506         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
10507         (df_insn_debug_regno): Likewise.
10508         (debug_df_insn): Likewise.
10509         (df_rd_simulate_one_insn): Likewise for param 2.
10510         (df_word_lr_simulate_defs): Likewise for param 1.
10511         (df_word_lr_simulate_uses): Likewise.
10512         (df_md_simulate_one_insn): Likewise for param 2.
10513         (df_simulate_find_noclobber_defs): Likewise for param 1.
10514         (df_simulate_find_defs): Likewise.
10515         (df_simulate_defs): Likewise.
10516         (df_simulate_uses): Likewise.
10517         (df_simulate_one_insn_backwards): Likewise for param 2.
10518         (df_simulate_one_insn_forwards): Likewise.
10519         (df_uses_create): Likewise for param 2.
10520         (df_insn_create_insn_record): Likewise for param 1.
10521         (df_insn_delete): Likewise.
10522         (df_insn_rescan): Likewise.
10523         (df_insn_rescan_debug_internal): Likewise.
10524         (df_insn_change_bb): Likewise.
10525         (df_notes_rescan): Likewise.
10526         * rtl.h (remove_death): Likewise for param 2.
10527         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
10528         const rtx_insn *.
10529         * sched-int.h (reemit_notes): Strengthen param from rtx to
10530         rtx_insn *.
10531         * valtrack.h (propagate_for_debug): Likewise for param 1.
10533         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
10534         local "tmp_rtx" from const_rtx to const rtx_insn *.
10535         * combine.c (remove_death): Strengthen param "insn" from rtx to
10536         rtx_insn *.
10537         (move_deaths): Likewise for local "where_dead".
10538         * cse.c (delete_trivially_dead_insns): Introduce local
10539         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
10540         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
10541         rtx_insn *.
10542         (df_reg_defined): Likewise.
10543         (df_find_use): Likewise.
10544         (df_reg_used): Likewise.
10545         (df_dump_insn_problem_data): Strengthen param "insn" from
10546         const_rtx to const rtx_insn *.
10547         (df_dump_insn_top): Likewise.
10548         (df_dump_insn_bottom): Likewise.
10549         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
10550         (df_insn_debug_regno): Likewise.
10551         (debug_df_insn): Likewise.
10552         (DF_REF_INSN): Delete.
10553         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
10554         from rtx to rtx_insn *.
10555         (df_chain_insn_top_dump): Strengthen param "insn" from
10556         const_rtx to const rtx_insn *.
10557         (df_chain_insn_bottom_dump): Likewise.
10558         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
10559         rtx_insn *.
10560         (df_word_lr_simulate_uses): Likewise.
10561         (df_print_note): Likewise.
10562         (df_remove_dead_and_unused_notes): Likewise.
10563         (df_set_unused_notes_for_mw): Likewise.
10564         (df_set_dead_notes_for_mw): Likewise.
10565         (df_create_unused_note): Likewise.
10566         (df_simulate_find_defs): Likewise.
10567         (df_simulate_find_uses): Likewise.
10568         (df_simulate_find_noclobber_defs): Likewise.
10569         (df_simulate_defs): Likewise.
10570         (df_simulate_uses): Likewise.
10571         (df_simulate_one_insn_backwards): Likewise.
10572         (df_simulate_one_insn_forwards): Likewise.
10573         (df_md_simulate_one_insn): Likewise.
10574         * df-scan.c (df_uses_create): Likewise.
10575         (df_insn_create_insn_record): Likewise.
10576         (df_insn_delete): Likewise.
10577         (df_insn_rescan): Likewise.
10578         (df_insn_rescan_debug_internal): Likewise.
10579         (df_insn_change_bb): Likewise.
10580         (df_notes_rescan): Likewise.
10581         (df_refs_add_to_chains): Likewise.
10582         (df_insn_refs_verify): Likewise.
10583         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
10584         when invoking df_insn_delete.
10585         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
10586         (set_unique_reg_note): Add checked cast.
10587         * final.c (cleanup_subreg_operands): Likewise.
10588         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
10589         "insn" from rtx to rtx_insn *.
10590         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
10591         "last" from rtx to rtx_insn *.
10592         * ira-emit.c (change_regs_in_insn): New function.
10593         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
10594         Invoke change_regs_in_insn rather than change_regs.
10595         * ira.c (update_equiv_regs): Strengthen locals "insn",
10596         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
10597         for_each_rtx_in_insn rather than for_each_rtx.
10598         * recog.c (confirm_change_group): Add checked casts.
10599         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
10600         Add checked cast.
10601         (peep2_fill_buffer): Add checked cast.
10602         * rtlanal.c (remove_note): Likewise.
10603         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
10604         locals "next" "end" from rtx to rtx_insn *.
10606 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10608         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
10609         to rtx_insn *.
10610         (struct reg_use_data): Likewise for field "insn".
10611         (insn_cost): Likewise for param.
10612         (real_insn_for_shadow): Likewise for return type and param.
10613         (increase_insn_priority): Likewise for param 1.
10614         (debug_dependencies): Likewise for both params.
10616         * haifa-sched.c (insn_delay): Likewise for param "insn".
10617         (real_insn_for_shadow): Likewise for return type and param "insn".
10618         (update_insn_after_change): Likewise for param "insn".
10619         (recompute_todo_spec): Likewise for param "next" and locals "pro",
10620         "other".
10621         (insn_cost): Likewise for param "insn".
10622         (increase_insn_priority): Likewise.
10623         (calculate_reg_deaths): Likewise.
10624         (setup_insn_reg_pressure_info): Likewise.
10625         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10626         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10627         (model_recompute): Likewise.
10628         (must_restore_pattern_p): Likewise for param "next".
10629         (model_excess_cost): Likewise for param "insn".
10630         (queue_remove): Likewise.
10631         (adjust_priority): Likewise for param "prev".
10632         (update_register_pressure): Likewise for param "insn".
10633         (setup_insn_max_reg_pressure): Likewise for local "insn".
10634         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10635         (model_add_to_schedule): Likewise.
10636         (model_reset_queue_indices): Likewise for local "insn".
10637         (unschedule_insns_until): Strengthen local "recompute_vec" from
10638         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
10639         "con" from rtx to rtx_insn *.
10640         (restore_last_backtrack_point): Likewise for both locals "x". Add
10641         checked casts.
10642         (estimate_insn_tick): Likewise for param "insn".
10643         (commit_schedule): Likewise for params "prev_head", "tail" and
10644         local "x".
10645         (verify_shadows): Likewise for locals "i1", "i2".
10646         (dump_insn_stream): Likewise for params "head", "tail" and locals
10647         "next_tail", "insn".
10648         (schedule_block): Likewise for locals "insn", "x".  Add a checked
10649         cast.
10650         (fix_inter_tick): Likewise for params "head", "tail".
10651         (create_check_block_twin): Likewise for local "jump".
10652         (haifa_change_pattern): Likewise for param "insn".
10653         (haifa_speculate_insn): Likewise.
10654         (dump_new_block_header): Likewise for params "head", "tail".
10655         (fix_jump_move): Likewise for param "jump".
10656         (move_block_after_check): Likewise.
10657         (sched_init_insn_luid): Likewise for param "insn".
10658         (sched_init_luids): Likewise for local "insn".
10659         (insn_luid): Likewise for param "insn".
10660         (init_h_i_d): Likewise.
10661         (haifa_init_h_i_d): Likewise for local "insn".
10662         (haifa_init_insn): Likewise for param "insn".
10663         * sched-deps.c (add_dependence): Likewise for local "real_pro",
10664         "other".
10665         (create_insn_reg_use): Likewise for param "insn".
10666         (setup_insn_reg_uses): Likewise.  Add a checked cast.
10667         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10668         "tail" from rtx to rtx_insn *.
10669         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10670         "insn", "next_tail".
10672 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10674         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10675         from rtx to rtx_insn *.
10676         (model_add_to_schedule): Likewise for locals "start", "end",
10677         "iter".
10679 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10681         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10682         rtx_insn *.
10683         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
10684         "to" and locals "insn", "next", "copy".  Remove now-redundant
10685         checked cast.
10687 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10689         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10690         rtx_insn * and param 4 from rtx * to rtx_insn **.
10691         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10692         param 2 from rtx * to rtx_insn **.
10694         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10695         rtx_insn * and final param from rtx * to rtx_insn **.
10697         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10698         from rtx to rtx_insn *.
10699         (try_head_merge_bb): Likewise for both locals named "move_upto".
10700         * df-problems.c (can_move_insns_across): Likewise for params
10701         "from", "to", "across_from", "across_to" and locals "insn",
10702         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
10703         rtx_insn **.
10704         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10705         from rtx to rtx_insn *.
10706         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10707         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10708         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10709         rtx_insn *.
10710         (noce_try_abs): Likewise.
10711         (noce_get_condition): Likewise for param "jump".  Strengthen param
10712         "earliest" from rtx * to rtx_insn **.
10713         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10714         rtx_insn *.
10715         (find_cond_trap): Likewise.
10716         (dead_or_predicable): Likewise for local "earliest".
10717         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
10718         checked cast.
10719         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10720         and local "prev".  Strengthen param "earliest" from rtx * to
10721         rtx_insn **.
10722         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10723         Strengthen param "earliest" from rtx * to rtx_insn **.
10725 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10727         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10728         "to" and local "insn" from rtx to rtx_insn *.
10730 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10732         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10733         from rtx to rtx_insn *.
10734         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10735         (code_motion_path_driver): Likewise for local "last_insn".
10736         (simplify_changed_insns): Likewise for local "insn".
10738 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10740         * rtl.h (push_to_sequence): Strengthen param from rtx to
10741         rtx_insn *.
10742         (push_to_sequence2): Likewise for both params.
10743         (delete_insns_since): Likewise for param.
10744         (reorder_insns_nobb): Likewise for all three params.
10745         (set_new_first_and_last_insn): Likewise for both params.
10747         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10748         rtx_insn *.  Remove now-redundant cast.
10749         (set_last_insn): Likewise.
10751         * builtins.c (expand_builtin_return): Strengthen local
10752         "call_fusage" from rtx to rtx_insn *.
10753         * cfgrtl.c (create_basic_block_structure): Likewise for local
10754         "after".
10755         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10756         "first", "last" and local "insn".
10757         (delete_insns_since): Likewise for param "from".
10758         (reorder_insns_nobb): Likewise for params "from", "to", "after"
10759         and local "x".
10760         (push_to_sequence): Likewise for param "first" and local "last".
10761         (push_to_sequence2): Likewise for params "first" and "last".
10762         * lra.c (emit_add3_insn): Likewise for local "last".
10763         (lra_emit_add): Likewise.
10764         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10765         "last_insn".
10766         (process_address_1): Likewise for locals "insn", last".
10767         * modulo-sched.c (ps_first_note): Likewise for return type.
10768         * optabs.c (expand_binop_directly): Likewise for param "last".
10770 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10772         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10773         to rtx_insn*.
10774         * emit-rtl.c (get_last_insn_anywhere): Likewise.
10776 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10778         * function.h (struct sequence_stack): Strengthen fields "first"
10779         and "last" from rtx to rtx_insn *.
10780         (struct emit_status): Likewise for fields "x_first_insn" and
10781         "x_last_insn".
10783         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10784         (set_first_insn): Add checked cast.
10785         (get_last_insn): Remove now-redundant checked cast.
10786         (set_last_insn): Add checked cast.
10788         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10789         "saved_first" and "saved_last" from rtx to rtx_insn *.
10791 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10793         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10794         (unlink_insn_chain): Strengthen both params from rtx to
10795         rtx_insn *.
10797         * cfgrtl.c (cfg_layout_function_header): Likewise for this
10798         variable.
10799         (unlink_insn_chain): Likewise for params "first" and "last".
10800         Remove now-redundant checked cast.
10801         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10802         (fixup_reorder_chain): Strengthen local "insn" from rtx to
10803         rtx_insn *.
10804         * emit-rtl.c (link_insn_into_chain): Likewise for all three
10805         params.
10806         (add_insn): Likewise for param "insn" and local "prev".
10807         (add_insn_after_nobb): Likewise for both params and local "next".
10808         (add_insn_before_nobb): Likewise for both params and local "prev".
10809         (add_insn_after): Rename param "after" to "uncast_after",
10810         introducing local "after" with another checked cast.
10811         (add_insn_before): Rename params "insn" and "before", giving them
10812         "uncast_" prefixes, adding the old names back using checked casts.
10813         (emit_note_after): Likewise for param "after".
10814         (emit_note_before): Likewise for param "before".
10815         (emit_label): Add a checked cast.
10817 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10819         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
10820         "insn" from rtx to rtx_insn *.
10822         * cselib.c (cselib_record_sets_hook): Likewise.
10824         * var-tracking.c (add_with_sets): Likewise, renaming back from
10825         "uncast_insn" to "insn" and eliminating the checked cast from rtx
10826         to rtx_insn *.
10828 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10830         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10831         and "header_" from rtx to rtx_insn *.
10832         (struct basic_block_d): Likewise for field "head_" within "x"
10833         field of union basic_block_il_dependent.
10834         (BB_HEAD): Drop function...
10835         (SET_BB_HEAD): ...and this function in favor of...
10836         (BB_HEAD): ...reinstate macro.
10837         (BB_END): Drop function...
10838         (SET_BB_END): ...and this function in favor of...
10839         (BB_END): ...reinstate macro.
10840         (BB_HEADER): Drop function...
10841         (SET_BB_HEADER): ...and this function in favor of...
10842         (BB_HEADER): ...reinstate macro.
10844         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10845         (fix_crossing_unconditional_branches): Likewise.
10846         * caller-save.c (save_call_clobbered_regs): Likewise.
10847         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10848         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10849         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10850         (merge_blocks_move_successor_nojumps): Likewise.
10851         (outgoing_edges_match): Update use of for_each_rtx to
10852         for_each_rtx_in_insn.
10853         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10854         (expand_gimple_cond): Likewise.
10855         (expand_gimple_tailcall): Likewise.
10856         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10857         SET_BB_END.
10858         (construct_exit_block): Drop use of SET_BB_END.
10859         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10860         rtx_insn *.
10861         (delete_insn): Rename param "insn" to "uncast_insn", introducing
10862         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
10863         SET_BB_HEAD and SET_BB_END.
10864         (create_basic_block_structure): Drop use of SET_BB_HEAD and
10865         SET_BB_END.
10866         (rtl_delete_block): Drop use of SET_BB_HEAD.
10867         (rtl_split_block): Drop use of SET_BB_END.
10868         (emit_nop_for_unique_locus_between): Likewise.
10869         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10870         (block_label): Drop use of SET_BB_HEAD.
10871         (fixup_abnormal_edges): Drop use of SET_BB_END.
10872         (record_effective_endpoints): Drop use of SET_BB_HEADER.
10873         (relink_block_chain): Likewise.
10874         (fixup_reorder_chain): Drop use of SET_BB_END.
10875         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10876         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10877         rtx_insn **.  Drop use of SET_BB_HEADER.
10878         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10879         SET_BB_HEAD.
10880         (BB_HEAD): Delete this function.
10881         (SET_BB_HEAD): Likewise.
10882         (BB_END): Likewise.
10883         (SET_BB_END): Likewise.
10884         (BB_HEADER): Likewise.
10885         (SET_BB_HEADER): Likewise.
10886         * emit-rtl.c (add_insn_after):  Rename param "insn" to
10887         "uncast_insn", adding a new local "insn" and a checked cast to
10888         rtx_insn *.  Drop use of SET_BB_END.
10889         (remove_insn): Strengthen locals "next" and "prev" from rtx to
10890         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
10891         (reorder_insns): Drop use of SET_BB_END.
10892         (emit_insn_after_1): Strengthen param "first" and locals "last",
10893         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
10894         (emit_pattern_after_noloc): Add checked cast.
10895         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10896         (restore_other_notes): Likewise.
10897         (move_insn): Likewise.
10898         (sched_extend_bb): Likewise.
10899         (fix_jump_move): Likewise.
10900         * ifcvt.c (noce_process_if_block): Likewise.
10901         (dead_or_predicable): Likewise.
10902         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10903         * reg-stack.c (change_stack): Drop use of SET_BB_END.
10904         * sel-sched-ir.c (sel_move_insn): Likewise.
10905         * sel-sched.c (move_nop_to_previous_block): Likewise.
10907         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10908         SET_BB_END.
10909         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10911 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10913         * basic-block.h (create_basic_block_structure): Strengthen params
10914         1 "head" and 2 "end" from rtx to rtx_insn *.
10915         * cfgrtl.c (create_basic_block_structure): Likewise.
10916         (rtl_create_basic_block): Update casts from void * to rtx to
10917         rtx_insn *, so that we can pass them as rtx_insn * to
10918         create_basic_block_structure.
10919         * sel-sched-ir.c (sel_create_basic_block): Likewise.
10921 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10923         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10924         rtx_insn **.
10925         (check_for_inc_dec): Strengthen param "insn" from rtx to
10926         rtx_insn *.
10928         * cselib.h (cselib_process_insn): Likewise.
10930         * cselib.c (cselib_record_sets): Likewise.
10931         (cselib_process_insn): Likewise.
10933         * dse.c (struct insn_info): Likewise for field "insn".
10934         (check_for_inc_dec_1): Likewise for local "insn".
10935         (check_for_inc_dec): Likewise for param "insn".
10936         (scan_insn): Likewise.
10937         (dse_step1): Likewise for local "insn".
10939         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10940         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
10942 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10944         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10945         from rtx to rtx_insn *.
10946         (DEP_PRO): Delete this function and...
10947         (SET_DEP_PRO): ...this function in favor of...
10948         (DEP_PRO): ...reinstate this macro.
10949         (DEP_CON): Delete this function and...
10950         (SET_DEP_CON): ...this function in favor of...
10951         (DEP_CON): ...reinstate this old macro.
10952         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10953         (init_dep): Likewise.
10954         (set_priorities): Likewise for both params.
10955         (sd_copy_back_deps): Likewise for params 1 and 2.
10957         * haifa-sched.c (priority): Likewise for param "insn" and local
10958         "next".
10959         (set_priorities): Likewise for params "head" and "tail" and local
10960         "insn".
10961         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10962         local "consumer".
10963         (add_to_speculative_block): Add a checked cast.
10964         (create_check_block_twin): Drop use of SET_DEP_CON.
10965         (add_jump_dependencies): Strengthen params "insn" and "jump" from
10966         rtx to rtx_insn *.
10968         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10969         Drop use of SET_DEP_PRO
10970         (init_dep): Strengthen params "pro" and "con" from rtx to
10971         rtx_insn *.
10972         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
10973         use of SET_DEP_CON.
10974         (DEP_PRO): Delete.
10975         (DEP_CON): Delete.
10976         (SET_DEP_PRO): Delete.
10977         (SET_DEP_CON): Delete.
10979 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10981         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10982         from rtx to rtx_insn *.
10983         (VINSN_INSN_RTX): Eliminate rvalue function and...
10984         (SET_VINSN_INSN): ...lvalue function in favor of...
10985         (VINSN_INSN_RTX): reinstate this old macro.
10987         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10988         in favor of VINSN_INSN_RTX.
10989         (VINSN_INSN_RTX): Delete this function.
10990         (SET_VINSN_INSN_RTX): Likewise.
10992 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10994         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10995         (BND_TO): Delete this function and...
10996         (SET_BND_TO): ...this functions in favor of...
10997         (BND_TO): ...reinstating this macro.
10998         (struct _fence): Strengthen field "executing_insns" from
10999         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
11000         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
11001         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
11002         and param "insn" from rtx to insn_t.
11003         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
11004         rtx_insn *.
11006         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
11007         vec<rtx_insn *> .
11008         (rtx_vec_t): Likewise.
11009         (struct sched_deps_info_def): Strengthen param of "start_insn"
11010         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
11011         "note_mem_dep" callback and first param of "note_dep" callback.
11013         * haifa-sched.c (add_to_speculative_block): Strengthen param
11014         "insn" from rtx to rtx_insn *.
11015         (clear_priorities): Likewise.
11016         (calc_priorities): Likewise for local "insn".
11018         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
11019         Remove redundant checked cast.
11020         (haifa_note_mem_dep): Likewise for param "pending_insn".
11021         (haifa_note_dep): Likewise for param "elem".
11022         (note_mem_dep): Likewise for param "e".
11023         (sched_analyze_1): Add checked casts.
11024         (sched_analyze_2): Likewise.
11026         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
11027         from rtx to rtx_insn *.
11028         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
11029         from vec<rtx> * to vec<rtx_insn *> *.
11031         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
11032         scaffolding.
11033         (flist_add): Strengthen param "executing_insns" from
11034         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
11035         (advance_deps_context): Remove now-redundant checked cast.
11036         (init_fences): Replace uses of NULL_RTX with NULL.
11037         (merge_fences): Strengthen params "last_scheduled_insn" and
11038         "sched_next" from rtx to rtx_insn * and "executing_insns" from
11039         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
11040         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
11041         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
11042         an instruction, rather than doing double-duty as a pattern.
11043         (return_nop_to_pool): Update for change of insn_t.
11044         (deps_init_id): Remove now-redundant checked cast.
11045         (struct sched_scan_info_def): Strengthen param of "init_insn"
11046         callback from rtx to insn_t.
11047         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
11048         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
11049         NULL.
11050         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
11051         "end" from rtx to rtx_insn *.
11052         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
11053         (rtx insn_rtx, bool force_unique_p)
11054         (BND_TO): Delete function.
11055         (SET_BND_TO): Delete function.
11057         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
11058         rtx to rtx_insn *.
11059         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
11060         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
11061         rtx to rtx_insn *.
11062         (undo_transformations): Likewise for param "insn".
11063         (update_liveness_on_insn): Likewise.
11064         (compute_live_below_insn): Likewise for param "insn" and local
11065         "succ".
11066         (update_data_sets): Likewise for param "insn".
11067         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
11068         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
11069         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
11070         rtx_insn *.
11071         (move_cond_jump): Likewise for param "insn".
11072         (move_cond_jump): Drop use of SET_BND_TO.
11073         (compute_av_set_on_boundaries): Likewise.
11074         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
11075         (update_and_record_unavailable_insns): Strengthen local "bb_end"
11076         from rtx to rtx_insn *.
11077         (maybe_emit_renaming_copy): Likewise for param "insn".
11078         (maybe_emit_speculative_check): Likewise.
11079         (handle_emitting_transformations): Likewise.
11080         (remove_insn_from_stream): Likewise.
11081         (code_motion_process_successors): Strengthen local "succ" from rtx
11082         to insn_t.
11084 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
11086         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
11087         ilist_t, not _xlist_t;
11088         (ILIST_INSN): Define in terms of new union field "insn".
11089         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
11090         _XLIST_NEXT.
11091         (struct _list_node): Add new field "insn" to the union, of type
11092         insn_t.
11093         (ilist_add): Replace macro with an inline function, requiring an
11094         insn_t.
11095         (ilist_remove): Define this macro directly in terms of
11096         _list_remove, rather than indirectly via _xlist_remove.
11097         (ilist_clear): Likewise, in terms of _list_clear rather than
11098         _xlist_clear.
11099         (ilist_is_in_p): Replace macro with an inline function, requiring
11100         an insn_t.
11101         (_list_iter_cond_insn): New function.
11102         (ilist_iter_remove): Define this macro directly in terms of
11103         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
11104         (ilist_iterator): Define directly in terms of _list_iterator
11105         rather than indirectly through _xlist_iterator.
11106         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
11107         than in terms of _FOR_EACH_X.
11108         (FOR_EACH_INSN_1): Likewise.
11110 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
11112         PR target/60606
11113         PR target/61330
11114         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
11115         DECL_HARD_REGISTER and return for invalid register specifications.
11116         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
11117         DECL_HARD_REGISTER, call expand_one_error_var.
11118         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
11119         CC_REGNUM with non-MODE_CC modes.
11120         (arm_regno_class): Return NO_REGS for PC_REGNUM.
11122 2014-08-26  Marek Polacek  <polacek@redhat.com>
11124         PR c/61271
11125         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
11127 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
11129         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
11130         qi cost; add di cost.
11131         (cortexa57_addrcost_table): Likewise.
11133 2014-08-26  Marek Polacek  <polacek@redhat.com>
11135         PR c/61271
11136         * expr.c (is_aligning_offset): Remove logical not.
11138 2014-08-26  Marek Polacek  <polacek@redhat.com>
11140         PR c/61271
11141         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
11142         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
11144 2014-08-26  Richard Biener  <rguenther@suse.de>
11146         PR tree-optimization/62175
11147         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11148         expand possibly trapping operations.
11150 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
11152         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
11153         "insn" from rtx to rtx_insn *.
11154         (permute_load): Likewise for param "insn".
11155         (permute_store): Likewise.
11156         (handle_special_swappables): Likewise for local "insn".
11157         (replace_swap_with_copy): Likewise for locals "insn" and
11158         "new_insn".
11159         (rs6000_analyze_swaps): Likewise for local "insn".
11161 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11163         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
11164         to rtx_insn *.
11166 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11168         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
11169         "note_list" from rtx to rtx_insn *.
11170         (BB_NOTE_LIST): Replace this function and...
11171         (SET_BB_NOTE_LIST): ...this function with...
11172         (BB_NOTE_LIST): ...the former macro implementation.
11174         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
11175         local "from_start" from rtx to rtx_insn *.  Strengthen param
11176         "to_endp" from rtx * to rtx_insn **.
11178         * haifa-sched.c (concat_note_lists): Likewise.
11179         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
11180         BB_NOTE_LIST.
11181         (sel_restore_notes): Likewise.
11182         (move_bb_info): Likewise.
11183         (BB_NOTE_LIST): Delete this function.
11184         (SET_BB_NOTE_LIST): Delete this function.
11185         * sel-sched.c (create_block_for_bookkeeping): Eliminate
11186         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
11188 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11190         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
11191         from rtx * to rtx_insn **.
11192         (reorder2): Likewise.
11193         (dependencies_evaluation_hook): Strengthen params "head", "tail"
11194         from rtx to rtx_insn *.
11196         * doc/tm.texi: Update mechanically for above change to target.def.
11198         * sched-int.h (note_list): Strengthen this variable from rtx to
11199         rtx_insn *.
11200         (remove_notes): Likewise for both params.
11201         (restore_other_notes): Likewise for return type and first param.
11202         (struct ready_list): Strengthen field "vec" from rtx * to
11203         rtx_insn **.
11204         (struct dep_replacement): Strenghten field "insn" from rtx to
11205         rtx_insn *.
11206         (struct deps_desc): Likewise for fields "last_debug_insn",
11207         "last_args_size".
11208         (struct haifa_sched_info): Likewise for callback field
11209         "can_schedule_ready_p"'s param, for first param of "new_ready"
11210         callback field, for both params of "rank" callback field, for
11211         first field of "print_insn" callback field (with a const), for
11212         both params of "contributes_to_priority" callback, for param
11213         of "insn_finishes_block_p" callback, for fields "prev_head",
11214         "next_tail", "head", "tail", for first param of "add_remove_insn"
11215         callback, for first param of "begin_schedule_ready" callback, for
11216         both params of "begin_move_insn" callback, and for second param
11217         of "advance_target_bb" callback.
11218         (add_dependence): Likewise for params 1 and 2.
11219         (sched_analyze): Likewise for params 2 and 3.
11220         (deps_analyze_insn): Likewise for param 2.
11221         (ready_element): Likewise for return type.
11222         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11223         (try_ready): Strenghten param from rtx to rtx_insn *.
11224         (sched_emit_insn): Likewise for return type.
11225         (record_delay_slot_pair): Likewise for params 1 and 2.
11226         (add_delay_dependencies): Likewise for param.
11227         (contributes_to_priority): Likewise for both params.
11228         (find_modifiable_mems): Likewise.
11230         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
11231         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
11232         "first_older_only_insn" from rtx to rtx_insn *.
11233         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
11234         rtx_insn **.
11236         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
11237         "last_scheduled_iter0" from rtx to rtx_insn *.
11238         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
11239         (c6x_sched_reorder_1): Strengthen param "ready" and locals
11240         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
11241         "insn" from rtx to rtx_insn *.
11242         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
11243         rtx_insn **.
11244         (c6x_sched_reorder2): Strengthen param "ready" and locals
11245         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
11246         "insn" from rtx to rtx_insn *.
11247         (c6x_variable_issue):  Add a checked cast when assigning from insn
11248         to ss.last_scheduled_iter0.
11249         (split_delayed_branch): Strengthen param "insn" and local "i1"
11250         from rtx to rtx_insn *.
11251         (split_delayed_nonbranch): Likewise.
11252         (undo_split_delayed_nonbranch): Likewise for local "insn".
11253         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
11254         "entry_after", "end_packet", "head_insn", "tail_insn",
11255         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
11256         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
11257         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
11258         but add a checked cast on loop->start_label.  Consolidate calls to
11259         avoid assigning result of gen_spkernel to "insn", now an
11260         rtx_insn *.
11262         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
11263         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
11264         rtx to rtx_insn *.
11265         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
11266         rtx_insn **.  Strengthen locals "top", "next" from rtx to
11267         rtx_insn *.
11268         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
11269         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
11270         (add_parameter_dependencies): Strengthen params "call", "head" and
11271         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
11272         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
11273         (add_dependee_for_func_arg): Likewise for param "arg" and local
11274         "insn".
11275         (ix86_dependencies_evaluation_hook): Likewise for params "head",
11276         "tail" and locals "insn", "first_arg".
11278         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
11279         for params "head", "tail" and locals "insn", "next", "next_tail".
11280         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
11281         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
11282         "insn", "lowest", "highest" from rtx to rtx_insn *.
11283         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
11284         rtx_insn **.
11285         (ia64_sched_reorder2): Likewise.
11287         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
11288         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
11289         from rtx * to rtx_insn **.
11290         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
11291         rtx_insn **.
11292         (mep_print_sched_insn): Strengthen param "insn" from rtx to
11293         rtx_insn *.
11294         (mep_sched_reorder): Strengthen param "ready" from rtx * to
11295         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
11296         to rtx_insn *.
11298         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
11299         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
11300         to rtx_insn *.
11301         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
11302         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
11303         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
11304         rtx_insn **.
11305         (vr4130_reorder): Likewise.
11306         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
11307         rtx to rtx_insn *.
11308         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
11309         rtx_insn **.
11310         (mips_sched_reorder): Likewise.
11311         (mips_sched_reorder2): Likewise.
11313         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
11315         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
11316         Strengthen local "tmp" from rtx to rtx_insn *.
11317         (rs6000_sched_reorder2): Likewise.
11319         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
11320         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
11321         (s390_sched_reorder): Strengthen param "ready" from rtx * to
11322         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
11324         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
11325         "tmp2" from rtx to rtx_insn *.
11326         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
11327         Strengthen local "insn" from rtx to rtx_insn *.
11328         (ready_reorder): Strengthen param "ready" from rtx * to
11329         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
11330         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
11331         (sh_reorder2): Likewise.
11333         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
11334         local "insn" from rtx to rtx_insn *.
11336         * haifa-sched.c (note_list): Strengthen this variable from rtx to
11337         rtx_insn *.
11338         (scheduled_insns): Strengthen this variable from vec<rtx> to
11339         vec<rtx_insn *>.
11340         (set_modulo_params): Likewise for locals "i1", "i2".
11341         (record_delay_slot_pair): Likewise for params "i1", "i2".
11342         (add_delay_dependencies): Likewise for param "insn".
11343         (cond_clobbered_p): Likewise.
11344         (recompute_todo_spec): Likewise for local "prev".
11345         (last_scheduled_insn): Likewise for this variable.
11346         (nonscheduled_insns_begin): Likewise.
11347         (model_set_excess_costs): Strengthen param "insns" from rtx * to
11348         rtx_insn **.
11349         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
11350         rtx_insn *.
11351         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
11352         Strengthen local "insn" from rtx to rtx_insn *.
11353         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
11354         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11355         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
11356         (ready_remove_first): Likewise for return type and local "t".
11357         (ready_element): Likewise for return type.
11358         (ready_remove): Likewise for return type and local "t".
11359         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
11360         (check_clobbered_conditions): Strengthen local "x" from rtx to
11361         rtx_insn *, adding a checked cast.
11362         (schedule_insn): Likewise for param "insn".
11363         (remove_notes): Likewise for params "head", "tail" and locals
11364         "next_tail", "insn", "next".
11365         (struct haifa_saved_data): Likewise for fields
11366         "last_scheduled_insn", "nonscheduled_insns_begin".
11367         (save_backtrack_point): Update for change to field "vec" of
11368         struct ready_list.
11369         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
11370         rtx_insn **.
11371         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
11372         from rtx to rtx_insn *
11373         (resolve_dependencies): Strengthen param "insn" from rtx to
11374         rtx_insn *
11375         (restore_other_notes): Likewise for return type, for param "head"
11376         and local "note_head".
11377         (undo_all_replacements): Likewise for local "insn".
11378         (first_nonscheduled_insn): Likewise for return type and local "insn".
11379         (queue_to_ready): Likewise for local "insn", adding checked casts.
11380         (early_queue_to_ready): Likewise for local "insn".
11381         (debug_ready_list_1): Strengthen local "p" from rtx * to
11382         rtx_insn **.
11383         (move_insn): Strengthen param "insn" and local "note" from rtx to
11384         rtx_insn *
11385         (insn_finishes_cycle_p): Likewise for param "insn".
11386         (max_issue): Likewise for local "insn".
11387         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
11388         to rtx_insn **.
11389         (commit_schedule): Strengthen param "prev_head" and local "insn"
11390         from rtx to rtx_insn *
11391         (prune_ready_list): Likewise for local "insn".
11392         (schedule_block): Likewise for locals "prev_head", "head", "tail",
11393         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
11394         (set_priorities): Likewise for local "prev_head".
11395         (try_ready): Likewise for param "next".
11396         (fix_tick_ready): Likewise.
11397         (change_queue_index): Likewise.
11398         (sched_extend_ready_list): Update for change to field "vec" of
11399         struct ready_list.
11400         (generate_recovery_code): Strengthen param "insn" from rtx to
11401         rtx_insn *.
11402         (begin_speculative_block): Likewise.
11403         (create_check_block_twin): Likewise for param "insn" and locals
11404         "label", "check", "twin".  Introduce local "check_pat" to avoid
11405         "check" being used as a plain rtx before being used as an insn.
11406         (fix_recovery_deps): Add a checked cast to rtx_insn * when
11407         extracting elements from ready_list.
11408         (sched_remove_insn): Strengthen param "insn" from rtx to
11409         rtx_insn *.
11410         (sched_emit_insn): Likewise for return type.
11411         (ready_remove_first_dispatch): Likewise for return type and local
11412         "insn".
11414         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
11416         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
11417         const rtx_insn *.
11419         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
11420         from rtx to rtx_insn *.
11421         (add_dependence_list): Likewise for param "insn".  Add a checked
11422         cast.
11423         (add_dependence_list_and_free): Strengthen param "insn" from rtx
11424         to rtx_insn *.  Strengthen param "list_p" from rtx * to
11425         rtx_insn **.
11426         (chain_to_prev_insn): Strengthen param "insn" and locals
11427         "prec_nonnote", "i" from rtx to rtx_insn *.
11428         (flush_pending_lists): Likewise for param "insn".
11429         (cur_insn): Likewise for this variable.
11430         (haifa_start_insn): Add a checked cast.
11431         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
11432         (sched_analyze_reg): Likewise for param "insn".
11433         (sched_analyze_1): Likewise.
11434         (sched_analyze_2): Likewise.  Add checked casts.
11435         (sched_analyze_insn): Likewise.  Also for local "prev".
11436         (deps_analyze_insn): Likewise for param "insn".
11437         (sched_analyze): Likewise for params "head", "tail" and local "insn".
11438         (add_dependence_1): Likewise for params "insn", "elem".
11439         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
11440         (parse_add_or_inc): Likewise for param "insn".
11441         (find_inc): Likewise for local "inc_cand".
11442         (find_modifiable_mems): Likewise for params "head", "tail" and
11443         locals "insn", "next_tail".
11445         * sched-ebb.c (init_ready_list): Likewise for local "insn".
11446         (begin_schedule_ready): Likewise for param "insn".
11447         (begin_move_insn): Likewise for params "insn" and "last".
11448         (ebb_print_insn): Strengthen param "insn" from const_rtx to
11449         const rtx_insn *.
11450         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
11451         (ebb_contributes_to_priority): Likewise for params "next", "insn".
11452         (ebb_add_remove_insn): Likewise for param "insn".
11453         (advance_target_bb): Likewise.
11455         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
11456         "insn".
11457         (check_live): Likewise for param "insn".
11458         (init_ready_list): Likewise for local "insn".
11459         (can_schedule_ready_p): Likewise for param "insn".
11460         (begin_schedule_ready): Likewise.
11461         (new_ready): Likewise for param "next".
11462         (rgn_print_insn): Likewise for param "insn".
11463         (rgn_rank): Likewise for params "insn1", "insn2".
11464         (contributes_to_priority): Likewise for params "next", "insn".
11465         (rgn_insn_finishes_block_p): Likewise for param "insn".
11466         (add_branch_dependences): Likewise for params "head", "tail" and
11467         locals "insn", "last".
11468         (rgn_add_remove_insn): Likewise for param "insn".
11469         (advance_target_bb): Likewise.
11471         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
11472         const_rtx to const rtx_insn *.
11474         * sel-sched-dump.h (sel_print_insn): Likewise.
11476         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
11477         (deps_init_id): Likewise.
11479         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
11480         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
11481         rtx_insn **.
11483 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11485         * output.h (final_start_function): Strengthen param 1 from rtx to
11486         rtx_insn *.
11488         * final.c (final_start_function): Likewise, renaming back from
11489         "uncast_first" to "first", and dropping the checked cast from rtx
11490         to rtx_insn *.
11492 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11494         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
11495         * final.c (final): Likewise.  Rename param back from
11496         "uncast_first" to "first" and eliminate the checked cast from rtx
11497         to rtx_insn *.
11499 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11501         * output.h (shorten_branches): Strengthen param from rtx to
11502         rtx_insn *.
11504         * final.c (shorten_branches): Likewise, renaming param back from
11505         "uncast_first" to "first", and dropping the checked cast from rtx
11506         to rtx_insn *.
11508         * genattr.c (gen_attr): Likewise when writing out the prototype of
11509         shorten_branches.
11511 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11513         * sched-int.h (struct haifa_sched_info): Strengthen fields
11514         "prev_head" and "next_tail" from rtx to rtx_insn *.
11516 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11518         * rtl.h (rtx_jump_table_data::get_labels): New method.
11519         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
11520         with use of the new rtx_jump_table_data::get_labels method.
11521         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
11522         to rtx_jump_table_data *.  Simplify by using get_labels method.
11523         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
11524         a dyn_cast, introducing local "table", using it to replace
11525         label-lookup logic with a get_labels method call.
11526         (patch_jump_insn): Simplify using get_labels method.
11527         * dwarf2cfi.c (create_trace_edges): Likewise.
11528         * rtlanal.c (label_is_jump_target_p): Likewise.
11530 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11532         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
11533         to rtx_insn *.
11535         * emit-rtl.c (unshare_all_rtl_1): Likewise.
11536         (unshare_all_rtl_again): Likewise, also for local "p".
11538 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11540         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
11541         to rtx_insn *.
11542         * cfgrtl.c (delete_insn_and_edges): Likewise.
11544 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11546         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
11547         from rtx to rtx_insn *.
11549         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
11551 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11553         * function.c (thread_prologue_and_epilogue_insns): Likewise for
11554         locals "returnjump", "epilogue_end", "insn", "next".
11556         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
11557         "returnjump" from rtx * to rtx_insn **.
11558         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
11560 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11562         * basic-block.h (struct edge_def). Strengthen "r" within
11563         union edge_def_insns from rtx to rtx_insn *.
11565         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
11566         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
11567         rtx_insn *.
11568         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
11569         from rtx to rtx_insn *.
11570         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
11571         rtx_insn *.
11572         * postreload-gcse.c (reg_killed_on_edge): Likewise.
11573         (reg_used_on_edge): Likewise.
11574         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
11575         (gt_pch_nx): New overload for rtx_insn *&.
11576         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
11577         from rtx to rtx_insn *.
11579 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11581         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
11582         from rtx to rtx_insn *.
11583         (BB_FOOTER): Replace function with access macro.
11584         (SET_BB_FOOTER): Delete.
11586         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
11587         with BB_FOOTER.
11588         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11589         (emit_barrier_after_bb): Likewise.
11590         (record_effective_endpoints): Likewise.
11591         (relink_block_chain): Likewise.
11592         (fixup_fallthru_exit_predecessor): Likewise.
11593         (cfg_layout_duplicate_bb): Likewise.
11594         (cfg_layout_split_block): Likewise.
11595         (cfg_layout_delete_block): Likewise.
11596         (cfg_layout_merge_blocks): Likewise.
11597         (BB_FOOTER): Delete function.
11598         (SET_BB_FOOTER): Delete function.
11599         * combine.c (update_cfg_for_uncondjump): Replace uses of
11600         SET_BB_FOOTER with BB_FOOTER.
11602 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11604         * except.h (struct eh_landing_pad_d): Strengthen field
11605         "landing_pad" from rtx to rtx_code_label *.
11607         * except.c (sjlj_emit_dispatch_table): Likewise for param
11608         "dispatch_label"
11609         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
11611 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11613         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
11614         first param from rtx to rtx_insn *.
11615         * config/xtensa/xtensa.c (struct machine_function): Likewise for
11616         field "set_frame_ptr_insn".
11617         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
11618         "csend" from rtx to rtx_code_label *.
11619         (xtensa_expand_atomic): Likewise for local "csloop".
11620         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11621         rtx_insn *.
11622         (xtensa_call_tls_desc): Likewise for return type and locals
11623         "call_insn", "insns".
11624         (xtensa_legitimize_tls_address): Likewise for local "insns".
11625         (xtensa_expand_prologue): Likewise for locals "insn", "first".
11627 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11629         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11630         first param from rtx to rtx_insn *.
11631         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11632         "insn".
11634 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11636         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11637         Strengthen param 1 from rtx to rtx_insn *.
11638         (tilepro_output_cbranch): Likewise.
11639         (tilepro_adjust_insn_length): Likewise.
11640         (tilepro_final_prescan_insn): Likewise for sole param.
11642         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11643         Likewise for local "last".
11644         (cbranch_predicted_p): Likewise for param "insn".
11645         (tilepro_output_simple_cbranch_with_opcode): Likewise.
11646         (tilepro_output_cbranch_with_opcode): Likewise.
11647         (tilepro_output_cbranch): Likewise.
11648         (frame_emit_load): Likewise for return type and locals "seq",
11649         "insn".
11650         (emit_sp_adjust): Likewise for return type and local "insn".
11651         (tilepro_expand_epilogue): Likewise for locals "last_insn",
11652         "insn".
11653         (tilepro_adjust_insn_length): Likewise for param "insn".
11654         (next_insn_to_bundle): Likewise for return type and params
11655         "r", "end".
11656         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11657         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11658         local "new_insns".
11659         (match_addli_pcrel): Likewise for param "insn".
11660         (replace_addli_pcrel): Likewise.
11661         (match_auli_pcrel): Likewise.
11662         (replace_auli_pcrel): Likewise.
11663         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11664         "next_insn".
11665         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11666         "queue", "next_queue", "prev".
11667         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11668         (tilepro_final_prescan_insn): Likewise for param "insn".
11670 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11672         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11673         Strengthen param 1 from rtx to rtx_insn *.
11674         (tilegx_output_cbranch): Likewise.
11675         (tilegx_adjust_insn_length): Likewise.
11676         (tilegx_final_prescan_insn): Likewise for sole param.
11678         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11679         or local "last".
11680         (cbranch_predicted_p): Likewise for param "insn".
11681         (tilegx_output_simple_cbranch_with_opcode): Likewise.
11682         (tilegx_output_cbranch_with_opcode): Likewise.
11683         (tilegx_output_cbranch): Likewise.
11684         (frame_emit_load): Likewise for return type.
11685         (set_frame_related_p): Likewise for locals "seq", "insn".
11686         (emit_sp_adjust): Likewise for return type, and for local "insn".
11687         Introduce local "pat" for use in place of "insn" where the latter
11688         isn't an instruction.
11689         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11690         from rtx to rtx_insn *.
11691         (tilegx_adjust_insn_length): Likewise for param "insn".
11692         (next_insn_to_bundle): Likewise for return type and params "r" and
11693         "end".
11694         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11695         "end".
11696         (replace_insns): Likewise for params "old_insn", "new_insns".
11697         (replace_mov_pcrel_step1): Likewise for param "insn" and local
11698         "new_insns".
11699         (replace_mov_pcrel_step2): Likewise.
11700         (replace_mov_pcrel_step3): Likewise.
11701         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11702         "next_insn".
11703         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11704         "queue", "next_queue", "prev".
11705         (tilegx_output_mi_thunk): Likewise for local "insn".
11706         (tilegx_final_prescan_insn): Likewise for param "insn".
11708 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11710         * config/spu/spu.c (frame_emit_store): Strengthen return type from
11711         rtx to rtx_insn *.
11712         (frame_emit_load): Likewise.
11713         (frame_emit_add_imm): Likewise, also for local "insn".
11714         (spu_expand_prologue): Likewise for local "insn".
11715         (struct spu_bb_info): Likewise for field "prop_jump".
11716         (emit_nop_for_insn): Likewise for param "insn" and local
11717         "new_insn".
11718         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11719         "hbr_insn".
11720         (spu_emit_branch_hint): Likewise for params "before", "branch" and
11721         locals "hint", "insn".
11722         (get_branch_target): Likewise for param "branch".
11723         (insn_clobbers_hbr): Likewise for param "insn".
11724         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11725         locals "insn", "before_4", "before_16".
11726         (insert_hbrp): Likewise for local "insn".
11727         (spu_machine_dependent_reorg): Likewise for locals "branch",
11728         "insn", "next", "bbend".
11729         (uses_ls_unit): Likewise for param "insn".
11730         (get_pipe): Likewise.
11731         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11732         introducing a checked cast.
11733         (spu_sched_adjust_cost): Likewise for params "insn" and
11734         "dep_insn".
11735         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11736         (spu_sms_res_mii): Likewise.
11738 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11740         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11741         from rtx to rtx_insn *.
11742         (output_cbranch): Likewise for param 6.
11743         (output_return): Likewise for param 1.
11744         (output_sibcall): Likewise.
11745         (output_v8plus_shift): Likewise.
11746         (output_v8plus_mult): Likewise.
11747         (output_v9branch): Likewise for param 7.
11748         (output_cbcond):  Likewise for param 3.
11750         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11751         for local "insn".
11752         (sparc_legitimize_pic_address): Likewise.
11753         (sparc_emit_call_insn): Likewise.
11754         (emit_save_or_restore_regs): Likewise.
11755         (emit_window_save): Likewise for return type and local "insn".
11756         (sparc_expand_prologue): Likewise for local "insn".
11757         (sparc_flat_expand_prologue): Likewise.
11758         (output_return): Likewise for param "insn".
11759         (output_sibcall): Likewise for param "insn" and local "delay".
11760         (output_ubranch): Likewise for param "insn".
11761         (output_cbranch): Likewise.
11762         (output_cbcond): Likewise.
11763         (output_v9branch): Likewise.
11764         (output_v8plus_shift): Likewise.
11765         (sparc_output_mi_thunk): Likewise for local "insn".
11766         (get_some_local_dynamic_name): Likewise.
11767         (output_v8plus_mult): Likewise for param "insn".
11769 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11771         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11772         from rtx to rtx_insn *.
11773         (output_branchy_insn): Likewise for param 3.
11774         (output_far_jump): Likewise for param 1.
11775         (final_prescan_insn): Likewise.
11776         (sh_insn_length_adjustment): Likewise for sole param.
11778         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11779         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11780         rtx_code_label *.
11781         (sh_emit_compare_and_set): Likewise for local "lab".
11782         (output_far_jump): Strengthen param "insn" and local "prev" from
11783         rtx to rtx_insn *.
11784         (output_branchy_insn): Likewise for param "insn" and local
11785         "next_insn".
11786         (output_ieee_ccmpeq): Likewise for param "insn".
11787         (struct label_ref_list_d): Strengthen field "label" from rtx to
11788         rtx_code_label *.
11789         (pool_node): Likewise.
11790         (pool_window_label): Likewise for this global.
11791         (add_constant): Likewise for return type and locals "lab", "new_rtx".
11792         (dump_table): Strengthen params "start", "barrier" and local
11793         "scan" from rtx to rtx_insn *.
11794         (broken_move): Likewise for param "insn".
11795         (untangle_mova): Likewise for params "first_mova" and "new_mova".
11796         Strengthen param "first_mova" from rtx * to rtx_insn **.
11797         (mova_p): Likewise for param "insn".
11798         (fixup_mova): Likewise for param "mova".
11799         (find_barrier): Likewise for return type, params "mova" and
11800         "from", and locals "barrier_before_mova", "found_barrier",
11801         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
11802         "label" from rtx to rtx_code_label *.
11803         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11804         rtx to rtx_insn *.
11805         (sh_reorg): Likewise for locals "link", "scan", "barrier".
11806         (split_branches): Likewise for param "first" and local "insn".
11807         (final_prescan_insn): Likewise for param "insn".
11808         (sequence_insn_p): Likewise for locals "prev", "next".
11809         (sh_insn_length_adjustment): Likewise for param "insn".
11810         (sh_can_redirect_branch): Likewise for local "insn".
11811         (find_r0_life_regions): Likewise for locals "end", "insn".
11812         (sh_output_mi_thunk): Likewise for local "insns".
11814 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11816         * config/score/score.c (score_output_mi_thunk): Strengthen local
11817         "insn" from rtx to rtx_insn *.
11818         (score_prologue): Likewise.
11820 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11822         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11823         1 from rtx to rtx_insn *.
11824         (s390_emit_jump): Likewise for return type.
11825         (s390_emit_call): Likewise.
11826         (s390_load_got): Likewise.
11828         * config/s390/s390.c (last_scheduled_insn): Likewise for this
11829         variable.
11830         (s390_match_ccmode): Likewise for param "insn".
11831         (s390_emit_jump): Likewise for return type.
11832         (s390_split_branches): Likewise for local "label".
11833         (struct constant): Strengthen field "label" from rtx to
11834         rtx_code_label *.
11835         (struct constant_pool): Likewise for field "label".  Strengthen
11836         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11837         rtx_insn *.
11838         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11839         insns.
11840         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11841         (s390_end_pool): Likewise.
11842         (s390_dump_pool): Likewise for local "insn".
11843         (s390_mainpool_start): Likewise.
11844         (s390_chunkify_start): Likewise.
11845         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11846         with insns.  Strengthen locals "label", "jump", "barrier", "next",
11847         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11848         (s390_chunkify_finish): Strengthen local "insn" from rtx to
11849         rtx_insn *.
11850         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11851         "jump", "label", "next_insn".
11852         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11853         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11854         "tbegin_insn".
11855         (s390_load_got): Likewise for return type and local "insns".
11856         (s390_save_gprs_to_fprs): Likewise for local "insn".
11857         (s390_restore_gprs_from_fprs): Likewise.
11858         (pass_s390_early_mach::execute): Likewise.
11859         (s390_emit_prologue): Likewise for local "insns".
11860         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11861         rtx_code_label *.
11862         (s390_emit_call): Strengthen return type and local "insn" from
11863         rtx to rtx_insn *.
11864         (s390_emit_tpf_eh_return): Likewise for local "insn".
11865         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11866         "next_insn", introducing locals "s_pat", "rpat" to allow this.
11867         (s390_fix_long_loop_prediction): Likewise for param "insn" and
11868         local "cur_insn".
11869         (s390_non_addr_reg_read_p): Likewise for param "insn".
11870         (find_cond_jump): Likewise for return type and param "insn".
11871         (s390_swap_cmp): Likewise for param "insn".
11872         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11873         "prev_insn", "next_insn".
11874         (s390_reorg): Likewise for locals "insn", "target".
11875         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11876         (s390_sched_variable_issue): For now, rename param "insn" to
11877         "uncast_insn", introducing a checked cast.
11878         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11879         insn.
11880         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11881         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
11883 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11885         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11886         param from rtx to rtx_insn *.
11887         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11889 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11891         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11892         4 from rtx to rtx_insn *.
11893         (rs6000_final_prescan_insn): Likewise for first param.
11894         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11895         local "insn".
11896         (rs6000_get_some_local_dynamic_name): Likewise.
11897         (output_cbranch): Likewise for param "insn".
11898         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11899         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11900         (rs6000_emit_allocate_stack): Likewise for local "insn".
11901         (load_cr_save): Likewise.
11902         (restore_saved_cr): Likewise.
11903         (restore_saved_lr): Likewise.
11904         (emit_cfa_restores): Likewise.
11905         (rs6000_output_function_epilogue): Likewise for locals "insn" and
11906         "deleted_debug_label".
11907         (rs6000_output_mi_thunk): Likewise for local "insn".
11908         (rs6000_final_prescan_insn): Likewise for param "insn".
11910 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11912         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11913         Strengthen param "insn" from rtx to rtx_insn *.
11914         * config/picochip/picochip.c (picochip_current_prescan_insn):
11915         Likewise for this variable.
11916         (picochip_final_prescan_insn): Likewise for param "insn".
11918 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11920         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11921         from rtx to rtx_insn *.
11922         (pa_output_indirect_call): Likewise.
11923         (pa_adjust_insn_length): Likewise.
11924         (pa_attr_length_millicode_call): Likewise.
11925         (pa_attr_length_call): Likewise.
11926         (pa_attr_length_indirect_call): Likewise.
11928         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11929         "insn".
11930         (pa_attr_length_millicode_call): Likewise.
11931         (pa_attr_length_call): Likewise.
11932         (pa_output_call): Likewise.
11933         (pa_attr_length_indirect_call): Likewise.
11934         (pa_output_indirect_call): Likewise.
11936 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11938         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11939         Strengthen first param from rtx to rtx_insn *.
11940         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11941         param "insn".
11943 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11945         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11946         type from rtx to rtx_insn *.
11947         (mips_expand_call): Likewise.
11948         (mips_adjust_insn_length): Likewise for first param.
11949         (mips_output_conditional_branch): Likewise.
11950         (mips_output_order_conditional_branch): Likewise.
11951         (mips_final_prescan_insn): Likewise.
11953         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11954         rtx_insn * for the SEQUENCE case.
11955         (SEQ_END): Likewise.
11956         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11957         (mips_emit_call_insn): Likewise, also for local "insn".
11958         (mips16_gp_pseudo_reg): Likewise for local "scan".
11959         (mips16_build_call_stub): Likewise for return type and for local
11960         "insn".  Introduce a new local "pattern" so that "insn" can indeed
11961         be an insn.
11962         (mips_expand_call): Strengthen return type and local "insn" from
11963         rtx to rtx_insn *.
11964         (mips_block_move_loop): Strengthen local "label" from rtx to
11965         rtx_code_label *.
11966         (mips_expand_synci_loop): Likewise for locals "label",
11967         "end_label".
11968         (mips_set_frame_expr): Strengthen local "insn" from rtx to
11969         rtx_insn *.
11970         (mips16e_collect_argument_saves): Likewise for locals "insn",
11971         "next".
11972         (mips_find_gp_ref): Likewise for param of callback for "pred"
11973         param, and for local "insn".
11974         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11975         (mips_insn_has_flexible_gp_ref_p): Likewise.
11976         (mips_epilogue_emit_cfa_restores): Likewise for return type and
11977         local "insn".
11978         (mips_epilogue_set_cfa): Likewise for local "insn".
11979         (mips_expand_epilogue): Likewise.
11980         (mips_adjust_insn_length): Likewise for param "insn".
11981         (mips_output_conditional_branch): Likewise.
11982         (mips_output_order_conditional_branch): Likewise.
11983         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11984         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11985         "falu2_turn_enabled_insn".
11986         (mips_builtin_branch_and_move): Strengthen locals "true_label",
11987         "done_label" from rtx to rtx_code_label *.
11988         (struct mips16_constant): Likewise for field "label".
11989         (mips16_add_constant): Likewise for return type.
11990         (mips16_emit_constants_1): Strengthen return type and param "insn"
11991         from rtx to rtx_insn *.
11992         (mips16_emit_constants): Likewise for param "insn".
11993         (mips16_insn_length): Likewise.
11994         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11995         to rtx_code_label *.
11996         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11997         from rtx to rtx_insn *.
11998         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11999         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
12000         (r10k_simplify_address): Strengthen param "insn" and local
12001         "def_insn" from rtx to rtx_insn *.
12002         (r10k_safe_address_p): Strengthen param "insn" from rtx to
12003         rtx_insn *.
12004         (r10k_needs_protection_p_1): Update target type of cast of data
12005         from to rtx to rtx_insn *.
12006         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
12007         rtx * to rtx_insn **.
12008         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
12009         rtx_insn *.
12010         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
12011         (mips_call_expr_from_insn): Likewise for param "insn".
12012         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
12013         (mips_find_pic_call_symbol): Likewise for param "insn".
12014         (mips_annotate_pic_calls): Likewise for local "insn".
12015         (mips_sim_insn): Likewise for this variable.
12016         (struct mips_sim): Likewise for field "insn" within elements of
12017         last_set array.
12018         (mips_sim_wait_reg): Likewise for param "insn".
12019         (mips_sim_wait_regs): Likewise.
12020         (mips_sim_wait_units): Likewise.
12021         (mips_sim_wait_insn): Likewise.
12022         (mips_sim_issue_insn): Likewise.
12023         (mips_sim_finish_insn): Likewise.
12024         (mips_seq_time): Likewise for param "seq" and local "insn".
12025         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
12026         locals "first", "second".
12027         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
12028         "last", "last2", "next".
12029         (mips_avoid_hazard): Likewise for params "after", "insn".
12030         (mips_reorg_process_insns): Likewise for locals "insn",
12031         "last_insn", "subinsn", "next_insn".
12032         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
12033         (mips16_split_long_branches): Likewise for locals "insn" "jump",
12034         "jump_sequence".
12035         (mips_output_mi_thunk): Likewise for local "insn".
12036         (mips_final_prescan_insn): Likewise for param "insn".
12038 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12040         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
12041         Strengthen return type and local "insns" from rtx to rtx_insn *.
12042         (microblaze_legitimize_tls_address): Likewise for local "insns".
12043         (microblaze_block_move_loop): Strengthen local "label" from rtx
12044         to rtx_code_label *.
12045         (microblaze_expand_prologue): Strengthen two locals named "insn"
12046         from rtx to rtx_insn *.
12047         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
12048         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
12049         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
12050         to rtx_code_label *.
12052 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12054         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
12055         param from rtx to rtx_insn *.
12056         (mep_reuse_lo): Likewise for third param.
12057         (mep_use_post_modify_p): Likewise for first param.
12058         (mep_core_address_length): Likewise.
12059         (mep_cop_address_length): Likewise.
12060         (mep_final_prescan_insn): Likewise.
12061         (mep_store_data_bypass_p): Likewise for both params.
12062         (mep_mul_hilo_bypass_p): Likewise.
12063         (mep_ipipe_ldc_p): Likewise for param.
12065         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
12066         (mep_rewrite_mult): Likewise.
12067         (mep_rewrite_mulsi3): Likewise.
12068         (mep_rewrite_maddsi3): Likewise.
12069         (mep_reuse_lo_p_1): Likewise.
12070         (mep_reuse_lo_p): Likewise.
12071         (mep_frame_expr): Likewise.
12072         (mep_make_parallel): Likewise for both params.
12073         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
12074         local "insn".
12075         (mep_use_post_modify_p): Likewise for param "insn".
12076         (mep_core_address_length): Likewise.
12077         (mep_cop_address_length): Likewise.
12078         (mep_reg_set_in_function): Likewise for local "insn".
12079         (mep_asm_without_operands_p): Likewise.
12080         (F): Likewise for return type and param "x".
12081         (add_constant): Likewise for local "insn".
12082         (maybe_dead_move): Likewise for return type and local "insn".
12083         (mep_expand_prologue): Likewise for local "insn".
12084         (mep_final_prescan_insn): Likewise for param "insn".
12085         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
12086         "next", "follow", "x".
12087         (mep_insert_repeat_label_last): Likewise for return type, param
12088         "last_insn", and locals "next", "prev".  Strengthen param "label"
12089         from rtx to rtx_code_label *.
12090         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
12091         rtx_insn *.
12092         (struct mep_doloop_end): Likewise for fields "insn" and
12093         "fallthrough".
12094         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
12095         Strengthen local "repeat_label" from rtx to rtx_code_label *.
12096         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
12097         rtx_insn *.
12098         (mep_invert_branch): Likewise for params "insn" and "after".
12099         (mep_reorg_erepeat): Likewise for param "insns" and locals
12100         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
12101         "l" from rtx to rtx_code_label *.
12102         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
12103         from rtx to rtx_insn *.
12104         (mep_reorg_addcombine): Likewise for param "insns" and locals
12105         "i", "n".
12106         (add_sp_insn_p): Likewise for param "insn".
12107         (mep_reorg_noframe): Likewise for param "insns" and locals
12108         "start_frame_insn", "end_frame_insn", "next".
12109         (mep_reorg): Likewise for local "insns".
12110         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
12111         cast.
12112         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
12113         (mep_mul_hilo_bypass_p): Likewise.
12114         (mep_ipipe_ldc_p): Likewise for param "insn".
12115         (mep_make_bundle): Likewise for return type, param "cop" and local
12116         "insn", splitting out the latter into a new local "seq" for when it
12117         is a SEQUENCE rather than an insn.
12118         (core_insn_p): Likewise for param "insn".
12119         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
12120         "last", "first", "note", "prev", "core_insn".
12122 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12124         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
12125         rtx to rtx_insn *.
12126         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
12127         (m68k_final_prescan_insn): Likewise for first param.
12129         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
12130         (m68k_set_frame_related): Likewise for param "insn".
12131         (output_btst): Likewise for param "insn".
12132         (m68k_final_prescan_insn): Likewise.
12133         (m68k_move_to_reg): Likewise for local "insn".
12134         (m68k_call_tls_get_addr): Likewise for local "insns".
12135         (m68k_call_m68k_read_tp): Likewise.
12136         (strict_low_part_peephole_ok): Likewise for param "first_insn".
12137         (m68k_output_mi_thunk): Likewise for local "insn".
12139 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12141         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
12142         first param from rtx to rtx_insn *.
12143         (iq2000_adjust_insn_length): Likewise.
12144         (iq2000_output_conditional_branch): Likewise.
12145         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
12146         "insn" and local "nop_insn".
12147         (iq2000_annotate_frame_insn): Likewise for param "insn".
12148         (iq2000_expand_prologue): Likewise for both locals "insn".
12149         (iq2000_adjust_insn_length): Likewise for param "insn".
12150         (iq2000_output_conditional_branch): Likewise.
12152 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12154         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
12155         "insns" from rtx to rtx_insn *.
12156         (ia64_emit_cond_move): Likewise for locals "insn", "first".
12157         (struct spill_fill_data): Likewise for field "init_after" and for
12158         elements of array field "prev_insn".
12159         (spill_restore_mem): Likewise for locals "insn", "first".
12160         (do_spill): Likewise for local "insn".
12161         (do_restore): Likewise.
12162         (ia64_expand_prologue): Likewise.
12163         (ia64_expand_epilogue): Likewise.
12164         (emit_insn_group_barriers): Likewise for locals "insn",
12165         "last_label".
12166         (emit_all_insn_group_barriers): Likewise for locals "insn",
12167         "last".
12168         (dfa_stop_insn): Likewise for this global.
12169         (dfa_pre_cycle_insn): Likewise.
12170         (ia64_nop): Likewise.
12171         (final_emit_insn_group_barriers): Likewise for locals "insn",
12172         "last".
12173         (emit_predicate_relation_info): Likewise for locals "head", "n",
12174         "insn", "b", "a".
12175         (ia64_reorg): Likewise for local "insn".
12176         (ia64_output_mi_thunk): Likewise.
12177         (expand_vec_perm_interleave_2): Likewise for local "seq".
12179 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12181         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
12182         param 1 "insn" from rtx to rtx_insn *.
12183         (ix86_use_lea_for_mov): Likewise.
12184         (ix86_avoid_lea_for_addr): Likewise.
12185         (ix86_split_lea_for_addr): Likewise.
12186         (ix86_lea_for_add_ok): Likewise.
12187         (ix86_output_call_insn): Likewise.
12189         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
12190         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
12191         (ix86_output_function_epilogue): Likewise for locals "insn",
12192         "deleted_debug_label".
12193         (legitimize_tls_address): Likewise for local "insn".
12194         (get_some_local_dynamic_name): Likewise.
12195         (increase_distance): Likewise for params "prev", "next".
12196         (distance_non_agu_define_in_bb): Likewise for params "insn",
12197         "start" and locals "prev", "next".
12198         (distance_non_agu_define): Likewise for param "insn".
12199         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
12200         locals "next", "prev".
12201         (distance_agu_use): Likewise for param "insn".
12202         (ix86_lea_outperforms): Likewise.
12203         (ix86_ok_to_clobber_flags): Likewise.
12204         (ix86_avoid_lea_for_add): Likewise.
12205         (ix86_use_lea_for_mov): Likewise.
12206         (ix86_avoid_lea_for_addr): Likewise.
12207         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
12208         (ix86_split_lea_for_addr): Likewise for param "insn".
12209         (ix86_lea_for_add_ok): Likewise for param "insn".
12210         (ix86_expand_carry_flag_compare): Likewise for local
12211         "compare_seq".
12212         (ix86_expand_int_movcc): Likewise.
12213         (ix86_output_call_insn): Likewise for param "insn".
12214         (ix86_output_call_insn): Likewise for local "i".
12215         (x86_output_mi_thunk): Introduce local "insn", using it in place
12216         of "tmp" when dealing with insns.
12217         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
12218         "start".
12219         (ix86_pad_returns): Likewise for locals "ret", "prev".
12220         (ix86_count_insn_bb): Likewise for local "insn".
12221         (ix86_pad_short_function): Likewise for locals "ret", "insn".
12222         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
12223         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
12224         (expand_vec_perm_interleave2): Likewise for local "seq".
12225         (expand_vec_perm_vperm2f128_vblend): Likewise.
12226         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
12227         call to for_each_rtx with for_each_rtx_in_insn.
12229 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12231         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
12232         "label" from rtx to rtx_code_label *.
12233         (ix86_expand_prologue): Likewise.
12234         (ix86_expand_split_stack_prologue): Likewise for locals "label",
12235         "varargs_label".
12236         (ix86_split_idivmod): Likewise for locals "end_label" and
12237         "qimode_label".
12238         (ix86_expand_branch): Likewise for local "label2".
12239         (ix86_expand_aligntest): Likewise for return type and local "label".
12240         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
12241         "top_label".
12242         (expand_movmem_epilogue): Likewise for the various locals named
12243         "label".
12244         (expand_setmem_epilogue): Likewise.
12245         (expand_small_movmem_or_setmem): Likewise for local "label".
12246         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12247         Strengthen param "done_label" from rtx * to rtx_code_label **.
12248         Strengthen locals "loop_label" and "label" from rtx to
12249         rtx_code_label *.
12250         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12251         Likewise for locals "loop_label", "label".
12252         (ix86_expand_set_or_movmem): Likewise for locals "label",
12253         "jump_around_label", "hot_label".
12254         (ix86_expand_strlensi_unroll_1): Likewise for locals
12255         "align_2_label", align_3_label", "align_4_label", "end_0_label",
12256         "end_2_label".
12257         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
12258         (void ix86_emit_i387_log1p): Likewise for locals "label1",
12259         "label2", "jump_label".
12260         (ix86_expand_sse_compare_and_jump): Likewise for return type and
12261         local "label".
12262         (ix86_expand_lfloorceil): Likewise for local "label".
12263         (ix86_expand_rint): Likewise.
12264         (ix86_expand_floorceildf_32): Likewise.
12265         (ix86_expand_floorceil): Likewise.
12266         (ix86_expand_rounddf_32): Likewise.
12267         (ix86_expand_trunc): Likewise.
12268         (ix86_expand_truncdf_32): Likewise.
12269         (ix86_expand_round): Likewise.
12271 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12273         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
12274         first param from rtx to rtx_insn *.
12275         (h8300_insn_length_from_table): Likewise.
12276         * config/h8300/h8300.c (F): Likewise for return type and param
12277         "x".
12278         (Fpa): Add a checked cast to rtx_insn *.
12279         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
12280         rtx_insn *.
12281         (final_prescan_insn): Likewise for param "insn".
12282         (h8300_binary_length): Likewise.
12283         (h8300_insn_length_from_table): Likewise.
12285 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12287         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
12288         Strengthen first param "insn" from rtx to rtx_insn *.
12290         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
12291         Likewise.
12292         (frame_insn): Likewise for return type.  Introduce local "insn"
12293         for use in place of local "x" for use as an rtx_insn *.
12294         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
12295         (epiphany_expand_prologue): Likewise for local "insn".
12296         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
12297         * config/epiphany/resolve-sw-modes.c
12298         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
12299         "seq".
12301 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12303         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
12304         param from rtx to rtx_insn *.
12305         (c6x_final_prescan_insn): Likewise for first param.
12307         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
12308         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
12309         (c6x_expand_compare): Strengthen local "insns" from rtx to
12310         rtx_insn *.
12311         (c6x_get_unit_specifier): Likewise for param "insn".
12312         (c6x_print_unit_specifier_field): Likewise.
12313         (c6x_final_prescan_insn): Likewise.
12314         (emit_add_sp_const): Likewise for local "insn".
12315         (c6x_expand_prologue): Likewise.
12317 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12319         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
12320         param 1 from rtx to rtx_insn *.
12321         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
12322         the various locals named "insn".
12323         (expand_epilogue_reg_restore): Likewise.
12324         (frame_related_constant_load): Likewise.
12325         (add_to_reg): Likewise.
12326         (emit_link_insn): Likewise.
12327         (do_link): Likewise.
12328         (expand_interrupt_handler_prologue): Likewise.
12329         (branch_dest): Likewise for param "branch".
12330         (asm_conditional_branch): Likewise for param "insn".
12331         (gen_one_bundle): Likewise for elements of param "slot" and local
12332         "t".
12333         (bfin_gen_bundles): Likewise for locals "insn", "next" and
12334         elements of local "slot".
12335         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
12336         "queue", "next_queue", "prev".
12337         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
12338         (add_sched_insns_for_speculation): Likewise for local "insn".
12340 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12342         * config/avr/avr-protos.h (output_movqi): Strengthen first param
12343         from rtx to rtx_insn *.
12344         (output_movhi): Likewise.
12345         (output_movsisf): Likewise.
12346         (avr_out_tstsi): Likewise.
12347         (avr_out_tsthi): Likewise.
12348         (avr_out_tstpsi): Likewise.
12349         (avr_out_compare): Likewise.
12350         (avr_out_compare64): Likewise.
12351         (avr_out_movpsi): Likewise.
12352         (ashlqi3_out): Likewise.
12353         (ashlhi3_out): Likewise.
12354         (ashlsi3_out): Likewise.
12355         (ashrqi3_out): Likewise.
12356         (ashrhi3_out): Likewise.
12357         (ashrsi3_out): Likewise.
12358         (lshrqi3_out): Likewise.
12359         (lshrhi3_out): Likewise.
12360         (lshrsi3_out): Likewise.
12361         (avr_out_ashlpsi3): Likewise.
12362         (avr_out_ashrpsi3): Likewise.
12363         (avr_out_lshrpsi3): Likewise.
12364         (avr_out_fract): Likewise.
12365         (avr_out_sbxx_branch): Likewise.
12366         (avr_out_round): Likewise.
12367         (avr_out_xload): Likewise.
12368         (avr_out_movmem): Likewise.
12369         (adjust_insn_length): Likewise.
12370         (avr_out_lpm): Likewise.
12371         (reg_unused_after): Likewise.
12372         (_reg_unused_after): Likewise.
12373         (avr_jump_mode): Likewise for second param.
12374         (jump_over_one_insn): Likewise for first param.
12375         (avr_final_prescan_insn): Likewise.
12376         (out_shift_with_cnt): Likewise for second param.
12378         * config/avr/avr.c (get_sequence_length): Likewise for param
12379         "insns" and local "insn".
12380         (emit_push_byte): Likewise for local "insn".
12381         (emit_push_sfr): Likewise.
12382         (avr_prologue_setup_frame): Likewise for locals "insn",
12383         "fp_plus_insns", "sp_plus_insns".
12384         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
12385         "sp_plus_insns".
12386         (avr_jump_mode): Likewise for param "insn".
12387         (avr_final_prescan_insn): Likewise.
12388         (avr_find_unused_d_reg): Likewise.
12389         (avr_out_lpm_no_lpmx): Likewise.
12390         (avr_out_lpm): Likewise.
12391         (avr_out_xload): Likewise.
12392         (output_movqi): Likewise.
12393         (output_movhi): Likewise.
12394         (out_movqi_r_mr): Likewise.
12395         (out_movhi_r_mr): Likewise.
12396         (out_movsi_r_mr): Likewise.
12397         (out_movsi_mr_r): Likewise.
12398         (output_movsisf): Likewise.
12399         (avr_out_load_psi): Likewise.
12400         (avr_out_store_psi): Likewise.
12401         (avr_out_movpsi): Likewise.
12402         (out_movqi_mr_r): Likewise.
12403         (avr_out_movhi_mr_r_xmega): Likewise.
12404         (out_movhi_mr_r): Likewise.
12405         (compare_condition): Likewise for param "insn" and local "next".
12406         (compare_sign_p): Likewise for param "insn".
12407         (compare_diff_p): Likewise.
12408         (compare_eq_p): Likewise.
12409         (avr_out_compare): Likewise.
12410         (avr_out_compare64): Likewise.
12411         (avr_out_tsthi): Likewise.
12412         (avr_out_tstpsi): Likewise.
12413         (avr_out_tstsi): Likewise.
12414         (out_shift_with_cnt): Likewise.
12415         (ashlqi3_out): Likewise.
12416         (ashlhi3_out): Likewise.
12417         (avr_out_ashlpsi3): Likewise.
12418         (ashlsi3_out): Likewise.
12419         (ashrqi3_out): Likewise.
12420         (ashrhi3_out): Likewise.
12421         (avr_out_ashrpsi3): Likewise.
12422         (ashrsi3_out): Likewise.
12423         (lshrqi3_out): Likewise.
12424         (lshrhi3_out): Likewise.
12425         (avr_out_lshrpsi3): Likewise.
12426         (lshrsi3_out): Likewise.
12427         (avr_out_fract): Likewise.
12428         (avr_out_round): Likewise.
12429         (avr_adjust_insn_length): Likewise.
12430         (reg_unused_after): Likewise.
12431         (_reg_unused_after): Likewise.
12432         (avr_compare_pattern): Likewise.
12433         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
12434         and locals "branch1", "branch2", "insn2", "jump".
12435         (avr_reorg): Likewise for local "insn".
12436         (avr_2word_insn_p): Likewise for param "insn".
12437         (jump_over_one_insn_p): Likewise.
12438         (avr_out_sbxx_branch): Likewise.
12439         (avr_out_movmem): Likewise.
12441 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12443         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
12444         param from rtx to rtx_insn *.
12445         (thumb1_final_prescan_insn): Likewise.
12446         (thumb2_final_prescan_insn): Likewise.
12448         * config/arm/arm.c (emit_set_insn): Strengthen return type from
12449         rtx to rtx_insn *.
12450         (struct minipool_node): Likewise for field "insn".
12451         (dump_minipool): Likewise for param "scan".
12452         (create_fix_barrier): Likewise for local "from".  Strengthen local
12453         "label" from rtx to rtx_code_label *.
12454         (push_minipool_barrier): Strengthen param "insn" from rtx to
12455         rtx_insn *.
12456         (push_minipool_fix): Likewise.
12457         (note_invalid_constants): Likewise.
12458         (thumb2_reorg): Likewise for local "insn".
12459         (arm_reorg): Likewise.
12460         (thumb2_final_prescan_insn): Likewise for param
12461         "insn" and local "first_insn".
12462         (arm_final_prescan_insn): Likewise for param "insn" and locals
12463         "start_insn", "this_insn".
12464         (arm_debugger_arg_offset): Likewise for param "insn".
12465         (thumb1_emit_multi_reg_push): Likewise for return type and local
12466         "insn".
12467         (thumb1_final_prescan_insn): Likewise for param "insn".
12468         (thumb_far_jump_used_p): Likewise for local "insn".
12469         (thumb1_expand_prologue): Likewise.
12470         (arm_expand_epilogue_apcs_frame): Likewise.
12471         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
12472         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
12473         from rtx to rtx_code_label *.
12474         (arm_split_atomic_op): Likewise for local "label".
12475         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
12477 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12479         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
12480         first param from rtx to rtx_insn *.
12481         (arc_verify_short): Likewise.
12482         (arc_short_long): Likewise.
12483         (arc_need_delay): Likewise.
12485         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
12486         "target_insn".
12487         (arc_ccfsm_advance): Likewise for param "insn" and locals
12488         "start_insn", "this_insn".
12489         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
12490         (arc_ccfsm_post_advance): Likewise for param "insn".
12491         (arc_next_active_insn): Likewise for return type and param "insn".
12492         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
12493         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
12494         (output_short_suffix): Likewise for local "insn".
12495         (arc_final_prescan_insn): Likewise for param "insn".  Remove
12496         now-redundant checked cast.
12497         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
12498         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
12499         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
12500         for use where lc_set became an insn.
12501         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
12502         rtx to rtx_insn *.
12503         (arc_get_insn_variants): Likewise for local "prev".
12504         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
12505         "next".
12506         (arc_predicate_delay_insns): Likewise for local "insn".
12507         (arc_pad_return): Likewise for local "prev".  For now, add a
12508         checked cast when extracting the insn from "final_sequence".
12509         (arc_short_long): Likewise for param "insn".
12510         (arc_need_delay): Likewise for param "insn" and local "next".
12511         (arc_label_align): Likewise for locals "prev", "next".
12513 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12515         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
12516         "insn" from rtx to rtx_insn *.
12517         (alpha_gp_save_rtx): Likewise for local "seq".
12518         (alpha_instantiate_decls): Likewise for local "top".
12519         (get_some_local_dynamic_name): Likewise for local "insn".
12520         (alpha_does_function_need_gp): Likewise.
12521         (set_frame_related_p): Likewise for return type and for locals
12522         "seq" and "insn".
12523         (emit_frame_store_1): Likewise for local "insn".
12524         (alpha_expand_prologue): Likewise for locals "insn", "seq".
12525         (alpha_end_function): Likewise for local "insn".
12526         (alpha_output_mi_thunk_osf): Likewise.
12527         (alphaev4_insn_pipe): Likewise for param "insn".
12528         (alphaev5_insn_pipe): Likewise.
12529         (alphaev4_next_group): Likewise for return type and param 1
12530         "insn".
12531         (alphaev5_next_group): Likewise.
12532         (alpha_align_insns_1): Likewise for return type and param 1 of
12533         callback param "next_group", and for locals "i", "next", "prev",
12534         "where", "where2", "insn".
12536 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12538         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
12539         rather than modifying the stmt.
12541 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12543         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
12544         cgraph_state conversion.
12546 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12548         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12549         Strengthen local "insns" from rtx to rtx_insn *.
12550         (aarch64_set_frame_expr): Likewise for local "insn".
12551         (aarch64_save_or_restore_fprs): Likewise.
12552         (aarch64_save_or_restore_callee_save_registers): Likewise.
12553         (aarch64_expand_prologue): Likewise.
12554         (aarch64_expand_epilogue): Likewise.
12555         (aarch64_output_mi_thunk): Likewise.
12556         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
12557         "label2" from rtx to rtx_code_label *.
12558         (aarch64_split_atomic_op): Likewise for local "label".
12560 2014-08-25  Martin Liska  <mliska@suse.cz>
12562         * cgraph.h (symtab_node):
12563         (bool needed_p (void)): created from decide_is_symbol_needed
12564         (bool referred_to_p (void)): created from referred_to_p
12565         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
12566         * cgraph.h (cgraph_node):
12567         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
12568         (void expand (void)): created from expand_function
12569         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
12570         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
12571         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
12572         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
12573         * cgraph.h (varpool_node):
12574         (static void add (tree decl): created from varpool_add_new_variable
12575         * cgraph.h (cgraph_edge):
12576         void remove (void);
12577         (void remove_caller (void)): created from cgraph_edge_remove_caller
12578         (void remove_callee (void)): created from cgraph_edge_remove_callee
12579         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
12580           created from cgraph_set_call_stmt
12581         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
12582         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
12583         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
12584           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
12585         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
12586           created from cgraph_speculative_call_info
12587         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
12588           int freq_scale, bool update_original)): created from cgraph_clone_edge
12589         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
12590         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
12591         (bool recursive_p (void)): created from cgraph_edge_recursive_p
12592         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
12593         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
12594         (static void rebuild_references (void)): created from cgraph_rebuild_references
12595         * cgraph.h (symbol_table):
12596         (create_reference): renamed from add_reference
12597         (maybe_create_reference): renamed from maybe_add_reference
12598         (void register_symbol (symtab_node *node)): new function
12599         (void clear_asm_symbols (void)): new function
12600         (void unregister (symtab_node *node)): new function
12601         (void release_symbol (cgraph_node *node, int uid)): new function
12602         (cgraph_node * allocate_cgraph_symbol (void)): new function
12603         (void initialize (void)): created from cgraph_init
12604         (symtab_node *first_symbol (void)):new function
12605         (asm_node *first_asm_symbol (void)):new function
12606         (symtab_node *first_defined_symbol (void)):new function
12607         (varpool_node *first_variable (void)):new function
12608         (varpool_node *next_variable (varpool_node *node)):new function
12609         (varpool_node *first_static_initializer (void)):new function
12610         (varpool_node *next_static_initializer (varpool_node *node)):new function
12611         (varpool_node *first_defined_variable (void)):new function
12612         (varpool_node *next_defined_variable (varpool_node *node)):new function
12613         (cgraph_node *first_defined_function (void)):new function
12614         (cgraph_node *next_defined_function (cgraph_node *node)):new function
12615         (cgraph_node *first_function (void)):new function
12616         (cgraph_node *next_function (cgraph_node *node)):new function
12617         (cgraph_node *first_function_with_gimple_body (void)):new function
12618         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
12619         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
12620           created from symtab_remove_unreachable_nodes
12621         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12622         (void process_new_functions (void)): created from cgraph_process_new_functions
12623         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12624         (bool output_variables (void)): created from varpool_node::output_variables
12625         (void output_asm_statements (void)): created from output_asm_statements
12626         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12627         (void compile (void)): created from compile
12628         (void output_weakrefs (void)): created from output_weakrefs
12629         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12630         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12631           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12632         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12633         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12634           created from cgraph_next_function_with_gimple_body
12635         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12636           created from cgraph_remove_edge_removal_hook
12637         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12638           created from cgraph_add_node_removal_hook
12639         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12640           created from cgraph_remove_node_removal_hook
12641         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12642           created from varpool_add_node_removal_hook
12643         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12644           created from varpool_remove_node_removal_hook
12645         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12646           created from cgraph_add_function_insertion_hook
12647         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12648           created from cgraph_remove_function_insertion_hook
12649         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12650           created from varpool_add_variable_insertion_hook
12651         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12652           created from varpool_remove_variable_insertion_hook
12653         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12654           created from cgraph_add_edge_duplication_hook
12655         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12656           created from cgraph_remove_edge_duplication_hook
12657         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12658           created from cgraph_add_node_duplication_hook
12659         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12660           created from cgraph_remove_node_duplication_hook
12661         (void call_edge_removal_hooks (cgraph_edge *e)):
12662           created from cgraph_call_edge_removal_hooks
12663         (void call_cgraph_insertion_hooks (cgraph_node *node)):
12664           created from call_function_insertion_hooks
12665         (void call_cgraph_removal_hooks (cgraph_node *node)):
12666           created from cgraph_call_node_removal_hooks
12667         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12668           created from cgraph_node::call_duplication_hooks
12669         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12670           created from cgraph_call_edge_duplication_hooks
12671         (void call_varpool_removal_hooks (varpool_node *node)):
12672           created from varpool_call_node_removal_hooks
12673         (void call_varpool_insertion_hooks (varpool_node *node)):
12674           created from varpool_call_variable_insertion_hooks
12675         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12676           created from insert_to_assembler_name_hash
12677         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12678           created from unlink_from_assembler_name_hash
12679         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12680           created from symtab_prevail_in_asm_name_hash
12681         (void symtab_initialize_asm_name_hash (void)):
12682           created from symtab_initialize_asm_name_hash
12683         (void change_decl_assembler_name (tree decl, tree name)):
12684           created from change_decl_assembler_name
12685         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12686         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12687           created from decl_assembler_name_hash
12688         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12689           created from decl_assembler_name_equal
12690         (static hashval_t hash_node_by_assembler_name (const void *p)):
12691           created from hash_node_by_assembler_name
12692         (static int eq_assembler_name (const void *p1, const void *p2)):
12693           created from eq_assembler_name
12695 2014-08-25  Marek Polacek  <polacek@redhat.com>
12697         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12699 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
12701         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12702         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12703         SWI1248_AVX512BW mode iterator.
12705 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12707         PR target/62111
12708         * config/sh/predicates.md (general_extend_operand): Disable
12709         TRUNCATE before reload completes.
12711 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
12713         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12715 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
12717         PR target/61996
12718         * config/sh/sh.opt (musermode): Allow negative form.
12719         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12720         targets that don't support it.
12721         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12722         Document -mno-usermode option.
12724 2014-08-24  Kito Cheng  <kito@0xlab.org>
12726         * system.h (CALLER_SAVE_PROFITABLE): Poison.
12727         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12728         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12729         * doc/tm.texi: Regenerate.
12731 2014-08-24  Kito Cheng  <kito@0xlab.org>
12733         * ira.c: Fix typo in comment.
12735 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
12737         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12738         Deprecate c++1y. Change language to reflect greater confidence in C++14.
12740 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
12742         PR target/62038
12743         * config/pa/pa.c (pa_output_function_epilogue): Don't set
12744         last_address when the current function is a thunk.
12745         (pa_asm_output_mi_thunk): When we don't have named sections or they
12746         are not being used, check that thunk can reach the stub table with a
12747         short branch.
12749 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12751         * web.c (union_match_dups): Strengthen param "insn" from rtx to
12752         rtx_insn *.
12753         (pass_web::execute): Likewise for local "insn".
12755 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12757         * var-tracking.c (struct micro_operation_def): Strengthen field
12758         "insn" from rtx to rtx_insn *.
12759         (struct emit_note_data_def): Likewise.
12760         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12761         (vt_stack_adjustments): Likewise for local "insn".
12762         (adjust_insn): Likewise for param "insn".
12763         (val_store): Likewise.
12764         (val_resolve): Likewise.
12765         (struct count_use_info): Likewise for field "insn".
12766         (log_op_type): Likewise for param "insn".
12767         (reverse_op): Likewise.
12768         (prepare_call_arguments): Likewise.
12769         (add_with_sets):  The initial param takes an insn, but we can't
12770         yet strengthen it from rtx to rtx_insn * since it's used as a
12771         cselib_record_sets_hook callback.  For now rename initial param
12772         from "insn" to "uncast_insn", and introduce a local "insn" of
12773         the stronger rtx_insn * type, with a checked cast.
12774         (compute_bb_dataflow): Strengthen local "insn" from rtx to
12775         rtx_insn *.
12776         (emit_note_insn_var_location): Likewise.
12777         (emit_notes_for_changes): Likewise.
12778         (emit_notes_for_differences): Likewise.
12779         (next_non_note_insn_var_location): Likewise for return type and
12780         for param "insn".
12781         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12782         (vt_initialize): Likewise for local "insn".
12783         (delete_debug_insns): Likewise for locals "insn" and "next".
12785 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12787         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12788         rtx_insn *.
12789         (mark_constant_pool): Likewise for local "insn".
12791 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12793         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12794         rtx to rtx_insn *.
12795         (dead_debug_promote_uses): Likewise.
12796         (dead_debug_insert_temp): Likewise.
12798 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12800         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12801         from const_rtx to const rtx_insn *.
12802         (store_killed_after): Likewise.  Strengthen locals "last", "act"
12803         from rtx to rtx_insn *.
12804         (store_killed_before): Strengthen param "insn" from const_rtx to
12805         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
12806         (find_moveable_store): Strengthen param "insn" from rtx to
12807         rtx_insn *.
12808         (compute_store_table): Likewise for local "insn".
12809         (insert_insn_start_basic_block): Likewise for param "insn" and
12810         locals "prev", "before", "insn".
12811         (insert_store): For now, add a checked cast to rtx_insn * on the
12812         result of gen_move_insn.
12813         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12814         to rtx_insn *.
12815         (replace_store_insn): Likewise.  For now, add a checked cast to
12816         rtx_insn * on the result of gen_move_insn.
12818 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12820         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12821         rtx_insn *.
12822         (expand_sjlj_dispatch_table): Likewise.
12824 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12826         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12827         "insn" from rtx to rtx_insn *.
12829 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12831         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12832         "insn" from rtx to rtx_insn *.
12833         (dup_block_and_redirect): Likewise for param 3 "before".
12835         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12836         from rtx to rtx_insn *.
12837         (move_insn_for_shrink_wrap): Likewise.
12838         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12839         (dup_block_and_redirect): Likewise for param "before" and local
12840         "insn".
12841         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12842         "end".
12843         (convert_to_simple_return): Likewise for local "start".
12845         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12846         Strengthen local "insn" from rtx to rtx_insn *, for use when
12847         invoking requires_stack_frame_p.
12849 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12851         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12852         rtx_insn *.
12853         (speculate_expr): Likewise for locals "orig_insn_rtx",
12854         "spec_insn_rtx".
12855         (eq_transformed_insns): Likewise for locals "i1", "i2".
12856         (check_for_new_jump): Likewise for return type and local "end".
12857         (find_new_jump): Likewise for return type and local "jump".
12858         (sel_split_edge): Likewise for local "jump".
12859         (sel_create_recovery_block): Likewise.
12860         (sel_redirect_edge_and_branch_force): Likewise.
12861         (sel_redirect_edge_and_branch): Likewise.
12863 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12865         * sel-sched.c (substitute_reg_in_expr): Strengthen local
12866         "new_insn" from rtx to rtx_insn *.
12867         (create_insn_rtx_with_rhs): Likewise for return type and for local
12868         "insn_rtx".
12869         (create_insn_rtx_with_lhs): Likewise.
12870         (create_speculation_check): Likewise for local "insn_rtx".
12871         (implicit_clobber_conflict_p): Likewise for local "insn".
12872         (get_expr_cost): Likewise.
12873         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12874         (move_cond_jump): Likewise for locals "next", "prev", "link",
12875         "head", "from", "to".
12877 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12879         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12880         "next" from rtx to rtx_insn *.
12881         (find_conditional_protection): Likewise for local "next".
12882         (is_conditionally_protected): Likewise for local "insn1".
12883         (is_pfree): Likewise for locals "insn1", "insn2".
12885 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12887         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12888         from rtx to rtx_insn *.
12890         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12891         locals "insn1", "insn2" from rtx to rtx_insn *.
12892         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12893         locals "insn", "prev", "last_jump", "next_tail".
12894         (schedule_ebb): Likewise for params "head", "tail".
12895         (schedule_ebbs): Likewise for locals "tail", "head".
12897         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12898         to rtx_insn on "last_insn" in one of the invocations of
12899         schedule_ebb.
12901 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12903         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12904         "elem", "insn" from rtx to rtx_insn *.
12905         (change_spec_dep_to_hard): Likewise.
12906         (get_back_and_forw_lists): Likewise for local "con".
12907         (sd_add_dep): Likewise for locals "elem", "insn".
12908         (sd_resolve_dep): Likewise for locals "pro", "con".
12909         (sd_unresolve_dep): Likewise.
12910         (sd_delete_dep): Likewise.
12911         (chain_to_prev_insn): Likewise for local "pro".
12912         (find_inc): Likewise for locals "pro", "con".
12914 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12916         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12917         to rtx_insn *.
12918         (reg_set_between_p): Strengthen local "insn" from const_rtx to
12919         const rtx_insn *.
12920         (modified_between_p): Strengthen local "insn" from rtx to
12921         rtx_insn *.
12922         (remove_reg_equal_equiv_notes_for_regno): Likewise.
12923         (keep_with_call_p): Strengthen local "i2" from const_rtx to
12924         const rtx_insn *.
12926 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12928         * resource.c (next_insn_no_annul): Strengthen local "next" from
12929         rtx to rtx_insn *.
12930         (mark_referenced_resources): Likewise for local "insn".
12932 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12934         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12935         to rtx_insn *.
12936         (find_reloads): Likewise for param 1.
12937         (subst_reloads): Likewise for sole param.
12938         (find_equiv_reg): Likwise for param 2.
12939         (regno_clobbered_p): Likwise for param 2.
12940         (reload): Likewise for param 1.
12942         * caller-save.c (save_call_clobbered_regs): Strengthen local
12943         "insn" from rtx to rtx_insn *.
12944         (insert_one_insn): Likewise for local "insn".
12946         * reload.c (this_insn): Likewise for this global.
12947         (find_reloads): Likewise for param "insn".
12948         (find_reloads_toplev): Likewise.
12949         (find_reloads_address): Likewise.
12950         (subst_reg_equivs): Likewise.
12951         (update_auto_inc_notes): Likewise.
12952         (find_reloads_address_1): Likewise.
12953         (find_reloads_subreg_address): Likewise.
12954         (subst_reloads): Likewise.
12955         (find_equiv_reg): Likewise, also for local "p".
12956         (regno_clobbered_p): Likewise for param "insn".
12958         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12959         array.
12960         (spill_reg_store): Likewise for the elements of this array.
12961         (remove_init_insns): Likewise for local "equiv_insn".
12962         (will_delete_init_insn_p): Likewise for param "insn".
12963         (reload): Likewise for param ""first" and local "insn".
12964         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12965         rtx_insn *.
12966         (calculate_elim_costs_all_insns): Likewise.
12967         (delete_caller_save_insns): Likewise.
12968         (spill_failure): Likewise for param "insn".
12969         (delete_dead_insn): Likewise.
12970         (set_label_offsets): Likewise.
12971         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12972         "prev_insn".
12973         (elimination_costs_in_insn): Likewise for param "insn".
12974         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12975         when referring to an insn.
12976         (set_initial_label_offsets): Likewise.
12977         (set_offsets_for_label): Strengthen param "insn" from rtx to
12978         rtx_insn *.
12979         (init_eliminable_invariants): Likewise for param "first" and local
12980         "insn".
12981         (fixup_eh_region_note): Likewise for param "insn".
12982         (reload_as_needed): Likewise for locals "prev", "insn",
12983         "old_next", "old_prev", "next".
12984         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12985         "last".
12986         (reload_inheritance_insn): Strengthen elements of this array from
12987         rtx to rtx_insn *.
12988         (failed_reload): Likewise for param "insn".
12989         (choose_reload_regs): Likewise for local "insn".  Replace use of
12990         NULL_RTX with NULL when referring to an insn.
12991         (input_reload_insns): Strengthen elements of this array from rtx
12992         to rtx_insn *.
12993         (other_input_address_reload_insns): Likewise for this global.
12994         (other_input_reload_insns): Likewise for this global.
12995         (input_address_reload_insns): Likwise for the elements of this
12996         array.
12997         (inpaddr_address_reload_insns): Likwise for the elements of this
12998         array.
12999         (output_reload_insns): Likewise for the elements of this array.
13000         (output_address_reload_insns): Likewise for the elements of this
13001         array.
13002         (outaddr_address_reload_insns): Likewise for the elements of this
13003         array.
13004         (operand_reload_insns): Likewise for this global.
13005         (other_operand_reload_insns): Likewise for this global.
13006         (other_output_reload_insns): Likewise for the elements of this
13007         array.
13008         (new_spill_reg_store): Likewise for the elements of this
13009         array.
13010         (emit_input_reload_insns): Likewise for locals "insn", "temp".
13011         Strengthen local "where" from rtx * to rtx_insn **.
13012         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
13013         from rtx to rtx_insn *.
13014         (do_input_reload): Likewise for local "insn".
13015         (do_output_reload): Likewise for local "insn".
13016         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
13017         (emit_insn_if_valid_for_reload): Likewise for return type and local
13018         "last".  Add checked cast to rtx_insn when returning "insn" since
13019         this has been through emit_insn.
13020         (gen_reload): Strengthen return type and locals "last", "insn", "set"
13021         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
13022         returning "insn" since it's been through
13023         emit_insn_if_valid_for_reload at this point.
13024         (delete_output_reload): Strengthen param "insn" and locals
13025         "output_reload_insn", "i2" from rtx to rtx_insn *.
13026         (delete_address_reloads): Likewise for params "dead_insn",
13027         "current_insn" and locals "prev", "next".
13028         (delete_address_reloads_1): Likewise for params "dead_insn",
13029         "current_insn" and locals "prev", "i2".
13030         (inc_for_reload): Likewise for locals "last", "add_insn".
13031         (add_auto_inc_notes): Strengthen param "insn" from rtx to
13032         rtx_insn *.
13034         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
13035         param of this duplicate of the prototype from reload.h
13037 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13039         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
13040         rtx to rtx_insn *.
13041         (regstat_bb_compute_calls_crossed): Likewise.
13043 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13045         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
13046         to rtx_insn *.
13047         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
13048         with an insn.
13049         (regrename_analyze): Strengthen local "insn" from rtx to
13050         rtx_insn *.
13051         (scan_rtx_reg): Likewise for param "insn".
13052         (scan_rtx_address): Likewise.
13053         (scan_rtx): Likewise.
13054         (restore_operands): Likewise.
13055         (record_out_operands): Likewise.
13056         (build_def_use): Likewise for local "insn".  Replace use of
13057         NULL_RTX with NULL when dealing with an insn.
13059 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13061         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
13062         * reginfo.c (reg_scan): Likewise, also for local "insn".
13063         (reg_scan_mark_refs): Likewise for param "insn".
13064         (init_subregs_of_mode): Likewise for local "insn".
13066 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13068         * regcprop.c (struct queued_debug_insn_change): Strengthen field
13069         "insn" from rtx to rtx_insn *.
13070         (replace_oldest_value_reg): Likewise for param "insn".
13071         (replace_oldest_value_addr): Likewise.
13072         (replace_oldest_value_mem): Likewise.
13073         (apply_debug_insn_changes): Likewise for local "last_insn".
13074         (copyprop_hardreg_forward_1): Likewise for local "insn".
13076 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13078         * reg-stack.c (next_flags_user): Strengthen return type and param
13079         "insn" from rtx to rtx_insn *.
13080         (straighten_stack): Likewise for param "insn".
13081         (check_asm_stack_operands): Likewise.
13082         (remove_regno_note): Likewise.
13083         (emit_pop_insn): Likewise for return type, param "insn", local
13084         "pop_insn".
13085         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
13086         "limit" from rtx to rtx_insn *.
13087         (swap_to_top): Likewise for param "insn".
13088         (move_for_stack_reg): Likewise.
13089         (move_nan_for_stack_reg): Likewise.
13090         (swap_rtx_condition): Likewise.
13091         (compare_for_stack_reg): Likewise.
13092         (subst_all_stack_regs_in_debug_insn): Likewise.
13093         (subst_stack_regs_pat): Likewise, and local "insn2".
13094         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
13095         rtx_insn *.
13096         (subst_stack_regs): Likewise.
13097         (change_stack): Likewise.
13098         (convert_regs_1): Likewise for locals "insn", "next".
13100 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13102         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
13103         rtx_insn *.
13104         (combine_set_extension): Likewise for param "curr_insn".
13105         (transform_ifelse): Likewise for param "def_insn".
13106         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
13107         from vec<rtx> * to vec<rtx_insn *> *.
13108         (is_cond_copy_insn): Likewise for param "insn".
13109         (struct ext_state): Strengthen the four vec fields from vec<rtx>
13110         to vec<rtx_insn *>.
13111         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
13112         local "def_insn" from rtx to rtx_insn *.
13113         (get_sub_rtx): Likewise for param "def_insn".
13114         (merge_def_and_ext): Likewise.
13115         (combine_reaching_defs): Likewise.
13116         (add_removable_extension): Likewise for param "insn".
13117         (find_removable_extensions): Likewise for local "insn".
13118         (find_and_remove_re): Likewise for locals "curr_insn" and
13119         "def_insn".  Strengthen locals "reinsn_del_list" and
13120         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
13122 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13124         * recog.c (split_insn): Strengthen param "insn" and locals
13125         "first", "last" from rtx to rtx_insn *.
13126         (split_all_insns): Likewise for locals "insn", "next".
13127         (split_all_insns_noflow): Likewise.
13129 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13131         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
13132         const rtx_insn *.
13133         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13134         (debug_rtx_find): Likewise for param 1 "x".
13136         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
13137         const_rtx to const rtx_insn *.  Likewise for local "insn".
13138         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13139         (debug_rtx_find): Likewise for param 1 "x".
13140         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
13141         from const_rtx to const rtx_insn * within the appropriate cases of
13142         the switch statement.
13144         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
13145         Strengthen local "insns" from rtx to rtx_insn * since this is
13146         passed to a call to debug_rtx_list.
13148 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13150         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
13151         to rtx_insn *.
13153         * function.c (stack_protect_epilogue): Add checked cast to
13154         rtx_insn for now when invoking predict_insn_def.
13156         * predict.c (predict_insn): Strengthen param "insn" from rtx to
13157         rtx_insn *.
13158         (predict_insn_def): Likewise.
13159         (rtl_predict_edge): Likewise for local "last_insn".
13160         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
13161         const rtx_insn *.
13162         (combine_predictions_for_insn): Strengthen param "insn" from rtx
13163         to rtx_insn *.
13164         (bb_estimate_probability_locally): Likewise for local "last_insn".
13165         (expensive_function_p): Likewise for local "insn".
13167         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
13168         local "jmp", since this is used when invoking predict_insn_def.
13170 2014-08-22  Marek Polacek  <polacek@redhat.com>
13172         PR c++/62199
13173         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
13175 2014-08-22  Marek Polacek  <polacek@redhat.com>
13177         PR c/61271
13178         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
13179         a comparison in parens.
13180         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
13181         in parens.
13183 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13185         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
13186         rtx_insn *.
13188         * cprop.c (fis_get_condition): Likewise.
13190         * postreload.c (reload_cse_regs): Likewise for param "first".
13191         (reload_cse_simplify): Likewise for param "insn".
13192         (reload_cse_regs_1): Likewise for local "insn".
13193         (reload_cse_simplify_set): Likewise for param "insn".
13194         (reload_cse_simplify_operands): Likewise.
13195         (struct reg_use): Likewise for field "insn".
13196         (reload_combine_purge_insn_uses): Likewise for param "insn".
13197         (fixup_debug_insns): Likewise for params "from", "to" and local
13198         "insn".
13199         (try_replace_in_use): Likewise for local "use_insn".
13200         (reload_combine_recognize_const_pattern): Likewise for param
13201         "insn" and locals "add_moved_after_insn", "use_insn".
13202         (reload_combine_recognize_pattern): Likewise for param "insn" and
13203         local "prev".
13204         (reload_combine): Likewise for locals "insn", "prev".
13205         (reload_combine_note_use): Likewise for param "insn".
13206         (move2add_use_add2_insn): Likewise.
13207         (move2add_use_add3_insn): Likewise.
13208         (reload_cse_move2add): Likewise, also for local "next".
13209         (move2add_note_store): Likewise for local "insn".
13211 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13213         * postreload-gcse.c (struct occr): Strengthen field "insn" from
13214         rtx to rtx_insn *.
13215         (struct unoccr): Likewise.
13216         (struct modifies_mem): Likewise.
13217         (alloc_mem): Likewise for local "insn".
13218         (insert_expr_in_table): Likewise for param "insn".
13219         (dump_expr_hash_table_entry): Likewise for local "insn".
13220         (oprs_unchanged_p): Likewise for param "insn".
13221         (load_killed_in_block_p): Likewise for local "setter".
13222         (record_last_reg_set_info): Likewise for param "insn".
13223         (record_last_reg_set_info_regno): Likewise.
13224         (record_last_mem_set_info): Likewise.
13225         (record_last_set_info): Likewise for local "last_set_insn".
13226         (record_opr_changes): Likewise for param "insn".
13227         (hash_scan_set): Likewise.
13228         (compute_hash_table): Likewise for local "insn".
13229         (get_avail_load_store_reg): Likewise for param "insn".
13230         (eliminate_partially_redundant_load): Likewise, also for locals
13231         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
13232         RTX for insns.
13233         (eliminate_partially_redundant_loads): Likewise for local "insn".
13235 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13237         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
13238         rtx to rtx_insn *.
13239         (expand_binop): Likewise for locals "entry_last", "last", "insns"
13240         (expand_twoval_unop): Likewise for locals entry_last", "last".
13241         (expand_twoval_binop): Likewise.
13242         (expand_twoval_binop_libfunc): Likewise for local "insns".
13243         (widen_leading): Likewise for local "last".
13244         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
13245         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
13246         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
13247         (expand_parity): Likewise for locals "last" and "seq".
13248         (expand_ffs): Likewise for local "seq".  Strengthen local
13249         "nonzero_label" from rtx to rtx_code_label *.
13250         (expand_absneg_bit): Strengthen local "insns" from rtx to
13251         rtx_insn *.
13252         (expand_unop_direct): Likewise for local "last".
13253         (expand_unop): Likewise for locals "last", "insns".
13254         (expand_abs_nojump): Likewise for local "last".
13255         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
13256         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
13257         rtx_insn *.
13258         (expand_copysign_absneg): Strengthen local "label" from rtx to
13259         rtx_code_label *.
13260         (expand_copysign_bit): Strengthen local "insns" from rtx to
13261         rtx_insn *.
13262         (struct no_conflict_data): Likewise for fields "first", "insn".
13263         (emit_libcall_block_1): Likewise for param "insns" and locals
13264         "next", "last", "insn".
13265         (emit_libcall_block): For now, add a checked cast to rtx_insn *
13266         on "insns" when invoking emit_libcall_block_1.  Ultimately we
13267         want to strengthen insns itself.
13268         (prepare_cmp_insn): Strengthen local "last" from rtx to
13269         rtx_insn *.
13270         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
13271         (prepare_float_lib_cmp): Likewise for local "insns".
13272         (emit_conditional_move): Likewise for local "last".
13273         (emit_conditional_add): Likewise.
13274         (have_sub2_insn): Likewise for local "seq".
13275         (expand_float): Likewise for local "insns".  Strengthen locals
13276         "label", "neglabel" from rtx to rtx_code_label *.
13277         (expand_fix): Likewise for locals "last", "insn", "insns" (to
13278         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
13279         (expand_fixed_convert): Likewise for local "insns" (to
13280         rtx_insn *).
13281         (expand_sfix_optab): Likewise for local "last".
13282         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
13283         to rtx_code_label *.
13284         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
13285         from rtx to rtx_insn *.
13286         (expand_atomic_fetch_op): Likewise for local "insn".
13287         (maybe_legitimize_operand_same_code): Likewise for local "last".
13288         (maybe_legitimize_operands): Likewise.
13290 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13292         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
13293         "insn" from rtx to rtx_insn *.
13294         (ps_rtl_insn): Likewise for return type.
13295         (doloop_register_get): Likewise for params "head", "tail" and
13296         locals "insn", "first_insn_not_to_check".
13297         (schedule_reg_move): Likewise for local "this_insn".
13298         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
13299         of gen_move_insn for now.
13300         (reset_sched_times): Strengthen local "insn" from rtx to
13301         rtx_insn *.
13302         (permute_partial_schedule): Likewise.
13303         (duplicate_insns_of_cycles): Likewise for local "u_insn".
13304         (dump_insn_location): Likewise for param "insn".
13305         (loop_canon_p): Likewise for local "insn".
13306         (sms_schedule): Likewise.
13307         (print_partial_schedule): Likewise.
13308         (ps_has_conflicts): Likewise.
13310 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13312         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
13313         "tailp" from rtx * to rtx_insn **.
13315         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
13316         from rtx to rtx_insn *.
13317         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
13318         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
13319         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
13320         rtx to rtx_insn *.
13321         * modulo-sched.c (const_iteration_count): Strengthen return type
13322         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
13323         use of NULL_RTX with NULL when working with insns.
13324         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
13325         to rtx_insn *.
13326         (sms_schedule): Likewise.
13327         * sched-rgn.c (init_ready_list): Likewise, also for locals
13328         "src_head" and "src_next_tail".
13329         (compute_block_dependences): Likewise.
13330         (free_block_dependencies): Likewise.
13331         (debug_rgn_dependencies): Likewise.
13332         (free_rgn_deps): Likewise.
13333         (compute_priorities): Likewise.
13334         (schedule_region): Likewise.
13335         * sel-sched.c (find_ebb_boundaries): Likewise.
13337         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
13338         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
13340 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13342         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
13343         from rtx to rtx_insn *.
13344         (new_seginfo): Likewise for param "insn".
13345         (create_pre_exit): Likewise for locals "last_insn",
13346         "before_return_copy", "return_copy".
13347         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
13348         "mode_set".
13350 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13352         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
13353         from rtx to rtx_insn *.
13354         (lra_push_insn): Likewise for 1st param.
13355         (lra_push_insn_and_update_insn_regno_info): Likewise.
13356         (lra_pop_insn): Likewise for return type.
13357         (lra_invalidate_insn_data): Likewise for 1st param.
13358         (lra_set_insn_deleted): Likewise.
13359         (lra_delete_dead_insn): Likewise.
13360         (lra_process_new_insns): Likewise for first 3 params.
13361         (lra_set_insn_recog_data): Likewise for 1st param.
13362         (lra_update_insn_recog_data): Likewise.
13363         (lra_set_used_insn_alternative): Likewise.
13364         (lra_invalidate_insn_regno_info): Likewise.
13365         (lra_update_insn_regno_info): Likewise.
13366         (lra_former_scratch_operand_p): Likewise.
13367         (lra_eliminate_regs_1): Likewise.
13368         (lra_get_insn_recog_data): Likewise.
13370         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
13371         rtx to rtx_insn *.
13373         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
13374         "mv1" and "mv2".
13375         (substitute_within_insn): New.
13376         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
13377         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
13378         Replace call to "substitute" with call to substitute_within_insn.
13380         * lra-constraints.c (curr_insn): Strengthen from rtx to
13381         rtx_insn *.
13382         (get_equiv_with_elimination): Likewise for param "insn".
13383         (match_reload): Strengthen params "before" and "after" from rtx *
13384         to rtx_insn **.
13385         (emit_spill_move): Likewise for return type.  Add a checked cast
13386         to rtx_insn * on result of gen_move_insn for now.
13387         (check_and_process_move): Likewise for local "before".  Replace
13388         NULL_RTX with NULL when referring to insns.
13389         (process_addr_reg): Strengthen params "before" and "after" from
13390         rtx * to rtx_insn **.
13391         (insert_move_for_subreg): Likewise.
13392         (simplify_operand_subreg): Strengthen locals "before" and "after"
13393         from rtx to rtx_insn *.
13394         (process_address_1): Strengthen params "before" and "after" from
13395         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
13396         rtx to rtx_insn *.
13397         (process_address): Strengthen params "before" and "after" from
13398         rtx * to rtx_insn **.
13399         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
13400         (curr_insn_transform): Strengthen locals "before" and "after"
13401         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
13402         to insns.
13403         (loc_equivalence_callback): Update cast of "data", changing
13404         resulting type from rtx to rtx_insn *.
13405         (substitute_pseudo_within_insn): New.
13406         (inherit_reload_reg): Strengthen param "insn" from rtx to
13407         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
13408         NULL when referring to insns.  Add a checked cast to rtx_insn *
13409         when using usage_insn to invoke lra_update_insn_regno_info.
13410         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
13411         likewise for locals "restore", "save".  Add checked casts to
13412         rtx_insn * when using usage_insn to invoke
13413         lra_update_insn_regno_info and lra_process_new_insns.  Replace
13414         NULL_RTX with NULL when referring to insns.
13415         (split_if_necessary): Strengthen param "insn" from rtx to
13416         rtx_insn *.
13417         (update_ebb_live_info): Likewise for params "head", "tail" and local
13418         "prev_insn".
13419         (get_last_insertion_point): Likewise for return type and local "insn".
13420         (get_live_on_other_edges): Likewise for local "last".
13421         (inherit_in_ebb): Likewise for params "head", "tail" and locals
13422         "prev_insn", "next_insn", "restore".
13423         (remove_inheritance_pseudos): Likewise for local "prev_insn".
13424         (undo_optional_reloads): Likewise for local "insn".
13426         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
13427         "insn".
13428         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
13429         insns.
13430         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
13431         rtx_insn *.
13432         (spill_pseudos): Likewise for local "insn".
13433         (init_elimination): Likewise.
13434         (process_insn_for_elimination): Likewise for param "insn".
13436         * lra-lives.c (curr_insn): Likewise.;
13438         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
13439         (remove_pseudos): Likewise for param "insn".
13440         (spill_pseudos): Likewise for local "insn".
13441         (lra_final_code_change): Likewise for locals "insn", "curr".
13443         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
13444         (lra_set_insn_deleted): Likewise.
13445         (lra_delete_dead_insn): Likewise, and for local "prev".
13446         (new_insn_reg): Likewise for param "insn".
13447         (lra_set_insn_recog_data): Likewise.
13448         (lra_update_insn_recog_data): Likewise.
13449         (lra_set_used_insn_alternative): Likewise.
13450         (get_insn_freq): Likewise.
13451         (invalidate_insn_data_regno_info): Likewise.
13452         (lra_invalidate_insn_regno_info): Likewise.
13453         (lra_update_insn_regno_info): Likewise.
13454         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
13455         vec<rtx_insn *>.
13456         (lra_push_insn_1): Strengthen param "insn" from rtx to
13457         rtx_insn *.
13458         (lra_push_insn): Likewise.
13459         (lra_push_insn_and_update_insn_regno_info): Likewise.
13460         (lra_pop_insn): Likewise for return type and local "insn".
13461         (push_insns): Likewise for params "from", "to", and local "insn".
13462         (setup_sp_offset): Likewise for params "from", "last" and locals
13463         "before", "insn".
13464         (lra_process_new_insns): Likewise for params "insn", "before",
13465         "after" and local "last".
13466         (struct sloc): Likewise for field "insn".
13467         (lra_former_scratch_operand_p): Likewise for param "insn".
13468         (remove_scratches): Likewise for locals "insn", "last".
13469         (check_rtl): Likewise for local "insn".
13470         (add_auto_inc_notes): Likewise for param "insn".
13471         (update_inc_notes): Likewise for local "insn".
13472         (lra): Replace NULL_RTX with NULL when referring to insn.
13474 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13476         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
13477         to rtx_insn *.
13478         (resolve_reg_notes): Likewise.
13479         (resolve_simple_move): Likewise for return type, param "insn", and
13480         locals "insns", "minsn".
13481         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
13482         (resolve_use): Likewise.
13483         (resolve_debug): Likewise.
13484         (find_decomposable_shift_zext): Likewise.
13485         (resolve_shift_zext): Likewise for return type, param "insn", and
13486         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
13487         (decompose_multiword_subregs): Likewise for local "insn",
13488         "orig_insn", "decomposed_shift", "end".
13490 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13492         * basic-block.h (basic_block split_edge_and_insert): Strengthen
13493         param "insns" from rtx to rtx_insn *.
13495         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
13496         rtx to rtx_insn *.
13497         (struct iv_to_split): Likewise.
13498         (loop_exit_at_end_p): Likewise for local "insn".
13499         (split_edge_and_insert): Likewise for param "insns".
13500         (compare_and_jump_seq): Likewise for return type, param "cinsn",
13501         and locals "seq", "jump".
13502         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
13503         "branch_code"; update invocations of compare_and_jump_seq to
13504         eliminate NULL_RTX in favor of NULL.
13505         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
13506         rtx to rtx_insn *.
13507         (reset_debug_uses_in_loop): Likewise.
13508         (analyze_insn_to_expand_var): Likewise for param "insn".
13509         (analyze_iv_to_split_insn): Likewise.
13510         (analyze_insns_in_loop): Likewise for local "insn".
13511         (insert_base_initialization): Likewise for param
13512         "insn" and local "seq".
13513         (split_iv): Likewise for param "insn" and local "seq".
13514         (expand_var_during_unrolling): Likewise for param "insn".
13515         (insert_var_expansion_initialization): Likewise for local "seq".
13516         (combine_var_copies_in_loop_exit): Likewise.
13517         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
13518         "insn".
13519         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
13520         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
13521         "next".
13523 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13525         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
13526         rtx_insn *.
13527         (iv_analyze_result): Likewise.
13528         (iv_analyze_expr): Likewise.
13529         (biv_p): Likewise.
13531         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
13532         local "def_insn" from rtx to rtx_insn *.
13533         (get_biv_step_1): Likewise for local "insn".
13534         (iv_analyze_expr): Likewise for param "insn".
13535         (iv_analyze_def): Likewise for local "insn".
13536         (iv_analyze_op): Likewise for param "insn".
13537         (iv_analyze): Likewise.
13538         (iv_analyze_result): Likewise.
13539         (biv_p): Likewise.
13540         (suitable_set_for_replacement): Likewise.
13541         (simplify_using_initial_values): Likewise for local "insn".
13542         (iv_number_of_iterations): Likewise for param "insn".
13543         (check_simple_exit): Add checked cast to rtx_insn when invoking
13544         iv_number_of_iterations for now (until get_condition is
13545         strengthened).
13547         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
13548         "insn" from rtx to rtx_insn *.
13549         (analyze_insns_in_loop): Likewise for local "insn".
13551 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13553         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
13554         to rtx_insn *.
13555         (struct invariant): Likewise.
13556         (hash_invariant_expr_1): Likewise for param "insn".
13557         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
13558         (find_exits): Likewise for local "insn".
13559         (create_new_invariant): Likewise for param "insn".
13560         (check_dependencies): Likewise.
13561         (find_invariant_insn): Likewise.
13562         (record_uses): Likewise.
13563         (find_invariants_insn): Likewise.
13564         (find_invariants_bb): Likewise for local "insn".
13565         (get_pressure_class_and_nregs): Likewise for param "insn".
13566         (calculate_loop_reg_pressure): Likewise for local "insn".
13568 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13570         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
13571         to rtx_insn *.
13572         (add_test): Likewise for locals "seq", "jump".
13573         (doloop_modify): Likewise for locals "sequence", "jump_insn".
13575 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13577         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
13578         rtx_insn *.
13579         (rebuild_jump_labels_chain): Likewise for param "chain".
13581         * cfgexpand.c (pass_expand::execute): Add checked cast to
13582         rtx_insn * when calling rebuild_jump_labels_chain in region where
13583         we know e->insns.r is non-NULL.
13585         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
13586         rtx_insn *.
13587         (rebuild_jump_labels): Likewise.
13588         (rebuild_jump_labels_chain): Likewise for param "chain".
13589         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
13590         (init_label_info): Likewise for param "f".
13591         (maybe_propagate_label_ref): Likewise for params "jump_insn",
13592         "prev_nonjump_insn".
13593         (mark_all_labels): Likewise for param "f" and locals "insn",
13594         "prev_nonjump_insn".
13596 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13598         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
13599         from rtx to rtx_insn *insn.
13600         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
13601         (ira_add_allocno_copy): Likewise.
13602         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
13603         rtx to rtx_insn *.
13604         (ira_create_copy): Likewise.
13605         (ira_add_allocno_copy): Likewise.
13606         (create_bb_allocnos): Likewise for local "insn".
13607         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
13608         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
13609         process_regs_for_copy for rtx_insn * param.
13610         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
13611         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
13612         process_regs_for_copy for rtx_insn * param.
13613         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
13614         * ira-costs.c (record_reg_classes): Likewise for param "insn".
13615         (record_operand_costs): Likewise.
13616         (scan_one_insn): Likewise for return type, and for param "insn".
13617         (process_bb_for_costs): Likewise for local "insn".
13618         (process_bb_node_for_hard_reg_moves): Likewise.
13619         * ira-emit.c (struct move): Likewise for field "insn".
13620         (create_move): Eliminate use of NULL_RTX when dealing with an
13621         rtx_insn *.
13622         (emit_move_list): Strengthen return type and locals "result",
13623         "insn" from rtx to rtx_insn *insn.
13624         (emit_moves): Likewise for locals "insns", "tmp".
13625         (ira_emit): Likewise for local "insn".
13626         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13627         "insn".
13628         (find_call_crossed_cheap_reg): Likewise.
13629         (process_bb_node_lives): Likewise for local "insn".
13630         * ira.c (decrease_live_ranges_number): Likewise.
13631         (compute_regs_asm_clobbered): Likewise.
13632         (build_insn_chain): Likewise.
13633         (find_moveable_pseudos): Likewise, also locals "def_insn",
13634         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
13635         to rtx_insn **.  Add a checked cast when assigning from
13636         "closest_use" into closest_uses array in a region where we know
13637         it's a non-NULL insn.
13638         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13639         to rtx_insn *.
13640         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13641         "last_interesting_insn", "uin".
13642         (move_unallocated_pseudos): Likewise for locals "def_insn",
13643         "move_insn", "newinsn".
13645 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13647         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13648         Strengthen locals "done_label", "do_error" from rtx to
13649         rtx_code_label *.
13650         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13651         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
13652         rtx_code_label *.
13653         (ubsan_expand_si_overflow_neg_check): Likewise for locals
13654         "done_label", "do_error" to rtx_code_label * and local  "last" to
13655         rtx_insn *.
13656         (ubsan_expand_si_overflow_mul_check): Likewise for locals
13657         "done_label", "do_error", "large_op0", "small_op0_large_op1",
13658         "one_small_one_large", "both_ops_large", "after_hipart_neg",
13659         "after_lopart_neg", "do_overflow", "hipart_different"  to
13660         rtx_code_label * and local  "last" to rtx_insn *.
13662 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13664         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13665         "insn" and "move_insn" from rtx to rtx_insn *.
13667 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13669         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13670         rtx_insn *.
13671         (cheap_bb_rtx_cost_p): Likewise.
13672         (first_active_insn): Likewise for return type and local "insn".
13673         (last_active_insn):  Likewise for return type and locals "insn",
13674         "head".
13675         (struct noce_if_info): Likewise for fields "jump", "insn_a",
13676         "insn_b".
13677         (end_ifcvt_sequence): Likewise for return type and locals "insn",
13678         "seq".
13679         (noce_try_move): Likewise for local "seq".
13680         (noce_try_store_flag): Likewise.
13681         (noce_try_store_flag_constants): Likewise.
13682         (noce_try_addcc): Likewise.
13683         (noce_try_store_flag_mask): Likewise.
13684         (noce_try_cmove): Likewise.
13685         (noce_try_minmax): Likewise.
13686         (noce_try_abs): Likewise.
13687         (noce_try_sign_mask): Likewise.
13688         (noce_try_bitop): Likewise.
13689         (noce_can_store_speculate_p): Likewise for local "insn".
13690         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13691         seq".
13692         (check_cond_move_block): Likewise for local "insn".
13693         (cond_move_convert_if_block): Likewise.
13694         (cond_move_process_if_block): Likewise for locals "seq",
13695         "loc_insn".
13696         (noce_find_if_block): Likewise for local "jump".
13697         (merge_if_block): Likewise for local "last".
13698         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13699         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13700         (block_has_only_trap): Likewise for return type and local "trap".
13701         (find_if_case_1): Likewise for local "jump".
13702         (dead_or_predicable): Likewise for locals "head", "end", "jump",
13703         "insn".
13705 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13707         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13708         "last_insn", "loop_end" from rtx to rtx_insn *.
13710         * hw-doloop.c (scan_loop): Likewise for local "insn".
13711         (discover_loop): Likewise for param "tail_insn".
13712         (discover_loops): Likewise for local "tail".
13714         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13715         cast to rtx_insn * when assigning from an rtx local to a
13716         hwloop_info's "last_insn" field.
13718 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13720         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13721         (add_delay_dependencies): Strengthen local "pro" from rtx to
13722         rtx_insn *.
13723         (recompute_todo_spec): Likewise.
13724         (dep_cost_1): Likewise for locals "insn", "used".
13725         (schedule_insn): Likewise for local "dbg".
13726         (schedule_insn): Likewise for locals "pro", "next".
13727         (unschedule_insns_until): Likewise for local "con".
13728         (restore_pattern): Likewise for local "next".
13729         (estimate_insn_tick): Likewise for local "pro".
13730         (resolve_dependencies): Likewise for local "next".
13731         (fix_inter_tick): Likewise.
13732         (fix_tick_ready): Likewise for local "pro".
13733         (add_to_speculative_block): Likewise for locals "check", "twin",
13734         "pro".
13735         (sched_extend_bb): Likewise for locals "end", "insn".
13736         (init_before_recovery): Likewise for local "x".
13737         (sched_create_recovery_block): Likewise for local "barrier".
13738         (create_check_block_twin): Likewise for local "pro".
13739         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13740         "consumer".
13741         (unlink_bb_notes): Update for change to type of bb_header.
13742         Strengthen locals "prev", "label", "note", "next" from rtx to
13743         rtx_insn *.
13744         (clear_priorities): Likewise for local "pro".
13746 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13748         * gcse.c (struct occr): Strengthen field "insn" from rtx to
13749         rtx_insn *.
13750         (test_insn): Likewise for this global.
13751         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13752         const rtx_insn *.
13753         (oprs_anticipatable_p): Likewise.
13754         (oprs_available_p): Likewise.
13755         (insert_expr_in_table): Strengthen param "insn" from  rtx to
13756         rtx_insn *.
13757         (hash_scan_set): Likewise.
13758         (hash_scan_clobber): Likewise.
13759         (hash_scan_call): Likewise.
13760         (hash_scan_insn): Likewise.
13761         (compute_hash_table_work): Likewise for local "insn".
13762         (process_insert_insn): Likewise for return type and local "pat".
13763         (insert_insn_end_basic_block): Likewise for locals "new_insn",
13764         "pat", "pat_end", "maybe_cc0_setter".
13765         (pre_edge_insert): Likewise for local "insn".
13766         (pre_insert_copy_insn): Likewise for param "insn".
13767         (pre_insert_copies): Likewise for local "insn".
13768         (struct set_data): Likewise for field "insn".
13769         (single_set_gcse): Likewise for param "insn".
13770         (gcse_emit_move_after): Likewise.
13771         (pre_delete): Likewise for local "insn".
13772         (update_bb_reg_pressure): Likewise for param "from" and local
13773         "insn".
13774         (should_hoist_expr_to_dom): Likewise for param "from".
13775         (hoist_code): Likewise for local "insn".
13776         (get_pressure_class_and_nregs): Likewise for param "insn".
13777         (calculate_bb_reg_pressure): Likewise for local "insn".
13778         (compute_ld_motion_mems): Likewise.
13780 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13782         * genpeep.c (main): Rename param back from "uncast_ins1" to
13783         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
13784         checked cast.
13786         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13788 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
13790         PR target/62195
13791         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13792         documentation to state it is only for VSX operations.
13794         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13795         constraint only active if VSX.
13797         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13798         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13799         (lfiwzx): Likewise.
13801 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13803         * fwprop.c (single_def_use_dom_walker::before_dom_children):
13804         Strengthen local "insn" from rtx to rtx_insn *.
13805         (use_killed_between): Likewise for param "target_insn".
13806         (all_uses_available_at): Likewise for param "target_insn" and
13807         local "next".
13808         (update_df_init): Likewise for params "def_insn", "insn".
13809         (update_df): Likewise for param "insn".
13810         (try_fwprop_subst): Likewise for param "def_insn" and local
13811         "insn".
13812         (free_load_extend): Likewise for param "insn".
13813         (forward_propagate_subreg): Likewise for param "def_insn" and
13814         local "use_insn".
13815         (forward_propagate_asm): Likewise for param "def_insn" and local
13816         "use_insn".
13817         (forward_propagate_and_simplify): Likewise for param "def_insn"
13818         and local "use_insn".
13819         (forward_propagate_into): Likewise for locals "def_insn" and
13820         "use_insn".
13822 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13824         * function.c (emit_initial_value_sets): Strengthen local "seq"
13825         from rtx to rtx_insn *.
13826         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13827         local "seq".
13828         (instantiate_virtual_regs): Likewise for local "insn".
13829         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13830         (reorder_blocks_1): Likewise for param "insns" and local "insn".
13831         (expand_function_end): Likewise for locals "insn" and "seq".
13832         (epilogue_done): Likewise for local "insn".
13833         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13834         "last", "trial".
13835         (reposition_prologue_and_epilogue_notes): Likewise for locals
13836         "insn", "last", "note", "first".
13837         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13838         (pass_match_asm_constraints::execute): Likewise for local "insn".
13840 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13842         * output.h (final_scan_insn): Strengthen return type from rtx to
13843         rtx_insn *.
13844         (final_forward_branch_p): Likewise for param.
13845         (current_output_insn): Likewise for this global.
13847         * final.c (rtx debug_insn): Likewise for this variable.
13848         (current_output_insn): Likewise.
13849         (get_attr_length_1): Rename param "insn" to "uncast_insn",
13850         adding "insn" back in as an rtx_insn * with a checked cast, so
13851         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13852         first param.
13853         (compute_alignments): Strengthen local "label" from rtx to
13854         rtx_insn *.
13855         (shorten_branches): Rename param from "first" to "uncast_first",
13856         introducing a new local rtx_insn * "first" using a checked cast to
13857         effectively strengthen "first" from rtx to rtx_insn * without
13858         affecting the type signature.  Strengthen locals "insn", "seq",
13859         "next", "label" from rtx to rtx_insn *.
13860         (change_scope): Strengthen param "orig_insn" and local "insn" from
13861         rtx to rtx_insn *.
13862         (final_start_function): Rename param from "first" to "uncast_first",
13863         introducing a new local rtx_insn * "first" using a checked cast to
13864         effectively strengthen "first" from rtx to rtx_insn * without
13865         affecting the type signature.  Strengthen local "insn" from rtx to
13866         rtx_insn *.
13867         (dump_basic_block_info): Strengthen param "insn" from rtx to
13868         rtx_insn *.
13869         (final): Rename param from "first" to "uncast_first",
13870         introducing a new local rtx_insn * "first" using a checked cast to
13871         effectively strengthen "first" from rtx to rtx_insn * without
13872         affecting the type signature.  Strengthen locals "insn", "next"
13873         from rtx to rtx_insn *.
13874         (output_alternate_entry_point): Strengthen param "insn" from rtx to
13875         rtx_insn *.
13876         (call_from_call_insn): Strengthen param "insn" from rtx to
13877         rtx_call_insn *.
13878         (final_scan_insn): Rename param from "insn" to "uncast_insn",
13879         introducing a new local rtx_insn * "insn" using a checked cast to
13880         effectively strengthen "insn" from rtx to rtx_insn * without
13881         affecting the type signature.  Strengthen return type and locals
13882         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
13883         now-redundant checked cast to rtx_insn * from both invocations of
13884         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
13885         introducing a local "call_insn" for use when invoking
13886         call_from_call_insn.
13887         (notice_source_line): Strengthen param "insn" from rtx to
13888         rtx_insn *.
13889         (leaf_function_p): Likewise for local "insn".
13890         (final_forward_branch_p): Likewise.
13891         (leaf_renumber_regs): Likewise for param "first".
13892         (rest_of_clean_state): Likewise for locals "insn" and "next".
13893         (self_recursive_call_p): Likewise for param "insn".
13894         (collect_fn_hard_reg_usage): Likewise for local "insn".
13895         (get_call_fndecl): Likewise for param "insn".
13896         (get_call_cgraph_rtl_info): Likewise.
13897         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13898         introducing a new local rtx_insn * "insn" using a checked cast to
13899         effectively strengthen "insn" from rtx to rtx_insn * without
13900         affecting the type signature.
13902         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13903         cast when assigning from param "insn" to current_output_insn.
13904         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13905         so that we can assign it back to current_output_insn.
13907 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13909         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13910         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13911         atmxt540s and atmxt540sreva devices.
13912         * config/avr/avr-tables.opt: Regenerate.
13913         * config/avr/t-multilib: Regenerate.
13914         * doc/avr-mmcu.texi: Regenerate.
13916 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13918         * expr.c (convert_move): Strengthen local "insns" from rtx to
13919         rtx_insn *.
13920         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13921         "top_label" from rtx to rtx_code_label *.
13922         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13923         rtx_insn *.
13924         (emit_single_push_insn): Likewise for locals "prev", "last".
13925         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13926         to rtx_code_label *.
13927         (store_constructor): Likewise for locals "loop_start", "loop_end".
13928         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13929         rtx_insn *.
13930         (expand_expr_real_2): Likewise.
13931         (expand_expr_real_1): Strengthen local "label" from rtx to
13932         rtx_code_label *.
13934 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13936         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13937         from rtx to rtx_insn *.
13938         (store_bit_field_1): Likewise.
13939         (extract_bit_field_1): Likewise.
13940         (expand_mult_const): Likewise for local "insns".
13941         (expmed_mult_highpart): Strengthen local "label" from rtx to
13942         rtx_code_label *.
13943         (expand_smod_pow2): Likewise.
13944         (expand_sdiv_pow2): Likewise.
13945         (expand_divmod): Strengthen locals "last", "insn" from rtx to
13946         rtx_insn *.  Strengthen locals "label", "label1", "label2",
13947         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13948         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13949         (emit_store_flag): Likewise.
13950         (emit_store_flag_force): Strengthen local "label" from rtx to
13951         rtx_code_label *.
13952         (do_cmp_and_jump): Likewise for param "label".
13954 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13956         * explow.c (force_reg): Strengthen local "insn" from rtx to
13957         rtx_insn *.
13958         (adjust_stack_1): Likewise.
13959         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
13960         "final_label", "available_label", "space_available" from rtx to
13961         rtx_code_label *.
13962         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13963         (anti_adjust_stack_and_probe): Likewise.
13965 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13967         * except.h (sjlj_emit_function_exit_after): Strengthen param
13968         "after" from rtx to rtx_insn *.  This is only called with
13969         result of get_last_insn (in function.c) so type-change should be
13970         self-contained.
13972         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13973         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13974         to rtx_insn *.  These fields are only used from except.c so this
13975         type-change should be self-contained to this patch.
13977         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13978         local "last" from rtx to rtx_insn *.
13979         (dw2_build_landing_pads): Likewise for local "seq".
13980         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13981         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13982         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
13983         rtx to rtx_insn *.
13984         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13985         to rtx_insn *.
13986         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13987         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13988         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13989         referring to an insn.  Strengthen local "dispatch_label" from
13990         rtx to rtx_code_label *.
13991         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13992         rtx_insn *.
13993         (expand_eh_return): Strengthen local "around_label" from
13994         rtx to rtx_code_label *.
13995         (convert_to_eh_region_ranges): Strengthen locals "iter",
13996         "last_action_insn", "first_no_action_insn",
13997         "first_no_action_insn_before_switch",
13998         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
14000 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14002         * dwarf2out.c (last_var_location_insn): Strengthen this variable
14003         from rtx to rtx_insn *.
14004         (cached_next_real_insn): Likewise.
14005         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
14006         working with insns.
14007         (dwarf2out_var_location): Strengthen locals "next_real",
14008         "next_note", "expected_next_loc_note", "last_start", "insn" from
14009         rtx to rtx_insn *.
14011 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14013         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
14014         from rtx to rtx_insn *.
14015         (create_pseudo_cfg): Likewise for local "insn".
14017 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14019         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
14020         from rtx to rtx_insn *.
14021         (df_bb_regno_last_def_find): Likewise.
14023         * df-problems.c (df_rd_bb_local_compute): Likewise.
14024         (df_lr_bb_local_compute): Likewise.
14025         (df_live_bb_local_compute): Likewise.
14026         (df_chain_remove_problem): Likewise.
14027         (df_chain_create_bb): Likewise.
14028         (df_word_lr_bb_local_compute): Likewise.
14029         (df_remove_dead_eq_notes): Likewise for param "insn".
14030         (df_note_bb_compute): Likewise for local "insn".
14031         (simulate_backwards_to_point): Likewise.
14032         (df_md_bb_local_compute): Likewise.
14034         * df-scan.c (df_scan_free_bb_info): Likewise.
14035         (df_scan_start_dump): Likewise.
14036         (df_scan_start_block): Likewise.
14037         (df_install_ref_incremental): Likewise for local "insn".
14038         (df_insn_rescan_all): Likewise.
14039         (df_reorganize_refs_by_reg_by_insn): Likewise.
14040         (df_reorganize_refs_by_insn_bb): Likewise.
14041         (df_recompute_luids): Likewise.
14042         (df_bb_refs_record): Likewise.
14043         (df_update_entry_exit_and_calls): Likewise.
14044         (df_bb_verify): Likewise.
14046 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14048         * ddg.h (struct ddg_node): Strengthen fields "insn" and
14049         "first_note" from rtx to rtx_insn *.
14050         (get_node_of_insn): Likewise for param 2 "insn".
14051         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
14053         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
14054         rtx_insn *.
14055         (mem_write_insn_p): Likewise.
14056         (mem_access_insn_p): Likewise.
14057         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
14058         (def_has_ccmode_p): Likewise for param "insn".
14059         (add_cross_iteration_register_deps): Likewise for locals
14060         "def_insn" and "use_insn".
14061         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
14062         (build_intra_loop_deps): Likewise for local "src_insn".
14063         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
14064         to rtx_insn *.
14065         (get_node_of_insn): Likewise for param "insn".
14067 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14069         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
14070         (deletable_insn_p): Strengthen param "insn" from rtx to
14071         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
14072         find_call_stack_args, since this is guarded by CALL_P (insn).
14073         (marked_insn_p): Strengthen param "insn" from rtx to
14074         rtx_insn *.
14075         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
14076         invoking find_call_stack_args, since this is guarded by
14077         CALL_P (insn).
14078         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
14079         rtx_insn *; we know this is an insn since this was called by
14080         mark_nonreg_stores.
14081         (mark_nonreg_stores_2): Likewise.
14082         (mark_nonreg_stores): Strengthen param "insn" from rtx to
14083         rtx_insn *.
14084         (find_call_stack_args): Strengthen param "call_insn" from rtx to
14085         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
14086         to rtx_insn *.
14087         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
14088         from rtx to rtx_insn *.
14089         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
14090         "next", "ref_insn".
14091         (delete_unmarked_insns): Likewise for locals "insn", "next".
14092         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
14093         (mark_reg_dependencies): Likewise for param "insn".
14094         (rest_of_handle_ud_dce): Likewise for local "insn".
14095         (word_dce_process_block): Likewise.
14096         (dce_process_block): Likewise.
14098 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14100         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
14101         from rtx to rtx_insn *.
14102         (struct change_cc_mode_args): Likewise for field "insn".
14103         (this_insn): Strengthen from rtx to rtx_insn *.
14104         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
14105         with insn.
14106         (validate_canon_reg): Strengthen param "insn" from rtx to
14107         rtx_insn *.
14108         (canon_reg): Likewise.
14109         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
14110         dealing with insn.
14111         (record_jump_equiv): Strengthen param "insn" from rtx to
14112         rtx_insn *.
14113         (try_back_substitute_reg): Likewise, also for locals "prev",
14114         "bb_head".
14115         (find_sets_in_insn): Likewise for param "insn".
14116         (canonicalize_insn): Likewise.
14117         (cse_insn): Likewise.  Add a checked cast.
14118         (invalidate_from_clobbers): Likewise for param "insn".
14119         (invalidate_from_sets_and_clobbers): Likewise.
14120         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
14121         dealing with insn.
14122         (cse_prescan_path): Strengthen local "insn" from rtx to
14123         rtx_insn *.
14124         (cse_extended_basic_block): Likewise for locals "insn" and
14125         "prev_insn".
14126         (cse_main): Likewise for param "f".
14127         (check_for_label_ref): Likewise for local "insn".
14128         (set_live_p): Likewise for second param ("insn").
14129         (insn_live_p): Likewise for first param ("insn") and for local
14130         "next".
14131         (cse_change_cc_mode_insn): Likewise for first param "insn".
14132         (cse_change_cc_mode_insns): Likewise for first and second params
14133         "start" and "end".
14134         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
14135         and "end".
14136         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
14137         "cc_src_insn".
14139 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14140             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14141             Anna Tikhonova  <anna.tikhonova@intel.com>
14142             Ilya Tocar  <ilya.tocar@intel.com>
14143             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14144             Ilya Verbin  <ilya.verbin@intel.com>
14145             Kirill Yukhin  <kirill.yukhin@intel.com>
14146             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14148         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
14149         New.
14150         * config/i386/sse.md
14151         (define_mode_iterator VI248_AVX2): Delete.
14152         (define_mode_iterator VI2_AVX2_AVX512BW): New.
14153         (define_mode_iterator VI48_AVX2): Ditto.
14154         (define_insn <shift_insn><mode>3): Delete.
14155         (define_insn "<shift_insn><mode>3<mask_name>" with
14156         VI2_AVX2_AVX512BW): New.
14157         (define_insn "<shift_insn><mode>3<mask_name>" with
14158         VI48_AVX2): Ditto.
14160 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14161             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14162             Anna Tikhonova  <anna.tikhonova@intel.com>
14163             Ilya Tocar  <ilya.tocar@intel.com>
14164             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14165             Ilya Verbin  <ilya.verbin@intel.com>
14166             Kirill Yukhin  <kirill.yukhin@intel.com>
14167             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14169         * config/i386/sse.md
14170         (define_mode_iterator VI4F_BRCST32x2): New.
14171         (define_mode_attr 64x2_mode): Ditto.
14172         (define_mode_attr 32x2mode): Ditto.
14173         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
14174         with VI4F_BRCST32x2): Ditto.
14175         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
14176         with V16FI mode iterator): Ditto.
14177         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14178         with V16FI): Ditto.
14179         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14180         with VI8F_BRCST64x2): Ditto.
14182 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14183             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14184             Anna Tikhonova  <anna.tikhonova@intel.com>
14185             Ilya Tocar  <ilya.tocar@intel.com>
14186             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14187             Ilya Verbin  <ilya.verbin@intel.com>
14188             Kirill Yukhin  <kirill.yukhin@intel.com>
14189             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14191         * config/i386/sse.md
14192         (define_mode_iterator VI8_AVX512VL): New.
14193         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
14195 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14197         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
14198         (define_mode_iterator V48_AVX512VL): New.
14199         (define_mode_iterator V12_AVX512VL): Ditto.
14200         (define_insn <avx512>_load<mode>_mask): Split into two similar
14201         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
14202         Refactor output template.
14203         (define_insn "<avx512>_store<mode>_mask"): Ditto.
14205 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14207         * cprop.c (struct occr): Strengthen field "insn" from rtx to
14208         rtx_insn *.
14209         (reg_available_p): Likewise for param "insn".
14210         (insert_set_in_table): Likewise.
14211         (hash_scan_set): Likewise.
14212         (hash_scan_insn): Likewise.
14213         (make_set_regs_unavailable): Likewise.
14214         (compute_hash_table_work): Likewise for local "insn".
14215         (reg_not_set_p): Strengthen param "insn" from const_rtx to
14216         const rtx_insn *.
14217         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
14218         (try_replace_reg): Likewise.
14219         (find_avail_set): Likewise.
14220         (cprop_jump): Likewise for params "setcc", "jump".
14221         (constprop_register): Likewise for param "insn".
14222         (cprop_insn): Likewise.
14223         (do_local_cprop): Likewise.
14224         (local_cprop_pass): Likewise for local "insn".
14225         (bypass_block): Likewise for params "setcc" and "jump".
14226         (bypass_conditional_jumps): Likewise for locals "setcc" and
14227         "insn".
14228         (one_cprop_pass): Likewise for local "insn".
14230 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14232         * compare-elim.c (struct comparison_use): Strengthen field "insn"
14233         from rtx to rtx_insn *.
14234         (struct comparison): Likewise, also for field "prev_clobber".
14235         (conforming_compare): Likewise for param "insn".
14236         (arithmetic_flags_clobber_p): Likewise.
14237         (find_flags_uses_in_insn): Likewise.
14238         (find_comparison_dom_walker::before_dom_children): Likewise for
14239         locals "insn", "next", "last_clobber".
14240         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
14242 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14244         * combine-stack-adj.c (struct csa_reflist): Strengthen field
14245         "insn" from rtx to rtx_insn *.
14246         (single_set_for_csa): Likewise for param "insn".
14247         (record_one_stack_ref): Likewise.
14248         (try_apply_stack_adjustment): Likewise.
14249         (struct record_stack_refs_data): Likewise for field "insn".
14250         (maybe_move_args_size_note): Likewise for params "last" and "insn".
14251         (prev_active_insn_bb): Likewise for return type and param "insn".
14252         (next_active_insn_bb): Likewise.
14253         (force_move_args_size_note): Likewise for params "prev" and "last"
14254         and locals "test", "next_candidate", "prev_candidate".
14255         (combine_stack_adjustments_for_block): Strengthen locals
14256         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
14257         rtx_insn *.
14259 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14261         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
14262         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
14263         (subst_insn): Likewise for this variable.
14264         (added_links_insn): Likewise.
14265         (struct insn_link): Likewise for field "insn".
14266         (alloc_insn_link): Likewise for param "insn".
14267         (struct undobuf): Likewise for field "other_insn".
14268         (find_single_use): Likewise for param "insn" and local "next".
14269         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
14270         (delete_noop_moves): Likewise for locals "insn", "next".
14271         (create_log_links): Likewise for locals "insn", "use_insn".
14272         Strengthen local "next_use" from rtx * to rtx_insn **.
14273         (insn_a_feeds_b): Likewise for params "a", "b".
14274         (combine_instructions): Likewise for param "f" and locals "insn",
14275         "next", "prev", "first", "last_combined_insn", "link", "link1",
14276         "temp".  Replace use of NULL_RTX with NULL when referring to
14277         insns.
14278         (setup_incoming_promotions): Likewise for param "first"
14279         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
14280         (can_combine_p): Likewise for params "insn", "i3", "pred",
14281         "pred2", "succ", "succ2" and for local "p".
14282         (combinable_i3pat): Likewise for param "i3".
14283         (cant_combine_insn_p): Likewise for param "insn".
14284         (likely_spilled_retval_p): Likewise.
14285         (adjust_for_new_dest): Likewise.
14286         (update_cfg_for_uncondjump): Likewise, also for local "insn".
14287         (try_combine): Likewise for return type and for params "i3", "i2",
14288         "i1", "i0", "last_combined_insn", and for locals "insn",
14289         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
14290         "i0_insn".  Eliminate local "tem" in favor of new locals
14291         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
14292         checked cast for now to rtx_insn * on the return type of
14293         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
14294         insns.
14295         (find_split_point): Strengthen param "insn" from rtx to
14296         rtx_insn *.
14297         (simplify_set): Likewise for local "other_insn".
14298         (recog_for_combine): Likewise for param "insn".
14299         (record_value_for_reg): Likewise.
14300         (record_dead_and_set_regs_1): Likewise for local
14301         "record_dead_insn".
14302         (record_dead_and_set_regs): Likewise for param "insn".
14303         (record_promoted_value): Likewise.
14304         (check_promoted_subreg): Likewise.
14305         (get_last_value_validate): Likewise.
14306         (reg_dead_at_p): Likewise.
14307         (move_deaths): Likewise for param "to_insn".
14308         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
14309         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
14310         in favor of new locals "tem_note" and "tem_insn", the latter being
14311         an rtx_insn *.
14312         (distribute_links): Strengthen locals "place", "insn" from rtx to
14313         rtx_insn *.
14315 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14317         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
14318         than a const_rtx.
14319         (can_delete_label_p): Require a const rtx_code_label * rather than
14320         a const_rtx.
14321         (delete_insn): Add checked cast to rtx_code_label * when we know
14322         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
14323         rtx to rtx_insn *.
14324         (delete_insn_chain): Strengthen locals "prev" and "current" from
14325         rtx to rtx_insn *.  Add a checked cast when assigning from
14326         "finish" (strengthening the params will come later).  Add a
14327         checked cast to rtx_note * in region where we know
14328         NOTE_P (current).
14329         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
14330         rtx_insn *.
14331         (compute_bb_for_insn): Likewise.
14332         (free_bb_for_insn): Likewise for local "insn".
14333         (compute_bb_for_insn): Likewise.
14334         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
14335         local "insn" from rtx to rtx_insn *
14336         (flow_active_insn_p): Require a const rtx_insn * rather than a
14337         const_rtx.
14338         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
14339         rtx_insn *.
14340         (can_fallthru): Likewise for locals "insn" and "insn2".
14341         (bb_note): Likewise for local "note".
14342         (first_insn_after_basic_block_note): Likewise for local "note" and
14343         for return type.
14344         (rtl_split_block): Likewise for locals "insn" and "next".
14345         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
14346         "end".
14347         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
14348         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
14349         "prev", "tmp".
14350         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
14351         them), "kill_from", "barrier", "new_insn".
14352         (patch_jump_insn): Likewise for params "insn", "old_label".
14353         (redirect_branch_edge): Likewise for locals "old_label", "insn".
14354         (force_nonfallthru_and_redirect): Likewise for locals "insn",
14355         "old_label", "new_label".
14356         (rtl_tidy_fallthru_edge): Likewise for local "q".
14357         (rtl_split_edge): Likewise for locals "before", "last".
14358         (commit_one_edge_insertion): Likewise for locals "before",
14359         "after", "insns", "tmp", "last", adding a checked cast where
14360         currently necessary.
14361         (commit_edge_insertions): Likewise.
14362         (rtl_dump_bb): Likewise for locals "insn", "last".
14363         (print_rtl_with_bb): Likewise for local "x".
14364         (rtl_verify_bb_insns): Likewise for local "x".
14365         (rtl_verify_bb_pointers): Likewise for local "insn".
14366         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
14367         "head", "end".
14368         (rtl_verify_fallthru): Likewise for local "insn".
14369         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
14370         (purge_dead_edges): Likewise for local "insn".
14371         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
14372         (skip_insns_after_block): Likewise for return type and for locals
14373         "insn", "last_insn", "next_head", "prev".
14374         (record_effective_endpoints): Likewise for locals "next_insn",
14375         "insn", "end".
14376         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
14377         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
14378         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
14379         (duplicate_insn_chain): For now, add checked cast from rtx to
14380         rtx_insn * when returning insn.
14381         (cfg_layout_duplicate_bb): Likewise for local "insn".
14382         (cfg_layout_delete_block): Likewise for locals "insn", "next",
14383         "prev", "remaints".
14384         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
14385         (rtl_block_empty_p): Likewise.
14386         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
14387         "split_point", "last".
14388         (rtl_block_ends_with_call_p): Likewise for local "insn".
14389         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
14390         const rtx_insn *.
14391         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
14392         "split_at_insn" from rtx to rtx_insn *.
14393         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
14394         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
14395         to const rtx_insn *.
14396         (rtl_account_profile_record): Likewise.
14398 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14400         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
14401         rtx to rtx_insn *.
14402         (average_num_loop_insns): Likewise.
14403         (init_set_costs): Likewise for local "seq".
14404         (seq_cost): Likewise for param "seq", from const_rtx to const
14405         rtx_insn *.
14407 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14409         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
14410         rtx to rtx_insn *.
14412 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14414         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
14415         "f1" and "f2" from rtx * to rtx_insn **.
14416         (flow_find_head_matching_sequence): Likewise.
14418         * cfgcleanup.c (try_simplify_condjump): Strengthen local
14419         "cbranch_insn" from rtx to rtx_insn *.
14420         (thread_jump): Likewise for local "insn".
14421         (try_forward_edges): Likewise for local "last".
14422         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
14423         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
14424         "real_b_end".
14425         (can_replace_by): Likewise for params "i1", "i2".
14426         (old_insns_match_p): Likewise.
14427         (merge_notes): Likewise.
14428         (walk_to_nondebug_insn): Likewise for param "i1".
14429         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
14430         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
14431         "afterlast1", "afterlast2" from rtx to rtx_insn *.
14432         (flow_find_head_matching_sequence): Strengthen params "f1" and
14433         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
14434         "last1", "last2", "beforelast1", "beforelast2" from rtx to
14435         rtx_insn *.
14436         (outgoing_edges_match): Likewise for locals "last1", "last2".
14437         (try_crossjump_to_edge): Likewise for local "insn".
14438         Replace call to for_each_rtx with for_each_rtx_in_insn.
14440         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
14441         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
14442         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
14443         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
14444         (try_optimize_cfg): Strengthen local "last" from rtx to
14445         rtx_insn *.
14446         (delete_dead_jumptables): Likewise for locals "insn", "next",
14447         "label".
14449         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
14450         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
14451         "rtx else_first_tail", to reflect the basic-block.h changes above.
14453 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14455         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
14456         rtx_insn *.
14457         (purge_dead_tablejump_edges): Likewise.
14458         (find_bb_boundaries): Likewise for locals "insn", "end",
14459         "flow_transfer_insn".
14461 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14463         * caller-save.c (save_call_clobbered_regs): Strengthen locals
14464         "ins" and "prev" from rtx to rtx_insn *.
14466 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14468         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
14469         rtx_insn *.
14470         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
14471         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
14472         "scan_start".
14473         (load_register_parameters): Likewise for local "before_arg".
14474         (check_sibcall_argument_overlap): Likewise for param "insn".
14475         (expand_call): Likewise for locals "normal_call_insns",
14476         "tail_call_insns", "insns", "before_call", "after_args",
14477         "before_arg", "last", "prev".  Strengthen one of the "last" from
14478         rtx to rtx_call_insn *.
14479         (fixup_tail_calls): Strengthen local "insn" from rtx to
14480         rtx_insn *.
14481         (emit_library_call_value_1): Likewise for locals "before_call" and
14482         "last".
14484 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14486         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
14487         and "last" from rtx to rtx_insn *.
14488         (expand_builtin_nonlocal_goto): Likewise for local "insn".
14489         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
14490         rtx_call_insn *.
14491         (expand_errno_check): Strengthen local "lab" from rtx to
14492         rtx_code_label *.
14493         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
14494         rtx_insn *.
14495         (expand_builtin_mathfn_2): Likewise.
14496         (expand_builtin_mathfn_ternary): Likewise.
14497         (expand_builtin_mathfn_3): Likewise.
14498         (expand_builtin_interclass_mathfn): Likewise for local "last".
14499         (expand_builtin_int_roundingfn): Likewise for local "insns".
14500         (expand_builtin_int_roundingfn_2): Likewise.
14501         (expand_builtin_strlen): Likewise for local "before_strlen".
14502         (expand_builtin_strncmp): Likewise for local "seq".
14503         (expand_builtin_signbit): Likewise for local "last".
14504         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
14505         from rtx to rtx_code_label *.
14506         (expand_stack_restore):  Strengthen local "prev" from rtx to
14507         rtx_insn *.
14509 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14511         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
14512         to rtx_insn *.
14513         (struct btr_def_s): Likewise.
14514         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
14515         const rtx_insn *.
14516         (add_btr_def): Likewise.
14517         (new_btr_user): Likewise.
14518         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
14519         rtx to rtx_insn *.
14520         (link_btr_uses): Likewise.
14521         (move_btr_def): Likewise for locals "insp", "old_insn",
14522         "new_insn".  Add checked cast to rtx_insn * for now on result of
14523         gen_move_insn.
14524         (can_move_up): Strengthen param "insn" from const_rtx to
14525         const rtx_insn *.
14527 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14529         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
14530         rtx_insn *.
14531         (get_uncond_jump_length): Likewise for locals "label", "jump".
14532         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
14533         "jump", "insn".
14534         (add_labels_and_missing_jumps): Likewise for local "new_jump".
14535         (fix_up_fall_thru_edges): Likewise for local "old_jump".
14536         (find_jump_block): Likewise for local "insn".
14537         (fix_crossing_conditional_branches): Likewise for locals
14538         "old_jump", "new_jump".
14539         (fix_crossing_unconditional_branches): Likewise for locals
14540         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
14541         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
14543 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14545         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
14546         rtx to rtx_insn *.
14547         (struct mem_insn): Likewise for field "insn".
14548         (reg_next_use): Strengthen from rtx * to rtx_insn **.
14549         (reg_next_inc_use): Likewise.
14550         (reg_next_def): Likewise.
14551         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
14552         from rtx to rtx_insn *.
14553         (move_insn_before): Likewise for param "next_insn" and local "insns".
14554         (attempt_change): Likewise for local "mov_insn".
14555         (try_merge): Likewise for param "last_insn".
14556         (get_next_ref): Likewise for return type and local "insn".
14557         Strengthen param "next_array" from rtx * to rtx_insn **.
14558         (parse_add_or_inc): Strengthen param "insn" from rtx to
14559         rtx_insn *.
14560         (find_inc): Likewise for locals "insn" and "other_insn" (three of
14561         the latter).
14562         (merge_in_block): Likewise for locals "insn", "curr",
14563         "other_insn".
14564         (pass_inc_dec::execute): Update allocations of the arrays to
14565         reflect the stronger types.
14567 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14569         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
14570         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
14571         from rtx to rtx_code_label *.
14573 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14575         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
14576         to rtx_insn *.
14578 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14580         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
14581         generated a warning and prevented bootstrapping the compiler.
14583 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14585         * rtl.h (delete_related_insns): Strengthen return type from rtx to
14586         rtx_insn *.
14588         * jump.c (delete_related_insns): Likewise, also for locals "next"
14589         and "prev".
14591 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14593         * genautomata.c (output_internal_insn_latency_func): When writing
14594         the function "internal_insn_latency" to insn-automata.c,
14595         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14596         allowing the optional guard function of (define_bypass) clauses to
14597         expect a pair of rtx_insn *, rather than a pair of rtx.
14598         (output_insn_latency_func): When writing the function
14599         "insn_latency", add an "uncast_" prefix to params "insn" and
14600         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
14601         using checked casts from the params, thus enabling the above
14602         change to the generated "internal_insn_latency" function.
14604 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
14606         PR tree-optimization/62091
14607         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
14608         handle correctly arrays.
14609         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
14610         inheritance binfos.
14611         (record_known_type): Walk into inner type.
14612         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
14613         condition on no type changes.
14615 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14617         * genattrtab.c (write_attr_get): Within the generated get_attr_
14618         functions, rename param "insn" to "uncast_insn" and reintroduce
14619         "insn" as an local rtx_insn * using a checked cast, so that "insn"
14620         is an rtx_insn * within insn-attrtab.c
14622 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14624         * output.h (peephole): Strengthen return type from rtx to
14625         rtx_insn *.
14626         * rtl.h (delete_for_peephole): Likewise for both params.
14627         * genpeep.c (main): In generated "peephole" function, strengthen
14628         return type and local "insn" from rtx to rtx_insn *.  For now,
14629         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14630         rtx_insn *, with a checked cast.
14631         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14632         locals "insn", "next", "prev" from rtx to rtx_insn *.
14634 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
14636         PR tree-optimization/62112
14637         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14638         * gimple-iterator.h (gsi_replace): Return bool.
14639         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14640         moved from ref_may_alias_global_p.
14641         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14642         New overloads.
14643         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14644         (stmt_kills_ref_p_1): Rename...
14645         (stmt_kills_ref_p): ... to this.
14646         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14647         stmt_kills_ref_p): Declare.
14648         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14649         Move the self-assignment case...
14650         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14652 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14654         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14656         * emit-rtl.c (try_split): Likewise, also for locals "before" and
14657         "after".  For now, don't strengthen param "trial", which requires
14658         adding checked casts when returning it.
14660 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14662         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14663         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
14664         "var_location" hook from rtx to rtx_insn *.
14665         (debug_nothing_rtx): Delete in favor of...
14666         (debug_nothing_rtx_code_label): New prototype.
14667         (debug_nothing_rtx_rtx): Delete unused prototype.
14668         (debug_nothing_rtx_insn): New prototype.
14670         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14671         invoking debug_hooks->var_location (in two places, one in a NOTE
14672         case of a switch statement, the other guarded by a CALL_P
14673         conditional.  Add checked cast to rtx_code_label * when invoking
14674         debug_hooks->label (within CODE_LABEL case of switch statement).
14676         * dbxout.c (dbx_debug_hooks): Update "label" hook from
14677         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14678         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14679         (xcoff_debug_hooks): Likewise.
14680         * debug.c (do_nothing_debug_hooks): Likewise.
14681         (debug_nothing_rtx): Delete in favor of...
14682         (debug_nothing_rtx_insn): New function.
14683         (debug_nothing_rtx_rtx): Delete unused function.
14684         (debug_nothing_rtx_code_label): New function.
14685         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14686         debug_nothing_rtx to debug_nothing_rtx_code_label.
14687         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14688         to rtx_insn *.
14689         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14690         debug_nothing_rtx to debug_nothing_rtx_insn.
14691         (sdbout_label): Strengthen param "insn" from rtx to
14692         rtx_code_label *.
14693         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14694         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14695         "var_location" hook from debug_nothing_rtx to
14696         debug_nothing_rtx_insn.
14698 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14700         * recog.h (insn_output_fn): Update this function typedef to match
14701         the changes below to the generated output functions, strengthening
14702         the 2nd param from rtx to rtx_insn *.
14704         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14705         insn when invoking an output function, to match the new signature
14706         of insn_output_fn with a stronger second param.
14708         * genconditions.c (write_header): In the generated code for
14709         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14710         to match the other changes in this patch.
14712         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14713         the generated "gen_" functions from rtx to rtx_insn * within their
14714         implementations.
14716         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14717         the subfunctions within the generated "recog_", "split", "peephole2"
14718         function trees from rtx to rtx_insn *.  For now, the top-level
14719         generated functions ("recog", "split", "peephole2") continue to
14720         take a plain rtx for "insn", to avoid introducing dependencies on
14721         other patches.  Rename this 2nd param from "insn" to
14722         "uncast_insn", and reintroduce "insn" as a local variable of type
14723         rtx_insn *, initialized at the top of the generated function with
14724         a checked cast on "uncast_insn".
14725         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14726         the generated "gen_" functions from rtx to rtx_insn * within their
14727         prototypes.
14729         * genoutput.c (process_template): Strengthen the 2nd param within
14730         the generated "output_" functions "insn" from rtx to rtx_insn *.
14732 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14734         * tree-profile.c (tree_profiling): Skip external functions
14735         when doing coverage instrumentation.
14736         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14738 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14740         * config/rs6000/altivec.h (vec_cpsgn): New #define.
14741         (vec_mergee): Likewise.
14742         (vec_mergeo): Likewise.
14743         (vec_cntlz): Likewise.
14744         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14745         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14746         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14747         VMRGEW, and VMRGOW.
14748         * doc/extend.texi: Document various forms of vec_cpsgn,
14749         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14750         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14751         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14752         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14753         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14755 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14757         * config/rs6000/rs6000.c (context.h): New include.
14758         (tree-pass.h): Likewise.
14759         (make_pass_analyze_swaps): New decl.
14760         (rs6000_option_override): Register pass_analyze_swaps.
14761         (swap_web_entry): New subsclass of web_entry_base (df.h).
14762         (special_handling_values): New enum.
14763         (union_defs): New function.
14764         (union_uses): Likewise.
14765         (insn_is_load_p): Likewise.
14766         (insn_is_store_p): Likewise.
14767         (insn_is_swap_p): Likewise.
14768         (rtx_is_swappable_p): Likewise.
14769         (insn_is_swappable_p): Likewise.
14770         (chain_purpose): New enum.
14771         (chain_contains_only_swaps): New function.
14772         (mark_swaps_for_removal): Likewise.
14773         (swap_const_vector_halves): Likewise.
14774         (adjust_subreg_index): Likewise.
14775         (permute_load): Likewise.
14776         (permute_store): Likewise.
14777         (handle_special_swappables): Likewise.
14778         (replace_swap_with_copy): Likewise.
14779         (dump_swap_insn_table): Likewise.
14780         (rs6000_analyze_swaps): Likewise.
14781         (pass_data_analyze_swaps): New pass_data.
14782         (pass_analyze_swaps): New rtl_opt_pass.
14783         (make_pass_analyze_swaps): New function.
14784         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14786 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14788         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14789         type from rtx to rtx_insn *.
14790         (create_copy_of_insn_rtx): Likewise.
14791         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14792         (create_copy_of_insn_rtx): Likewise, also for local "res".
14794 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14796         * rtl.h (find_first_parameter_load): Strengthen return type from
14797         rtx to rtx_insn *.
14798         * rtlanal.c (find_first_parameter_load): Strengthen return type
14799         from rtx to rtx_insn *.  Add checked cast for now, to postpone
14800         strengthening the params.
14802 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14804         PR fortran/44054
14805         * diagnostic.c: Set default caret.
14806         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14807         line is needed.
14808         * diagnostic.h (struct diagnostic_context):
14810 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14812         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14813         (sel_bb_head): Strengthen return type insn_t (currently just an
14814         rtx) to rtx_insn *.
14815         (sel_bb_end): Likewise.
14817         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14818         (sel_bb_head): Strengthen return type and local "head" from
14819         insn_t (currently just an rtx) to rtx_insn *.
14820         (sel_bb_end): Likewise for return type.
14821         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14822         working with insn.
14824 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14826         * basic-block.h (get_last_bb_insn): Strengthen return type from
14827         rtx to rtx_insn *.
14828         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14829         end".
14831 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14833         PR fortran/44054
14834         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14835         to here ...
14836         (diagnostic_report_diagnostic): ... from here.
14837         * toplev.c (general_init): Move code to c-family.
14839 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14841         * df.h (web_entry_base): Replace existing struct web_entry with a
14842         new class web_entry_base with only the predecessor member.
14843         (unionfind_root): Remove declaration and move to class member.
14844         (unionfind_union): Remove declaration and move to friend
14845         function.
14846         (union_defs): Remove declaration.
14847         * web.c (web_entry_base::unionfind_root): Modify to be member
14848         function and adjust accessors.
14849         (unionfind_union): Modify to be friend function and adjust
14850         accessors.
14851         (web_entry): New subclass of web_entry_base containing the reg
14852         member.
14853         (union_match_dups): Modify for struct -> class changes.
14854         (union_defs): Likewise.
14855         (entry_register): Likewise.
14856         (pass_web::execute): Likewise.
14858 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
14860         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14861         builtin define __VEC_ELEMENT_REG_ORDER__.
14863 2014-08-20  Martin Jambor  <mjambor@suse.cz>
14864             Wei Mi  <wmi@google.com>
14866         PR ipa/60449
14867         PR middle-end/61776
14868         * tree-ssa-operands.c (update_stmt_operands): Remove
14869         MODIFIED_NORETURN_CALLS.
14870         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14871         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14872         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14873         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14874         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14875         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14876         (gimple_call_set_ctrl_altering): New func.
14877         (gimple_call_ctrl_altering_p): Ditto.
14878         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14879         (make_blocks): Use gimple_call_initialize_ctrl_altering.
14880         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14881         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14882         remove MODIFIED_NORETURN_CALLS.
14884 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14886         * coverage.c (coverage_compute_profile_id): Return non-0;
14887         also handle symbols with unique name.
14888         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14890 2014-08-20  Steve Ellcey  <sellcey@mips.com>
14892         PR middle-end/49191
14893         * doc/sourcebuild.texi (non_strict_align): New.
14895 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14897         * cgraphunit.c (ipa_passes, compile): Reshedule
14898         symtab_remove_unreachable_nodes passes; update comments.
14899         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14900         TODO_remove_functions before the pass; the functions ought to be
14901         already removed.
14902         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14903         TODO_remove_functions.
14904         * passes.c (pass_data_early_local_passes): Do not schedule function
14905         removal.
14906         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14908 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14910         PR c/59304
14911         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14912         before setting the option.
14913         * diagnostic.c (diagnostic_classify_diagnostic): Record
14914         command-line status.
14916 2014-08-20  Richard Biener  <rguenther@suse.de>
14918         PR lto/62190
14919         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14920         to build uint{16,32,64}_type_node.
14922 2014-08-20  Terry Guo  <terry.guo@arm.com>
14924         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14925         with immediate_operand.
14927 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
14929         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14930         "insn" from an as_a to a safe_as_a, for the case when "insn" is
14931         NULL.
14933 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14935         PR preprocessor/51303
14936         * incpath.c (remove_duplicates): Use cpp_warning.
14938 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14940         PR c/60975
14941         PR c/53063
14942         * doc/options.texi (CPP): Document it.
14943         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14944         * optc-gen.awk: Handle CPP.
14945         * opth-gen.awk: Likewise.
14947 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14949         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14950         rtx_insn *.
14951         (duplicate_insn_chain): Likewise.
14952         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14953         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
14954         checked cast for now (until we can strengthen the params in the
14955         same way).
14956         (duplicate_insn_chain): Likewise.
14958 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14960         * rtl.h (next_cc0_user): Strengthen return type from rtx to
14961         rtx_insn *.
14962         (prev_cc0_setter): Likewise.
14964         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14965         rtx_insn *, adding checked casts for now as necessary.
14966         (prev_cc0_setter): Likewise.
14968 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14970         * expr.h (emit_move_insn): Strengthen return type from rtx to
14971         rtx_insn *.
14972         (emit_move_insn_1): Likewise.
14973         (emit_move_complex_push): Likewise.
14974         (emit_move_complex_parts): Likewise.
14976         * expr.c (emit_move_via_integer): Strengthen return type from rtx
14977         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
14978         with insns.
14979         (emit_move_complex_push): Strengthen return type from rtx to
14980         rtx_insn *.
14981         (emit_move_complex): Likewise, also for local "ret".
14982         (emit_move_ccmode): Likewise.
14983         (emit_move_multi_word): Likewise for return type and locals
14984         "last_insn", "seq".
14985         (emit_move_insn_1): Likewise for return type and locals "result",
14986         "ret".
14987         (emit_move_insn): Likewise for return type and local "last_insn".
14988         (compress_float_constant): Likewise.
14990 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14992         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14993         from rtx to rtx_insn *.
14995         * rtl.h (emit_insn_before): Likewise.
14996         (emit_insn_before_noloc): Likewise.
14997         (emit_insn_before_setloc): Likewise.
14998         (emit_jump_insn_before): Likewise.
14999         (emit_jump_insn_before_noloc): Likewise.
15000         (emit_jump_insn_before_setloc): Likewise.
15001         (emit_call_insn_before): Likewise.
15002         (emit_call_insn_before_noloc): Likewise.
15003         (emit_call_insn_before_setloc): Likewise.
15004         (emit_debug_insn_before): Likewise.
15005         (emit_debug_insn_before_noloc): Likewise.
15006         (emit_debug_insn_before_setloc): Likewise.
15007         (emit_label_before): Likewise.
15008         (emit_insn_after): Likewise.
15009         (emit_insn_after_noloc): Likewise.
15010         (emit_insn_after_setloc): Likewise.
15011         (emit_jump_insn_after): Likewise.
15012         (emit_jump_insn_after_noloc): Likewise.
15013         (emit_jump_insn_after_setloc): Likewise.
15014         (emit_call_insn_after): Likewise.
15015         (emit_call_insn_after_noloc): Likewise.
15016         (emit_call_insn_after_setloc): Likewise.
15017         (emit_debug_insn_after): Likewise.
15018         (emit_debug_insn_after_noloc): Likewise.
15019         (emit_debug_insn_after_setloc): Likewise.
15020         (emit_label_after): Likewise.
15021         (emit_insn): Likewise.
15022         (emit_debug_insn): Likewise.
15023         (emit_jump_insn): Likewise.
15024         (emit_call_insn): Likewise.
15025         (emit_label): Likewise.
15026         (gen_clobber): Likewise.
15027         (emit_clobber): Likewise.
15028         (gen_use): Likewise.
15029         (emit_use): Likewise.
15030         (emit): Likewise.
15032         (emit_barrier_before): Strengthen return type from rtx to
15033         rtx_barrier *.
15034         (emit_barrier_after): Likewise.
15035         (emit_barrier): Likewise.
15037         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
15038         from rtx to rtx_insn *.  Add checked casts for now when converting
15039         "last" from rtx to rtx_insn *.
15040         (emit_insn_before_noloc): Likewise for return type.
15041         (emit_jump_insn_before_noloc): Likewise.
15042         (emit_call_insn_before_noloc): Likewise.
15043         (emit_debug_insn_before_noloc): Likewise.
15044         (emit_barrier_before): Strengthen return type and local "insn"
15045         from rtx to rtx_barrier *.
15046         (emit_label_before): Strengthen return type from rtx to
15047         rtx_insn *.  Add checked cast for now when returning param
15048         (emit_pattern_after_noloc): Strengthen return type from rtx to
15049         rtx_insn *.  Add checked casts for now when converting "last" from
15050         rtx to rtx_insn *.
15051         (emit_insn_after_noloc): Strengthen return type from rtx to
15052         rtx_insn *.
15053         (emit_jump_insn_after_noloc): Likewise.
15054         (emit_call_insn_after_noloc): Likewise.
15055         (emit_debug_insn_after_noloc): Likewise.
15056         (emit_barrier_after): Strengthen return type from rtx to
15057         rtx_barrier *.
15058         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
15059         Add checked cast for now when converting "label" from rtx to
15060         rtx_insn *.
15061         (emit_pattern_after_setloc): Strengthen return type from rtx to
15062         rtx_insn *.  Add checked casts for now when converting "last" from
15063         rtx to rtx_insn *.
15064         (emit_pattern_after): Strengthen return type from rtx to
15065         rtx_insn *.
15066         (emit_insn_after_setloc): Likewise.
15067         (emit_insn_after): Likewise.
15068         (emit_jump_insn_after_setloc): Likewise.
15069         (emit_jump_insn_after): Likewise.
15070         (emit_call_insn_after_setloc): Likewise.
15071         (emit_call_insn_after): Likewise.
15072         (emit_debug_insn_after_setloc): Likewise.
15073         (emit_debug_insn_after): Likewise.
15074         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
15075         when converting "last" from rtx to rtx_insn *.
15076         (emit_pattern_before): Strengthen return type from rtx to
15077         rtx_insn *.
15078         (emit_insn_before_setloc): Likewise.
15079         (emit_insn_before): Likewise.
15080         (emit_jump_insn_before_setloc): Likewise.
15081         (emit_jump_insn_before): Likewise.
15082         (emit_call_insn_before_setloc): Likewise.
15083         (emit_call_insn_before): Likewise.
15084         (emit_debug_insn_before_setloc): Likewise.
15085         (emit_debug_insn_before): Likewise.
15086         (emit_insn): Strengthen return type and locals "last", "insn",
15087         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
15088         within cases where we know we have an insn.
15089         (emit_debug_insn): Likewise.
15090         (emit_jump_insn): Likewise.
15091         (emit_call_insn): Strengthen return type and local "insn" from rtx
15092         to rtx_insn *.
15093         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
15094         a checked cast to rtx_insn * for now on "label".
15095         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
15096         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
15097         (emit_use): Likewise.
15098         (gen_use): Likewise, also for local "seq".
15099         (emit): Likewise for return type and local "insn".
15100         (rtx_insn): Likewise for return type and local "new_rtx".
15102         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
15103         from rtx to rtx_barrier *.
15105         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
15106         changed return type from rtx to rtx_insn *, we must update
15107         "emit_fn" type, and this in turn means updating...
15108         (frame_insn): ...this.  Strengthen return type from rtx to
15109         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
15111 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15113         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
15114         rtx to rtx_jump_table_data *.  Also for local.
15115         * rtl.h (emit_jump_table_data): Likewise.
15117 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15119         * basic-block.h (create_basic_block_structure): Strengthen third
15120         param "bb_note" from rtx to rtx_note *.
15121         * rtl.h (emit_note_before): Strengthen return type from rtx to
15122         rtx_note *.
15123         (emit_note_after): Likewise.
15124         (emit_note): Likewise.
15125         (emit_note_copy): Likewise.  Also, strengthen param similarly.
15126         * function.h (struct rtl_data): Strengthen field
15127         "x_stack_check_probe_note" from rtx to rtx_note *.
15129         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
15130         from rtx to rtx_note *.
15131         * cfgrtl.c (create_basic_block_structure): Strengthen third param
15132         "bb_note" from rtx to rtx_note *.
15133         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
15134         when calling emit_note_copy.
15135         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
15136         rtx_note *.
15137         (emit_note_after): Likewise.
15138         (emit_note_before): Likewise.
15139         (emit_note_copy): Likewise.  Also, strengthen param similarly.
15140         (emit_note): Likewise.
15141         * except.c (emit_note_eh_region_end): Likewise for return type.
15142         Strengthen local "next" from rtx to rtx_insn *.
15143         (convert_to_eh_region_ranges): Strengthen local "note"
15144         from rtx to rtx_note *.
15145         * final.c (change_scope): Likewise.
15146         (reemit_insn_block_notes): Likewise, for both locals named "note".
15147         Also, strengthen local "insn" from rtx to rtx_insn *.
15148         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
15149         rtx to rtx_note *.
15150         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
15151         strengthen local "seq" from rtx to rtx_insn *.
15152         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
15153         to rtx_note *.
15154         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
15155         vec<rtx_note *>.
15156         (get_bb_note_from_pool): Strengthen return type from rtx to
15157         rtx_note *.
15158         (sel_create_basic_block): Strengthen local "new_bb_note" from
15159         insn_t to rtx_note *.
15160         * var-tracking.c (emit_note_insn_var_location): Strengthen local
15161         "note" from rtx to rtx_note *.
15162         (emit_notes_in_bb): Likewise.
15164 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15166         * function.h (struct rtl_data): Strengthen field
15167         "x_parm_birth_insn" from rtx to rtx_insn *.
15168         * function.c (struct assign_parm_data_all): Strengthen fields
15169         "first_conversion_insn" and "last_conversion_insn" from rtx to
15170         rtx_insn *.
15172 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15174         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
15175         to rtx_insn *; also for local "var_end_seq".
15176         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
15177         (maybe_cleanup_end_of_block): Likewise for param "last" and local
15178         "insn".
15179         (expand_gimple_cond): Likewise for locals "last2" and "last".
15180         (mark_transaction_restart_calls): Likewise for local "insn".
15181         (expand_gimple_stmt): Likewise for return type and locals "last"
15182         and "insn".
15183         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
15184         (avoid_complex_debug_insns): Likewise for param "insn".
15185         (expand_debug_locations): Likewise for locals "insn", "last",
15186         "prev_insn" and "insn2".
15187         (expand_gimple_basic_block): Likewise for local "last".
15188         (construct_exit_block): Likewise for locals "head", "end",
15189         "orig_end".
15190         (pass_expand::execute): Likewise for locals "var_seq",
15191         "var_ret_seq", "next".
15193 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15195         * asan.h (asan_emit_stack_protection): Strengthen return type from
15196         rtx to rtx_insn *.
15197         * asan.c (asan_emit_stack_protection): Likewise.  Add local
15198         "insns" to hold the return value.
15200 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15202         * basic-block.h (bb_note): Strengthen return type from rtx to
15203         rtx_note *.
15204         * sched-int.h (bb_note): Likewise.
15205         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
15207 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15209         * rtl.h (make_insn_raw): Strengthen return type from rtx to
15210         rtx_insn *.
15212         * emit-rtl.c (make_insn_raw): Strengthen return type and local
15213         "insn" from rtx to rtx_insn *.
15214         (make_debug_insn_raw): Strengthen return type from rtx to
15215         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
15216         (make_jump_insn_raw):  Strengthen return type from rtx to
15217         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
15218         (make_call_insn_raw):  Strengthen return type from rtx to
15219         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
15220         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
15221         callback from rtx to rtx_insn *; likewise for local "insn" and
15222         "next", adding a checked cast to rtx_insn in the relevant cases of
15223         the switch statement.
15224         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
15225         callback from rtx to rtx_insn *.
15226         (emit_pattern_after_setloc): Likewise.
15227         (emit_pattern_after): Likewise.
15228         (emit_pattern_before_setloc): Likewise.
15229         (emit_pattern_before): Likewise.
15231 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15233         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
15234         rtx_call_insn *.
15235         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
15236         accepting an rtx_insn *.
15237         (last_call_insn): Strengthen return type from rtx to
15238         rtx_call_insn *.
15240 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15242         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
15243         "insns" from rtx to rtx_insn *.
15244         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
15245         locals "insn" and "prev".
15247 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15249         * rtl.h (tablejump_p): Strengthen third param from rtx * to
15250         rtx_jump_table_data **.
15252         * cfgbuild.c (make_edges): Introduce local "table", using it in
15253         place of "tmp" for jump table data.
15254         (find_bb_boundaries): Strengthen local "table" from rtx to
15255         rtx_jump_table_data *.
15256         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15257         (outgoing_edges_match): Likewise for locals "table1" and "table2".
15258         (try_crossjump_to_edge): Likewise.
15259         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
15260         "table".
15261         (patch_jump_insn): Introduce local "table", using it in place of
15262         "tmp" for jump table data.
15263         (force_nonfallthru_and_redirect): Introduce local "table", so that
15264         call to tablejump_p can receive an rtx_jump_table_data **.  Update
15265         logic around the call to overwrite "note" appropriately if
15266         tablejump_p returns non-zero.
15267         (get_last_bb_insn): Introduce local "table", using it in place of
15268         "tmp" for jump table data.
15269         * dwarf2cfi.c (create_trace_edges): Likewise.
15271         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
15272         from rtx to rtx_jump_table_data *.
15273         (create_fix_barrier): Strengthen local "tmp" from rtx to
15274         rtx_jump_table_data *.
15275         (arm_reorg): Likewise for local "table".
15277         * config/s390/s390.c (s390_chunkify_start): Likewise.
15279         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
15281         * jump.c (delete_related_insns): Strengthen local "lab_next" from
15282         rtx to rtx_jump_table_data *.
15284         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
15285         rtx_jump_table_data **.  Add a checked cast when writing through
15286         the pointer: we know there that local "table" is non-NULL and that
15287         JUMP_TABLE_DATA_P (table) holds.
15288         (label_is_jump_target_p): Introduce local "table", using it in
15289         place of "tmp" for jump table data.
15291 2014-08-19  Marek Polacek  <polacek@redhat.com>
15293         PR c++/62153
15294         * doc/invoke.texi: Document -Wbool-compare.
15296 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15298         * rtl.h (entry_of_function): Strengthen return type from rtx to
15299         rtx_insn *.
15300         * cfgrtl.c (entry_of_function): Likewise.
15302 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15304         * emit-rtl.h (get_insns): Strengthen return type from rtx to
15305         rtx_insn *, adding a checked cast for now.
15306         (get_last_insn): Likewise.
15308 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15310         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
15311         rtx_code_label *.
15313         * emit-rtl.c (gen_label_rtx): Likewise.
15315 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15317         * rtl.h (previous_insn): Strengthen return type from rtx to
15318         rtx_insn *.
15319         (next_insn): Likewise.
15320         (prev_nonnote_insn): Likewise.
15321         (prev_nonnote_insn_bb): Likewise.
15322         (next_nonnote_insn): Likewise.
15323         (next_nonnote_insn_bb): Likewise.
15324         (prev_nondebug_insn): Likewise.
15325         (next_nondebug_insn): Likewise.
15326         (prev_nonnote_nondebug_insn): Likewise.
15327         (next_nonnote_nondebug_insn): Likewise.
15328         (prev_real_insn): Likewise.
15329         (next_real_insn): Likewise.
15330         (prev_active_insn): Likewise.
15331         (next_active_insn): Likewise.
15333         * emit-rtl.c (next_insn): Strengthen return type from rtx to
15334         rtx_insn *, adding a checked cast.
15335         (previous_insn): Likewise.
15336         (next_nonnote_insn): Likewise.
15337         (next_nonnote_insn_bb): Likewise.
15338         (prev_nonnote_insn): Likewise.
15339         (prev_nonnote_insn_bb): Likewise.
15340         (next_nondebug_insn): Likewise.
15341         (prev_nondebug_insn): Likewise.
15342         (next_nonnote_nondebug_insn): Likewise.
15343         (prev_nonnote_nondebug_insn): Likewise.
15344         (next_real_insn): Likewise.
15345         (prev_real_insn): Likewise.
15346         (next_active_insn): Likewise.
15347         (prev_active_insn): Likewise.
15349         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
15350         param "stepfunc" so that it returns an rtx_insn * rather than an
15351         rtx, to track the change to prev_nonnote_insn_bb, which is the
15352         only function this is called with.
15353         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
15355 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
15357         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
15358         assert.
15360 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15362         * coretypes.h (class rtx_debug_insn): Add forward declaration.
15363         (class rtx_nonjump_insn): Likewise.
15364         (class rtx_jump_insn): Likewise.
15365         (class rtx_call_insn): Likewise.
15366         (class rtx_jump_table_data): Likewise.
15367         (class rtx_barrier): Likewise.
15368         (class rtx_code_label): Likewise.
15369         (class rtx_note): Likewise.
15371         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
15372         adding the invariant DEBUG_INSN_P (X).
15373         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
15374         the invariant NONJUMP_INSN_P (X).
15375         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
15376         the invariant JUMP_P (X).
15377         (class rtx_call_insn): New, a subclass of rtx_insn, adding
15378         the invariant CALL_P (X).
15379         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
15380         invariant JUMP_TABLE_DATA_P (X).
15381         (class rtx_barrier): New, a subclass of rtx_insn, adding the
15382         invariant BARRIER_P (X).
15383         (class rtx_code_label): New, a subclass of rtx_insn, adding
15384         the invariant LABEL_P (X).
15385         (class rtx_note): New, a subclass of rtx_insn, adding
15386         the invariant NOTE_P(X).
15387         (is_a_helper <rtx_debug_insn *>::test): New.
15388         (is_a_helper <rtx_nonjump_insn *>::test): New.
15389         (is_a_helper <rtx_jump_insn *>::test): New.
15390         (is_a_helper <rtx_call_insn *>::test): New.
15391         (is_a_helper <rtx_jump_table_data *>::test): New functions,
15392         overloaded for both rtx and rtx_insn *.
15393         (is_a_helper <rtx_barrier *>::test): New.
15394         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
15395         for both rtx and rtx_insn *.
15396         (is_a_helper <rtx_note *>::test): New.
15398 2014-08-19  Marek Polacek  <polacek@redhat.com>
15400         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
15401         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15402         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
15403         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15405 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15407         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
15408         rtx_insn *.  To help with transition, for now, convert from an
15409         access macro into a pair of functions: BND_TO, returning an
15410         rtx_insn *, and...
15411         (SET_BND_TO): New function, for use where BND_TO is used as an
15412         lvalue.
15414         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
15415         SET_BND_TO.
15416         (BND_TO): New function, adding a checked cast.
15417         (SET_BND_TO): New function.
15419         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
15420         SET_BND_TO.
15421         (compute_av_set_on_boundaries): Likewise.
15423 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15425         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
15426         destination if it is used in source.
15427         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
15428         (*popcount<mode>2_falsedep_1): Likewise.
15430 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15432         PR other/62168
15433         * configure.ac: Set install_gold_as_default to no first.
15434         * configure: Regenerated.
15436 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15438         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
15439         "note_list" field will eventually be an rtx_insn *.  To help with
15440         transition, for now, convert from an access macro into a pair of
15441         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
15442         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
15443         used as an lvalue.
15445         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
15446         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
15448         * sel-sched-ir.c (init_bb): Likewise.
15449         (sel_restore_notes): Likewise.
15450         (move_bb_info): Likewise.
15451         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
15452         (SET_BB_NOTE_LIST): New function.
15454 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15456         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
15457         field will eventually be an rtx_insn *.  To help with transition,
15458         for now, convert from an access macro into a pair of functions:
15459         VINSN_INSN_RTX, returning an rtx_insn *, and...
15460         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
15461         is used as an lvalue.
15463         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
15464         SET_VINSN_INSN_RTX where it's used as an lvalue.
15465         (VINSN_INSN_RTX): New function.
15466         (SET_VINSN_INSN_RTX): New function.
15468 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15470         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
15471         eventually be rtx_insn *, but to help with transition, for now,
15472         convert from an access macro into a pair of functions: DEP_PRO
15473         returning an rtx_insn * and...
15474         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
15475         lvalue, returning an rtx&.
15476         (DEP_CON): Analogous changes to DEP_PRO above.
15477         (SET_DEP_CON): Likewise.
15479         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
15480         an lvalue to SET_DEP_CON.
15481         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
15482         (sd_copy_back_deps): Likewise for DEP_CON.
15483         (DEP_PRO): New function, adding a checked cast for now.
15484         (DEP_CON): Likewise.
15485         (SET_DEP_PRO): New function.
15486         (SET_DEP_CON): Likewise.
15488 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15490         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
15491         (extra_options): Add i386/cygwin.opt.
15492         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
15493         (CPP_SPEC): Accept -pthread.
15494         (LINK_SPEC): Ditto.
15495         (GOMP_SELF_SPECS): Update comment.
15496         * config/i386/cygwin.opt: New file for -pthread flag.
15498 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15500         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
15501         * df.h (DF_REF_INSN): Convert from a macro to a function, so
15502         that we can return an rtx_insn *.
15504 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15506         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
15507         when building executables, not DLLs.  Add --large-address-aware
15508         under the same conditions.
15509         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
15510         when building executables, not DLLs.  Add --large-address-aware
15511         under the same conditions when using -m32.
15513         * config/i386/cygwin-stdint.h: Throughout, make type
15514         definitions dependent on target architecture, not host.
15516 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15518         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
15519         the return type from rtx to rtx_insn *,  which will enable various
15520         conversions in followup patches.  For now this is is done by a
15521         checked cast.
15522         (NEXT_INSN): Likewise.
15523         (SET_PREV_INSN): Convert to an inline function.  This is intended
15524         for use as an lvalue, and so returns an rtx& to allow in-place
15525         modification.
15526         (SET_NEXT_INSN): Likewise.
15528 2014-07-08  Mark Wielaard  <mjw@redhat.com>
15530         PR debug/59051
15531         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
15533 2014-08-19  Marek Polacek  <polacek@redhat.com>
15535         PR c/61271
15536         * cgraphunit.c (handle_alias_pairs): Fix condition.
15538 2014-08-19  Richard Biener  <rguenther@suse.de>
15540         * gimple-fold.c (fold_gimple_assign): Properly build a
15541         null-pointer constant when devirtualizing addresses.
15543 2014-07-07  Mark Wielaard  <mjw@redhat.com>
15545         * dwarf2out.c (decl_quals): New function.
15546         (modified_type_die): Take one cv_quals argument instead of two,
15547         one for const and one for volatile.
15548         (add_type_attribute): Likewise.
15549         (generic_parameter_die): Call add_type_attribute with one modifier
15550         argument.
15551         (base_type_for_mode): Likewise.
15552         (add_bounds_info): Likewise.
15553         (add_subscript_info): Likewise.
15554         (gen_array_type_die): Likewise.
15555         (gen_descr_array_type_die): Likewise.
15556         (gen_entry_point_die): Likewise.
15557         (gen_enumeration_type_die): Likewise.
15558         (gen_formal_parameter_die): Likewise.
15559         (gen_subprogram_die): Likewise.
15560         (gen_variable_die): Likewise.
15561         (gen_const_die): Likewise.
15562         (gen_field_die): Likewise.
15563         (gen_pointer_type_die): Likewise.
15564         (gen_reference_type_die): Likewise.
15565         (gen_ptr_to_mbr_type_die): Likewise.
15566         (gen_inheritance_die): Likewise.
15567         (gen_subroutine_type_die): Likewise.
15568         (gen_typedef_die): Likewise.
15569         (force_type_die): Likewise.
15571 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15573         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
15574         if unset.
15575         * configure: Regenerate.
15577 2014-08-19  Richard Biener  <rguenther@suse.de>
15579         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
15580         DECL_EXTERNALs in BLOCKs as non-references.
15581         * tree-streamer-out.c (streamer_write_chain): Likewise.
15583 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15584             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15585             Anna Tikhonova  <anna.tikhonova@intel.com>
15586             Ilya Tocar  <ilya.tocar@intel.com>
15587             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15588             Ilya Verbin  <ilya.verbin@intel.com>
15589             Kirill Yukhin  <kirill.yukhin@intel.com>
15590             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15592         * config/i386/sse.md
15593         (define_mode_iterator VI48_AVX512F): Delete.
15594         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
15595         (define_mode_iterator VI2_AVX512VL): Ditto.
15596         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
15597         Delete.
15598         (define_insn
15599         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
15600         New.
15601         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
15602         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
15603         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15604         with VI48_AVX512F_AVX512VL): New.
15605         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15606         with VI2_AVX512VL): Ditto.
15608 2014-08-19  Marek Polacek  <polacek@redhat.com>
15610         * doc/invoke.texi: Document -Wc99-c11-compat.
15612 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15614         * rtl.h (PREV_INSN): Split macro in two: the existing one,
15615         for rvalues, and...
15616         (SET_PREV_INSN): New macro, for use as an lvalue.
15617         (NEXT_INSN, SET_NEXT_INSN): Likewise.
15619         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
15620         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
15621         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15622         (fixup_abnormal_edges): Likewise.
15623         (unlink_insn_chain): Likewise.
15624         (fixup_reorder_chain): Likewise.
15625         (cfg_layout_delete_block): Likewise.
15626         (cfg_layout_merge_blocks): Likewise.
15627         * combine.c (update_cfg_for_uncondjump): Likewise.
15628         * emit-rtl.c (link_insn_into_chain): Likewise.
15629         (remove_insn): Likewise.
15630         (delete_insns_since): Likewise.
15631         (reorder_insns_nobb): Likewise.
15632         (emit_insn_after_1): Likewise.
15633         * final.c (rest_of_clean_state): Likewise.
15634         (final_scan_insn): Likewise.
15635         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15636         * haifa-sched.c (concat_note_lists): Likewise.
15637         (remove_notes): Likewise.
15638         (restore_other_notes): Likewise.
15639         (move_insn): Likewise.
15640         (unlink_bb_notes): Likewise.
15641         (restore_bb_notes): Likewise.
15642         * jump.c (delete_for_peephole): Likewise.
15643         * optabs.c (emit_libcall_block_1): Likewise.
15644         * reorg.c (emit_delay_sequence): Likewise.
15645         (fill_simple_delay_slots): Likewise.
15646         * sel-sched-ir.c (sel_move_insn): Likewise.
15647         (sel_remove_insn): Likewise.
15648         (get_bb_note_from_pool): Likewise.
15649         * sel-sched.c (move_nop_to_previous_block): Likewise.
15651         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15652         * config/c6x/c6x.c (gen_one_bundle): Likewise.
15653         (c6x_gen_bundles): Likewise.
15654         (hwloop_optimize): Likewise.
15655         * config/frv/frv.c (frv_function_prologue): Likewise.
15656         (frv_register_nop): Likewise.
15657         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15658         (ia64_reorg): Likewise.
15659         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15660         (mep_make_bundle): Likewise.
15661         (mep_bundle_insns): Likewise.
15662         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15663         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15664         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15666 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15668         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
15669         return type from rtx to rtx_insn *.
15670         (BB_END): Likewise.
15671         (BB_HEADER): Likewise.
15672         (BB_FOOTER): Likewise.
15673         (SET_BB_HEAD): Convert to a function.
15674         (SET_BB_END): Likewise.
15675         (SET_BB_HEADER): Likewise.
15676         (SET_BB_FOOTER): Likewise.
15678         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15679         Strengthen the return type from rtx to rtx_insn *.  For now, this
15680         is done by adding a checked cast, but this will eventually
15681         become a field lookup.
15682         (BB_END): Likewise.
15683         (BB_HEADER): Likewise.
15684         (BB_FOOTER): Likewise.
15685         (SET_BB_HEAD): New function, from macro of same name.  This is
15686         intended for use as an lvalue, and so returns an rtx& to allow
15687         in-place modification.
15688         (SET_BB_END): Likewise.
15689         (SET_BB_HEADER): Likewise.
15690         (SET_BB_FOOTER): Likewise.
15692 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15694         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15695         for rvalues, and...
15696         (SET_BB_HEAD): New macro, for use as a lvalue.
15697         (BB_END, SET_BB_END): Likewise.
15698         (BB_HEADER, SET_BB_HEADER): Likewise.
15699         (BB_FOOTER, SET_BB_FOOTER): Likewise.
15701         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15702         of BB_* macros into SET_BB_* macros.
15703         (fix_crossing_unconditional_branches): Likewise.
15704         * caller-save.c (save_call_clobbered_regs): Likewise.
15705         (insert_one_insn): Likewise.
15706         * cfgbuild.c (find_bb_boundaries): Likewise.
15707         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15708         (outgoing_edges_match): Likewise.
15709         (try_optimize_cfg): Likewise.
15710         * cfgexpand.c (expand_gimple_cond): Likewise.
15711         (expand_gimple_tailcall): Likewise.
15712         (expand_gimple_basic_block): Likewise.
15713         (construct_exit_block): Likewise.
15714         * cfgrtl.c (delete_insn): Likewise.
15715         (create_basic_block_structure): Likewise.
15716         (rtl_delete_block): Likewise.
15717         (rtl_split_block): Likewise.
15718         (emit_nop_for_unique_locus_between): Likewise.
15719         (rtl_merge_blocks): Likewise.
15720         (block_label): Likewise.
15721         (try_redirect_by_replacing_jump): Likewise.
15722         (emit_barrier_after_bb): Likewise.
15723         (fixup_abnormal_edges): Likewise.
15724         (record_effective_endpoints): Likewise.
15725         (relink_block_chain): Likewise.
15726         (fixup_reorder_chain): Likewise.
15727         (fixup_fallthru_exit_predecessor): Likewise.
15728         (cfg_layout_duplicate_bb): Likewise.
15729         (cfg_layout_split_block): Likewise.
15730         (cfg_layout_delete_block): Likewise.
15731         (cfg_layout_merge_blocks): Likewise.
15732         * combine.c (update_cfg_for_uncondjump): Likewise.
15733         * emit-rtl.c (add_insn_after): Likewise.
15734         (remove_insn): Likewise.
15735         (reorder_insns): Likewise.
15736         (emit_insn_after_1): Likewise.
15737         * haifa-sched.c (get_ebb_head_tail): Likewise.
15738         (restore_other_notes): Likewise.
15739         (move_insn): Likewise.
15740         (sched_extend_bb): Likewise.
15741         (fix_jump_move): Likewise.
15742         * ifcvt.c (noce_process_if_block): Likewise.
15743         (dead_or_predicable): Likewise.
15744         * ira.c (update_equiv_regs): Likewise.
15745         * reg-stack.c (change_stack): Likewise.
15746         * sel-sched-ir.c (sel_move_insn): Likewise.
15747         * sel-sched.c (move_nop_to_previous_block): Likewise.
15749         * config/c6x/c6x.c (hwloop_optimize): Likewise.
15750         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15752 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15754         * rtl.h (for_each_rtx_in_insn): New function.
15755         * rtlanal.c (for_each_rtx_in_insn): Likewise.
15757 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15759         * coretypes.h (class rtx_insn): Add forward declaration.
15761         * rtl.h: Include is-a.h.
15762         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15763         workaround to ensure gengtype knows inheritance is occurring,
15764         whilst continuing to use the pre-existing special-casing for
15765         rtx_def.
15766         (class rtx_insn): New subclass of rtx_def, adding the
15767         invariant that we're dealing with something we can sanely use
15768         INSN_UID, NEXT_INSN, PREV_INSN on.
15769         (is_a_helper <rtx_insn *>::test): New.
15770         (is_a_helper <const rtx_insn *>::test): New.
15772 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15774         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15776 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15778         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15779         comdats as extern.
15781 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15783         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15784         to BUILT_IN_UNREACHABLE.
15786 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
15788         PR target/62011
15789         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15790         New tune flag.
15791         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15792         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15793         (ffs<mode>2): Do not expand with tzcnt for
15794         TARGET_AVOID_FALSE_DEP_FOR_BMI.
15795         (ffssi2_no_cmove): Ditto.
15796         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15797         (ctz<mode>2): New expander.
15798         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15799         (*ctz<mode>2_falsedep): New insn.
15800         (*ctz<mode>2): Rename from ctz<mode>2.
15801         (clz<mode>2_lzcnt): New expander.
15802         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15803         (*clz<mode>2_lzcnt_falsedep): New insn.
15804         (*clz<mode>2): Rename from ctz<mode>2.
15805         (popcount<mode>2): New expander.
15806         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15807         (*popcount<mode>2_falsedep): New insn.
15808         (*popcount<mode>2): Rename from ctz<mode>2.
15809         (*popcount<mode>2_cmp): Remove.
15810         (*popcountsi2_cmp_zext): Ditto.
15812 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
15814         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15815         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15816         * config/microblaze/microblaze.h
15817         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15819 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
15821         PR other/62168
15822         * configure.ac: Set install_gold_as_default to no for
15823         --enable-gold=no.
15824         * configure: Regenerated.
15826 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
15828         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15829         * config.in: Add undef of HAVE_isl.
15830         * configure: Regenerate.
15831         * configure.ac: Add definition of HAVE_isl.
15832         * graphite-blocking.c: Add checking of HAVE_isl.
15833         * graphite-dependences.c: Likewise.
15834         * graphite-interchange.c: Likewise.
15835         * graphite-isl-ast-to-gimple.c: Likewise.
15836         * graphite-optimize-isl.c: Likewise.
15837         * graphite-poly.c: Likewise.
15838         * graphite-scop-detection.c: Likewise.
15839         * graphite-sese-to-poly.c: Likewise.
15840         * graphite.c: Likewise.
15841         * toplev.c: Replace the checking of HAVE_cloog with the checking
15842         of HAVE_isl.
15844 2014-08-18  Richard Biener  <rguenther@suse.de>
15846         PR tree-optimization/62090
15847         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15848         (fold_builtin_3): Do not fold snprintf.
15849         (fold_builtin_4): Likewise.
15850         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15851         moved from builtins.c.
15852         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15853         (gimple_fold_builtin): Do not fold sprintf here.
15855 2014-08-18  Richard Biener  <rguenther@suse.de>
15857         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15858         code to ...
15859         (maybe_canonicalize_mem_ref_addr): ... this function.
15860         (fold_stmt_1): Apply it here before all simplification.
15862 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
15864         PR ipa/61800
15865         * cgraph.h (cgraph_node::create_indirect_edge): Add
15866         compute_indirect_info param.
15867         * cgraph.c (cgraph_node::create_indirect_edge): Compute
15868         indirect_info only when it is required.
15869         * cgraphclones.c (cgraph_clone_edge): Do not recompute
15870         indirect_info fore cloned indirect edge.
15872 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15873             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15874             Anna Tikhonova  <anna.tikhonova@intel.com>
15875             Ilya Tocar  <ilya.tocar@intel.com>
15876             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15877             Ilya Verbin  <ilya.verbin@intel.com>
15878             Kirill Yukhin  <kirill.yukhin@intel.com>
15879             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15881         * config/i386/sse.md
15882         (define_mode_iterator VI8_AVX2_AVX512BW): New.
15883         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15885 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15886             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15887             Anna Tikhonova  <anna.tikhonova@intel.com>
15888             Ilya Tocar  <ilya.tocar@intel.com>
15889             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15890             Ilya Verbin  <ilya.verbin@intel.com>
15891             Kirill Yukhin  <kirill.yukhin@intel.com>
15892             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15894         * config/i386/sse.md
15895         (define_mode_iterator VF1_AVX512VL): New.
15896         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15897         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15898         New.
15900 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15901             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15902             Anna Tikhonova  <anna.tikhonova@intel.com>
15903             Ilya Tocar  <ilya.tocar@intel.com>
15904             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15905             Ilya Verbin  <ilya.verbin@intel.com>
15906             Kirill Yukhin  <kirill.yukhin@intel.com>
15907             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15909         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15910         * config/i386/i386.md
15911         (define_code_iterator any_float): New.
15912         (define_code_attr floatsuffix): New.
15913         * config/i386/sse.md
15914         (define_mode_iterator VF1_128_256VL): New.
15915         (define_mode_iterator VF2_512_256VL): New.
15916         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15917         TARGET check.
15918         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15919         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15920         New.
15921         (define_mode_attr qq2pssuff): New.
15922         (define_mode_attr sselongvecmode): New.
15923         (define_mode_attr sselongvecmodelower): New.
15924         (define_mode_attr sseintvecmode3): New.
15925         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15926         New.
15927         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15928         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15929         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15930         (define_insn "ufloatv2siv2df2<mask_name>"): New.
15932 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15933             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15934             Anna Tikhonova  <anna.tikhonova@intel.com>
15935             Ilya Tocar  <ilya.tocar@intel.com>
15936             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15937             Ilya Verbin  <ilya.verbin@intel.com>
15938             Kirill Yukhin  <kirill.yukhin@intel.com>
15939             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15941         * config/i386/sse.md
15942         (define_mode_iterator VF2_AVX512VL): New.
15943         (define_mode_attr sseintvecmode2): New.
15944         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15945         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15946         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15947         (define_insn
15948         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15949         Ditto.
15950         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15951         Ditto.
15952         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15953         Ditto.
15955 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15956             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15957             Anna Tikhonova  <anna.tikhonova@intel.com>
15958             Ilya Tocar  <ilya.tocar@intel.com>
15959             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15960             Ilya Verbin  <ilya.verbin@intel.com>
15961             Kirill Yukhin  <kirill.yukhin@intel.com>
15962             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15964         * config/i386/i386.md
15965         (define_insn "*movoi_internal_avx"): Add evex version.
15966         (define_insn "*movti_internal"): Ditto.
15968 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15969             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15970             Anna Tikhonova  <anna.tikhonova@intel.com>
15971             Ilya Tocar  <ilya.tocar@intel.com>
15972             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15973             Ilya Verbin  <ilya.verbin@intel.com>
15974             Kirill Yukhin  <kirill.yukhin@intel.com>
15975             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15977         * config/i386/i386.md
15978         (define_attr "isa"): Add avx512dq, noavx512dq.
15979         (define_attr "enabled"): Ditto.
15980         * config/i386/sse.md
15981         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15983 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15984             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15985             Anna Tikhonova  <anna.tikhonova@intel.com>
15986             Ilya Tocar  <ilya.tocar@intel.com>
15987             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15988             Ilya Verbin  <ilya.verbin@intel.com>
15989             Kirill Yukhin  <kirill.yukhin@intel.com>
15990             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15992         * config/i386/i386.c
15993         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15994         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15995         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15996         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15997         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15998         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15999         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
16000         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
16001         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
16002         * config/i386/sse.md
16003         (define_mode_iterator VMOVE): Allow V4TI mode.
16004         (define_mode_iterator V_AVX512VL): New.
16005         (define_mode_iterator V): New handling for AVX512VL.
16006         (define_insn "avx512f_load<mode>_mask"): Delete.
16007         (define_insn "<avx512>_load<mode>_mask"): New.
16008         (define_insn "avx512f_store<mode>_mask"): Delete.
16009         (define_insn "<avx512>_store<mode>_mask"): New.
16012 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
16014         PR sanitizer/62089
16015         * asan.c (instrument_derefs): Fix bitfield check.
16017 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
16019         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
16020         * config/rs6000/htm.md (ttest): Remove clobber.
16021         * config/rs6000/predicates.md (any_mask_operand): New predicate.
16022         (and_operand): Reformat.
16023         (and_2rld_operand): New predicate.
16024         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
16025         parameter.
16026         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
16027         parameter.  Handle AND directly.
16028         (rs6000_split_logical_di): Remove last parameter.
16029         (rs6000_split_logical): Remove last parameter.  Remove obsolete
16030         comment.
16031         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
16032         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
16033         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
16034         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
16035         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
16036         and 5 anonymous splitters):  Delete.
16037         (and<mode>3): New expander.
16038         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
16039         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
16040         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
16041         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
16042         (floatdisf2_internal1): Remove clobbers.
16043         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
16044         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
16045         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
16046         (and<mode>3 for BOOL_128): Remove clobber.
16047         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
16048         rs6000_split_logical.
16049         (*bool<mode>3_internal for BOOL_128): Adjust call of
16050         rs6000_split_logical.
16051         (*boolc<mode>3_internal1 for BOOL_128,
16052         *boolc<mode>3_internal2 for BOOL_128,
16053         *boolcc<mode>3_internal1 for BOOL_128,
16054         *boolcc<mode>3_internal2 for BOOL_128,
16055         *eqv<mode>3_internal1 for BOOL_128,
16056         *eqv<mode>3_internal2 for BOOL_128,
16057         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
16058         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
16059         clobber.
16060         (*vec_reload_and_reg_<mptrsize>): Delete.
16062 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
16064         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
16065         and split, *boolccsi3_internal3 and split): Delete.
16066         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
16067         *boolccdi3_internal3 and split): Delete.
16068         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
16069         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
16071 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
16073         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
16074         and split, *boolcsi3_internal3 and split): Delete.
16075         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
16076         *boolcdi3_internal3 and split): Delete.
16077         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
16079 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
16081         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
16082         <'u'>: Also support printing the low-order 16 bits.
16083         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
16084         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
16085         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
16086         *booldi3_internal3 and split): Delete.
16087         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
16088         *bool<mode>3_dot2): New.
16089         (two anonymous define_splits for non_logical_cint_operand): Merge.
16091 2014-08-17  Marek Polacek  <polacek@redhat.com>
16092             Manuel López-Ibáñez  <manu@gcc.gnu.org>
16094         PR c/62059
16095         * diagnostic.c (adjust_line): Add gcc_checking_assert.
16096         (diagnostic_show_locus): Don't print caret diagnostic
16097         if a column is larger than the line_width.
16099 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
16101         * common.opt: Make the ISL AST generator to be the main code generator
16102         of Graphite.
16104 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
16106         * wide-int.h (generic_wide_int): Declare as class instead of struct.
16108 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
16110         PR target/61641
16111         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
16112         Declare.
16113         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
16114         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
16115         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
16116         Define.
16117         * config/pa/pa.md (begin_brtab): Delete insn.
16118         (end_brtab): Likewise.
16120 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16122         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
16124 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
16126         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
16127         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
16128         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
16129         (get_dynamic_type): Remove.
16130         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
16131         (clear_speculation): Bring to ipa-deivrt.h
16132         (get_class_context): Rename to ...
16133         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
16134         (contains_type_p): Update.
16135         (get_dynamic_type): Rename to ...
16136         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
16137         (possible_polymorphic_call_targets): UPdate.
16138         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
16139         * ipa-prop.c (ipa_analyze_call_uses): Update.
16141 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
16143         * doc/invoke.texi (SH options): Document missing processor variant
16144         options.  Remove references to Hitachi.  Undocument deprecated mspace
16145         option.
16147 2014-08-15  Jason Merrill  <jason@redhat.com>
16149         * tree.c (type_hash_canon): Uncomment assert.
16151 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16153         * input.h (in_system_header_at): Add comment.
16155 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16157         PR fortran/44054
16158         * diagnostic.c (build_message_string): Make it extern.
16159         * diagnostic.h (build_message_string): Make it extern.
16161 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
16163         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
16164         load/store from/to non-floating class pseudo.
16166 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16168         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
16170 2014-08-15  Richard Biener  <rguenther@suse.de>
16172         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
16173         (get_constraint_for_ssa_var): Remove dead code.
16174         (get_constraint_for_1): Adjust.
16175         (find_what_var_points_to): Likewise.
16176         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
16178 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
16180         PR target/61878
16181         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
16182         (_mm512_mask_cmpge_epu32_mask): Ditto.
16183         (_mm512_cmpge_epu32_mask): Ditto.
16184         (_mm512_mask_cmpge_epi64_mask): Ditto.
16185         (_mm512_cmpge_epi64_mask): Ditto.
16186         (_mm512_mask_cmpge_epu64_mask): Ditto.
16187         (_mm512_cmpge_epu64_mask): Ditto.
16188         (_mm512_mask_cmple_epi32_mask): Ditto.
16189         (_mm512_cmple_epi32_mask): Ditto.
16190         (_mm512_mask_cmple_epu32_mask): Ditto.
16191         (_mm512_cmple_epu32_mask): Ditto.
16192         (_mm512_mask_cmple_epi64_mask): Ditto.
16193         (_mm512_cmple_epi64_mask): Ditto.
16194         (_mm512_mask_cmple_epu64_mask): Ditto.
16195         (_mm512_cmple_epu64_mask): Ditto.
16196         (_mm512_mask_cmplt_epi32_mask): Ditto.
16197         (_mm512_cmplt_epi32_mask): Ditto.
16198         (_mm512_mask_cmplt_epu32_mask): Ditto.
16199         (_mm512_cmplt_epu32_mask): Ditto.
16200         (_mm512_mask_cmplt_epi64_mask): Ditto.
16201         (_mm512_cmplt_epi64_mask): Ditto.
16202         (_mm512_mask_cmplt_epu64_mask): Ditto.
16203         (_mm512_cmplt_epu64_mask): Ditto.
16204         (_mm512_mask_cmpneq_epi32_mask): Ditto.
16205         (_mm512_mask_cmpneq_epu32_mask): Ditto.
16206         (_mm512_cmpneq_epu32_mask): Ditto.
16207         (_mm512_mask_cmpneq_epi64_mask): Ditto.
16208         (_mm512_cmpneq_epi64_mask): Ditto.
16209         (_mm512_mask_cmpneq_epu64_mask): Ditto.
16210         (_mm512_cmpneq_epu64_mask): Ditto.
16211         (_mm512_castpd_ps): Ditto.
16212         (_mm512_castpd_si512): Ditto.
16213         (_mm512_castps_pd): Ditto.
16214         (_mm512_castps_si512): Ditto.
16215         (_mm512_castsi512_ps): Ditto.
16216         (_mm512_castsi512_pd): Ditto.
16217         (_mm512_castpd512_pd128): Ditto.
16218         (_mm512_castps512_ps128): Ditto.
16219         (_mm512_castsi512_si128): Ditto.
16220         (_mm512_castpd512_pd256): Ditto.
16221         (_mm512_castps512_ps256): Ditto.
16222         (_mm512_castsi512_si256): Ditto.
16223         (_mm512_castpd128_pd512): Ditto.
16224         (_mm512_castps128_ps512): Ditto.
16225         (_mm512_castsi128_si512): Ditto.
16226         (_mm512_castpd256_pd512): Ditto.
16227         (_mm512_castps256_ps512): Ditto.
16228         (_mm512_castsi256_si512): Ditto.
16229         (_mm512_cmpeq_epu32_mask): Ditto.
16230         (_mm512_mask_cmpeq_epu32_mask): Ditto.
16231         (_mm512_mask_cmpeq_epu64_mask): Ditto.
16232         (_mm512_cmpeq_epu64_mask): Ditto.
16233         (_mm512_cmpgt_epu32_mask): Ditto.
16234         (_mm512_mask_cmpgt_epu32_mask): Ditto.
16235         (_mm512_mask_cmpgt_epu64_mask): Ditto.
16236         (_mm512_cmpgt_epu64_mask): Ditto.
16237         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
16238         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
16239         * config/i386/i386.c (enum ix86_builtins): Add
16240         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
16241         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
16242         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
16243         (bdesc_args): Add __builtin_ia32_si512_256si,
16244         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
16245         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
16246         __builtin_ia32_pd512_pd.
16247         (ix86_expand_args_builtin): Handle new FTYPEs.
16248         * config/i386/sse.md (castmode): Add 512-bit modes.
16249         (AVX512MODE2P): New.
16250         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
16251         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
16253 2014-08-15  Richard Biener  <rguenther@suse.de>
16255         * fold-const.c (tree_swap_operands_p): Put all constants
16256         last, also strip sign-changing NOPs when considering further
16257         canonicalization.  Canonicalize also when optimizing for size.
16259 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16261         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
16262         one_match > zero_match case to just before simple_sequence.
16264 2014-08-15  Richard Biener  <rguenther@suse.de>
16266         * data-streamer.h (streamer_string_index, string_for_index):
16267         Remove.
16268         * data-streamer-out.c (streamer_string_index): Make static.
16269         * data-streamer-in.c (string_for_index): Likewise.
16270         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
16271         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
16273 2014-08-15  Richard Biener  <rguenther@suse.de>
16275         PR tree-optimization/62031
16276         * tree-data-ref.c (dr_analyze_indices): Do not set
16277         DR_UNCONSTRAINED_BASE.
16278         (dr_may_alias_p): All indirect accesses have to go the
16279         formerly DR_UNCONSTRAINED_BASE path.
16280         * tree-data-ref.h (struct indices): Remove
16281         unconstrained_base member.
16282         (DR_UNCONSTRAINED_BASE): Remove.
16284 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
16286         PR middle-end/62092
16287         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
16288         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
16289         in OMP_CLAUSE_MAP in some outer target region.
16291 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
16293         * tree-ssa-loop-ivopts.c (ivopts_data): New field
16294         name_expansion_cache.
16295         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
16296         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
16297         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
16298         (difference_cannot_overflow_p): New parameter.  Use affine
16299         expansion for equality check.
16300         (iv_elimination_compare_lt): Pass new argument.
16302 2014-08-14  DJ Delorie  <dj@redhat.com>
16304         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
16305         variables to the accumulator.
16307         * config/rl78/predicates.md (rl78_near_mem_operand): New.
16308         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
16309         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
16310         with far-far moves.
16312         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
16313         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
16314         (umulqihi3_virt): Likewise.
16315         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
16316         (umulqihi3_real): Likewise.
16318         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
16320 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16322         PR tree-optimization/62091
16323         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
16324         function_entry_reached.
16325         (walk_aliased_vdefs): Clear it here.
16326         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
16328 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16330         * ipa-utils.h (compare_virtual_tables): Declare.
16331         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
16333 2014-08-14  Marek Polacek  <polacek@redhat.com>
16335         DR 458
16336         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
16337         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
16339 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16341         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
16343 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16345         PR rtl-optimization/62004
16346         PR rtl-optimization/62030
16347         * ifcvt.c (rtx_interchangeable_p): New function.
16348         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
16349         * emit-rtl.h (mem_attrs_eq_p): Declare.
16351 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
16353         * graphite-scop-detection.c:
16354         Add inclusion of cp-tree.h.
16355         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
16356         in case they are pointers to object types
16358 2014-08-14  Richard Biener  <rguenther@suse.de>
16360         * BASE-VER: Change to 5.0.0
16362 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16363             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16364             Anna Tikhonova  <anna.tikhonova@intel.com>
16365             Ilya Tocar  <ilya.tocar@intel.com>
16366             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16367             Ilya Verbin  <ilya.verbin@intel.com>
16368             Kirill Yukhin  <kirill.yukhin@intel.com>
16369             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16371         * config/i386/sse.md (define_mode_attr avx512): New.
16372         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
16373         V4DI modes.
16374         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
16375         (define_mode_attr ssse3_avx2): Ditto.
16376         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
16377         (define_mode_attr avx2_avx512bw): New.
16378         (define_mode_attr ssedoublemodelower): New.
16379         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
16380         V32HI, V64QI modes.
16381         (define_mode_attr ssebytemode): Allow V8DI modes.
16382         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
16383         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
16384         (define_mode_attr ssePSmode2): New.
16385         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
16386         V16HI, V32HI modes.
16387         (define_mode_attr dbpsadbwmode): New.
16388         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
16389         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
16390         (vi8_sse4_1_avx2_avx512): New.
16391         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
16392         mode attribute.
16393         (define_mode_attr blendbits): Move before its immediate use.
16395 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16396             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16397             Anna Tikhonova  <anna.tikhonova@intel.com>
16398             Ilya Tocar  <ilya.tocar@intel.com>
16399             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16400             Ilya Verbin  <ilya.verbin@intel.com>
16401             Kirill Yukhin  <kirill.yukhin@intel.com>
16402             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16404         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
16405         * config/i386/subst.md
16406         (define_mode_iterator SUBST_V): Update.
16407         (define_mode_iterator SUBST_A): Ditto.
16408         (define_subst_attr "mask_operand7"): New.
16409         (define_subst_attr "mask_operand10"): New.
16410         (define_subst_attr "mask_operand_arg34") : New.
16411         (define_subst_attr "mask_expand_op3"): New.
16412         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
16413         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
16414         (define_subst_attr "mask_avx512vl_condition"): New.
16415         (define_subst_attr "round_mask_operand4"): Ditto.
16416         (define_subst_attr "round_mask_scalar_op3"): Delete.
16417         (define_subst_attr "round_mask_op4"): New.
16418         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
16419         V16SImode.
16420         (define_subst_attr "round_modev8sf_condition"): New.
16421         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
16422         <MODE>mode.
16423         (define_subst_attr "round_saeonly_mask_operand4"): New.
16424         (define_subst_attr "round_saeonly_mask_op4"): New.
16425         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
16426         V8DImode, V16SImode.
16427         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
16428         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
16429         (define_subst_attr "mask_expand4_args"): New.
16430         (define_subst "mask_expand4"): New.
16432 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16433             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16434             Anna Tikhonova  <anna.tikhonova@intel.com>
16435             Ilya Tocar  <ilya.tocar@intel.com>
16436             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16437             Ilya Verbin  <ilya.verbin@intel.com>
16438             Kirill Yukhin  <kirill.yukhin@intel.com>
16439             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16441         * config/i386/i386.md
16442         (define_attr "isa"): Add avx512bw,noavx512bw.
16443         (define_attr "enabled"): Ditto.
16444         (define_split): Add 32/64-bit mask logic.
16445         (define_insn "*k<logic>qi"): New.
16446         (define_insn "*k<logic>hi"): New.
16447         (define_insn "*anddi_1"): Add mask version.
16448         (define_insn "*andsi_1"): Ditto.
16449         (define_insn "*<code><mode>_1"): Ditto.
16450         (define_insn "*<code>hi_1"): Ditto.
16451         (define_insn "kxnor<mode>"): New.
16452         (define_insn "kunpcksi"): New.
16453         (define_insn "kunpckdi"): New.
16454         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
16455         (define_insn "*one_cmplhi2_1"): Ditto.
16457 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16458             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16459             Anna Tikhonova  <anna.tikhonova@intel.com>
16460             Ilya Tocar  <ilya.tocar@intel.com>
16461             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16462             Ilya Verbin  <ilya.verbin@intel.com>
16463             Kirill Yukhin  <kirill.yukhin@intel.com>
16464             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16466         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
16467         V32HImode.
16469 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16470             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16471             Anna Tikhonova  <anna.tikhonova@intel.com>
16472             Ilya Tocar  <ilya.tocar@intel.com>
16473             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16474             Ilya Verbin  <ilya.verbin@intel.com>
16475             Kirill Yukhin  <kirill.yukhin@intel.com>
16476             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16478         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
16479         registers.
16480         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
16481         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
16482         xmm/ymm16+ when availble.
16483         * config/i386/i386.h
16484         (HARD_REGNO_NREGS): Add mask regs.
16485         (VALID_AVX512F_REG_MODE): Ditto.
16486         (VALID_AVX512F_REG_MODE) : Define.
16487         (VALID_MASK_AVX512BW_MODE): Ditto.
16488         (reg_class) (MASK_REG_P(X)): Define.
16489         * config/i386/i386.md: Do not split long moves with mask register,
16490         use kmovb if avx512bw is availible.
16491         (movdi_internal): Handle mask registers.
16493 2014-08-14  Richard Biener  <rguenther@suse.de>
16495         PR tree-optimization/62081
16496         * tree-ssa-loop.c (pass_fix_loops): New pass.
16497         (pass_tree_loop::gate):  Do not fixup loops here.
16498         * tree-pass.h (make_pass_fix_loops): Declare.
16499         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
16501 2014-08-14  Richard Biener  <rguenther@suse.de>
16503         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
16504         (type_hash_canon): ... this and avoid 2nd lookup for the add.
16506 2014-08-14  Richard Biener  <rguenther@suse.de>
16508         PR tree-optimization/62090
16509         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
16510         (fold_builtin_2): Do not fold sprintf.
16511         (fold_builtin_3): Likewise.
16512         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
16513         moved from builtins.c.
16514         (gimple_fold_builtin): Fold sprintf.
16516 2014-08-14  Richard Biener  <rguenther@suse.de>
16518         PR rtl-optimization/62079
16519         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
16520         run cleanup_cfg.
16522 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16524         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
16525         current_function_decl.
16527 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16529         * cgraph.c (cgraph_node::function_symbol): Fix wrong
16530         cgraph_function_node to cgraph_node::function_symbol
16531         refactoring.
16533 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16535         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
16536         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
16538 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
16540         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
16541         warning.
16543 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
16545         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
16546         generator.
16548 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
16550         PR target/62025
16551         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
16552         any registers that are used in mem_insn.
16554 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16556         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
16558 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16560         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
16561         (MULTILIB_DIRNAMES): Ditto.
16562         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
16563         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
16564         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
16565         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
16566         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
16567         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
16569 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16571         PR target/61413
16572         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
16573         of __ARM_SIZEOF_WCHAR_T.
16575 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16577         PR target/62098
16578         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
16579         Remove unnecessary attributes.
16581 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
16583         * internal-fn.c (init_internal_fns): Fix off-by-one.
16585 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16586             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16587             Anna Tikhonova  <anna.tikhonova@intel.com>
16588             Ilya Tocar  <ilya.tocar@intel.com>
16589             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16590             Ilya Verbin  <ilya.verbin@intel.com>
16591             Kirill Yukhin  <kirill.yukhin@intel.com>
16592             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16594         * config/i386/i386.c (standard_sse_constant_opcode): Use
16595         vpxord/vpternlog if avx512 is availible.
16597 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16599         PR middle-end/62103
16600         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
16601         bitfields, that is when size doesn't match the size of type or the
16602         size of the constructor.
16604 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16606         * config/rs6000/constraints.md (wh constraint): New constraint,
16607         for FP registers if direct move is available.
16608         (wi constraint): New constraint, for VSX/FP registers that can
16609         handle 64-bit integers.
16610         (wj constraint): New constraint for VSX/FP registers that can
16611         handle 64-bit integers for direct moves.
16612         (wk constraint): New constraint for VSX/FP registers that can
16613         handle 64-bit doubles for direct moves.
16614         (wy constraint): Make documentation match implementation.
16616         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
16617         scalar_in_vmx_p field to simplify tests of whether SFmode or
16618         DFmode can go in the Altivec registers.
16619         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
16620         (rs6000_setup_reg_addr_masks): Likewise.
16621         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16622         field, and wh/wi/wj/wk constraints.
16623         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16624         the wh/wi/wj/wk constraints.
16625         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16626         upper registers, prefer VSX registers unless the operation is a
16627         memory operation with REG+OFFSET addressing.
16629         * config/rs6000/vsx.md (VSr mode attribute): Add support for
16630         DImode.  Change SFmode to use ww constraint instead of d to allow
16631         SF registers in the upper registers.
16632         (VSr2): Likewise.
16633         (VSr3): Likewise.
16634         (VSr5): Fix thinko in comment.
16635         (VSa): New mode attribute that is an alternative to wa, that
16636         returns the VSX register class that a mode can go in, but may not
16637         be the preferred register class.
16638         (VS_64dm): New mode attribute for appropriate register classes for
16639         referencing 64-bit elements of vectors for direct moves and normal
16640         moves.
16641         (VS_64reg): Likewise.
16642         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16643         register allocator to only registers the data type can handle.
16644         (vsx_le_perm_load_<mode>): Likewise.
16645         (vsx_le_perm_store_<mode>): Likewise.
16646         (vsx_xxpermdi2_le_<mode>): Likewise.
16647         (vsx_xxpermdi4_le_<mode>): Likewise.
16648         (vsx_lxvd2x2_le_<mode>): Likewise.
16649         (vsx_lxvd2x4_le_<mode>): Likewise.
16650         (vsx_stxvd2x2_le_<mode>): Likewise.
16651         (vsx_add<mode>3): Likewise.
16652         (vsx_sub<mode>3): Likewise.
16653         (vsx_mul<mode>3): Likewise.
16654         (vsx_div<mode>3): Likewise.
16655         (vsx_tdiv<mode>3_internal): Likewise.
16656         (vsx_fre<mode>2): Likewise.
16657         (vsx_neg<mode>2): Likewise.
16658         (vsx_abs<mode>2): Likewise.
16659         (vsx_nabs<mode>2): Likewise.
16660         (vsx_smax<mode>3): Likewise.
16661         (vsx_smin<mode>3): Likewise.
16662         (vsx_sqrt<mode>2): Likewise.
16663         (vsx_rsqrte<mode>2): Likewise.
16664         (vsx_tsqrt<mode>2_internal): Likewise.
16665         (vsx_fms<mode>4): Likewise.
16666         (vsx_nfma<mode>4): Likewise.
16667         (vsx_eq<mode>): Likewise.
16668         (vsx_gt<mode>): Likewise.
16669         (vsx_ge<mode>): Likewise.
16670         (vsx_eq<mode>_p): Likewise.
16671         (vsx_gt<mode>_p): Likewise.
16672         (vsx_ge<mode>_p): Likewise.
16673         (vsx_xxsel<mode>): Likewise.
16674         (vsx_xxsel<mode>_uns): Likewise.
16675         (vsx_copysign<mode>3): Likewise.
16676         (vsx_float<VSi><mode>2): Likewise.
16677         (vsx_floatuns<VSi><mode>2): Likewise.
16678         (vsx_fix_trunc<mode><VSi>2): Likewise.
16679         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16680         (vsx_x<VSv>r<VSs>i): Likewise.
16681         (vsx_x<VSv>r<VSs>ic): Likewise.
16682         (vsx_btrunc<mode>2): Likewise.
16683         (vsx_b2trunc<mode>2): Likewise.
16684         (vsx_floor<mode>2): Likewise.
16685         (vsx_ceil<mode>2): Likewise.
16686         (vsx_<VS_spdp_insn>): Likewise.
16687         (vsx_xscvspdp): Likewise.
16688         (vsx_xvcvspuxds): Likewise.
16689         (vsx_float_fix_<mode>2): Likewise.
16690         (vsx_set_<mode>): Likewise.
16691         (vsx_extract_<mode>_internal1): Likewise.
16692         (vsx_extract_<mode>_internal2): Likewise.
16693         (vsx_extract_<mode>_load): Likewise.
16694         (vsx_extract_<mode>_store): Likewise.
16695         (vsx_splat_<mode>): Likewise.
16696         (vsx_xxspltw_<mode>): Likewise.
16697         (vsx_xxspltw_<mode>_direct): Likewise.
16698         (vsx_xxmrghw_<mode>): Likewise.
16699         (vsx_xxmrglw_<mode>): Likewise.
16700         (vsx_xxsldwi_<mode>): Likewise.
16701         (vsx_xscvdpspn): Tighten constraints to only use register classes
16702         the types use.
16703         (vsx_xscvspdpn): Likewise.
16704         (vsx_xscvdpspn_scalar): Likewise.
16706         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16707         wj, and wk constraints.
16708         (GPR_REG_CLASS_P): New helper macro for register classes targeting
16709         general purpose registers.
16711         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16712         direct moves.
16713         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16714         DImode instead of wm.  Use wk constraint for direct move of DFmode
16715         instead of wm.
16716         (extendsidi2_lfiwax): Likewise.
16717         (lfiwax): Likewise.
16718         (lfiwzx): Likewise.
16719         (movdi_internal64): Likewise.
16721         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16722         wk constraints. Make the wy constraint documentation match them
16723         implementation.
16725 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
16727         Replacement of isl_int by isl_val
16728         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16729         (compute_bounds_for_param): use isl_val instead of isl_int
16730         (compute_bounds_for_loop): likewise
16731         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16732         (build_linearized_memory_access): use isl_val instead of isl_int
16733         (pdr_stride_in_loop): likewise
16734         * graphite-optimize-isl.c:
16735         (getPrevectorMap): use isl_val instead of isl_int
16736         * graphite-poly.c:
16737         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16738         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16739         (extern the_isl_ctx): declare
16740         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16741         (extract_affine_gmp): likewise
16742         (wrap): likewise
16743         (build_loop_iteration_domains): likewise
16744         (add_param_constraints): likewise
16746 2014-08-11  Richard Biener  <rguenther@suse.de>
16748         PR tree-optimization/62075
16749         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16750         handle uses in patterns.
16752 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16753             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16754             Anna Tikhonova  <anna.tikhonova@intel.com>
16755             Ilya Tocar  <ilya.tocar@intel.com>
16756             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16757             Ilya Verbin  <ilya.verbin@intel.com>
16758             Kirill Yukhin  <kirill.yukhin@intel.com>
16759             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16761         * common/config/i386/i386-common.c
16762         (OPTION_MASK_ISA_AVX512VL_SET): Define.
16763         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16764         (ix86_handle_option): Handle OPT_mavx512vl.
16765         * config/i386/cpuid.h (bit_AVX512VL): Define.
16766         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16767         set -mavx512vl accordingly.
16768         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16769         OPTION_MASK_ISA_AVX512VL.
16770         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16771         (ix86_option_override_internal): Define PTA_AVX512VL, handle
16772         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16773         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16774         * config/i386/i386.h (TARGET_AVX512VL): Define.
16775         (TARGET_AVX512VL_P(x)): Ditto.
16776         * config/i386/i386.opt: Add mavx512vl.
16778 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
16780         PR tree-optimization/62073
16781         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16782         a basic block.
16784 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16785             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16786             Anna Tikhonova  <anna.tikhonova@intel.com>
16787             Ilya Tocar  <ilya.tocar@intel.com>
16788             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16789             Ilya Verbin  <ilya.verbin@intel.com>
16790             Kirill Yukhin  <kirill.yukhin@intel.com>
16791             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16793         * common/config/i386/i386-common.c
16794         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16795         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16796         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16797         (ix86_handle_option): Handle OPT_mavx512bw.
16798         * config/i386/cpuid.h (bit_AVX512BW): Define.
16799         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16800         set -mavx512bw accordingly.
16801         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16802         OPTION_MASK_ISA_AVX512BW.
16803         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16804         (ix86_option_override_internal): Define PTA_AVX512BW, handle
16805         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16806         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16807         * config/i386/i386.h (TARGET_AVX512BW): Define.
16808         (TARGET_AVX512BW_P(x)): Ditto.
16809         * config/i386/i386.opt: Add mavx512bw.
16811 2014-08-11  Richard Biener  <rguenther@suse.de>
16813         PR tree-optimization/62070
16814         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16815         Remove SSA checking.
16817 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16819         * asan.c (asan_check_flags): New enum.
16820         (build_check_stmt_with_calls): Removed function.
16821         (build_check_stmt): Split inlining logic to
16822         asan_expand_check_ifn.
16823         (instrument_derefs): Rename parameter.
16824         (instrument_mem_region_access): Rename parameter.
16825         (instrument_strlen_call): Likewise.
16826         (asan_expand_check_ifn): New function.
16827         (asan_instrument): Remove old code.
16828         (pass_sanopt::execute): Change handling of
16829         asan-instrumentation-with-call-threshold.
16830         (asan_clear_shadow): Fix formatting.
16831         (asan_function_start): Likewise.
16832         (asan_emit_stack_protection): Likewise.
16833         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16834         Update description.
16835         * internal-fn.c (expand_ASAN_CHECK): New function.
16836         * internal-fn.def (ASAN_CHECK): New internal function.
16837         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16838         Update description.
16839         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16840         * tree.c: Small comment fix.
16842 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16844         * gimple.c (gimple_call_fnspec): Support internal functions.
16845         (gimple_call_return_flags): Use const.
16846         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16847         * internal-fn.def: Add fnspec information.
16848         * internal-fn.h (internal_fn_fnspec): New function.
16849         (init_internal_fns): Declare new function.
16850         * internal-fn.c (internal_fn_fnspec_array): New global variable.
16851         (init_internal_fns): New function.
16852         * tree-core.h: Update macro call.
16853         * tree.c (build_common_builtin_nodes): Initialize internal fns.
16855 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
16857         * lto-streamer.h (struct output_block::symbol): Change from
16858         struct symtab_node to plain symtab_node.
16859         (referenced_from_this_partition_p): Change first parameter
16860         from struct symtab_node to plain symtab_node.
16862 2014-08-10  Marek Polacek  <polacek@redhat.com>
16864         PR c/51849
16865         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16867 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
16869         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16870         DECL correctly; do not give up on types in static storage.
16872 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
16874         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16876 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
16878         * graphite-isl-ast-to-gimple.c:
16879         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16881         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16883 2014-08-08  Guozhi Wei  <carrot@google.com>
16885         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16887 2014-08-08  Cary Coutant  <ccoutant@google.com>
16889         * dwarf2out.c (get_skeleton_type_unit): Remove.
16890         (output_skeleton_debug_sections): Remove skeleton type units.
16891         (output_comdat_type_unit): Likewise.
16892         (dwarf2out_finish): Likewise.
16894 2014-08-07  Yi Yang  <ahyangyi@google.com>
16896         * predict.c (expr_expected_value_1): Remove the redundant assignment.
16898 2014-08-08  Richard Biener  <rguenther@suse.de>
16900         * lto-streamer.h (struct lto_input_block): Make it a class
16901         with a constructor.
16902         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16903         (struct lto_function_header, struct lto_simple_header,
16904         struct lto_simple_header_with_strings,
16905         struct lto_decl_header, struct lto_function_header): Make
16906         a simple inheritance hieararchy.  Remove unused fields.
16907         (struct lto_asm_header): Remove.
16908         * lto-streamer-out.c (produce_asm): Adjust.
16909         (lto_output_toplevel_asms): Likewise.
16910         (produce_asm_for_decls): Likewise.
16911         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16912         * data-streamer-in.c (string_for_index): Likewise.
16913         * ipa-inline-analysis.c (inline_read_section): Likewise.
16914         * ipa-prop.c (ipa_prop_read_section): Likewise.
16915         (read_replacements_section): Likewise.
16916         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16917         * lto-section-in.c (lto_create_simple_input_block): Likewise.
16918         (lto_destroy_simple_input_block): Likewise.
16919         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16920         (lto_input_toplevel_asms): Likewise.
16922 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16923             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16924             Anna Tikhonova  <anna.tikhonova@intel.com>
16925             Ilya Tocar  <ilya.tocar@intel.com>
16926             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16927             Ilya Verbin  <ilya.verbin@intel.com>
16928             Kirill Yukhin  <kirill.yukhin@intel.com>
16929             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16931         * common/config/i386/i386-common.c
16932         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16933         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16934         (ix86_handle_option): Handle OPT_mavx512dq.
16935         * config/i386/cpuid.h (bit_AVX512DQ): Define.
16936         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16937         set -mavx512dq accordingly.
16938         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16939         OPTION_MASK_ISA_AVX512DQ.
16940         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16941         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16942         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16943         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16944         * config/i386/i386.h (TARGET_AVX512DQ): Define.
16945         (TARGET_AVX512DQ_P(x)): Ditto.
16946         * config/i386/i386.opt: Add mavx512dq.
16948 2014-08-08  Richard Biener  <rguenther@suse.de>
16950         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16951         target_percent, target_percent_s): Export.
16952         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16953         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16954         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16955         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16956         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16957         Move to gimple-fold.c.
16958         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16959         strcat and strcpy.
16960         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16961         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16962         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16963         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16964         (rewrite_call_expr_array): Remove.
16965         (fold_builtin_sprintf_chk): Likewise.
16966         (fold_builtin_snprintf_chk): Likewise.
16967         (fold_builtin_varargs): Remove handling of sprintf_chk,
16968         vsprintf_chk, snprintf_chk and vsnprintf_chk.
16969         (gimple_fold_builtin_sprintf_chk): Remove.
16970         (gimple_fold_builtin_snprintf_chk): Likewise.
16971         (gimple_fold_builtin_varargs): Likewise.
16972         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16973         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16974         * gimple.c (gimple_seq_add_seq_without_update): New function.
16975         * gimple.h (gimple_seq_add_seq_without_update): Declare.
16976         * gimple-fold.c: Include output.h.
16977         (gsi_replace_with_seq_vops): New function, split out from ...
16978         (gimplify_and_update_call_from_tree): ... here.
16979         (replace_call_with_value): New function.
16980         (replace_call_with_call_and_fold): Likewise.
16981         (var_decl_component_p): Moved from builtins.c.
16982         (gimple_fold_builtin_memory_op): Moved from builtins.c
16983         fold_builtin_memory_op and rewritten to GIMPLE.
16984         (gimple_fold_builtin_memset): Likewise.
16985         (gimple_fold_builtin_strcpy): Likewise.
16986         (gimple_fold_builtin_strncpy): Likewise.
16987         (gimple_fold_builtin_strcat): Likewise.
16988         (gimple_fold_builtin_fputs): Likewise.
16989         (gimple_fold_builtin_memory_chk): Likewise.
16990         (gimple_fold_builtin_stxcpy_chk): Likewise.
16991         (gimple_fold_builtin_stxncpy_chk): Likewise.
16992         (gimple_fold_builtin_snprintf_chk): Likewise.
16993         (gimple_fold_builtin_sprintf_chk): Likewise.
16994         (gimple_fold_builtin_strlen): New function.
16995         (gimple_fold_builtin_with_strlen): New function split out from
16996         gimple_fold_builtin.
16997         (gimple_fold_builtin): Change signature and handle
16998         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16999         here.  Call gimple_fold_builtin_with_strlen.
17000         (gimple_fold_call): Adjust.
17002 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
17004         * calls.c (precompute_arguments): Check
17005         promoted_for_signed_and_unsigned_p and set the promoted mode.
17006         (promoted_for_signed_and_unsigned_p): New function.
17007         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
17008         and set the promoted mode.
17009         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
17010         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
17011         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
17014 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
17016         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
17017         instead of SUBREG_PROMOTED_UNSIGNED_SET.
17018         (expand_call): Likewise.
17019         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
17020         to get promoted mode.
17021         * combine.c (record_promoted_value): Skip > 0 comparison with
17022         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
17023         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
17024         of SUBREG_PROMOTED_UNSIGNED_P.
17025         (convert_modes): Likewise.
17026         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
17027         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
17028         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
17029         SUBREG_PROMOTED_UNSIGNED_SET.
17030         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
17031         instead of SUBREG_PROMOTED_UNSIGNED_SET.
17032         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
17033         SUBREG_PROMOTED_SET.
17034         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
17035         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
17036         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
17037         of SUBREG_PROMOTED_UNSIGNED_P.
17038         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
17039         (SUBREG_PROMOTED_SET): New define.
17040         (SUBREG_PROMOTED_GET): Likewise.
17041         (SUBREG_PROMOTED_SIGN): Likewise.
17042         (SUBREG_PROMOTED_SIGNED_P): Likewise.
17043         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
17044         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
17045         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
17046         instead of SUBREG_PROMOTED_UNSIGNED_GET.
17047         (nonzero_bits1): Skip > 0 comparison with the results as
17048         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
17049         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
17050         of !SUBREG_PROMOTED_UNSIGNED_P.
17051         * simplify-rtx.c (simplify_unary_operation_1): Use new
17052         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
17053         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
17054         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
17055         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
17057 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
17059         * ipa-devirt.c: Include gimple-pretty-print.h
17060         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
17061         further tests.
17062         (decl_maybe_in_construction_p): Fix conditional on cdtor check
17063         (get_polymorphic_call_info): Fix return value
17064         (type_change_info): New sturcture based on ipa-prop
17065         variant.
17066         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
17067         based on ipa-prop variant.
17068         (extr_type_from_vtbl_ptr_store): New function
17069         based on ipa-prop variant.
17070         (record_known_type): New function.
17071         (check_stmt_for_type_change): New function.
17072         (get_dynamic_type): New function.
17073         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
17074         * tree-ssa-pre.c: ipa-utils.h
17075         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
17076         machinery; sanity check with ipa-prop devirtualization.
17077         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
17078         polymorphic flag.
17080 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
17082         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
17083         * alias.c, cfgexpand.c, cgraphbuild.c,
17084         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
17085         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
17086         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
17087         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
17088         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
17089         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17090         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
17091         dse.c, except.c, gengtype.c, gimple-expr.c,
17092         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
17093         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
17094         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
17095         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
17096         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
17097         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
17098         pointer-set.h.
17099         * pointer-set.c: Remove file.
17100         * pointer-set.h: Remove file.
17102 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17104         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
17105         * config/arm/types.md (f_sels, f_seld): Delete.
17107 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17109         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
17110         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
17111         (aarch64_movdi_<mode>high): Likewise.
17112         (aarch64_mov<mode>high_di): Likewise.
17113         (aarch64_movdi_<mode>low): Likewise.
17114         (aarch64_mov<mode>low_di): Likewise.
17115         (aarch64_movtilow_tilow): Likewise.
17116         Add comment explaining usage of fp,simd attributes and of
17117         TARGET_FLOAT and TARGET_SIMD.
17119 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
17120             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17122         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
17123         Use MOVN when one of the half-words is 0xffff.
17125 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
17127         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
17129 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17131         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
17132         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
17133         (rfs_str): String corresponding to RFS_* constants.
17134         (rank_for_schedule_stats_t): New typedef.
17135         (rank_for_schedule_stats): New static variable.
17136         (rfs_result): New static function.
17137         (rank_for_schedule): Track statistics for deciding heuristics.
17138         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
17139         static functions.
17140         (ready_sort): Use them for debug printouts.
17141         (schedule_block): Init statistics state.  Print statistics on
17142         rank_for_schedule decisions.
17144 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17146         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
17148 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
17150         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
17151         constraint.
17153 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
17155         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
17156         function to not conflict.
17157         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
17158         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
17159         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
17160         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
17161         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
17162         of pointer_map.
17164 2014-08-07  Marek Polacek  <polacek@redhat.com>
17166         * fold-const.c (fold_binary_loc): Add folding of
17167         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
17169 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
17171         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
17172         instead of type size.
17173         (ASM_FINISH_DECLARE_OBJECT): Likewise.
17175 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
17177         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
17178         (*thumb1_movqi_insn): Likewise.
17179         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
17181 2014-08-07  Tom de Vries  <tom@codesourcery.com>
17183         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17184         (glibc_2_11_or_earlier): Remove effective-target keywords.
17186 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
17188         * config/arm/arm.c (bdesc_2arg): Fix typo.
17189         (arm_atomic_assign_expand_fenv): Remove The default implementation.
17191 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17193         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
17195 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
17197         PR debug/61923
17198         * haifa-sched.c (advance_one_cycle): Fix dump.
17199         (schedule_block): Don't advance cycle if we are already at the
17200         beginning of the cycle.
17202 2014-08-06  Martin Jambor  <mjambor@suse.cz>
17204         PR ipa/61393
17205         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
17207 2014-08-06  Richard Biener  <rguenther@suse.de>
17209         PR lto/62034
17210         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
17211         SCCs here.
17212         (lto_input_tree): Pop SCCs here.
17214 2014-08-06  Richard Biener  <rguenther@suse.de>
17216         PR tree-optimization/61320
17217         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
17218         handle misaligned loads.
17220 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
17222         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
17223         (aarch64_expand_vec_perm_const): Check for dup before zip.
17225 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17227         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
17228         CONST_INT_P instead of GET_CODE and compare.
17229         (aarch64_select_cc_mode): Likewise.
17230         (aarch64_print_operand): Likewise.
17231         (aarch64_rtx_costs): Likewise.
17232         (aarch64_simd_valid_immediate): Likewise.
17233         (aarch64_simd_check_vect_par_cnst_half): Likewise.
17234         (aarch64_simd_emit_pair_result_insn): Likewise.
17236 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
17238         * gdbhooks.py (find_gcc_source_dir): New helper function.
17239         (class PassNames): New class, locating and parsing passes.def.
17240         (class BreakOnPass): New command "break-on-pass".
17242 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
17244         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
17245         getting olde.
17247 2014-08-05  Richard Biener  <rguenther@suse.de>
17249         PR rtl-optimization/61672
17250         * emit-rtl.h (mem_attrs_eq_p): Declare.
17251         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
17252         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
17253         * cfgcleanup.c (merge_memattrs): Likewise.
17254         Include emit-rtl.h.
17256 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17258         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
17259         rather than singleton vectors.
17260         (vqdmlsls_lane_s32): Likewise.
17262 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17264         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
17265         Use VSDQ_HSI mode iterator.
17266         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17267         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
17268         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
17269         Use BUILTIN_VDQHS macro.
17270         (sqrdmulh_laneq): Likewise.
17271         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
17272         (vqdmlals_laneq_s32): Likewise.
17273         (vqdmlslh_laneq_s16): Likewise.
17274         (vqdmlsls_laneq_s32): Likewise.
17275         (vqdmulhh_laneq_s16): Likewise.
17276         (vqdmulhs_laneq_s32): Likewise.
17277         (vqrdmulhh_laneq_s16): Likewise.
17278         (vqrdmulhs_laneq_s32): Likewise.
17280 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17282         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
17283         (vmuld_laneq_f64): Likewise.
17284         (vmuls_laneq_f32): Likewise.
17285         (vmul_n_f64): Likewise.
17286         (vmuld_lane_f64): Reimplement in C.
17287         (vmuls_lane_f32): Likewise.
17289 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17291         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
17292         to reservation.
17293         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
17295 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17297         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
17298         (rbitsi2): Likewise.
17299         (*arm_rev): Set predicable and predicable_short_it attributes.
17301 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17303         * convert.c (convert_to_integer): Guard transformation to lrint by
17304         -fno-math-errno.
17306 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
17308         * config/aarch64/aarch64-builtins.c
17309         (aarch64_simd_builtin_type_mode): Delete.
17310         (v8qi_UP): Remap to V8QImode.
17311         (v4hi_UP): Remap to V4HImode.
17312         (v2si_UP): Remap to V2SImode.
17313         (v2sf_UP): Remap to V2SFmode.
17314         (v1df_UP): Remap to V1DFmode.
17315         (di_UP): Remap to DImode.
17316         (df_UP): Remap to DFmode.
17317         (v16qi_UP):V16QImode.
17318         (v8hi_UP): Remap to V8HImode.
17319         (v4si_UP): Remap to V4SImode.
17320         (v4sf_UP): Remap to V4SFmode.
17321         (v2di_UP): Remap to V2DImode.
17322         (v2df_UP): Remap to V2DFmode.
17323         (ti_UP): Remap to TImode.
17324         (ei_UP): Remap to EImode.
17325         (oi_UP): Remap to OImode.
17326         (ci_UP): Map to CImode.
17327         (xi_UP): Remap to XImode.
17328         (si_UP): Remap to SImode.
17329         (sf_UP): Remap to SFmode.
17330         (hi_UP): Remap to HImode.
17331         (qi_UP): Remap to QImode.
17332         (aarch64_simd_builtin_datum): Make mode a machine_mode.
17333         (VAR1): Build builtin name.
17334         (aarch64_init_simd_builtins): Remove dead code.
17336 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17338         * graphite-isl-ast-to-gimple.c:
17339         (set_options): New function.
17340         (scop_to_isl_ast): Add calling of set_options.
17342 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
17344         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
17345         (analyze_iv_to_split_insn): Don't initialize them.
17346         (get_ivts_expr): Removed.
17347         (allocate_basic_variable, insert_base_initialization): Use
17348         SET_SRC instead of *get_ivts_expr.
17349         (split_iv): Use &SET_SRC instead of get_ivts_expr.
17351 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17353         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
17354         (translate_isl_ast_for_loop): Add checking of the
17355         flag_loop_parallelize_all.
17356         (ast_build_before_for): New function.
17357         (scop_to_isl_ast): Add checking of the
17358         flag_loop_parallelize_all.
17359         * graphite-dependences.c: Move the defenition of the
17360         scop_get_dependences from graphite-optimize-isl.c to this file.
17361         (apply_schedule_on_deps): Add checking of the ux's emptiness.
17362         (carries_deps): Add checking of the x's value.
17363         * graphite-optimize-isl.c: Move the defenition of the
17364         scop_get_dependences to graphite-dependences.c.
17365         * graphite-poly.h: Add declarations of scop_get_dependences
17366         and carries_deps.
17368 2014-08-04  Rohit  <rohitarulraj@freescale.com>
17370         PR target/60102
17371         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
17372         names.
17373         (alt_reg_names): Likewise.
17374         (rs6000_dwarf_register_span): For SPE high registers, replace
17375         dwarf register numbers with GCC hard register numbers.
17376         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
17377         (rs6000_dbx_register_number): For SPE high registers, return dwarf
17378         register number for the corresponding GCC hard register number.
17379         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
17380         newly added GCC hard register numbers for SPE high registers.
17381         (DWARF_FRAME_REGISTERS):  Likewise.
17382         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
17383         (DWARF_FRAME_REGNUM): Likewise.
17384         (FIXED_REGISTERS): Likewise.
17385         (CALL_USED_REGISTERS): Likewise.
17386         (CALL_REALLY_USED_REGISTERS): Likewise.
17387         (REG_ALLOC_ORDER): Likewise.
17388         (enum reg_class): Likewise.
17389         (REG_CLASS_NAMES): Likewise.
17390         (REG_CLASS_CONTENTS): Likewise.
17391         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
17393 2014-08-04  Richard Biener  <rguenther@suse.de>
17395         * gimple-fold.h (gimple_fold_builtin): Remove.
17396         * gimple-fold.c (gimple_fold_builtin): Make static.
17397         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
17398         fold_stmt, not gimple_fold_builtin.
17400 2014-08-04  Martin Liska <mliska@suse.cz>
17402         * cgraph.h (csi_end_p): Removed.
17403         (csi_next): Likewise.
17404         (csi_node): Likewise.
17405         (csi_start): Likewise.
17406         (cgraph_node_in_set_p): Likewise.
17407         (cgraph_node_set_size): Likewise.
17408         (vsi_end_p): Likewise.
17409         (vsi_next): Likewise.
17410         (vsi_node): Likewise.
17411         (vsi_start): Likewise.
17412         (varpool_node_set_size): Likewise.
17413         (cgraph_node_set_nonempty_p): Likewise.
17414         (varpool_node_set_nonempty_p): Likewise.
17415         * cgraphunit.c (cgraph_process_new_functions): vec replaces
17416         cgraph_node_set.
17417         * ipa-inline-transform.c: Likewise.
17418         * ipa-utils.c (cgraph_node_set_new): Removed.
17419         (cgraph_node_set_add): Likewise.
17420         (cgraph_node_set_remove): Likewise.
17421         (cgraph_node_set_find): Likewise.
17422         (dump_cgraph_node_set): Likewise.
17423         (debug_cgraph_node_set): Likewise.
17424         (free_cgraph_node_set): Likewise.
17425         (varpool_node_set_new): Likewise.
17426         (varpool_node_set_add): Likewise.
17427         (varpool_node_set_remove): Likewise.
17428         (varpool_node_set_find): Likewise.
17429         (dump_varpool_node_set): Likewise.
17430         (free_varpool_node_set): Likewise.
17431         (debug_varpool_node_set): Likewise.
17432         * tree-emutls.c (struct tls_var_data):
17433         (emutls_index): Removed.
17434         (emutls_decl): Likewise.
17435         (gen_emutls_addr): Function implementation uses newly added
17436         hash_map<varpool_node *, tls_var_data>.
17437         (clear_access_vars): Likewise.
17438         (create_emultls_var): Likewise.
17439         (ipa_lower_emutls): Likewise.
17440         (reset_access): New function.
17442 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17444         * config/i386/i386.c (ix86_option_override_internal): Add
17445         PTA_RDRND and PTA_MOVBE for bdver4.
17447 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17448             James Greenhalgh  <james.greenhalgh@arm.com>
17450         * doc/md.texi (clrsb): Document.
17451         (clz): Change reference to x into operand 1.
17452         (ctz): Likewise.
17453         (popcount): Likewise.
17455 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17457         PR target/61713
17458         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
17459         move to subtarget in serial version if result is ignored.
17461 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17462             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17464         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
17465         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
17466         (sched_analyze_insn): Update use of try_group_insn to
17467         sched_macro_fuse_insns.
17468         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
17469         arguments that are not conditional jumps.
17471 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17473         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
17474         family information. Handle BTVER2 cpu with cpuid family value.
17476 2014-08-04  Tom de Vries  <tom@codesourcery.com>
17478         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17479         (glibc_2_11_or_earlier): Document effective-target keywords.
17481 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17483         * ipa-devirt.c (odr_type_warn_count): Add type.
17484         (possible_polymorphic_call_targets): Set it.
17485         (ipa_devirt): Use it.
17487 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17489         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
17490         Document.
17491         * ipa-devirt.c: Include hash-map.h
17492         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
17493         (clear_speculation): Break out of ...
17494         (get_class_context): ... here; speed up handling obviously useless
17495         speculations.
17496         (odr_type_warn_count, decl_warn_count): New structures.
17497         (final_warning_record): New structure.
17498         (final_warning_records): New static variable.
17499         (possible_polymorphic_call_targets): Cleanup handling of
17500         speculative info; do not build speculation when user do not care;
17501         record info about warnings when asked for.
17502         (add_decl_warning): New function.
17503         (type_warning_cmp): New function.
17504         (decl_warning_cmp): New function.
17505         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
17506         (gate): Enable pass when warnings are requested.
17507         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
17508         options.
17510 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17512         * hash-map.h (default_hashmap_traits::mark_key_deleted):
17513         Fix cast.
17514         (hash_map::remove): New method.
17515         (hash_map::traverse): New method.
17516         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
17517         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
17518         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
17519         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
17520         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
17521         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
17522         pointer_map.
17524 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17526         * hash-set.h: new File.
17527         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
17528         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
17529         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
17530         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
17531         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
17532         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
17533         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
17534         varpool.c: Use hash_set instead of pointer_set.
17536 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
17538         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
17540 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17542         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
17543         for frame access when strict_p is false.
17545 2014-08-01  Renlin Li <renlin.li@arm.com>
17546 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17548         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
17549         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
17550         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
17551         Declaration.
17552         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
17553         predicate.
17554         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
17555         aarch64_mem_pair_offset.
17557 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17559         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
17560         offset.
17561         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
17562         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
17564 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
17566         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
17568 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
17570         PR regression/61510
17571         * cgraphunit.c (analyze_functions): Use get_create rather than get
17572         for decls which are clones of abstract functions.
17574 2014-08-01  Martin Liska  <mliska@suse.cz>
17576         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
17577         * ipa-prop.h (count_formal_params): Global function created from static.
17578         * ipa-prop.c (count_formal_params): Likewise.
17579         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
17580         profiles for semantically equivalent functions.
17581         * passes.c (do_per_function): If we load body of a function
17582         during WPA, this condition should behave same.
17583         * varpool.c (ctor_for_folding): More tolerant assert for variable
17584         aliases created during WPA.
17586 2014-08-01  Martin Liska  <mliska@suse.cz>
17588         * doc/invoke.texi (Options That Control Optimization): Documentation
17589         for -foptimize-strlen introduced. Optimization levels default options
17590         fixed.
17592 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
17594         * opts.c (common_handle_option): Handle -fsanitize=alignment.
17595         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
17596         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
17597         type to bool.
17598         * stor-layout.h (min_align_of_type): New prototype.
17599         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
17600         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
17601         check.
17602         * ubsan.c: Include builtins.h.
17603         (ubsan_expand_bounds_ifn): Change return type to bool,
17604         always return true.
17605         (ubsan_expand_null_ifn): Change return type to bool, change
17606         argument to gimple_stmt_iterator *.  Handle both null and alignment
17607         sanitization, take type from ckind argument's type rather than
17608         first argument.
17609         (instrument_member_call): Removed.
17610         (instrument_mem_ref): Remove t argument, add mem and base arguments.
17611         Handle both null and alignment sanitization, don't say whole
17612         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
17613         call instead of 2 argument.
17614         (instrument_null): Adjust instrument_mem_ref caller.  Don't
17615         instrument calls here.
17616         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
17617         like SANITIZE_NULL.
17618         * stor-layout.c (min_align_of_type): New function.
17619         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
17620         Or it into SANITIZE_UNDEFINED.
17621         * doc/invoke.texi (-fsanitize=alignment): Document.
17623 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17625         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17627 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17629         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17630         inchash.
17631         (vn_reference_compute_hash): Dito.
17632         (vn_nary_op_compute_hash): Dito.
17633         (vn_phi_compute_hash): Dito.
17634         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17636 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17638         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17639         Rename to inchash:add_expr_commutative. Convert to inchash.
17640         (iterative_hash_hashable_expr): Rename to
17641         inchash:add_hashable_expr. Convert to inchash.
17642         (avail_expr_hash): Dito.
17644 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17646         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17647         Convert to inchash.
17649 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17651         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17653 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17655         * Makefile.in (OBJS): Add rtlhash.o
17656         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17657         (loc_checksum): Dito.
17658         (loc_checksum_ordered): Dito.
17659         (hash_loc_operands): Dito.
17660         (hash_locs): Dito.
17661         (hash_loc_list): Dito.
17662         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17663         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17664         * rtlhash.c: New file.
17665         * rtlhash.h: New file.
17667 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17669         * inchash.h (inchash): Change inchash class to namespace.
17670         (class hash): ... Rename from inchash.
17671         (add_object): Move from macro to class template.
17672         * lto-streamer-out.c (hash_tree): Change inchash
17673         to inchash::hash.
17674         * tree.c (build_type_attribute_qual_variant): Dito.
17675         (type_hash_list): Dito.
17676         (attribute_hash_list): Dito.
17677         (iterative_hstate_expr): Rename to inchash::add_expr
17678         (build_range_type_1): Change inchash to inchash::hash
17679         and use hash::add_expr.
17680         (build_array_type_1): Dito.
17681         (build_function_type): Dito
17682         (build_method_type_directly): Dito.
17683         (build_offset_type): Dito.
17684         (build_complex_type): Dito.
17685         (make_vector_type): Dito.
17686         * tree.h (iterative_hash_expr): Dito.
17688 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
17690         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17692 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17694         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17695         correct alphabetical position.
17696         (vpaddd_f64): Rewrite using builtins.
17697         (vpaddd_s64): Move to correct alphabetical position.
17698         (vpaddd_u64): New.
17700 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
17702         PR target/61844
17703         * config/sh/sh.c (sh_legitimate_address_p,
17704         sh_legitimize_reload_address): Handle reg+reg address modes when
17705         ALLOW_INDEXED_ADDRESS is false.
17706         * config/sh/predicates.md (general_movsrc_operand,
17707         general_movdst_operand): Likewise.
17709 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17711         * config/aarch64/aarch64-builtins.c
17712         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17713         BYTES_BIG_ENDIAN.
17715 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17717         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17718         the generated mask based on BYTES_BIG_ENDIAN.
17719         (aarch64_simd_check_vect_par_cnst_half): New.
17720         * config/aarch64/aarch64-protos.h
17721         (aarch64_simd_check_vect_par_cnst_half): New.
17722         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17723         the check out to aarch64_simd_check_vect_par_cnst_half.
17724         (vect_par_cnst_lo_half): Likewise.
17725         * config/aarch64/aarch64-simd.md
17726         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17727         (move_hi_quad_<mode>): Always generate a low mask.
17729 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17731         * doc/invoke.texi (AVR Options): Add documentation about
17732         __AVR_DEVICE_NAME__ built-in macro.
17734 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
17736         PR target/61948
17737         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17738         constraints are satisfied.
17739         (<shift>di3_neon): Likewise.
17741 2014-07-31  Richard Biener  <rguenther@suse.de>
17743         PR tree-optimization/61964
17744         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17745         by structural equality.
17747 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
17749         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17750         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17751         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17752         New enums.
17753         * gcc.c (sanitize_spec_function): Support new option.
17754         (SANITIZER_SPEC): Remove now redundant check.
17755         * opts.c (common_handle_option): Support new option.
17756         (finish_options): Check for incompatibilities.
17757         * toplev.c (process_options): Split userspace-specific checks.
17759 2014-07-31  Richard Biener  <rguenther@suse.de>
17761         * lto-streamer.h (struct output_block): Remove global.
17762         (struct data_in): Remove labels, num_named_labels and
17763         num_unnamed_labels.
17764         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17765         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17767 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
17769         PR c++/60517
17770         * common.opt (-Wreturn-local-addr): Moved from c.opt.
17771         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17772         (isolate_path): New argument to avoid inserting a trap.
17773         (find_implicit_erroneous_behaviour): Handle returning the address
17774         of a local variable.
17775         (find_explicit_erroneous_behaviour): Likewise.
17777 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
17779         PR lto/61868
17780         * toplev.c (init_random_seed): Move piece of code never called to
17781         set_random_seed.
17782         (set_random_seed): see above.
17784 2014-07-31  Tom de Vries  <tom@codesourcery.com>
17786         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17788 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17790         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17791         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17793 2014-07-31  Richard Biener  <rguenther@suse.de>
17795         * data-streamer.h (streamer_write_data_stream): Declare here,
17796         renamed from ...
17797         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
17798         * lto-cgraph.c (lto_output_node): Adjust.
17799         (lto_output_varpool_node): Likewise.
17800         * data-streamer-out.c (streamer_string_index): Likewise.
17801         (streamer_write_data_stream, lto_append_block): Move from ...
17802         * lto-section-out.c (lto_output_data_stream,
17803         lto_append_block): ... here.
17805 2014-07-30  Mike Stump  <mikestump@comcast.net>
17807         * configure.ac: Also check for popen.
17808         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17809         * configure: Regenerate.
17810         * config.in:  Regenerate.
17812 2014-07-30  Martin Jambor  <mjambor@suse.cz>
17814         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17815         parameter to gimple.
17817 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17819         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17820         address as second parameter to __tpf_eh_return routine.
17822 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
17824         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17825         Thumb2.
17827 2014-07-30  Tom Tromey  <tromey@redhat.com>
17829         PR c/59855
17830         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17831         * doc/extend.texi (Type Attributes): Document designated_init
17832         attribute.
17834 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
17836         * graphite-isl-ast-to-gimple.c:
17837         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17838         (gcc_expression_from_isl_expression): Pass type to
17839         gcc_expression_from_isl_ast_expr_id.
17841 2014-07-30  Richard Biener  <rguenther@suse.de>
17843         * lto-streamer.h (lto_write_data): New function.
17844         * langhooks.c (lhd_append_data): Do not free block.
17845         * lto-section-out.c (lto_write_data): New function writing
17846         raw data to the current section.
17847         (lto_write_stream): Adjust for langhook semantic change.
17848         (lto_destroy_simple_output_block): Write header directly.
17849         * lto-opts.c (lto_write_options): Write options directly.
17850         * lto-streamer-out.c (produce_asm): Write heaeder directly.
17851         (lto_output_toplevel_asms): Likewise.
17852         (copy_function_or_variable): Copy data directly.
17853         (write_global_references): Output index table directly.
17854         (lto_output_decl_state_refs): Likewise.
17855         (write_symbol): Write data directly.
17856         (produce_symtab): Adjust.
17857         (produce_asm_for_decls): Output header and refs directly.
17859 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17861         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17862         to speculative_targets
17863         (get_class_context): Fix handling of contextes without outer type;
17864         avoid matching non-polymorphic types in LTO.
17865         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17866         parameter to speculative_targetsp; handle speculation.
17867         (dump_possible_polymorphic_call_targets): Update dumping.
17869 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17871         * common.opt (Wodr): Enable by default.
17873 2014-07-29  Olivier Hainque  <hainque@adacore.com>
17875         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17877 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17879         PR bootstrap/61914
17880         * gengtype.c (strtoken): New function.
17881         (create_user_defined_type): Replace strtok with strtoken.
17883 2014-07-29  Nathan Sidwell  <nathan@acm.org>
17885         * gcov-io.c (gcov_var): Make hidden.
17886         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17887         (gcov_do_dump): Declare.
17888         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17890 2014-07-29  Martin Jambor  <mjambor@suse.cz>
17892         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17893         parameter to gimple.
17894         (sra_modify_assign): Likewise.
17896 2014-07-29  Richard Biener  <rguenther@suse.de>
17898         PR middle-end/52478
17899         * expr.c (expand_expr_real_2): Revert last change.
17901 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17903         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17904         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17905         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17906         call.
17907         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17908         (contains_type_p): Forward declare.
17909         (polymorphic_call_target_hasher::hash): Hash speculative info.
17910         (polymorphic_call_target_hasher::equal): Compare speculative info.
17911         (get_class_context): Handle speuclation.
17912         (contains_type_p): Update.
17913         (get_polymorphic_call_info_for_decl): Update.
17914         (walk_ssa_copies): Break out from ...
17915         (get_polymorphic_call_info): ... here; set speculative context
17916         before giving up.
17917         * ipa-prop.c (ipa_write_indirect_edge_info,
17918         ipa_read_indirect_edge_info): Stream speculative context.
17919         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17920         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17921         SPECULATIVE_MAYBE_DERIVED_TYPE).
17922         (possible_polymorphic_call_targets overriders): Update.
17923         (dump_possible_polymorphic_call_targets overriders): Update.
17924         (dump_possible_polymorphic_call_target_p overriders): Update.
17926 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17928         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17929         ipa-devirt path; fix thinko there.
17931 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
17933         * config/i386/i386.c (ix86_return_in_memory): Replace one
17934         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17936 2014-07-28  Marek Polacek  <polacek@redhat.com>
17938         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
17940 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
17942         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17943         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17944         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17945         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17946         (USE_LD_AS_NEEDED): Likewise.
17947         (ASM_APP_ON): Likewise.
17948         (ASM_APP_OFF): Likewise.
17949         (TARGET_POSIX_IO): Likewise.
17950         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17951         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17952         (USE_LD_AS_NEEDED): Likewise.
17953         (ASM_APP_ON): Likewise.
17954         (ASM_APP_OFF): Likewise.
17955         (TARGET_POSIX_IO): Likewise.
17957 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17959         PR middle-end/61734
17960         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17961         operators other than the equality operators.
17963 2014-07-28  Richard Biener  <rguenther@suse.de>
17965         PR middle-end/52478
17966         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17967         sure to register SImode ones, not only >= word_mode ones.
17968         * expr.c (expand_expr_real_2): When expanding -ftrapv
17969         binops do not use OPTAB_LIB_WIDEN.
17971 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
17973         PR middle-end/61919
17974         * tree-outof-ssa.c (insert_partition_copy_on_edge)
17975         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17976         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17977         inserting them in the insn stream.
17979 2014-07-28  Marek Polacek  <polacek@redhat.com>
17981         PR middle-end/61913
17982         * common.opt (Wodr): Add Var.
17984 2014-07-28  Richard Biener  <rguenther@suse.de>
17986         PR tree-optimization/61921
17987         * tree-ssa-structalias.c (create_variable_info_for_1): Check
17988         if there is a varpool node before dereferencing it.
17990 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17992         * graphite-sese-to-poly.c:
17993         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17994         id of the pbb), which contains pointer to the pbb1.
17996         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17998 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
18000         * graphite-isl-ast-to-gimple.c:
18001         (graphite_create_new_guard): New function.
18002         (translate_isl_ast_node_if): New function.
18003         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
18005         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
18007 2014-07-27  Anthony Green  <green@moxielogic.com>
18009         * config.gcc: Add moxie-*-moxiebox* configuration.
18010         * config/moxie/moxiebox.h: New file.
18012 2014-07-26  Andrew Pinski  <apinski@cavium.com>
18014         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
18015         from the read only register.
18017 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
18019         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
18020         as the allocation class if it isn't likely to be spilled.
18022 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
18024         * rtl.h (tls_referenced_p): Declare.
18025         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
18026         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
18027         (mips_cannot_force_const_mem): Use tls_referenced_p.
18028         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
18029         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
18030         instead of pa_tls_referenced_p.
18031         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
18032         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
18033         (pa_legitimate_constant_p): Likewise.
18034         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
18035         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
18036         (rs6000_cannot_force_const_mem, rs6000_emit_move)
18037         (rs6000_address_for_altivec): Use tls_referenced_p instead of
18038         rs6000_tls_referenced_p.
18039         (rs6000_tls_symbol_ref_1): Delete.
18041 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
18043         PR target/44551
18044         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
18045         Optimize inverse of a VEC_CONCAT.
18047 2014-07-25  Xinliang David Li  <davidxl@google.com>
18049         * params.def: New parameter.
18050         * coverage.c (get_coverage_counts): Check new flag.
18051         (coverage_compute_profile_id): Check new flag.
18052         (coverage_begin_function): Check new flag.
18053         (coverage_end_function): Check new flag.
18054         * value-prof.c (coverage_node_map_initialized_p): New function.
18055         (init_node_map): Populate map with all functions.
18056         * doc/invoke.texi: Document new parameter.
18058 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
18059             Richard Biener <rguenther@suse.de>
18061         * lto-streamer-out.c (struct sccs): Turn to ...
18062         (class DFS): ... this one; refactor the DFS walk so it can
18063         be re-done on per-SCC basis.
18064         (DFS::DFS): New constructor.
18065         (DFS::~DFS): New destructor.
18066         (hash_tree): Add new MAP argument holding in-SCC hash values;
18067         remove POINTER_TYPE hashing hack.
18068         (scc_entry_compare): Rename to ...
18069         (DFS::scc_entry_compare): ... this one.
18070         (hash_scc): Rename to ...
18071         (DFS::hash_scc): ... this one; pass output_block instead
18072         of streamer_cache; work harder to get unique and stable SCC
18073         hashes.
18074         (DFS_write_tree): Rename to ...
18075         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
18076         (lto_output_tree): Update.
18078 2014-07-25  Andi Kleen  <ak@linux.intel.com>
18080         * lto-streamer-out.c (hash_tree): Convert to inchash.
18082 2014-07-25  Andi Kleen  <ak@linux.intel.com>
18084         * tree.c (build_type_attribute_qual_variant): Use inchash.
18085         (type_hash_list): Dito.
18086         (attribute_hash_list): Dito
18087         (iterative_hstate_expr): Dito.
18088         (iterative_hash_expr): Dito.
18089         (build_range_type_1): Dito.
18090         (build_array_type_1): Dito.
18091         (build_function_type): Dito.
18092         (build_method_type_directly): Dito.
18093         (build_offset_type): Dito.
18094         (build_complex_type): Dito.
18095         (make_vector_type): Dito.
18096         * tree.h (iterative_hash_expr): Add compat wrapper.
18097         (iterative_hstate_expr): Add.
18099 2014-07-25  Andi Kleen  <ak@linux.intel.com>
18101         * Makefile.in (OBJS): Add inchash.o.
18102         (PLUGIN_HEADERS): Add inchash.h.
18103         * ipa-devirt.c: Include inchash.h.
18104         * lto-streamer-out.c: Dito.
18105         * tree-ssa-dom.c: Dito.
18106         * tree-ssa-pre.c: Dito.
18107         * tree-ssa-sccvn.c: Dito.
18108         * tree-ssa-tail-merge.c: Dito.
18109         * asan.c: Dito.
18110         * tree.c (iterative_hash_hashval_t): Move to ...
18111         (iterative_hash_host_wide_int): Move to ...
18112         * inchash.c: Here. New file.
18113         * tree.h (iterative_hash_hashval_t): Move to ...
18114         (iterative_hash_host_wide_int): Move to ...
18115         * inchash.h: Here. New file.
18117 2014-07-25  Richard Biener  <rguenther@suse.de>
18119         PR middle-end/61762
18120         PR middle-end/61894
18121         * fold-const.c (native_encode_int): Add and handle offset
18122         parameter to do partial encodings of expr.
18123         (native_encode_fixed): Likewise.
18124         (native_encode_real): Likewise.
18125         (native_encode_complex): Likewise.
18126         (native_encode_vector): Likewise.
18127         (native_encode_string): Likewise.
18128         (native_encode_expr): Likewise.
18129         * fold-const.c (native_encode_expr): Add offset parameter
18130         defaulting to -1.
18131         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
18132         (fold_ctor_reference): Handle all reads from tcc_constant
18133         ctors.
18135 2014-07-25  Richard Biener  <rguenther@suse.de>
18137         * tree-inline.c (estimate_move_cost): Mark speed_p argument
18138         as possibly unused.
18140 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18142         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
18144 2014-07-24  Kyle McMartin  <kyle@redhat.com>
18146         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
18148 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18150         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
18151         Add prototype.
18152         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
18153         function.
18154         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
18155         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
18156         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
18158 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18160         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
18161         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
18162         aggregate types.  Instead, *all* aggregate types, except for single-
18163         element or homogeneous float/vector aggregates, are quadword-aligned
18164         if required by their type alignment.  Issue -Wpsabi note when a type
18165         is now treated differently than before.
18167 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18169         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
18170         does not fit fully into floating-point registers, and there is still
18171         space in the register parameter area, use GPRs to pass those parts
18172         of the argument.  Issue -Wpsabi note if any parameter is now treated
18173         differently than before.
18174         (rs6000_arg_partial_bytes): Update.
18176 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
18178         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
18180 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18182         * rtl.h (target_rtl): Remove lang_dependent_initialized.
18183         * toplev.c (initialize_rtl): Don't use it.  Move previously
18184         "language-dependent" calls to...
18185         (backend_init): ...here.
18186         (lang_dependent_init_target): Don't set lang_dependent_initialized.
18187         Assert that RTL initialization hasn't happend yet.
18189 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18191         PR rtl-optimization/61629
18192         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
18193         they have already been initialized.
18195 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18197         PR middle-end/61268
18198         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
18199         DECL_INCOMING_RTL and entry_parm.
18200         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
18201         * calls.c (load_register_parameters): Likewise argument values.
18202         (emit_library_call_value_1, store_one_arg): Likewise argument
18203         save areas.
18204         * config/i386/i386.c (assign_386_stack_local): Likewise the local
18205         stack slot.
18206         * explow.c (validize_mem): Modify the argument in-place.
18208 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18210         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
18211         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
18213 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18215         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
18216         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
18218 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18220         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
18221         (aarch64_save_callee_saves): New parameter "skip_wb".
18222         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
18224 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18226         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
18227         "wb_candidate2".
18228         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
18230 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18232         * graphite-isl-ast-to-gimple.c:
18233         (graphite_create_new_loop): Add calling of isl_id_free to properly
18234         decrement reference counts.
18236         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
18238 2014-07-24  Martin Liska  <mliska@suse.cz>
18239         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
18240         function used.
18241         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
18242         (rs6000_code_end): Likewise.
18244 2014-07-24  Martin Liska  <mliska@suse.cz>
18246         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
18247         symtab_node funtion used.
18248         (rs6000_xcoff_declare_object_name): Likewise.
18250 2014-07-24  Martin Liska  <mliska@suse.cz>
18252         * cgraphunit.c (compile): Correct function used.
18254 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18256         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
18257         as non-indexable.
18259 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18261         PR lto/61802
18262         * varasm.c (bss_initializer_p): Handle offlined ctors.
18263         (align_variable, get_variable_align): Likewise.
18264         (make_decl_one_only): Likewise.
18265         (default_binds_local_p_1): Likewise.
18266         (decl_binds_to_current_def_p): Likewise.
18267         (get_variable_section): Get constructor if it is offlined.
18268         (assemble_variable_contents): Sanity check that the caller
18269         streamed in the ctor in LTO.
18271 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18273         * graphite-isl-ast-to-gimple.c:
18274         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
18275         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
18276         isl_ast_op_pdiv_r to the different case.
18278         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
18280 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18282         PR middle-end/61876
18283         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
18284         when flag_errno_math is on.
18286 2014-07-24  Martin Liska  <mliska@suse.cz>
18288         * cgraph.h (varpool_node):
18289         (availability get_availability (void)):
18290         created from cgraph_variable_initializer_availability
18291         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
18292         created from: cgraph_variable_initializer_availability
18293         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
18294         (void finalize_named_section_flags (void)):
18295         created from varpool_finalize_named_section_flags
18296         (bool assemble_decl (void)): created from varpool_assemble_decl
18297         (void analyze (void)): created from varpool_analyze_node
18298         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
18299         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
18300         (void remove_initializer (void)): created from varpool_remove_initializer
18301         (tree get_constructor (void)): created from varpool_get_constructor
18302         (bool externally_visible_p (void)): created from varpool_externally_visible_p
18303         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
18304         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
18305         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
18306         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
18307         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
18308         (static bool output_variables (void)): created from varpool_output_variables
18309         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
18310         created from varpool_extra_name_alias
18311         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
18312         (static void dump_varpool (FILE *f)): created from dump_varpool
18313         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
18314         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
18315         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
18316         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
18317         (void assemble_aliases (void)): created from assemble_aliases
18319 2014-07-24  Martin Liska  <mliska@suse.cz>
18321         * cgraph.h (symtab_node):
18322         (void register_symbol (void)): created from symtab_register_node
18323         (void remove (void)): created from symtab_remove_node
18324         (void dump (FILE *f)): created from dump_symtab_node
18325         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
18326         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
18327         (struct ipa_ref *add_reference (symtab_node *referred_node,
18328         enum ipa_ref_use use_type)): created from add_reference
18329         (struct ipa_ref *add_reference (symtab_node *referred_node,
18330         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
18331         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
18332         gimple stmt)): created from maybe_add_reference
18333         (bool semantically_equivalent_p (symtab_node *target)): created from
18334         symtab_semantically_equivalent_p
18335         (void remove_from_same_comdat_group (void)): created from
18336         remove_from_same_comdat_group
18337         (void add_to_same_comdat_group (symtab_node *old_node)): created from
18338         symtab_add_to_same_comdat_group
18339         (void dissolve_same_comdat_group_list (void)): created from
18340         symtab_dissolve_same_comdat_group_list
18341         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
18342         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
18343         created from symtab_alias_ultimate_target
18344         (inline symtab_node *next_defined_symbol (void)): created from
18345         symtab_next_defined_symbol
18346         (bool resolve_alias (symtab_node *target)): created from
18347         symtab_resolve_alias
18348         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
18349         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
18350         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
18351         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
18352         (void set_section (const char *section)): created from set_section_1
18353         (enum availability get_availability (void)): created from symtab_node_availability
18354         (void make_decl_local (void)): created from symtab_make_decl_local
18355         (bool real_symbol_p (void)): created from symtab_read_node
18356         (can_be_discarded_p (void)): created from symtab_can_be_discarded
18357         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
18358         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
18359         symtab_in_same_comdat_p;
18360         (bool address_taken_from_non_vtable_p (void)): created from
18361         address_taken_from_non_vtable_p
18362         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
18363         (static void dump_table (FILE *)): created from dump_symtab
18364         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
18365         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
18366         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
18367         symtab_used_from_object_file_p
18368         (void dump_base (FILE *)): created from dump_symtab_base
18369         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
18370         (void unregister (void)): created from symtab_unregister_node
18371         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
18372         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
18373         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
18374         symtab_nonoverwritable_alias_1
18375         * cgraph.h (cgraph_node):
18376         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
18377         created from cgraph_remove_node_and_inline_clones
18378         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
18379         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
18380         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
18381         (cgraph_node *function_symbol (enum availability *avail = NULL)):
18382         created from cgraph_function_node
18383         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
18384         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
18385         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
18386         created from cgraph_create_clone
18387         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
18388         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
18389         created from cgraph_create_virtual_clone
18390         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
18391         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
18392         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
18393         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
18394         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
18395         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
18396         created from cgraph_function_version_info
18397         (struct cgraph_function_version_info *insert_new_function_version (void)):
18398         created from insert_new_cgraph_node_version
18399         (struct cgraph_function_version_info *function_version (void)): created from
18400         get_cgraph_node_version
18401         (void analyze (void)): created from analyze_function
18402         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
18403         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
18404         tree real_alias) cgraph_add_thunk
18405         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
18406         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
18407         created from cgraph_function_or_thunk_node
18408         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
18409         created from expand_thunk
18410         (void reset (void)): created from cgraph_reset_node
18411         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
18412         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
18413         (void remove (void)): created from cgraph_remove_node
18414         (void dump (FILE *f)): created from dump_cgraph_node
18415         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
18416         (bool get_body (void)): created from cgraph_get_body
18417         (void release_body (void)): created from cgraph_release_function_body
18418         (void unnest (void)): created from cgraph_unnest_node
18419         (void make_local (void)): created from cgraph_make_node_local
18420         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
18421         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
18422         gcov_type count, int freq)): created from cgraph_create_edge
18423         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
18424         gcov_type count, int freq)): created from cgraph_create_indirect_edge
18425         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
18426         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
18427         created from cgraph_create_edge_including_clones
18428         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
18429         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
18430         (void remove_callers (void)): created from cgraph_node_remove_callers
18431         (void remove_callees (void)): created from cgraph_node_remove_callees
18432         (enum availability get_availability (void)): created from cgraph_function_body_availability
18433         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
18434         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
18435         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
18436         (void call_duplication_hooks (cgraph_node *node2)): created from
18437         cgraph_call_node_duplication_hooks
18438         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
18439         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
18440         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
18441         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
18442         (void call_function_insertion_hooks (void)):
18443         created from cgraph_call_function_insertion_hooks
18444         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
18445         (bool local_p (void)): created from cgraph_local_node
18446         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
18447         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
18448         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
18449         (inline bool only_called_directly_or_aliased_p (void)):
18450         created from cgraph_only_called_directly_or_aliased_p
18451         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
18452         created from cgraph_will_be_removed_from_program_if_no_direct_calls
18453         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
18454         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
18455         (bool can_remove_if_no_direct_calls_p (void)):
18456         created from cgraph_can_remove_if_no_direct_calls_p
18457         (inline bool has_gimple_body_p (void)):
18458         created from cgraph_function_with_gimple_body_p
18459         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
18460         (static void dump_cgraph (FILE *f)): created from dump_cgraph
18461         (static inline void debug_cgraph (void)): created from debug_cgraph
18462         (static void record_function_versions (tree decl1, tree decl2)):
18463         created from record_function_versions
18464         (static void delete_function_version (tree decl)):
18465         created from delete_function_version
18466         (static void add_new_function (tree fndecl, bool lowered)):
18467         created from cgraph_add_new_function
18468         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
18469         (static cgraph_node * create (tree decl)): created from cgraph_create_node
18470         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
18471         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
18472         (static cgraph_node *get_for_asmname (tree asmname)):
18473         created from cgraph_node_for_asm
18474         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
18475         created from cgraph_same_body_alias
18476         (static bool used_from_object_file_p_worker (cgraph_node *node,
18477         void *): new function
18478         (static bool non_local_p (cgraph_node *node, void *)):
18479         created from cgraph_non_local_node_p_1
18480         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
18481         created from verify_cgraph
18482         (static bool make_local (cgraph_node *node, void *)):
18483         created from cgraph_make_node_local
18484         (static cgraph_node *create_alias (tree alias, tree target)):
18485         created from cgraph_create_function_alias
18486         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
18487         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
18488         created from cgraph_create_edge_1
18489         * cgraph.h (varpool_node):
18490         (void remove (void)): created from varpool_remove_node
18491         (void dump (FILE *f)): created from dump_varpool_node
18493 2014-07-24  Richard Biener  <rguenther@suse.de>
18495         PR ipa/61823
18496         * tree-ssa-structalias.c (create_variable_info_for_1):
18497         Use varpool_get_constructor.
18498         (create_variable_info_for): Likewise.
18500 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18502         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
18503         subtract outgoing area size when restoring stack_pointer_rtx.
18505 2014-07-24  Nick Clifton  <nickc@redhat.com>
18507         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
18508         that operations are taking place in parallel.
18509         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
18511 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
18513         * omp-low.c (extract_omp_for_data): Add missing break statement.
18515 2014-07-24  Richard Biener  <rguenther@suse.de>
18517         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
18518         * tree-inline.c (estimate_move_cost): Add speed_p parameter
18519         and adjust MOVE_RATIO query accordingly.
18520         (estimate_num_insns): Adjust callers.
18521         * ipa-prop.c (ipa_populate_param_decls): Likewise.
18522         * ipa-cp.c (gather_context_independent_values,
18523         estimate_local_effects): Likewise.
18524         * ipa-split.c (consider_split): Likewise.
18526 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
18528         * config/i386/driver-i386.c: Remove names of unused arguments and
18529         unnecessary unused attributes.
18530         * config/i386/host-mingw32.c: Likewise.
18531         * config/i386/i386.c: Likewise.
18532         * config/i386/winnt-stubs.c: Likewise.
18533         * config/i386/winnt.c: Likewise.
18535 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18537         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
18538         (aarch64_gen_loadwb_pair): New helper function.
18539         (aarch64_expand_epilogue): Simplify code using new helper functions.
18540         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
18542 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18544         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
18545         (aarch64_gen_storewb_pair): New helper function.
18546         (aarch64_expand_prologue): Simplify code using new helper functions.
18547         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
18549 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18551         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
18552         Rename to aarch64_save_callee_saves, remove restore code.
18553         (aarch64_restore_callee_saves): New function.
18555 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18557         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
18558         (aarch64_save_callee_saves): New function to handle reg save
18559         for both core and vectore regs.
18561 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18563         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
18564         (aarch64_gen_store_pair): New helper function.
18565         (aarch64_save_or_restore_callee_save_registers)
18566         (aarch64_save_or_restore_fprs): Use new helper functions.
18568 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18570         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
18571         (aarch64_save_or_restore_callee_save_registers)
18572         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
18574 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18576         * config/aarch64/aarch64.c
18577         (aarch64_save_or_restore_callee_save_registers)
18578         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
18580 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18582         * config/aarch64/aarch64.c
18583         (aarch64_save_or_restore_callee_save_registers)
18584         (aarch64_save_or_restore_fprs): Remove 'increment'.
18586 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18588         * config/aarch64/aarch64.c
18589         (aarch64_save_or_restore_callee_save_registers)
18590         (aarch64_save_or_restore_fprs): Use register offset in
18591         cfun->machine->frame.reg_offset.
18593 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18595         * config/aarch64/aarch64.c
18596         (aarch64_save_or_restore_callee_save_registers)
18597         (aarch64_save_or_restore_fprs): Remove base_rtx.
18599 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18601         * config/aarch64/aarch64.c
18602         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
18603         to 'start_offset'.  Remove local variable 'start_offset'.
18605 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18607         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
18608         type to HOST_WIDE_INT.
18610 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18612         * config/aarch64/aarch64.c (aarch64_expand_prologue)
18613         (aarch64_save_or_restore_fprs)
18614         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
18616 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18618         * config/arm/t-rtems-eabi: Add
18619         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
18620         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
18621         mbig-endian/mthumb/march=armv7-r, and
18622         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18623         multilibs.
18625 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18626             Chris Johns <chrisj@rtems.org>
18627             Joel Sherrill <joel.sherrill@oarcorp.com>
18629         * config.gcc: Add nios2-*-rtems*.
18630         * config/nios2/rtems.h: New file.
18631         * gcc/config/nios2/t-rtems: New file.
18633 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18635         PR target/61396
18636         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18637         constant numbers, not general constants.
18638         (rs6000_expand_vector_init): Ditto.
18640 2014-07-23  Nathan Sidwell  <nathan@acm.org>
18642         * gcov-tool.c (gcov_list): Declare here.
18643         (set_gcov_list): Remove.
18644         (gcov_output_files): Set gcov_list directly.
18646 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
18648         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18650 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18652         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18653         callee-saved registers are available for padding purpose
18654         and r3 is not mandatory, then prefer use those callee-saved
18655         instead of r3.
18657 2014-07-23  Richard Biener  <rguenther@suse.de>
18659         * params.def (PARAM_MAX_COMBINE_INSNS): New.
18660         * combine.c: Include statistics.h and params.h.
18661         (combine_instructions): Guard three and four insn combines
18662         with max-combine-insns value.  Record statistics for combines
18663         performed.
18664         * doc/invoke.texi (max-combine-insns): Document new param.
18666 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18668         * graphite-isl-ast-to-gimple.c:
18669         (translate_isl_ast_node_block): New function.
18670         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18672         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18673         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18675 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18677         * graphite-isl-ast-to-gimple.c:
18678         (get_max_schedule_dimensions): New function.
18679         (extend_schedule): Likewise.
18680         (generate_isl_schedule): Add calling of extend_schedule and
18681         get_max_schedule_dimensions.
18683 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18685         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18686         (case UNSPEC): Handle UNSPEC_RBIT.
18688 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18690         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18691         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18693 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18695         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18697 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
18699         * graphite-isl-ast-to-gimple.c:
18700         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18701         (ivs_params_clear):
18702         (build_iv_mapping): New function.
18703         (translate_isl_ast_node_user): Likewise.
18704         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18706         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18707         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18708         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18710 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18712         PR target/55701
18713         * config/arm/arm.md (setmem): New pattern.
18714         * config/arm/arm-protos.h (struct tune_params): New fields.
18715         (arm_gen_setmem): New prototype.
18716         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18717         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18718         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18719         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18720         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18721         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18722         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18723         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18724         (arm_const_inline_cost): New function.
18725         (arm_block_set_max_insns): New function.
18726         (arm_block_set_non_vect_profit_p): New function.
18727         (arm_block_set_vect_profit_p): New function.
18728         (arm_block_set_unaligned_vect): New function.
18729         (arm_block_set_aligned_vect): New function.
18730         (arm_block_set_unaligned_non_vect): New function.
18731         (arm_block_set_aligned_non_vect): New function.
18732         (arm_block_set_vect, arm_gen_setmem): New functions.
18734 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18736         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18738 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
18740         PR target/61855
18741         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18742         out of #ifdef __OPTIMIZE__.
18744 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18746         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18747         different trapping status if -fnon-call-exceptions is enabled.
18749 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18751         * expr.c (store_field): Handle VOIDmode for calls that return values
18752         in multiple locations.
18754 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18756         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
18757         (altivec_vsldoi_<mode>): Likewise.
18759 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18761         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18762         to the number of characters in the line.
18764 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18766         * graphite-isl-ast-to-gimple.c: Add using of
18767         build_nonstandard_integer_type instead of int128_integer_type_node.
18769 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
18771         * toplev.c (output_stack_usage): Adjust the location of the warning.
18773 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
18775         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18776         (*membar_storeload): Disable for LEON3.
18778 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18780         PR rtl-optimization/61461
18781         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18783 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
18785         PR target/61794
18786         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18787         Fix instruction constraint.
18788         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18790 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
18792         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18794 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
18796         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18797         GNU coding standards.
18798         (nds32_register_move_cost): Likewise.
18799         (nds32_memory_move_cost): Likewise.
18800         (nds32_address_cost): Likewise.
18802 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18804         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18806 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
18808         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18809         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18810         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18811         (HAVE_sync_compare_and_swapqi): Define.
18812         (HAVE_sync_compare_and_swaphi): Likewise.
18813         (HAVE_sync_compare_and_swapsi): Likewise.
18815 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
18817         * config/mips/p5600.md: Add missing cpu tests.
18819 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18821         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18822         (vmla_f64): Likewise.
18823         (vfms_f64): Likewise.
18824         (vmls_f64): Likewise.
18826 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18828         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18829         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18831 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18833         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18834         (vmlal_high_lane_s32): Likewise.
18835         (vmlal_high_lane_u16): Likewise.
18836         (vmlal_high_lane_u32): Likewise.
18837         (vmlsl_high_lane_s16): Likewise.
18838         (vmlsl_high_lane_s32): Likewise.
18839         (vmlsl_high_lane_u16): Likewise.
18840         (vmlsl_high_lane_u32): Likewise.
18842 2014-07-17  Terry Guo  <terry.guo@arm.com>
18844         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18845         (alus_reg): Renamed to alus_sreg.
18846         * config/arm/arm-fixed.md: Change type of non-dsp instructions
18847         from alu_reg to alu_sreg.  Change type of dsp instructions from
18848         alu_reg to alu_dsp_reg.
18849         * config/arm/thumb1.md: Likewise.
18850         * config/arm/thumb2.md: Likewise.
18851         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18852         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18853         with alu_sreg and alus_sreg.
18854         * config/arm/arm1026ejs.md (alu_op): Likewise.
18855         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18856         * config/arm/arm926ejs.md (9_alu_op): Likewise.
18857         * config/arm/fa526.md (526_alu_op): Likewise.
18858         * config/arm/fa606te.md (606te_alu_op): Likewise.
18859         * config/arm/fa626te.md (626te_alu_op): Likewise.
18860         * config/arm/fa726te.md (726te_alu_op): Likewise.
18861         * config/arm/fmp626.md (mp626_alu_op): Likewise.
18862         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18863         alu_sreg, alu_dsp_reg and alus_sreg.
18864         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18865         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18866         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18867         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18868         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18869         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18870         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18871         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18872         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18873         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18874         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18875         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18876         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18877         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18878         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18879         alus_reg to alus_sreg.
18881 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
18883         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18884         infinity format.
18886 2014-07-17  Richard Biener  <rguenther@suse.de>
18888         PR rtl-optimization/61801
18889         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18890         don't set reg_pending_barrier if it appears in a debug-insn.
18892 2014-07-16  DJ Delorie  <dj@redhat.com>
18894         * config/rx/rx.c (rx_option_override): Fix alignment values.
18895         (rx_align_for_label): Likewise.
18897 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
18899         PR target/61737.
18900         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18901         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18902         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18903         functions.
18904         (cris_print_index, cris_print_operand, cris_constant_index_p)
18905         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18906         (cris_address_cost): Ditto last CONSTANT_P.
18907         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
18908         callers changed.  Yield cris_offsettable_symbol for non-PIC
18909         constant symbolic expressions including labels.  Yield cris_unspec
18910         for all unspecs.
18911         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
18912         target to pic_offset_table_rtx for calls that will likely go
18913         through PLT, const0_rtx when they can't.  All callers changed.
18914         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18915         symbolic expressions to be PICified.  Remove second, redundant,
18916         assert on can_create_pseudo_p returning non-zero.  Use
18917         replace_equiv_address_nv, not replace_equiv_address, for final
18918         operand update.
18919         * config/cris/cris.md ("movsi"): Move variable t to pattern
18920         toplevel. Adjust assert for new cris_symbol_type member.  Use
18921         CONSTANT_P instead of CONSTANT_ADDRESS_P.
18922         ("*movsi_internal") <case 9>: Make check for valid unspec operands
18923         for lapc stricter.
18924         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18925         ("call", "call_value"): Use second incoming operand as a marker
18926         for pic-offset-table-register being used.
18927         ("*expanded_call_non_v32", "*expanded_call_v32")
18928         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18929         second incoming operand to CALL, match cris_call_type_marker.
18930         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
18931         ("*expanded_call_side"): Ditto.  Fix typo in comment.
18932         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18933         CONSTANT_P.
18934         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18935         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18936         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
18937         users changed.  Add members cris_offsettable_symbol and cris_unspec.
18938         (cris_symbol_type): Rename from cris_pic_symbol_type.
18939         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18940         just CONSTANT_P.
18941         * config/cris/cris-protos.h (cris_symbol_type_of,
18942         cris_expand_pic_call_address): Adjust prototypes.
18943         (cris_legitimate_constant_p): New prototype.
18945         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18946         an existing tmake_file.  Don't add t-slibgcc and t-linux.
18948 2014-07-17  Jason Merrill  <jason@redhat.com>
18950         PR c++/61623
18951         * symtab.c (symtab_remove_from_same_comdat_group): Also
18952         set_comdat_group to NULL_TREE.
18953         (verify_symtab): Fix diagnostic.
18955 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
18957         PR target/61662
18958         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18960 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
18962         Support location tracking for built-in macro tokens
18963         * input.h (is_location_from_builtin_token): New function declaration.
18964         * input.c (is_location_from_builtin_token): New function definition.
18965         * toplev.c (general_init): Tell libcpp what the pre-defined
18966         spelling location for built-in tokens is.
18968 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
18970         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18971         on the FUNCTION_DECL.
18973 2014-07-16  Richard Biener  <rguenther@suse.de>
18975         PR other/61782
18976         * doc/extend.texi (always_inline): Clarify.
18978 2014-07-15  Eric Christopher  <echristo@gmail.com>
18980         * doc/invoke.texi (Link Options): Document -z option.
18982 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
18984         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18985         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18987 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
18989         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18991 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18993         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18994         varpool_assemble_decl.
18995         * varpool.c (varpool_assemble_decl): Assert that node->definition is
18996         true.
18998 2014-07-15  Michael Matz  <matz@suse.de>
19000         PR rtl-optimization/61772
19001         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
19003 2014-07-15  Richard Biener  <rguenther@suse.de>
19005         * opts.c (default_options_table): Disable bit-ccp at -Og.
19007 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
19009         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
19011 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
19013         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
19014         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
19015         call langhook for unknown declaration.
19016         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
19017         * tree.h (DECL_ARGUMENTS): Update.
19018         * print-tree.c (print_node): Update.
19019         * tree-core.h (tree_decl_non_common): Remove arguments.
19020         (tree_function_decl): Add arguments.
19022 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
19024         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
19026 2014-07-14  Richard Biener  <rguenther@suse.de>
19028         PR tree-optimization/61779
19029         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
19030         simplifying a condition.
19032 2014-07-14  Richard Biener  <rguenther@suse.de>
19034         * builtins.c (c_strlen): Make only_value == 2 really only
19035         affect warning generation.
19037 2014-07-14  Richard Biener  <rguenther@suse.de>
19039         PR tree-optimization/61757
19040         PR tree-optimization/61783
19041         PR tree-optimization/61787
19042         * tree-ssa-dom.c (record_equality): Revert canonicalization
19043         change and add comment.
19044         (propagate_rhs_into_lhs): Revert previous fix, removing
19045         loop depth restriction again.
19047 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19049         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
19050         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
19051         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
19052         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
19053         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
19054         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
19055         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
19057 2014-07-14  Richard Biener  <rguenther@suse.de>
19059         * cgraph.h (decl_in_symtab_p): Make inline.
19061 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
19063         PR middle-end/61294
19064         * doc/invoke.texi (-Wmemset-transposed-args): Document.
19066         PR target/61656
19067         * config/i386/i386.c (classify_argument): Don't merge classes above
19068         number of words.
19070 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
19072         * cgraph.h (symtab_node): Add nonzero_address.
19073         (decl_in_symtab_p): Break out from ...
19074         (symtab_get_node): ... here.
19075         * fold-const.c: Include cgraph.h
19076         (tree_single_nonzero_warnv_p): Use symtab to determine
19077         if symbol is non-zero.
19078         * symtab.c (symtab_node::nonzero_address): New method.
19080 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
19082         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
19083         forgotten in previous commit.
19085 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
19087         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
19088         on builtin types.
19089         * ipa-devirt.c: Include stor-layout.h and intl.h
19090         (odr_subtypes_equivalent_p): New function.
19091         (warn_odr): New function.
19092         (warn_type_mismatch): New function.
19093         (odr_types_equivalent_p): New function.
19094         (add_type_duplicate): Use it.
19095         * common.opt (Wodr): New flag.
19096         * doc/invoke.texi (Wodr): Document new warning.
19098 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
19100         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
19101         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
19102         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
19103         (varpool_get_constructor): Push CTORS_IN timevar.
19104         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
19106 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
19108         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
19109         Remove VOID_FTYPE_PUSHORT.
19110         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
19111         Change code to USHORT_FTYPE_VOID.
19112         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
19113         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
19114         (ix86_atomic_assign_expand_fenv): Update for
19115         __builtin_ia32_fnstsw changes.
19116         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
19117         (fnstsw): Change operand 0 to nonimmediate operand.
19119 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19121         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
19122         (varpool_get_constructor): New function.
19123         (varpool_ctor_useable_for_folding_p): Break out from ...
19124         (ctor_for_folding): ... here; use varpool_get_constructor.
19125         (varpool_assemble_decl): Likewise.
19126         * lto-streamer.h (struct output_block): Turn cgraph_node
19127         to symbol filed.
19128         (lto_input_variable_constructor): Declare.
19129         * ipa-visibility.c (function_and_variable_visibility): Use
19130         varpool_get_constructor.
19131         * cgraph.h (varpool_get_constructor): Declare.
19132         (varpool_ctor_useable_for_folding_p): New function.
19133         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
19134         parameter; return error_mark_node for non-trivial constructors.
19135         (lto_write_tree_1, DFS_write_tree): Update use of
19136         get_symbol_initial_value.
19137         (output_function): Update initialization of symbol.
19138         (output_constructor): New function.
19139         (copy_function): Rename to ..
19140         (copy_function_or_variable): ... this one; handle vars too.
19141         (lto_output): Output variable sections.
19142         * lto-streamer-in.c (input_constructor): New function.
19143         (lto_read_body): Rename from ...
19144         (lto_read_body_or_constructor): ... this one; handle vars too.
19145         (lto_input_variable_constructor): New function.
19146         * ipa-prop.c (ipa_prop_write_jump_functions,
19147         ipa_prop_write_all_agg_replacement): Update.
19148         * lto-cgraph.c (compute_ltrans_boundary): Use it.
19149         (output_cgraph_opt_summary): Set symbol to NULL.
19151 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19153         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
19154         non-polymorphic types.
19155         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
19156         * ipa-devirt.c (types_same_for_odr): Do not explode when one
19157         of types is not polymorphic.
19159 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
19161         * lra-constraints.c (remove_inheritance_pseudos): Process
19162         destination pseudo too.
19164 2014-07-11  Rong Xu  <xur@google.com>
19166         * gcov-tool.c (gcov_output_files): Fix build error introduced in
19167         commit r212448.
19169 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19171         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
19172         * config/avr/avr-devices.c (AVR_MCU): Same.
19173         (avr_mcu_types): add text start value to end of device list.
19174         * config/avr/avr-mcus.def: Add text section start for all devices.
19175         (ata5782): Add new avr5 device.
19176         (ata5831): Same.
19177         * config/avr/avr-tables.opt: Regenerate.
19178         * config/avr/avr.h: Add declaration for text section start handler.
19179         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
19180         SPEC functions.
19181         (LINK_SPEC): Include text section start handler to linker spec.
19182         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
19183         pass -Ttext option to linker if the text section start for the device
19184         is not zero.
19185         * config/avr/t-multilib: Regenerate.
19186         * doc/avr-mmcu.texi: Regenerate.
19188 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
19190         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
19191         * config/rs6000/aix52.h (LINK_SPEC): Same.
19192         * config/rs6000/aix53.h (LINK_SPEC): Same.
19193         * config/rs6000/aix61.h (LINK_SPEC): Same.
19194         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
19196 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
19198         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
19199         (graphite_verify): New function.
19200         (ivs_params_clear): New function.
19201         (gcc_expression_from_isl_ast_expr_id): New function.
19202         (gcc_expression_from_isl_expr_int): New function.
19203         (binary_op_to_tree): New function.
19204         (ternary_op_to_tree): New function.
19205         (unary_op_to_tree): New function.
19206         (nary_op_to_tree): New function.
19207         (gcc_expression_from_isl_expr_op): New function.
19208         (gcc_expression_from_isl_expression): New function.
19209         (graphite_create_new_loop): New function.
19210         (translate_isl_ast_for_loop): New function.
19211         (get_upper_bound): New function.
19212         (graphite_create_new_loop_guard): New function.
19213         (translate_isl_ast_node_for): New function.
19214         (translate_isl_ast): New function.
19215         (add_parameters_to_ivs_params): New function.
19216         (scop_to_isl_ast): New parameter ip.
19217         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
19219 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19221         * config/xtensa/predicates.md (call expander): Update for
19222         DECL_SECTION_NAME being string.
19224 2014-07-11  Richard Biener  <rguenther@suse.de>
19226         PR middle-end/61473
19227         * builtins.c (fold_builtin_memory_op): Inline memory moves that
19228         can be implemented with a single load followed by a single store.
19229         (c_strlen): Only warn when only_value is not 2.
19231 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
19233         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
19235 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
19237         PR target/61561
19238         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
19239         (*movhi_bytes): Likewise.
19240         (*arm_movqi_insn): Likewise.
19242 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
19244         PR target/56858
19245         * config/alpha/alpha.c: Include tree-pass.h, context.h
19246         and pass_manager.h.
19247         (pass_data_handle_trap_shadows): New pass.
19248         (pass_handle_trap_shadows::gate): New pass gate function.
19249         (make_pass_handle_trap_shadows): New function.
19250         (rest_of_handle_trap_shadows): Ditto.
19252         (alpha_align_insns_1): Rename from alpha_align_insns.
19253         (pass_data_align_insns): New pass.
19254         (pass_align_insns::gate): New pass gate function.
19255         (make_pass_aling_insns): New function.
19256         (rest_of_align_insns): Ditto.
19257         (alpha_align_insns): Ditto.
19259         (alpha_option_override): Declare handle_trap_shadows info
19260         and align_insns_info.  Register handle_trap_shadows and align_insns
19261         passes here.
19262         (alpha_reorg): Do not call alpha_trap_shadows and
19263         alpha_align_insn from here.
19265         (alpha_pad_function_end): Do not skip BARRIERs.
19267 2014-07-10  Rong Xu  <xur@google.com>
19269         Add gcov-tool: an offline gcda profile processing tool support.
19270         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
19271         (gcov_is_error): Ditto.
19272         (gcov_read_string): Ditto.
19273         (gcov_read_sync): Ditto.
19274         * gcov-io.h: Move counter defines to gcov-counter.def.
19275         * gcov-dump.c (tag_counters): Use gcov-counter.def.
19276         * coverage.c: Ditto.
19277         * gcov-tool.c: Offline gcda profile processing tool.
19278         (unlink_gcda_file): Remove one gcda file.
19279         (unlink_profile_dir): Remove gcda files from the profile path.
19280         (gcov_output_files): Output gcda files to an output dir.
19281         (profile_merge): Merge two profiles in directory.
19282         (print_merge_usage_message): Print merge usage.
19283         (merge_usage): Print merge usage and exit.
19284         (do_merge): Driver for profile merge sub-command.
19285         (profile_rewrite): Rewrite profile.
19286         (print_rewrite_usage_message): Print rewrite usage.
19287         (rewrite_usage): Print rewrite usage and exit.
19288         (do_rewrite): Driver for profile rewrite sub-command.
19289         (print_usage): Print gcov-info usage and exit.
19290         (print_version): Print gcov-info version.
19291         (process_args): Process arguments.
19292         (main): Main routine for gcov-tool.
19293         * Makefile.in: Build and install gcov-tool.
19294         * gcov-counter.def: New file split from gcov-io.h.
19295         * doc/gcc.texi: Include gcov-tool.texi.
19296         * doc/gcov-tool.texi: Document for gcov-tool.
19298 2014-07-10  Richard Biener  <rguenther@suse.de>
19300         PR tree-optimization/61757
19301         * tree-ssa-dom.c (loop_depth_of_name): Restore.
19302         (propagate_rhs_into_lhs): Revert part of last change.
19304 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
19306         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
19307         FUNCTION_DECLs.
19309 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
19311         PR middle-end/53590
19312         * function.c (allocate_struct_function): Revert r188667 change.
19314         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
19316 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
19318         * doc/install.texi: Remove links to defunct package providers for
19319         Solaris.
19321 2014-07-09  Tom de Vries  <tom@codesourcery.com>
19323         * final.c (get_call_fndecl): Declare.
19324         (self_recursive_call_p): New function.
19325         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
19327 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19329         * ipa-devirt.c (record_node): Walk through aliases.
19331 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19333         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
19335 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19337         Revert:
19338         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19340 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19342         * ipa-visibility.c (function_and_variable_visibility): Remove
19343         temporary hack disabling local aliases on AIX.
19345 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19347         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
19348         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
19350 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19352         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
19353         * rs6000/rs6000.c: Inline output of .set instruction.
19354         (declare_alias_data): New struct.
19355         (rs6000_declare_alias): New function.
19356         (rs6000_xcoff_declare_function_name): Use it.
19357         (rs6000_xcoff_declare_object_name): New function.
19358         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
19359         (ASM_OUTPUT_DEF): Turn to empty definition.
19361 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19363         PR bootstrap/61679
19364         * hash-table.h: use hash_table::value_type instead of
19365         Descriptor::value_type in the return types of several methods.
19367 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19369         * tree-pass.h (pass_data): Remove has_execute member.
19370         * passes.c (execute_one_pass): Don't check pass->has_execute.
19371         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19372         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19373         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19374         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19375         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19376         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19377         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19378         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19379         gimple-low.c, gimple-ssa-isolate-paths.c,
19380         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19381         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
19382         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
19383         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
19384         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
19385         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19386         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
19387         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
19388         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
19389         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
19390         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
19391         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19392         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19393         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19394         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19395         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19396         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19397         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19398         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19399         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19400         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19401         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19402         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
19403         web.c: Remove initializer for pass_data::has_execute.
19405 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19407         * graphite-htab.h: Use hash_map instead of hash_table.
19408         * graphite-clast-to-gimple.c: Adjust.
19409         * passes.c: Use hash_map instead of hash_table.
19410         * sese.c: Likewise.
19411         * sese.h: Remove now unused code.
19413 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
19415         PR target/61599
19416         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
19417         than zero.
19419 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19421         PR rtl-optimization/61673
19422         * combine.c (simplify_comparison): Test just mode's sign bit
19423         in tmode rather than the sign bit and any bits above it.
19425 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
19427         * graphite-isl-ast-to-gimple.c (generate_isl_context):
19428         Add __isl_give to the declaration.
19429         (generate_isl_schedule): Likewise.
19430         (scop_to_isl_ast): Likewise.
19432 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19434         * config/arm/arm.c (cortexa5_extra_costs): New table.
19435         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
19437 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19439         PR tree-optimization/61725
19440         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
19441         range, use range_includes_zerop_p instead of integer_zerop on
19442         vr0->min, only use log2 of max if min is not negative.
19444 2014-07-08  Richard Biener  <rguenther@suse.de>
19446         * tree-ssa-dom.h (loop_depth_of_name): Remove.
19447         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
19448         restriction on loop depth difference.
19449         (record_equality): Likewise.
19450         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
19451         (loop_depth_of_name): Remove.
19452         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
19453         restriction on loop depth difference.
19454         (init_copy_prop): Likewise.
19456 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19458         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
19459         parameter.
19460         (walk_aliased_vdefs): Likewise.
19461         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
19462         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
19463         (detect_type_change_from_memory_writes): Check if entry was reached.
19465 2014-07-08  Richard Biener  <rguenther@suse.de>
19467         PR tree-optimization/61681
19468         * tree-ssa-structalias.c (find_what_var_points_to): Expand
19469         NONLOCAL inside ESCAPED.
19471 2014-07-08  Richard Biener  <rguenther@suse.de>
19473         PR tree-optimization/61680
19474         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19475         Handle properly all read-write dependences with group accesses.
19477 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
19479         PR tree-optimization/61576
19480         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
19481         block containing reduction statement is predecessor of phi basi block.
19483 2014-07-08  Marek Polacek  <polacek@redhat.com>
19485         PR c/60226
19486         * fold-const.c (round_up_loc): Change the parameter type.
19487         Remove assert.
19488         * fold-const.h (round_up_loc): Adjust declaration.
19489         * stor-layout.c (finalize_record_size): Check for too large types.
19491 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
19493         * symtab.c: Include calls.h.
19494         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
19496 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
19498         * config/rs6000/rs6000.c (output_vec_const_move): Handle
19499         little-endian code generation.
19500         * config/rs6000/spe.md (spe_evmergehi): Rename to...
19501         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
19502         (spe_evmergehilo): Rename to...
19503         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
19504         (spe_evmergelo): Rename to...
19505         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
19506         (spe_evmergelohi): Rename to...
19507         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
19508         (spe_evmergehi, spe_evmergehilo): New expanders.
19509         (spe_evmergelo, spe_evmergelohi): Likewise.
19510         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
19511         (*frob_tf_ti): Likewise.
19512         (*frob_<mode>_di_2): Likewise.
19513         (*frob_tf_di_8_2): Likewise.
19514         (*frob_di_<mode>): Likewise.
19515         (*frob_ti_tf): Likewise.
19516         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
19517         (*frob_ti_<mode>_8_2): Likewise.
19518         (*frob_ti_tf_2): Likewise.
19519         (mov_si<mode>_e500_subreg0): Rename to...
19520         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
19521         endianness only.
19522         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
19523         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
19524         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
19525         the big endianness only.
19526         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
19527         (*mov_si<mode>_e500_subreg0_2): Rename to...
19528         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
19529         big big endianness only.
19530         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
19531         (*mov_si<mode>_e500_subreg4): Rename to...
19532         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
19533         endianness only.
19534         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
19535         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
19536         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
19537         the big endianness only.
19538         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
19539         pattern.
19540         (*mov_si<mode>_e500_subreg4_2): Rename to...
19541         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
19542         endianness only.
19543         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
19544         (*mov_sitf_e500_subreg8): Rename to...
19545         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
19546         endianness only.
19547         (*mov_sitf_e500_subreg8_le): New instruction pattern.
19548         (*mov_sitf_e500_subreg8_2): Rename to...
19549         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
19550         endianness only.
19551         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
19552         (*mov_sitf_e500_subreg12): Rename to...
19553         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
19554         endianness only.
19555         (*mov_sitf_e500_subreg12_le): New instruction pattern.
19556         (*mov_sitf_e500_subreg12_2): Rename to...
19557         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
19558         endianness only.
19559         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
19561 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19563         * asan.c (instrument_strlen_call): Do not instrument first byte
19564         in strlen if already instrumented.
19566 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19568         * config/arm/arm.opt (mwords-little-endian): Delete.
19569         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
19570         of TARGET_LITTLE_WORDS.
19571         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
19572         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
19573         warning.
19574         * doc/invoke.texi: Remove references to -mwords-little-endian.
19576 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
19578         * expmed.c (struct init_expmed_rtl): Change all fields but
19579         pow2 and cint from struct rtx_def to rtx.
19580         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
19581         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
19582         at the end again.
19584 2014-07-06  Marek Polacek  <polacek@redhat.com>
19586         PR c/6940
19587         * doc/invoke.texi: Document -Wsizeof-array-argument.
19589 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
19591         * wide-int.h (wide_int_storage): Change declaration from struct
19592         to class.
19594 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
19596         * cgraph.c (cgraph_create_indirect_edge): Update call of
19597         get_polymorphic_call_info.
19598         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
19599         (possible_polymorphic_call_targets): Add parameter call.
19600         (decl_maybe_in_construction_p): New predicate.
19601         (get_polymorphic_call_info): Add parameter call;
19602         use decl_maybe_in_construction_p.
19603         * gimple-fold.c (fold_gimple_assign): Update use of
19604         possible_polymorphic_call_targets.
19605         (gimple_fold_call): Likewise.
19606         * ipa-prop.c: Inlcude calls.h
19607         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
19608         (param_type_may_change_p): New predicate.
19609         (detect_type_change_from_memory_writes): Break out from ...
19610         (detect_type_change): ... this one; use param_type_may_change_p.
19611         (detect_type_change_ssa): Use param_type_may_change_p.
19612         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
19614 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
19616         PR target/49423
19617         * config/arm/arm-protos.h (arm_legitimate_address_p,
19618         arm_is_constant_pool_ref): Add prototypes.
19619         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
19620         (arm_is_constant_pool_ref) New function.
19621         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19622         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19623         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19624         operand. Remove pool_range and neg_pool_range attributes.
19625         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19626         pool_range and neg_pool_range attributes.
19627         * config/arm/constraints.md (Uh): New constraint.
19628         (Uq): Don't allow constant pool references.
19630 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
19632         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19633         (move_lo_quad_internal_be_<mode>): Likewise.
19634         (move_lo_quad_<mode>): Convert to define_expand.
19635         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19636         (aarch64_simd_move_hi_quad_be_<mode>): New.
19637         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19638         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19639         (aarch64_combinez_be<mode>): New.
19640         (aarch64_combine<mode>): Convert to define_expand.
19641         (aarch64_combine_internal<mode>): New.
19642         (aarch64_simd_combine<mode>): Remove bogus RTL description.
19644 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19646         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19647         combination of earlyclobber and read/write modifiers.
19649 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19651         * config/aarch64/aarch64-simd.md
19652         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19654 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
19656         PR target/61714
19657         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19659 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
19661         PR middle-end/61654
19662         * cgraphunit.c (expand_thunk): Call free_dominance_info.
19664         PR tree-optimization/61684
19665         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19666         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19668 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19669             Kito Cheng  <kito@0xlab.org>
19670             Monk Chiang  <sh.chiang04@gmail.com>
19672         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19673         (nds32_symbol_load_store_p): Move to ...
19674         (nds32_fp_as_gp_check_available): Move to ...
19675         * config/nds32/nds32-fp-as-gp.c: ... here.
19676         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19677         extern declaration.
19679 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19680             Kito Cheng  <kito@0xlab.org>
19681             Monk Chiang  <sh.chiang04@gmail.com>
19683         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19684         (nds32_expand_store_multiple): Move to ...
19685         (nds32_expand_movmemqi): Move to ...
19686         * config/nds32/nds32-memory-manipulation.c: ... here.
19688 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19689             Kito Cheng  <kito@0xlab.org>
19690             Monk Chiang  <sh.chiang04@gmail.com>
19692         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19693         (nds32_output_casesi_pc_relative): Move to ...
19694         (nds32_output_casesi): Move to ...
19695         (nds32_mem_format): Move to ...
19696         (nds32_output_16bit_store): Move to ...
19697         (nds32_output_16bit_load): Move to ...
19698         (nds32_output_32bit_store): Move to ...
19699         (nds32_output_32bit_load): Move to ...
19700         (nds32_output_32bit_load_s): Move to ...
19701         (nds32_output_stack_push): Move to ...
19702         (nds32_output_stack_pop): Move to ...
19703         * config/nds32/nds32-md-auxiliary.c: ... here.
19705 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19706             Ling-Hua Tseng  <uranus@tinlans.org>
19708         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19709         the purpose of this file.
19711 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19712             Kito Cheng  <kito@0xlab.org>
19713             Monk Chiang  <sh.chiang04@gmail.com>
19715         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19716         (nds32_address_cost): Move implementation to ...
19717         * config/nds32/nds32-cost.c: ... here.
19718         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19719         (nds32_address_cost_impl): Declare.
19721 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19722             Kito Cheng  <kito@0xlab.org>
19723             Monk Chiang  <sh.chiang04@gmail.com>
19725         * config/nds32/nds32.c
19726         (nds32_consecutive_registers_load_store_p): Move to ...
19727         (nds32_valid_multiple_load_store): Move to ...
19728         (nds32_valid_stack_push_pop): Move to ...
19729         (nds32_can_use_bclr_p): Move to ...
19730         (nds32_can_use_bset_p): Move to ...
19731         (nds32_can_use_btgl_p): Move to ...
19732         (nds32_can_use_bitci_p): Move to ...
19733         * config/nds32/nds32-predicates.c: ... here.
19735 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19736             Kito Cheng  <kito@0xlab.org>
19737             Monk Chiang  <sh.chiang04@gmail.com>
19739         * config/nds32/nds32.c
19740         (nds32_expand_builtin_null_ftype_reg): Move to ...
19741         (nds32_expand_builtin_reg_ftype_imm): Move to ...
19742         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19743         (nds32_init_builtins): Move implementation to ...
19744         (nds32_expand_builtin): Move implementation to ...
19745         * config/nds32/nds32-intrinsic.c: ... here.
19746         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19747         (nds32_expand_builtin_impl): Declare.
19749 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19750             Kito Cheng  <kito@0xlab.org>
19751             Monk Chiang  <sh.chiang04@gmail.com>
19753         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19754         (nds32_emit_section_tail_template): Move to ...
19755         (nds32_emit_isr_jmptbl_section): Move to ...
19756         (nds32_emit_isr_vector_section): Move to ...
19757         (nds32_emit_isr_reset_conten): Move to ...
19758         (nds32_check_isr_attrs_conflict): Move to ...
19759         (nds32_construct_isr_vectors_information): Move to ...
19760         (nds32_asm_file_start): Move implementation to ...
19761         (nds32_asm_file_end): Move implementation to ...
19762         * config/nds32/nds32-isr.c: ... here.
19763         * config/nds32/nds32-protos.h
19764         (nds32_check_isr_attrs_conflict): Declare.
19765         (nds32_construct_isr_vectors_information): Declare.
19766         (nds32_asm_file_start_for_isr): Declare.
19767         (nds32_asm_file_end_for_isr): Declare.
19769 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19770             Kito Cheng  <kito@0xlab.org>
19771             Monk Chiang  <sh.chiang04@gmail.com>
19773         * config.gcc (nds32*): Add new modules to extra_objs.
19774         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19775         (nds32be-*-*): Likewise.
19776         * config/nds32/nds32-cost.c: New file.
19777         * config/nds32/nds32-fp-as-gp.c: New file.
19778         * config/nds32/nds32-intrinsic.c: New file.
19779         * config/nds32/nds32-isr.c: New file.
19780         * config/nds32/nds32-md-auxiliary.c: New file.
19781         * config/nds32/nds32-memory-manipulation.c: New file.
19782         * config/nds32/nds32-pipelines-auxiliary.c: New file.
19783         * config/nds32/nds32-predicates.c: New file.
19784         * config/nds32/t-nds32: New file.
19786 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19788         PR tree-optimization/61682
19789         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19790         using cases and when one of the operands is equal to 1.
19792 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
19794         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19795         ashr<mode>3): Correct mode of operands[2].
19796         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19797         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19798         Correct mode of operands[2].  Fix split condition.
19800 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
19802         * arm.md (arch): Add armv6_or_vfpv3.
19803         (arch_enabled): Add test for the above.
19804         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19805         on VFP9.
19806         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19808 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19810         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19811         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19812         HWI 1 and negate the unsigned value.
19813         * expmed.c (expand_sdiv_pow2): For modes wider than word always
19814         use AND instead of shift.
19815         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19817 2014-07-03  Marek Polacek  <polacek@redhat.com>
19819         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19820         (-fsanitize=float-divide-by-zero): Move to the table with
19821         -fsanitize=undefined suboptions.
19822         (-fsanitize=float-cast-overflow): Likewise.
19824 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
19826         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19827         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19828         endianness.
19830 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19832         * loop-invariant.c (struct invariant): Add a new member: eqno;
19833         (find_identical_invariants): Update eqno;
19834         (create_new_invariant): Init eqno;
19835         (get_inv_cost): Compute comp_cost with eqno;
19837 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19839         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19840         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19841         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19842         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19843         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19845 2014-07-02  Christian Bruel  <christian.bruel@st.com>
19847         PR target/29349
19848         PR target/53513
19849         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19850         (make_preds_opaque): Delete.
19851         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19852         (commit_mode_sets): New function.
19853         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19854         Process all modes at once.
19855         * basic-block.h (pre_edge_lcm_avs): Declare.
19856         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19857         Call clear_aux_for_edges. Fix comments.
19858         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19859         (pre_edge_rev_lcm): Idem.
19860         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19861         parameter.
19862         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19863         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19864         Idem.
19865         * config/i386/i386.c (x96_emit_mode_set): Idem.
19866         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19867         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
19868         (fpscr_toggle) Disallow from delay slot.
19869         * target.def (emit_mode_set): Add prev_mode parameter.
19870         * doc/tm.texi: Regenerate.
19872 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19874         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19875         variable i.
19877 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19879         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19880         vtable_pointer_value_to_vtable): Constify.
19881         (contains_polymorphic_type_p): Declare.
19882         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19883         vtable_pointer_value_to_vtable): Constify.
19884         (contains_polymorphic_type_p): New predicate.
19885         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19886         polymorphic types.
19887         (ipa_set_ancestor_jf): Likewise.
19888         (detect_type_change): Return false in easy cases.
19889         (compute_complex_assign_jump_func): Require type to contain
19890         polymorphic type.
19891         (compute_known_type_jump_func): Likewise.
19893 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19895         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19896         Remove.
19897         (type_in_anonymous_namespace_p): Constify argument.
19898         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19899         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19900         (main_odr_variant): New function.
19901         (hash_type_name): Make static; update assert; do not ICE on
19902         non-records.
19903         (types_same_for_odr): Bring here from tree.c; simplify and remove
19904         old structural comparing code that doesn't work for templates.
19905         (odr_hasher::equal): Update assert.
19906         (add_type_duplicate): Return true when bases should be computed;
19907         replace incomplete loader by complete; do not output duplicated
19908         warnings; do not ICE on non-records; set odr_violated flag.
19909         (get_odr_type): Be ready to replace incomplete type by complete
19910         one; work on ODR variants instead of main variants; reorder item
19911         in array so bases have still smaller indexes.
19912         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19913         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19915 2014-07-01  Cary Coutant  <ccoutant@google.com>
19917         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19918         lookup.
19919         (resolve_addr_in_expr): When replacing the rtx in a location list
19920         entry, get a new address table entry.
19921         (dwarf2out_finish): Call index_location_lists even if there are no
19922         addr_index_table entries yet.
19924 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19926         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19927         change for not being obvious.
19929 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19931         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19932         unused argument.
19934 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19936         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19937         (vcagt_f64): Likewise.
19938         (vcale_f64): Likewise.
19939         (vcaled_f64): Likewise.
19940         (vcales_f32): Likewise.
19941         (vcalt_f64): Likewise.
19942         (vcaltd_f64): Likewise.
19943         (vcalts_f32): Likewise.
19945 2014-07-01  Marek Polacek  <polacek@redhat.com>
19947         * doc/invoke.texi: Document -Wint-conversion.
19949 2014-07-01  Marek Polacek  <polacek@redhat.com>
19951         PR c/58286
19952         * doc/invoke.texi: Document -Wincompatible-pointer-types.
19954 2014-07-01  Martin Liska  <mliska@suse.cz>
19956         IPA REF alias refactoring
19957         * cgraph.h (iterate_direct_aliases): New function.
19958         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19959         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19960         FOR_EACH_ALIAS added.
19961         (cgraph_for_node_and_aliases): Likewise.
19962         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19963         * ipa-inline.c (reset_edge_caches): Likewise.
19964         (update_caller_keys): Likewise.
19965         * trans-mem.c (ipa_tm_execute): Likewise.
19966         *varpool.c (varpool_analyze_node): Likewise.
19967         (varpool_for_node_and_aliases): Likewise.
19968         * ipa-ref.h (first_alias): New function.
19969         (last_alias): Likewise.
19970         (has_aliases_p): Likewise.
19971         * ipa-ref.c (ipa_ref::remove_reference): Removal function
19972         is sensitive to IPA_REF_ALIASes.
19973         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19974         are put at the beginning of the list.
19975         (symtab_node::iterate_direct_aliases): New function.
19977 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19979         Revert:
19980         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19981         type is complete.
19982         (write_ts_type_common_tree_pointers): Do not stream fields not set
19983         for incomplete types; do not stream duplicated fields for variants;
19984         sanity check that variant and type match.
19985         (write_ts_type_non_common_tree_pointers): Likewise.
19986         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19987         TYPE_SIZE whether type is complete.
19988         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19989         write_ts_type_common_tree_pointers
19990         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19992 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
19994         * var-tracking.c (add_stores): Return instead of asserting if old
19995         and new values for conditional store are the same.
19997 2014-06-30  Richard Henderson  <rth@redhat.com>
19999         PR rtl-opt/61608
20000         PR target/39284
20001         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
20002         the cfg if there were any changes.
20003         * passes.def: Revert move of peephole2 after reorder_blocks;
20004         move duplicate_computed_gotos before peephole2.
20006 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
20008         * except.c (emit_note_eh_region_end): New helper function.
20009         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
20010         emit EH_REGION_END note.
20011         * jump.c (cleanup_barriers): Do not split a call and its
20012         corresponding CALL_ARG_LOCATION note.
20014 2014-06-30  Jeff Law  <law@redhat.com>
20016         PR tree-optimization/61607
20017         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
20018         deeper into the SSA_NAME_VALUE chain.
20020 2014-06-30  Marek Polacek  <polacek@redhat.com>
20022         * convert.c (convert_to_integer): Don't instrument conversions if the
20023         function has no_sanitize_undefined attribute.
20024         * ubsan.c: Don't run the ubsan pass if the function has
20025         no_sanitize_undefined attribute.
20027 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
20029         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
20030         -fsanitize=undefined suboptions.
20032 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
20034         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
20035         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
20036         against bigendian and adjust indices.
20038 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
20040         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
20042 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20044         PR target/61633
20045         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
20046         Add alternative; make early clobber.  Adjust both split patterns
20047         to use operand 0 as the working register.
20049 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
20051         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
20052         as ira_object_id_map might be NULL, or 1.
20054 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20056         * loop-invariant.c (get_inv_cost): Handle register class.
20057         (gain_for_invariant): Check the register pressure of the inv
20058         and its overlapped register class, other than all.
20060 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
20062         * doc/invoke.texi (Optimize Options): Fix descriptions of
20063         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
20065 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
20067         * doc/extend.texi (Function Attributes): Update 'naked' attribute
20068         documentation.
20070 2014-06-29  Tobias Grosser <tobias@grosser.es>
20072         PR bootstrap/61650
20073         * graphite-isl-ast-to-gimple.c: Add missing guards.
20075 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
20077         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
20078         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
20079         * flag-types.h: Add new enum fgraphite_generator.
20080         * graphite-isl-ast-to-gimple.c: New.
20081         * graphite-isl-ast-to-gimple.h: New.
20082         * graphite.c (graphite_transform_loops): Add choice of Graphite
20083         code generator, which depends on flag_graphite_code_gen.
20085 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
20087         * graphite-dependences.c (subtract_commutative_associative_deps):
20088         Add NULL checking of the following variables: must_raw_no_source,
20089         may_raw_no_source, must_war_no_source, may_war_no_source,
20090         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
20091         must_war, may_war, must_waw, may_waw.
20093 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
20095         * graphite-clast-to-gimple.c: gloog is renamed to
20096         graphite_regenerate_ast_cloog.  gloog_error is renamed to
20097         graphite_regenerate_error.
20098         * graphite-clast-to-gimple.h: The definition of the struct
20099         bb_pbb_def is moved to graphite-htab.h.
20100         Add inclusion of the hash-table.h.
20101         * graphite-htab.h: The declaration of the function gloog is moved
20102         to graphite-clast-to-gimple.h and renamed to
20103         graphite_regenerate_ast_cloog.
20104         * graphite.c (graphite_transform_loops): gloog is renamed
20105         to graphite_regenerate_ast_cloog.
20107 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20109         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
20110         type is complete.
20111         (write_ts_type_common_tree_pointers): Do not stream fields not set
20112         for incomplete types; do not stream duplicated fields for variants;
20113         sanity check that variant and type match.
20114         (write_ts_type_non_common_tree_pointers): Likewise.
20115         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
20116         TYPE_SIZE whether type is complete.
20117         (lto_input_ts_type_common_tree_pointers): Do same changes as in
20118         write_ts_type_common_tree_pointers
20119         (lto_input_ts_type_non_common_tree_pointers): Likewise.
20121 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20123         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
20125 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20127         * tree-inline.c (remap_type_1): Do not duplicate fields
20128         that are shared in between type and its main variant.
20130 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20132         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
20133         of the type.
20134         (ipa_set_ancestor_jf) Likewise.
20135         (check_stmt_for_type_change): Check that we work on main variant.
20136         (detect_type_change): Look into main variant.
20137         (compute_known_type_jump_func): Check that main variant has BINFO.
20139 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20141         * ipa-devirt.c (set_type_binfo): New function.
20142         (add_type_duplicate): Use it.
20143         (get_odr_type): Sanity check that binfos points to main variants.
20144         (get_class_context): Be sure the context's outer_type is main variant.
20145         (contains_type_p): Walk main variant.
20146         (get_polymorphic_call_info_for_decl): Set outer_type to be
20147         main variant.
20148         (get_polymorphic_call_info): Likewise.
20149         (possible_polymorphic_call_targets): Sanity check that we operate
20150         on main variant.
20152 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20154         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
20156 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20158         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
20159         accidental change due to wide-int branch merge.
20161 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20163         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
20164         compressed debug support.
20165         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
20166         * configure: Regenerate.
20167         * config.in: Regenerate.
20168         * common.opt (compressed_debug_sections): New enum.
20169         (gz, gz=): New options.
20170         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
20171         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
20172         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
20173         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
20174         LINK_COMPRESS_DEBUG_SPEC.
20175         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
20176         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
20177         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
20178         (Debugging Options): Document -gz[=type].
20180 2014-06-27  Martin Jambor  <mjambor@suse.cz>
20182         PR ipa/61160
20183         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
20184         args_to_skip, use those from node instead.  Copy args_to_skip and
20185         combined_args_to_skip from node to the new thunk.
20186         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
20187         (cgraph_create_virtual_clone): Moved computation of
20188         combined_args_to_skip...
20189         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
20191 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
20193         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
20194         redundant diagnostic machinary.
20196 2014-06-27  Richard Biener  <rguenther@suse.de>
20198         * tree-ssa-math-opts.c (bswap_replace): Fix
20199         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
20201 2014-06-27  Martin Liska  <mliska@suse.cz>
20203         * gimple.h (gimple_location_safe): New function introduced.
20204         * cgraphunit.c (walk_polymorphic_call_targets): Usage
20205         of gimple_location_safe replaces gimple_location.
20206         (gimple_fold_call): Likewise.
20207         * ipa-devirt.c (ipa_devirt): Likewise.
20208         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20209         * ipa.c (walk_polymorphic_call_targets): Likewise.
20210         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20212 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
20214         PR tree-optimization/57233
20215         PR tree-optimization/61299
20216         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
20217         functions.
20218         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
20219         would be lowered to scalar shifts, check if corresponding
20220         shifts and vector BIT_IOR_EXPR are supported and don't lower
20221         or lower just to narrower vector type in that case.
20222         * expmed.c (expand_shift_1): Fix up handling of vector
20223         shifts and rotates.
20225 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
20227         PR target/61586
20228         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
20230 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
20232         * doc/invoke.texi (-fsemantic-interposition): Document.
20233         * common.opt (fsemantic-interposition): New flag.
20234         * varasm.c (decl_replaceable_p): Use it.
20236 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20238         PR target/61542
20239         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
20240         extraction other than index 3.
20242 2014-06-26  Teresa Johnson  <tejohnson@google.com>
20244         * doc/invoke.texi: Fix typo.
20245         * dumpfile.c: Add support for documented -fdump-* options
20246         optimized/missed/note/optall.
20248 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20250         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
20251         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
20252         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
20253         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
20254         * opts.c (default_options_optimization): Set
20255         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
20256         * doc/invoke.texi (allow-load-data-races)
20257         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
20258         (allow-store-data-races): Document the new default.
20260 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20262         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
20263         renamed to ipa_impossible_devirt_target.  Fix typo.
20264         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
20265         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
20266         ipa_impossible_devirt_target.
20268 2014-06-26  Richard Biener  <rguenther@suse.de>
20270         PR tree-optimization/61607
20271         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
20272         explaining why we restrict copies on loop depth.
20273         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20274         on loop depth.
20275         (record_equivalences_from_phis): Instead add it here.
20277 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
20279         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
20280         (LTO_WRAPPER_OBJS): New variable.
20281         (lto-wrapper$(exeext)): Use it.
20282         * collect2.c: Include "collect-utils.h".
20283         (verbose, debug): Remove variables.
20284         (at_file_supplied): No longer static.
20285         (tool_name): New variable.
20286         (do_wait, fork_execute, maybe_unlink): Don't declare.
20287         (tool_cleanup): No longer static.
20288         (notice): Remove function.
20289         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
20290         fork_execute calls.
20291         (collect_wait, do_wait, collect_execute): Remove functions.
20292         (maybe_unlink): No longer static.
20293         * collect2.h (verbose, debug): Don't declare.
20294         (at_file_supplied): Declare.
20295         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
20296         changed.
20297         (collect_execute): Replace with implementation from collect2, plus a
20298         new arg use_atfile.  All callers changed.
20299         (collect_wait): Replace with implementation from collect2.
20300         (maybe_unlink_file): Remove function.
20301         (fork_execute): Replace with implementation from collect2, plus a
20302         new arg use_atfile.  All callers changed.
20303         (do_wait): Add call to utils_cleanup to the error path.
20304         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
20305         (tool_cleanup): Adjust declarations.
20306         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
20307         * tlink.c: Include "collect-utils.h".
20308         (tlink_execute): New arg use_atfile.  All callers changed.
20309         (tlink_init, tlink_execute): Remove declarations.
20311         * collect-utils.c (save_temps): New variable.
20312         (do_wait): Use it instead of debug.  Use fatal_error.
20313         * collect-utils.h (save_temps): Declare.
20314         * collect2.c (verbose): Rename from vflag.  All uses changed.
20315         (tool_cleanup): New function, copied from collect_atexit.
20316         (collect_atexit, handler): Just call it.
20317         * collect2.h (verbose): Declaration renamed from vflag.
20318         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
20319         debug.
20321         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
20322         (lto-wrapper$(exeext)): Link with collect-utils.o.
20323         * collect-utils.c: New file.
20324         * collect-utils.h: New file.
20325         * lto-wrapper.c: Include "collect-utils.h".
20326         (args_name): Delete variable.
20327         (tool_name): New variable.
20328         (tool_cleanup): New function.
20329         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
20330         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
20331         (fork_execute): Remove functions.
20333 2014-06-26  Nick Clifton  <nickc@redhat.com>
20335         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
20337         * doc/extend.texi (Function Attributes): Fix typo in description
20338         of RX vector attribute.
20340 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20342         * config.gcc (supported_defaults): Error when passing either
20343         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
20345 2014-06-26  Richard Biener  <rguenther@suse.de>
20347         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20348         propagating volatile pointers.
20350 2014-06-26  Richard Biener  <rguenther@suse.de>
20352         PR tree-optimization/61607
20353         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
20354         loop if we redirected its latch edge.
20355         (thread_block_1): Do not cancel loops prematurely.
20357 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
20359         * toplev.c (backend_init_target): Move init_emit_regs and
20360         init_regs to...
20361         (backend_init) ... here; skip ira_init_once and backend_init_target.
20362         (target_reinit) ... and here; clear
20363         this_target_rtl->lang_dependent_initialized.
20364         (lang_dependent_init_target): Clear
20365         this_target_rtl->lang_dependent_initialized;
20366         break out rtl initialization to ...
20367         (initialize_rtl): ... here; call also backend_init_target
20368         and ira_init_once.
20369         * toplev.h (initialize_rtl): New function.
20370         * function.c: Include toplev.h
20371         (init_function_start): Call initialize_rtl.
20372         * rtl.h (target_rtl): Add target_specific_initialized,
20373         lang_dependent_initialized.
20375 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
20376             Jakub Jelinek  <jakub@redhat.com>
20378         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
20380 2014-06-25  Tom de Vries  <tom@codesourcery.com>
20382         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
20384 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20386         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
20387         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
20388         Issue a strict overflow warning if appropriate.
20390 2014-06-25  Martin Liska  <mliska@suse.cz>
20392         IPA REF refactoring
20393         * Makefile.in: Removed header file (ipa-ref-inline.h).
20394         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
20395         called.
20396         (cgraph_speculative_call_info): Likewise.
20397         (cgraph_for_node_thunks_and_aliases): Likewise.
20398         (cgraph_for_node_and_aliases): Likewise.
20399         (verify_cgraph_node): Likewise.
20400         * cgraph.h: Batch of IPA REF functions become member functions of
20401         symtab_node: add_reference, maybe_add_reference, clone_references,
20402         clone_referring, clone_reference, find_reference,
20403         remove_stmt_references, remove_all_references,
20404         remove_all_referring, dump_references, dump_referring,
20405         has_alias_p, iterate_reference, iterate_referring.
20406         * cgraphbuild.c (record_reference): New IPA REF function used.
20407         (record_type_list): Likewise.
20408         (record_eh_tables): Likewise.
20409         (mark_address): Likewise.
20410         (mark_load): Likewise.
20411         (mark_store): Likewise.
20412         (pass_build_cgraph_edges): Likewise.
20413         (rebuild_cgraph_edge): Likewise.
20414         (cgraph_rebuild_references): Likewise.
20415         (pass_remove_cgraph_callee_edges): Likewise.
20416         * cgraphclones.c (cgraph_clone_node): Likewise.
20417         (cgraph_create_virtual_clone): Likewise.
20418         (cgraph_materialize_clone): Likewise.
20419         (cgraph_materialize_all_clones): Likewise.
20420         * cgraphunit.c (cgraph_reset_node): Likewise.
20421         (cgraph_reset_node): Likewise.
20422         (analyze_function): Likewise.
20423         (assemble_thunks_and_aliases): Likewise.
20424         (expand_function): Likewise.
20425         * ipa-comdats.c (propagate_comdat_group): Likewise.
20426         (enqueue_references): Likewise.
20427         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
20428         (create_specialized_node): Likewise.
20429         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
20430         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
20431         * ipa-inline.c (reset_edge_caches): Likewise.
20432         (update_caller_keys): Likewise.
20433         (execute): Likewise.
20434         * ipa-prop.c (remove_described_reference): Likewise.
20435         (propagate_controlled_uses): Likewise.
20436         (ipa_edge_duplication_hook): Likewise.
20437         (ipa_modify_call_arguments): Likewise.
20438         * ipa-pure-const.c (propagate_pure_const): Likewise.
20439         * ipa-ref-inline.h: Header file removed, functions moved
20440         to symtab_node class.
20441         * ipa-ref.c (remove_reference): New class member function.
20442         (cannot_lead_to_return): New class member function.
20443         (referring_ref_list): Likewise.
20444         (referred_ref_list): Likewise.
20445         Rest of functions moved to symtab_node class.
20446         * ipa-ref.h: New member functions remove_reference,
20447         cannot_lead_to_return, referring_ref_list, referred_ref_list added
20448         to ipa_ref class.
20449         ipa_ref_list class has new member functions: first_reference,
20450         first_referring, clear, nreferences.
20451         * ipa-reference.c (analyze_function): New IPA REF function used.
20452         (write_node_summary_p): Likewise.
20453         (ipa_reference_write_optimization_summary): Likewise.
20454         * ipa-split.c (split_function): Likewise.
20455         * ipa-utils.c (ipa_reverse_postorder): Likewise.
20456         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
20457         (function_and_variable_visibility): Likewise.
20458         * ipa.c (has_addr_references_p): Likewise.
20459         (process_references): Argument type changed.
20460         (symtab_remove_unreachable_nodes): New IPA REF function used.
20461         (process_references): Likewise.
20462         (set_writeonly_bit): Likewise.
20463         * lto-cgraph.c: Implementation of new symtab_node member functions
20464         that uses new IPA REF functions.
20465         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
20466         function used.
20467         * lto-streamer-out.c (output_symbol_p): Likewise.
20468         * lto-streamer.h (referenced_from_this_partition_p): Argument type
20469         changed.
20470         * symtab.c: Implementation of new IPA REF API.
20471         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
20472         (ipa_tm_create_version): Likewise.
20473         (ipa_tm_execute): Likewise.
20474         * tree-emutls.c (gen_emutls_addr): Likewise.
20475         * tree-inline.c (copy_bb): Likewise.
20476         (delete_unreachable_blocks_update_callgraph): Likewise.
20477         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
20478         (varpool_for_node_and_aliases): Likewise.
20480 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20482         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
20484 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20486         PR bootstrap/61598
20487         * fold-const.c (fold_checksum_tree): Use a hash_table of const
20488         tree_node * instead of tree_node *.
20489         (fold): Adjust.
20490         (print_fold_checksum): Likewise.
20491         (fold_check_failed): Likewise.
20492         (debug_fold_checksum): Likewise.
20493         (fold_build1_stat_loc): Likewise.
20494         (fold_build2_stat_loc): Likewise.
20495         (fold_build3_stat_loc): Likewise.
20496         (fold_build_call_array_loc): Likewise.
20498 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
20500         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
20501         implementation with call to...
20502         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
20503         function.
20504         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
20505         Declare.
20507 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
20509         PR tree-optimization/57742
20510         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
20511         after replacing the statement.
20513 2014-06-25  Nick Clifton  <nickc@redhat.com>
20515         * config/v850/v850.c (GHS_default_section_names): Change to const
20516         char * type.
20517         (GHS_current_section_names): Likewise.
20518         (v850_insert_attributes): Do not build strings, just assign the
20519         names directly.  Change the type of 'chosen_section' to const
20520         char*.
20521         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
20522         directly to the array entry.
20523         * config/v850/v850.h (GHS_default_section_names): Change to const
20524         char * type.
20525         (GHS_current_section_names): Likewise.
20527 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
20529         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
20530         (LANG_HOOKS_DECLS): Add it.
20531         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
20532         has correct type.
20533         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
20534         * langhooks.h (struct lang_hooks_for_decls): Add
20535         omp_clause_linear_ctor hook.
20536         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
20537         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
20538         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
20539         combined simd loop use omp_clause_linear_ctor hook.
20541 2014-06-24  Cong Hou  <congh@google.com>
20543         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
20544         pattern recognition.
20545         (type_conversion_p): PROMOTION is true if it's a type promotion
20546         conversion, and false otherwise.  Return true if the given expression
20547         is a type conversion one.
20548         * tree-vectorizer.h: Adjust the number of patterns.
20549         * tree.def: Add SAD_EXPR.
20550         * optabs.def: Add sad_optab.
20551         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
20552         * expr.c (expand_expr_real_2): Likewise.
20553         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20554         * gimple.c (get_gimple_rhs_num_ops): Likewise.
20555         * optabs.c (optab_for_tree_code): Likewise.
20556         * tree-cfg.c (estimate_operator_cost): Likewise.
20557         * tree-ssa-operands.c (get_expr_operands): Likewise.
20558         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
20559         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
20560         * doc/generic.texi: Add document for SAD_EXPR.
20561         * doc/md.texi: Add document for ssad and usad.
20563 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20565         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
20566         qualification in cast.
20568 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
20570         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
20571         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
20572         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
20573         (tree_function_decl): ... here.
20574         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
20575         streaming of vindex to ...
20576         (write_ts_function_decl_tree_pointers): ... here.
20577         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20578         Do not stream DECL_VINDEX.
20579         (lto_input_ts_function_decl_tree_pointers): Stream it here.
20581 2014-06-24  Catherine Moore  <clm@codesourcery.com>
20582             Sandra Loosemore  <sandra@codesourcery.com>
20584         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
20585         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
20586         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
20588 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20590         * doc/invoke.texi (Warning Options): Remove duplicated
20591         -Wmaybe-uninitialized.
20593 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20595         PR tree-optimization/57742
20596         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
20597         (handle_builtin_malloc, handle_builtin_memset): New functions.
20598         (strlen_optimize_stmt): Call them.
20599         * passes.def: Move strlen after loop+dom but before vrp.
20601 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20603         PR target/61570
20604         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
20605         model family 6 CPU with has_longmode never use a CPU without
20606         64-bit support.
20608 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
20610         PR target/61570
20611         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
20612         the last change.
20614 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20616         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
20617         * dominance.c (iterate_fix_dominators): Use hash_map instead of
20618         pointer_map.
20619         * hash-map.h: New file.
20620         * ipa-comdats.c: Use hash_map instead of pointer_map.
20621         * ipa.c: Likewise.
20622         * lto-section-out.c: Adjust.
20623         * lto-streamer.h: Replace pointer_map with hash_map.
20624         * symtab.c (verify_symtab): Likewise.
20625         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20626         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20627         * tree-streamer.h: Likewise.
20628         * tree-streamer.c: Adjust.
20629         * pointer-set.h: Remove pointer_map.
20631 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20633         * hash-table.h: Add a template arg to choose between storing values
20634         and storing pointers to values, and then provide partial
20635         specializations for both.
20636         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20637         should store, not the type values should point to.
20638         * tree-into-ssa.c (var_info_hasher): Likewise.
20639         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20640         * tree-complex.c: Adjust.
20641         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20642         table instead of int_tree_map *.
20643         * tree-parloops.c: Adjust.
20644         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20645         type is being stored.
20646         * tree-vectorizer.c: Adjust.
20648 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20650         * hash-table.h: Remove a layer of indirection from hash_table so that
20651         it contains the hash table's data instead of a pointer to the data.
20652         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20653         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20654         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20655         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20656         fold-const.c, gcse.c, ggc-common.c,
20657         gimple-ssa-strength-reduction.c, gimplify.c,
20658         graphite-clast-to-gimple.c, graphite-dependences.c,
20659         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20660         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20661         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20662         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20663         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20664         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20665         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20666         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20667         tree-ssa-live.c, tree-ssa-loop-im.c,
20668         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20669         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20670         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20671         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20672         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20673         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20674         vtable-verify.c, vtable-verify.h: Adjust.
20676 2014-06-24  Richard Biener  <rguenther@suse.de>
20678         PR tree-optimization/61572
20679         * tree-ssa-sink.c (statement_sink_location): Do not sink
20680         loads from hard registers.
20682 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20684         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20685         not mentioned in clauses use private clause if the iterator is
20686         declared in #pragma omp for simd, and when adding lastprivate
20687         instead, add it to the outer #pragma omp for too.  Diagnose
20688         if the variable is private in outer context.  For simd collapse > 1
20689         loops, replace all iterators with temporaries.
20690         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20691         same even in collapse > 1 loops.
20693         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20694         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20695         non-NULL.
20696         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20697         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20698         non-NULL.
20699         (gimplify_adjust_omp_clauses): Likewise.
20700         * omp-low.c (lower_rec_simd_input_clauses,
20701         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20702         safelen the same as safelen(1).
20703         * tree-nested.c (convert_nonlocal_omp_clauses,
20704         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
20705         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20706         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20707         Fixup handling of GIMPLE_OMP_TARGET.
20708         (convert_tramp_reference_stmt, convert_gimple_call): Handle
20709         GIMPLE_OMP_TARGET.
20711 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
20713         PR tree-optimization/61554
20714         * tree-ssa-propagate.c: Include "bitmap.h".
20715         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20716         properly update constructor/destructor.
20717         (substitute_and_fold_dom_walker::before_dom_children):
20718         Remove call to gimple_purge_dead_eh_edges, add bb->index to
20719         need_eh_cleaup instead.
20720         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20721         need_eh_cleanup.
20723 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20725         * varpool.c (dump_varpool_node): Dump used_by_single_function.
20726         * tree-pass.h (make_pass_ipa_single_use): New pass.
20727         * cgraph.h (used_by_single_function): New flag.
20728         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20729         Stream it.
20730         * passes.def (pass_ipa_single_use): Scedule.
20731         * ipa.c (BOTTOM): New macro.
20732         (meet): New function
20733         (propagate_single_user): New function.
20734         (ipa_single_use): New function.
20735         (pass_data_ipa_single_use): New pass.
20736         (pass_ipa_single_use): New pass.
20737         (pass_ipa_single_use::gate): New gate.
20738         (make_pass_ipa_single_use): New function.
20740 2014-06-23  Kai Tietz  <ktietz@redhat.com>
20742         PR target/39284
20743         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20744         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20746 2014-06-23  Richard Biener  <rguenther@suse.de>
20748         * tree-ssa-loop.c (gate_loop): New function.
20749         (pass_tree_loop::gate): Call it.
20750         (pass_data_tree_no_loop, pass_tree_no_loop,
20751         make_pass_tree_no_loop): New.
20752         * tree-vectorizer.c: Include tree-scalar-evolution.c
20753         (pass_slp_vectorize::execute): Initialize loops and SCEV if
20754         required.
20755         (pass_slp_vectorize::clone): New method.
20756         * timevar.def (TV_TREE_NOLOOP): New.
20757         * tree-pass.h (make_pass_tree_no_loop): Declare.
20758         * passes.def (pass_tree_no_loop): New pass group with
20759         SLP vectorizer.
20761 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20763         PR target/61570
20764         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20765         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20767 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20769         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20770         "yes" where needed.
20772 2014-06-23  Alan Modra  <amodra@gmail.com>
20774         PR bootstrap/61583
20775         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20776         to zero on debug statements.
20778 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20780         PR target/60825
20781         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20782         Ignore third operand if present by marking qualifier_internal.
20784         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20786         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20787         vector extension.
20788         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20789         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20790         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20791         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20792         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20793         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20794         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20795         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20796         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20797         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20798         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20799         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20800         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20801         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20802         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20803         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20804         logic in GCC vector extensions
20806         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20807         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20808         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20809         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20810         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20811         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20812         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20813         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20814         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20815         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20817         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20819         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20820         extensions.
20822         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20823         (vget_low_s64): Use __GET_LOW macro.
20824         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20825         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20826         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20827         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20828         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20830         (vcombine_s64): Use GCC vector extensions; remove cast.
20831         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20832         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20833         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20834         Fix type signature; remove cast.
20836 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20838         PR target/60825
20839         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20840         V1DFmode.
20841         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20842         add V1DFmode
20843         (BUILTIN_VD1): New.
20844         (BUILTIN_VD_RE): Remove.
20845         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20846         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20847         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20848         variant but not df.
20849         (vreinterpretv1df*, vreinterpret*v1df): New.
20850         (vreinterpretdf*, vreinterpret*df): Remove.
20851         * config/aarch64/aarch64-simd.md (aarch64_create,
20852         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20853         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20854         (VD1): New.
20855         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20856         (vcreate_f64): Remove cast, use v1df builtin.
20857         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20858         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20859         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20860         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20861         vmov_n_f64, vst1_f64): Use gcc vector extensions.
20862         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20863         add range check using __builtin_aarch64_im_lane_boundsi.
20864         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20865         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20866         type signature, use gcc vector extensions.
20867         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20868         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20869         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20870         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20871         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20872         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20873         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20874         vreinterpret_u64_f64): Use v1df builtin not df.
20876 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20878         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20879         vector registers.
20881 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20883         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20884         priority directly.
20886 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20888         * loop-invariant.c (pre_check_invariant_p): New function.
20889         (find_invariant_insn): Call pre_check_invariant_p.
20891 2014-06-22  Richard Henderson  <rth@redhat.com>
20893         PR target/61565
20894         * compare-elim.c (struct comparison): Add eh_note.
20895         (find_comparison_dom_walker::before_dom_children): Don't eliminate
20896         a redundant comparison in a different EH region.  Purge EH edges if
20897         necessary.
20899 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20901         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20902         (var_shift): Use it.
20903         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20904         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20905         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20906         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20907         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20908         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20909         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20910         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20911         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20912         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20913         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20914         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20915         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20916         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20917         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20918         *rotldi3_internal15be): Use the new attribute.  Merge register and
20919         integer alternatives.
20921 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20923         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20924         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20925         split, *ashrdi3_internal3 and split): Delete, merge into...
20926         (ashr<mode>3): New expander.
20927         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20928         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
20930 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20932         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20933         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20934         *rotldi3_internal3 and split): Delete, merge into...
20935         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20936         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
20937         Use "rotlw" extended mnemonic.
20939 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20941         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20942         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20943         and split, *ashldi3_internal3 and split): Delete, merge into...
20944         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20945         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
20947 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20949         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20950         (lshrsi3, two anonymous define_insns and define_splits,
20951         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20952         *lshrdi3_internal3 and split): Delete, merge into...
20953         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20954         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
20956 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20958         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20959         Remove "O" alternative.
20961 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
20963         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20964         (mips_move_from_gpr_cost): Likewise.
20965         (mips_register_move_cost): Update accordingly.
20966         (mips_secondary_reload_class): Remove name of in_p.
20968 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
20970         PR target/61503
20971         * config/i386/i386.md (x86_64_shrd, x86_shrd,
20972         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20974 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20976         * config/nios2/nios2.c: Include "builtins.h".
20978 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20980         * cgraph.h (tls_model_names): New variable.
20981         * print-tree.c (print_node): Simplify.
20982         * varpool.c (tls_model_names): New variable.
20983         (dump_varpool_node): Output tls model.
20985 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20987         * ipa-visibility.c (function_and_variable_visibility): Disable
20988         temporarily local aliases for some targets.
20990 2014-06-20  Marek Polacek  <polacek@redhat.com>
20992         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20993         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20994         into SANITIZE_UNDEFINED.
20995         * doc/invoke.texi: Describe -fsanitize=bounds.
20996         * gimplify.c (gimplify_call_expr): Add gimplification of internal
20997         functions created in the FEs.
20998         * internal-fn.c: Move "internal-fn.h" after "tree.h".
20999         (expand_UBSAN_BOUNDS): New function.
21000         * internal-fn.def (UBSAN_BOUNDS): New internal function.
21001         * internal-fn.h: Don't define internal functions here.
21002         * opts.c (common_handle_option): Add -fsanitize=bounds.
21003         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
21004         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
21005         * tree-core.h: Define internal functions here.
21006         (struct tree_base): Add ifn field.
21007         * tree-pretty-print.c: Include "internal-fn.h".
21008         (dump_generic_node): Handle functions without CALL_EXPR_FN.
21009         * tree.c (get_callee_fndecl): Likewise.
21010         (build_call_expr_internal_loc): New function.
21011         * tree.def (CALL_EXPR): Update description.
21012         * tree.h (CALL_EXPR_IFN): Define.
21013         (build_call_expr_internal_loc): Declare.
21014         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
21015         types.
21016         (ubsan_type_descriptor): Change bool parameter to enum
21017         ubsan_print_style.  Adjust the code.  Add handling of
21018         UBSAN_PRINT_ARRAY.
21019         (ubsan_expand_bounds_ifn): New function.
21020         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
21021         (ubsan_build_overflow_builtin): Likewise.
21022         (instrument_bool_enum_load): Likewise.
21023         (ubsan_instrument_float_cast): Likewise.
21024         * ubsan.h (enum ubsan_print_style): New enum.
21025         (ubsan_expand_bounds_ifn): Declare.
21026         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
21028 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
21030         * config/rs6000/rs6000.md: Append `DONE' to preparation
21031         statements of `bswap' pattern splitters.
21033 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21035         * target.def (call_fusage_contains_non_callee_clobbers): Update
21036         definition.
21037         * doc/tm.texi: Regenerate.
21039 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
21040             Max Ostapenko  <m.ostapenko@partner.samsung.com>
21042         PR sanitizer/61547
21043         * asan.c (instrument_strlen_call): Fixed instrumentation of
21044         trailing byte.
21046 2014-06-20  Martin Jambor  <mjambor@suse.cz>
21048         PR ipa/61540
21049         * ipa-prop.c (impossible_devirt_target): New function.
21050         (try_make_edge_direct_virtual_call): Use it, also instead of
21051         asserting.
21053 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
21054             Max Ostapenko  <m.ostapenko@partner.samsung.com>
21056         PR sanitizer/61530
21057         * asan.c (build_check_stmt): Add condition.
21059 2014-06-20  Martin Jambor  <mjambor@suse.cz>
21061         PR ipa/61211
21062         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
21063         expanded clones.
21065 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21067         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
21068         Update comments.
21069         (VCONQ): Make comment more helpful.
21070         (VCON): Delete.
21071         * config/aarch64/aarch64-simd.md
21072         (aarch64_sqdmulh_lane<mode>):
21073         Use VCOND for operands 2.  Update lane checking and flipping logic.
21074         (aarch64_sqrdmulh_lane<mode>): Likewise.
21075         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
21076         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
21077         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
21078         attribute of operand 3 to VCOND.
21079         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
21080         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
21081         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
21082         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
21083         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
21084         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
21085         define_insn.
21086         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
21087         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
21088         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
21089         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
21090         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
21091         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
21092         operand to VCOND.  Update lane flipping and bounds checking logic.
21093         (aarch64_sqdmlal2_lane<mode>): Likewise.
21094         (aarch64_sqdmlsl_lane<mode>): Likewise.
21095         (aarch64_sqdmull_lane<mode>): Likewise.
21096         (aarch64_sqdmull2_lane<mode>): Likewise.
21097         (aarch64_sqdmlal_laneq<mode>):
21098         Replace VCON usage with VCONQ.
21099         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
21100         (aarch64_sqdmlal2_laneq<mode>): Emit
21101         aarch64_sqdmlal2_laneq<mode>_internal insn.
21102         Replace VCON with VCONQ.
21103         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
21104         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21105         (aarch64_sqdmull_laneq<mode>): Emit
21106         aarch64_sqdmull_laneq<mode>_internal insn.
21107         Replace VCON with VCONQ.
21108         (aarch64_sqdmull2_laneq<mode>): Emit
21109         aarch64_sqdmull2_laneq<mode>_internal insn.
21110         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
21111         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
21112         of 3rd argument to int16x4_t.
21113         (vqdmlalh_lane_s16): Likewise.
21114         (vqdmlslh_lane_s16): Likewise.
21115         (vqdmull_high_lane_s16): Likewise.
21116         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
21117         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
21118         (vqdmlsl_lane_s16): Likewise.
21119         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
21120         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
21121         (vqdmlals_lane_s32): Likewise.
21122         (vqdmlsls_lane_s32): Likewise.
21123         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
21124         (vqdmulls_lane_s32): Likewise.
21125         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
21126         (vqdmlsl_lane_s32): Likewise.
21127         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
21128         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
21129         (vqrdmulhh_lane_s16): Likewise.
21130         (vqdmlsl_high_lane_s16): Likewise.
21131         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
21132         (vqdmlsl_high_lane_s32): Likewise.
21133         (vqrdmulhs_lane_s32): Likewise.
21135 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21137         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
21138         get_call_reg_set_usage.
21140 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21142         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
21143         it contains all call_used_regs.
21145 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21147         * final.c (collect_fn_hard_reg_usage): Add and use variable
21148         function_used_regs.
21150 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
21152         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
21153         (set_init_priority, get_init_priority, set_fini_priority,
21154         get_fini_priority): New methods.
21155         * tree.c (init_priority_for_decl): Remove.
21156         (init_ttree): Do not initialize init priority.
21157         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
21158         (decl_priority_info): Remove.
21159         (decl_init_priority_insert): Rewrite.
21160         (decl_fini_priority_insert): Rewrite.
21161         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
21162         tree_priority_map_marked_p): Remove.
21163         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
21164         * lto-streamer-out.c (hash_tree): Do not hash priorities.
21165         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
21166         not output priorities.
21167         (pack_ts_function_decl_value_fields): Likewise.
21168         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21169         not input priorities.
21170         (unpack_ts_function_decl_value_fields): Likewise.
21171         * symtab.c (symbol_priority_map): Declare.
21172         (init_priority_hash): Declare.
21173         (symtab_unregister_node): Unregister from priority hash, too.
21174         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
21175         New methods.
21176         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
21177         (symbol_priority_info): New function.
21178         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
21179         New methods.
21180         * tree-core.h (tree_priority_map): Remove.
21182 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
21184         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
21185         0xff to uint64_t before shifting it up.
21187 2014-06-20  Julian Brown  <julian@codesourcery.com>
21188             Chung-Lin Tang  <cltang@codesourcery.com>
21190         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
21191         TARGET_THUMB1_ONLY. Add comments.
21193 2014-06-19  Tom de Vries  <tom@codesourcery.com>
21195         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
21196         return type to void.
21197         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
21199 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21201         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
21202         as "move", from depends_on.
21204 2014-06-19  Terry Guo  <terry.guo@arm.com>
21206         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
21207         stage.
21209 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
21211         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
21212         Remove cr5.
21213         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
21215 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21217         PR target/61550
21218         * config/sh/sh.c (prepare_move_operands): Don't process TLS
21219         addresses here if reload in progress or completed.
21221 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21223         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
21224         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
21225         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
21226         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
21227         (mips_register_priority): New function that implements the target
21228         hook TARGET_REGISTER_PRIORITY.
21229         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
21230         (mips_lra_p): Likewise for TARGET_LRA_P.
21231         (TARGET_REGISTER_PRIORITY): Define macro.
21232         (TARGET_SPILL_CLASS): Likewise.
21233         (TARGET_LRA_P): Likewise.
21234         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
21235         classes.
21236         (REG_CLASS_NAMES): Likewise.
21237         (REG_CLASS_CONTENTS): Likewise.
21238         (BASE_REG_CLASS): Use M16_SP_REGS.
21239         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
21240         New set attribute to enable alternatives depending on the register
21241         allocator used.
21242         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
21243         (*lea64): Disable pattern for MIPS16.
21244         * config/mips/mips.opt (mlra): New option.
21246 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21248         * lra-constraints.c (base_to_reg): New function.
21249         (process_address): Use new function.
21251 2014-06-18  Tom de Vries  <tom@codesourcery.com>
21253         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
21254         * config/aarch64/aarch64.c
21255         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
21256         (aarch64_emit_call_insn): New function.
21257         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
21258         of emit_call_insn.
21259         * config/aarch64/aarch64.md (define_expand "call_internal")
21260         (define_expand "call_value_internal", define_expand "sibcall_internal")
21261         (define_expand "sibcall_value_internal"): New.
21262         (define_expand "call", define_expand "call_value")
21263         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
21264         expand variant and aarch64_emit_call_insn.
21266 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
21267             Tom de Vries  <tom@codesourcery.com>
21269         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
21270         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21271         Redefine to true.
21272         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
21273         clobbers to CALL_INSN_FUNCTION_USAGE.
21274         (define_expand "sibcall_internal")
21275         (define_expand "sibcall_value_internal"): New.
21276         (define_expand "call", define_expand "call_value"): Add argument to
21277         arm_emit_call_insn.
21278         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
21279         (define_expand "sibcall_value"): Use sibcall_value_internal and
21280         arm_emit_call_insn.
21282 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21284         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
21286 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21288         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
21289         __udivmoddi4.
21291 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21293         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
21294         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
21295         annotations. Fix DWARF information.
21297 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21299         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
21300         __udivmoddi4, and fixups for negative operands.
21302 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21304         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
21306 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21308         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
21309         to __udivmoddi4.
21311 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21313         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
21314         manipulation.
21316 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21318         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
21319         describing register usage on function entry and exit.
21321 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21323         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
21324         (__aeabi_ldivmod): Fix whitespace.
21326 2014-06-18  Andreas Schwab  <schwab@suse.de>
21328         * doc/md.texi (Standard Names): Use @itemx for grouped items.
21329         Remove blank line after @item.
21331 2014-06-18  Richard Henderson  <rth@redhat.com>
21333         PR target/61545
21334         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
21336 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21338         * config/arm/arm.c (neon_vector_mem_operand): Allow register
21339         POST_MODIFY for neon loads and stores.
21340         (arm_print_operand): Output post-index register for neon loads and
21341         stores.
21343 2014-06-18  Richard Biener  <rguenther@suse.de>
21345         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
21347 2014-06-18  Richard Biener  <rguenther@suse.de>
21349         * tree-pass.h (make_pass_dce_loop): Remove.
21350         * passes.def: Replace pass_dce_loop with pass_dce.
21351         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
21352         changed free niter estimates and reset the scev cache.
21353         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
21354         make_pass_dce_loop): Remove.
21355         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
21356         (fini_copy_prop): Return whether something changed.  Always
21357         let substitute_and_fold perform DCE and free niter estimates
21358         and reset the scev cache if so.
21359         (execute_copy_prop): If sth changed schedule cleanup-cfg.
21360         (pass_data_copy_prop): Do not unconditionally schedule
21361         cleanup-cfg or update-ssa.
21363 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
21365         PR tree-optimization/61518
21366         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21367         reduction var is used in reduction stmt or phi-function only.
21369 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21371         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
21373 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21375         PR tree-optimization/61517
21376         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
21377         whose rhs's first tree is the source expression instead of the
21378         expression itself.
21379         (find_bswap_or_nop): Likewise.
21380         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
21381         gimple stmt whose rhs's first tree is the source. In the memory source
21382         case, move the stmt to be replaced close to one of the original load to
21383         avoid the problem of a store between the load and the stmt's original
21384         location.
21385         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
21386         signature.
21388 2014-06-18  Andreas Schwab  <schwab@suse.de>
21390         PR rtl-optimization/54555
21391         * postreload.c (move2add_use_add2_insn): Substitute
21392         STRICT_LOW_PART only if it is cheaper.
21394 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
21396         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
21397         Do not use unspec as call operand.  Use memory_operand instead of
21398         memory_nox32_operand and add "m" operand constraint.  Disable
21399         pattern for TARGET_X32.
21400         (*sibcall_pop_memory): Ditto.
21401         (*sibcall_value_memory): Ditto.
21402         (*sibcall_value_pop_memory): Ditto.
21403         (sibcall peepholes): Merge SImode and DImode patterns using
21404         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
21405         Disable pattern for TARGET_X32.  Check if eliminated register is
21406         really dead after call insn.  Generate call RTX without unspec operand.
21407         (sibcall_value peepholes): Ditto.
21408         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
21409         instead of memory_nox32_operand.  Check if eliminated register is
21410         really dead after call insn. Generate call RTX without unspec operand.
21411         (sibcall_value_pop peepholes): Ditto.
21412         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
21414 2014-06-18  Terry Guo  <terry.guo@arm.com>
21416         PR target/61544
21417         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
21418         reach the head.
21420 2014-06-18  Olivier Hainque  <hainque@adacore.com>
21422         * tree-core.h (tree_block): Add an "end_locus" field, allowing
21423         memorization of the end of block source location.
21424         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
21425         * gimplify.c (gimplify_bind_expr): Propagate the block start and
21426         end source location info we have on the block entry/exit code we
21427         generate.
21429 2014-06-18  Richard Biener  <rguenther@suse.de>
21431         * common.opt (fssa-phiopt): New option.
21432         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
21433         but not with -Og.
21434         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
21435         * doc/invoke.texi (-fssa-phiopt): Document.
21437 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21439         * genattrtab.c (n_bypassed): New variable.
21440         (process_bypasses): Initialise n_bypassed.
21441         Count number of bypassed reservations.
21442         (make_automaton_attrs): Allocate space for bypassed reservations
21443         rather than number of bypasses.
21445 2014-06-18  Richard Biener  <rguenther@suse.de>
21447         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
21448         we propagated anything.
21449         (substitute_and_fold_dom_walker::before_dom_children): Something
21450         changed if we propagated into PHI arguments.
21451         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
21452         we removed a stmt.
21454 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
21456         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
21457         vector case.
21458         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
21459         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
21460         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
21461         Introduces alternative way of loads group permutaions.
21462         (vect_transform_grouped_load): Try alternative way of permutations.
21464 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21466         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
21467         changed in ORT_TARGET region, don't jump to do_outer.
21468         (struct gimplify_adjust_omp_clauses_data): New type.
21469         (gimplify_adjust_omp_clauses_1): Adjust for data being
21470         a struct gimplify_adjust_omp_clauses_data pointer instead
21471         of tree *.  Pass pre_p as a new argument to
21472         lang_hooks.decls.omp_finish_clause hook.
21473         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
21474         splay_tree_foreach to pass both list_p and pre_p.
21475         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
21476         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
21477         gimplify_adjust_omp_clauses callers.
21478         * langhooks.c (lhd_omp_finish_clause): New function.
21479         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
21480         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
21481         * langhooks.h (struct lang_hooks_for_decls): Add a new
21482         gimple_seq * argument to omp_finish_clause hook.
21483         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
21484         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
21485         (scan_omp_parallel, lower_omp_for): When adding
21486         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
21487         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
21488         * tree-nested.c (convert_nonlocal_omp_clauses,
21489         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
21490         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
21492 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
21494         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
21495         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
21497 2014-06-17  Xinliang David Li  <davidxl@google.com>
21499         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
21500         * passes.c (pass_init_dump_file): Do not set initialize
21501         flag to false unconditionally.
21503 2014-06-17  Richard Biener  <rguenther@suse.de>
21505         * genopinit.c (main): Use vec<>::qsort method.
21506         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
21507         Likewise.
21508         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
21510 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
21512         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
21513         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
21514         (mips_move_to_gpr_cost): Remove ST_REGS case.
21515         (mips_move_from_gpr_cost): Likewise.
21516         (mips_register_move_cost): Likewise.
21517         (mips_secondary_reload_class): Likewise.
21519 2014-06-17  Richard Biener  <rguenther@suse.de>
21521         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
21522         (pass_all_optimizations): Move 3rd copy-prop pass from after
21523         fre to before ifcombine/phiopt.
21525 2014-06-17  Richard Biener  <rguenther@suse.de>
21527         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
21528         and allow all blocks to be forwarders.
21530 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
21532         PR target/61483
21533         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
21534         variable 'size'; calculate 'size' right in the front; use
21535         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
21536         pcum->aapcs_stack_words.
21538 2014-06-17  Nick Clifton  <nickc@redhat.com>
21540         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
21541         (umulhi3, mulsidi3, umulsidi3): Likewise.
21543 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
21545         PR middle-end/61508
21546         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
21547         check for section name.
21549 2014-06-17  Richard Biener  <rguenther@suse.de>
21551         * tree-ssa-propagate.c: Include domwalk.h.
21552         (substitute_and_fold): Outline main worker into a domwalker ...
21553         (substitute_and_fold_dom_walker::before_dom_children): ... here.
21554         Schedule stmts we can fully propagate for removal.  Remove
21555         poor-mans DCE.
21556         (substitute_and_fold): Apply a dominator walk to perform
21557         substitution.  Process stmts scheduled for removal here.
21559 2014-06-17  Richard Biener  <rguenther@suse.de>
21561         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
21562         of PHI node moving.
21564 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
21566         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
21567         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
21568         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21569         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
21570         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
21571         TARGET_HARD_FLOAT.
21572         (get_fpscr) : Likewise.
21574 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21576         PR rtl-optimization/61325
21577         * lra-constraints.c (valid_address_p): Add forward declaration.
21578         (simplify_operand_subreg): Check address validity before and after
21579         alter_reg of memory subreg.
21581 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
21583         * config/i386/i386.c (decide_alg): Correctly handle
21584         maximum size of stringop algorithm.
21586 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21588         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
21590 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21592         PR rtl-optimization/61522
21593         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
21595 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
21597         Revert:
21598         * symtab.c (symtab_node::reset_section): New method.
21599         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21600         for localization.
21601         * cgraph.h (reset_section): Declare.
21602         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21603         do not consider comdat locals.
21604         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21605         for new symbol.
21606         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21607         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21608         reset sections of symbols dragged out of the comdats.
21609         (function_and_variable_visibility): Reset sections of
21610         localized symbols.
21612 2014-06-16  Richard Biener  <rguenther@suse.de>
21614         PR tree-optimization/61482
21615         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
21616         [-INF(OVF), +INF(OVF)] range.
21618 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21620         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
21621         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21622         handling 32-bit multiplication.
21624 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
21626         PR middle-end/61430
21627         * lra-lives.c (process_bb_lives): Skip creating copy during
21628         insn scan when src/dest has constrained to same regno.
21630 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21632         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21633         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21635 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21637         * asan.c (check_func): New function.
21638         (maybe_create_ssa_name): Likewise.
21639         (build_check_stmt_with_calls): Likewise.
21640         (use_calls_p): Likewise.
21641         (report_error_func): Change interface.
21642         (build_check_stmt): Allow non-integer lengths; add support
21643         for new parameter.
21644         (asan_instrument): Likewise.
21645         (instrument_mem_region_access): Moved code to build_check_stmt.
21646         (instrument_derefs): Likewise.
21647         (instrument_strlen_call): Likewise.
21648         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21649         * doc/invoke.texi: Describe new parameter.
21650         * params.def: Define new parameter.
21651         * params.h: Likewise.
21652         * sanitizer.def: Describe new builtins.
21654 2014-06-16  Richard Biener  <rguenther@suse.de>
21656         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21657         Make all defs available at the end.
21658         (eliminate): If we remove a PHI node schedule cfg-cleanup.
21660 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21662         PR plugins/45078
21663         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21665 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
21667         PR bootstrap/61516
21668         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21669         initialization.  Replace remaining use of uid.
21671 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21673         * c-family/c-common.c (handle_tls_model_attribute): Use
21674         set_decl_tls_model.
21675         * c-family/c-common.c (handle_tls_model_attribute): Use
21676         set_decl_tls_model.
21677         * cgraph.h (struct varpool_node): Add tls_model.
21678         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21679         * tree.h (DECL_TLS_MODEL): Update.
21680         (DECL_THREAD_LOCAL_P): Check that variable is static.
21681         (decl_tls_model): Declare.
21682         (set_decl_tls_model): Declare.
21683         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21684         set symbol prorperties.
21685         (get_emutls_init_templ_addr): Cleanup.
21686         (new_emutls_decl): Update.
21687         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21688         (lto_input_varpool_node): Likewise.
21689         * lto-streamer-out.c (hash_tree): Likewise.
21690         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21691         not stream DECL_TLS_MODEL.
21692         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21693         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21695 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21697         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21699 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21701         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21702         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21703         lists.
21704         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21705         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21706         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21707         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21708         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21709         (df_get_artificial_defs, df_get_artificial_uses)
21710         (df_single_def, df_single_use): Update accordingly.
21711         (df_refs_chain_dump): Take the first element in a linked list as
21712         parameter, rather than a pointer to an array of pointers.
21713         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21714         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21715         (df_chain_create_bb_process_use): Likewise.
21716         (df_md_bb_local_compute_process_def): Likewise.
21717         * fwprop.c (process_defs, process_uses): Likewise.
21718         (register_active_defs, update_uses): Likewise.
21719         (forward_propagate_asm): Update for new df_ref linking.
21720         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21721         (df_null_ref_rec, df_null_mw_rec): Likewise.
21722         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21723         explicitly.
21724         (df_scan_free_bb_info): Remove check for null artificial_defs.
21725         (df_install_ref_incremental): Adjust for new df_ref linking.
21726         Use a single-element insertion rather than a full sort.
21727         (df_ref_chain_delete_du_chain): Take the first element
21728         in a linked list as parameter, rather than a pointer to an array of
21729         pointers.
21730         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21731         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21732         (df_insn_info_delete): Remove check for null defs and call to
21733         df_scan_free_mws_vec.
21734         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21735         null rather than df_null_*_rec.
21736         (df_insn_rescan_debug_internal): Likewise, and update null
21737         checks in the same way.  Remove check for null defs.
21738         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21739         Move a single element rather doing a full sort.
21740         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21741         linking.
21742         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
21743         Initialize df_ref and df_mw_hardreg lists to null rather than
21744         df_null_*_rec.
21745         (df_ref_compare): Take df_refs as parameter, transferring the
21746         old interface to...
21747         (df_ref_ptr_compare): ...this new function.
21748         (df_sort_and_compress_refs): Update accordingly.
21749         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21750         old interface to...
21751         (df_mw_ptr_compare): ...this new function.
21752         (df_sort_and_compress_mws): Update accordingly.
21753         (df_install_refs, df_install_mws): Return a linked list rather than
21754         an array of pointers.
21755         (df_refs_add_to_chains): Assert that old lists are empty rather
21756         than freeing them.
21757         (df_insn_refs_verify): Don't handle null defs speciailly.
21758         * web.c (union_match_dups): Update for new df_ref linking.
21760 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21762         * df.h (df_ref_create, df_ref_remove): Delete.
21763         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21764         (df_ref_remove): Likewise.
21766 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21768         * df.h (df_single_def, df_single_use): New functions.
21769         * ira.c (find_moveable_pseudos): Use them.
21771 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21773         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21774         * df-problems.c (df_note_bb_compute): Use it.
21775         * regstat.c (regstat_bb_compute_ri): Likewise.
21777 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21779         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21780         * cse.c (cse_extended_basic_block): Use them.
21781         * dce.c (mark_artificial_use): Likewise.
21782         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21783         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21784         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21785         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21786         (df_simulate_initialize_backwards): Likewise.
21787         (df_simulate_finalize_backwards): Likewise.
21788         (df_simulate_initialize_forwards): Likewise.
21789         (df_md_simulate_artificial_defs_at_top): Likewise.
21790         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21791         * regrename.c (init_rename_info): Likewise.
21792         * regstat.c (regstat_bb_compute_ri): Likewise.
21793         (regstat_bb_compute_calls_crossed): Likewise.
21795 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21797         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21798         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21799         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21800         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21801         * combine.c (create_log_links): Likewise.
21802         * compare-elim.c (find_flags_uses_in_insn): Likewise.
21803         (try_eliminate_compare): Likewise.
21804         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21805         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21806         (remove_reg_equal_equiv_notes_for_defs): Likewise.
21807         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21808         (word_dce_process_block, dce_process_block): Likewise.
21809         * ddg.c (def_has_ccmode_p): Likewise.
21810         * df-core.c (df_bb_regno_first_def_find): Likewise.
21811         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21812         * df-problems.c (df_rd_simulate_one_insn): Likewise.
21813         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21814         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21815         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21816         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21817         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21818         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21819         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21820         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21821         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21822         * fwprop.c (local_ref_killed_between_p): Likewise.
21823         (all_uses_available_at, free_load_extend): Likewise.
21824         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21825         * hw-doloop.c (scan_loop): Likewise.
21826         * ifcvt.c (dead_or_predicable): Likewise.
21827         * init-regs.c (initialize_uninitialized_regs): Likewise.
21828         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21829         (process_bb_node_lives): Likewise.
21830         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21831         (find_moveable_pseudos): Likewise.
21832         * loop-invariant.c (check_dependencies, record_uses): Likewise.
21833         * recog.c (peep2_find_free_register): Likewise.
21834         * ree.c (get_defs): Likewise.
21835         * regstat.c (regstat_bb_compute_ri): Likewise.
21836         (regstat_bb_compute_calls_crossed): Likewise.
21837         * sched-deps.c (find_inc, find_mem): Likewise.
21838         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21839         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21840         * shrink-wrap.c (requires_stack_frame_p): Likewise.
21841         (prepare_shrink_wrap): Likewise.
21842         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21843         * web.c (union_defs, pass_web::execute): Likewise.
21844         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21845         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21847 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
21849         * lra-assign.c (assign_by_spills): Add code to assign vector regs
21850         to inheritance pseudos.
21851         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21853 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
21855         PR target/61415
21856         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21857         (BU_MISC_2): Rename to ...
21858         (BU_LDBL128_2): ... this.
21859         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21860         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21861         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21862         RS6000_BTM_LDBL128.
21863         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21864         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21865         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21866         (unpacktf_1): Likewise.
21867         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21868         (__builtin_longdouble_dw1): Likewise.
21869         * doc/sourcebuild.texi (longdouble128): Document.
21871 2014-06-13  Jeff Law  <law@redhat.com>
21873         PR rtl-optimization/61094
21874         PR rtl-optimization/61446
21875         * ree.c (combine_reaching_defs): Get the mode for the copy from
21876         the extension insn rather than the defining insn.
21878 2014-06-13  Dehao Chen  <dehao@google.com>
21880         * dwarf2out.c (add_linkage_name): Emit more linkage name.
21882 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
21884         * doc/install.texi (--enable-linker-plugin-configure-flags)
21885         (--enable-linker-plugin-flags): Document new flags.
21887 2014-06-13  Martin Jambor  <mjambor@suse.cz>
21889         PR ipa/61186
21890         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21891         cache_token if returning early.
21893 2014-06-13  Nick Clifton  <nickc@redhat.com>
21895         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21896         requested alignment is active.
21897         (LABEL_ALIGN): Likewise.
21898         (LOOP_ALIGN): Likewise.
21900 2014-06-13  Richard Biener  <rguenther@suse.de>
21902         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21903         Rewrite to propagate the VN result into all uses where
21904         possible and to remove stmts becoming dead because of that.
21905         (eliminate): Generalize stmt removal handling, remove in
21906         reverse dominator order to support proper debug stmt
21907         generation.  Update stmts before removing stmts.
21908         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21910 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21912         PR tree-optimization/61375
21913         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21914         symbolic number cannot be represented in an uint64_t.
21915         (find_bswap_or_nop_1): Likewise.
21917 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21919         * symtab.c (symtab_node::reset_section): New method.
21920         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21921         for localization.
21922         * cgraph.h (reset_section): Declare.
21923         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21924         do not consider comdat locals.
21925         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21926         for new symbol.
21927         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21928         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21929         reset sections of symbols dragged out of the comdats.
21930         (function_and_variable_visibility): Reset sections of
21931         localized symbols.
21933 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21935         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21936         to use symtab and decl_binds_to_current_def_p
21937         * tree-vectorizer.c (increase_alignment): Increase alignment
21938         of alias target, too.
21940 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
21942         PR middle-end/61486
21943         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21944         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21945         if outer combined construct is distribute.
21946         (gimplify_omp_for): For OMP_DISTRIBUTE set
21947         gimplify_omp_ctxp->distribute.
21948         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21949         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21950         mapping into decl map.
21952 2014-06-12  Jason Merrill  <jason@redhat.com>
21954         * common.opt (fabi-version): Change default to 0.
21956 2014-06-12  Jason Merrill  <jason@redhat.com>
21958         * toplev.c (process_options): Reject -fabi-version=1.
21960 2014-06-12  Jeff Law  <law@redhat.com>
21962         PR tree-optimization/61009
21963         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21964         value when we stop processing a block due to problematic PHIs.
21966 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
21968         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21969         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21970         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21971         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21972         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21973         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21974         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21975         are not in the spec.
21977 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
21979         PR target/59843
21980         * config/aarch64/aarch64-modes.def: Add V1DFmode.
21981         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21982         Support V1DFmode.
21984 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
21986         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21988 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
21990         PR target/61443
21991         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21992         loading from address spaces.
21994 2014-06-12  Martin Liska  <mliska@suse.cz>
21996         PR ipa/61462
21997         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21998         statement is reachable.
22000 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
22002         * symtab.c (section_hash): New hash.
22003         (symtab_unregister_node): Clear section before freeing.
22004         (hash_section_hash_entry): New haser.
22005         (eq_sections): New function.
22006         (symtab_node::set_section_for_node): New method.
22007         (set_section_1): Update.
22008         (symtab_node::set_section): Take string instead of tree as parameter.
22009         (symtab_resolve_alias): Update.
22010         * cgraph.h (section_hash_entry_d): New structure.
22011         (section_hash_entry): New typedef.
22012         (cgraph_node): Change comdat_group_ to x_comdat_group,
22013         change section_ to x_section and turn into section_hash_entry;
22014         update accestors; put set_section_for_node offline.
22015         * tree.c (decl_section_name): Turn into string.
22016         (set_decl_section_name): Change parameter to be string.
22017         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
22018         * sdbout.c (sdbout_one_type): Update.
22019         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
22020         * varasm.c (IN_NAMED_SECTION, get_named_section,
22021         resolve_unique_section, hot_function_section, get_named_text_section,
22022         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
22023         make_decl_rtl, default_unique_section): Update.
22024         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
22025         (c6x_elf_unique_section): Update.
22026         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
22027         * config/pa/pa.c (pa_function_section): Update.
22028         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
22029         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
22030         * config/arc/arc.c (arc_in_small_data_p): Update.
22031         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
22032         * config/mcore/mcore.c (mcore_unique_section): Update.
22033         * config/mips/mips.c (mips16_build_function_stub): Update.
22034         (mips16_build_call_stub): Update.
22035         (mips_function_rodata_section): Update.
22036         (mips_in_small_data_p): Update.
22037         * config/score/score.c (score_in_small_data_p): Update.
22038         * config/rx/rx.c (rx_in_small_data): Update.
22039         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
22040         (rs6000_xcoff_asm_named_section): Update.
22041         (rs6000_xcoff_unique_section): Update.
22042         * config/frv/frv.c (frv_string_begins_with): Update.
22043         (frv_in_small_data_p): Update.
22044         * config/v850/v850.c (v850_encode_data_area): Update.
22045         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
22046         (bfin_handle_l1_data_attribute): Update.
22047         (bfin_handle_l2_attribute): Update.
22048         * config/mep/mep.c (mep_unique_section): Update.
22049         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
22050         Update.
22051         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
22052         (h8300_handle_tiny_data_attribute): Update.
22053         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
22054         (m32r_in_small_data_p): Update.
22055         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
22056         * config/i386/i386.c (ix86_in_large_data_p): Update.
22057         * config/i386/winnt.c (i386_pe_unique_section): Update.
22058         * config/darwin.c (darwin_function_section): Update.
22059         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
22060         * tree-emutls.c (get_emutls_init_templ_addr): Update.
22061         (new_emutls_decl): Update.
22062         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
22063         input_varpool_node): Update.
22064         (ead_string_cst): Turn to ...
22065         (read_string): ... this one.
22066         * dwarf2out.c (secname_for_decl): Update.
22067         * asan.c (asan_protect_global): Update.
22069 2014-06-11  DJ Delorie  <dj@redhat.com>
22071         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
22072         cache lines.
22073         * config/rx/rx.c (rx_option_override): Likewise.
22074         (rx_align_for_label): Likewise.
22076         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
22078 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
22080         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
22081         prototype.
22083 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22085         * common.md: New file.
22086         * doc/md.texi: Update description of generic, machine-independent
22087         constraints.
22088         * config/s390/constraints.md (e): Delete.
22089         * Makefile.in (md_file): Include common.md.
22090         * config/m32c/t-m32c (md_file): Likewise.
22091         * genpreds.c (general_mem): New array.
22092         (generic_constraint_letters): Remove constraints now defined by
22093         common.md.
22094         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22095         Allow the first character to be '<' or '>' as well.
22096         * genoutput.c (general_mem): New array.
22097         (indep_constraints): Remove constraints now defined by common.md.
22098         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22099         Remove special handling of 'm'.
22100         * ira-costs.c (record_reg_classes): Remove special handling of
22101         constraints now defined by common.md.
22102         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22103         * ira-lives.c (single_reg_class): Likewise.
22104         (ira_implicitly_set_insn_hard_regs): Likewise.
22105         * lra-constraints.c (reg_class_from_constraints): Likewise.
22106         (process_alt_operands, process_address, curr_insn_transform): Likewise.
22107         * postreload.c (reload_cse_simplify_operands): Likewise.
22108         * reload.c (push_secondary_reload, scratch_reload_class)
22109         (find_reloads, alternative_allows_const_pool_ref): Likewise.
22110         * reload1.c (maybe_fix_stack_asms): Likewise.
22111         * targhooks.c (default_secondary_reload): Likewise.
22112         * stmt.c (parse_output_constraint): Likewise.
22113         * recog.c (preprocess_constraints): Likewise.
22114         (constrain_operands, peep2_find_free_register): Likewise.
22115         (asm_operand_ok): Likewise, but add a comment saying why 'o'
22116         must be handled specially.
22118 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22120         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
22121         * genpreds.c (have_const_dbl_constraints): Delete.
22122         (add_constraint): Don't set it.
22123         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
22124         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
22125         constraints using the lookup_constraint logic.
22126         * ira-lives.c (single_reg_class): Likewise.
22127         * ira.c (ira_setup_alts): Likewise.
22128         * lra-constraints.c (process_alt_operands): Likewise.
22129         * recog.c (asm_operand_ok, constrain_operands): Likewise.
22130         * reload.c (find_reloads): Likewise.
22132 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22134         * genpreds.c (const_int_start, const_int_end): New variables.
22135         (choose_enum_order): Output CONST_INT constraints before memory
22136         constraints.
22137         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
22138         Add CT_CONST_INT.
22139         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
22140         * ira.c (ira_setup_alts): Likewise.
22141         * lra-constraints.c (process_alt_operands): Likewise.
22142         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22143         * reload.c (find_reloads): Likewise.
22145 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22147         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
22148         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
22149         * recog.c (preprocess_constraints): Update accordingly.
22151 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22153         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
22154         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
22155         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
22156         * genpreds.c (print_type_tree): New function.
22157         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
22158         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
22159         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
22160         Write out enum constraint_type and get_constraint_type.
22161         * lra-constraints.c (satisfies_memory_constraint_p): Take a
22162         constraint_num rather than a constraint string.
22163         (satisfies_address_constraint_p): Likewise.
22164         (reg_class_from_constraints): Avoid old constraint macros.
22165         (process_alt_operands, process_address_1): Likewise.
22166         (curr_insn_transform): Likewise.
22167         * ira-costs.c (record_reg_classes): Likewise.
22168         (record_operand_costs): Likewise.
22169         * ira-lives.c (single_reg_class): Likewise.
22170         (ira_implicitly_set_insn_hard_regs): Likewise.
22171         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22172         * postreload.c (reload_cse_simplify_operands): Likewise.
22173         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22174         (constrain_operands, peep2_find_free_register): Likewise.
22175         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
22176         (find_reloads, alternative_allows_const_pool_ref): Likewise.
22177         * reload1.c (maybe_fix_stack_asms): Likewise.
22178         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
22179         * targhooks.c (default_secondary_reload): Likewise.
22180         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
22181         to EXTRA_CONSTRAINT_STR.
22182         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
22184 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22186         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
22187         (write_constraint_satisfied_p_array): ...this new function.
22188         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
22189         an array.
22190         (write_insn_preds_c): Update accordingly.
22192 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22194         * genpreds.c (write_lookup_constraint): Rename to...
22195         (write_lookup_constraint_1): ...this.
22196         (write_lookup_constraint_array): New function.
22197         (write_tm_preds_h): Define lookup_constraint as an inline function
22198         that uses write_lookup_constraint_array where possible.
22199         (write_insn_preds_c): Update for the changes above.
22201 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22203         * doc/md.texi (regclass_for_constraint): Rename to...
22204         (reg_class_for_constraint): ...this.
22205         * genpreds.c (num_constraints, enum_order, register_start)
22206         (register_end, satisfied_start, memory_start, memory_end)
22207         (address_start, address_end): New variables.
22208         (add_constraint): Count the number of constraints.
22209         (choose_enum_order): New function.
22210         (write_enum_constraint_num): Iterate over enum_order.
22211         (write_regclass_for_constraint): Rename to...
22212         (write_reg_class_for_constraint_1): ...this and update output
22213         accordingly.
22214         (write_constraint_satisfied_p): Rename to...
22215         (write_constraint_satisfied_p_1): ...this and update output
22216         accordingly.  Do nothing if all extra constraints are register
22217         constraints.
22218         (write_insn_extra_memory_constraint): Delete.
22219         (write_insn_extra_address_constraint): Delete.
22220         (write_range_function): New function.
22221         (write_tm_preds_h): Define constraint_satisfied_p and
22222         reg_class_for_constraint as inline functions that do a range check
22223         before calling the out-of-line function.  Use write_range_function
22224         to implement insn_extra_{register,memory,address}_constraint,
22225         the first of which is new.
22226         (write_insn_preds_c): Update after above changes to write_* functions.
22227         (main): Call choose_enum_order.
22229 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22231         PR tree-optimization/61306
22232         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
22233         expression instead of its size.
22234         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
22235         false to prevent optimization when the result is unpredictable due to
22236         arithmetic right shift of signed type with highest byte is set.
22237         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
22238         (init_symbolic_number): Likewise.
22239         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
22240         when the result is unpredictable due to sign extension.
22242 2014-06-11  Terry Guo  <terry.guo@arm.com>
22244         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
22245         (*thumb1_addsi3): Ditto.
22246         (*thumb_subdi3): Ditto.
22247         (thumb1_subsi3_insn): Ditto.
22248         (*thumb_mulsi3): Ditto.
22249         (*thumb_mulsi3_v6): Ditto.
22250         (*thumb1_andsi3_insn): Ditto.
22251         (thumb1_bicsi3): Ditto.
22252         (*thumb1_iorsi3_insn): Ditto.
22253         (*thumb1_xorsi3_insn): Ditto.
22254         (*thumb1_ashlsi3): Ditto.
22255         (*thumb1_ashrsi3): Ditto.
22256         (*thumb1_lshrsi3): Ditto.
22257         (*thumb1_rotrsi3): Ditto.
22258         (*thumb1_negdi2): Ditto.
22259         (*thumb1_negsi2): Ditto.
22260         (*thumb1_abssi2): Ditto.
22261         (*thumb1_neg_abssi2): Ditto.
22262         (*thumb1_one_cmplsi2): Ditto.
22263         (*thumb1_zero_extendhisi2): Ditto.
22264         (*thumb1_zero_extendqisi2): Ditto.
22265         (*thumb1_zero_extendqisi2_v6): Ditto.
22266         (thumb1_extendhisi2): Ditto.
22267         (thumb1_extendqisi2): Ditto.
22268         (*thumb1_movdi_insn): Ditto.
22269         (*thumb1_movsi_insn): Ditto.
22270         (*thumb1_movhi_insn): Ditto.
22271         (thumb_movhi_clobber): Ditto.
22272         (*thumb1_movqi_insn): Ditto.
22273         (*thumb1_movhf): Ditto.
22274         (*thumb1_movsf_insn): Ditto.
22275         (*thumb_movdf_insn): Ditto.
22276         (movmem12b): Ditto.
22277         (movmem8b): Ditto.
22278         (cbranchqi4): Ditto.
22279         (cbranchsi4_insn): Ditto.
22280         (cbranchsi4_scratch): Ditto.
22281         (*negated_cbranchsi4): Ditto.
22282         (*tbit_cbranch): Ditto.
22283         (*tlobits_cbranch): Ditto.
22284         (*tstsi3_cbranch): Ditto.
22285         (*cbranchne_decr1): Ditto.
22286         (*addsi3_cbranch): Ditto.
22287         (*addsi3_cbranch_scratch): Ditto.
22288         (*thumb_cmpdi_zero): Ditto.
22289         (cstoresi_eq0_thumb1): Ditto.
22290         (cstoresi_ne0_thumb1): Ditto.
22291         (*cstoresi_eq0_thumb1_insn): Ditto.
22292         (*cstoresi_ne0_thumb1_insn): Ditto.
22293         (cstoresi_nltu_thumb1): Ditto.
22294         (cstoresi_ltu_thumb1): Ditto.
22295         (thumb1_addsi3_addgeu): Ditto.
22296         (*thumb_jump): Ditto.
22297         (*call_reg_thumb1_v5): Ditto.
22298         (*call_reg_thumb1): Ditto.
22299         (*call_value_reg_thumb1_v5): Ditto.
22300         (*call_value_reg_thumb1): Ditto.
22301         (*call_insn): Ditto.
22302         (*call_value_insn): Ditto.
22303         (thumb1_casesi_internal_pic): Ditto.
22304         (thumb1_casesi_dispatch): Ditto.
22305         (*thumb1_indirect_jump): Ditto.
22306         (prologue_thumb1_interwork): Ditto.
22307         (*epilogue_insns): Ditto.
22308         (consttable_1): Ditto.
22309         (consttable_2): Ditto.
22310         (tablejump): Ditto.
22311         (*thumb1_tablejump): Ditto.
22312         (thumb_eh_return): Ditto.
22313         (define_peephole2): Two of them are thumb1 only and got moved into
22314         new file thumb1.md.
22315         (define_split): Six of them are thumb1 only and got moved into new
22316         file thumb1.md.
22317         * config/arm/thumb1.md: New file comprised of above thumb1 only
22318         patterns.
22320 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22322         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
22323         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
22324         dependencies.
22325         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
22326         (aarch64_crc_builtin_datum): New struct.
22327         (aarch64_crc_builtin_data): New.
22328         (aarch64_init_crc32_builtins): New function.
22329         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
22330         (aarch64_crc32_expand_builtin): New.
22331         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
22332         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
22333         __ARM_FEATURE_CRC32 when appropriate.
22334         (TARGET_CRC32): Define.
22335         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
22336         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
22337         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
22338         (aarch64_<crc_variant>): New pattern.
22339         * config/aarch64/arm_acle.h: New file.
22340         * config/aarch64/iterators.md (CRC): New int iterator.
22341         (crc_variant, crc_mode): New int attributes.
22342         * doc/aarch64-acle-intrinsics.texi: New file.
22343         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
22344         Include aarch64-acle-intrinsics.texi.
22346 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
22348         * tree-vect-data-refs.c (vect_grouped_store_supported): New
22349         check for stores group of length 3.
22350         (vect_permute_store_chain): New permutations for stores group of
22351         length 3.
22352         * tree-vect-stmts.c (vect_model_store_cost): Change cost
22353         of vec_perm_shuffle for the new permutations.
22355 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
22357         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
22358         table rewriting temporarily on targets not supporting ONE_ONLY.
22360 2014-06-11  Richard Biener  <rguenther@suse.de>
22362         PR middle-end/61437
22363         Revert
22364         2014-06-04  Richard Biener  <rguenther@suse.de>
22366         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22367         TREE_PUBLIC and DECL_EXTERNAL decls.
22369 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22371         * varasm.c (set_implicit_section): New function.
22372         (resolve_unique_section): Use it to set implicit section
22373         for aliases, too.
22374         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
22375         (default_function_section): Likewise.
22376         (decl_binds_to_current_def_p): Constify argument.
22377         * varasm.h (decl_binds_to_current_def_p): Update prototype.
22378         * asan.c (asan_protect_global): Use
22379         symtab_get_node (decl)->implicit_section.
22380         * symtab.c (dump_symtab_base): Dump implicit sections.
22381         (verify_symtab_base): Verify sanity of sectoins and comdats.
22382         (symtab_resolve_alias): Alias share the section of its target.
22383         (set_section_1): New function.
22384         (symtab_node::set_section): Move here, recurse to aliases.
22385         (verify_symtab): Check for duplicated symtab lists.
22386         * tree-core.h (implicit_section_name_p): Remove.
22387         * tree-vect-data-refs.c: Include varasm.h.
22388         (vect_can_force_dr_alignment_p): Fix conditional on when
22389         decl bints to current definition; use
22390         symtab_get_node (decl)->implicit_section.
22391         * cgraph.c (cgraph_make_node_local_1): Fix section set.
22392         * cgraph.h (struct symtab_node): Add implicit_section.
22393         (set_section): Rename to ...
22394         (set_section_for_node): ... this one.
22395         (set_section): Declare.
22396         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
22397         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22398         input_overwrite_node, input_varpool_node): Stream implicit_section.
22399         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
22400         removal; it will fail in LTO.
22402 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22404         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
22405         Change second alternative type to f_mcr.
22406         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
22407         and 12th alternatives' types to f_mcr and f_mrc.
22408         (*movdi_aarch64): Same for 12th and 13th alternatives.
22409         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
22410         (aarch64_movtilow_tilow): Change type to fmov.
22412 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
22414         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
22415         (aarch64_save_or_restore_callee_save_registers): Fix layout.
22417 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22419         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
22420         New expander.
22421         (aarch64_sqrdmulh_lane<mode>): Likewise.
22422         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22423         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22424         (aarch64_sqdmulh_laneq<mode>): New expander.
22425         (aarch64_sqrdmulh_laneq<mode>): Likewise.
22426         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
22427         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
22428         (aarch64_sqdmulh_lane<mode>): New expander.
22429         (aarch64_sqrdmulh_lane<mode>): Likewise.
22430         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22431         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22432         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
22433         (aarch64_sqdmlal_laneq<mode>): Likewise.
22434         (aarch64_sqdmlsl_lane<mode>): Likewise.
22435         (aarch64_sqdmlsl_laneq<mode>): Likewise.
22436         (aarch64_sqdmlal2_lane<mode>): Likewise.
22437         (aarch64_sqdmlal2_laneq<mode>): Likewise.
22438         (aarch64_sqdmlsl2_lane<mode>): Likewise.
22439         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
22440         (aarch64_sqdmull_lane<mode>): Likewise.
22441         (aarch64_sqdmull_laneq<mode>): Likewise.
22442         (aarch64_sqdmull2_lane<mode>): Likewise.
22443         (aarch64_sqdmull2_laneq<mode>): Likewise.
22445 2014-06-10  Richard Biener  <rguenther@suse.de>
22447         PR tree-optimization/61438
22448         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
22449         (eliminate_dom_walker::before_dom_children): Only try to inhibit
22450         insertion of IVs if running PRE.
22451         (eliminate): Adjust.
22452         (pass_pre::execute): Likewise.
22453         (pass_fre::execute): Likewise.
22455 2014-06-10  Richard Biener  <rguenther@suse.de>
22457         PR middle-end/61456
22458         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22459         Do not use the main variant for the type comparison.
22460         (ncr_compar): Likewise.
22461         (nonoverlapping_component_refs_p): Likewise.
22463 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22465         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
22466         REG_CFA_RESTORE mode.
22468 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
22470         * config/i386/i386.c (expand_vec_perm_pblendv): New.
22471         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
22472         expand_vec_perm_pblendv.
22474 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22476         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
22477         available.
22478         Simplify description of __crc32d and __crc32cd intrinsics.
22479         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
22480         availability.
22482 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
22484         PR lto/61334
22485         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
22486         * config.in: Regenerate.
22487         * configure: Likewise.
22489 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22491         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
22492         and public vars.
22493         (intersect_static_var_sets): Remove.
22494         (propagate): Do not prune local statics.
22496 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
22498         PR fortran/60928
22499         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
22500         Set lastprivate_firstprivate even if omp_private_outer_ref
22501         langhook returns true.
22502         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
22503         langhook, call unshare_expr on new_var and call
22504         build_outer_var_ref to get the last argument.
22506 2014-06-10  Marek Polacek  <polacek@redhat.com>
22508         PR c/60988
22509         * doc/extend.texi: Add cindex for transparent_union.
22511 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22513         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
22514         init_symbolic_number ().
22516 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
22518         PR middle-end/61141
22519         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
22520         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
22521         (verify_rtl_sharing): Likewise.
22523 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
22525         PR c++/54442
22526         * tree.c (build_qualified_type): Use a canonical type for
22527         TYPE_CANONICAL.
22529 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22531         * config/arm/arm-modes.def: Remove XFmode.
22533 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
22535         PR target/61062
22536         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
22537         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
22538         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
22539         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
22540         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
22541         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
22542         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
22543         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
22544         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
22546 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
22548         * tree-core.h (tree_decl_with_vis): Remove section_name.
22550 2014-06-09  Kito Cheng  <kito@0xlab.org>
22552         * ira.c (ira): Don't call init_caller_save if LRA enabled
22553         since LRA use its own infrastructure to handle that.
22555 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22557         * symtab.c (dump_symtab_base): Update dumping.
22558         (symtab_make_decl_local): Clear only DECL_COMDAT.
22559         * tree-vect-data-refs.c (Check that variable is static before
22560         tampering with sections.
22561         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
22562         (cgraph_create_virtual_clone): Likewise.
22563         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
22564         (decl_section_name, set_decl_section_name): New accessors.
22565         (find_decls_types_r): Do not walk section name
22566         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
22567         (decl_comdat_group, decl_comdat_group_id): Constify.
22568         (decl_section_name, set_decl_section_name): Update.
22569         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
22570         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
22571         (cgraph_make_node_local_1): Clear section and comdat group.
22572         * cgraph.h (set_comdat_group): Sanity check.
22573         (get_section, set_section): New.
22574         * ipa-comdats.c (ipa_comdats): Use get_section.
22575         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
22576         * lto-streamer-out.c: Do not follow section names.
22577         * c-family/c-common.c (handle_section_attribute): Update.
22578         * lto-cgraph.c (lto_output_node): Output section.
22579         (lto_output_varpool_node): Likewise.
22580         (read_comdat_group): Rename to ...
22581         (read_identifier): ... this one.
22582         (read_string_cst): New function.
22583         (input_node, input_varpool_node): Input section names.
22584         * tree-emutls.c (get_emutls_init_templ_addr): Update.
22585         (new_emutls_decl): Update.
22586         (secname_for_decl): Check section names only of static vars.
22587         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
22588         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
22589         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22590         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22591         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
22592         * config/mcore/mcore.c (mcore_unique_section): Likewise.
22593         * config/mips/mips.c (mips16_build_function_stub): Likewise.
22594         * config/v850/v850.c (v850_insert_attributes): Likewise.
22595         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
22596         Likewise.
22597         (h8300_handle_tiny_data_attribute): Likewise.
22598         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
22599         (bfin_handle_l2_attribute): Likewise.
22601 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22603         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
22604         remove static initializer.
22606 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22608         * varasm.c (use_blocks_for_decl_p): Check symbol table
22609         instead of alias attribute.
22610         (place_block_symbol): Recurse on aliases.
22612 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22614         * ipa-visibility.c: Include varasm.h
22615         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
22617 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22619         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
22620         outputting aliases.
22622 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
22624         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22625         from test_insn into GGC space escape via SET_SRC.
22627 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
22629         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22630         call statement, if any.
22631         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22632         statements, if any.  Tidy up.
22634 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22636         PR target/61431
22637         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22638         iterators, VSX_D that handles 64-bit types, and VSX_LE that
22639         handles swapping the two 64-bit double words on little endian
22640         systems.  Include V1TImode and optionally TImode in VSX_LE so that
22641         these types are properly swapped.  Change all of the insns and
22642         splits that do the 64-bit swaps to use VSX_LE.
22643         (vsx_le_perm_load_<mode>): Likewise.
22644         (vsx_le_perm_store_<mode>): Likewise.
22645         (splitters for little endian memory operations): Likewise.
22646         (vsx_xxpermdi2_le_<mode>): Likewise.
22647         (vsx_lxvd2x2_le_<mode>): Likewise.
22648         (vsx_stxvd2x2_le_<mode>): Likewise.
22650 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
22652         PR target/61423
22653         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22654         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22655         and corresponding splitters.  Zero extend general register
22656         or memory input operand to XMM temporary.  Enable for
22657         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22658         (floatunssi<mode>2): Update expander predicate.
22660 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22662         PR rtl-optimization/61325
22663         * lra-constraints.c (process_address_1): Check scale equal to one
22664         to prevent transformation: base + scale * index => base + new_reg.
22666 2014-06-06  Richard Biener  <rguenther@suse.de>
22668         PR tree-optimization/59299
22669         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22670         a def operand.
22671         (nearest_common_dominator_of_uses): Likewise.
22672         (statement_sink_location): Adjust.  Support sinking loads.
22674 2014-06-06  Martin Jambor  <mjambor@suse.cz>
22676         * ipa-prop.c (get_place_in_agg_contents_list): New function.
22677         (build_agg_jump_func_from_list): Likewise.
22678         (determine_known_aggregate_parts): Renamed to
22679         determine_locally_known_aggregate_parts.  Moved some functionality
22680         to the two functions above, removed bound checks.
22682 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
22684         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22685         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22686         (aarch64_progress_pointer): Likewise.
22687         (aarch64_copy_one_part_and_move_pointers): Likewise.
22688         (aarch64_expand_movmen): Likewise.
22689         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22690         * config/aarch64/aarch64.md (movmem<mode>): New.
22692 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
22694         * targhooks.c (default_add_stmt_cost): Call target specific
22695         hook instead of default one.
22697 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22699         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22700         endianness instead of host endianness.
22701         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22702         comments.
22704 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22706         PR debug/53927
22707         * function.c (instantiate_decls): Process the saved static chain.
22708         (expand_function_start): If not optimizing, save the static chain
22709         onto the stack.
22710         * tree-nested.c (convert_all_function_calls): Always create the static
22711         chain for nested functions if not optimizing.
22713 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22715         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22717 2014-06-06  Richard Biener  <rguenther@suse.de>
22719         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22720         (construct_init_block): Likewise.
22721         (construct_exit_block): Likewise.
22722         (pass_expand::execute): Likewise.
22723         * graphite.c (graphite_transforms): Replace check for current_loops
22724         with a check for > 1 loops.
22725         (pass_graphite_transforms::execute): Adjust.
22726         * ipa-split.c (split_function): Remove check for current_loops.
22727         * omp-low.c (expand_parallel_call): Likewise.
22728         (expand_omp_for_init_counts): Likewise.
22729         (extract_omp_for_update_vars): Likewise.
22730         (expand_omp_for_generic): Likewise.
22731         (expand_omp_sections): Likewise.
22732         (expand_omp_target): Likewise.
22733         * tracer.c (tail_duplicate): Likewise.
22734         (pass_tracer::execute): Likewise.
22735         * trans-mem.c (expand_transaction): Likewise.
22736         * tree-complex.c (expand_complex_div_wide): Likewise.
22737         * tree-eh.c (lower_resx): Likewise.
22738         (cleanup_empty_eh_merge_phis): Likewise.
22739         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22740         current_loops with a check for > 1 loops.
22741         (pass_predcom::execute): Adjust.
22742         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22743         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22744         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22745         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22746         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22747         * tree-switch-conversion.c (process_switch): Likewise.
22748         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22749         * tree-vrp.c (vrp_visit_phi_node): Likewise.
22750         (execute_vrp): Likewise.
22751         * ubsan.c (ubsan_expand_null_ifn): Likewise.
22753 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22755         * rtl.h (insn_location): Declare.
22756         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22757         with UNKNOWN_LOCATION.
22758         * emit-rtl.c (insn_location): New function.
22759         * final.c (notice_source_line): Check that the instruction has a
22760         location before retrieving it and use insn_location.
22761         * modulo-sched.c (loop_single_full_bb_p): Likewise.
22762         * print-rtl.c (print_rtx): Likewise.
22764 2014-06-06  Richard Biener  <rguenther@suse.de>
22766         * passes.def: Move 2nd VRP pass before phi-only-cprop.
22768 2014-06-06  Christian Bruel  <christian.bruel@st.com>
22770         PR tree-optimization/43934
22771         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22772         cost.
22774 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
22776         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
22777         return NO_REGS for extra address and memory constraints.  Handle
22778         operands that match (or are equivalent to something that matches)
22779         extra constant constraints.  Ignore other non-register operands.
22781 2014-06-06  Alan Modra  <amodra@gmail.com>
22783         PR target/61300
22784         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22785         * doc/tm.texi: Regenerate.
22786         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22787         Use throughout in place of REG_PARM_STACK_SPACE.
22788         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22789         "incoming" param.  Pass to rs6000_function_parms_need_stack.
22790         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22791         prototype_p when incoming.  Use function decl when incoming
22792         to handle K&R style functions.
22793         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22794         (INCOMING_REG_PARM_STACK_SPACE): Define.
22796 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22798         PR target/52472
22799         * cfgexpand.c (expand_debug_expr): Use address space of nested
22800         TREE_TYPE for ADDR_EXPR and MEM_REF.
22802 2014-06-05  Jeff Law  <law@redhat.com>
22804         PR tree-optimization/61289
22805         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22806         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
22807         looking for those which match LHS.  All callers changed.
22808         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22809         parameters and code which manipulated them.  All callers changed.
22810         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22811         and DST_MAP parameters.  Simplify invalidation code by just calling
22812         invalidate_equivalences.  All callers changed.
22813         (thread_across_edge): Simplify now that we don't need to maintain
22814         the map of equivalences to invalidate.
22816 2014-06-05  Kai Tietz  <ktietz@redhat.com>
22817             Richard Henderson  <rth@redhat.com>
22819         PR target/46219
22820         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22821         checking for !TARGET_X32.
22822         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22823         (sibcall_intern): New define_insn, plus required peepholes.
22824         (sibcall_pop_intern): Likewise.
22825         (sibcall_value_intern): Likewise.
22826         (sibcall_value_pop_intern): Likewise.
22828 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
22830         * tree-inline.c (tree_function_versioning): Check DF info existence
22831         before accessing it.
22833 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22835         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22836         frame_size.
22837         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22838         aarch64_frame hard_fp_offset and frame_size.
22839         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22840         frame_size; remove original_frame_size.
22841         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22842         (aarch64_initial_elimination_offset): Remove frame_size and
22843         offset.  Use aarch64_frame frame_size.
22845 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22846             Jiong Wang  <jiong.wang@arm.com>
22847             Renlin  <renlin.li@arm.com>
22849         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22850         initialization of R30 offset.  Update offset.  Iterate core
22851         regisers upto X30.  Remove X29, X30 specific code.
22853 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22854             Jiong Wang  <jiong.wang@arm.com>
22856         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22857         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22858         (aarch64_register_saved_on_entry): Adjust test.
22860 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22862         * config/aarch64/aarch64.h (machine_function): Move
22863         saved_varargs_size from here...
22864         (aarch64_frame): ... to here.
22866         * config/aarch64/aarch64.c (aarch64_expand_prologue)
22867         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22868         (aarch64_initial_elimination_offset)
22869         (aarch64_setup_incoming_varargs): Adjust location of
22870         saved_varargs_size.
22872 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22874         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22875         layout comment.
22877 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
22878             Prachi Godbole  <Prachi.Godbole@imgtec.com>
22880         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
22881         mips32r5 entry to use PROCESSOR_P5600.
22882         * config/mips/mips-tables.opt: Regenerate.
22883         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22884         * config/mips/mips.c (mips_fmadd_bypass): New function.
22885         (mips_rtx_cost_data): Add costs for p5600.
22886         (mips_issue_rate): Add support for p5600.
22887         (mips_multipass_dfa_lookahead): Likewise.
22888         * config/mips/mips.h (TUNE_P5600): New define.
22889         (TUNE_MACC_CHAINS): Add TUNE_P5600.
22890         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22891         * config/mips/mips.md: Include p5600.md.
22892         (processor): Add p5600.
22893         * config/mips/p5600.md: New file.
22895 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
22897         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22898         * config/i386/predicates.md (palignr_operand): New.
22899         Indicates if permutation is suitable for palignr instruction.
22901 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
22903         PR tree-optimization/61319
22904         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22905         stmt belongs to loop.
22907 2014-06-05  Richard Biener  <rguenther@suse.de>
22909         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22910         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22911         (lookup_tmp_var): Adjust.
22912         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22914 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22916         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22918 2014-06-05  Marek Polacek  <polacek@redhat.com>
22920         PR c/49706
22921         * doc/invoke.texi: Document -Wlogical-not-parentheses.
22923 2014-06-04  Tom de Vries  <tom@codesourcery.com>
22925         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22926         CONST_INT.
22928 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
22930         PR tree-optimization/61385
22931         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22933 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22935         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
22936         changed to use fatal_error.
22937         (main): Ensure lto_wrapper_cleanup is run atexit.
22939 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22941         * lra-constraints.c (valid_address_p): Move earlier in file.
22942         (address_eliminator): New structure.
22943         (satisfies_memory_constraint_p): New function.
22944         (satisfies_address_constraint_p): Likewise.
22945         (process_alt_operands, process_address, curr_insn_transform): Use them.
22947 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22949         * lra-int.h (lra_static_insn_data): Make operand_alternative a
22950         const pointer.
22951         (target_lra_int, default_target_lra_int, this_target_lra_int)
22952         (op_alt_data): Delete.
22953         * lra.h (lra_init): Delete.
22954         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22955         (init_insn_code_data_once): Remove op_alt_data handling.
22956         (finish_insn_code_data_once): Likewise.
22957         (init_op_alt_data): Delete.
22958         (get_static_insn_data): Initialize operand_alternative to null.
22959         (free_insn_recog_data): Cast operand_alternative before freeing it.
22960         (setup_operand_alternative): Take the operand_alternative as
22961         parameter and assume it isn't already cached in the static
22962         insn data.
22963         (lra_set_insn_recog_data): Update accordingly.
22964         (lra_init): Delete.
22965         * ira.c (ira_init): Don't call lra_init.
22966         * target-globals.h (this_target_lra_int): Declare.
22967         (target_globals): Remove lra_int.
22968         (restore_target_globals): Update accordingly.
22969         * target-globals.c: Don't include lra-int.h.
22970         (default_target_globals, save_target_globals): Remove lra_int.
22972 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22974         * recog.h (operand_alternative): Convert reg_class, reject,
22975         matched and matches into bitfields.
22976         (preprocess_constraints): New overload.
22977         (preprocess_insn_constraints): New function.
22978         (preprocess_constraints): Take the insn as parameter.
22979         (recog_op_alt): Change into a pointer.
22980         (target_recog): Add x_op_alt.
22981         * recog.c (asm_op_alt): New variable.
22982         (recog_op_alt): Change into a pointer.
22983         (preprocess_constraints): New overload, replacing the old function
22984         definition with one that doesn't use global state.
22985         (preprocess_insn_constraints): New function.
22986         (preprocess_constraints): Use them.  Take the insn as parameter.
22987         Use asm_op_alt for asms.
22988         (recog_init): Free existing x_op_alt entries.
22989         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22990         pointer const.
22991         (make_early_clobber_and_input_conflicts): Likewise.
22992         (process_bb_node_lives): Pass the insn to process_constraints.
22993         * reg-stack.c (check_asm_stack_operands): Likewise.
22994         (subst_asm_stack_regs): Likewise.
22995         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22996         * regrename.c (build_def_use): Likewise.
22997         * sched-deps.c (sched_analyze_insn): Likewise.
22998         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22999         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
23000         (note_invalid_constants): Likewise.
23001         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
23002         (ix86_legitimate_combined_insn): Make operand_alternative pointer
23003         const.
23005 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
23007         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
23008         * ira-lives.c (check_and_make_def_conflict): Check for disabled
23009         alternatives.
23010         (make_early_clobber_and_input_conflicts): Likewise.
23011         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
23013 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
23015         * recog.h (alternative_class): New function.
23016         (which_op_alt): Return a const recog_op_alt.
23017         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
23018         (subst_asm_stack_regs): Likewise.
23019         * config/arm/arm.c (note_invalid_constants): Likewise.
23020         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
23021         the operand_alternative; use alternative class instead.
23022         * sel-sched.c (get_reg_class): Likewise.
23023         * regrename.c (build_def_use): Likewise.
23024         (hide_operands, restore_operands, record_out_operands): Update type
23025         accordingly.
23027 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
23029         * recog.h (recog_op_alt): Convert to a flat array.
23030         (which_op_alt): New function.
23031         * recog.c (recog_op_alt): Convert to a flat array.
23032         (preprocess_constraints): Update accordingly, grouping all
23033         operands of the same alternative together, rather than the
23034         other way around.
23035         * ira-lives.c (check_and_make_def_conflict): Likewise.
23036         (make_early_clobber_and_input_conflicts): Likewise.
23037         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
23038         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
23039         (subst_asm_stack_regs): Likewise.
23040         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
23041         * regrename.c (hide_operands, record_out_operands): Likewise.
23042         (build_def_use): Likewise.
23043         * sel-sched.c (get_reg_class): Likewise.
23044         * config/arm/arm.c (note_invalid_constants): Likewise.
23046 2014-06-04  Jason Merrill  <jason@redhat.com>
23048         PR c++/51253
23049         PR c++/61382
23050         * gimplify.c (gimplify_arg): Non-static.
23051         * gimplify.h: Declare it.
23053 2014-06-04  Richard Biener  <rguenther@suse.de>
23055         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
23056         TREE_PUBLIC and DECL_EXTERNAL decls.
23058 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
23060         * regcprop.c (copyprop_hardreg_forward_1): Account for
23061         HARD_REGNO_CALL_PART_CLOBBERED.
23063 2014-06-04  Richard Biener  <rguenther@suse.de>
23065         * configure.ac: Check whether the underlying type of int64_t
23066         is long or long long.
23067         * configure: Regenerate.
23068         * config.in: Likewise.
23069         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
23070         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23072 2014-06-04  Richard Biener  <rguenther@suse.de>
23074         PR tree-optimization/60098
23075         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
23076         we hit a kill.
23077         (dse_optimize_stmt): Simplify, now that we found a kill
23078         earlier.
23080 2014-06-04  Richard Biener  <rguenther@suse.de>
23082         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
23083         of accesses with non-invariant address.
23085 2014-06-04  Martin Liska  <mliska@suse.cz>
23087         * cgraph.h (cgraph_make_wrapper): New function introduced.
23088         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
23089         * ipa-inline.h (inline_analyze_function): The function is global.
23090         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
23092 2014-06-04  Martin Liska  <mliska@suse.cz>
23094         * tree.h (private_lookup_attribute_starting): New function.
23095         (lookup_attribute_starting): Likewise.
23096         * tree.c (private_lookup_attribute_starting): Likewise.
23098 2014-06-04  Martin Liska  <mliska@suse.cz>
23100         * cgraph.h (expand_thunk): New argument added.
23101         (address_taken_from_non_vtable_p): New global function.
23102         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
23103         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
23104         * cgraphunit.c (analyze_function): Likewise.
23105         (assemble_thunks_and_aliases): Argument added to call.
23106         (expand_thunk): New argument forces to produce GIMPLE thunk.
23108 2014-06-04  Martin Liska  <mliska@suse.cz>
23110         * coverage.h (coverage_compute_cfg_checksum): Argument added.
23111         * coverage.c (coverage_compute_cfg_checksum): Likewise.
23112         * profile.c (branch_prob): Likewise.
23114 2014-06-04  Martin Jambor  <mjambor@suse.cz>
23116         PR ipa/61340
23117         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
23118         handler for switch on an ipa_ref_use enum.
23119         * ipa-reference.c (analyze_function): Likewise.
23121 2014-06-04  Kai Tietz  <ktietz@redhat.com>
23123         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
23124         from old call-instruction.
23126 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
23128         * config/aarch64/aarch64.c (aarch64_classify_address)
23129         (aarch64_legitimize_reload_address): Support full addressing modes
23130         for vector modes.
23131         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
23132         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
23134 2014-06-03  Andrew Pinski  <apinski@cavium.com>
23136         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
23137         for OP0.
23139 2014-06-03  Andrew Pinski  <apinski@cavium.com>
23141         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
23142         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
23144 2014-06-03  Kai Tietz  <ktietz@redhat.com>
23146         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
23147         for 64-bit ms-abi.
23149 2014-06-03  Dehao Chen  <dehao@google.com>
23151         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
23152         the same loop.
23154 2014-06-03  Marek Polacek  <polacek@redhat.com>
23156         PR c/60439
23157         * doc/invoke.texi: Document -Wswitch-bool.
23158         * function.c (stack_protect_epilogue): Cast controlling expression of
23159         the switch to int.
23160         * gengtype.c (walk_type): Generate switch expression with its
23161         controlling expression cast to int.
23163 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
23165         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
23166         and attiny841.
23167         * config/avr/avr-tables.opt: Regenerate.
23168         * config/avr/t-multilib: Regenerate.
23169         * doc/avr-mmcu.texi: Regenerate.
23171 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
23172             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
23174         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
23175         (ata6617c, ata664251): Add new avr35 devices.
23176         (ata6612c): Add new avr4 device.
23177         (ata6613c, ata6614q): Add new avr5 devices.
23178         * config/avr/avr-tables.opt: Regenerate.
23179         * config/avr/t-multilib: Regenerate.
23180         * doc/avr-mmcu.texi: Regenerate.
23182 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23184         * gcc/config/aarch64/aarch64-builtins.c
23185         (aarch64_types_binop_ssu_qualifiers): New static data.
23186         (TYPES_BINOP_SSU): Define.
23187         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
23188         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
23189         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
23190         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
23191         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
23192         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
23193         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
23194         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
23195         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
23196         suffix to builtin function name, remove cast.
23197         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
23198         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
23199         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
23201 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23203         * gcc/config/aarch64/aarch64-builtins.c
23204         (aarch64_types_binop_uus_qualifiers,
23205         aarch64_types_shift_to_unsigned_qualifiers,
23206         aarch64_types_unsigned_shiftacc_qualifiers): Define.
23207         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
23208         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
23209         sqshlu_n, uqshl_n): Update qualifiers.
23210         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
23211         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
23212         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
23213         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
23214         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
23215         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
23216         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
23217         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
23218         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
23219         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
23220         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
23221         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
23222         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
23223         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
23224         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
23225         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
23226         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
23227         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
23228         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
23229         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
23230         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
23231         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
23232         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
23233         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
23234         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
23235         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
23236         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
23238 2014-06-03  Teresa Johnson  <tejohnson@google.com>
23240         * tree-sra.c (modify_function): Record caller nodes after rebuild.
23242 2014-06-02  Jason Merrill  <jason@redhat.com>
23244         PR c++/61020
23245         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
23247 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23249         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
23250         location == 0.
23252 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23254         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
23255         New pattern.
23256         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
23257         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
23258         * config/aarch64/iterators.md (REVERSE): New iterator.
23259         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
23260         (rev_op): New int_attribute.
23261         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
23262         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
23263         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
23264         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
23265         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
23266         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
23267         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
23268         Replace temporary __asm__ with __builtin_shuffle.
23270 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23272         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
23273         mips64r5.
23274         * config/mips/mips-tables.opt: Regenerate.
23275         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
23276         to use mips_isa_rev rather than ISA_MIPS32R2.
23277         * config/mips/mips.h (ISA_MIPS32R3): New define.
23278         (ISA_MIPS32R5): New define.
23279         (ISA_MIPS64R3): New define.
23280         (ISA_MIPS64R5): New define.
23281         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
23282         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
23283         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
23284         and mips64r5.
23285         (MIPS_ISA_SYNCI_SPEC): Likewise.
23286         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
23287         (LINK_SPEC): Added mips32r3 and mips32r5.
23288         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
23289         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
23290         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
23291         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
23292         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
23293         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
23294         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
23296 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23298         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
23299         options.
23300         * config/mips/mips.opt (mxpa): New option.
23301         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
23302         assembler.
23304 2014-06-03  Martin Jambor  <mjambor@suse.cz>
23306         PR ipa/61160
23307         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
23308         thunks.
23310 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23312         PR tree-optimization/61328
23313         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
23314         initialization from find_bswap_or_nop_1.
23315         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
23316         in source_expr2 before using the size value the function sets. Also
23317         make use of init_symbolic_number () in both the old place and
23318         find_bswap_or_nop_load () to avoid reading uninitialized memory when
23319         doing recursion in the GIMPLE_BINARY_RHS case.
23321 2014-06-03  Richard Biener  <rguenther@suse.de>
23323         PR tree-optimization/61383
23324         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
23325         stmts can't trap.
23327 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23329         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
23330         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
23331         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
23332         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
23333         in this file.
23334         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
23335         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
23336         * system.h: ...here and make it unconditional.
23337         * target.def (conditional_register_usage): Mention
23338         define_register_constraint instead of old-style constraint macros.
23339         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
23340         * doc/tm.texi: Regenerate.
23341         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
23342         protected by !USE_MD_CONSTRAINTS.
23343         * config/frv/frv.md: Remove quote from old version of documentation.
23344         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
23345         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
23346         CONST_DOUBLE_OK_FOR_LETTER.
23347         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
23349 2014-06-02  Andrew Pinski  <apinski@cavium.com>
23351         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
23352         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
23353         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
23354         file whose name depends on -mabi= and -mbig-endian.
23355         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
23356         Handle LP64 better and handle ilp32 too.
23357         (MULTILIB_OPTIONS): Delete.
23358         (MULTILIB_DIRNAMES): Delete.
23360 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
23362         * expr.h: Remove prototypes of functions defined in builtins.c.
23363         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
23364         Remove prototypes of functions defined in builtins.c.
23365         * builtins.h: Update prototype list to include all exported functions.
23366         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
23367         no_c99_libc_has_function): Move to targhooks.c
23368         (build_string_literal, build_call_expr_loc_array,
23369         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
23370         to tree.c.
23371         (expand_builtin_object_size, fold_builtin_object_size): Make static.
23372         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
23373         no_c99_libc_has_function): Relocate from builtins.c.
23374         * tree.c: Include builtins.h.
23375         (build_call_expr_loc_array, build_call_expr_loc_vec,
23376         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
23377         from builtins.c.
23378         * fold-const.h (fold_fma): Move prototype to builtins.h.
23379         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
23380         * asan.c: Include builtins.h.
23381         * cfgexpand.c: Likewise.
23382         * convert.c: Likewise.
23383         * emit-rtl.c: Likewise.
23384         * except.c: Likewise.
23385         * expr.c: Likewise.
23386         * fold-const.c: Likewise.
23387         * gimple-fold.c: Likewise.
23388         * gimple-ssa-strength-reduction.c: Likewise.
23389         * gimplify.c: Likewise.
23390         * ipa-inline.c: Likewise.
23391         * ipa-prop.c: Likewise.
23392         * lto-streamer-out.c: Likewise.
23393         * stmt.c: Likewise.
23394         * tree-inline.c: Likewise.
23395         * tree-object-size.c: Likewise.
23396         * tree-sra.c: Likewise.
23397         * tree-ssa-ccp.c: Likewise.
23398         * tree-ssa-forwprop.c: Likewise.
23399         * tree-ssa-loop-ivcanon.c: Likewise.
23400         * tree-ssa-loop-ivopts.c: Likewise.
23401         * tree-ssa-math-opts.c: Likewise.
23402         * tree-ssa-reassoc.c: Likewise.
23403         * tree-ssa-threadedge.c: Likewise.
23404         * tree-streamer-in.c: Likewise.
23405         * tree-vect-data-refs.c: Likewise.
23406         * tree-vect-patterns.c: Likewise.
23407         * tree-vect-stmts.c: Likewise.
23408         * config/aarch64/aarch64.c: Likewise.
23409         * config/alpha/alpha.c: Likewise.
23410         * config/arc/arc.c: Likewise.
23411         * config/arm/arm.c: Likewise.
23412         * config/avr/avr.c: Likewise.
23413         * config/bfin/bfin.c: Likewise.
23414         * config/c6x/c6x.c: Likewise.
23415         * config/cr16/cr16.c: Likewise.
23416         * config/cris/cris.c: Likewise.
23417         * config/epiphany/epiphany.c: Likewise.
23418         * config/fr30/fr30.c: Likewise.
23419         * config/frv/frv.c: Likewise.
23420         * config/h8300/h8300.c: Likewise.
23421         * config/i386/i386.c: Likewise.
23422         * config/i386/winnt.c: Likewise.
23423         * config/ia64/ia64.c: Likewise.
23424         * config/iq2000/iq2000.c: Likewise.
23425         * config/lm32/lm32.c: Likewise.
23426         * config/m32c/m32c.c: Likewise.
23427         * config/m32r/m32r.c: Likewise.
23428         * config/m68k/m68k.c: Likewise.
23429         * config/mcore/mcore.c: Likewise.
23430         * config/mep/mep.c: Likewise.
23431         * config/microblaze/microblaze.c: Likewise.
23432         * config/mips/mips.c: Likewise.
23433         * config/mmix/mmix.c: Likewise.
23434         * config/mn10300/mn10300.c: Likewise.
23435         * config/moxie/moxie.c: Likewise.
23436         * config/msp430/msp430.c: Likewise.
23437         * config/nds32/nds32.c: Likewise.
23438         * config/pa/pa.c: Likewise.
23439         * config/pdp11/pdp11.c: Likewise.
23440         * config/picochip/picochip.c: Likewise.
23441         * config/rl78/rl78.c: Likewise.
23442         * config/rs6000/rs6000.c: Likewise.
23443         * config/rx/rx.c: Likewise.
23444         * config/s390/s390.c: Likewise.
23445         * config/score/score.c: Likewise.
23446         * config/sh/sh.c: Likewise.
23447         * config/sparc/sparc.c: Likewise.
23448         * config/spu/spu.c: Likewise.
23449         * config/stormy16/stormy16.c: Likewise.
23450         * config/tilegx/tilegx.c: Likewise.
23451         * config/tilepro/tilepro.c: Likewise.
23452         * config/v850/v850.c: Likewise.
23453         * config/vax/vax.c: Likewise.
23454         * config/xtensa/xtensa.c: Likewise.
23456 2014-06-02  Jeff Law  <law@redhat.com>
23458         PR rtl-optimization/61094
23459         * ree.c (combine_reaching_defs): Do not reextend an insn if it
23460         was marked as do_no_reextend.  If a copy is needed to eliminate
23461         an extension, then mark it as do_not_reextend.
23463 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23465         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
23467 2014-06-02  Richard Henderson  <rth@redhat.com>
23469         PR target/61336
23470         * config/alpha/alpha.c (print_operand_address): Allow symbolic
23471         addresses inside asms.  Use output_operand_lossage instead of
23472         gcc_unreachable.
23474 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
23476         PR target/61239
23477         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
23478         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
23480 2014-06-02  Tom de Vries  <tom@codesourcery.com>
23482         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
23483         case that x has VOIDmode.
23485 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
23487         * varasm.c (copy_constant): Delete function.
23488         (build_constant_desc): Don't call it.
23490 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23492         PR target/61154
23493         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
23494         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
23495         with immediate_operand.
23497 2014-06-02  Andreas Schwab  <schwab@suse.de>
23499         * config/ia64/ia64.c
23500         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
23501         pending_data_specs first.
23503 2014-06-02  Richard Biener  <rguenther@suse.de>
23505         PR tree-optimization/61378
23506         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
23507         valueized_anything.
23509 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
23511         * config/i386/constraints.md (Bw): Rename from 'w'.
23512         (Bz): Rename from 'z'.
23513         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
23515 2014-06-01  Kai Tietz  <ktietz@redhat.com>
23517         PR target/61377
23518         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
23519         * config/i386/i386.md (sibcall_insn_operand): Use Bs
23520         instead of m constraint.
23522 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
23524         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
23525         a separate alternative where the scratch operand 2 is marked as
23526         early clobber.
23528 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
23530         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
23531         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
23532         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
23533         and __builtins_arm_get_fpscr.
23534         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
23535         __builtins_arm_get_fpscr.
23536         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
23537         __builtins_arm_ldfpscr.
23538         (arm_atomic_assign_expand_fenv): New function.
23539         * config/arm/vfp.md (set_fpscr): New pattern.
23540         (get_fpscr) : Likewise.
23541         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
23542         VUNSPEC_SET_FPSCR.
23543         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23544         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
23546 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
23548         * asan.c (report_error_func): Add SLOW_P argument, use
23549         BUILT_IN_ASAN_*_N if set.
23550         (build_check_stmt): Likewise.
23551         (instrument_derefs): If T has insufficient alignment,
23552         force same handling as for odd sizes.
23554         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
23555         BUILT_IN_ASAN_REPORT_STORE_N): New.
23556         * asan.c (struct asan_mem_ref): Change access_size type to
23557         HOST_WIDE_INT.
23558         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
23559         update_mem_ref_hash_table): Likewise.
23560         (asan_mem_ref_hasher::hash): Hash in a HWI.
23561         (report_error_func): Change size_in_bytes argument to HWI.
23562         Use *_N builtins if size_in_bytes is larger than 16 or not power of
23563         two.
23564         (build_shadow_mem_access): New function.
23565         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
23566         Handle size_in_bytes not power of two or larger than 16.
23567         (instrument_derefs): Don't give up if size_in_bytes is not
23568         power of two or is larger than 16.
23570 2014-05-30  Kai Tietz  <ktietz@redhat.com>
23572         PR target/60104
23573         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
23574         for sibling-tail-calls.
23575         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
23576         to its use.
23577         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
23578         (sibcall_insn_operand): Add check for sibcall_memory_operand.
23580 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23582         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
23583         * config/avr/avr-tables.opt: Regenerate.
23584         * config/avr/t-multilib: Regenerate.
23585         * doc/avr-mmcu.texi: Regenerate.
23587 2014-05-30  Ian Lance Taylor  <iant@google.com>
23589         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
23590         target("sse").
23592 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23594         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23595         Redefine as true.
23597 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23599         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23600         * lra.c (initialize_lra_reg_info_element): Add init of
23601         actual_call_used_reg_set field.
23602         (lra): Call lra_create_live_ranges before lra_inheritance for
23603         -fuse-caller-save.
23604         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23605         -fuse-caller-save.
23606         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
23607         instead of call_used_reg_set for -fuse-caller-save.
23608         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23610 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23612         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
23613         to mov_imm.
23614         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
23616 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
23618         * ira.c (ira_get_dup_out_num): Check for output operands at
23619         the start of the loop.  Handle cases where an included alternative
23620         follows an excluded one.
23622 2014-05-29  Mike Stump  <mikestump@comcast.net>
23624         PR debug/61352
23625         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23626         post ld passes when lto is used.
23628 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
23630         PR rtl-optimization/61325
23631         * lra-constraints.c (process_address): Rename to process_address_1.
23632         (process_address): New function.
23634 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
23636         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23637         TYPES_BINOPV): New static data.
23638         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23639         New builtin.
23640         * config/aarch64/aarch64-simd.md (aarch64_ext,
23641         aarch64_im_lane_boundsi): New patterns.
23642         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23643         patterns for EXT.
23644         (aarch64_evpc_ext): New function.
23646         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23648         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23649         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23650         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23651         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23652         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23654 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23656         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23658 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
23659             Richard Sandiford  <rdsandiford@googlemail.com>
23661         * arm/iterators.md (shiftable_ops): New code iterator.
23662         (t2_binop0, arith_shift_insn): New code attributes.
23663         * arm/predicates.md (shift_nomul_operator): New predicate.
23664         * arm/arm.md (insn_enabled): Delete.
23665         (enabled): Remove insn_enabled test.
23666         (*arith_shiftsi): Delete.  Replace with ...
23667         (*<arith_shift_insn>_multsi): ... new pattern.
23668         (*<arith_shift_insn>_shiftsi): ... new pattern.
23669         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23671 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
23672             Tom de Vries  <tom@codesourcery.com>
23674         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23675         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23676         clobber.
23677         (mips_split_call): Use POST_CALL_TMP_REG.
23678         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23680 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23682         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23683         with #ifdef STACK_REGS.
23685 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
23687         * varasm.c (get_variable_section): Walk aliases.
23688         (place_block_symbol): Walk aliases.
23690 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23692         Revert:
23693         2014-05-28  Tom de Vries  <tom@codesourcery.com>
23695         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23696         * lra.c (initialize_lra_reg_info_element): Add init of
23697         actual_call_used_reg_set field.
23698         (lra): Call lra_create_live_ranges before lra_inheritance for
23699         -fuse-caller-save.
23700         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23701         -fuse-caller-save.
23702         * lra-constraints.c (need_for_call_save_p): Use
23703         actual_call_used_reg_set instead of call_used_reg_set for
23704         -fuse-caller-save.
23705         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23707 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23709         * doc/md.texi: Document that the % constraint character must
23710         be at the beginning of the string.
23711         * genoutput.c (validate_insn_alternatives): Check that '=',
23712         '+' and '%' only appear at the beginning of a constraint.
23713         * ira.c (commutative_constraint_p): Delete.
23714         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23715         at the start of the string.
23716         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23717         duplicate '='s.
23718         * config/arm/neon.md (bicdi3_neon): Likewise.
23719         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23720         (slt_si, sltu_si): Likewise.
23721         * config/vax/vax.md (sbcdi3): Likewise.
23722         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23723         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23724         (mul64): Move '%' to beginning of constraint.
23725         * config/arm/arm.md (*xordi3_insn): Likewise.
23726         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23727         (xorsi3): Likewise.
23729 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23731         * doc/md.texi: Document the restrictions on the "enabled" attribute.
23733 2014-05-28  Jason Merrill  <jason@redhat.com>
23735         PR c++/47202
23736         * cgraph.h (symtab_node::get_comdat_group_id): New.
23737         * cgraphunit.c (analyze_functions): Call it.
23738         * symtab.c (dump_symtab_node): Likewise.
23739         * tree.c (decl_comdat_group_id): New.
23740         * tree.h: Declare it.
23741         * lto-streamer-out.c (write_symbol): Use it.
23742         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23744 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23746         PR bootstrap/PR61146
23747         * wide-int.cc: Do not include longlong.h when compiling with clang.
23749 2014-05-28  Richard Biener  <rguenther@suse.de>
23751         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23752         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23753         (vrp_visit_assignment_or_call): Print less vertical space.
23754         (vrp_visit_stmt): Likewise.
23755         (vrp_visit_phi_node): Likewise.  For a PHI argument with
23756         VR_VARYING range consider recording it as copy.
23758 2014-05-28  Richard Biener  <rguenther@suse.de>
23760         Revert
23761         2014-05-28  Richard Biener  <rguenther@suse.de>
23763         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23765 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23767         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23768         sufficiently aligned and an offset is used at the same time.
23769         (expand_expr_real_1): Likewise.
23771 2014-05-28  Richard Biener  <rguenther@suse.de>
23773         PR middle-end/61045
23774         * fold-const.c (fold_comparison): When folding
23775         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23776         the sign of the remaining constant operand stays the same.
23778 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
23780         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23781         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23782         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23783         to the assembler.
23784         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23785         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23786         (m32bit-doubles) Likewise.
23787         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23788         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23789         option for RL78.
23791 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23793         * configure.ac ($gcc_cv_ld_clearcap): New test.
23794         * configure: Regenerate.
23795         * config.in: Regenerate.
23796         * config/sol2.opt (mclear-hwcap): New option.
23797         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23798         * config/sol2-clearcap.map: Moved here from
23799         testsuite/gcc.target/i386/clearcap.map.
23800         * config/sol2-clearcapv2.map: Move here from
23801         gcc.target/i386/clearcapv2.map.
23802         * config/t-sol2 (install): Depend on install-clearcap-map.
23803         (install-clearcap-map): New target.
23804         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23805         -mclear-hwcap.
23807 2014-05-28  Richard Biener  <rguenther@suse.de>
23809         * hwint.h (*_HALF_WIDE_INT*): Move to ...
23810         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23811         ... here and remove the rest.
23812         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23814 2014-05-28  Richard Biener  <rguenther@suse.de>
23816         PR tree-optimization/61335
23817         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23818         new range fails, drop to varying.
23820 2014-05-28  Olivier Hainque  <hainque@adacore.com>
23822         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23823         (CPP_SPEC): Add entry for -mcpu=8548.
23824         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23825         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23827 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23829         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23830         * lra.c (initialize_lra_reg_info_element): Add init of
23831         actual_call_used_reg_set field.
23832         (lra): Call lra_create_live_ranges before lra_inheritance for
23833         -fuse-caller-save.
23834         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23835         -fuse-caller-save.
23836         * lra-constraints.c (need_for_call_save_p): Use
23837         actual_call_used_reg_set instead of call_used_reg_set for
23838         -fuse-caller-save.
23839         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23841 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23842             Tom de Vries  <tom@codesourcery.com>
23844         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23845         to gccoptlist.
23846         (@item -fuse-caller-save): New item.
23848 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23849             Tom de Vries  <tom@codesourcery.com>
23851         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23852         OPT_fuse_caller_save.
23854 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23855             Tom de Vries  <tom@codesourcery.com>
23857         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23858         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23859         get_call_reg_set_usage.
23860         * resource.c (mark_set_resources, mark_target_live_regs): Use
23861         get_call_reg_set_usage.
23862         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23863         field.
23864         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23865         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23866         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23867         * ira-build.c (ira_create_allocno): Init
23868         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23869         (create_cap_allocno, propagate_allocno_info)
23870         (propagate_some_info_from_allocno)
23871         (copy_info_to_removed_store_destinations): Handle
23872         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23873         * ira-costs.c (ira_tune_allocno_costs): Use
23874         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23876 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23877             Tom de Vries  <tom@codesourcery.com>
23879         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23880         and function_used_regs_valid fields.
23881         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23882         find_all_hard_reg_sets.
23883         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23884         (get_call_reg_set_usage): New function.
23885         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23886         * regs.h (get_call_reg_set_usage): Declare.
23888 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23890         PR libgcc/61152
23891         * config/dbx.h (License): Add Runtime Library Exception.
23892         * config/newlib-stdint.h (License): Same.
23893         * config/rtems.h (License): Same
23894         * config/initfini-array.h (License): Same
23895         * config/v850/v850.h (License): Same.
23896         * config/v850/v850-opts.h (License): Same
23897         * config/v850/rtems.h (License): Same.
23899 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23901         PR target/61044
23902         * doc/extend.texi (Local Labels): Note that label differences are
23903         not supported for AVR.
23905 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23906             Olivier Hainque  <hainque@adacore.com>
23908         * rtl.h (set_for_reg_notes): Declare.
23909         * emit-rtl.c (set_for_reg_notes): New function.
23910         (set_unique_reg_note): Use it.
23911         * optabs.c (add_equal_note): Likewise
23913 2014-05-27  Andrew Pinski  <apinski@cavium.com>
23915         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23916         Use <w> for the register in assembly template.
23917         (stack_protect_test): Use the mode of operands[0] for the result.
23918         (stack_protect_test_<mode>): Use <w> for the register
23919         in assembly template.
23921 2014-05-27  DJ Delorie  <dj@redhat.com>
23923         * config/rx/rx.c (add_vector_labels): New.
23924         (rx_output_function_prologue): Call it.
23925         (rx_handle_func_attribute): Don't require empty arguments.
23926         (rx_handle_vector_attribute): New.
23927         (rx_attribute_table): Add "vector" attribute.
23928         * doc/extend.texi (interrupt, vector): Document new/changed
23929         RX-specific attributes.
23931         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23933 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23935         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23936         predicate to detect a negative quotient.
23938 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23940         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23941         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23942         Add X - Y CMP 0 to X CMP Y transformation.
23943         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23945 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
23947         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23948         before printing.
23950 2014-05-27  Steve Ellcey  <sellcey@mips.com>
23952         * config/mips/mips.c: Add include of cgraph.h.
23954 2014-05-27  Richard Biener  <rguenther@suse.de>
23956         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23958 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23960         PR libgcc/61152
23961         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23962         * config/arm/arm-cores.def (License): Same.
23963         * config/arm/arm-opts.h (License): Same.
23964         * config/arm/aout.h (License): Same.
23965         * config/arm/bpabi.h (License): Same.
23966         * config/arm/elf.h (License): Same.
23967         * config/arm/linux-elf.h (License): Same.
23968         * config/arm/linux-gas.h (License): Same.
23969         * config/arm/netbsd-elf.h (License): Same.
23970         * config/arm/uclinux-eabi.h (License): Same.
23971         * config/arm/uclinux-elf.h (License): Same.
23972         * config/arm/vxworks.h (License): Same.
23974 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23976         * config/arm/neon.md (neon_bswap<mode>): New pattern.
23977         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23978         (arm_init_neon_builtins): Handle NEON_BSWAP.
23979         Define required type nodes.
23980         (arm_expand_neon_builtin): Handle NEON_BSWAP.
23981         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23982         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23983         * config/arm/iterators.md (VDQHSD): New mode iterator.
23985 2014-05-27  Richard Biener  <rguenther@suse.de>
23987         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23988         Try using literal operands when comparing value-ranges failed.
23990 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23992         * ira.c (commutative_operand): Adjust for change to recog_data.
23993         [Missing from previous commit.]
23995 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23997         * system.h (TEST_BIT): New macro.
23998         * recog.h (alternative_mask): New type.
23999         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
24000         (recog_data_d): Replace alternative_enabled_p array with
24001         enabled_alternatives.
24002         (target_recog): New structure.
24003         (default_target_recog, this_target_recog): Declare.
24004         (get_enabled_alternatives, recog_init): Likewise.
24005         * recog.c (default_target_recog, this_target_recog): New variables.
24006         (get_enabled_alternatives): New function.
24007         (extract_insn): Use it.
24008         (recog_init): New function.
24009         (preprocess_constraints, constrain_operands): Adjust for change to
24010         recog_data.
24011         * postreload.c (reload_cse_simplify_operands): Likewise.
24012         * reload.c (find_reloads): Likewise.
24013         * ira-costs.c (record_reg_classes): Likewise.
24014         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
24015         all alternatives after a disabled one would be skipped.
24016         (ira_implicitly_set_insn_hard_regs): Likewise.
24017         * ira.c (ira_setup_alts): Adjust for change to recog_data.
24018         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
24019         with enabled_alternatives.
24020         * lra.c (free_insn_recog_data): Update accordingly.
24021         (lra_update_insn_recog_data): Likewise.
24022         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
24023         * lra-constraints.c (process_alt_operands): Likewise.  Handle
24024         only_alternative as part of the enabled mask.
24025         * target-globals.h (this_target_recog): Declare.
24026         (target_globals): Add a recog field.
24027         (restore_target_globals): Restore this_target_recog.
24028         * target-globals.c: Include recog.h.
24029         (default_target_globals): Initialize recog field.
24030         (save_target_globals): Likewise.
24031         * reginfo.c (reinit_regs): Call recog_init.
24032         * toplev.c (backend_init_target): Likewise.
24034 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
24036         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
24037         rather than any named insn's code.
24039 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
24041         PR libgcc/61152
24042         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
24043         * config/arm/arm-cores.def (License): Same.
24045 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
24047         * tree.h (decl_comdat_group): Declare.
24048         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
24049         * tree.c (decl_comdat_group): Here.
24051 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
24053         PR rtl-optimization/61222
24054         * combine.c (simplify_shift_const_1): When moving a PLUS outside
24055         the shift, truncate the PLUS operand to the result mode.
24057 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
24059         PR target/61271
24060         * config/i386/i386.c (ix86_rtx_costs)
24061         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
24062         Fix condition.
24064 2014-05-26  Martin Jambor  <mjambor@suse.cz>
24066         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
24067         subreg uses.
24069 2014-05-26  Richard Biener  <rguenther@suse.de>
24071         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
24072         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
24073         Provide specializations.
24074         (wi::int_traits <HOST_WIDE_INT>,
24075         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
24077 2014-05-26  Alan Modra  <amodra@gmail.com>
24079         PR target/61098
24080         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
24081         params and return a bool.  Remove dead code.  Update comment.
24082         Assert we have a const_int source.  Remove bogus code from
24083         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
24084         handling of constants > 2G and reg_equal note, from..
24085         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
24086         return value.  Update comment.  If we can, use a new pseudo
24087         for intermediate calculations.
24088         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
24089         prototype.
24090         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
24091         call to rs6000_emit_set_const in splitter.
24092         (movdi_internal64+2, +3): Likewise.
24094 2014-05-26  Richard Biener  <rguenther@suse.de>
24096         * system.h: Define __STDC_FORMAT_MACROS before
24097         including inttypes.h.
24098         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
24099         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
24100         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
24101         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
24102         HOST_WIDEST_INT_C): Remove.
24103         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
24104         if C99 inttypes.h is not available.
24105         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
24106         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
24107         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
24108         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
24109         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
24110         (struct output_info): Likewise.
24111         (print_statistics): Adjust.
24112         (dump_bitmap_statistics): Likewise.
24113         * bt-load.c (migrate_btr_defs): Print with PRId64.
24114         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
24115         (MAX_SAFE_MULTIPLIER): Adjust.
24116         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
24117         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
24118         dump_cgraph_node): Likewise.
24119         * final.c (dump_basic_block_info): Likewise.
24120         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
24121         * gcov.c (format_gcov): Likewise.
24122         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
24123         for calculation.
24124         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
24125         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
24126         (inline_small_functions, dump_overall_stats, dump_inline_stats):
24127         Use PRId64 for dumping.
24128         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
24129         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
24130         (add_allocno_hard_regs): Adjust.
24131         * loop-doloop.c (doloop_modify): Print using PRId64.
24132         * loop-iv.c (inverse): Compute in uint64_t.
24133         (determine_max_iter, iv_number_of_iterations): Likewise.
24134         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
24135         Print using PRId64.
24136         * lto-streamer-out.c (write_symbol): Use uint64_t.
24137         * mcf.c (CAP_INFINITY): Use int64_t maximum.
24138         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
24139         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
24140         * modulo-sched.c (const_iteration_count): Use int64_t.
24141         (sms_schedule): Dump using PRId64.
24142         * predict.c (dump_prediction): Likewise.
24143         * pretty-print.h (pp_widest_integer): Remove.
24144         * profile.c (get_working_sets, is_edge_inconsistent,
24145         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
24146         * tree-pretty-print.c (pp_double_int): Remove case handling
24147         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
24148         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
24149         and adjust users.
24150         (pass_optimize_bswap::execute): Remove restriction on hosts.
24151         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
24152         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
24153         * tree.c (widest_int_cst_value): Remove.
24154         * tree.h (widest_int_cst_value): Likewise.
24155         * value-prof.c (dump_histogram_value): Print using PRId64.
24156         * gengtype.c (main): Also inject int64_t.
24157         * ggc-page.c (struct max_alignment): Use int64_t.
24158         * alloc-pool.c (struct allocation_object_def): Likewise.
24159         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
24160         for computation.
24161         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
24162         * doc/tm.texi: Regenerated.
24163         * gengtype-lex.l (IWORD): Handle [u]int64_t.
24164         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
24165         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
24166         mmix_output_register_setting): Use [u]int64_t in prototypes.
24167         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
24168         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
24169         mmix_output_octa, mmix_output_shifted_value): Adjust.
24170         (mmix_intval): Adjust.  Remove unreachable case.
24171         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
24173 2014-05-26  Richard Biener  <rguenther@suse.de>
24175         * configure.ac: Drop __int64 type check.  Insist that we
24176         found uint64_t and int64_t.
24177         * hwint.h (HOST_BITS_PER___INT64): Remove.
24178         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
24179         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
24180         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
24181         (HOST_WIDEST_FAST_INT): Remove __int64 case.
24182         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
24183         for dst_q_src_df_rms_cdt.
24184         * configure: Regenerate.
24185         * config.in: Likewise.
24187 2014-05-26  Michael Tautschnig  <mt@debian.org>
24189         PR target/61249
24190         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
24191         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
24193 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24195         PR rtl-optimization/61278
24196         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
24198 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24200         PR rtl-optimization/61220
24201         Part of PR rtl-optimization/61225
24202         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
24203         insn; skip split_edge for a block with only one successor.
24205 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24207         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
24208         for variables.
24210 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24212         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
24213         (update_vtable_references): New function.
24214         (function_and_variable_visibility): Rewrite also vtable initializers.
24215         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
24217 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24219         * ggc.h (ggc_grow): New function.
24220         * ggc-none.c (ggc_grow): New function.
24221         * ggc-page.c (ggc_grow): Likewise.
24223 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24225         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24226         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
24227         comdat_can_be_unshared_p, cgraph_externally_visible_p,
24228         varpool_externally_visible_p, can_replace_by_local_alias,
24229         update_visibility_by_resolution_info, function_and_variable_visibility,
24230         pass_data_ipa_function_and_variable_visibility,
24231         make_pass_ipa_function_and_variable_visibility,
24232         whole_program_function_and_variable_visibility,
24233         pass_data_ipa_whole_program_visibility,
24234         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
24235         * cgraph.h (cgraph_local_node_p): Declare.
24236         * ipa-visibility.c: New file.
24237         * Makefile.in (OBJS): Add ipa-visiblity.o
24239 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24241         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
24242         that var decl is available.
24244 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24246         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
24247         symtab_node pointer.
24248         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
24249         (find_decls_types_r): Do not walk COMDAT_GROUP.
24250         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
24251         * varasm.c (make_decl_one_only): Use set_comdat_group;
24252         create node if needed.
24253         * ipa-inline-transform.c (save_inline_function_body): Update
24254         way we decl->symtab mapping.
24255         * symtab.c (symtab_hash, hash_node, eq_node
24256         symtab_insert_node_to_hashtable): Remove.
24257         (symtab_register_node): Update.
24258         (symtab_unregister_node): Update.
24259         (symtab_get_node): Reimplement as inline function.
24260         (symtab_add_to_same_comdat_group): Update.
24261         (symtab_dissolve_same_comdat_group_list): Update.
24262         (dump_symtab_base): Update.
24263         (verify_symtab_base): Update.
24264         (symtab_make_decl_local): Update.
24265         (fixup_same_cpp_alias_visibility): Update.
24266         (symtab_nonoverwritable_alias): Update.
24267         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
24268         * ipa.c (update_visibility_by_resolution_info): UPdate.
24269         * bb-reorder.c: Include cgraph.h
24270         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
24271         with comdat groups.
24272         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
24273         * cgraph.c (cgraph_get_create_node): Update.
24274         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
24275         and comdat_group_.
24276         (symtab_get_node): Make inline.
24277         (symtab_insert_node_to_hashtable): Remove.
24278         (symtab_can_be_discarded): Update.
24279         (decl_comdat_group): New function.
24280         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
24281         Update.
24282         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
24283         comdat group name.
24284         (read_comdat_group): New function.
24285         (input_node, input_varpool_node): Use it.
24286         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
24287         comdat groups.
24288         * mips.c (mips_start_unique_function): Likewise.
24289         (ix86_code_end): Likewise.
24290         (rs6000_code_end): Likweise.
24291         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
24293 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24295         * gengtype-state.c (fatal_reading_state): Bring offline.
24296         * optabs.c (widening_optab_handler): Bring offline.
24297         * optabs.h (widening_optab_handler): Likewise.
24298         * final.c (get_attr_length_1): Likewise.
24300 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24302         * sched-int.h (sd_iterator_cond): Manually tail recurse.
24304 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24306         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
24307         (ppc440-compare): Include shift with dot.
24308         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
24309         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
24310         without dot.
24311         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
24312         without dot.
24313         (e6500_sfx2): Include it.
24314         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
24315         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
24316         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
24317         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
24318         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
24319         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
24320         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
24321         *lshiftrt_internal1le, *lshiftrt_internal1be,
24322         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
24323         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
24324         *rotldi3_internal10le, *rotldi3_internal10be,
24325         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
24326         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
24327         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
24328         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
24329         define_insns): Use type "shift" in the appropriate alternatives.
24331 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24333         * config/rs6000/rs6000.md (type): Add "logical".  Delete
24334         "fast_compare".
24335         (dot): Adjust comment.
24336         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
24337         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
24338         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
24339         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
24340         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
24341         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
24342         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
24343         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24345         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24346         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24347         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24348         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24349         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24350         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24351         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24352         * config/rs6000/8540.md (ppc8540_su): Adjust.
24353         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24354         cell-cmp-microcoded): Adjust.
24355         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24356         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24357         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24358         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24359         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24360         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24361         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24362         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24363         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24364         Adjust.
24365         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24366         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
24367         Adjust.  Adjust comment.
24368         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24369         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24371 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24373         * config/rs6000/rs6000.md (type): Add "add".
24374         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
24375         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
24376         define_insns): Use it.
24377         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24379         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24380         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24381         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24382         * config/rs6000/601.md (ppc601-integer): Adjust.
24383         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24384         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24385         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24386         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24387         * config/rs6000/8540.md (ppc8540_su): Adjust.
24388         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24389         cell-cmp-microcoded): Adjust.
24390         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24391         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24392         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24393         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24394         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24395         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24396         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24397         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24398         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24399         Adjust.
24400         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24401         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
24402         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24403         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24405 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24407         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
24408         "delayed_compare", "var_delayed_compare".
24409         (var_shift): New attribute.
24410         (cell_micro): Adjust.
24411         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
24412         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
24413         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
24414         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
24415         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
24416         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
24417         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
24418         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
24419         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
24420         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24421         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
24422         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
24423         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
24424         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
24425         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
24426         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
24427         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
24428         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
24429         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
24430         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
24431         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
24432         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
24433         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
24434         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24435         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24437         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24438         * config/rs6000/440.md (ppc440-integer): Adjust.
24439         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24440         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
24441         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24442         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24443         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24444         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24445         * config/rs6000/8540.md (ppc8540_su): Adjust.
24446         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24447         cell-cmp-microcoded): Adjust.
24448         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
24449         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24450         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
24451         e500mc64_delayed): Adjust.
24452         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
24453         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
24454         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24455         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
24456         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
24457         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
24458         power6-delayed-compare, power6-var-delayed-compare): Adjust.
24459         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
24460         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
24461         Adjust comment.
24462         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24463         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24465 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24467         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
24468         (bits): New mode_attr.
24469         (idiv_ldiv): Delete mode_attr.
24470         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
24471         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24472         rs6000_adjust_priority, is_nonpipeline_insn,
24473         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24475         * config/rs6000/40x.md (ppc403-idiv): Adjust.
24476         * config/rs6000/440.md (ppc440-idiv): Adjust.
24477         * config/rs6000/476.md (ppc476-idiv): Adjust.
24478         * config/rs6000/601.md (ppc601-idiv): Adjust.
24479         * config/rs6000/603.md (ppc603-idiv): Adjust.
24480         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
24481         ppc620-ldiv): Adjust.
24482         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
24483         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
24484         * config/rs6000/8540.md (ppc8540_divide): Adjust.
24485         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
24486         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
24487         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
24488         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
24489         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
24490         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
24491         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
24492         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
24493         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
24494         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
24495         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
24496         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
24497         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
24498         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
24499         * config/rs6000/titan.md (titan_fxu_div): Adjust.
24501 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24503         * config/rs6000/rs6000.md (type): Delete "insert_word",
24504         "insert_dword".  Add "insert".
24505         (size): Update comment.
24506         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24507         insn_must_be_first_in_group): Adjust.
24508         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
24509         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
24510         *insvsi_internal6, insvdi_internal): Adjust.
24512         * config/rs6000/40x.md (ppc403-integer): Adjust.
24513         * config/rs6000/440.md (ppc440-integer): Adjust.
24514         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
24515         * config/rs6000/601.md (ppc601-integer): Adjust.
24516         * config/rs6000/603.md (ppc603-integer): Adjust.
24517         * config/rs6000/6xx.md (ppc604-integer): Adjust.
24518         * config/rs6000/7450.md (ppc7450-integer): Adjust.
24519         * config/rs6000/7xx.md (ppc750-integer): Adjust.
24520         * config/rs6000/8540.md (ppc8540_su): Adjust.
24521         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
24522         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
24523         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24524         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
24525         * config/rs6000/e5500.md (e5500_sfx): Adjust.
24526         * config/rs6000/e6500.md (e6500_sfx): Adjust.
24527         * config/rs6000/mpc.md (mpccore-integer): Adjust.
24528         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
24529         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
24530         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
24531         * config/rs6000/power7.md (power7-integer): Adjust.
24532         * config/rs6000/power8.md (power8-1cyc): Adjust.
24533         * config/rs6000/rs64.md (rs64a-integer): Adjust.
24534         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24536 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24538         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
24539         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
24540         (size): New attribute.
24541         (dot): New attribute.
24542         (cell_micro): Adjust.
24543         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
24544         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
24545         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
24546         umuldi3_highpart): Adjust.
24547         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24548         rs6000_adjust_priority, is_nonpipeline_insn,
24549         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24551         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
24552         ppc405-imul3): Adjust.
24553         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
24554         * config/rs6000/476.md (ppc476-imul): Adjust.
24555         * config/rs6000/601.md (ppc601-imul): Adjust.
24556         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
24557         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
24558         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
24559         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
24560         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
24561         Adjust.
24562         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
24563         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
24564         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
24565         cell-imul): Adjust.
24566         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
24567         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
24568         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
24569         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
24570         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
24571         * config/rs6000/mpc.md (mpccore-imul): Adjust.
24572         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
24573         power4-lmul, power4-imul, power4-imul3): Adjust.
24574         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
24575         power5-lmul, power5-imul, power5-imul3): Adjust.
24576         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
24577         power6-lmul, power6-imul, power6-imul3): Adjust.
24578         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
24579         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
24581         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
24582         rs64a-lmul): Adjust.
24583         * config/rs6000/titan.md (titan_imul): Adjust.
24585 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24587         * config/rs6000/rs6000.md (type): Add new value "halfmul".
24588         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
24589         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
24590         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
24591         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
24592         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
24593         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
24594         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
24595         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
24596         * config/rs6000/titan.md: Delete nonsensical comment.
24597         (titan_imul): Add type imul3.
24598         (titan_mulhw): Remove type imul3; add type halfmul.
24600 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24602         * config/rs6000/rs6000.md (type): Reorder, reformat.
24604 2014-05-23  Martin Jambor  <mjambor@suse.cz>
24606         PR tree-optimization/53787
24607         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
24608         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
24609         analysis_done, update all uses.
24610         * ipa-prop.c: Include domwalk.h
24611         (param_analysis_info): Removed.
24612         (param_aa_status): New type.
24613         (ipa_bb_info): Likewise.
24614         (func_body_info): Likewise.
24615         (ipa_get_bb_info): New function.
24616         (aa_overwalked): Likewise.
24617         (find_dominating_aa_status): Likewise.
24618         (parm_bb_aa_status_for_bb): Likewise.
24619         (parm_preserved_before_stmt_p): Changed to use new param AA info.
24620         (load_from_unmodified_param): Accept func_body_info as a parameter
24621         instead of parms_ainfo.
24622         (parm_ref_data_preserved_p): Changed to use new param AA info.
24623         (parm_ref_data_pass_through_p): Likewise.
24624         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
24625         (compute_complex_assign_jump_func): Changed to use new param AA info.
24626         (compute_complex_ancestor_jump_func): Likewise.
24627         (ipa_compute_jump_functions_for_edge): Likewise.
24628         (ipa_compute_jump_functions): Removed.
24629         (ipa_compute_jump_functions_for_bb): New function.
24630         (ipa_analyze_indirect_call_uses): Likewise, moved variable
24631         declarations down.
24632         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24633         and info, moved variable declarations down.
24634         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24635         node and info.
24636         (ipa_analyze_stmt_uses): Likewise.
24637         (ipa_analyze_params_uses): Removed.
24638         (ipa_analyze_params_uses_in_bb): New function.
24639         (ipa_analyze_controlled_uses): Likewise.
24640         (free_ipa_bb_info): Likewise.
24641         (analysis_dom_walker): New class.
24642         (ipa_analyze_node): Handle node-specific forbidden analysis,
24643         initialize and free func_body_info, use dominator walker.
24644         (ipcp_modif_dom_walker): New class.
24645         (ipcp_transform_function): Create and free func_body_info, use
24646         ipcp_modif_dom_walker, moved a lot of functionality there.
24648 2014-05-23  Marek Polacek  <polacek@redhat.com>
24649             Jakub Jelinek  <jakub@redhat.com>
24651         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24652         * gcc.c (sanitize_spec_function): Likewise.
24653         * convert.c (convert_to_integer): Include "ubsan.h".  Add
24654         floating-point to integer instrumentation.
24655         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24656         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24657         SANITIZE_NONDEFAULT.
24658         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24659         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24660         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24661         * ubsan.c: Include "realmpfr.h" and "dfp.h".
24662         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24663         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24664         float/double/long double.
24665         (ubsan_instrument_float_cast): New function.
24666         * ubsan.h (ubsan_instrument_float_cast): Declare.
24668 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
24670         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24671         predicate.
24672         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
24673         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24674         Adjust for tailcalling through registers.
24675         * config/aarch64/aarch64.h (enum reg_class): New caller save
24676         register class.
24677         (REG_CLASS_NAMES): Likewise.
24678         (REG_CLASS_CONTENTS): Likewise.
24679         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24680         Allow tailcalling without decls.
24682 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24684         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24685         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24687         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24688         gsi, and variables v_* to v*.
24690 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
24692         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24694 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24696         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24697         * omp-low.c: Update accordingly.
24699         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24700         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24701         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24702         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24703         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24704         GF_OMP_TARGET_KIND_UPDATE.
24706         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24707         Explicitly enumerate the expected region types.
24709 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
24711         PR other/56955
24712         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
24713         documentation; the old documentation didn't clearly state the
24714         constraints on the contents of the pointed-to storage.
24716 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24718         Fix bootstrap error on ia64
24719         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24720         Return default value.
24722 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24724         PR tree-optimization/54733
24725         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24726         (CMPNOP): Define.
24727         (find_bswap_or_nop_load): New.
24728         (find_bswap_1): Renamed to ...
24729         (find_bswap_or_nop_1): This. Also add support for memory source.
24730         (find_bswap): Renamed to ...
24731         (find_bswap_or_nop): This. Also add support for memory source and
24732         detection of bitwise operations equivalent to load in target
24733         endianness.
24734         (execute_optimize_bswap): Likewise. Also move its leading comment back
24735         in place and split statement transformation into ...
24736         (bswap_replace): This.
24738 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24740         PR rtl-optimization/61215
24741         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24742         simplify_gen_subreg until final substitution.
24744 2014-05-23  Alan Modra  <amodra@gmail.com>
24746         PR target/61231
24747         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24748         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24749         Use "Y" constraint rather than "m".
24751 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24753         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24754         define.
24755         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24756         New function declaration.
24757         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24758         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24759         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24760         (aarch64_init_builtins) : Initialize builtins
24761         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24762         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24763         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24764         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24765         and __builtins_aarch64_set_fpsr.
24766         (aarch64_atomic_assign_expand_fenv): New function.
24767         * config/aarch64/aarch64.md (set_fpcr): New pattern.
24768         (get_fpcr) : Likewise.
24769         (set_fpsr) : Likewise.
24770         (get_fpsr) : Likewise.
24771         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24772         and UNSPECV_SET_FPSR.
24773         * doc/extend.texi (AARCH64 Built-in Functions) : Document
24774         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24775         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24777 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24779         PR rtl-optimization/60969
24780         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24781         constraints.  Set up mem cost for NO_REGS case.
24783 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
24785         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24787 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
24789         * config/darwin.c: Include "lto-section-names.h".
24790         (LTO_SEGMENT_NAME): Don't define.
24791         * config/i386/winnt.c: Include "lto-section-names.h".
24792         * lto-streamer.c: Include "lto-section-names.h".
24793         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24794         * lto-wrapper.c: Include "lto-section-names.h".
24795         (LTO_SECTION_NAME_PREFIX): Don't define.
24796         * lto-section-names.h: New file.
24797         * cgraphunit.c: Include "lto-section-names.h".
24799 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
24801         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24803 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
24805         PR target/61208
24806         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24808 2014-05-22  Nick Clifton  <nickc@redhat.com>
24810         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24812 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24814         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24815         -> (T)A transformation to integer types.
24817 2014-05-22  Teresa Johnson  <tejohnson@google.com>
24819         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24820         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24821         (gcov_rewrite): Use gcov_nonruntime_assert.
24822         (gcov_open): Ditto.
24823         (gcov_write_words): Ditto.
24824         (gcov_write_length): Ditto.
24825         (gcov_read_words): Use gcov_nonruntime_assert, and remove
24826         gcc_assert from IN_LIBGCOV code.
24827         (gcov_read_summary): Use gcov_error to flag profile corruption.
24828         (gcov_sync): Use gcov_nonruntime_assert.
24829         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24830         (gcov_histo_index): Use gcov_nonruntime_assert.
24831         (static void gcov_histogram_merge): Ditto.
24832         (compute_working_sets): Ditto.
24833         * gcov-io.h (gcov_nonruntime_assert): Define.
24834         (gcov_error): Define for !IN_LIBGCOV
24836 2014-05-22  Richard Biener  <rguenther@suse.de>
24838         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24839         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24840         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24841         and deallocation site.
24842         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24843         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24844         passing through the incoming points-to set.
24845         (handle_lhs_call): Use flags argument instead of recomputing it.
24846         (find_func_aliases_for_call): Call handle_lhs_call with proper
24847         call return flags.
24849 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
24851         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24852         all padding bits in REAL_VALUE_TYPE are cleared.
24854 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24856         Cleanup and improve multipass_dfa_lookahead_guard
24857         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24858         (core2i7_first_cycle_multipass_begin,)
24859         (core2i7_first_cycle_multipass_issue,)
24860         (core2i7_first_cycle_multipass_backtrack): Update signature.
24861         * config/ia64/ia64.c
24862         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24863         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24864         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24865         hook definition.
24866         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24867         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
24868         values.
24869         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24870         return values.
24871         * doc/tm.texi: Regenerate.
24872         * doc/tm.texi.in
24873         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24874         * haifa-sched.c (ready_try): Make signed to allow negative values.
24875         (rebug_ready_list_1): Update.
24876         (choose_ready): Simplify.
24877         (sched_extend_ready_list): Update.
24879 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24881         Remove IA64 speculation tweaking flags
24882         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24883         speculation tuning flags.
24884         (msched-prefer-non-data-spec-insns,)
24885         (msched-prefer-non-control-spec-insns): Obsolete options.
24886         * haifa-sched.c (choose_ready): Remove handling of
24887         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24888         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24889         and PREFER_NON_DATA_SPEC.
24890         * sel-sched.c (process_spec_exprs): Remove handling of
24891         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24893 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24895         Improve scheduling debug output
24896         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24897         (advance_one_cycle): Update.
24898         (schedule_insn, queue_to_ready): Add debug printouts.
24899         (debug_ready_list_1): New static function.
24900         (debug_ready_list): Update.
24901         (max_issue): Add debug printouts.
24902         (dump_insn_stream): New static function.
24903         (schedule_block): Use it.  Also better indent printouts.
24905 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24907         Fix sched_insn debug counter
24908         * haifa-sched.c (schedule_insn): Update.
24909         (struct haifa_saved_data): Add nonscheduled_insns_begin.
24910         (save_backtrack_point, restore_backtrack_point): Update.
24911         (first_nonscheduled_insn): New static function.
24912         (queue_to_ready, choose_ready): Use it.
24913         (schedule_block): Init nonscheduled_insns_begin.
24914         (sched_emit_insn): Update.
24917 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24919         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24920         to GENERAL_REGS.
24921         (aarch64_secondary_reload) : LikeWise.
24922         (aarch64_class_max_nregs) : Remove CORE_REGS.
24923         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24924         (REG_CLASS_NAMES) : Likewise.
24925         (REG_CLASS_CONTENTS) : LikeWise.
24926         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24928 2014-05-21  Guozhi Wei  <carrot@google.com>
24930         PR target/61202
24931         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24932         constraint.
24933         (vqdmulhq_n_s16): Likewise.
24935 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
24937         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24939 2014-05-21  Marek Polacek  <polacek@redhat.com>
24941         PR sanitizer/61272
24942         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24944 2014-05-21  Martin Jambor  <mjambor@suse.cz>
24946         * doc/invoke.texi (Optimize Options): Document parameters
24947         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24948         ipa-cp-array-index-hint-bonus.
24950 2014-05-21  Mark Wielaard  <mjw@redhat.com>
24952         PR debug/16063
24953         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24954         version >= 3 or not strict DWARF.
24955         * langhooks.h (struct lang_hooks_for_types): Add
24956         enum_underlying_base_type.
24957         * langhooks.c (lhd_enum_underlying_base_type): New function.
24958         * gcc/langhooks.h (struct lang_hooks_for_types): Add
24959         enum_underlying_base_type.
24960         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24961         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24962         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24964 2014-05-21  Richard Biener  <rguenther@suse.de>
24966         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24968 2014-05-21  John Marino  <gnugcc@marino.st>
24970         * config.gcc (*-*-dragonfly*): New target.
24971         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24972         * configure: Regenerate.
24973         * config/dragonfly-stdint.h: New.
24974         * config/dragonfly.h: New.
24975         * config/dragonfly.opt: New.
24976         * config/i386/dragonfly.h: New.
24977         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24979 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24981         * tree.def (VOID_CST): New.
24982         * tree-core.h (TI_VOID): New.
24983         * tree.h (void_node): New.
24984         * tree.c (tree_node_structure_for_code, tree_code_size)
24985         (iterative_hash_expr): Handle VOID_CST.
24986         (build_common_tree_nodes): Initialize void_node.
24988 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
24990         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24991         functions.
24992         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24994         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24995         more places.
24997         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24998         flag_reorder_blocks_and_partition.
24999         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
25001 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
25003         PR target/54236
25004         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
25005         constraints.
25006         (*addc_r_t): Add new insn_and_split.
25008 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
25010         PR middle-end/61252
25011         * omp-low.c (handle_simd_reference): New function.
25012         (lower_rec_input_clauses): Use it.  Defer adding reference
25013         initialization even for reduction without placeholder if in simd,
25014         handle it properly later on.
25016 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
25018         PR tree-optimization/60899
25019         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
25020         assume all static symbols will have definition wile parsing and
25021         check the do have definition later in compilation; check that
25022         variable referring symbol will be output before concluding that
25023         reference is safe; be conservative for referring local statics;
25024         be more precise about when comdat is output in other partition.
25026 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
25028         PR bootstrap/60984
25029         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
25030         parameter.
25031         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
25032         (ipa_inline): Loop inline_to_all_callers until no more aliases
25033         are removed.
25035 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
25037         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
25038         set writeonly flag only for vars actually written to.
25040 2014-05-20  Dehao Chen  <dehao@google.com>
25042         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
25043         and callee count to get clone count.
25044         * tree-inline.c (expand_call_inline): Use callee count instead of bb
25045         count in copy_body.
25047 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
25049         PR rtl-optimization/61243
25050         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
25052 2014-05-20  Xinliang David Li  <davidxl@google.com>
25054         * cgraphunit.c (walk_polymorphic_call_targets): Add
25055         dbgcnt and fopt-info support.
25056         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
25057         * ipa-devirt.c (ipa_devirt): Ditto.
25058         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
25059         * ipa.c (walk_polymorphic_call_targets): Ditto.
25060         * gimple-fold.c (fold_gimple_assign): Ditto.
25061         (gimple_fold_call): Ditto.
25062         * dbgcnt.def: New counter.
25064 2014-05-20  DJ Delorie  <dj@redhat.com>
25066         * config/msp430/msp430.md (split): Don't allow subregs when
25067         splitting SImode adds.
25068         (andneghi): Fix subtraction logic.
25069         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
25071 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
25073         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
25074         symbols.
25075         * except.c (switch_to_exception_section, resolve_unique_section,
25076         get_named_text_section, default_function_rodata_section,
25077         align_variable, get_block_for_decl, default_section_type_flags):
25078         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
25079         * symtab.c (symtab_add_to_same_comdat_group,
25080         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
25081         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
25082         Likewise.
25083         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
25084         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
25085         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
25086         (c6x_function_in_section_p): Likewise.
25087         * config/darwin.c (machopic_select_section): Likewise.
25088         * config/arm/arm.c (arm_function_in_section_p): Likewise.
25089         * config/mips/mips.c (mips_function_rodata_section): Likewise.
25090         * config/mep/mep.c (mep_select_section): LIkewise.
25091         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
25093 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
25095         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
25096         EH region of calls to pure functions that can throw an exception.
25097         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
25098         (copy_reference_ops_from_call): Also copy the EH region of the call if
25099         it can throw an exception.
25101 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25103         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
25104         nested VEC_SELECTs that are inverses of each other.
25106 2014-05-20  Richard Biener  <rguenther@suse.de>
25108         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
25109         (extract_and_process_scc_for_name): not here.
25110         (cond_dom_walker::before_dom_children): Only process
25111         stmts that end the BB in interesting ways.
25112         (run_scc_vn): Mark param uses as visited.
25114 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25116         * config/arm/arm.md (arith_shiftsi): Do not predicate for
25117         arm_restrict_it.
25119 2014-05-20  Nick Clifton  <nickc@redhat.com>
25121         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
25122         (msp430_gimplify_va_arg_expr): New function.
25123         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
25125         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
25126         operand 0 in order to prevent confusion about the number of
25127         registers involved.
25129 2014-05-20  Richard Biener  <rguenther@suse.de>
25131         PR tree-optimization/61221
25132         * tree-ssa-pre.c (el_to_update): Remove.
25133         (eliminate_dom_walker::before_dom_children): Handle released
25134         VDEFs by value-numbering them to the associated VUSE.  Update
25135         stmt immediately for substituted call address.
25136         (eliminate): Remove delayed stmt updating code.
25137         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
25138         possibly late re-numbered vuses.
25139         (vn_reference_lookup_2): Adjust.
25140         (vn_reference_lookup_pieces): Likewise.
25141         (vn_reference_lookup): Likewise.
25143 2014-05-20  Richard Biener  <rguenther@suse.de>
25145         * config.gcc: Remove need_64bit_hwint.
25146         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
25147         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
25148         it to be true.
25149         * config.in: Regenerate.
25150         * configure: Likewise.
25152 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
25154         * doc/extend.texi: Create Label Attributes section,
25155         move all label attributes into it and reference it.
25157 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
25159         * arm.c (thumb1_reorg): When scanning backwards skip anything
25160         that's not a proper insn.
25162 2014-05-19  Richard Biener  <rguenther@suse.de>
25164         PR tree-optimization/61221
25165         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25166         Do nothing for unreachable blocks.
25167         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
25168         Improve unreachability detection.
25170 2014-05-19  Richard Biener  <rguenther@suse.de>
25172         PR tree-optimization/61209
25173         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
25175 2014-05-19  Nick Clifton  <nickc@redhat.com>
25177         * except.c (init_eh): Fix computation of builtin setjmp buffer
25178         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
25180 2014-05-19  Richard Biener  <rguenther@suse.de>
25182         PR tree-optimization/61184
25183         * tree-vrp.c (is_negative_overflow_infinity): Use
25184         TREE_OVERFLOW_P and do that check first.
25185         (is_positive_overflow_infinity): Likewise.
25186         (is_overflow_infinity): Likewise.
25187         (vrp_operand_equal_p): Properly treat operands with
25188         differing overflow as not equal.
25190 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
25192         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
25193         shift simplification where it was intended.
25195 2014-05-19  Christian Bruel  <christian.bruel@st.com>
25197         PR target/61195
25198         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
25200 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
25202         PR target/61084
25203         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
25204         than wide_int.
25206 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25208         * reg-notes.def (CROSSING_JUMP): Likewise.
25209         * rtl.h (rtx_def): Update comment for jump flag.
25210         (CROSSING_JUMP_P): Define.
25211         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
25212         of a REG_CROSSING_JUMP note.
25213         * cfghooks.c (tidy_fallthru_edges): Likewise.
25214         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
25215         * emit-rtl.c (try_split): Likewise.
25216         * haifa-sched.c (sched_create_recovery_edges): Likewise.
25217         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
25218         * jump.c (redirect_jump_2): Likewise.
25219         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
25220         (relax_delay_slots): Likewise.
25221         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
25222         (bbit_di): Likewise.
25223         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
25224         * config/sh/sh.md (jump_compact): Likewise.
25225         * bb-reorder.c (rotate_loop): Likewise.
25226         (pass_duplicate_computed_gotos::execute): Likewise.
25227         (add_reg_crossing_jump_notes): Rename to...
25228         (update_crossing_jump_flags): ...this.
25229         (pass_partition_blocks::execute): Update accordingly.
25231 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25233         * tree.h: Remove extraneous template <>.
25235 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25237         * ipa.c (symtab_remove_unreachable_nodes): Remove
25238         symbol from comdat group if its body was eliminated.
25239         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
25240         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
25241         (symtab_unregister_node): ... this one.
25242         (verify_symtab_base): More strict checking of comdats.
25243         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
25245 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25247         * tree-pass.h (make_pass_ipa_comdats): New pass.
25248         * timevar.def (TV_IPA_COMDATS): New timevar.
25249         * passes.def (pass_ipa_comdats): Add.
25250         * Makefile.in (OBJS): Add ipa-comdats.o
25251         * ipa-comdats.c: New file.
25253 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25255         * ipa.c (update_visibility_by_resolution_info): New function.
25256         (function_and_variable_visibility): Use it.
25258 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25260         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
25261         New functions.
25262         (FOR_EACH_DEFINED_SYMBOL): New macro.
25263         (varpool_first_static_initializer, varpool_next_static_initializer,
25264         varpool_first_defined_variable, varpool_next_defined_variable):
25265         Fix comments.
25266         (symtab_in_same_comdat_p): Correctly deal with inline functions.
25268 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25270         * ggc-page.c (ggc_handle_finalizers): Add comment.
25272 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25274         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
25275         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
25276         (ggc_internal_cleared_alloc): Likewise.
25277         * ggc-page.c (finalizer): New class.
25278         (vec_finalizer): Likewise.
25279         (globals::finalizers): New member.
25280         (globals::vec_finalizers): Likewise.
25281         (ggc_internal_alloc): Record the finalizer if any for the block being
25282         allocated.
25283         (ggc_handle_finalizers): New function.
25284         (ggc_collect): Call ggc_handle_finalizers.
25285         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
25286         finalizer.
25287         (ggc_internal_cleared_alloc): Likewise.
25288         (finalize): New function.
25289         (need_finalization_p): Likewise.
25290         (ggc_alloc): Install the type's destructor as the finalizer if it
25291         might do something.
25292         (ggc_cleared_alloc): Likewise.
25293         (ggc_vec_alloc): Likewise.
25294         (ggc_cleared_vec_alloc): Likewise.
25296 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25298         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
25300 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25302         * alias.c (record_alias_subset): Adjust.
25303         * bitmap.c (bitmap_element_allocate): Likewise.
25304         (bitmap_gc_alloc_stat): Likewise.
25305         * cfg.c (init_flow): Likewise.
25306         (alloc_block): Likewise.
25307         (unchecked_make_edge): Likewise.
25308         * cfgloop.c (alloc_loop): Likewise.
25309         (flow_loops_find): Likewise.
25310         (rescan_loop_exit): Likewise.
25311         * cfgrtl.c (init_rtl_bb_info): Likewise.
25312         * cgraph.c (insert_new_cgraph_node_version): Likewise.
25313         (cgraph_allocate_node): Likewise.
25314         (cgraph_create_edge_1): Likewise.
25315         (cgraph_allocate_init_indirect_info): Likewise.
25316         * cgraphclones.c (cgraph_clone_edge): Likewise.
25317         * cgraphunit.c (add_asm_node): Likewise.
25318         (init_lowered_empty_function): Likewise.
25319         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
25320         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25321         (alpha_use_linkage): Likewise.
25322         * config/arc/arc.c (arc_init_machine_status): Likewise.
25323         * config/arm/arm.c (arm_init_machine_status): Likewise.
25324         * config/avr/avr.c (avr_init_machine_status): Likewise.
25325         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25326         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
25327         * config/cris/cris.c (cris_init_machine_status): Likewise.
25328         * config/darwin.c (machopic_indirection_name): Likewise.
25329         (darwin_build_constant_cfstring): Likewise.
25330         (darwin_enter_string_into_cfstring_table): Likewise.
25331         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
25332         * config/frv/frv.c (frv_init_machine_status): Likewise.
25333         * config/i386/i386.c (get_dllimport_decl): Likewise.
25334         (ix86_init_machine_status): Likewise.
25335         (assign_386_stack_local): Likewise.
25336         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25337         (i386_pe_maybe_record_exported_symbol): Likewise.
25338         (i386_pe_record_stub): Likewise.
25339         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25340         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25341         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25342         (m32c_note_pragma_address): Likewise.
25343         * config/mep/mep.c (mep_init_machine_status): Likewise.
25344         (mep_note_pragma_flag): Likewise.
25345         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25346         (mips16_local_alias): Likewise.
25347         (mips_init_machine_status): Likewise.
25348         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25349         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25350         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
25351         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
25352         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
25353         * config/pa/pa.c (pa_init_machine_status): Likewise.
25354         (pa_get_deferred_plabel): Likewise.
25355         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
25356         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25357         (rs6000_init_machine_status): Likewise.
25358         (output_toc): Likewise.
25359         * config/s390/s390.c (s390_init_machine_status): Likewise.
25360         * config/score/score.c (score_output_external): Likewise.
25361         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25362         * config/spu/spu.c (spu_init_machine_status): Likewise.
25363         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
25364         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
25365         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25366         * coverage.c (coverage_end_function): Likewise.
25367         * dbxout.c (dbxout_init): Likewise.
25368         * doc/gty.texi: Don't mention variable_size attribute.
25369         * dwarf2cfi.c (new_cfi): Adjust.
25370         (new_cfi_row): Likewise.
25371         (copy_cfi_row): Likewise.
25372         (create_cie_data): Likewise.
25373         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
25374         (new_loc_descr): Likewise.
25375         (find_AT_string_in_table): Likewise.
25376         (add_addr_table_entry): Likewise.
25377         (new_die): Likewise.
25378         (add_var_loc_to_decl): Likewise.
25379         (clone_die): Likewise.
25380         (clone_as_declaration): Likewise.
25381         (break_out_comdat_types): Likewise.
25382         (new_loc_list): Likewise.
25383         (add_loc_descr_to_each): Likewise.
25384         (add_location_or_const_value_attribute): Likewise.
25385         (add_linkage_name): Likewise.
25386         (lookup_filename): Likewise.
25387         (dwarf2out_var_location): Likewise.
25388         (new_line_info_table): Likewise.
25389         (dwarf2out_init): Likewise.
25390         (mem_loc_descriptor): Likewise.
25391         (loc_descriptor): Likewise.
25392         (add_const_value_attribute): Likewise.
25393         (tree_add_const_value_attribute): Likewise.
25394         (comp_dir_string): Likewise.
25395         (dwarf2out_vms_debug_main_pointer): Likewise.
25396         (string_cst_pool_decl): Likewise.
25397         * emit-rtl.c (set_mem_attrs): Likewise.
25398         (get_reg_attrs): Likewise.
25399         (start_sequence): Likewise.
25400         (init_emit): Likewise.
25401         (init_emit_regs): Likewise.
25402         * except.c (init_eh_for_function): Likewise.
25403         (gen_eh_region): Likewise.
25404         (gen_eh_region_catch): Likewise.
25405         (gen_eh_landing_pad): Likewise.
25406         (add_call_site): Likewise.
25407         * function.c (add_frame_space): Likewise.
25408         (insert_temp_slot_address): Likewise.
25409         (assign_stack_temp_for_type): Likewise.
25410         (get_hard_reg_initial_val): Likewise.
25411         (allocate_struct_function): Likewise.
25412         (prepare_function_start): Likewise.
25413         (types_used_by_var_decl_insert): Likewise.
25414         * gengtype.c (variable_size_p): Remove function.
25415         (enum alloc_quantity): Remove enum.
25416         (write_typed_alloc_def): Remove function.
25417         (write_typed_struct_alloc_def): Likewise.
25418         (write_typed_typedef_alloc_def): Likewise.
25419         (write_typed_alloc_defns): Likewise.
25420         (main): Adjust.
25421         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
25422         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
25423         * ggc.h (ggc_alloc): new function.
25424         (ggc_cleared_alloc): Likewise.
25425         (ggc_vec_alloc): Template on type of vector element, and remove
25426         element size argument.
25427         (ggc_cleared_vec_alloc): Likewise.
25428         * gimple.c (gimple_build_omp_for): Adjust.
25429         (gimple_copy): Likewise.
25430         * ipa-cp.c (get_replacement_map): Likewise.
25431         (find_aggregate_values_for_callers_subset): Likewise.
25432         (known_aggs_to_agg_replacement_list): Likewise.
25433         * ipa-devirt.c (get_odr_type): Likewise.
25434         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
25435         (read_agg_replacement_chain): Likewise.
25436         * loop-iv.c (get_simple_loop_desc): Likewise.
25437         * lto-cgraph.c (input_node_opt_summary): Likewise.
25438         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25439         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25440         (input_eh_region): Likewise.
25441         (input_eh_lp): Likewise.
25442         (input_cfg): Likewise.
25443         * optabs.c (set_optab_libfunc): Likewise.
25444         (init_tree_optimization_optabs): Likewise.
25445         (set_conv_libfunc): Likewise.
25446         * passes.c (do_per_function_toporder): Likewise.
25447         * rtl.h: Don't use variable_size gty attribute.
25448         * sese.c (if_region_set_false_region): Adjust.
25449         * stringpool.c (gt_pch_save_stringpool): Likewise.
25450         * target-globals.c (save_target_globals): Likewise.
25451         * toplev.c (general_init): Likewise.
25452         * trans-mem.c (record_tm_replacement): Likewise.
25453         (split_bb_make_tm_edge): Likewise.
25454         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25455         * tree-data-ref.h (lambda_vector_new): Likewise.
25456         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25457         * tree-iterator.c (tsi_link_before): Likewise.
25458         (tsi_link_after): Likewise.
25459         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25460         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25461         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25462         * tree-ssa-operands.h: Don't use variable_size gty attribute.
25463         * tree-ssa.c (init_tree_ssa): Adjust.
25464         * tree-ssanames.c (set_range_info): Likewise.
25465         (get_ptr_info): Likewise.
25466         (duplicate_ssa_name_ptr_info): Likewise.
25467         (duplicate_ssa_name_range_info): Likewise.
25468         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
25469         (unpack_ts_fixed_cst_value_fields): Likewise.
25470         * tree.c (build_fixed): Likewise.
25471         (build_real): Likewise.
25472         (build_string): Likewise.
25473         (decl_priority_info): Likewise.
25474         (decl_debug_expr_insert): Likewise.
25475         (decl_value_expr_insert): Likewise.
25476         (decl_debug_args_insert): Likewise.
25477         (type_hash_add): Likewise.
25478         (build_omp_clause): Likewise.
25479         * ubsan.c (decl_for_type_insert): Likewise.
25480         * varasm.c (get_unnamed_section): Likewise.
25481         (get_noswitch_section): Likewise.
25482         (get_section): Likewise.
25483         (get_block_for_section): Likewise.
25484         (create_block_symbol): Likewise.
25485         (build_constant_desc): Likewise.
25486         (create_constant_pool): Likewise.
25487         (force_const_mem): Likewise.
25488         (record_tm_clone_pair): Likewise.
25489         * varpool.c (varpool_create_empty_node): Likewise.
25491 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25493         * dwarf2out.c (tree_add_const_value_attribute): Call
25494         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
25495         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
25496         instead of ggc_internal_<x>alloc_stat.
25497         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
25498         (ggc_realloc): Likewise.
25499         * ggc-none.c (ggc_internal_alloc): Likewise.
25500         (ggc_internal_cleared_alloc): Likewise.
25501         * ggc-page.c: Likewise.
25502         * ggc.h (ggc_internal_alloc_stat): Likewise.
25503         (ggc_internal_alloc): Remove macro.
25504         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
25505         (ggc_internal_cleared_alloc): Remove macro.
25506         (GGC_RESIZEVEC): Adjust.
25507         (ggc_resizevar): Remove macro.
25508         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
25509         (ggc_internal_cleared_vec_alloc_stat): Likewise.
25510         (ggc_internal_vec_cleared_alloc): Remove macro.
25511         (ggc_alloc_atomic_stat): Drop _stat suffix.
25512         (ggc_alloc_atomic): Remove macro.
25513         (ggc_alloc_cleared_atomic): Remove macro.
25514         (ggc_alloc_string_stat): Drop _stat suffix.
25515         (ggc_alloc_string): Remove macro.
25516         (ggc_alloc_rtx_def_stat): Adjust.
25517         (ggc_alloc_tree_node_stat): Likewise.
25518         (ggc_alloc_cleared_tree_node_stat): Likewise.
25519         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
25520         (ggc_alloc_cleared_simd_clone_stat): Likewise.
25521         * gimple.c (gimple_build_omp_for): Likewise.
25522         (gimple_copy): Likewise.
25523         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
25524         * toplev.c (realloc_for_line_map): Adjust.
25525         * tree-data-ref.h (lambda_vector_new): Likewise.
25526         * tree-phinodes.c (allocate_phi_node): Likewise.
25527         * tree.c (grow_tree_vec_stat): Likewise.
25528         * vec.h (va_gc::reserve): Adjust.
25530 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
25532         * config/microblaze/microblaze.c (break_handler): New Declaration.
25533         (microblaze_break_function_p,microblaze_is_break_handler): New.
25534         (compute_frame_size): Use microblaze_break_function_p.
25535         Add the test of break_handler.
25536         (microblaze_function_prologue) : Add the test of variable
25537         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
25538         (microblaze_function_epilogue) : Add the test of break_handler.
25539         (microblaze_globalize_label) : Add the test of break_handler.
25540         Check the name by BREAK_HANDLER_NAME.
25542         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
25544         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
25545         microblaze_is_break_handler test.
25546         (call_internal1,call_value_intern): Use microblaze_break_function_p.
25547         Use SYMBOL_REF_DECL.
25549         * config/microblaze/microblaze-protos.h
25550         (microblaze_break_function_p,microblaze_is_break_handler):
25551         New Declaration.
25553         * doc/extend.texi (MicroBlaze break_handler Functions): Document
25554         new MicroBlaze break_handler functions.
25556 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25558         * doc/extend.texi (Size of an asm): Move node text according
25559         to its @menu entry position.
25561 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
25563         PR tree-optimization/61140
25564         PR tree-optimization/61150
25565         PR tree-optimization/61197
25566         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
25568 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25570         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
25572 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
25574         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
25575         __SIZEOF_INT128__ is defined.
25577 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25579         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
25580         (rs6000_delegitimize_address): Use it.
25582 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25584         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
25585         inplace argument.  Store the new address in the original MEM when true.
25586         * emit-rtl.c (change_address_1): Likewise.
25587         (adjust_address_1, adjust_automodify_address_1, offset_address):
25588         Update accordingly.
25589         * rtl.h (plus_constant): Add an inplace argument.
25590         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
25591         when true.  Avoid generating (plus X (const_int 0)).
25592         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
25593         in-place.  Pass true to plus_constant.
25594         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
25596 2014-05-16  Dehao Chen  <dehao@google.com>
25598         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
25600 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25602         PR target/54089
25603         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
25604         patterns.
25605         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
25607 2014-05-16  Dehao Chen  <dehao@google.com>
25609         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
25610         optimize_function_for_size_p.
25611         * regs.h (REG_FREQ_FROM_BB): Likewise.
25613 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25615         PR target/51244
25616         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
25617         negt_reg_operand cases.
25618         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
25619         predicate.
25620         * config/sh/predicates.md (cbranch_treg_value): Simplify.
25622 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25624         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25625         target variants.
25627 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
25629         Revert:
25630         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25632         * tree-cfg.c (dump_function_to_file): Dump the return type of
25633         functions, in a line to itself before the function body, mimicking
25634         the layout of a C function.
25636 2014-05-16  Dehao Chen  <dehao@google.com>
25638         * cfghooks.c (make_forwarder_block): Use direct computation to
25639         get fall-through edge's count and frequency.
25641 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
25643         * config/arc/arc.c (arc_init): Fix typo in error message.
25644         * config/i386/i386.c (ix86_expand_builtin): Likewise.
25645         (split_stack_prologue_scratch_regno): Likewise.
25646         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25647         word from error message.
25649 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25651         * ira-costs.c: Fix typo in comment.
25653 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
25655         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25657 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
25659         * varpool.c (dump_varpool_node): Dump write-only flag.
25660         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25661         write-only flag.
25662         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25663         write-only variables.
25664         * ipa.c (process_references): New function.
25665         (set_readonly_bit): New function.
25666         (set_writeonly_bit): New function.
25667         (clear_addressable_bit): New function.
25668         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25669         fix handling of aliases.
25670         * cgraph.h (struct varpool_node): Add writeonly flag.
25672 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
25674         PR rtl-optimization/60969
25675         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25676         Calculate costs for this case.
25678 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25680         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25681         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25683 2014-05-16  Richard Biener  <rguenther@suse.de>
25685         PR tree-optimization/61194
25686         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25687         bool patterns ending in a COND_EXPR.
25689 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25691         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25693 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25695         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25696         where we were unable to cost an RTX.
25698 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25700         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25701         HIGH, LO_SUM.
25703 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25704             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25706         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25708 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25709             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25711         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25712         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25714 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25715             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25717         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25718         operators.
25720 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25721             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25723         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25724         DIV/MOD.
25726 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25727             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25729         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25730         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25732 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25733             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25735         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25736         rotates and shifts.
25738 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25739             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25741         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25742         ZERO_EXTEND and SIGN_EXTEND better.
25744 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25745             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25747         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25748         logical operations.
25750 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25751             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25753         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25754         costs when costing loads and stores to memory.
25756 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25757             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
25759         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25760         for SET RTX.
25762 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25764         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25766 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25767             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25769         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25770         to...
25771         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25772         well formed.
25773         (aarch64_rtx_mult_cost): New.
25774         (aarch64_rtx_costs): Use it, refactor as appropriate.
25776 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25777             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25779         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25780         emit instructions, return number of instructions which would
25781         be emitted.
25782         (aarch64_add_constant): Update call to aarch64_build_constant.
25783         (aarch64_output_mi_thunk): Likewise.
25784         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25785         a CONST_DOUBLE.
25787 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25789         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25790         (TARGET_RTX_COSTS): Call it.
25792 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25794         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25795         (cortexa57_vector_cost): Likewise.
25796         (cortexa57_tunings): Use them.
25798 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25800         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25801         (cpu_addrcost_table): Use it.
25802         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25803         (aarch64_address_cost): Rewrite using aarch64_classify_address,
25804         move it.
25806 2014-05-16  Richard Biener  <rguenther@suse.de>
25808         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25809         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25810         (visit_phi): Ignore edges marked as not executable.
25811         (class cond_dom_walker): New.
25812         (cond_dom_walker::before_dom_children): Value-number
25813         control statements and mark successor edges as not
25814         executable if possible.
25815         (run_scc_vn): First walk all control statements in
25816         dominator order, marking edges as not executable.
25817         * tree-inline.c (copy_edges_for_bb): Be not confused
25818         about random edge flags.
25820 2014-05-16  Richard Biener  <rguenther@suse.de>
25822         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25824 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
25826         PR target/61193
25827         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25828         (__TM_simple_begin): Use it.
25829         (__TM_begin): Likewise.
25831 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25833         PR ipa/61085
25834         * ipa-prop.c (update_indirect_edges_after_inlining): Check
25835         type_preserved flag when the indirect edge is polymorphic.
25837 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25839         PR tree-optimization/61090
25840         * tree-sra.c (sra_modify_expr): Pass the current gsi to
25841         build_ref_for_model.
25843 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25845         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25846         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25848 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
25850         PR tree-optimization/61158
25851         * fold-const.c (fold_binary_loc): If X is zero-extended and
25852         shiftc >= prec, make sure zerobits is all ones instead of
25853         invoking undefined behavior.
25855 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25857         * regcprop.h: New file.
25858         * regcprop.c (skip_debug_insn_p): New decl.
25859         (replace_oldest_value_reg): Check skip_debug_insn_p.
25860         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25861         * shrink-wrap.c: Include regcprop.h.
25862         (prepare_shrink_wrap): Call
25863         copyprop_hardreg_forward_bb_without_debug_insn.
25865 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25867         * shrink-wrap.h: Update comment.
25868         * shrink-wrap.c: Update comment.
25869         (next_block_for_reg): Rename to live_edge_for_reg.
25870         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25871         (move_insn_for_shrink_wrap): Split live_edge.
25872         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25874 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25876         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25877         Delete.
25878         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25879         * config/sparc/sparc.md (fptype_ut699): New attribute.
25880         (in_branch_delay): Return false if -mfix-ut699 is specified and
25881         fptype_ut699 is set to single.
25882         (truncdfsf2): Add fptype_ut699 attribute.
25883         (fix_truncdfsi2): Likewise.
25884         (floatsisf2): Change fptype attribute.
25885         (fix_truncsfsi2): Likewise.
25886         (negtf2_notv9): Delete.
25887         (negtf2_v9): Likewise.
25888         (negtf2_hq): New instruction.
25889         (negtf2): New instruction and splitter.
25890         (negdf2_notv9): Rewrite.
25891         (abstf2_notv9): Delete.
25892         (abstf2_hq_v9): Likewise.
25893         (abstf2_v9): Likewise.
25894         (abstf2_hq): New instruction.
25895         (abstf2): New instruction and splitter.
25896         (absdf2_notv9): Rewrite.
25898 2014-05-14  Cary Coutant  <ccoutant@google.com>
25900         PR debug/61013
25901         * opts.c (common_handle_option): Don't special-case "-g".
25902         (set_debug_level): Default to at least level 2 with "-g".
25904 2014-05-14  DJ Delorie  <dj@redhat.com>
25906         * config/msp430/msp430.c (msp430_builtin): Add
25907         MSP430_BUILTIN_DELAY_CYCLES.
25908         (msp430_init_builtins): Register void __delay_cycles(long long).
25909         (msp430_builtin_decl): Add it.
25910         (cg_magic_constant): New.
25911         (msp430_expand_delay_cycles): New.
25912         (msp430_expand_builtin): Call it.
25913         (msp430_print_operand_raw): Change integer printing from "int" to
25914         HOST_WIDE_INT.
25915         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25916         (delay_cycles_start): New.
25917         (delay_cycles_end): New.
25918         (delay_cycles_32): New.
25919         (delay_cycles_32x): New.
25920         (delay_cycles_16): New.
25921         (delay_cycles_16x): New.
25922         (delay_cycles_2): New.
25923         (delay_cycles_1): New.
25924         * doc/extend.texi: Document __delay_cycles().
25926 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
25928         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25929         length attribute computation.
25931 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
25933         PR debug/61188
25934         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25936 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
25938         PR target/61084
25939         * config/sparc/sparc.md: Fix types of low and high in DI constant
25940         splitter.  Use gen_int_mode in some other splitters.
25942 2014-05-14  Martin Jambor  <mjambor@suse.cz>
25944         PR ipa/60897
25945         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25947 2014-05-14  James Norris  <jnorris@codesourcery.com>
25949         * omp-low.c (expand_parallel_call): Remove shadow variable.
25950         (expand_omp_taskreg): Likewise.
25952 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
25954         * common/config/i386/i386-common.c
25955         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25956         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25957         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25958         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25959         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25960         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25961         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25962         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25963         xsavecintrin.h, xsavesintrin.h.
25964         (x86_64-*-*): Ditto.
25965         * config/i386/clflushoptintrin.h: New.
25966         * config/i386/xsavecintrin.h: Ditto.
25967         * config/i386/xsavesintrin.h: Ditto.
25968         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25969         (bit_XSAVES): Ditto.
25970         (bit_XSAVES): Ditto.
25971         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25972         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25973         -mno-clflushopt.
25974         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25975         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25976         OPTION_MASK_ISA_XSAVES.
25977         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25978         -mxsavec, -mxsaves.
25979         (PTA_CLFLUSHOPT) Define.
25980         (PTA_XSAVEC): Ditto.
25981         (PTA_XSAVES): Ditto.
25982         (ix86_option_override_internal): Handle new options.
25983         (ix86_valid_target_attribute_inner_p): Ditto.
25984         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25985         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25986         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25987         (bdesc_special_args): Add __builtin_ia32_xsaves,
25988         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25989         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25990         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25991         (ix86_expand_builtin): Handle new builtins.
25992         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25993         (TARGET_CLFLUSHOPT_P): Ditto.
25994         (TARGET_XSAVEC): Ditto.
25995         (TARGET_XSAVEC_P): Ditto.
25996         (TARGET_XSAVES): Ditto.
25997         (TARGET_XSAVES_P): Ditto.
25998         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25999         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
26000         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
26001         (ANY_XRSTOR): New.
26002         (ANY_XRSTOR64): Ditto.
26003         (xrstor): Ditto.
26004         (xrstor): Change into <xrstor>.
26005         (xrstor_rex64): Change into <xrstor>_rex64.
26006         (xrstor64): Change into <xrstor>64
26007         (clflushopt): New.
26008         * config/i386/i386.opt (mclflushopt): New.
26009         (mxsavec): Ditto.
26010         (mxsaves): Ditto.
26011         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
26012         xsavecintrin.h.
26013         * doc/invoke.texi: Document new options.
26015 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
26017         PR rtl-optimization/60866
26018         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
26019         Default it to -1.  Pass it down to init_simplejump_data.
26020         (init_simplejump_data): New parameter old_seqno.  Pass it down
26021         to get_seqno_for_a_jump.
26022         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
26023         initializing new jump seqno as a last resort.  Add comment.
26024         (sel_redirect_edge_and_branch): Save old seqno of the conditional
26025         jump and pass it down to sel_init_new_insn.
26026         (sel_redirect_edge_and_branch_force): Likewise.
26028 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
26030         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
26031         shifted values to avoid build warning.
26033 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26035         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
26036         * cfgrtl.c (rtl_merge_blocks): Fix comment.
26037         (cfg_layout_merge_blocks): Likewise.
26038         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
26040 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
26042         PR rtl-optimization/60901
26043         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
26044         bb predecessor belongs to the same scheduling region.  Adjust comment.
26046 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
26048         * doc/sourcebuild.texi: (dfp_hw): Document.
26049         (p8vector_hw): Likewise.
26050         (powerpc_eabi_ok): Likewise.
26051         (powerpc_elfv2): Likewise.
26052         (powerpc_htm_ok): Likewise.
26053         (ppc_recip_hw): Likewise.
26054         (vsx_hw): Likewise.
26056 2014-05-13  Cary Coutant  <ccoutant@google.com>
26058         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
26060 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
26062         * gengtype-parse.c (require3): Eliminate in favor of...
26063         (require4): New.
26064         (require_template_declaration): Update to support optional single *
26065         on a type.
26067         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
26068         (create_user_defined_type): Handle a single level of explicit
26069         pointerness within template arguments.
26070         (struct write_types_data): Add field "kind".
26071         (filter_type_name): Handle "*" character.
26072         (write_user_func_for_structure_ptr): Require a write_types_data
26073         rather than just a prefix string, so that we can look up the kind
26074         of the wtd and use it as an index into wrote_user_func_for_ptr,
26075         ensuring that such functions are written at most once.  Support
26076         subclasses by invoking the marking function of the ultimate base class.
26077         (write_user_func_for_structure_body): Require a write_types_data
26078         rather than just a prefix string, so that we can pass this to
26079         write_user_func_for_structure_ptr.
26080         (write_func_for_structure): Likewise.
26081         (ggc_wtd): Add initializer of new "kind" field.
26082         (pch_wtd): Likewise.
26084         * gengtype.h (enum write_types_kinds): New.
26085         (struct type): Add field wrote_user_func_for_ptr to the "s"
26086         union member.
26088 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
26090         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
26091         instead of const_binop.
26092         (fold_binary_loc): Likewise.
26094 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
26096         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
26097         calculation to match get_ref_base_and_extent.
26099 2014-05-13  Catherine Moore  <clm@codesourcery.com>
26100             Sandra Loosemore  <sandra@codesourcery.com>
26102         * configure.ac: Fix assembly for explicit JALR relocation check.
26103         * configure: Regenerate.
26105 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26107         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
26108         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
26109         Remove associated type declarations and initialisations.
26110         (arm_expand_neon_builtin): Likewise.
26111         (neon_emit_pair_result_insn): Delete.
26112         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
26113         * config/arm/neon.md (neon_vtrn<mode>): Delete.
26114         (neon_vzip<mode>): Likewise.
26115         (neon_vuzp<mode>): Likewise.
26117 2014-05-13  Richard Biener  <rguenther@suse.de>
26119         PR ipa/60973
26120         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
26121         it needs revisiting whether the call still may be tail-called.
26123 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26125         * rtl.def (SYMBOL_REF): Remove middle "0" field.
26126         * rtl.h (block_symbol): Reduce number of fields to 2.
26127         (rtx_def): Add u2.symbol_ref_flags.
26128         (SYMBOL_REF_FLAGS): Use it.
26129         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
26130         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
26131         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
26132         Lower index of SYMBOL_REF_DATA.
26133         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
26134         Print SYMBOL_REF_FLAGS at the same time.
26135         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
26137 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26139         * rtl.def (VAR_LOCATION): Remove "i" field.
26140         * rtl.h (rtx_def): Add u2.var_location_status.
26141         (PAT_VAR_LOCATION_STATUS): Use it.
26142         (gen_rtx_VAR_LOCATION): Declare.
26143         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
26144         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
26145         * var-tracking.c (emit_note_insn_var_location): Remove casts.
26147 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26149         * rtl.def (scratch): Fix outdated comment and remove "0" field.
26150         * gengtype.c (adjust_field_rtx_def): Update accordingly.
26152 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26154         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
26155         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
26156         * rtl.h (rtx_def): Add insn_uid to u2 field.
26157         (RTX_FLAG_CHECK8): Delete in favor of...
26158         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
26159         (INSN_DELETED_P): Update accordingly.
26160         (INSN_UID): Use u2.insn_uid.
26161         (INSN_CHAIN_CODE_P): Define.
26162         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
26163         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
26164         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
26165         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
26166         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
26167         indices accordingly.
26168         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
26169         Update indices for insn-chain rtxes.
26170         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
26171         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
26172         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
26173         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
26174         * combine.c (try_combine): Likewise.
26175         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26177 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26179         * rtl.def (REG): Remove middle field.
26180         * rtl.h (rtx_def): Add orignal_regno to u2.
26181         (ORIGINAL_REGNO): Use it instead of field 1.
26182         (REG_ATTRS): Lower field index accordingly.
26183         * gengtype.c (adjust_field_rtx_def): Remove handling of
26184         ORIGINAL_REGNO.  Move REG_ATTRS index down.
26185         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
26186         code that prints the REGNO.
26188 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26190         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
26191         GENERATOR_FILE.
26193 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26195         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
26197 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
26199         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
26200         (alloc_iv): Lower base expressions containing ADDR_EXPR.
26202 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
26204         * config/aarch64/aarch64-protos.h
26205         (aarch64_hard_regno_caller_save_mode): New prototype.
26206         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
26207         New function.
26208         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
26210 2014-05-13  Christian Bruel  <christian.bruel@st.com>
26212         * target.def (mode_switching): New hook vector.
26213         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
26214         (mode_exit, modepriority_to_mode): Likewise.
26215         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
26216         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26217         * target.h: Include tm.h and hard-reg-set.h.
26218         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
26219         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
26220         * doc/tm.texi Regenerate.
26221         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26222         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26223         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
26224         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
26225         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26226         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26227         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
26228         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
26229         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
26230         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
26231         (ix86_emit_mode_set): Hookify.
26232         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
26233         Delete.
26234         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26235         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
26236         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
26237         (epiphany_mode_priority_to_mode): Remove declaration.
26238         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
26239         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
26240         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
26241         Likewise.
26242         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
26243         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
26244         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
26246 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
26248         PR target/61060
26249         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
26250         is const0_rtx, return immediately.  Don't test count == 0 when
26251         it is always true.
26253 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26255         * Makefile.in: add shrink-wrap.o.
26256         * config/i386/i386.c: include "shrink-wrap.h"
26257         * function.c: Likewise.
26258         (requires_stack_frame_p, next_block_for_reg,
26259         move_insn_for_shrink_wrap, prepare_shrink_wrap,
26260         dup_block_and_redirect): Move to shrink-wrap.c
26261         (thread_prologue_and_epilogue_insns): Extract three code segments
26262         as functions in shrink-wrap.c
26263         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
26264         shrink-wrap.h
26265         * shrink-wrap.c: New file.
26266         * shrink-wrap.h: New file.
26268 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26270         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
26271         reference to Solaris.
26273 2014-05-12  Mike Stump  <mikestump@comcast.net>
26275         PR other/31778
26276         * genattrtab.c (filename): Add.
26277         (convert_set_attr_alternative): Improve error message.
26278         (check_defs): Restore read_md_filename for error messages.
26279         (gen_insn): Save filename.
26281 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
26283         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
26284         -fno-local-ivars and -fivar-visibility.
26285         * c-family/c.opt: Make -Wshadow also implicitly enable
26286         -Wshadow-ivar.
26288 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26290         * doc/tm.texi: Remove reference to deleted macro.
26291         * doc/tm.texi.in: Likewise.
26293 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26295         PR target/60991
26296         * config/avr/avr.c (avr_out_store_psi): Use correct constant
26297         to restore Y.
26299 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
26301         PR libgcc/61152
26302         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
26303         * config/arm/aout.h (License): Same.
26304         * config/arm/bpabi.h (License): Same.
26305         * config/arm/elf.h (License): Same.
26306         * config/arm/linux-elf.h (License): Same.
26307         * config/arm/linux-gas.h (License): Same.
26308         * config/arm/netbsd-elf.h (License): Same.
26309         * config/arm/uclinux-eabi.h (License): Same.
26310         * config/arm/uclinux-elf.h (License): Same.
26311         * config/arm/vxworks.h (License): Same.
26313 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
26315         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
26316         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
26317         number of operands to 3.
26318         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
26319         * tree-nested.c (convert_nonlocal_omp_clauses,
26320         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
26321         * gimplify.c (gimplify_scan_omp_clauses): Handle
26322         OMP_CLAUSE_LINEAR_STMT.
26323         * omp-low.c (lower_rec_input_clauses): Fix typo.
26324         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
26325         cast between Fortran boolean_type_node and C _Bool if
26326         needed.
26328 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
26330         PR tree-optimization/61136
26331         * wide-int.h (multiple_of_p): Define a version that doesn't return
26332         the quotient.
26333         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
26334         integer_zerop/const_binop pair.
26335         (multiple_of_p): Likewise, converting both operands to widest_int
26336         precision.
26338 2014-05-09  Teresa Johnson  <tejohnson@google.com>
26340         * cgraphunit.c (analyze_functions): Use correct dump file.
26342 2014-05-09  Florian Weimer  <fweimer@redhat.com>
26344         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
26345         expand_used_vars.
26346         (stack_protect_return_slot_p): New function.
26347         (expand_used_vars): Call stack_protect_decl_p and
26348         stack_protect_return_slot_p for -fstack-protector-strong.
26350 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
26351         Andrew Haley <aph@redhat.com>
26352         Richard Sandiford <rdsandiford@googlemail.com>
26354         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
26355         pages.
26357 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
26359         PR middle-end/61111
26360         * fold-const.c (fold_binary_loc): Changed width of mask.
26362 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26364         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
26365         unsigned int initializers for regno_in, regno_out.
26367 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26369         PR target/61055
26370         * config/avr/avr.md (cc): Add new attribute set_vzn.
26371         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
26372         Set cc insn attribute to set_vzn instead of set_zn for alternatives
26373         with INC, DEC or NEG.
26374         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
26375         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
26376         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
26378 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26380         Revert:
26381         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26383         * wide-int.cc (UTItype): Define.
26384         (UDWtype): Define for appropriate W_TYPE_SIZE.
26386 2014-05-09  Richard Biener  <rguenther@suse.de>
26388         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
26389         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
26390         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
26391         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
26392         ssa_propagate): Adjust.
26394 2014-05-08  Jeff Law  <law@redhat.com>
26396         PR tree-optimization/61009
26397         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
26398         tri-state rather than a boolean.  When a block is too big to
26399         thread through, inform caller via negative return value.
26400         (thread_across_edge): If a block was too big for normal threading,
26401         then it's too big for a joiner too, so remove temporary equivalences
26402         and return immediately.
26404 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26405             Matthias Klose  <doko@ubuntu.com>
26407         PR driver/61106
26408         * optc-gen.awk: Fix option handling for -Wunused-parameter.
26410 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26412         PR target/59952
26413         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
26415 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26417         PR target/61092
26418         * config/alpha/alpha.c: Include gimple-iterator.h.
26419         (alpha_gimple_fold_builtin): New function.  Move
26420         ALPHA_BUILTIN_UMULH folding from ...
26421         (alpha_fold_builtin): ... here.
26422         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
26424 2014-05-08  Wei Mi  <wmi@google.com>
26426         PR target/58066
26427         * config/i386/i386.c (ix86_compute_frame_layout): Update
26428         preferred_stack_boundary for call, expanded from tls descriptor.
26429         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
26430         to depend on SP register.
26431         (*tls_local_dynamic_base_32_gnu): Ditto.
26432         (*tls_local_dynamic_32_once): Ditto.
26433         (tls_global_dynamic_64_<mode>): Set
26434         ix86_tls_descriptor_calls_expanded_in_cfun.
26435         (tls_local_dynamic_base_64_<mode>): Ditto.
26436         (tls_global_dynamic_32): Set
26437         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
26438         to depend on SP register.
26439         (tls_local_dynamic_base_32): Ditto.
26441 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26443         * config/arm/arm_neon.h: Update comment.
26444         * config/arm/neon-docgen.ml: Delete.
26445         * config/arm/neon-gen.ml: Delete.
26446         * doc/arm-neon-intrinsics.texi: Update comment.
26448 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26450         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
26451         and v4sf versions.
26452         (vand, vorr, veor, vorn, vbic): Remove.
26453         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
26454         iterator.
26455         (neon_vsub_unspec): Likewise.
26456         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
26458 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26460         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
26461         (vadd_s16): Likewise.
26462         (vadd_s32): Likewise.
26463         (vadd_f32): Likewise.
26464         (vadd_u8): Likewise.
26465         (vadd_u16): Likewise.
26466         (vadd_u32): Likewise.
26467         (vadd_s64): Likewise.
26468         (vadd_u64): Likewise.
26469         (vaddq_s8): Likewise.
26470         (vaddq_s16): Likewise.
26471         (vaddq_s32): Likewise.
26472         (vaddq_s64): Likewise.
26473         (vaddq_f32): Likewise.
26474         (vaddq_u8): Likewise.
26475         (vaddq_u16): Likewise.
26476         (vaddq_u32): Likewise.
26477         (vaddq_u64): Likewise.
26478         (vmul_s8): Likewise.
26479         (vmul_s16): Likewise.
26480         (vmul_s32): Likewise.
26481         (vmul_f32): Likewise.
26482         (vmul_u8): Likewise.
26483         (vmul_u16): Likewise.
26484         (vmul_u32): Likewise.
26485         (vmul_p8): Likewise.
26486         (vmulq_s8): Likewise.
26487         (vmulq_s16): Likewise.
26488         (vmulq_s32): Likewise.
26489         (vmulq_f32): Likewise.
26490         (vmulq_u8): Likewise.
26491         (vmulq_u16): Likewise.
26492         (vmulq_u32): Likewise.
26493         (vsub_s8): Likewise.
26494         (vsub_s16): Likewise.
26495         (vsub_s32): Likewise.
26496         (vsub_f32): Likewise.
26497         (vsub_u8): Likewise.
26498         (vsub_u16): Likewise.
26499         (vsub_u32): Likewise.
26500         (vsub_s64): Likewise.
26501         (vsub_u64): Likewise.
26502         (vsubq_s8): Likewise.
26503         (vsubq_s16): Likewise.
26504         (vsubq_s32): Likewise.
26505         (vsubq_s64): Likewise.
26506         (vsubq_f32): Likewise.
26507         (vsubq_u8): Likewise.
26508         (vsubq_u16): Likewise.
26509         (vsubq_u32): Likewise.
26510         (vsubq_u64): Likewise.
26511         (vand_s8): Likewise.
26512         (vand_s16): Likewise.
26513         (vand_s32): Likewise.
26514         (vand_u8): Likewise.
26515         (vand_u16): Likewise.
26516         (vand_u32): Likewise.
26517         (vand_s64): Likewise.
26518         (vand_u64): Likewise.
26519         (vandq_s8): Likewise.
26520         (vandq_s16): Likewise.
26521         (vandq_s32): Likewise.
26522         (vandq_s64): Likewise.
26523         (vandq_u8): Likewise.
26524         (vandq_u16): Likewise.
26525         (vandq_u32): Likewise.
26526         (vandq_u64): Likewise.
26527         (vorr_s8): Likewise.
26528         (vorr_s16): Likewise.
26529         (vorr_s32): Likewise.
26530         (vorr_u8): Likewise.
26531         (vorr_u16): Likewise.
26532         (vorr_u32): Likewise.
26533         (vorr_s64): Likewise.
26534         (vorr_u64): Likewise.
26535         (vorrq_s8): Likewise.
26536         (vorrq_s16): Likewise.
26537         (vorrq_s32): Likewise.
26538         (vorrq_s64): Likewise.
26539         (vorrq_u8): Likewise.
26540         (vorrq_u16): Likewise.
26541         (vorrq_u32): Likewise.
26542         (vorrq_u64): Likewise.
26543         (veor_s8): Likewise.
26544         (veor_s16): Likewise.
26545         (veor_s32): Likewise.
26546         (veor_u8): Likewise.
26547         (veor_u16): Likewise.
26548         (veor_u32): Likewise.
26549         (veor_s64): Likewise.
26550         (veor_u64): Likewise.
26551         (veorq_s8): Likewise.
26552         (veorq_s16): Likewise.
26553         (veorq_s32): Likewise.
26554         (veorq_s64): Likewise.
26555         (veorq_u8): Likewise.
26556         (veorq_u16): Likewise.
26557         (veorq_u32): Likewise.
26558         (veorq_u64): Likewise.
26559         (vbic_s8): Likewise.
26560         (vbic_s16): Likewise.
26561         (vbic_s32): Likewise.
26562         (vbic_u8): Likewise.
26563         (vbic_u16): Likewise.
26564         (vbic_u32): Likewise.
26565         (vbic_s64): Likewise.
26566         (vbic_u64): Likewise.
26567         (vbicq_s8): Likewise.
26568         (vbicq_s16): Likewise.
26569         (vbicq_s32): Likewise.
26570         (vbicq_s64): Likewise.
26571         (vbicq_u8): Likewise.
26572         (vbicq_u16): Likewise.
26573         (vbicq_u32): Likewise.
26574         (vbicq_u64): Likewise.
26575         (vorn_s8): Likewise.
26576         (vorn_s16): Likewise.
26577         (vorn_s32): Likewise.
26578         (vorn_u8): Likewise.
26579         (vorn_u16): Likewise.
26580         (vorn_u32): Likewise.
26581         (vorn_s64): Likewise.
26582         (vorn_u64): Likewise.
26583         (vornq_s8): Likewise.
26584         (vornq_s16): Likewise.
26585         (vornq_s32): Likewise.
26586         (vornq_s64): Likewise.
26587         (vornq_u8): Likewise.
26588         (vornq_u16): Likewise.
26589         (vornq_u32): Likewise.
26590         (vornq_u64): Likewise.
26592 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26594         * wide-int.cc (UTItype): Define.
26595         (UDWtype): Define for appropriate W_TYPE_SIZE.
26597 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
26599         PR tree-optimization/59100
26600         * tree-ssa-phiopt.c: Include tree-inline.h.
26601         (neutral_element_p, absorbing_element_p): New functions.
26602         (value_replacement): Handle conditional binary operations with a
26603         neutral or absorbing element.
26605 2014-05-08  Richard Biener  <rguenther@suse.de>
26607         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
26608         folding the expression.
26609         (valueize_expr): Remove.
26610         (visit_reference_op_load): Do not valueize the result of
26611         vn_get_expr_for.
26612         (simplify_binary_expression): Likewise.
26613         (simplify_unary_expression): Likewise.
26615 2014-05-08  Richard Biener  <rguenther@suse.de>
26617         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
26618         looking at TYPE_ARG_TYPES.
26620 2014-05-08  Richard Biener  <rguenther@suse.de>
26622         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26623         pointer propagation special-case.
26625 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
26627         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26628         core part of address expressions.
26630 2014-05-08  Alan Modra  <amodra@gmail.com>
26632         PR target/60737
26633         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26634         loads and stores when -mno-strict-align at any alignment.
26635         (expand_block_clear): Similarly.  Also correct calculation of
26636         instruction count.
26638 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26640         PR middle-end/39246
26641         * tree-complex.c (expand_complex_move): Keep line info when expanding
26642         complex move.
26643         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26644         of complex expression. Use new argument to display correct location
26645         for values coming from phi statement.
26646         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26647         (warn_uninitialized_phi): Pass location of phi argument to
26648         warn_uninit.
26649         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26650         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26652 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
26654         * config/rs6000/predicates.md (indexed_address_mem): New.
26655         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26656         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26657         fpstore_ux, fpstore_u.
26658         (sign_extend, indexed, update): New.
26659         (cell_micro): Adjust.
26660         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26661         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26662         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26663         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26664         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26665         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26666         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26667         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26668         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26669         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26670         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26671         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26672         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26673         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26674         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26676         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26677         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26678         *vsx_extract_<mode>_store): Adjust.
26679         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26680         is_cracked_insn, insn_must_be_first_in_group,
26681         insn_must_be_last_in_group): Adjust.
26683         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26684         Adjust.
26685         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26686         ppc440-fpstore): Adjust.
26687         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26688         ppc476-fpstore): Adjust.
26689         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26690         ppc601-fpstore): Adjust.
26691         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26692         Adjust.
26693         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26694         Adjust.
26695         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26696         ppc7450-fpstore): Adjust.
26697         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26698         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26699         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26700         Adjust.
26701         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26702         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26703         cell-fpstore, cell-fpstore-update): Adjust.
26704         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26705         ppce300c3_store, ppce300c3_fpstore): Adjust.
26706         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26707         e500mc_fpstore): Adjust.
26708         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26709         e500mc64_store, e500mc64_fpstore): Adjust.
26710         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26711         e5500_fpstore): Adjust.
26712         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26713         e6500_fpstore): Adjust.
26714         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26715         Adjust.
26716         * config/rs6000/power4.md (power4-load, power4-load-ext,
26717         power4-load-ext-update, power4-load-ext-update-indexed,
26718         power4-load-update-indexed, power4-load-update, power4-fpload,
26719         power4-fpload-update, power4-store, power4-store-update,
26720         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26721         Adjust.
26722         * config/rs6000/power5.md (power5-load, power5-load-ext,
26723         power5-load-ext-update, power5-load-ext-update-indexed,
26724         power5-load-update-indexed, power5-load-update, power5-fpload,
26725         power5-fpload-update, power5-store, power5-store-update,
26726         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26727         Adjust.
26728         * config/rs6000/power6.md (power6-load, power6-load-ext,
26729         power6-load-update, power6-load-update-indexed,
26730         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26731         power6-fpload-update, power6-store, power6-store-update,
26732         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26733         Adjust.
26734         * config/rs6000/power7.md (power7-load, power7-load-ext,
26735         power7-load-update, power7-load-update-indexed,
26736         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26737         power7-fpload-update, power7-store, power7-store-update,
26738         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26739         Adjust.
26740         * config/rs6000/power8.md (power8-load, power8-load-update,
26741         power8-load-ext, power8-load-ext-update, power8-fpload,
26742         power8-fpload-update, power8-store, power8-store-update-indexed,
26743         power8-fpstore, power8-fpstore-update): Adjust.
26744         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26745         Adjust.
26746         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26747         titan_lsu_store, titan_lsu_fpstore): Adjust.
26748         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26750 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
26752         PR target/60884
26753         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26754         unrolled byte insns.  Emit address increments after move insns.
26756 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
26758         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26759         const_gimple, rather than a gimple.
26760         (gimple_call_builtin_p): Likewise, for the three variants.
26762         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26763         (gimple_call_builtin_p): Likewise, for the three variants.
26765 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26767         PR tree-optimization/61095
26768         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26770 2014-05-07  Richard Biener  <rguenther@suse.de>
26772         PR tree-optimization/61034
26773         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26774         (maybe_skip_until): Use translate to take into account
26775         lattices when trying to do disambiguations.
26776         (get_continuation_for_phi_1): Likewise.
26777         (get_continuation_for_phi): Adjust for added translate arguments.
26778         (walk_non_aliased_vuses): Likewise.
26779         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26780         (walk_non_aliased_vuses): Likewise.
26781         (call_may_clobber_ref_p_1): Declare.
26782         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26783         calls.  Stop early if we are only supposed to disambiguate.
26784         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26786 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
26788         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26789         Emit an error when the function has arguments.
26791 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26793         * cfgloop.h (unswitch_loops): Remove.
26794         * doc/passes.texi: Remove references to loop-unswitch.c
26795         * timevar.def (TV_LOOP_UNSWITCH): Remove.
26797 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
26799         * tree-vect-data-refs.c (vect_grouped_load_supported): New
26800         check for loads group of length 3.
26801         (vect_permute_load_chain): New permutations for loads group of
26802         length 3.
26803         * tree-vect-stmts.c (vect_model_load_cost): Change cost
26804         of vec_perm_shuffle for the new permutations.
26806 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
26808         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26809         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26810         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26811         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26812         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26813         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26814         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26815         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26817 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26819         * loop-unswitch.c: Delete.
26821 2014-05-07  Richard Biener  <rguenther@suse.de>
26823         * config.gcc: Always set need_64bit_hwint to yes.
26825 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
26827         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26828         of using optimize_size.
26830 2014-05-06  Mike Stump  <mikestump@comcast.net>
26832         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26834 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
26836         * config/i386/sse.md (*mov<mode>_internal)
26837         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26838         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26839         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26840         (*<code><mode>3, *andnot<mode>3<mask_name>)
26841         (<mask_codefor><code><mode>3<mask_name>): Only consider
26842         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26844 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26846         Revert:
26847         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26849         * lra-constraints.c (valid_address_p): Move earlier in file.
26850         Add a constraint argument to the address_info version.
26851         (satisfies_memory_constraint_p): New function.
26852         (satisfies_address_constraint_p): Likewise.
26853         (process_alt_operands, curr_insn_transform): Use them.
26854         (process_address): Pass the constraint to valid_address_p when
26855         checking address operands.
26857 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
26859         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26860         to their respective blocks.  Fix inadvertent use of "node".
26862 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26864         * emit-rtl.c (init_derived_machine_modes): New functionm, split
26865         out from...
26866         (init_emit_once): ...here.
26867         * rtl.h (init_derived_machine_modes): Declare.
26868         * toplev.c (do_compile): Call it even if no_backend.
26870 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
26871             Mike Stump  <mikestump@comcast.net>
26872             Richard Sandiford  <rdsandiford@googlemail.com>
26873             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26875         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26876         (rtx_equal_for_memref_p): Update comment.
26877         (adjust_offset_for_component_ref): Use wide-int interfaces.
26878         * builtins.c (get_object_alignment_2): Likewise.
26879         (c_readstr): Likewise.
26880         (target_char_cast): Add comment.
26881         (determine_block_size): Use wide-int interfaces.
26882         (expand_builtin_signbit): Likewise.
26883         (fold_builtin_int_roundingfn): Likewise.
26884         (fold_builtin_bitop): Likewise.
26885         (fold_builtin_bswap): Likewise.
26886         (fold_builtin_logarithm): Use signop.
26887         (fold_builtin_pow): Likewise.
26888         (fold_builtin_memory_op): Use wide-int interfaces.
26889         (fold_builtin_object_size): Likewise.
26890         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26891         nb_iterations_estimate.
26892         (record_niter_bound): Use wide-int interfaces.
26893         (get_estimated_loop_iterations_int): Likewise.
26894         (get_estimated_loop_iterations): Likewise.
26895         (get_max_loop_iterations): Likewise.
26896         * cfgloop.h: Include wide-int.h.
26897         (struct nb_iter_bound): Change bound to widest_int.
26898         (struct loop): Change nb_iterations_upper_bound and
26899         nb_iterations_estimate to widest_int.
26900         (record_niter_bound): Switch to use widest_int.
26901         (get_estimated_loop_iterations): Likewise.
26902         (get_max_loop_iterations): Likewise.
26903         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26904         update for wide-int.
26905         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26906         * combine.c (try_combine): Likewise.
26907         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26908         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26909         interfaces.
26910         (aarch64_float_const_representable_p): Likewise.
26911         * config/arc/arc.c: Include wide-int.h.
26912         (arc_can_use_doloop_p): Use wide-int interfaces.
26913         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26914         (vfp3_const_double_index): Likewise.
26915         * config/avr/avr.c (avr_out_round): Likewise.
26916         (avr_fold_builtin): Likewise.
26917         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26918         (bfin_can_use_doloop_p): Likewise.
26919         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26920         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26921         * config/i386/i386.c: Include wide-int.h.
26922         (ix86_data_alignment): Use wide-int interfaces.
26923         (ix86_local_alignment): Likewise.
26924         (ix86_emit_swsqrtsf): Update real_from_integer.
26925         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26926         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26927         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26928         (zero_constant): Likewise.
26929         (input_operand): Likewise.
26930         (splat_input_operand): Likewise.
26931         (non_logical_cint_operand): Change const_double to const_wide_int.
26932         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26933         (easy_altivec_constant): Remove comment.
26934         (paired_expand_vector_init): Use CONSTANT_P.
26935         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26936         (rs6000_emit_move): Update checks.
26937         (rs6000_aggregate_candidate): Use wide-int interfaces.
26938         (rs6000_expand_ternop_builtin): Likewise.
26939         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26940         (rs6000_assemble_integer): Likewise.
26941         (rs6000_hash_constant): Likewise.
26942         (output_toc): Likewise.
26943         (rs6000_rtx_costs): Likewise.
26944         (rs6000_emit_swrsqrt); Update call to real_from_integer.
26945         * config/rs6000/rs6000-c.c: Include wide-int.h.
26946         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26947         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26948         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26949         Handle CONST_WIDE_INT.
26950         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26951         Use tree_fits_uhwi_p.
26952         * config/sparc/sparc.c: Include wide-int.h.
26953         (sparc_fold_builtin): Use wide-int interfaces.
26954         * config/vax/vax.c: Include wide-int.h.
26955         (vax_float_literal): Use real_from_integer.
26956         * coretypes.h (struct hwivec_def): New.
26957         (hwivec): New.
26958         (const_hwivec): New.
26959         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26960         (equiv_constant): Handle CONST_WIDE_INT.
26961         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26962         (cselib_hash_rtx): Handle CONST_WIDE_INT.
26963         * dbxout.c (stabstr_U): Use wide-int interfaces.
26964         (dbxout_type): Update to use cst_fits_shwi_p.
26965         * defaults.h (LOG2_BITS_PER_UNIT): Define.
26966         (TARGET_SUPPORTS_WIDE_INT): Add default.
26967         * dfp.c: Include wide-int.h.
26968         (decimal_real_to_integer2): Use wide-int interfaces and rename to
26969         decimal_real_to_integer.
26970         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26971         decimal_real_to_integer.
26972         * doc/generic.texi (Constant expressions): Update for wide_int.
26973         * doc/rtl.texi (const_double): Likewise.
26974         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26975         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26976         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26977         (REAL_VALUE_FROM_INT): Remove.
26978         (TARGET_SUPPORTS_WIDE_INT): New.
26979         * doc/tm.texi: Regenerate.
26980         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26981         * double-int.h: Include wide-int.h.
26982         (struct wi::int_traits): New.
26983         * dwarf2out.c (get_full_len): New.
26984         (dw_val_equal_p): Add case dw_val_class_wide_int.
26985         (size_of_loc_descr): Likewise.
26986         (output_loc_operands): Likewise.
26987         (insert_double): Remove.
26988         (insert_wide_int): New.
26989         (add_AT_wide): New.
26990         (print_die): Add case dw_val_class_wide_int.
26991         (attr_checksum): Likewise.
26992         (attr_checksum_ordered): Likewise.
26993         (same_dw_val_p): Likewise.
26994         (size_of_die): Likewise.
26995         (value_format): Likewise.
26996         (output_die): Likewise.
26997         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26998         Use wide-int.
26999         (clz_loc_descriptor): Use wide-int interfaces.
27000         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
27001         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
27002         (round_up_to_align): Use wide-int interfaces.
27003         (field_byte_offset): Likewise.
27004         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
27005         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
27006         CONST_DOUBLE handling.  Use wide-int interfaces.
27007         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
27008         (gen_enumeration_type_die): Use add_AT_wide.
27009         (hash_loc_operands): Add case dw_val_class_wide_int.
27010         (compare_loc_operands): Likewise.
27011         * dwarf2out.h: Include wide-int.h.
27012         (wide_int_ptr): New.
27013         (enum dw_val_class): Add dw_val_class_wide_int.
27014         (struct dw_val_struct): Add val_wide.
27015         * emit-rtl.c (const_wide_int_htab): New.
27016         (const_wide_int_htab_hash): New.
27017         (const_wide_int_htab_eq): New.
27018         (lookup_const_wide_int): New.
27019         (const_double_htab_hash): Use wide-int interfaces.
27020         (const_double_htab_eq): Likewise.
27021         (rtx_to_double_int): Conditionally compile for wide-int.
27022         (immed_double_int_const): Rename to immed_wide_int_const and
27023         update for wide-int.
27024         (immed_double_const): Conditionally compile for wide-int.
27025         (init_emit_once): Use wide-int interfaces.
27026         * explow.c (plus_constant): Likewise.
27027         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
27028         (lshift_value): Use wide-int interfaces.
27029         (expand_mult): Likewise.
27030         (choose_multiplier): Likewise.
27031         (expand_smod_pow2): Likewise.
27032         (make_tree): Likewise.
27033         * expr.c (convert_modes): Consolidate handling of constants.
27034         Use wide-int interfaces.
27035         (emit_group_load_1): Add note.
27036         (store_expr): Update comment.
27037         (get_inner_reference): Use wide-int interfaces.
27038         (expand_constructor): Update comment.
27039         (expand_expr_real_2): Use wide-int interfaces.
27040         (expand_expr_real_1): Likewise.
27041         (reduce_to_bit_field_precision): Likewise.
27042         (const_vector_from_tree): Likewise.
27043         * final.c: Include wide-int-print.h.
27044         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
27045         * fixed-value.c: Include wide-int.h.
27046         (fixed_from_string): Use wide-int interfaces.
27047         (fixed_to_decimal): Likewise.
27048         (fixed_convert_from_real): Likewise.
27049         (real_convert_from_fixed): Likewise.
27050         * fold-const.h (mem_ref_offset): Return an offset_int.
27051         (div_if_zero_remainder): Remove code parameter.
27052         * fold-const.c (div_if_zero_remainder): Remove code parameter.
27053         Use wide-int interfaces.
27054         (may_negate_without_overflow_p): Use wide-int interfaces.
27055         (negate_expr_p): Likewise.
27056         (fold_negate_expr): Likewise.
27057         (int_const_binop_1): Likewise.
27058         (const_binop): Likewise.
27059         (fold_convert_const_int_from_int): Likewise.
27060         (fold_convert_const_int_from_real): Likewise.
27061         (fold_convert_const_int_from_fixed): Likewise.
27062         (fold_convert_const_fixed_from_int): Likewise.
27063         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
27064         (sign_bit_p): Use wide-int interfaces.
27065         (make_range_step): Likewise.
27066         (build_range_check): Likewise.  Pass an integer of the correct type
27067         instead of using integer_one_node.
27068         (range_predecessor): Pass an integer of the correct type instead
27069         of using integer_one_node.
27070         (range_successor): Likewise.
27071         (merge_ranges): Likewise.
27072         (unextend): Use wide-int interfaces.
27073         (extract_muldiv_1): Likewise.
27074         (fold_div_compare): Likewise.
27075         (fold_single_bit_test): Likewise.
27076         (fold_sign_changed_comparison): Likewise.
27077         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
27078         (fold_plusminus_mult_expr): Use wide-int interfaces.
27079         (native_encode_int): Likewise.
27080         (native_interpret_int): Likewise.
27081         (fold_unary_loc): Likewise.
27082         (pointer_may_wrap_p): Likewise.
27083         (size_low_cst): Likewise.
27084         (mask_with_tz): Likewise.
27085         (fold_binary_loc): Likewise.
27086         (fold_ternary_loc): Likewise.
27087         (multiple_of_p): Likewise.
27088         (tree_call_nonnegative_warnv_p): Update calls to
27089         tree_int_cst_min_precision and real_from_integer.
27090         (fold_negate_const): Use wide-int interfaces.
27091         (fold_abs_const): Likewise.
27092         (fold_relational_const): Use tree_int_cst_lt.
27093         (round_up_loc): Use wide-int interfaces.
27094         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
27095         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
27096         * gengtype.c: Remove include of double-int.h.
27097         (do_typedef): Use wide-int interfaces.
27098         (open_base_files): Add wide-int.h.
27099         (main): Add offset_int and widest_int typedefs.
27100         * gengtype-lex.l: Handle "^".
27101         (CXX_KEYWORD): Add "static".
27102         * gengtype-parse.c (require3): New.
27103         (require_template_declaration): Handle constant template arguments
27104         and nested templates.
27105         * gengtype-state.c: Don't include "double-int.h".
27106         * genpreds.c (write_one_predicate_function): Update comment.
27107         (write_tm_constrs_h): Add check for hval and lval use in
27108         CONST_WIDE_INT.
27109         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
27110         (add_to_sequence): Likewise.
27111         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
27112         and const_double_operand.
27113         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
27114         interfaces.
27115         * gimple-fold.c (get_base_constructor): Likewise.
27116         (fold_array_ctor_reference): Likewise.
27117         (fold_nonarray_ctor_reference): Likewise.
27118         (fold_const_aggregate_ref_1): Likewise.
27119         (gimple_val_nonnegative_real_p): Likewise.
27120         (gimple_fold_indirect_ref): Likewise.
27121         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
27122         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
27123         (struct slsr_cand_d): Change index to be widest_int.
27124         (struct incr_info_d): Change incr to be widest_int.
27125         (alloc_cand_and_find_basis): Use wide-int interfaces.
27126         (slsr_process_phi): Likewise.
27127         (backtrace_base_for_ref): Likewise.  Return a widest_int.
27128         (restructure_reference): Take a widest_int instead of a double_int.
27129         (slsr_process_ref): Use wide-int interfaces.
27130         (create_mul_ssa_cand): Likewise.
27131         (create_mul_imm_cand): Likewise.
27132         (create_add_ssa_cand): Likewise.
27133         (create_add_imm_cand): Take a widest_int instead of a double_int.
27134         (slsr_process_add): Use wide-int interfaces.
27135         (slsr_process_cast): Likewise.
27136         (slsr_process_copy): Likewise.
27137         (dump_candidate): Likewise.
27138         (dump_incr_vec): Likewise.
27139         (replace_ref): Likewise.
27140         (cand_increment): Likewise.  Return a widest_int.
27141         (cand_abs_increment): Likewise.
27142         (replace_mult_candidate): Take a widest_int instead of a double_int.
27143         (replace_unconditional_candidate): Use wide-int interfaces.
27144         (incr_vec_index): Take a widest_int instead of a double_int.
27145         (create_add_on_incoming_edge): Likewise.
27146         (create_phi_basis): Use wide-int interfaces.
27147         (replace_conditional_candidate): Likewise.
27148         (record_increment): Take a widest_int instead of a double_int.
27149         (record_phi_increments): Use wide-int interfaces.
27150         (phi_incr_cost): Take a widest_int instead of a double_int.
27151         (lowest_cost_path): Likewise.
27152         (total_savings): Likewise.
27153         (analyze_increments): Use wide-int interfaces.
27154         (ncd_with_phi): Take a widest_int instead of a double_int.
27155         (ncd_of_cand_and_phis): Likewise.
27156         (nearest_common_dominator_for_cands): Likewise.
27157         (insert_initializers): Use wide-int interfaces.
27158         (all_phi_incrs_profitable): Likewise.
27159         (replace_one_candidate): Likewise.
27160         (replace_profitable_candidates): Likewise.
27161         * godump.c: Include wide-int-print.h.
27162         (go_output_typedef): Use wide-int interfaces.
27163         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
27164         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
27165         (build_loop_iteration_domains): Likewise.
27166         * hooks.h: Include wide-int.h rather than double-int.h.
27167         (hook_bool_dint_dint_uint_bool_true): Delete.
27168         (hook_bool_wint_wint_uint_bool_true): Declare.
27169         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
27170         (hook_bool_wint_wint_uint_bool_true): New.
27171         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
27172         interfaces.
27173         (ubsan_expand_si_overflow_mul_check): Likewise.
27174         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
27175         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
27176         (get_ancestor_addr_info): Likewise.
27177         (ipa_modify_call_arguments): Likewise.
27178         * loop-doloop.c (doloop_modify): Likewise.
27179         (doloop_optimize): Likewise.
27180         * loop-iv.c (iv_number_of_iterations): Likewise.
27181         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
27182         (unroll_loop_constant_iterations): Likewise.
27183         (decide_unroll_runtime_iterations): Likewise.
27184         (unroll_loop_runtime_iterations): Likewise.
27185         (decide_peel_simple): Likewise.
27186         (decide_unroll_stupid): Likewise.
27187         * lto-streamer-in.c (streamer_read_wi): Add.
27188         (input_cfg): Use wide-int interfaces.
27189         (lto_input_tree_1): Likewise.
27190         * lto-streamer-out.c (streamer_write_wi): Add.
27191         (hash_tree): Use wide-int interfaces.
27192         (output_cfg): Likewise.
27193         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
27194         (GTFILES): Add wide-int.h and signop.h.
27195         (TAGS): Look for .cc files too.
27196         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
27197         * optabs.c (expand_subword_shift): Likewise.
27198         (expand_doubleword_shift): Likewise.
27199         (expand_absneg_bit): Likewise.
27200         (expand_copysign_absneg): Likewise.
27201         (expand_copysign_bit): Likewise.
27202         * postreload.c (reload_cse_simplify_set): Likewise.
27203         * predict.c (predict_iv_comparison): Likewise.
27204         * pretty-print.h: Include wide-int-print.h.
27205         (pp_wide_int) New.
27206         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
27207         * print-tree.c: Include wide-int-print.h.
27208         (print_node_brief): Use wide-int interfaces.
27209         (print_node): Likewise.
27210         * read-rtl.c (validate_const_wide_int): New.
27211         (read_rtx_code): Add CONST_WIDE_INT case.
27212         * real.c: Include wide-int.h.
27213         (real_to_integer2): Delete.
27214         (real_to_integer): New function, returning a wide_int.
27215         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27216         (ten_to_ptwo): Update call to real_from_integer.
27217         (real_digit): Likewise.
27218         * real.h: Include signop.h, wide-int.h and insn-modes.h.
27219         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
27220         (REAL_VALUE_TO_INT): Delete.
27221         (real_to_integer): Declare a wide-int form.
27222         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27223         * recog.c (const_int_operand): Improve comment.
27224         (const_scalar_int_operand): New.
27225         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
27226         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
27227         (split_double): Likewise.
27228         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
27229         (rtx_size): Likewise.
27230         (rtx_alloc_stat_v): New.
27231         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
27232         (cwi_output_hex): New.
27233         (iterative_hash_rtx): Handle CONST_WIDE_INT.
27234         (cwi_check_failed_bounds): New.
27235         * rtl.def (CONST_WIDE_INT): New.
27236         * rtl.h: Include <utility> and wide-int.h.
27237         (struct hwivec_def): New.
27238         (CWI_GET_NUM_ELEM): New.
27239         (CWI_PUT_NUM_ELEM): New.
27240         (struct rtx_def): Add num_elem and hwiv.
27241         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
27242         (CASE_CONST_UNIQUE): Likewise.
27243         (CASE_CONST_ANY): Likewise.
27244         (CONST_SCALAR_INT_P): Likewise.
27245         (CONST_WIDE_INT_P): New.
27246         (CWI_ELT): New.
27247         (HWIVEC_CHECK): New.
27248         (cwi_check_failed_bounds): New.
27249         (CWI_ELT): New.
27250         (HWIVEC_CHECK): New.
27251         (CONST_WIDE_INT_VEC) New.
27252         (CONST_WIDE_INT_NUNITS) New.
27253         (CONST_WIDE_INT_ELT) New.
27254         (rtx_mode_t): New type.
27255         (wi::int_traits <rtx_mode_t>): New.
27256         (wi::shwi): New.
27257         (wi::min_value): New.
27258         (wi::max_value): New.
27259         (rtx_alloc_v) New.
27260         (const_wide_int_alloc): New.
27261         (immed_wide_int_const): New.
27262         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
27263         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
27264         * signop.h: New file.
27265         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
27266         (simplify_const_unary_operation): Use wide-int interfaces.
27267         (simplify_binary_operation_1): Likewise.
27268         (simplify_const_binary_operation): Likewise.
27269         (simplify_const_relational_operation): Likewise.
27270         (simplify_immed_subreg): Likewise.
27271         * stmt.c (expand_case): Likewise.
27272         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
27273         signop rather than a bool.
27274         * stor-layout.c (layout_type): Use wide-int interfaces.
27275         (initialize_sizetypes): Update calls to
27276         set_min_and_max_values_for_integral_type.
27277         (set_min_and_max_values_for_integral_type): Take a signop rather
27278         than a bool.  Use wide-int interfaces.
27279         (fixup_signed_type): Update accordingly.  Remove
27280         HOST_BITS_PER_DOUBLE_INT limit.
27281         (fixup_unsigned_type): Likewise.
27282         * system.h (STATIC_CONSTANT_P): New.
27283         (STATIC_ASSERT): New.
27284         * target.def (can_use_doloop_p): Take widest_ints rather than
27285         double_ints.
27286         * target.h: Include wide-int.h rather than double-int.h.
27287         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
27288         than double_ints.
27289         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
27290         rather than INT_CST_LT_UNSIGNED.
27291         (can_use_doloop_if_innermost): Take widest_ints rather than
27292         double_ints.
27293         * tree-affine.c: Include wide-int-print.h.
27294         (double_int_ext_for_comb): Delete.
27295         (wide_int_ext_for_comb): New.
27296         (aff_combination_zero): Use wide-int interfaces.
27297         (aff_combination_const): Take a widest_int instead of a double_int.
27298         (aff_combination_elt): Use wide-int interfaces.
27299         (aff_combination_scale): Take a widest_int instead of a double_int.
27300         (aff_combination_add_elt): Likewise.
27301         (aff_combination_add_cst): Likewise.
27302         (aff_combination_add): Use wide-int interfaces.
27303         (aff_combination_convert): Likewise.
27304         (tree_to_aff_combination): Likewise.
27305         (add_elt_to_tree): Take a widest_int instead of a double_int.
27306         (aff_combination_to_tree): Use wide-int interfaces.
27307         (aff_combination_remove_elt): Likewise.
27308         (aff_combination_add_product): Take a widest_int instead of
27309         a double_int.
27310         (aff_combination_mult): Use wide-int interfaces.
27311         (aff_combination_expand): Likewise.
27312         (double_int_constant_multiple_p): Delete.
27313         (wide_int_constant_multiple_p): New.
27314         (aff_combination_constant_multiple_p): Take a widest_int pointer
27315         instead of a double_int pointer.
27316         (print_aff): Use wide-int interfaces.
27317         (get_inner_reference_aff): Take a widest_int pointer
27318         instead of a double_int pointer.
27319         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
27320         * tree-affine.h: Include wide-int.h.
27321         (struct aff_comb_elt): Change type of coef to widest_int.
27322         (struct affine_tree_combination): Change type of offset to widest_int.
27323         (double_int_ext_for_comb): Delete.
27324         (wide_int_ext_for_comb): New.
27325         (aff_combination_const): Use widest_int instead of double_int.
27326         (aff_combination_scale): Likewise.
27327         (aff_combination_add_elt): Likewise.
27328         (aff_combination_constant_multiple_p): Likewise.
27329         (get_inner_reference_aff): Likewise.
27330         (aff_comb_cannot_overlap_p): Likewise.
27331         (aff_combination_zero_p): Use wide-int interfaces.
27332         * tree.c: Include tree.h.
27333         (init_ttree): Use make_int_cst.
27334         (tree_code_size): Removed code for INTEGER_CST case.
27335         (tree_size): Add INTEGER_CST case.
27336         (make_node_stat): Update comment.
27337         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
27338         (build_int_cst_type): Use wide-int interfaces.
27339         (double_int_to_tree): Likewise.
27340         (double_int_fits_to_tree_p): Delete.
27341         (force_fit_type_double): Delete.
27342         (force_fit_type): New.
27343         (int_cst_hash_hash): Use wide-int interfaces.
27344         (int_cst_hash_eq): Likewise.
27345         (build_int_cst_wide): Delete.
27346         (wide_int_to_tree): New.
27347         (cache_integer_cst): Use wide-int interfaces.
27348         (build_low_bits_mask): Likewise.
27349         (cst_and_fits_in_hwi): Likewise.
27350         (real_value_from_int_cst): Likewise.
27351         (make_int_cst_stat): New.
27352         (integer_zerop): Use wide_int interfaces.
27353         (integer_onep): Likewise.
27354         (integer_all_onesp): Likewise.
27355         (integer_pow2p): Likewise.
27356         (integer_nonzerop): Likewise.
27357         (tree_log2): Likewise.
27358         (tree_floor_log2): Likewise.
27359         (tree_ctz): Likewise.
27360         (int_size_in_bytes): Likewise.
27361         (mem_ref_offset): Return an offset_int rather than a double_int.
27362         (build_type_attribute_qual_variant): Use wide_int interfaces.
27363         (type_hash_eq): Likewise
27364         (tree_int_cst_equal): Likewise.
27365         (tree_int_cst_lt): Delete.
27366         (tree_int_cst_compare): Likewise.
27367         (tree_fits_shwi_p): Use wide_int interfaces.
27368         (tree_fits_uhwi_p): Likewise.
27369         (tree_int_cst_sign_bit): Likewise.
27370         (tree_int_cst_sgn): Likewise.
27371         (tree_int_cst_min_precision): Take a signop rather than a bool.
27372         (simple_cst_equal): Use wide_int interfaces.
27373         (compare_tree_int): Likewise.
27374         (iterative_hash_expr): Likewise.
27375         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
27376         INT_CST_LT.
27377         (get_type_static_bounds): Use wide_int interfaces.
27378         (tree_int_cst_elt_check_failed): New.
27379         (build_common_tree_nodes): Reordered to set prec before filling in
27380         value.
27381         (int_cst_value): Check cst_and_fits_in_hwi.
27382         (widest_int_cst_value): Use wide_int interfaces.
27383         (upper_bound_in_type): Likewise.
27384         (lower_bound_in_type): Likewise.
27385         (num_ending_zeros): Likewise.
27386         (drop_tree_overflow): Likewise.
27387         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
27388         (gen_conditions_for_pow_cst_base): Likewise.
27389         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
27390         (group_case_labels_stmt): Use wide-int interfaces.
27391         (verify_gimple_assign_binary): Likewise.
27392         (print_loop): Likewise.
27393         * tree-chrec.c (tree_fold_binomial): Likewise.
27394         * tree-core.h (struct tree_base): Add int_length.
27395         (struct tree_int_cst): Change rep of value.
27396         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
27397         (dr_may_alias_p): Likewise.
27398         (max_stmt_executions_tree): Likewise.
27399         * tree.def (INTEGER_CST): Update comment.
27400         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
27401         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
27402         * tree-dump.c: Include wide-int.h and wide-int-print.h.
27403         (dequeue_and_dump): Use wide-int interfaces.
27404         * tree.h: Include wide-int.h.
27405         (NULL_TREE): Moved to earlier loc in file.
27406         (TREE_INT_CST_ELT_CHECK): New.
27407         (tree_int_cst_elt_check_failed): New.
27408         (TYPE_SIGN): New.
27409         (TREE_INT_CST): Delete.
27410         (TREE_INT_CST_LOW): Use wide-int interfaces.
27411         (TREE_INT_CST_HIGH): Delete.
27412         (TREE_INT_CST_NUNITS): New.
27413         (TREE_INT_CST_EXT_NUNITS): Likewise.
27414         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
27415         (TREE_INT_CST_ELT): Likewise.
27416         (INT_CST_LT): Delete.
27417         (tree_int_cst_elt_check): New (two forms).
27418         (type_code_size): Update comment.
27419         (make_int_cst_stat, make_int_cst): New.
27420         (tree_to_double_int): Delete.
27421         (double_int_fits_to_tree_p): Delete.
27422         (force_fit_type_double): Delete.
27423         (build_int_cstu): Replace with out-of-line function.
27424         (build_int_cst_wide): Delete.
27425         (tree_int_cst_lt): Define inline.
27426         (tree_int_cst_le): New.
27427         (tree_int_cst_compare): Define inline.
27428         (tree_int_cst_min_precision): Take a signop rather than a bool.
27429         (wi::int_traits <const_tree>): New.
27430         (wi::int_traits <tree>): New.
27431         (wi::extended_tree): New.
27432         (wi::int_traits <wi::extended_tree>): New.
27433         (wi::to_widest): New.
27434         (wi::to_offset): New.
27435         (wi::fits_to_tree_p): New.
27436         (wi::min_value): New.
27437         (wi::max_value): New.
27438         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
27439         (copy_tree_body_r): Likewise.
27440         * tree-object-size.c (compute_object_offset): Likewise.
27441         (addr_object_size): Likewise.
27442         * tree-predcom.c: Include wide-int-print.h.
27443         (struct dref_d): Change type of offset to widest_int.
27444         (dump_dref): Call wide-int printer.
27445         (aff_combination_dr_offset): Use wide-int interfaces.
27446         (determine_offset): Take a widest_int pointer rather than a
27447         double_int pointer.
27448         (split_data_refs_to_components): Use wide-int interfaces.
27449         (suitable_component_p): Likewise.
27450         (order_drefs): Likewise.
27451         (add_ref_to_chain): Likewise.
27452         (valid_initializer_p): Likewise.
27453         (determine_roots_comp): Likewise.
27454         * tree-pretty-print.c: Include wide-int-print.h.
27455         (dump_generic_node): Use wide-int interfaces.
27456         * tree-sra.c (sra_ipa_modify_expr): Likewise.
27457         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
27458         (move_fixed_address_to_symbol): Likewise.
27459         (move_hint_to_base): Likewise.
27460         (move_pointer_to_base): Likewise.
27461         (move_variant_to_index): Likewise.
27462         (most_expensive_mult_to_index): Likewise.
27463         (addr_to_parts): Likewise.
27464         (copy_ref_info): Likewise.
27465         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27466         (indirect_refs_may_alias_p): Likewise.
27467         (stmt_kills_ref_p_1): Likewise.
27468         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
27469         * tree-ssa-ccp.c: Update comment at top of file.  Include
27470         wide-int-print.h.
27471         (struct prop_value_d): Change type of mask to widest_int.
27472         (extend_mask): New function.
27473         (dump_lattice_value): Use wide-int interfaces.
27474         (get_default_value): Likewise.
27475         (set_constant_value): Likewise.
27476         (set_value_varying): Likewise.
27477         (valid_lattice_transition): Likewise.
27478         (set_lattice_value): Likewise.
27479         (value_to_double_int): Delete.
27480         (value_to_wide_int): New.
27481         (get_value_from_alignment): Use wide-int interfaces.
27482         (get_value_for_expr): Likewise.
27483         (do_dbg_cnt): Likewise.
27484         (ccp_finalize): Likewise.
27485         (ccp_lattice_meet): Likewise.
27486         (bit_value_unop_1): Use widest_ints rather than double_ints.
27487         (bit_value_binop_1): Likewise.
27488         (bit_value_unop): Use wide-int interfaces.
27489         (bit_value_binop): Likewise.
27490         (bit_value_assume_aligned): Likewise.
27491         (evaluate_stmt): Likewise.
27492         (ccp_fold_stmt): Likewise.
27493         (visit_cond_stmt): Likewise.
27494         (ccp_visit_stmt): Likewise.
27495         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27496         (constant_pointer_difference): Likewise.
27497         (associate_pointerplus): Likewise.
27498         (combine_conversions): Likewise.
27499         * tree-ssa-loop.h: Include wide-int.h.
27500         (struct tree_niter_desc): Change type of max to widest_int.
27501         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
27502         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
27503         (remove_redundant_iv_tests): Likewise.
27504         (canonicalize_loop_induction_variables): Likewise.
27505         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
27506         (constant_multiple_of): Take a widest_int pointer instead of
27507         a double_int pointer.
27508         (get_computation_aff): Use wide-int interfaces.
27509         (ptr_difference_cost): Likewise.
27510         (difference_cost): Likewise.
27511         (get_loop_invariant_expr_id): Likewise.
27512         (get_computation_cost_at): Likewise.
27513         (iv_elimination_compare_lt): Likewise.
27514         (may_eliminate_iv): Likewise.
27515         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
27516         instead of double_int.
27517         (max_loop_iterations): Likewise.
27518         (max_stmt_executions): Likewise.
27519         (estimated_stmt_executions): Likewise.
27520         * tree-ssa-loop-niter.c: Include wide-int-print.h.
27521         (split_to_var_and_offset): Use wide-int interfaces.
27522         (determine_value_range): Likewise.
27523         (bound_difference_of_offsetted_base): Likewise.
27524         (bounds_add): Take a widest_int instead of a double_int.
27525         (number_of_iterations_ne_max): Use wide-int interfaces.
27526         (number_of_iterations_ne): Likewise.
27527         (number_of_iterations_lt_to_ne): Likewise.
27528         (assert_loop_rolls_lt): Likewise.
27529         (number_of_iterations_lt): Likewise.
27530         (number_of_iterations_le): Likewise.
27531         (number_of_iterations_cond): Likewise.
27532         (number_of_iterations_exit): Likewise.
27533         (finite_loop_p): Likewise.
27534         (derive_constant_upper_bound_assign): Likewise.
27535         (derive_constant_upper_bound): Return a widest_int.
27536         (derive_constant_upper_bound_ops): Likewise.
27537         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
27538         (record_estimate): Take a widest_int rather than a double_int.
27539         (record_nonwrapping_iv): Use wide-int interfaces.
27540         (double_int_cmp): Delete.
27541         (wide_int_cmp): New.
27542         (bound_index): Take a widest_int rather than a double_int.
27543         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
27544         (maybe_lower_iteration_bound): Likewise.
27545         (estimate_numbers_of_iterations_loop): Likewise.
27546         (estimated_loop_iterations): Take a widest_int pointer than than
27547         a double_int pointer.
27548         (estimated_loop_iterations_int): Use wide-int interfaces.
27549         (max_loop_iterations): Take a widest_int pointer than than
27550         a double_int pointer.
27551         (max_loop_iterations_int): Use wide-int interfaces.
27552         (max_stmt_executions): Take a widest_int pointer than than
27553         a double_int pointer.
27554         (estimated_stmt_executions): Likewise.
27555         (n_of_executions_at_most): Use wide-int interfaces.
27556         (scev_probably_wraps_p): Likewise.
27557         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
27558         to real_to_integer.
27559         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
27560         interfaces.
27561         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
27562         double_ints.  Adjust for trailing_wide_ints <3> representation.
27563         (set_nonzero_bits): Likewise.
27564         (get_range_info): Return wide_ints rather than double_ints.
27565         Adjust for trailing_wide_ints <3> representation.
27566         (get_nonzero_bits): Likewise.
27567         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
27568         representation.
27569         * tree-ssanames.h (struct range_info_def): Replace min, max and
27570         nonzero_bits with a trailing_wide_ints <3>.
27571         (set_range_info): Use wide_int_refs rather than double_ints.
27572         (set_nonzero_bits): Likewise.
27573         (get_range_info): Return wide_ints rather than double_ints.
27574         (get_nonzero_bits): Likewise.
27575         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
27576         * tree-ssa-pre.c (phi_translate_1): Likewise.
27577         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
27578         (acceptable_pow_call): Likewise.
27579         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
27580         interfaces.
27581         (vn_reference_fold_indirect): Likewise.
27582         (vn_reference_maybe_forwprop_address): Likewise.
27583         (valueize_refs_1): Likewise.
27584         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
27585         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
27586         tree_int_cst_lt and tree_int_cst_le.
27587         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
27588         interfaces.
27589         (streamer_alloc_tree): Likewise.
27590         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
27591         (streamer_write_tree_header): Likewise.
27592         (streamer_write_integer_cst): Likewise.
27593         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
27594         (build_constructors): Likewise.
27595         (array_value_type): Likewise.
27596         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
27597         (vect_check_gather): Likewise.
27598         * tree-vect-generic.c (build_replicated_const): Likewise.
27599         (expand_vector_divmod): Likewise.
27600         * tree-vect-loop.c (vect_transform_loop): Likewise.
27601         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27602         (vect_do_peeling_for_alignment): Likewise.
27603         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
27604         * tree-vrp.c: Include wide-int.h.
27605         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
27606         (extract_range_from_assert): Use wide-int interfaces.
27607         (vrp_int_const_binop): Likewise.
27608         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
27609         double_int pointers.
27610         (ranges_from_anti_range): Use wide-int interfaces.
27611         (quad_int_cmp): Delete.
27612         (quad_int_pair_sort): Likewise.
27613         (extract_range_from_binary_expr_1): Use wide-int interfaces.
27614         (extract_range_from_unary_expr_1): Likewise.
27615         (adjust_range_with_scev): Likewise.
27616         (masked_increment): Take and return wide_ints rather than double_ints.
27617         (register_edge_assert_for_2): Use wide-int interfaces.
27618         (check_array_ref): Likewise.
27619         (search_for_addr_array): Likewise.
27620         (maybe_set_nonzero_bits): Likewise.
27621         (union_ranges): Pass an integer of the correct type instead of
27622         using integer_one_node.
27623         (intersect_ranges): Likewise.
27624         (simplify_truth_ops_using_ranges): Likewise.
27625         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27626         (range_fits_type_p): Likewise.
27627         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
27628         a bool.
27629         (simplify_conversion_using_ranges): Use wide-int interfaces.
27630         (simplify_float_conversion_using_ranges): Likewise.
27631         (vrp_finalize): Likewise.
27632         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27633         (gimple_stringops_transform): Likewise.
27634         * varasm.c (decode_addr_const): Likewise.
27635         (const_hash_1): Likewise.
27636         (const_rtx_hash_1): Likewise
27637         (output_constant): Likewise.
27638         (array_size_for_constructor): Likewise.
27639         (output_constructor_regular_field): Likewise.
27640         (output_constructor_bitfield): Likewise.
27641         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27642         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27643         GENERATOR_FILEs.
27644         * gencheck.c: Define BITS_PER_UNIT.
27645         * wide-int.cc: New.
27646         * wide-int.h: New.
27647         * wide-int-print.cc: New.
27648         * wide-int-print.h: New.
27650 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27652         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27654 2014-05-06  Richard Biener  <rguenther@suse.de>
27656         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27657         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27658         (TODO_verify_all): Adjust.
27659         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27660         TODO_verify_stmts and TODO_verify_rtl_sharing.
27661         * bb-reorder.c: Likewise.
27662         * cfgexpand.c: Likewise.
27663         * cprop.c: Likewise.
27664         * cse.c: Likewise.
27665         * function.c: Likewise.
27666         * fwprop.c: Likewise.
27667         * gcse.c: Likewise.
27668         * gimple-ssa-isolate-paths.c: Likewise.
27669         * gimple-ssa-strength-reduction.c: Likewise.
27670         * ipa-split.c: Likewise.
27671         * loop-init.c: Likewise.
27672         * loop-unroll.c: Likewise.
27673         * lower-subreg.c: Likewise.
27674         * modulo-sched.c: Likewise.
27675         * postreload-gcse.c: Likewise.
27676         * predict.c: Likewise.
27677         * recog.c: Likewise.
27678         * sched-rgn.c: Likewise.
27679         * store-motion.c: Likewise.
27680         * tracer.c: Likewise.
27681         * trans-mem.c: Likewise.
27682         * tree-call-cdce.c: Likewise.
27683         * tree-cfg.c: Likewise.
27684         * tree-cfgcleanup.c: Likewise.
27685         * tree-complex.c: Likewise.
27686         * tree-eh.c: Likewise.
27687         * tree-emutls.c: Likewise.
27688         * tree-if-conv.c: Likewise.
27689         * tree-into-ssa.c: Likewise.
27690         * tree-loop-distribution.c: Likewise.
27691         * tree-object-size.c: Likewise.
27692         * tree-parloops.c: Likewise.
27693         * tree-pass.h: Likewise.
27694         * tree-sra.c: Likewise.
27695         * tree-ssa-ccp.c: Likewise.
27696         * tree-ssa-copy.c: Likewise.
27697         * tree-ssa-copyrename.c: Likewise.
27698         * tree-ssa-dce.c: Likewise.
27699         * tree-ssa-dom.c: Likewise.
27700         * tree-ssa-dse.c: Likewise.
27701         * tree-ssa-forwprop.c: Likewise.
27702         * tree-ssa-ifcombine.c: Likewise.
27703         * tree-ssa-loop-ch.c: Likewise.
27704         * tree-ssa-loop-ivcanon.c: Likewise.
27705         * tree-ssa-loop.c: Likewise.
27706         * tree-ssa-math-opts.c: Likewise.
27707         * tree-ssa-phiopt.c: Likewise.
27708         * tree-ssa-phiprop.c: Likewise.
27709         * tree-ssa-pre.c: Likewise.
27710         * tree-ssa-reassoc.c: Likewise.
27711         * tree-ssa-sink.c: Likewise.
27712         * tree-ssa-strlen.c: Likewise.
27713         * tree-ssa-tail-merge.c: Likewise.
27714         * tree-ssa-uncprop.c: Likewise.
27715         * tree-switch-conversion.c: Likewise.
27716         * tree-tailcall.c: Likewise.
27717         * tree-vect-generic.c: Likewise.
27718         * tree-vectorizer.c: Likewise.
27719         * tree-vrp.c: Likewise.
27720         * tsan.c: Likewise.
27721         * var-tracking.c: Likewise.
27722         * bt-load.c: Likewise.
27723         * cfgcleanup.c: Likewise.
27724         * combine-stack-adj.c: Likewise.
27725         * combine.c: Likewise.
27726         * compare-elim.c: Likewise.
27727         * config/epiphany/resolve-sw-modes.c: Likewise.
27728         * config/i386/i386.c: Likewise.
27729         * config/mips/mips.c: Likewise.
27730         * config/s390/s390.c: Likewise.
27731         * config/sh/sh_treg_combine.cc: Likewise.
27732         * config/sparc/sparc.c: Likewise.
27733         * dce.c: Likewise.
27734         * dse.c: Likewise.
27735         * final.c: Likewise.
27736         * ifcvt.c: Likewise.
27737         * mode-switching.c: Likewise.
27738         * passes.c: Likewise.
27739         * postreload.c: Likewise.
27740         * ree.c: Likewise.
27741         * reg-stack.c: Likewise.
27742         * regcprop.c: Likewise.
27743         * regrename.c: Likewise.
27744         * web.c: Likewise.
27746 2014-05-06  Richard Biener  <rguenther@suse.de>
27748         PR middle-end/61070
27749         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27750         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27752 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
27754         PR ipa/60965
27755         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27757 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
27758             Tom de Vries  <tom@codesourcery.com>
27760         * target.def (call_fusage_contains_non_callee_clobbers): New
27761         DEFHOOKPOD.
27762         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27763         Hooks to @menu.
27764         (@node Miscellaneous Register Hooks): New node.
27765         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27766         * doc/tm.texi: Regenerate.
27768 2014-05-05  Marek Polacek  <polacek@redhat.com>
27770         PR driver/61065
27771         * opts.c (common_handle_option): Call error_at instead of warning_at.
27773 2014-05-05  Richard Biener  <rguenther@suse.de>
27775         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27776         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
27777         under the TODO_verify_il umbrella.
27779 2014-05-05  Richard Biener  <rguenther@suse.de>
27781         * passes.c (execute_function_todo): Move TODO_verify_flow under
27782         the TODO_verify_ul umbrella.
27784 2014-05-05  Richard Biener  <rguenther@suse.de>
27786         PR middle-end/61010
27787         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27788         X & CST away from a CST that is the mask of a mode.
27790 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27792         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27793         int argument to enum machine_mode.
27794         (picochip_class_max_nregs): Ditto.
27795         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27796         (picochip_class_max_nregs): Ditto.
27798 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27800         * target.def: Add new target hook.
27801         * doc/tm.texi: Regenerate.
27802         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27803         * targhooks.c (default_keep_leaf_when_profiled): New function.
27805         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27806         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27808 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
27810         PR tree-optimization/60363
27811         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27812         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
27813         (update_destination_phis): New parameter.
27814         (create_edge_and_update_destination_phis): Ditto.
27815         (ssa_fix_duplicate_block_edges): Pass new arguments.
27816         (thread_single_edge): Ditto.
27818 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
27820         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27821         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27822         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27823         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27824         Use RS6000_BTM_HARD_FLOAT.
27825         (BU_MISC_2): Likewise.
27826         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27827         RS6000_BTM_HARD_FLOAT.
27828         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27829         is explicitly used.
27830         (rs6000_invalid_builtin): Add hard floating builtin support.
27831         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27832         hard float builtins.
27833         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27835 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27837         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27838         Add missing function* argument.
27840 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27842         * lra-constraints.c (valid_address_p): Move earlier in file.
27843         Add a constraint argument to the address_info version.
27844         (satisfies_memory_constraint_p): New function.
27845         (satisfies_address_constraint_p): Likewise.
27846         (process_alt_operands, curr_insn_transform): Use them.
27847         (process_address): Pass the constraint to valid_address_p when
27848         checking address operands.
27850 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27852         * config/mips/mips.c (mips_isa_rev): New variable.
27853         (mips_set_architecture): Set it.
27854         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27855         from mips_isa_rev.
27856         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27857         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27858         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27859         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27860         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27861         conditions in terms of mips_isa_rev.
27862         (mips_isa_rev): Declare.
27864 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27866         * config/sh/sh-mem.cc: Use tabs instead of spaces.
27867         (prob_unlikely, prob_likely): Make variables const.
27869 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
27871         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27873 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27875         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27877 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27879         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27880         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27881         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27882         functions.
27883         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27884         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27885         sh_pass_in_reg_p.
27886         Replace usage of ROUND_REG with sh_round_reg.
27887         Use CEIL instead of ROUND_ADVANCE.
27889 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27891         PR target/61026
27892         * config/sh/sh.c: Include stdlib headers before everything else.
27894 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
27896         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27897         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27898         (gimplify_adjust_omp_clauses): Simd region is never
27899         directly nested in combined parallel.  Instead, for linear
27900         with copyin/copyout, if in combined for simd loop, make decl
27901         firstprivate/lastprivate on OMP_FOR.
27902         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27903         expand_omp_for_static_chunk): When setting endvar, also set
27904         fd->loop.v to the same value.
27906 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27908         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27910 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
27912         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27913         expression.
27915 2014-05-02  Marek Polacek  <polacek@redhat.com>
27917         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27919 2014-05-02  Kito Cheng  <kito@0xlab.org>
27921         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27922         to a C expression marco.
27923         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27924         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27925         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27926         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27927         HONOR_REG_ALLOC_ORDER.
27928         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27930 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27932         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27934 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27936         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27938 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27940         * tree-if-conv.c (is_cond_scalar_reduction): New function.
27941         (convert_scalar_cond_reduction): Likewise.
27942         (predicate_scalar_phi): Add recognition and transformation
27943         of simple conditioanl reduction to be vectorizable.
27945 2014-05-01  Marek Polacek  <polacek@redhat.com>
27947         PR c/43245
27948         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27950 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
27952         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27953         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27954         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27955         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27956         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27957         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27958         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27959         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27961 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
27963         * config/arc/arc.opt (mlra): Move comment above option name
27964         to avoid mis-parsing as language options.
27966 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27968         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27969         * config/sol2.h: ... here.
27970         * config/sol2-10.h: Remove.
27972         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27973         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27974         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27975         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27976         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27977         * config/sol2.h: ... here.
27978         (SECTION_NAME_FORMAT): Don't redefine.
27979         (STARTFILE_ARCH32_SPEC): Rename to ...
27980         (STARTFILE_ARCH_SPEC): ... this.
27981         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27982         * config/sparc/sol2.h: ... here.
27983         (SECTION_NAME_FORMAT): Don't undef.
27984         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27985         (SUBTARGET_EXTRA_SPECS): Remove.
27986         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27988         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27989         (MD_STARTFILE_PREFIX): Remove.
27990         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27991         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27992         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27993         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27994         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27995         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27996         * config/i386/sol2.h: ... here.
27997         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27998         * config/i386/sol2-bi.h: Remove.
27999         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
28000         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
28002         * config/i386/t-sol2-64: Rename to ...
28003         * config/i386/t-sol2: ... this.
28004         * config/sparc/t-sol2-64: Rename to ...
28005         * config/sparc/t-sol2: ... this.
28007         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
28008         sol2_tm_file_head, sol2_tm_file_tail.
28009         Include ${cpu_type}/sol2.h before sol2.h.
28010         Remove sol2-10.h.
28011         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
28012         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
28013         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
28014         Reflect i386/t-sol2-64 renaming.
28015         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
28016         Reflect sparc/t-sol2-64 renaming.
28018 2014-04-30  Richard Biener  <rguenther@suse.de>
28020         * passes.c (execute_function_todo): Move TODO_verify_stmts
28021         and TODO_verify_ssa under the TODO_verify_il umbrella.
28022         * tree-ssa.h (verify_ssa): Adjust prototype.
28023         * tree-ssa.c (verify_ssa): Add parameter to tell whether
28024         we should verify SSA operands.
28025         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
28026         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
28027         whether we should verify whether not throwing stmts have EH info.
28028         * graphite-scop-detection.c (create_sese_edges): Adjust.
28029         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
28030         * tree-eh.c (lower_try_finally_switch): Do not add the
28031         default case label twice.
28033 2014-04-30  Marek Polacek  <polacek@redhat.com>
28035         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
28036         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
28037         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
28038         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
28040 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28042         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
28043         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
28044         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
28045         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
28046         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
28047         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
28048         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
28049         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
28051 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
28053         * tree-cfg.c (dump_function_to_file): Dump the return type of
28054         functions, in a line to itself before the function body, mimicking
28055         the layout of a C function.
28057 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
28059         PR tree-optimization/60971
28060         * tree-tailcall.c (process_assignment): Reject conversions which
28061         reduce precision.
28063 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28065         * calls.c (initialize_argument_information): Always treat
28066         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
28067         (expand_call): Likewise.
28068         (emit_library_call_calue_1): Likewise.
28069         * expr.c (PUSH_ARGS_REVERSED): Do not define.
28070         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
28071         code accordingly.
28073 2014-04-29  Nick Clifton  <nickc@redhat.com>
28075         * config/msp430/msp430.md (umulsidi): Fix typo.
28076         (mulhisi3): Enable even inside interrupt handlers.
28077         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
28078         bigger return address pushed in large mode.
28080 2014-04-29  Nick Clifton  <nickc@redhat.com>
28082         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
28083         (arc_init_reg_tables): Use a machine_mode enum to iterate over
28084         available modes.
28085         * config/m32r/m32r.c (init_reg_tables): Likewise.
28086         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
28087         enum to hold the modes.
28089 2014-04-29  Richard Biener  <rguenther@suse.de>
28091         * dominance.c (free_dominance_info): Add overload with
28092         function parameter.
28093         (dom_info_state): Likewise.
28094         (dom_info_available_p): Likewise.
28095         * basic-block.h (free_dominance_info, dom_info_state,
28096         dom_info_available_p): Declare overloads.
28097         * passes.c (execute_function_todo): Verify that verifiers
28098         don't change dominator info state.  Drop dominator info
28099         for IPA pass invocations.
28100         * cgraph.c (release_function_body): Restore asserts that
28101         dominator information is released.
28103 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
28105         * doc/invoke.texi: Fix typo.
28106         * tree-vrp.c: Fix typos.
28107         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
28109 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28111         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
28113 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
28115         * config/aarch64/aarch64-builtins.c
28116         (aarch64_types_storestruct_lane_qualifiers): New.
28117         (TYPES_STORESTRUCT_LANE): Likewise.
28118         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
28119         (st3_lane): Likewise.
28120         (st4_lane): Likewise.
28121         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
28122         (vec_store_lanesci_lane<mode>): Likewise.
28123         (vec_store_lanesxi_lane<mode>): Likewise.
28124         (aarch64_st2_lane<VQ:mode>): Likewise.
28125         (aarch64_st3_lane<VQ:mode>): Likewise.
28126         (aarch64_st4_lane<VQ:mode>): Likewise.
28127         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
28128         * config/aarch64/arm_neon.h
28129         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
28130         use new macro arguments.
28131         (__ST3_LANE_FUNC): Likewise.
28132         (__ST4_LANE_FUNC): Likewise.
28133         * config/aarch64/iterators.md (V_TWO_ELEM): New.
28134         (V_THREE_ELEM): Likewise.
28135         (V_FOUR_ELEM): Likewise.
28137 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
28139         * doc/gimple.texi: Replace the description of the now-defunct
28140         union gimple_statement_d with a diagram showing the
28141         gimple_statement_base class hierarchy and its relationships to
28142         the GSS_ and GIMPLE_ enums.
28144 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
28146         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
28147         * config/aarch64/aarch64.c
28148         (aarch64_cannot_change_mode_class): Weaken conditions.
28149         (aarch64_modes_tieable_p): New.
28150         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
28152 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
28154         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28155         (loadsync_<mode>): Change mode.
28156         (load_quadpti, store_quadpti): New.
28157         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28158         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28160 2014-04-28  Martin Jambor  <mjambor@suse.cz>
28162         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
28163         same alias type as the original statement.
28164         (subreplacement_assignment_data): New type.
28165         (handle_unscalarized_data_in_subtree): New type of parameter,
28166         generate new memory accesses with same alias type as the original
28167         statement.
28168         (load_assign_lhs_subreplacements): Likewise.
28169         (sra_modify_constructor_assign): Generate new memory accesses with
28170         same alias type as the original statement.
28172 2014-04-28  Richard Biener  <rguenther@suse.de>
28174         * tree-pass.h (TODO_verify_il): Define.
28175         (TODO_verify_all): Complete properly.
28176         * passes.c (execute_function_todo): Move existing loop-closed
28177         SSA verification under TODO_verify_il.
28178         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
28179         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
28180         Fix tree sharing issue.
28182 2014-04-28  Richard Biener  <rguenther@suse.de>
28184         PR middle-end/60092
28185         * builtins.def (DEF_C11_BUILTIN): Add.
28186         (BUILT_IN_ALIGNED_ALLOC): Likewise.
28187         * coretypes.h (enum function_class): Add function_c11_misc.
28188         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
28189         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
28190         (call_may_clobber_ref_p_1): Likewise.
28191         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
28192         (mark_all_reaching_defs_necessary_1): Likewise.
28193         (propagate_necessity): Likewise.
28194         (eliminate_unnecessary_stmts): Likewise.
28195         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
28197 2014-04-28  Richard Biener  <rguenther@suse.de>
28199         * tree-vrp.c (vrp_var_may_overflow): Remove.
28200         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
28201         with overflow immediately bump to one before that value and
28202         let iteration figure out overflow status.
28204 2014-04-28  Richard Biener  <rguenther@suse.de>
28206         * configure.ac: Do valgrind header checks unconditionally.
28207         Add --enable-valgrind-annotations.
28208         * system.h: Guard valgrind header inclusion with
28209         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
28210         * alloc-pool.c (pool_alloc, pool_free): Use
28211         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
28212         to guard possibly dead code.
28213         * config.in: Regenerated.
28214         * configure: Likewise.
28216 2014-04-28  Jeff Law  <law@redhat.com>
28218         PR tree-optimization/60902
28219         * tree-ssa-threadedge.c
28220         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
28221         over real defs when invalidating outputs from statements that do not
28222         produce useful outputs for threading.
28224 2014-04-28  Richard Biener  <rguenther@suse.de>
28226         PR tree-optimization/60979
28227         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
28228         SCOPs that end in a block with a successor with abnormal
28229         predecessors.
28231 2014-04-28  Richard Biener  <rguenther@suse.de>
28233         * tree-pass.h (execute_pass_list): Adjust prototype.
28234         * passes.c (pass_manager::execute_early_local_passes): Adjust.
28235         (do_per_function): Change callback signature, push all actual
28236         work to the callbals.
28237         (do_per_function_toporder): Likewise.
28238         (execute_function_dump): Adjust.
28239         (execute_function_todo): Likewise.
28240         (clear_last_verified): Likewise.
28241         (verify_curr_properties): Likewise.
28242         (update_properties_after_pass): Likewise.
28243         (execute_pass_list_1): Split out from ...
28244         (execute_pass_list): ... here.  Adjust.
28245         (execute_ipa_pass_list): Likewise.
28246         * cgraphunit.c (cgraph_add_new_function): Adjust.
28247         (analyze_function): Likewise.
28248         (expand_function): Likewise.
28249         * cgraph.c (release_function_body): Free dominance info
28250         here instead of asserting it was magically freed elsewhere.
28252 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28254         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
28255         * configure: Regenerate.
28256         * config/sparc/sparc.opt (muser-mode): New option.
28257         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
28258         for LEON3.
28259         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
28260         * doc/invoke.texi (SPARC options): Document -muser-mode.
28262 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
28264         * cselib.c (find_slot_memmode): Delete.
28265         (cselib_hasher): Change compare_type to a struct.
28266         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
28267         constants.
28268         (preserve_constants_and_equivs): Adjust for new compare_type.
28269         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
28270         (wrap_constant): Delete.
28271         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
28273 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
28275         * doc/install.texi (Building with profile feedback): Remove
28276         outdated sentence.
28278 2014-04-26  Tom de Vries  <tom@codesourcery.com>
28280         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
28281         array accesses.
28283 2014-04-25  Cary Coutant  <ccoutant@google.com>
28285         PR debug/60929
28286         * dwarf2out.c (should_move_die_to_comdat): A type definition
28287         can contain a subprogram definition, but don't move it to a
28288         comdat unit.
28289         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
28290         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
28291         from original DIE.
28292         (clone_tree_hash): Rename to...
28293         (clone_tree_partial): ...this; change callers.  Copy
28294         DW_TAG_subprogram DIEs as declarations.
28295         (copy_decls_walk): Don't copy children of a declaration into a
28296         type unit.
28298 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
28300         PR target/60969
28301         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
28302         alternative 12.
28304 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
28306         * config/arm/predicates.md (call_insn_operand): Add long_call check.
28307         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
28308         reg for long_call.
28309         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
28310         restriction.
28312 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28314         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
28316 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28318         PR tree-optimization/60930
28319         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
28320         creating a multiply candidate by folding two constant
28321         multiplicands when the result overflows.
28323 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
28325         PR tree-optimization/60960
28326         * tree-vect-generic.c (expand_vector_operation): Only call
28327         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
28329 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28331         * expr.c (clobber_reg_mode): New function.
28332         * expr.h (clobber_reg): New function.
28334 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28336         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
28337         clobbers.
28339 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
28340             Tom de Vries  <tom@codesourcery.com>
28342         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
28343         handle.
28344         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
28345         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
28346         new argument to find_all_hard_reg_sets call.
28348 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28350         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
28351         Use HOST_WIDE_INT_C for mask literal.
28352         (aarch_rev16_shleft_mask_imm_p): Likewise.
28354 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
28356         PR target/60941
28357         * config/sparc/sparc.md (ashlsi3_extend): Delete.
28359 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
28361         PR preprocessor/56540
28362         * config/i386/i386-c.c (ix86_target_macros): Define
28363         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
28365 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28367         * configure.ac (tga_func): Remove.
28368         (LIB_TLS_SPEC): Remove.
28369         * configure: Regenerate.
28370         * config.in: Regenerate.
28371         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
28373 2014-04-25  Richard Biener  <rguenther@suse.de>
28375         PR ipa/60912
28376         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
28377         call stmt use/clobber sets during stmt walk instead of
28378         walking the possibly incomplete set of caller edges.
28380 2014-04-25  Richard Biener  <rguenther@suse.de>
28382         PR ipa/60911
28383         * passes.c (apply_ipa_transforms): Inline into only caller ...
28384         (execute_one_pass): ... here.  Properly bring in function
28385         bodies for nodes we want to apply IPA transforms to.
28387 2014-04-24  Cong Hou  <congh@google.com>
28389         PR tree-optimization/60896
28390         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
28391         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
28392         (vect_mark_pattern_stmts): Set the def type of all statements in
28393         PATTERN_DEF_SEQ as vect_internal_def.
28395 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28397         * doc/extend.texi (PowerPC Built-in Functions): Document new
28398         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
28399         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
28401         * config/rs6000/predicates.md (const_0_to_3_operand): New
28402         predicate to match 0..3 integer constants.
28404         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
28405         to support adding miscellaneous builtin functions.
28406         (BU_DFP_MISC_2): Likewise.
28407         (BU_P7_MISC_1): Likewise.
28408         (BU_P7_MISC_2): Likewise.
28409         (BU_P8V_MISC_3): Likewise.
28410         (BU_MISC_1): Likewise.
28411         (BU_MISC_2): Likewise.
28412         (DIVWE): Add extended divide builtin functions.
28413         (DIVWEO): Likewise.
28414         (DIVWEU): Likewise.
28415         (DIVWEUO): Likewise.
28416         (DIVDE): Likewise.
28417         (DIVDEO): Likewise.
28418         (DIVDEU): Likewise.
28419         (DIVDEUO): Likewise.
28420         (DXEX): Add decimal floating-point builtin functions.
28421         (DXEXQ): Likewise.
28422         (DDEDPD): Likewise.
28423         (DDEDPDQ): Likewise.
28424         (DENBCD): Likewise.
28425         (DENBCDQ): Likewise.
28426         (DIEX): Likewise.
28427         (DIEXQ): Likewise.
28428         (DSCLI): Likewise.
28429         (DSCLIQ): Likewise.
28430         (DSCRI): Likewise.
28431         (DSCRIQ): Likewise.
28432         (CDTBCD): Add new BCD builtin functions.
28433         (CBCDTD): Likewise.
28434         (ADDG6S): Likewise.
28435         (BCDADD): Likewise.
28436         (BCDADD_LT): Likewise.
28437         (BCDADD_EQ): Likewise.
28438         (BCDADD_GT): Likewise.
28439         (BCDADD_OV): Likewise.
28440         (BCDSUB): Likewise.
28441         (BCDSUB_LT): Likewise.
28442         (BCDSUB_EQ): Likewise.
28443         (BCDSUB_GT): Likewise.
28444         (BCDSUB_OV): Likewise.
28445         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
28446         (UNPACK_TD): Likewise.
28447         (PACK_TF): Likewise.
28448         (UNPACK_TF): Likewise.
28449         (UNPACK_TF_0): Likewise.
28450         (UNPACK_TF_1): Likewise.
28451         (PACK_V1TI): Likewise.
28452         (UNPACK_V1TI): Likewise.
28454         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28455         support for decimal floating point builtin functions.
28456         (rs6000_expand_ternop_builtin): Add checks for the new builtin
28457         functions that take constant arguments.
28458         (rs6000_invalid_builtin): Add decimal floating point builtin support.
28459         (rs6000_init_builtins): Setup long double, _Decimal64, and
28460         _Decimal128 types for new builtin functions.
28461         (builtin_function_type): Set the unsigned flags appropriately for
28462         the new builtin functions.
28463         (rs6000_opt_masks): Add support for decimal floating point builtin
28464         functions.
28466         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
28467         floating point builtin functions.
28468         (RS6000_BTM_COMMON): Likewise.
28469         (RS6000_BTI_long_double): Likewise.
28470         (RS6000_BTI_dfloat64): Likewise.
28471         (RS6000_BTI_dfloat128): Likewise.
28472         (long_double_type_internal_node): Likewise.
28473         (dfloat64_type_internal_node): Likewise.
28474         (dfloat128_type_internal_node): Likewise.
28476         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
28477         2.07 bcd arithmetic instructions.
28478         (UNSPEC_BCDSUB): Likewise.
28479         (UNSPEC_BCD_OVERFLOW): Likewise.
28480         (UNSPEC_BCD_ADD_SUB): Likewise.
28481         (bcd_add_sub): Likewise.
28482         (BCD_TEST): Likewise.
28483         (bcd<bcd_add_sub>): Likewise.
28484         (bcd<bcd_add_sub>_test): Likewise.
28485         (bcd<bcd_add_sub>_test2): Likewise.
28486         (bcd<bcd_add_sub>_<code>): Likewise.
28487         (peephole2 for combined bcd ops): Likewise.
28489         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
28490         decimal floating point builtin functions.
28491         (UNSPEC_DENBCD): Likewise.
28492         (UNSPEC_DXEX): Likewise.
28493         (UNSPEC_DIEX): Likewise.
28494         (UNSPEC_DSCLI): Likewise.
28495         (UNSPEC_DSCRI): Likewise.
28496         (D64_D128): Likewise.
28497         (dfp_suffix): Likewise.
28498         (dfp_ddedpd_<mode>): Likewise.
28499         (dfp_denbcd_<mode>): Likewise.
28500         (dfp_dxex_<mode>): Likewise.
28501         (dfp_diex_<mode>): Likewise.
28502         (dfp_dscli_<mode>): Likewise.
28503         (dfp_dscri_<mode>): Likewise.
28505         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
28506         builtin functions.
28507         (UNSPEC_CDTBCD): Likewise.
28508         (UNSPEC_CBCDTD): Likewise.
28509         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
28510         (UNSPEC_DIVEO): Likewise.
28511         (UNSPEC_DIVEU): Likewise.
28512         (UNSPEC_DIVEUO): Likewise.
28513         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
28514         pack/unpack 128-bit types.
28515         (UNSPEC_PACK_128BIT): Likewise.
28516         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
28517         (udiv<mode>3): Use idiv_ldiv mode attribute.
28518         (div<mode>3): Likewise.
28519         (addg6s): Add new BCD builtin functions.
28520         (cdtbcd): Likewise.
28521         (cbcdtd): Likewise.
28522         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
28523         (div_extend): Likewise.
28524         (div<div_extend>_<mode>"): Likewise.
28525         (FP128_64): Add support for new builtin functions to pack/unpack
28526         128-bit types.
28527         (unpack<mode>): Likewise.
28528         (unpacktf_0): Likewise.
28529         (unpacktf_1): Likewise.
28530         (unpack<mode>_dm): Likewise.
28531         (unpack<mode>_nodm): Likewise.
28532         (pack<mode>): Likewise.
28533         (unpackv1ti): Likewise.
28534         (packv1ti): Likewise.
28536 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
28538         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
28539         is disabled.
28541 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
28543         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
28544         * gimplify.c (omp_is_private): Change last argument's type to int.
28545         Only diagnose lastprivate if the simd argument is 1, only diagnose
28546         linear if the simd argument is 2.
28547         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
28548         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
28549         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
28550         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
28551         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
28552         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28553         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
28554         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28555         * tree-nested.c (convert_nonlocal_omp_clauses,
28556         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
28558 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
28560         PR target/60822
28561         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
28562         operand 1.
28564 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
28566         * flag-types.h (enum ivar_visibility): Add.
28568 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
28570         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
28571         function * argument.
28573 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
28575         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
28577 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28578             Tom de Vries  <tom@codesourcery.com>
28580         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
28581         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
28582         reg-note.
28583         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
28584         * emit-rtl.c (try_split): Same.
28586 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28587             Tom de Vries  <tom@codesourcery.com>
28589         * common.opt (fuse-caller-save): New option.
28591 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
28593         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
28594         elements for big-endian.
28596 2014-04-24  Richard Biener  <rguenther@suse.de>
28598         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
28599         during TER and instead use the sepops interface for expanding
28600         non-GIMPLE_SINGLE_RHS.
28602 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28604         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
28605         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
28607 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28609         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
28610         assembler 64-bit option.
28611         * configure: Regenerate.
28613 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28615         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
28616         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
28617         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
28618         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
28619         (TARGET_CRYPTO): Take TARGET_SIMD into account.
28621 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28623         * config/aarch64/aarch64-builtins.c
28624         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28625         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28626         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28627         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28628         builtins.
28629         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28630         (Vrevsuff): New mode attribute.
28632 2014-04-24  Terry Guo  <terry.guo@arm.com>
28634         * config/arm/arm.h (machine_function): Define variable
28635         after_arm_reorg here.
28636         * config/arm/arm.c (after_arm_reorg): Remove the definition.
28637         (arm_split_constant): Update the way to access variable
28638         after_arm_reorg.
28639         (arm_reorg): Ditto.
28640         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28642 2014-04-23  Tom de Vries  <tom@codesourcery.com>
28644         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28646 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
28648         * is-a.h: Update comments to reflect the following changes to the
28649         "pointerness" of the API, making the template parameter match the
28650         return type, allowing use of is-a.h with typedefs of pointers.
28651         (is_a_helper::cast): Return a T rather then a pointer to a T, so
28652         that the return type matches the parameter to the is_a_helper.
28653         (as_a): Likewise.
28654         (dyn_cast): Likewise.
28656         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28657         pointer from the is-a.h API.
28659         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28660         (is_a_helper <cgraph_node *>::test): ...this, matching change to
28661         is-a.h API.
28662         (is_a_helper <varpool_node>::test): Likewise, convert to...
28663         (is_a_helper <varpool_node *>::test): ...this.
28665         (varpool_first_variable): Update for removal of implicit pointer
28666         from the is-a.h API.
28667         (varpool_next_variable): Likewise.
28668         (varpool_first_static_initializer): Likewise.
28669         (varpool_next_static_initializer): Likewise.
28670         (varpool_first_defined_variable): Likewise.
28671         (varpool_next_defined_variable): Likewise.
28672         (cgraph_first_defined_function): Likewise.
28673         (cgraph_next_defined_function): Likewise.
28674         (cgraph_first_function): Likewise.
28675         (cgraph_next_function): Likewise.
28676         (cgraph_first_function_with_gimple_body): Likewise.
28677         (cgraph_next_function_with_gimple_body): Likewise.
28678         (cgraph_alias_target): Likewise.
28679         (varpool_alias_target): Likewise.
28680         (cgraph_function_or_thunk_node): Likewise.
28681         (varpool_variable_node): Likewise.
28682         (symtab_real_symbol_p): Likewise.
28683         * cgraphunit.c (referred_to_p): Likewise.
28684         (analyze_functions): Likewise.
28685         (handle_alias_pairs): Likewise.
28686         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28687         * gimple-ssa.h (gimple_vuse_op): Likewise.
28688         (gimple_vdef_op): Likewise.
28689         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28690         * gimple.c (gimple_build_asm_1): Likewise.
28691         (gimple_build_try): Likewise.
28692         (gimple_build_resx): Likewise.
28693         (gimple_build_eh_dispatch): Likewise.
28694         (gimple_build_omp_for): Likewise.
28695         (gimple_omp_for_set_clauses): Likewise.
28697         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28698         (is_a_helper <gimple_statement_asm *>::test): ...this.
28699         (is_a_helper <gimple_statement_bind>::test): Convert to...
28700         (is_a_helper <gimple_statement_bind *>::test): ...this.
28701         (is_a_helper <gimple_statement_call>::test): Convert to...
28702         (is_a_helper <gimple_statement_call *>::test): ...this.
28703         (is_a_helper <gimple_statement_catch>::test): Convert to...
28704         (is_a_helper <gimple_statement_catch *>::test): ...this.
28705         (is_a_helper <gimple_statement_resx>::test): Convert to...
28706         (is_a_helper <gimple_statement_resx *>::test): ...this.
28707         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28708         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28709         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28710         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28711         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28712         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28713         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28714         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28715         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28716         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28717         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28718         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28719         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28720         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28721         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28722         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28723         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28724         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28725         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28726         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28727         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28728         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28729         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28730         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28731         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28732         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28733         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28734         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28735         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28736         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28737         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28738         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28739         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28740         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28741         (is_a_helper <gimple_statement_phi>::test): Convert to...
28742         (is_a_helper <gimple_statement_phi *>::test): ...this.
28743         (is_a_helper <gimple_statement_transaction>::test): Convert to...
28744         (is_a_helper <gimple_statement_transaction *>::test): ...this.
28745         (is_a_helper <gimple_statement_try>::test): Convert to...
28746         (is_a_helper <gimple_statement_try *>::test): ...this.
28747         (is_a_helper <gimple_statement_wce>::test): Convert to...
28748         (is_a_helper <gimple_statement_wce *>::test): ...this.
28749         (is_a_helper <const gimple_statement_asm>::test): Convert to...
28750         (is_a_helper <const gimple_statement_asm *>::test): ...this.
28751         (is_a_helper <const gimple_statement_bind>::test): Convert to...
28752         (is_a_helper <const gimple_statement_bind *>::test): ...this.
28753         (is_a_helper <const gimple_statement_call>::test): Convert to...
28754         (is_a_helper <const gimple_statement_call *>::test): ...this.
28755         (is_a_helper <const gimple_statement_catch>::test): Convert to...
28756         (is_a_helper <const gimple_statement_catch *>::test): ...this.
28757         (is_a_helper <const gimple_statement_resx>::test): Convert to...
28758         (is_a_helper <const gimple_statement_resx *>::test): ...this.
28759         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28760         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28761         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28762         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28763         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28764         Convert to...
28765         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28766         ...this.
28767         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28768         Convert to...
28769         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28770         ...this.
28771         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28772         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28773         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28774         to...
28775         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28776         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28777         to...
28778         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28779         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28780         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28781         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28782         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28783         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28784         to...
28785         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28786         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28787         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28788         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28789         to...
28790         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28791         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28792         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28793         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28794         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28795         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28796         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28797         (is_a_helper <const gimple_statement_phi>::test): Convert to...
28798         (is_a_helper <const gimple_statement_phi *>::test): ...this.
28799         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28800         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28801         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28802         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28803         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28804         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28805         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28806         to...
28807         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28808         ...this.
28809         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28810         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28812         (gimple_use_ops): Update for removal of implicit pointer from the
28813         is-a.h API.
28814         (gimple_set_use_ops): Likewise.
28815         (gimple_vuse): Likewise.
28816         (gimple_vdef): Likewise.
28817         (gimple_vuse_ptr): Likewise.
28818         (gimple_vdef_ptr): Likewise.
28819         (gimple_set_vuse): Likewise.
28820         (gimple_set_vdef): Likewise.
28821         (gimple_omp_return_set_lhs): Likewise.
28822         (gimple_omp_return_lhs): Likewise.
28823         (gimple_omp_return_lhs_ptr): Likewise.
28824         (gimple_call_fntype): Likewise.
28825         (gimple_call_set_fntype): Likewise.
28826         (gimple_call_set_internal_fn): Likewise.
28827         (gimple_call_use_set): Likewise.
28828         (gimple_call_clobber_set): Likewise.
28829         (gimple_bind_vars): Likewise.
28830         (gimple_bind_set_vars): Likewise.
28831         (gimple_bind_body_ptr): Likewise.
28832         (gimple_bind_set_body): Likewise.
28833         (gimple_bind_add_stmt): Likewise.
28834         (gimple_bind_block): Likewise.
28835         (gimple_bind_set_block): Likewise.
28836         (gimple_asm_ninputs): Likewise.
28837         (gimple_asm_noutputs): Likewise.
28838         (gimple_asm_nclobbers): Likewise.
28839         (gimple_asm_nlabels): Likewise.
28840         (gimple_asm_input_op): Likewise.
28841         (gimple_asm_input_op_ptr): Likewise.
28842         (gimple_asm_output_op): Likewise.
28843         (gimple_asm_output_op_ptr): Likewise.
28844         (gimple_asm_set_output_op): Likewise.
28845         (gimple_asm_clobber_op): Likewise.
28846         (gimple_asm_set_clobber_op): Likewise.
28847         (gimple_asm_label_op): Likewise.
28848         (gimple_asm_set_label_op): Likewise.
28849         (gimple_asm_string): Likewise.
28850         (gimple_catch_types): Likewise.
28851         (gimple_catch_types_ptr): Likewise.
28852         (gimple_catch_handler_ptr): Likewise.
28853         (gimple_catch_set_types): Likewise.
28854         (gimple_catch_set_handler): Likewise.
28855         (gimple_eh_filter_types): Likewise.
28856         (gimple_eh_filter_types_ptr): Likewise.
28857         (gimple_eh_filter_failure_ptr): Likewise.
28858         (gimple_eh_filter_set_types): Likewise.
28859         (gimple_eh_filter_set_failure): Likewise.
28860         (gimple_eh_must_not_throw_fndecl): Likewise.
28861         (gimple_eh_must_not_throw_set_fndecl): Likewise.
28862         (gimple_eh_else_n_body_ptr): Likewise.
28863         (gimple_eh_else_e_body_ptr): Likewise.
28864         (gimple_eh_else_set_n_body): Likewise.
28865         (gimple_eh_else_set_e_body): Likewise.
28866         (gimple_try_eval_ptr): Likewise.
28867         (gimple_try_cleanup_ptr): Likewise.
28868         (gimple_try_set_eval): Likewise.
28869         (gimple_try_set_cleanup): Likewise.
28870         (gimple_wce_cleanup_ptr): Likewise.
28871         (gimple_wce_set_cleanup): Likewise.
28872         (gimple_phi_capacity): Likewise.
28873         (gimple_phi_num_args): Likewise.
28874         (gimple_phi_result): Likewise.
28875         (gimple_phi_result_ptr): Likewise.
28876         (gimple_phi_set_result): Likewise.
28877         (gimple_phi_arg): Likewise.
28878         (gimple_phi_set_arg): Likewise.
28879         (gimple_resx_region): Likewise.
28880         (gimple_resx_set_region): Likewise.
28881         (gimple_eh_dispatch_region): Likewise.
28882         (gimple_eh_dispatch_set_region): Likewise.
28883         (gimple_omp_critical_name): Likewise.
28884         (gimple_omp_critical_name_ptr): Likewise.
28885         (gimple_omp_critical_set_name): Likewise.
28886         (gimple_omp_for_clauses): Likewise.
28887         (gimple_omp_for_clauses_ptr): Likewise.
28888         (gimple_omp_for_set_clauses): Likewise.
28889         (gimple_omp_for_collapse): Likewise.
28890         (gimple_omp_for_index): Likewise.
28891         (gimple_omp_for_index_ptr): Likewise.
28892         (gimple_omp_for_set_index): Likewise.
28893         (gimple_omp_for_initial): Likewise.
28894         (gimple_omp_for_initial_ptr): Likewise.
28895         (gimple_omp_for_set_initial): Likewise.
28896         (gimple_omp_for_final): Likewise.
28897         (gimple_omp_for_final_ptr): Likewise.
28898         (gimple_omp_for_set_final): Likewise.
28899         (gimple_omp_for_incr): Likewise.
28900         (gimple_omp_for_incr_ptr): Likewise.
28901         (gimple_omp_for_set_incr): Likewise.
28902         (gimple_omp_for_pre_body_ptr): Likewise.
28903         (gimple_omp_for_set_pre_body): Likewise.
28904         (gimple_omp_parallel_clauses): Likewise.
28905         (gimple_omp_parallel_clauses_ptr): Likewise.
28906         (gimple_omp_parallel_set_clauses): Likewise.
28907         (gimple_omp_parallel_child_fn): Likewise.
28908         (gimple_omp_parallel_child_fn_ptr): Likewise.
28909         (gimple_omp_parallel_set_child_fn): Likewise.
28910         (gimple_omp_parallel_data_arg): Likewise.
28911         (gimple_omp_parallel_data_arg_ptr): Likewise.
28912         (gimple_omp_parallel_set_data_arg): Likewise.
28913         (gimple_omp_task_clauses): Likewise.
28914         (gimple_omp_task_clauses_ptr): Likewise.
28915         (gimple_omp_task_set_clauses): Likewise.
28916         (gimple_omp_task_child_fn): Likewise.
28917         (gimple_omp_task_child_fn_ptr): Likewise.
28918         (gimple_omp_task_set_child_fn): Likewise.
28919         (gimple_omp_task_data_arg): Likewise.
28920         (gimple_omp_task_data_arg_ptr): Likewise.
28921         (gimple_omp_task_set_data_arg): Likewise.
28922         (gimple_omp_taskreg_clauses): Likewise.
28923         (gimple_omp_taskreg_clauses_ptr): Likewise.
28924         (gimple_omp_taskreg_set_clauses): Likewise.
28925         (gimple_omp_taskreg_child_fn): Likewise.
28926         (gimple_omp_taskreg_child_fn_ptr): Likewise.
28927         (gimple_omp_taskreg_set_child_fn): Likewise.
28928         (gimple_omp_taskreg_data_arg): Likewise.
28929         (gimple_omp_taskreg_data_arg_ptr): Likewise.
28930         (gimple_omp_taskreg_set_data_arg): Likewise.
28931         (gimple_omp_task_copy_fn): Likewise.
28932         (gimple_omp_task_copy_fn_ptr): Likewise.
28933         (gimple_omp_task_set_copy_fn): Likewise.
28934         (gimple_omp_task_arg_size): Likewise.
28935         (gimple_omp_task_arg_size_ptr): Likewise.
28936         (gimple_omp_task_set_arg_size): Likewise.
28937         (gimple_omp_task_arg_align): Likewise.
28938         (gimple_omp_task_arg_align_ptr): Likewise.
28939         (gimple_omp_task_set_arg_align): Likewise.
28940         (gimple_omp_single_clauses): Likewise.
28941         (gimple_omp_single_clauses_ptr): Likewise.
28942         (gimple_omp_single_set_clauses): Likewise.
28943         (gimple_omp_target_clauses): Likewise.
28944         (gimple_omp_target_clauses_ptr): Likewise.
28945         (gimple_omp_target_set_clauses): Likewise.
28946         (gimple_omp_target_child_fn): Likewise.
28947         (gimple_omp_target_child_fn_ptr): Likewise.
28948         (gimple_omp_target_set_child_fn): Likewise.
28949         (gimple_omp_target_data_arg): Likewise.
28950         (gimple_omp_target_data_arg_ptr): Likewise.
28951         (gimple_omp_target_set_data_arg): Likewise.
28952         (gimple_omp_teams_clauses): Likewise.
28953         (gimple_omp_teams_clauses_ptr): Likewise.
28954         (gimple_omp_teams_set_clauses): Likewise.
28955         (gimple_omp_sections_clauses): Likewise.
28956         (gimple_omp_sections_clauses_ptr): Likewise.
28957         (gimple_omp_sections_set_clauses): Likewise.
28958         (gimple_omp_sections_control): Likewise.
28959         (gimple_omp_sections_control_ptr): Likewise.
28960         (gimple_omp_sections_set_control): Likewise.
28961         (gimple_omp_for_set_cond): Likewise.
28962         (gimple_omp_for_cond): Likewise.
28963         (gimple_omp_atomic_store_set_val): Likewise.
28964         (gimple_omp_atomic_store_val): Likewise.
28965         (gimple_omp_atomic_store_val_ptr): Likewise.
28966         (gimple_omp_atomic_load_set_lhs): Likewise.
28967         (gimple_omp_atomic_load_lhs): Likewise.
28968         (gimple_omp_atomic_load_lhs_ptr): Likewise.
28969         (gimple_omp_atomic_load_set_rhs): Likewise.
28970         (gimple_omp_atomic_load_rhs): Likewise.
28971         (gimple_omp_atomic_load_rhs_ptr): Likewise.
28972         (gimple_omp_continue_control_def): Likewise.
28973         (gimple_omp_continue_control_def_ptr): Likewise.
28974         (gimple_omp_continue_set_control_def): Likewise.
28975         (gimple_omp_continue_control_use): Likewise.
28976         (gimple_omp_continue_control_use_ptr): Likewise.
28977         (gimple_omp_continue_set_control_use): Likewise.
28978         (gimple_transaction_body_ptr): Likewise.
28979         (gimple_transaction_label): Likewise.
28980         (gimple_transaction_label_ptr): Likewise.
28981         (gimple_transaction_set_body): Likewise.
28982         (gimple_transaction_set_label): Likewise.
28984         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28985         * ipa-inline-analysis.c (inline_write_summary): Likewise.
28986         * ipa-ref.c (ipa_record_reference): Likewise.
28987         * ipa-reference.c (analyze_function): Likewise.
28988         (ipa_reference_write_optimization_summary): Likewise.
28989         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28990         (address_taken_from_non_vtable_p): Likewise.
28991         (comdat_can_be_unshared_p_1): Likewise.
28992         * lto-cgraph.c (lto_output_ref): Likewise.
28993         (add_references): Likewise.
28994         (compute_ltrans_boundary): Likewise.
28995         (output_symtab): Likewise.
28996         (input_ref): Likewise.
28997         (input_cgraph_1): Likewise.
28998         (output_cgraph_opt_summary): Likewise.
28999         * lto-streamer-out.c (lto_output): Likewise.
29000         (output_symbol_p): Likewise.
29001         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
29002         (lsei_start_function_in_partition): Likewise.
29003         (lsei_next_variable_in_partition): Likewise.
29004         (lsei_start_variable_in_partition): Likewise.
29005         * symtab.c (insert_to_assembler_name_hash): Likewise.
29006         (unlink_from_assembler_name_hash): Likewise.
29007         (symtab_unregister_node): Likewise.
29008         (symtab_remove_node): Likewise.
29009         (dump_symtab_node): Likewise.
29010         (verify_symtab_base): Likewise.
29011         (verify_symtab_node): Likewise.
29012         (symtab_make_decl_local): Likewise.
29013         (symtab_alias_ultimate_target): Likewise.
29014         (symtab_resolve_alias): Likewise.
29015         (symtab_get_symbol_partitioning_class): Likewise.
29016         * tree-phinodes.c (allocate_phi_node): Likewise.
29017         (reserve_phi_args_for_new_edge): Likewise.
29018         (remove_phi_args): Likewise.
29019         * varpool.c (varpool_node_for_asm): Likewise.
29020         (varpool_remove_unreferenced_decls): Likewise.
29022 2014-04-23  Jeff Law  <law@redhat.com>
29024         PR tree-optimization/60902
29025         * tree-ssa-threadedge.c
29026         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
29027         invalidate outputs from statements that do not produce useful
29028         outputs for threading.
29030 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
29032         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
29033         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
29034         machine descriptions for Stack Smashing Protector.
29036 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
29038         * aarch64.md (<optab>_rol<mode>3): New pattern.
29039         (<optab>_rolsi3_uxtw): Likewise.
29040         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
29042 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
29044         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
29045         (arm_cortex_a12_tune): Likewise.
29047 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29049         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
29051 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29053         * config/arm/arm.md (arm_rev16si2): New pattern.
29054         (arm_rev16si2_alt): Likewise.
29055         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
29057 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29059         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
29060         (rev16<mode>2_alt): Likewise.
29061         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
29062         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
29063         (aarch_rev16_shleft_mask_imm_p): Likewise.
29064         (aarch_rev16_p_1): Likewise.
29065         (aarch_rev16_p): Likewise.
29066         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
29067         (aarch_rev16_shright_mask_imm_p): Likewise.
29068         (aarch_rev16_shleft_mask_imm_p): Likewise.
29070 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29072         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
29073         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
29074         rev cost.
29075         (cortex_a53_extra_costs): Likewise.
29076         (cortex_a57_extra_costs): Likewise.
29077         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
29078         (cortexa7_extra_costs): Likewise.
29079         (cortexa8_extra_costs): Likewise.
29080         (cortexa12_extra_costs): Likewise.
29081         (cortexa15_extra_costs): Likewise.
29082         (v7m_extra_costs): Likewise.
29083         (arm_new_rtx_costs): Handle BSWAP.
29085 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29087         * config/arm/arm.c (cortexa8_extra_costs): New table.
29088         (arm_cortex_a8_tune): New tuning struct.
29089         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
29091 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29093         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
29095 2014-04-23  Richard Biener  <rguenther@suse.de>
29097         * Makefile.in (OBJS): Remove loop-unswitch.o.
29098         * tree-pass.h (make_pass_rtl_unswitch): Remove.
29099         * passes.def (pass_rtl_unswitch): Likewise.
29100         * loop-init.c (gate_rtl_unswitch): Likewise.
29101         (rtl_unswitch): Likewise.
29102         (pass_data_rtl_unswitch): Likewise.
29103         (pass_rtl_unswitch): Likewise.
29104         (make_pass_rtl_unswitch): Likewise.
29105         * rtl.h (reversed_condition): Likewise.
29106         (compare_and_jump_seq): Likewise.
29107         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
29108         and make static.
29109         * loop-unroll.c (compare_and_jump_seq): Likewise.
29111 2014-04-23  Richard Biener  <rguenther@suse.de>
29113         PR tree-optimization/60903
29114         * tree-ssa-loop-im.c (analyze_memory_references): Remove
29115         commented code block.
29116         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
29117         loop flags to newly created BBs and edges.
29119 2014-04-23  Nick Clifton  <nickc@redhat.com>
29121         * config/msp430/msp430.c (msp430_handle_option): Move function
29122         to msp430-common.c
29123         (msp430_option_override): Simplify mcu and mcpu option handling.
29124         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
29125         support for -mhwmult command line option.
29126         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
29127         -mhwmult command line option.
29128         (msp430_hwmult_enabled): Delete.
29129         (msp43o_output_labelref): Add support for -mhwmult command line option.
29130         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
29131         (umulsidi3): Likewise.
29132         * config/msp430/msp430.opt (mmcu): Add Report attribute.
29133         (mcpu, mlarge, msmall): Likewise.
29134         (mhwmult): New option.
29135         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
29136         prototype.
29137         (msp430_is_f5_mcu): Remove prototype.
29138         (msp430_use_f5_series_hwmult): Add prototype.
29139         * config/msp430/msp430-opts.h: New file.
29140         * common/config/msp430: New directory.
29141         * common/config/msp430/msp430-common.c: New file.
29142         * config.gcc (msp430): Remove target_has_targetm_common.
29143         * doc/invoke.texi: Document -mhwmult command line option.
29145 2014-04-23  Nick Clifton  <nickc@redhat.com>
29147         * config/i386/cygwin.h (ENDFILE_SPEC): Include
29148         default-manifest.o if it can be found in the search path.
29149         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29151 2014-04-23  Terry Guo  <terry.guo@arm.com>
29153         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
29155 2014-04-23  Richard Biener  <rguenther@suse.de>
29157         PR middle-end/60895
29158         * tree-inline.c (declare_return_variable): Use mark_addressable.
29160 2014-04-23  Richard Biener  <rguenther@suse.de>
29162         PR middle-end/60891
29163         * loop-init.c (loop_optimizer_init): Make sure to apply
29164         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
29166 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29168         PR sanitizer/60275
29169         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
29170         New options.
29171         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
29172         if flag_sanitize_undefined_trap_on_error.
29173         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
29174         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
29175         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
29176         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
29177         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
29178         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
29179         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
29180         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
29181         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
29182         * ubsan.c (ubsan_instrument_unreachable): Return
29183         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
29184         (ubsan_expand_null_ifn): Emit __builtin_trap ()
29185         if flag_sanitize_undefined_trap_on_error and
29186         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
29187         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
29188         instrument_bool_enum_load): Emit __builtin_trap () if
29189         flag_sanitize_undefined_trap_on_error and
29190         __builtin_handle_*_abort () if !flag_sanitize_recover.
29191         * doc/invoke.texi (-fsanitize-recover,
29192         -fsanitize-undefined-trap-on-error): Document.
29194 2014-04-22  Christian Bruel  <christian.bruel@st.com>
29196         * config/sh/sh.md (mov<mode>): Replace movQIHI.
29197         Force immediates to SImode.
29199 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
29201         * config/nios2/nios2.md (UNSPEC_ROUND): New.
29202         (lroundsfsi2): New.
29203         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
29204         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
29205         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
29206         (nios2_fpu_insn): Add entry for round.
29207         (N2FPU_NO_ERRNO_P): Define.
29208         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
29209         flag_errno_math.
29210         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
29212 2014-04-22  Richard Henderson  <rth@redhat.com>
29214         * config/aarch64/aarch64 (addti3, subti3): New expanders.
29215         (add<GPI>3_compare0): Remove leading * from name.
29216         (add<GPI>3_carryin): Likewise.
29217         (sub<GPI>3_compare0): Likewise.
29218         (sub<GPI>3_carryin): Likewise.
29219         (<su_optab>mulditi3): New expander.
29220         (multi3): New expander.
29221         (madd<GPI>): Remove leading * from name.
29223 2014-04-22  Martin Jambor  <mjambor@suse.cz>
29225         * cgraphclones.c (cgraph_function_versioning): Copy
29226         ipa_transforms_to_apply instead of asserting it is empty.
29228 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
29230         PR target/60868
29231         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
29232         on count_exp to get mode.
29234 2014-04-22  Andrew Pinski  <apinski@cavium.com>
29236         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
29237         Handle TLS for ILP32.
29238         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
29239         (tlsie_small_<mode>): this and handle PTR.
29240         (tlsie_small_sidi): New pattern.
29241         (tlsle_small): Change to an expand to handle ILP32.
29242         (tlsle_small_<mode>): New pattern.
29243         (tlsdesc_small): Rename to ...
29244         (tlsdesc_small_<mode>): this and handle PTR.
29246 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29248         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
29250 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29252         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29253         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
29254         (aarch64_types_signed_poly_qualifiers): Likewise.
29255         (aarch64_types_unsigned_signed_qualifiers): Likewise.
29256         (aarch64_types_poly_signed_qualifiers): Likewise.
29257         (TYPES_REINTERP_SS): Type macro added.
29258         (TYPES_REINTERP_SU): Likewise.
29259         (TYPES_REINTERP_SP): Likewise.
29260         (TYPES_REINTERP_US): Likewise.
29261         (TYPES_REINTERP_PS): Likewise.
29262         (aarch64_fold_builtin): New expression folding added.
29263         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
29264         Declarations removed.
29265         (REINTERP_SS): Declarations added.
29266         (REINTERP_US): Likewise.
29267         (REINTERP_PS): Likewise.
29268         (REINTERP_SU): Likewise.
29269         (REINTERP_SP): Likewise.
29270         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
29271         (vreinterpretq_p8_f64): Likewise.
29272         (vreinterpret_p16_f64): Likewise.
29273         (vreinterpretq_p16_f64): Likewise.
29274         (vreinterpret_f32_f64): Likewise.
29275         (vreinterpretq_f32_f64): Likewise.
29276         (vreinterpret_f64_f32): Likewise.
29277         (vreinterpret_f64_p8): Likewise.
29278         (vreinterpret_f64_p16): Likewise.
29279         (vreinterpret_f64_s8): Likewise.
29280         (vreinterpret_f64_s16): Likewise.
29281         (vreinterpret_f64_s32): Likewise.
29282         (vreinterpret_f64_s64): Likewise.
29283         (vreinterpret_f64_u8): Likewise.
29284         (vreinterpret_f64_u16): Likewise.
29285         (vreinterpret_f64_u32): Likewise.
29286         (vreinterpret_f64_u64): Likewise.
29287         (vreinterpretq_f64_f32): Likewise.
29288         (vreinterpretq_f64_p8): Likewise.
29289         (vreinterpretq_f64_p16): Likewise.
29290         (vreinterpretq_f64_s8): Likewise.
29291         (vreinterpretq_f64_s16): Likewise.
29292         (vreinterpretq_f64_s32): Likewise.
29293         (vreinterpretq_f64_s64): Likewise.
29294         (vreinterpretq_f64_u8): Likewise.
29295         (vreinterpretq_f64_u16): Likewise.
29296         (vreinterpretq_f64_u32): Likewise.
29297         (vreinterpretq_f64_u64): Likewise.
29298         (vreinterpret_s64_f64): Likewise.
29299         (vreinterpretq_s64_f64): Likewise.
29300         (vreinterpret_u64_f64): Likewise.
29301         (vreinterpretq_u64_f64): Likewise.
29302         (vreinterpret_s8_f64): Likewise.
29303         (vreinterpretq_s8_f64): Likewise.
29304         (vreinterpret_s16_f64): Likewise.
29305         (vreinterpretq_s16_f64): Likewise.
29306         (vreinterpret_s32_f64): Likewise.
29307         (vreinterpretq_s32_f64): Likewise.
29308         (vreinterpret_u8_f64): Likewise.
29309         (vreinterpretq_u8_f64): Likewise.
29310         (vreinterpret_u16_f64): Likewise.
29311         (vreinterpretq_u16_f64): Likewise.
29312         (vreinterpret_u32_f64): Likewise.
29313         (vreinterpretq_u32_f64): Likewise.
29315 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29317         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29318         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
29319         (vreinterpret_p8_s8): Likewise.
29320         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
29321         (vreinterpret_p8_s16): Likewise.
29322         (vreinterpret_p8_s32): Likewise.
29323         (vreinterpret_p8_s64): Likewise.
29324         (vreinterpret_p8_f32): Likewise.
29325         (vreinterpret_p8_u8): Likewise.
29326         (vreinterpret_p8_u16): Likewise.
29327         (vreinterpret_p8_u32): Likewise.
29328         (vreinterpret_p8_u64): Likewise.
29329         (vreinterpret_p8_p16): Likewise.
29330         (vreinterpretq_p8_s8): Likewise.
29331         (vreinterpretq_p8_s16): Likewise.
29332         (vreinterpretq_p8_s32): Likewise.
29333         (vreinterpretq_p8_s64): Likewise.
29334         (vreinterpretq_p8_f32): Likewise.
29335         (vreinterpretq_p8_u8): Likewise.
29336         (vreinterpretq_p8_u16): Likewise.
29337         (vreinterpretq_p8_u32): Likewise.
29338         (vreinterpretq_p8_u64): Likewise.
29339         (vreinterpretq_p8_p16): Likewise.
29340         (vreinterpret_p16_s8): Likewise.
29341         (vreinterpret_p16_s16): Likewise.
29342         (vreinterpret_p16_s32): Likewise.
29343         (vreinterpret_p16_s64): Likewise.
29344         (vreinterpret_p16_f32): Likewise.
29345         (vreinterpret_p16_u8): Likewise.
29346         (vreinterpret_p16_u16): Likewise.
29347         (vreinterpret_p16_u32): Likewise.
29348         (vreinterpret_p16_u64): Likewise.
29349         (vreinterpret_p16_p8): Likewise.
29350         (vreinterpretq_p16_s8): Likewise.
29351         (vreinterpretq_p16_s16): Likewise.
29352         (vreinterpretq_p16_s32): Likewise.
29353         (vreinterpretq_p16_s64): Likewise.
29354         (vreinterpretq_p16_f32): Likewise.
29355         (vreinterpretq_p16_u8): Likewise.
29356         (vreinterpretq_p16_u16): Likewise.
29357         (vreinterpretq_p16_u32): Likewise.
29358         (vreinterpretq_p16_u64): Likewise.
29359         (vreinterpretq_p16_p8): Likewise.
29360         (vreinterpret_f32_s8): Likewise.
29361         (vreinterpret_f32_s16): Likewise.
29362         (vreinterpret_f32_s32): Likewise.
29363         (vreinterpret_f32_s64): Likewise.
29364         (vreinterpret_f32_u8): Likewise.
29365         (vreinterpret_f32_u16): Likewise.
29366         (vreinterpret_f32_u32): Likewise.
29367         (vreinterpret_f32_u64): Likewise.
29368         (vreinterpret_f32_p8): Likewise.
29369         (vreinterpret_f32_p16): Likewise.
29370         (vreinterpretq_f32_s8): Likewise.
29371         (vreinterpretq_f32_s16): Likewise.
29372         (vreinterpretq_f32_s32): Likewise.
29373         (vreinterpretq_f32_s64): Likewise.
29374         (vreinterpretq_f32_u8): Likewise.
29375         (vreinterpretq_f32_u16): Likewise.
29376         (vreinterpretq_f32_u32): Likewise.
29377         (vreinterpretq_f32_u64): Likewise.
29378         (vreinterpretq_f32_p8): Likewise.
29379         (vreinterpretq_f32_p16): Likewise.
29380         (vreinterpret_s64_s8): Likewise.
29381         (vreinterpret_s64_s16): Likewise.
29382         (vreinterpret_s64_s32): Likewise.
29383         (vreinterpret_s64_f32): Likewise.
29384         (vreinterpret_s64_u8): Likewise.
29385         (vreinterpret_s64_u16): Likewise.
29386         (vreinterpret_s64_u32): Likewise.
29387         (vreinterpret_s64_u64): Likewise.
29388         (vreinterpret_s64_p8): Likewise.
29389         (vreinterpret_s64_p16): Likewise.
29390         (vreinterpretq_s64_s8): Likewise.
29391         (vreinterpretq_s64_s16): Likewise.
29392         (vreinterpretq_s64_s32): Likewise.
29393         (vreinterpretq_s64_f32): Likewise.
29394         (vreinterpretq_s64_u8): Likewise.
29395         (vreinterpretq_s64_u16): Likewise.
29396         (vreinterpretq_s64_u32): Likewise.
29397         (vreinterpretq_s64_u64): Likewise.
29398         (vreinterpretq_s64_p8): Likewise.
29399         (vreinterpretq_s64_p16): Likewise.
29400         (vreinterpret_u64_s8): Likewise.
29401         (vreinterpret_u64_s16): Likewise.
29402         (vreinterpret_u64_s32): Likewise.
29403         (vreinterpret_u64_s64): Likewise.
29404         (vreinterpret_u64_f32): Likewise.
29405         (vreinterpret_u64_u8): Likewise.
29406         (vreinterpret_u64_u16): Likewise.
29407         (vreinterpret_u64_u32): Likewise.
29408         (vreinterpret_u64_p8): Likewise.
29409         (vreinterpret_u64_p16): Likewise.
29410         (vreinterpretq_u64_s8): Likewise.
29411         (vreinterpretq_u64_s16): Likewise.
29412         (vreinterpretq_u64_s32): Likewise.
29413         (vreinterpretq_u64_s64): Likewise.
29414         (vreinterpretq_u64_f32): Likewise.
29415         (vreinterpretq_u64_u8): Likewise.
29416         (vreinterpretq_u64_u16): Likewise.
29417         (vreinterpretq_u64_u32): Likewise.
29418         (vreinterpretq_u64_p8): Likewise.
29419         (vreinterpretq_u64_p16): Likewise.
29420         (vreinterpret_s8_s16): Likewise.
29421         (vreinterpret_s8_s32): Likewise.
29422         (vreinterpret_s8_s64): Likewise.
29423         (vreinterpret_s8_f32): Likewise.
29424         (vreinterpret_s8_u8): Likewise.
29425         (vreinterpret_s8_u16): Likewise.
29426         (vreinterpret_s8_u32): Likewise.
29427         (vreinterpret_s8_u64): Likewise.
29428         (vreinterpret_s8_p8): Likewise.
29429         (vreinterpret_s8_p16): Likewise.
29430         (vreinterpretq_s8_s16): Likewise.
29431         (vreinterpretq_s8_s32): Likewise.
29432         (vreinterpretq_s8_s64): Likewise.
29433         (vreinterpretq_s8_f32): Likewise.
29434         (vreinterpretq_s8_u8): Likewise.
29435         (vreinterpretq_s8_u16): Likewise.
29436         (vreinterpretq_s8_u32): Likewise.
29437         (vreinterpretq_s8_u64): Likewise.
29438         (vreinterpretq_s8_p8): Likewise.
29439         (vreinterpretq_s8_p16): Likewise.
29440         (vreinterpret_s16_s8): Likewise.
29441         (vreinterpret_s16_s32): Likewise.
29442         (vreinterpret_s16_s64): Likewise.
29443         (vreinterpret_s16_f32): Likewise.
29444         (vreinterpret_s16_u8): Likewise.
29445         (vreinterpret_s16_u16): Likewise.
29446         (vreinterpret_s16_u32): Likewise.
29447         (vreinterpret_s16_u64): Likewise.
29448         (vreinterpret_s16_p8): Likewise.
29449         (vreinterpret_s16_p16): Likewise.
29450         (vreinterpretq_s16_s8): Likewise.
29451         (vreinterpretq_s16_s32): Likewise.
29452         (vreinterpretq_s16_s64): Likewise.
29453         (vreinterpretq_s16_f32): Likewise.
29454         (vreinterpretq_s16_u8): Likewise.
29455         (vreinterpretq_s16_u16): Likewise.
29456         (vreinterpretq_s16_u32): Likewise.
29457         (vreinterpretq_s16_u64): Likewise.
29458         (vreinterpretq_s16_p8): Likewise.
29459         (vreinterpretq_s16_p16): Likewise.
29460         (vreinterpret_s32_s8): Likewise.
29461         (vreinterpret_s32_s16): Likewise.
29462         (vreinterpret_s32_s64): Likewise.
29463         (vreinterpret_s32_f32): Likewise.
29464         (vreinterpret_s32_u8): Likewise.
29465         (vreinterpret_s32_u16): Likewise.
29466         (vreinterpret_s32_u32): Likewise.
29467         (vreinterpret_s32_u64): Likewise.
29468         (vreinterpret_s32_p8): Likewise.
29469         (vreinterpret_s32_p16): Likewise.
29470         (vreinterpretq_s32_s8): Likewise.
29471         (vreinterpretq_s32_s16): Likewise.
29472         (vreinterpretq_s32_s64): Likewise.
29473         (vreinterpretq_s32_f32): Likewise.
29474         (vreinterpretq_s32_u8): Likewise.
29475         (vreinterpretq_s32_u16): Likewise.
29476         (vreinterpretq_s32_u32): Likewise.
29477         (vreinterpretq_s32_u64): Likewise.
29478         (vreinterpretq_s32_p8): Likewise.
29479         (vreinterpretq_s32_p16): Likewise.
29480         (vreinterpret_u8_s8): Likewise.
29481         (vreinterpret_u8_s16): Likewise.
29482         (vreinterpret_u8_s32): Likewise.
29483         (vreinterpret_u8_s64): Likewise.
29484         (vreinterpret_u8_f32): Likewise.
29485         (vreinterpret_u8_u16): Likewise.
29486         (vreinterpret_u8_u32): Likewise.
29487         (vreinterpret_u8_u64): Likewise.
29488         (vreinterpret_u8_p8): Likewise.
29489         (vreinterpret_u8_p16): Likewise.
29490         (vreinterpretq_u8_s8): Likewise.
29491         (vreinterpretq_u8_s16): Likewise.
29492         (vreinterpretq_u8_s32): Likewise.
29493         (vreinterpretq_u8_s64): Likewise.
29494         (vreinterpretq_u8_f32): Likewise.
29495         (vreinterpretq_u8_u16): Likewise.
29496         (vreinterpretq_u8_u32): Likewise.
29497         (vreinterpretq_u8_u64): Likewise.
29498         (vreinterpretq_u8_p8): Likewise.
29499         (vreinterpretq_u8_p16): Likewise.
29500         (vreinterpret_u16_s8): Likewise.
29501         (vreinterpret_u16_s16): Likewise.
29502         (vreinterpret_u16_s32): Likewise.
29503         (vreinterpret_u16_s64): Likewise.
29504         (vreinterpret_u16_f32): Likewise.
29505         (vreinterpret_u16_u8): Likewise.
29506         (vreinterpret_u16_u32): Likewise.
29507         (vreinterpret_u16_u64): Likewise.
29508         (vreinterpret_u16_p8): Likewise.
29509         (vreinterpret_u16_p16): Likewise.
29510         (vreinterpretq_u16_s8): Likewise.
29511         (vreinterpretq_u16_s16): Likewise.
29512         (vreinterpretq_u16_s32): Likewise.
29513         (vreinterpretq_u16_s64): Likewise.
29514         (vreinterpretq_u16_f32): Likewise.
29515         (vreinterpretq_u16_u8): Likewise.
29516         (vreinterpretq_u16_u32): Likewise.
29517         (vreinterpretq_u16_u64): Likewise.
29518         (vreinterpretq_u16_p8): Likewise.
29519         (vreinterpretq_u16_p16): Likewise.
29520         (vreinterpret_u32_s8): Likewise.
29521         (vreinterpret_u32_s16): Likewise.
29522         (vreinterpret_u32_s32): Likewise.
29523         (vreinterpret_u32_s64): Likewise.
29524         (vreinterpret_u32_f32): Likewise.
29525         (vreinterpret_u32_u8): Likewise.
29526         (vreinterpret_u32_u16): Likewise.
29527         (vreinterpret_u32_u64): Likewise.
29528         (vreinterpret_u32_p8): Likewise.
29529         (vreinterpret_u32_p16): Likewise.
29530         (vreinterpretq_u32_s8): Likewise.
29531         (vreinterpretq_u32_s16): Likewise.
29532         (vreinterpretq_u32_s32): Likewise.
29533         (vreinterpretq_u32_s64): Likewise.
29534         (vreinterpretq_u32_f32): Likewise.
29535         (vreinterpretq_u32_u8): Likewise.
29536         (vreinterpretq_u32_u16): Likewise.
29537         (vreinterpretq_u32_u64): Likewise.
29538         (vreinterpretq_u32_p8): Likewise.
29539         (vreinterpretq_u32_p16): Likewise.
29541 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29543         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
29544         Pattern extended.
29545         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
29546         (sqabs): Likewise.
29547         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
29548         (vqnegd_s64): Likewise.
29549         (vqabs_s64): Likewise.
29550         (vqabsd_s64): Likewise.
29552 2014-04-22  Richard Henderson  <rth@redhat.com>
29554         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
29555         computation to the top of the loop.
29557 2014-04-22  Renlin  <renlin.li@arm.com>
29558             Jiong Wang  <jiong.wang@arm.com>
29560         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
29561         * config/aarch64/aarch64.c (aarch64_layout_frame)
29562         (aarch64_initial_elimination_offset): Likewise.
29564 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29566         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
29567         Fix indentation.
29569 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
29571         * machmode.h (bitwise_mode_for_mode): Declare.
29572         * stor-layout.h (bitwise_type_for_mode): Likewise.
29573         * stor-layout.c (bitwise_mode_for_mode): New function.
29574         (bitwise_type_for_mode): Likewise.
29575         * builtins.c (fold_builtin_memory_op): Use it instead of
29576         int_mode_for_mode and build_nonstandard_integer_type.
29578 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29580         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
29581         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
29582         (*-*-solaris2*): Simplify.
29583         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
29584         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
29585         *-*-solaris2.9* handling.
29587         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
29588         as bug.
29589         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
29590         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
29591         handling, simplify.
29592         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
29593         * configure: Regenerate.
29595         * config/i386/sol2-9.h: Remove.
29597         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
29598         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
29599         Remove Solaris 9 references.
29601 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
29603         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
29604         (floatuns<GPI:mode><GPF:mode>2): Remove.
29605         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
29606         and floatuns conversions.
29607         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
29608         and floatuns conversions.
29609         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
29610         (w1,w2): New mode attributes for inequal width conversions.
29612 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
29614         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
29615         the output asm format.
29617 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29619         * config/aarch64/aarch64-simd.md
29620         (aarch64_cm<optab>di): Always split.
29621         (*aarch64_cm<optab>di): New.
29622         (aarch64_cmtstdi): Always split.
29623         (*aarch64_cmtstdi): New.
29625 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29627         PR tree-optimization/60823
29628         * omp-low.c (ipa_simd_modify_function_body): Go through
29629         all SSA_NAMEs and for those refering to vector arguments
29630         which are going to be replaced adjust SSA_NAME_VAR and,
29631         if it is a default definition, change it into a non-default
29632         definition assigned at the beginning of function from new_decl.
29633         (ipa_simd_modify_stmt_ops): Rewritten.
29634         * tree-dfa.c (set_ssa_default_def): When removing default def,
29635         check for NULL loc instead of NULL *loc.
29637 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29639         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29640         restrictions on core registers for DImode values in Thumb2.
29642 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29644         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29645         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29647 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29649         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29650         (*iordi_notzesidi_di): Likewise.
29651         (*iordi_notsesidi_di): Likewise.
29653 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29655         * config/arm/arm-protos.h (tune_params): New struct members.
29656         * config/arm/arm.c: Initialise tune_params per processor.
29657         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29658         for speed, based on new tune_params.
29660 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29662         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29663         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29664         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29665         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29666         * config/aarch64/arm_neon.h (vrnd_f64): Added.
29667         (vrnda_f64): Likewise.
29668         (vrndi_f64): Likewise.
29669         (vrndm_f64): Likewise.
29670         (vrndn_f64): Likewise.
29671         (vrndp_f64): Likewise.
29672         (vrndx_f64): Likewise.
29674 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29676         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29677         GET_MODE_SIZE argument is enum machine_mode.
29679 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29681         PR target/60910
29682         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29683         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29685 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
29687         PR middle-end/60281
29688         * asan.c (asan_emit_stack_protection): Force the base to align to
29689         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
29690         appropriate bits if STRICT_ALIGNMENT.
29691         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29692         when asan is on.
29693         (expand_used_vars): Leave a space in the stack frame for alignment
29694         if STRICT_ALIGNMENT.
29696 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
29698         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29699         than a gimple.
29700         (gimple_store_p): Likewise.
29701         (gimple_assign_load_p): Likewise.
29702         (gimple_assign_cast_p): Likewise.
29703         (gimple_clobber_p): Likewise.
29705         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29706         rather than a gimple.
29707         (gimple_assign_cast_p): Likewise.
29709 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29711         PR target/60735
29712         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29713         If mode is DDmode and TARGET_E500_DOUBLE allow move.
29715         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29716         more debug information for E500 if -mdebug=reg.
29718 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
29720         PR target/60909
29721         * config/i386/i386.c (ix86_expand_builtin)
29722         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29723         register for target RTX.
29724         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29726 2014-04-18  Cong Hou  <congh@google.com>
29728         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29729         the widen-mult pattern by handling two operands with different sizes,
29730         and operands whose size is smaller than half of the result type.
29732 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29734         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29735         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29736         (do_estimate_edge_time): Compute it.
29737         * ipa-inline.c (want_inline_small_function_p): Bypass
29738         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29740 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29742         * ipa-inline.c (spec_rem): New static variable.
29743         (dump_overall_stats): New function.
29744         (dump_inline_stats): New function.
29746 2014-04-18  Richard Henderson  <rth@redhat.com>
29748         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29749         to GET_MODE_SIZE, not a reg_class_t.
29751 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29753         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29754         (vsx_xxmrglw_<mode>): Likewise.
29756 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
29758         PR target/60876
29759         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29760         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29761         (rs6000_init_hard_regno_mode_ok): Likewise.
29763 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
29765         * ipa-inline.c (inline_small_functions): Account only non-cold
29766         functions.
29767         * doc/invoke.texi (inline-unit-growth): Update documentation.
29769 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
29771         * config/rs6000/rs6000.md (addti3, subti3): New.
29773 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29775         PR target/60863
29776         * config/i386/i386.c (ix86_expand_clear): Remove outdated
29777         comment.  Check optimize_insn_for_size_p instead of
29778         optimize_insn_for_speed_p.
29780 2014-04-17  Martin Jambor  <mjambor@suse.cz>
29782         * gimple-iterator.c (gsi_start_edge): New function.
29783         * gimple-iterator.h (gsi_start_edge): Declare.
29784         * tree-sra.c (single_non_eh_succ): New function.
29785         (disqualify_ops_if_throwing_stmt): Renamed to
29786         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
29787         having one non-EH successor BB.
29788         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29789         generate loads into replacements.
29790         (sra_modify_assign): Likewise and and also use the simple path for
29791         such statements.
29792         (sra_modify_function_body): Commit statements on edges.
29794 2014-04-17  Richard Biener  <rguenther@suse.de>
29796         PR middle-end/60849
29797         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29798         comparison results and add clarifying comment.
29800 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29802         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29803         (blank_mode): Initialize it.
29804         (emit_mode_size_inline, emit_mode_nunits_inline,
29805         emit_mode_inner_inline): New functions.
29806         (emit_insn_modes_h): Call them and surround their output with
29807         #if GCC_VERSION >= 4001 ... #endif.
29808         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29809         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29810         mode_* arrays if the argument is __builtin_constant_p.
29811         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29812         is enum machine_mode.
29814 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29816         * passes.c (opt_pass::execute): Adjust.
29817         (pass_manager::execute_pass_mode_switching): Likewise.
29818         (early_local_passes::execute): Likewise.
29819         (execute_one_pass): Pass cfun to the pass's execute method.
29820         * tree-pass.h (opt_pass::execute): Add function * argument.
29821         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29822         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29823         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29824         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29825         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29826         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29827         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29828         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29829         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29830         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29831         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29832         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29833         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29834         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29835         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29836         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29837         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29838         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29839         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29840         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29841         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29842         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29843         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29844         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29845         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29846         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29847         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29848         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29849         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29850         Adjust.
29852 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29854         * passes.c (opt_pass::gate): Take function * argument.
29855         (gate_all_early_local_passes): Merge into
29856         (early_local_passes::gate): this.
29857         (gate_all_early_optimizations): Merge into
29858         (all_early_optimizations::gate): this.
29859         (gate_all_optimizations): Mege into
29860         (all_optimizations::gate): this.
29861         (gate_all_optimizations_g): Merge into
29862         (all_optimizations_g::gate): this.
29863         (gate_rest_of_compilation): Mege into
29864         (rest_of_compilation::gate): this.
29865         (gate_postreload): Merge into
29866         (postreload::gate): this.
29867         (dump_one_pass): Pass cfun to the pass's gate method.
29868         (execute_ipa_summary_passes): Likewise.
29869         (execute_one_pass): Likewise.
29870         (ipa_write_summaries_2): Likewise.
29871         (ipa_write_optimization_summaries_1): Likewise.
29872         (ipa_read_summaries_1): Likewise.
29873         (ipa_read_optimization_summaries_1): Likewise.
29874         (execute_ipa_stmt_fixups): Likewise.
29875         * tree-pass.h (opt_pass::gate): Add function * argument.
29876         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29877         combine-stack-adj.c, combine.c, compare-elim.c,
29878         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29879         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29880         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29881         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
29882         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29883         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29884         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29885         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29886         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29887         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29888         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29889         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29890         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29891         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29892         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29893         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29894         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29895         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29896         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29897         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29898         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29899         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29900         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29901         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29902         var-tracking.c, vtable-verify.c, web.c: Adjust.
29904 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29906         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29907         * configure: Regenerate.
29909 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29911         * passes.c (dump_one_pass): don't check pass->has_gate.
29912         (execute_ipa_summary_passes): Likewise.
29913         (execute_one_pass): Likewise.
29914         (ipa_write_summaries_2): Likewise.
29915         (ipa_write_optimization_summaries_1): Likewise.
29916         (ipa_read_optimization_summaries_1): Likewise.
29917         (execute_ipa_stmt_fixups): Likewise.
29918         * tree-pass.h (pass_data::has_gate): Remove.
29919         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29920         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29921         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29922         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29923         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29924         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29925         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29926         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29927         gimple-low.c, gimple-ssa-isolate-paths.c,
29928         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29929         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29930         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29931         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29932         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29933         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29934         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29935         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29936         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29937         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29938         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29939         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29940         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29941         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29942         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29943         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29944         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29945         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29946         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29947         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29948         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29949         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29950         Adjust.
29952 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29954         * pass_manager.h (pass_manager::register_dump_files_1): Remove
29955         declaration.
29956         * passes.c (pass_manager::register_dump_files_1): Merge into
29957         (pass_manager::register_dump_files): this, and remove its handling of
29958         properties since the pass always has the properties anyway.
29959         (pass_manager::pass_manager): Adjust.
29961 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29963         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29964         * passes.c (pass_manager::register_dump_files_1): Remove dead code
29965         dealing with properties.
29966         (pass_manager::register_dump_files): Adjust.
29968 2014-03-20  Mark Wielaard  <mjw@redhat.com>
29970         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29971         then represent the bound as normal constant value.
29973 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29975         PR target/60847
29976         Forward port from 4.8 branch
29977         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
29979         * config/i386/bmiintrin.h (_blsi_u32): New.
29980         (_blsi_u64): Ditto.
29981         (_blsr_u32): Ditto.
29982         (_blsr_u64): Ditto.
29983         (_blsmsk_u32): Ditto.
29984         (_blsmsk_u64): Ditto.
29985         (_tzcnt_u32): Ditto.
29986         (_tzcnt_u64): Ditto.
29988 2014-04-17  Kito Cheng  <kito@0xlab.org>
29990         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29992 2014-04-17  Richard Biener  <rguenther@suse.de>
29994         PR middle-end/60849
29995         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29996         boolean results for comparisons.
29998 2014-04-17  Richard Biener  <rguenther@suse.de>
30000         PR tree-optimization/60836
30001         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
30002         initial PHI args to be gimple values.
30004 2014-04-17  Richard Biener  <rguenther@suse.de>
30006         PR tree-optimization/60841
30007         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
30008         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
30009         of stmts to SLP build.
30010         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
30011         (vect_analyze_slp): Likewise.
30012         (vect_analyze_slp_instance): Likewise.
30013         (vect_build_slp_tree): Limit overall SLP tree growth.
30014         * tree-vectorizer.h (vect_analyze_data_refs,
30015         vect_analyze_slp): Adjust prototypes.
30017 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
30019         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
30020         Silvermont.
30022 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
30024         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
30025         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
30026         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
30027         for TARGET_SLOW_PSHUFB
30029 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
30031         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
30032         * config/i386/i386.c (intel_cost): Ditto.
30034 2014-04-17  Joey Ye  <joey.ye@arm.com>
30036         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
30038 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
30040         * opts.c (common_handle_option): Disable -fipa-reference coorectly
30041         with -fuse-profile.
30043 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
30045         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
30046         (type_all_derivations_known_p): New predicate.
30047         (type_all_ctors_visible_p): New predicate.
30048         (type_possibly_instantiated_p): New predicate.
30049         (get_odr_type): Compute all_derivations_known.
30050         (dump_odr_type): Dump the flag.
30051         (maybe_record_type): Cleanup.
30052         (record_target_from_binfo): Add bases_to_consider array;
30053         record bases for types w/o instances and skip CXX destructor.
30054         (possible_polymorphic_call_targets_1): Add bases_to_consider
30055         and consider_construction parameters; check if type may have instance.
30056         (get_polymorphic_call_info): Set maybe_in_construction to true
30057         when we know nothing.
30058         (record_targets_from_bases): Skip CXX destructors; they are
30059         never called for types in construction.
30060         (possible_polymorphic_call_targets): Do not record target when
30061         type may not have instance.
30063 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
30065         PR ipa/60854
30066         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
30067         external aliases alive, too.
30069 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
30071         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
30072         definition.
30074 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
30076         * final.c (compute_alignments): Do not apply loop alignment to a block
30077         falling through to the exit.
30079 2014-04-16  Catherine Moore  <clm@codesourcery.com>
30081         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
30082         Adjust constraints for microMIPS store patterns.
30084 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
30086         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
30088 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
30090         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
30091         (append_use): Run at -O0.
30092         (append_vdef): Likewise.
30093         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
30094         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
30096 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
30098         PR tree-optimization/60844
30099         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
30100         (propagate_op_to_single_use, remove_visited_stmt_chain,
30101         linearize_expr, repropagate_negates, reassociate_bb): Use it
30102         instead of gsi_remove.
30104 2014-04-16  Martin Jambor  <mjambor@suse.cz>
30106         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
30107         ipa_transforms_to_apply.
30108         (cgraph_function_versioning): Assert that old_node has empty
30109         ipa_transforms_to_apply.
30110         * trans-mem.c (ipa_tm_create_version): Likewise.
30111         * tree-inline.c (tree_function_versioning): Do not duplicate
30112         ipa_transforms_to_apply.
30114 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30116         PR target/60817
30117         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
30118         x86_64-*-* cases.
30119         Pass necessary as flags on 64-bit Solaris/x86.
30120         Use lowercase relocs for x86_64-*-*.
30121         * configure: Regenerate.
30123 2014-04-15  Jan Hubicka  <jh@suse.cz>
30125         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
30126         (maybe_record_node, likely_target_p): Use it.
30128 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30130         PR target/60839
30131         Revert following patch
30133         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30135         PR target/60735
30136         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30137         software floating point or no floating point registers, do not
30138         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30139         in GPRs that occurs after we tested for GPRs that would never be
30140         true.
30142         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30143         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30144         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30145         specifically allow DDmode, since that does not use the SPE SIMD
30146         instructions.
30148 2014-03-21  Mark Wielaard  <mjw@redhat.com>
30150         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
30151         as unsigned or int depending on type and value used.
30153 2014-04-15  Richard Biener  <rguenther@suse.de>
30155         PR rtl-optimization/56965
30156         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
30157         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
30158         ... here.
30159         * alias.c (true_dependence_1): Do not call
30160         nonoverlapping_component_refs_p.
30161         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
30162         nonoverlapping_component_refs_p.
30163         (indirect_refs_may_alias_p): Likewise.
30165 2014-04-15  Teresa Johnson  <tejohnson@google.com>
30167         * cfg.c (dump_bb_info): Fix flags check.
30168         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
30170 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30172         PR rtl-optimization/60663
30173         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
30174         avoid 0 cost.
30176 2014-04-15  Richard Biener  <rguenther@suse.de>
30178         * lto-streamer.h (LTO_major_version): Bump to 4.
30180 2014-04-15  Richard Biener  <rguenther@suse.de>
30182         * common.opt (lto_partition_model): New enum.
30183         (flto-partition=): Merge separate options with a single with argument,
30184         add -flto-partition=one support.
30185         * flag-types.h (enum lto_partition_model): Declare.
30186         * opts.c (finish_options): Remove duplicate -flto-partition=
30187         option check.
30188         * lto-wrapper.c (run_gcc): Adjust.
30190 2014-04-15  Richard Biener  <rguenther@suse.de>
30192         * alias.c (ncr_compar): New function.
30193         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
30195 2014-04-15  Richard Biener  <rguenther@suse.de>
30197         * alias.c (record_component_aliases): Do not walk BINFOs.
30199 2014-04-15  Richard Biener  <rguenther@suse.de>
30201         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30202         Add struct function argument and adjust.
30203         (find_func_aliases_for_call): Likewise.
30204         (find_func_aliases): Likewise.
30205         (find_func_clobbers): Likewise.
30206         (intra_create_variable_infos): Likewise.
30207         (compute_points_to_sets): Likewise.
30208         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
30210 2014-04-15  Richard Biener  <rguenther@suse.de>
30212         * tree.c (iterative_hash_expr): Use enum tree_code_class
30213         to store TREE_CODE_CLASS.
30214         (tree_block): Likewise.
30215         (tree_set_block): Likewise.
30216         * tree.h (fold_build_pointer_plus_loc): Use
30217         convert_to_ptrofftype_loc.
30219 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
30221         PR plugins/59335
30222         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
30223         added in 4.9.
30225 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
30227         * cfgloop.h (struct loop): Move force_vectorize down.
30228         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
30229         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
30230         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
30231         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
30232         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
30233         * tree-core.h (enum annot_expr_kind): Add new kind values.
30234         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
30235         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
30236         kinds.
30237         * tree.def (ANNOTATE_EXPR): Tweak comment.
30239 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30241         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
30242         cxa_pure_virtual).
30244 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
30246         * tree.h (TYPE_IDENTIFIER): Declare.
30247         * tree.c (subrange_type_for_debug_p): Use it.
30248         * godump.c (go_format_type): Likewise.
30249         * dwarf2out.c (is_cxx_auto, modified_type_die,
30250         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
30251         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
30253 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30255         PR lto/60820
30256         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
30258 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
30260         * config/i386/i386.c (examine_argument): Return bool.  Return true if
30261         parameter should be passed in memory.
30262         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
30263         (construct_container): Update calls to examine_argument.
30264         (function_arg_advance_64): Ditto.
30265         (return_in_memory_32): Merge with ix86_return_in_memory.
30266         (return_in_memory_64): Ditto.
30267         (return_in_memory_ms_64): Ditto.
30269 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30271         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
30272         * coverage.c (coverage_compute_profile_id): Handle externally visible
30273         symbols.
30275 2014-04-14  Martin Jambor  <mjambor@suse.cz>
30277         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
30278         DECL_DISREGARD_INLINE_LIMITS functions.
30280 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30282         PR target/60827
30283         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
30285 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30287         PR target/60827
30288         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
30289         optimize_insn_for_speed_p instead of
30290         optimize_function_for_speed_p.
30292 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
30294         * doc/invoke.texi (free): Document AArch64.
30296 2014-04-14  Richard Biener  <rguenther@suse.de>
30298         PR tree-optimization/60042
30299         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
30300         (insert_into_preds_of_block): Do not prevent PHI insertion
30301         for REFERENCE exprs here ...
30302         (eliminate_dom_walker::before_dom_children): ... but prevent
30303         their use here under similar conditions when applied to the
30304         IL after PRE optimizations.
30306 2014-04-14  Richard Biener  <rguenther@suse.de>
30308         * passes.def: Move early points-to after early SRA.
30310 2014-04-14  Richard Biener  <rguenther@suse.de>
30312         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
30313         check for which sign-changes we allow when forwarding
30314         a converted value into a switch.
30316 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30318         * stor-layout.c (place_field): Finalize non-constant offset for the
30319         field, if any.
30321 2014-04-14  Richard Biener  <rguenther@suse.de>
30323         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
30324         as argument.
30325         (expand_switch_using_bit_tests_p): Likewise.
30326         (process_switch): Compute and pass on speed_p based on the
30327         switch stmt.
30328         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
30329         optimize_bb_for_speed_p.
30331 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30333         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
30334         * function.h (struct function): Rename has_force_vect_loops into
30335         has_force_vectorize_loops.
30336         * lto-streamer-in.c (input_cfg): Adjust for renaming.
30337         (input_struct_function_base): Likewise.
30338         * lto-streamer-out.c (output_cfg): Likewise.
30339         (output_struct_function_base): Likewise.
30340         * omp-low.c (expand_omp_simd): Likewise.
30341         * tree-cfg.c (move_sese_region_to_fn): Likewise.
30342         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
30343         (version_loop_for_if_conversion): Likewise.
30344         (tree_if_conversion): Likewise.
30345         (main_tree_if_conversion): Likewise.
30346         (gate_tree_if_conversion): Likewise.
30347         * tree-inline.c (copy_loops): Likewise.
30348         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
30349         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
30350         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
30351         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
30352         * tree-vectorizer.c (vectorize_loops): Likewise.
30353         * tree-vectorizer.h (unlimited_cost_model): Likewise.
30355 2014-04-14  Richard Biener  <rguenther@suse.de>
30357         PR lto/60720
30358         * lto-streamer-out.c (wrap_refs): New function.
30359         (lto_output): Wrap symbol references in global initializes in
30360         type-preserving MEM_REFs.
30362 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30364         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
30366 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30368         * config/sh/sh.md (setmemqi): New expand pattern.
30369         * config/sh/sh.h (CLEAR_RATIO): Define.
30370         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
30371         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
30373 2014-04-14  Richard Biener  <rguenther@suse.de>
30375         PR middle-end/55022
30376         * fold-const.c (negate_expr_p): Don't negate directional rounding
30377         division.
30378         (fold_negate_expr): Likewise.
30380 2014-04-14  Richard Biener  <rguenther@suse.de>
30382         PR tree-optimization/59817
30383         PR tree-optimization/60453
30384         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
30385         recursion to catch all CHRECs in the scalar evolution and restrict
30386         the predicate for the remains appropriately.
30388 2014-04-12  Catherine Moore  <clm@codesourcery.com>
30390         * config/mips/constraints.md: Add new register constraint "kb".
30391         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
30392         (*movhi_internal): Likewise.
30393         (*movqi_internal): Likewise.
30394         * config/mips/mips.h (M16_STORE_REGS): New register class.
30395         (REG_CLASS_NAMES): Add M16_STORE_REGS.
30396         (REG_CLASS_CONTENTS): Likewise.
30397         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
30399 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30401         PR c/60194
30402         * doc/invoke.texi (-Wformat-signedness): Document it.
30403         (Wformat=2): Mention that this enables -Wformat-signedness.
30405 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30407         * common/config/epiphany/epiphany-common.c
30408         (epiphany_option_optimization_table): Enable section anchors by
30409         default at -O1 or higher.
30410         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
30411         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
30412         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
30413         carries no extra cost.
30414         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
30415         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
30416         * config/epiphany/predicates.md (memclob_operand): New predicate.
30417         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
30418         Use memclob_operand predicate and X constraint for operand 3.
30420 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30422         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
30423         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
30424         its operands.
30426 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30428         PR rtl-optimization/60651
30429         * mode-switching.c (optimize_mode_switching): Make sure to emit
30430         sets of a lower numbered entity before sets of a higher numbered
30431         entity to a mode of the same or lower priority.
30432         When creating a seginfo for a basic block that starts with a code
30433         label, move the insertion point past the code label.
30434         (new_seginfo): Document and enforce requirement that
30435         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
30436         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
30437         * doc/tm.texi: Regenerate.
30439 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30441         PR target/60811
30442         * config/arc/arc.c (arc_save_restore): Fix assert typo.
30444 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30446         * BASE-VER: Set to 4.10.0.
30448 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30450         PR other/59055
30451         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
30452         * doc/gcc.texi (Service): Update description in the @menu
30453         * doc/invoke.texi (Option Summary): Remove misplaced and
30454         duplicated @menu.
30456 2014-04-11  Steve Ellcey  <sellcey@mips.com>
30457             Jakub Jelinek  <jakub@redhat.com>
30459         PR middle-end/60556
30460         * expr.c (convert_move): Use emit_store_flag_force instead of
30461         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
30462         argument to it.
30464 2014-04-11  Richard Biener  <rguenther@suse.de>
30466         PR middle-end/60797
30467         * varasm.c (assemble_alias): Avoid endless error reporting
30468         recursion by setting TREE_ASM_WRITTEN.
30470 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30472         * config/s390/s390.md: Add a splitter for NOT rtx.
30474 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
30476         PR rtl-optimization/60663
30477         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
30479 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
30480             Jakub Jelinek  <jakub@redhat.com>
30482         PR lto/60567
30483         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
30484         flag from decl_node to node.
30486 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30488         PR debug/60655
30489         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
30490         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
30491         ameliorating the cases where it can be.
30493 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
30495         Revert
30496         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30498         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30499         (loadsync_<mode>): Change mode.
30500         (load_quadpti, store_quadpti): New.
30501         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30502         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30503         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
30505 2014-04-09  Cong Hou  <congh@google.com>
30507         PR testsuite/60773
30508         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
30509         documentation.
30511 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30513         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
30514         instead of vnor to exploit possible fusion opportunity in the
30515         future.
30516         (altivec_expand_vec_perm_const_le): Likewise.
30518 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30520         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30521         (loadsync_<mode>): Change mode.
30522         (load_quadpti, store_quadpti): New.
30523         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30524         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30526 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
30528         PR target/60763
30529         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
30530         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
30531         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
30533 2014-04-08  Richard Biener  <rguenther@suse.de>
30535         PR middle-end/60706
30536         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
30537         a 64bit widest int print double-int similar to on HWI64 hosts.
30539 2014-04-08  Richard Biener  <rguenther@suse.de>
30541         PR tree-optimization/60785
30542         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
30543         default defs properly.
30545 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
30547         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
30548         (Weffc++): Likewise.
30550 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
30552         * ipa-devirt.c (maybe_record_node): When node is not recorded,
30553         set completep to false rather than true.
30555 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
30557         PR target/60504
30558         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
30559         ARM_TARGET2_DWARF_FORMAT.
30561 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
30563         PR target/60609
30564         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
30565         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
30566         ADDR_DIFF_VEC.
30568 2014-04-07  Richard Biener  <rguenther@suse.de>
30570         PR tree-optimization/60766
30571         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
30572         (may_eliminate_iv): Convert cand_value_at result to desired type.
30574 2014-04-07  Jason Merrill  <jason@redhat.com>
30576         PR c++/60731
30577         * common.opt (-fno-gnu-unique): Add.
30578         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
30580 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30582         * haifa-sched.c: Fix outdated function reference and minor
30583         grammar errors in introductory comment.
30585 2014-04-07  Richard Biener  <rguenther@suse.de>
30587         PR middle-end/60750
30588         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
30589         for noreturn calls.
30590         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
30592 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
30594         PR debug/55794
30595         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
30596         size accounting for thunks.
30597         (pa_asm_output_mi_thunk): Use final_start_function() and
30598         final_end_function() to output function start and end directives.
30600 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
30602         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
30603         device specific ISA/ feature information. Remove short_sp and
30604         errata_skip ds.  Add avr_device_specific_features enum to have device
30605         specific info.
30606         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
30607         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
30608         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
30609         updated device specific info.
30610         * config/avr/avr-mcus.def: Merge device specific details to
30611         dev_attribute field.
30612         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
30613         errata_skip.
30614         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
30615         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
30616         assembler if RMW isa supported by current device.
30617         * config/avr/genmultilib.awk: Update as device info structure changed.
30618         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
30620 2014-04-04  Cong Hou  <congh@google.com>
30622         PR tree-optimization/60656
30623         * tree-vect-stmts.c (supportable_widening_operation):
30624         Fix a bug that elements in a vector with vect_used_by_reduction
30625         property are incorrectly reordered when the operation on it is not
30626         consistant with the one in reduction operation.
30628 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
30630         PR rtl-optimization/60155
30631         * gcse.c (record_set_data): New function.
30632         (single_set_gcse): New function.
30633         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30634         (hoist_code): Likewise.
30635         (get_pressure_class_and_nregs): Likewise.
30637 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
30639         * explow.c (probe_stack_range): Emit a final optimization blockage.
30641 2014-04-04  Anthony Green  <green@moxielogic.com>
30643         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30644         typos.
30646 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
30648         PR ipa/59626
30649         * lto-cgraph.c (input_overwrite_node): Check that partitioning
30650         flags are set only during streaming.
30651         * ipa.c (process_references, walk_polymorphic_call_targets,
30652         symtab_remove_unreachable_nodes): Drop bodies of always inline
30653         after early inlining.
30654         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30656 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
30657         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30659         PR debug/60655
30660         * dwarf2out.c (const_ok_for_output_1): Reject expressions
30661         containing a NOT.
30663 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30665         PR bootstrap/60743
30666         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30667         duration.
30668         (cortex_a53_fdivd): Likewise.
30670 2014-04-04  Martin Jambor  <mjambor@suse.cz>
30672         PR ipa/60640
30673         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30674         Adjust all callers.
30675         * cgraph.c (clone_of_p): Also return true if thunks match.
30676         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30677         cgraph_function_or_thunk_node and an obsolete comment.
30678         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30679         file.
30680         (build_function_decl_skip_args): Likewise.
30681         (set_new_clone_decl_and_node_flags): New function.
30682         (duplicate_thunk_for_node): Likewise.
30683         (redirect_edge_duplicating_thunks): Likewise.
30684         (cgraph_clone_node): New parameter args_to_skip, pass it to
30685         redirect_edge_duplicating_thunks which is called instead of
30686         cgraph_redirect_edge_callee.
30687         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30688         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30690 2014-04-04  Jeff Law  <law@redhat.com>
30692         PR target/60657
30693         * config/arm/predicates.md (const_int_I_operand): New predicate.
30694         (const_int_M_operand): Similarly.
30695         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30696         const_int_operand.
30697         (insv_t2, extv_reg, extzv_t2): Likewise.
30698         (load_multiple_with_writeback): Similarly for const_int_I_operand.
30699         (pop_multiple_with_writeback_and_return): Likewise.
30700         (vfp_pop_multiple_with_writeback): Likewise
30702 2014-04-04  Richard Biener  <rguenther@suse.de>
30704         PR ipa/60746
30705         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30706         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30707         non-GIMPLE_LABELs.
30708         * gimplify.h (gimple_add_tmp_var_fn): Declare.
30709         * gimplify.c (gimple_add_tmp_var_fn): New function.
30710         * gimple-expr.h (create_tmp_reg_fn): Declare.
30711         * gimple-expr.c (create_tmp_reg_fn): New function.
30712         * gimple-low.c (record_vars_into): Don't change cfun.
30713         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30714         code generation without cfun.
30716 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
30718         PR bootstrap/60719
30719         * Makefile.in (install-driver): Fix shell scripting.
30721 2014-04-03  Cong Hou  <congh@google.com>
30723         PR tree-optimization/60505
30724         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30725         threshold of number of iterations below which no vectorization
30726         will be done.
30727         * tree-vect-loop.c (new_loop_vec_info):
30728         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30729         * tree-vect-loop.c (vect_analyze_loop_operations):
30730         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30731         * tree-vect-loop.c (vect_transform_loop):
30732         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30733         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30734         of iterations of the loop and see if we should build the epilogue.
30736 2014-04-03  Richard Biener  <rguenther@suse.de>
30738         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30739         (streamer_tree_cache_create): Adjust.
30740         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30741         to allow optional nodes array.
30742         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30743         (streamer_tree_cache_append): Likewise.
30744         (streamer_tree_cache_create): Create nodes array optionally
30745         as specified by parameter.
30746         * lto-streamer-out.c (create_output_block): Avoid maintaining
30747         the node array in the writer cache.
30748         (DFS_write_tree): Remove assertion.
30749         (produce_asm_for_decls): Free the out decl state hash table early.
30750         * lto-streamer-in.c (lto_data_in_create): Adjust for
30751         streamer_tree_cache_create prototype change.
30753 2014-04-03  Richard Biener  <rguenther@suse.de>
30755         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30756         set TREE_CHAIN to NULL_TREE.
30758 2014-04-03  Richard Biener  <rguenther@suse.de>
30760         PR tree-optimization/60740
30761         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30762         over all GIMPLE_COND operands.
30764 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
30766         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30767         (Weffc++): Remove Scott's numbering, merge lists and reference
30768         Wnon-virtual-dtor.
30770 2014-04-03  Nick Clifton  <nickc@redhat.com>
30772         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30773         properly.
30775 2014-04-03  Martin Jambor  <mjambor@suse.cz>
30777         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30778         mention gcc_unreachable before failing.
30779         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30780         removed symbols.
30782 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
30784         PR ipa/60659
30785         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30786         inconsistent code and instead mark the context inconsistent.
30787         (possible_polymorphic_call_targets): For inconsistent contexts
30788         return empty complete list.
30790 2014-04-02  Anthony Green  <green@moxielogic.com>
30792         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30793         (extendqisi2, extendhisi2): Define.
30794         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30795         (WCHAR_TYPE): Change to unsigned int.
30797 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30799         PR tree-optimization/60733
30800         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30801         insertion point for PHI candidates to be the end of the feeding
30802         block for the PHI argument.
30804 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
30806         PR rtl-optimization/60650
30807         * lra-constraints.c (process_alt_operands): Decrease reject for
30808         earlyclobber matching.
30810 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30812         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30814 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30816         * config/spu/spu.c (pad_bb): Do not crash when the last
30817         insn is CODE_FOR_blockage.
30819 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30821         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30822         lies outside the target mode.
30824 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30826         PR target/60735
30827         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30828         software floating point or no floating point registers, do not
30829         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30830         in GPRs that occurs after we tested for GPRs that would never be
30831         true.
30833         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30834         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30835         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30836         specifically allow DDmode, since that does not use the SPE SIMD
30837         instructions.
30839 2014-04-02  Richard Biener  <rguenther@suse.de>
30841         PR middle-end/60729
30842         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30843         MODE_INTs.  Properly use negv_optab.
30844         (expand_abs): Likewise.
30846 2014-04-02  Richard Biener  <rguenther@suse.de>
30848         PR bootstrap/60719
30849         * Makefile.in (install-driver): Guard extra installs with special
30850         names properly.
30852 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
30854         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30855         Document vec_vgbbd.
30857 2014-04-01  Richard Henderson  <rth@redhat.com>
30859         PR target/60704
30860         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30861         alternative enabled before register allocation.
30863 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
30865         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30866         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30867         typo.
30868         (nios2_large_got_address): Remove unneeded 'sym' parameter.
30869         (nios2_got_address): Update nios2_large_got_address call site.
30870         (nios2_delegitimize_address): New function.
30871         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30872         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30873         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30875 2014-04-01  Martin Husemann  <martin@duskware.de>
30877         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30878         for -mabi=32.
30880 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
30882         PR rtl-optimization/60604
30883         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30884         check from register_operand.
30885         (register_operand): Redefine in terms of general_operand.
30886         (nonmemory_operand): Use register_operand for the non-constant cases.
30888 2014-04-01  Richard Biener  <rguenther@suse.de>
30890         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30892 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30894         * doc/invoke.texi (mapp-regs): Clarify.
30896 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
30898         * config/i386/avx512fintrin.h (__v32hi): Define type.
30899         (__v64qi): Likewise.
30900         (_mm512_set1_epi8): Define.
30901         (_mm512_set1_epi16): Define.
30902         (_mm512_set4_epi32): Define.
30903         (_mm512_set4_epi64): Define.
30904         (_mm512_set4_pd): Define.
30905         (_mm512_set4_ps): Define.
30906         (_mm512_setr4_epi64): Define.
30907         (_mm512_setr4_epi32): Define.
30908         (_mm512_setr4_pd): Define.
30909         (_mm512_setr4_ps): Define.
30910         (_mm512_setzero_epi32): Define.
30912 2014-03-31  Martin Jambor  <mjambor@suse.cz>
30914         PR middle-end/60647
30915         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30916         callsite_arguments_match_p.  Updated all callers.  Also check types of
30917         corresponding formal parameters and actual arguments.
30918         (not_all_callers_have_enough_arguments_p) Renamed to
30919         some_callers_have_mismatched_arguments_p.
30921 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
30923         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30925 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
30927         PR target/60034
30928         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30929         section anchor.
30931 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
30933         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30934         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30935         Split out
30936         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30937         Use FMAMODE_NOVF512 mode iterator.
30938         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30939         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30940         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30941         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30942         Split out
30943         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30944         Use VF_128_256 mode iterator.
30945         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30946         Ditto.
30948 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30950         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30951         static chain if needed.
30953 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30955         PR target/60697
30956         * lra-constraints.c (index_part_to_reg): New.
30957         (process_address): Use it.
30959 2014-03-27  Jeff Law  <law@redhat.com>
30960             Jakub Jelinek  <jakub@redhat.com>
30962         PR target/60648
30963         * expr.c (do_tablejump): Use simplify_gen_binary rather than
30964         gen_rtx_{PLUS,MULT} to build up the address expression.
30966         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30967         creating non-canonical RTL.
30969 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30971         PR ipa/60243
30972         * ipa-inline.c (want_inline_small_function_p): Short circuit large
30973         functions; reorganize to make cheap checks first.
30974         (inline_small_functions): Do not estimate growth when dumping;
30975         it is expensive.
30976         * ipa-inline.h (inline_summary): Add min_size.
30977         (growth_likely_positive): New function.
30978         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30979         (set_cond_stmt_execution_predicate): Cleanup.
30980         (estimate_edge_size_and_time): Compute min_size.
30981         (estimate_calls_size_and_time): Likewise.
30982         (estimate_node_size_and_time): Likewise.
30983         (inline_update_overall_summary): Update min_size.
30984         (do_estimate_edge_time): Likewise.
30985         (do_estimate_edge_size): Update.
30986         (do_estimate_edge_hints): Update.
30987         (growth_likely_positive): New function.
30989 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
30991         PR target/60693
30992         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30993         also if addr has VOIDmode.
30995 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30997         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30998         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30999         Declare extern.
31000         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
31001         instructions as well as AdvancedSIMD loads.
31003 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31005         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
31006         Use crypto_aese type.
31007         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
31008         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
31009         crypto_aese, crypto_aesmc.  Move to types.md.
31010         * config/arm/types.md (crypto_aes): Split into crypto_aese,
31011         crypto_aesmc.
31012         * config/arm/iterators.md (crypto_type): Likewise.
31014 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
31016         * cgraph.c: Include expr.h and tree-dfa.h.
31017         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
31018         remove LHS.
31020 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
31022         PR target/60675
31023         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
31024         regs from checking multi-reg pseudos.
31026 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31028         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
31030 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31032         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
31033         if it would clobber the stack pointer, even temporarily.
31035 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31037         * mode-switching.c: Make small adjustments to the top comment.
31039 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
31041         * config/rs6000/constraints.md (wD constraint): New constraint to
31042         match the constant integer to get the top DImode/DFmode out of a
31043         vector in a VSX register.
31045         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
31046         match the constant integer to get the top DImode/DFmode out of a
31047         vector in a VSX register.
31049         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
31050         for ISA 2.07.
31052         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31053         vbpermq builtins.
31055         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31056         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
31058         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
31059         Optimize vec_extract of 64-bit values, where the value being
31060         extracted is in the top word, where we can use scalar
31061         instructions.  Add direct move and store support.  Combine the big
31062         endian/little endian vector select load support into a single insn.
31063         (vsx_extract_<mode>_internal1): Likewise.
31064         (vsx_extract_<mode>_internal2): Likewise.
31065         (vsx_extract_<mode>_load): Likewise.
31066         (vsx_extract_<mode>_store): Likewise.
31067         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
31068         combined into vsx_extract_<mode>_load.
31069         (vsx_extract_<mode>_one_le): Likewise.
31071         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
31072         define the top 64-bit vector element.
31074         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
31075         constraint.
31077         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31078         Document vec_vbpermq builtin.
31080         PR target/60672
31081         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
31082         enable use of xxsldwi and xxpermdi builtin functions.
31083         (vec_xxpermdi): Likewise.
31085         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31086         Document use of vec_xxsldwi and vec_xxpermdi builtins.
31088 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
31090         PR rtl-optimization/60650
31091         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
31092         first_p.  Use it.
31093         (find_spills_for): New.
31094         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
31095         Spill all pseudos on the second iteration.
31097 2014-03-27  Marek Polacek  <polacek@redhat.com>
31099         PR c/50347
31100         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
31101         types.
31103 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31105         * config/s390/s390.c (s390_can_use_return_insn): Check for
31106         call-saved FPRs on 31 bit.
31108 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
31110         PR middle-end/60682
31111         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
31112         if they need regimplification, just drop them instead of
31113         calling gimple_regimplify_operands on them.
31115 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31117         PR target/60580
31118         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
31119         (aarch64_frame_pointer_required): Adjust logic.
31120         (aarch64_can_eliminate): Adjust logic.
31121         (aarch64_override_options_after_change): Adjust logic.
31123 2014-03-27  Dehao Chen  <dehao@google.com>
31125         * ipa-inline.c (early_inliner): Update node's inline info.
31127 2014-03-26  Dehao Chen  <dehao@google.com>
31129         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
31130         compiler inserted conditional jumps for NAN float check.
31132 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
31134         * ubsan.h (ubsan_create_data): Change second argument's type
31135         to const location_t *.
31136         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
31137         _("<unknown>").
31138         (ubsan_create_data): Change second argument to const location_t *PLOC.
31139         Create Loc field whenever PLOC is non-NULL.
31140         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
31141         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
31142         callers.
31144         PR other/59545
31145         * real.c (real_to_integer2): Change type of low to UHWI.
31147 2014-03-26  Tobias Burnus  <burnus@net-b.de>
31149         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
31150         (CILK_SELF_SPECS): New define.
31151         (driver_self_specs): Use it.
31153 2014-03-26  Richard Biener  <rguenther@suse.de>
31155         * tree-pretty-print.c (percent_K_format): Implement special
31156         case for LTO and its stripped down BLOCK tree.
31158 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
31160         PR sanitizer/60636
31161         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
31163         * tree-vrp.c (simplify_internal_call_using_ranges): If only
31164         one range is range_int_cst_p, but not both, at least optimize
31165         addition/subtraction of 0 and multiplication by 0 or 1.
31166         * gimple-fold.c (gimple_fold_call): Fold
31167         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
31168         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
31169         INTEGER_CSTs, try to fold at least x * 0 and y - y.
31171 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31173         PR rtl-optimization/60452
31174         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
31175         <case REG>: Return 1 for invalid offsets from the frame pointer.
31177 2014-03-26  Marek Polacek  <polacek@redhat.com>
31179         PR c/37428
31180         * doc/extend.texi (C Extensions): Mention variable-length arrays in
31181         a structure/union.
31183 2014-03-26  Marek Polacek  <polacek@redhat.com>
31185         PR c/39525
31186         * doc/extend.texi (Designated Inits): Describe what happens to omitted
31187         field members.
31189 2014-03-26  Marek Polacek  <polacek@redhat.com>
31191         PR other/59545
31192         * ira-color.c (update_conflict_hard_regno_costs): Perform the
31193         multiplication in unsigned type.
31195 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
31197         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
31199 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
31201         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
31203 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
31205         PR ipa/60315
31206         * cif-code.def (UNREACHABLE) New code.
31207         * ipa-inline.c (inline_small_functions): Skip edges to
31208         __builtlin_unreachable.
31209         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
31210         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
31211         predicate to __bulitin_unreachable.
31212         (set_cond_stmt_execution_predicate): Fix issue when
31213         invert_tree_comparison returns ERROR_MARK.
31214         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
31215         propagate to inline clones.
31216         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
31217         to unreachable.
31218         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
31219         * cgraphclones.c (cgraph_clone_node): If call destination is already
31220         ureachable, do not redirect it back.
31221         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
31222         unreachable.
31224 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
31226         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
31227         Do not modify inline clones.
31229 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31231         * config/i386/i386.md (general_sext_operand): New mode attr.
31232         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
31233         don't generate (sign_extend (const_int)).
31234         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
31235         operands[2].  Use We constraint instead of <i> and
31236         <general_sext_operand> predicate instead of <general_operand>.
31237         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
31238         * config/i386/constraints.md (We): New constraint.
31239         * config/i386/predicates.md (x86_64_sext_operand,
31240         sext_operand): New predicates.
31242 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31244         PR ipa/60600
31245         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
31246         inconsistent devirtualizations to __builtin_unreachable.
31248 2014-03-25  Marek Polacek  <polacek@redhat.com>
31250         PR c/35449
31251         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
31253 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
31255         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
31256         order of elements for big-endian.
31258 2014-03-25  Richard Biener  <rguenther@suse.de>
31260         PR middle-end/60635
31261         * gimplify-me.c (gimple_regimplify_operands): Update the
31262         re-gimplifed stmt.
31264 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31266         PR ipa/59176
31267         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
31268         (lto_output_varpool_node): Likewise.
31269         (input_overwrite_node): Likewise.
31270         (input_varpool_node): Likewise.
31272 2014-03-25  Richard Biener  <rguenther@suse.de>
31274         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
31275         (run_gcc): Likewise.
31277 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31279         * combine.c (simplify_compare_const): Add MODE argument.
31280         Handle mode_width 0 as very large mode_width.
31281         (try_combine, simplify_comparison): Adjust callers.
31283         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
31284         type to avoid signed integer overflow.
31285         * explow.c (plus_constant): Likewise.
31287 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31289         * doc/generic.texi: Correct typos.
31291 2014-03-24  Tobias Burnus  <burnus@net-b.de>
31293         * doc/invoke.texi (-flto): Expand section about
31294         using static libraries with LTO.
31296 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31298         PR rtl-optimization/60501
31299         * optabs.def (addptr3_optab): New optab.
31300         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
31301         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
31302         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
31304         * lra.c (emit_add3_insn): Use the addptr pattern if available.
31306         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
31308 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
31310         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
31311         _mm512_set1_pd.
31313         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
31314         (_mm256_undefined_ps): Define.
31315         (_mm256_undefined_pd): Define.
31316         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
31317         (_mm_undefined_pd): Define.
31318         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
31319         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
31320         (_mm512_undefined_ps): Define.
31321         (_mm512_undefined_pd): Define.
31322         Use _mm*_undefined_*.
31323         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
31325 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
31327         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
31328         (lshr_simd): DI mode added.
31329         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
31330         (aarch64_ushr_simddi): Likewise.
31331         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
31332         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
31333         (vshrd_n_u64): Likewise.
31335 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31337         * Makefile.in (s-macro_list): Depend on cc1.
31339 2014-03-23  Teresa Johnson  <tejohnson@google.com>
31341         * ipa-utils.c (ipa_print_order): Use specified dump file.
31343 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31345         PR rtl-optimization/60601
31346         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
31348         * gcc.c (eval_spec_function): Initialize save_growing_value.
31350 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
31352         PR sanitizer/60613
31353         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
31354         code == MINUS_EXPR, never swap op0 with op1.
31356         * toplev.c (init_local_tick): Avoid signed integer multiplication
31357         overflow.
31358         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
31359         shift by first operand's bitsize.
31361 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
31363         PR target/60610
31364         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
31365         redefine to 1 or 0.
31366         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
31367         TARGET_ISA_64BIT_P(x).
31369 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31371         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
31372         pattern for vector nor instead of subtract from splat(-1).
31373         (altivec_expand_vec_perm_const_le): Likewise.
31375 2014-03-21  Richard Henderson  <rth@twiddle.net>
31377         PR target/60598
31378         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
31379         related insns after epilogue_completed.
31381 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31383         PR ipa/59176
31384         * cgraph.h (symtab_node): New flag body_removed.
31385         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
31386         when removing bodies.
31387         * symtab.c (dump_symtab_base): Dump body_removed flag.
31388         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
31389         had their bodies removed.
31391 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31393         PR ipa/60419
31394         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
31395         in the border.
31397 2014-03-21  Richard Biener  <rguenther@suse.de>
31399         PR tree-optimization/60577
31400         * tree-core.h (struct tree_base): Document nothrow_flag use
31401         in DECL_NONALIASED.
31402         * tree.h (DECL_NONALIASED): New.
31403         (may_be_aliased): Adjust.
31404         * coverage.c (build_var): Set DECL_NONALIASED.
31406 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31408         * expr.c (expand_expr_real_1): Remove outdated comment.
31410 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
31412         PR middle-end/60597
31413         * ira.c (adjust_cleared_regs): Call copy_rtx on
31414         *reg_equiv[REGNO (loc)].src_p before passing it to
31415         simplify_replace_fn_rtx.
31417         PR target/60568
31418         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
31419         into CONST, put pic register as first operand of PLUS.  Use
31420         gen_const_mem for both 32-bit and 64-bit PIC got loads.
31422 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31424         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
31426 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31428         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
31429         around for store forwarding issue in the FPU on the UT699.
31430         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
31431         loads and operations if -mfix-ut699 is specified.
31432         (divtf3_hq): Tweak attribute.
31433         (sqrttf2_hq): Likewise.
31435 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31437         * calls.c (store_one_arg): Remove incorrect const qualification on the
31438         type of the temporary.
31439         * cfgexpand.c (expand_return): Likewise.
31440         * expr.c (expand_constructor): Likewise.
31441         (expand_expr_real_1): Likewise.
31443 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31445         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
31446         of parts.
31448 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
31450         PR target/60039
31451         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
31453 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
31455         * config/arm/aarch-common-protos.h
31456         (alu_cost_table): Fix spelling of "extend".
31457         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
31459 2014-03-19  Richard Biener  <rguenther@suse.de>
31461         PR middle-end/60553
31462         * tree-core.h (tree_type_common): Re-order pointer members
31463         to reduce recursion depth during GC walks.
31465 2014-03-19  Marek Polacek  <polacek@redhat.com>
31467         PR sanitizer/60569
31468         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
31469         before accessing it.
31471 2014-03-19  Richard Biener  <rguenther@suse.de>
31473         PR lto/59543
31474         * lto-streamer-in.c (input_function): In WPA stage do not drop
31475         debug stmts.
31477 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
31479         PR tree-optimization/60559
31480         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
31481         with build_zero_cst assignment.
31483 2014-03-18  Kai Tietz  <ktietz@redhat.com>
31485         PR rtl-optimization/56356
31486         * sdbout.c (sdbout_parms): Verify that parms'
31487         incoming argument is valid.
31488         (sdbout_reg_parms): Likewise.
31490 2014-03-18  Richard Henderson  <rth@redhat.com>
31492         PR target/60562
31493         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
31494         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
31495         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
31497 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
31499         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
31500         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
31501         Italicize plugin event names in description.  Explain that
31502         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
31503         Remind that no GCC functions should be called after PLUGIN_FINISH.
31504         Explain what pragmas with expansion are.
31506 2014-03-18  Martin Liska  <mliska@suse.cz>
31508         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
31509         gimple call statement is update.
31510         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
31511         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
31513 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31515         PR sanitizer/60557
31516         * ubsan.c (ubsan_instrument_unreachable): Call
31517         initialize_sanitizer_builtins.
31518         (ubsan_pass): Likewise.
31520         PR sanitizer/60535
31521         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
31522         varpool_finalize_decl instead of rest_of_decl_compilation.
31524 2014-03-18  Richard Biener  <rguenther@suse.de>
31526         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
31527         by using bitmap_and_compl instead of bitmap_and_compl_into.
31528         (df_rd_transfer_function): Likewise.
31530 2014-03-18  Richard Biener  <rguenther@suse.de>
31532         * doc/lto.texi (fresolution): Fix typo.
31534 2014-03-18  Richard Biener  <rguenther@suse.de>
31536         * doc/invoke.texi (flto): Update for changes in 4.9.
31538 2014-03-18  Richard Biener  <rguenther@suse.de>
31540         * doc/loop.texi: Remove section on the removed lambda framework.
31541         Update loop docs with recent changes in preserving loop structure.
31543 2014-03-18  Richard Biener  <rguenther@suse.de>
31545         * doc/lto.texi (-fresolution): Document.
31547 2014-03-18  Richard Biener  <rguenther@suse.de>
31549         * doc/contrib.texi: Adjust my name.
31551 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31553         PR ipa/58721
31554         * internal-fn.c: Include diagnostic-core.h.
31555         (expand_BUILTIN_EXPECT): New function.
31556         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
31557         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
31558         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
31559         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
31560         IFN_BUILTIN_EXPECT.
31561         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
31562         Revert 3 argument __builtin_expect code.
31563         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
31564         * gimple-fold.c (gimple_fold_call): Likewise.
31565         * tree.h (fold_builtin_expect): New prototype.
31566         * builtins.c (build_builtin_expect_predicate): Add predictor
31567         argument, if non-NULL, create 3 argument __builtin_expect.
31568         (fold_builtin_expect): No longer static.  Add ARG2 argument,
31569         pass it through to build_builtin_expect_predicate.
31570         (fold_builtin_2): Adjust caller.
31571         (fold_builtin_3): Handle BUILT_IN_EXPECT.
31572         * internal-fn.def (BUILTIN_EXPECT): New.
31574 2014-03-18  Tobias Burnus  <burnus@net-b.de>
31576         PR ipa/58721
31577         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
31578         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
31579         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
31581 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
31583         PR ipa/58721
31584         * predict.c (combine_predictions_for_bb): Fix up formatting.
31585         (expr_expected_value_1, expr_expected_value): Add predictor argument,
31586         fill what it points to if non-NULL.
31587         (tree_predict_by_opcode): Adjust caller, use the predictor.
31588         * predict.def (PRED_COMPARE_AND_SWAP): Add.
31590 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
31592         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
31593         proper constant for the store mode.
31595 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
31597         * symtab.c (change_decl_assembler_name): Fix transparent alias
31598         chain construction.
31600 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
31602         * config/aarch64/aarch64.c: Correct the comments about the
31603         aarch64 stack layout.
31605 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
31607         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
31608         check for GF_OMP_FOR_KIND_FOR.
31610 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
31612         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
31613         ymm and zmm register names.
31615 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
31617         PR target/60516
31618         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
31619         note creation for the 2010-08-31 changes.
31621 2014-03-17  Marek Polacek  <polacek@redhat.com>
31623         PR middle-end/60534
31624         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31625         as -fno-tree-loop-vectorize.
31626         (expand_omp_simd): Likewise.
31628 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
31630         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31631         (eligible_for_call_delay): New prototype.
31632         * config/sparc/sparc.c (tls_call_delay): Rename into...
31633         (eligible_for_call_delay): ...this.  Return false if the instruction
31634         cannot be put in the delay slot of a branch.
31635         (eligible_for_restore_insn): Simplify.
31636         (eligible_for_return_delay): Return false if the instruction cannot be
31637         put in the delay slot of a branch and simplify.
31638         (eligible_for_sibcall_delay): Return false if the instruction cannot be
31639         put in the delay slot of a branch.
31640         * config/sparc/sparc.md (fix_ut699): New attribute.
31641         (tls_call_delay): Delete.
31642         (in_call_delay): Reimplement.
31643         (eligible_for_sibcall_delay): Rename into...
31644         (in_sibcall_delay): ...this.
31645         (eligible_for_return_delay): Rename into...
31646         (in_return_delay): ...this.
31647         (in_branch_delay): Reimplement.
31648         (in_uncond_branch_delay): Delete.
31649         (in_annul_branch_delay): Delete.
31651 2014-03-14  Richard Henderson  <rth@redhat.com>
31653         PR target/60525
31654         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31655         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31656         (*floathi<X87MODEF>2_i387_with_temp): Remove.
31657         (floathi splitters): Remove.
31658         (float<SWI48x>xf2): New pattern.
31659         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
31660         code that tried to handle DImode for 32-bit, but which was excluded
31661         by the pattern's condition.  Drop allocation of stack temporary.
31662         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31663         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31664         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31665         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31666         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31667         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31668         (*float<SWI48><MODEF>2_sse_interunit): Remove.
31669         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31670         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31671         (*float<SWI48x><X87MODEF>2_i387): Remove.
31672         (all float _with_temp splitters): Remove.
31673         (*float<SWI48x><MODEF>2_i387): New pattern.
31674         (*float<SWI48><MODEF>2_sse): New pattern.
31675         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31676         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31678 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
31679             Marek Polacek  <polacek@redhat.com>
31681         PR middle-end/60484
31682         * common.opt (dump_base_name_prefixed): New Variable.
31683         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31684         if x_dump_base_name_prefixed is already set, set it at the end.
31686 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
31688         PR rtl-optimization/60508
31689         * lra-constraints.c (get_reload_reg): Add new parameter
31690         in_subreg_p.
31691         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31692         Pass the new parameter values.
31694 2014-03-14  Richard Biener  <rguenther@suse.de>
31696         * common.opt: Revert unintented changes from r205065.
31697         * opts.c: Likewise.
31699 2014-03-14  Richard Biener  <rguenther@suse.de>
31701         PR middle-end/60518
31702         * cfghooks.c (split_block): Properly adjust all loops the
31703         block was a latch of.
31705 2014-03-14  Martin Jambor  <mjambor@suse.cz>
31707         PR lto/60461
31708         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31709         and simplify it.
31711 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
31713         PR target/59396
31714         * config/avr/avr.c (avr_set_current_function): Pass function name
31715         through default_strip_name_encoding before sanity checking instead
31716         of skipping the first char of the assembler name.
31718 2014-03-13  Richard Henderson  <rth@redhat.com>
31720         PR debug/60438
31721         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31722         (ix86_force_to_memory, ix86_free_from_memory): Remove.
31723         * config/i386/i386-protos.h: Likewise.
31724         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31725         in the expander instead of a splitter.
31726         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31727         any possibility of requiring a memory.
31728         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31729         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31730         (fp branch splitters): Update for ix86_split_fp_branch.
31731         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31732         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31733         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31734         (*fop_<MODEF>_2_i387): Remove f/r alternative.
31735         (*fop_<MODEF>_3_i387): Likewise.
31736         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31737         (splitters for the fop_* register patterns): Remove.
31738         (fscalexf4_i387): Rename from *fscalexf4_i387.
31739         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31741 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31743         PR tree-optimization/59779
31744         * tree-dfa.c (get_ref_base_and_extent): Use double_int
31745         type for bitsize and maxsize instead of HOST_WIDE_INT.
31747 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
31749         PR rtl-optimization/57320
31750         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31751         the CFG after thread_prologue_and_epilogue_insns.
31753 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31755         PR rtl-optimization/57189
31756         * lra-constraints.c (process_alt_operands): Disfavor spilling
31757         vector pseudos.
31759 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
31761         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31763 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31765         PR tree-optimization/59025
31766         PR middle-end/60418
31767         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31768         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31770 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
31772         PR target/60486
31773         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31774         calls of avr_out_plus_1.
31776 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
31778         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31779         BB's single pred and update the father loop's latch info later.
31781 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31783         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31784         (VEC_M): Likewise.
31785         (VEC_N): Likewise.
31786         (VEC_R): Likewise.
31787         (VEC_base): Likewise.
31788         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31789         registers, we need to swap double words in little endian mode.
31791         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31792         to be a container mode for 128-bit integer operations added in ISA
31793         2.07.  Unlike TImode and PTImode, the preferred register set is
31794         the Altivec/VMX registers for the 128-bit operations.
31796         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31797         declarations.
31798         (rs6000_split_128bit_ok_p): Likewise.
31800         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31801         macros for creating ISA 2.07 normal and overloaded builtin
31802         functions with 3 arguments.
31803         (BU_P8V_OVERLOAD_3): Likewise.
31804         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31805         for use as overloaded functions.
31806         (VPERM_1TI_UNS): Likewise.
31807         (VSEL_1TI): Likewise.
31808         (VSEL_1TI_UNS): Likewise.
31809         (ST_INTERNAL_1ti): Likewise.
31810         (LD_INTERNAL_1ti): Likewise.
31811         (XXSEL_1TI): Likewise.
31812         (XXSEL_1TI_UNS): Likewise.
31813         (VPERM_1TI): Likewise.
31814         (VPERM_1TI_UNS): Likewise.
31815         (XXPERMDI_1TI): Likewise.
31816         (SET_1TI): Likewise.
31817         (LXVD2X_V1TI): Likewise.
31818         (STXVD2X_V1TI): Likewise.
31819         (VEC_INIT_V1TI): Likewise.
31820         (VEC_SET_V1TI): Likewise.
31821         (VEC_EXT_V1TI): Likewise.
31822         (EQV_V1TI): Likewise.
31823         (NAND_V1TI): Likewise.
31824         (ORC_V1TI): Likewise.
31825         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31826         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
31827         overloaded builtin.
31828         (VADDUQM): Likewise.
31829         (VSUBCUQ): Likewise.
31830         (VADDEUQM): Likewise.
31831         (VADDECUQ): Likewise.
31832         (VSUBEUQM): Likewise.
31833         (VSUBECUQ): Likewise.
31835         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31836         __int128_t and __uint128_t types.
31837         (__uint128_type): Likewise.
31838         (altivec_categorize_keyword): Add support for vector __int128_t,
31839         vector __uint128_t, vector __int128, and vector unsigned __int128
31840         as a container type for TImode operations that need to be done in
31841         VSX/Altivec registers.
31842         (rs6000_macro_to_expand): Likewise.
31843         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31844         to support 128-bit integer instructions vaddcuq, vadduqm,
31845         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31846         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31848         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31849         for V1TImode, and set up preferences to use VSX/Altivec registers.
31850         Setup VSX reload handlers.
31851         (rs6000_debug_reg_global): Likewise.
31852         (rs6000_init_hard_regno_mode_ok): Likewise.
31853         (rs6000_preferred_simd_mode): Likewise.
31854         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31855         (easy_altivec_constant): Likewise.
31856         (output_vec_const_move): Likewise.
31857         (rs6000_expand_vector_set): Convert V1TImode set and extract to
31858         simple move.
31859         (rs6000_expand_vector_extract): Likewise.
31860         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31861         addressing.
31862         (rs6000_const_vec): Add support for V1TImode.
31863         (rs6000_emit_le_vsx_load): Swap double words when loading or
31864         storing TImode/V1TImode.
31865         (rs6000_emit_le_vsx_store): Likewise.
31866         (rs6000_emit_le_vsx_move): Likewise.
31867         (rs6000_emit_move): Add support for V1TImode.
31868         (altivec_expand_ld_builtin): Likewise.
31869         (altivec_expand_st_builtin): Likewise.
31870         (altivec_expand_vec_init_builtin): Likewise.
31871         (altivec_expand_builtin): Likewise.
31872         (rs6000_init_builtins): Add support for V1TImode type.  Add
31873         support for ISA 2.07 128-bit integer builtins.  Define type names
31874         for the VSX/Altivec vector types.
31875         (altivec_init_builtins): Add support for overloaded vector
31876         functions with V1TImode type.
31877         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31878         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31879         external function.
31880         (rs6000_split_128bit_ok_p): Likewise.
31881         (rs6000_handle_altivec_attribute): Create V1TImode from vector
31882         __int128_t and vector __uint128_t.
31884         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31885         and mode attributes.
31886         (VSX_M): Likewise.
31887         (VSX_M2): Likewise.
31888         (VSm): Likewise.
31889         (VSs): Likewise.
31890         (VSr): Likewise.
31891         (VSv): Likewise.
31892         (VS_scalar): Likewise.
31893         (VS_double): Likewise.
31894         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31896         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31897         we support the ISA 2.07 128-bit integer arithmetic instructions.
31898         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31899         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31900         and TImode types for use with the builtin functions.
31901         (V1TI_type_node): Likewise.
31902         (unsigned_V1TI_type_node): Likewise.
31903         (intTI_type_internal_node): Likewise.
31904         (uintTI_type_internal_node): Likewise.
31906         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31907         128-bit builtin functions.
31908         (UNSPEC_VADDEUQM): Likewise.
31909         (UNSPEC_VADDECUQ): Likewise.
31910         (UNSPEC_VSUBCUQ): Likewise.
31911         (UNSPEC_VSUBEUQM): Likewise.
31912         (UNSPEC_VSUBECUQ): Likewise.
31913         (VM): Add V1TImode to vector mode iterators.
31914         (VM2): Likewise.
31915         (VI_unit): Likewise.
31916         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31917         (altivec_vaddcuq): Likewise.
31918         (altivec_vsubuqm): Likewise.
31919         (altivec_vsubcuq): Likewise.
31920         (altivec_vaddeuqm): Likewise.
31921         (altivec_vaddecuq): Likewise.
31922         (altivec_vsubeuqm): Likewise.
31923         (altivec_vsubecuq): Likewise.
31925         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31926         mode iterators.
31927         (BOOL_128): Likewise.
31928         (BOOL_REGS_OUTPUT): Likewise.
31929         (BOOL_REGS_OP1): Likewise.
31930         (BOOL_REGS_OP2): Likewise.
31931         (BOOL_REGS_UNARY): Likewise.
31932         (BOOL_REGS_AND_CR0): Likewise.
31934         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31935         128-bit integer builtin support.
31936         (vec_vadduqm): Likewise.
31937         (vec_vaddecuq): Likewise.
31938         (vec_vaddeuqm): Likewise.
31939         (vec_vsubecuq): Likewise.
31940         (vec_vsubeuqm): Likewise.
31941         (vec_vsubcuq): Likewise.
31942         (vec_vsubuqm): Likewise.
31944         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31945         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31946         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31947         128-bit integer add/subtract to ISA 2.07.
31949 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
31951         * config/arc/arc.c (arc_predicate_delay_insns):
31952         Fix third argument passed to conditionalize_nonjump.
31954 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
31956         * config/aarch64/aarch64-builtins.c
31957         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31958         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31959         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31960         instead of __builtin_lfloor.
31961         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31963 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31965         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31966         (tree_ssa_ifcombine_bb_1): New function.
31967         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
31968         is an empty forwarder block to then_bb or vice versa and then_bb
31969         and else_bb are effectively swapped.
31971 2014-03-12  Christian Bruel  <christian.bruel@st.com>
31973         PR target/60264
31974         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31975         REG_CFA_DEF_CFA note.
31976         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31977         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31979 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31981         PR tree-optimization/60454
31982         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31984 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31986         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31987         Do not define target_cpu_default2 to generic.
31988         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31989         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31990         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31992 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31993             Marc Glisse  <marc.glisse@inria.fr>
31995         PR tree-optimization/60502
31996         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31997         instead of build_low_bits_mask.
31999 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
32001         PR middle-end/60482
32002         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
32003         if there are multiple uses, but op doesn't live on E edge.
32004         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
32005         clobber stmts before __builtin_unreachable.
32007 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
32009         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
32010         hard_frame_pointer_rtx.
32011         * cse.c (cse_insn): Remove volatile check.
32012         * cselib.c (cselib_process_insn): Likewise.
32013         * dse.c (scan_insn): Likewise.
32015 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32017         * config/arc/arc.c (conditionalize_nonjump): New function,
32018         broken out of ...
32019         (arc_ifcvt): ... this.
32020         (arc_predicate_delay_insns): Use it.
32022 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32024         * config/arc/predicates.md (extend_operand): During/after reload,
32025         allow const_int_operand.
32026         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
32027         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
32028         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
32029         to "i".
32030         (umulsi3_highpart_i): Likewise.
32032 2014-03-11  Richard Biener  <rguenther@suse.de>
32034         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
32035         Add asserts to guard possible wrong-code bugs.
32037 2014-03-11  Richard Biener  <rguenther@suse.de>
32039         PR tree-optimization/60429
32040         PR tree-optimization/60485
32041         * tree-ssa-structalias.c (set_union_with_increment): Properly
32042         take into account all fields that overlap the shifted vars.
32043         (do_sd_constraint): Likewise.
32044         (do_ds_constraint): Likewise.
32045         (get_constraint_for_ptr_offset): Likewise.
32047 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
32049         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
32050         (nios2_compute_frame_layout):
32051         Add calculation of cfun->machine->fp_save_offset.
32052         (nios2_expand_prologue): Correct setting of frame pointer register
32053         in prologue.
32054         (nios2_expand_epilogue): Update recovery of stack pointer from
32055         frame pointer accordingly.
32056         (nios2_initial_elimination_offset): Update calculation of offset
32057         for eliminating to HARD_FRAME_POINTER_REGNUM.
32059 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
32061         PR ipa/60457
32062         * ipa.c (symtab_remove_unreachable_nodes): Don't call
32063         cgraph_get_create_node on VAR_DECLs.
32065 2014-03-10  Richard Biener  <rguenther@suse.de>
32067         PR middle-end/60474
32068         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
32070 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
32072         * config/vms/vms.opt (vms_float_format): New variable.
32074 2014-03-08  Tobias Burnus  <burnus@net-b.de>
32076         * doc/invoke.texi (-fcilkplus): Update implementation status.
32078 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
32079             Richard Biener  <rguenther@suse.de>
32081         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
32082         consistently accross all TUs.
32083         (run_gcc): Enable -fshort-double automatically at link at link-time
32084         and disallow override.
32086 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
32088         PR target/58271
32089         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
32090         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
32091         if they can't be used.
32093 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32095         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
32096         for Solaris 11/x86 ld.
32097         * configure: Regenerate.
32099 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32101         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
32102         (LIB_TLS_SPEC): Save as ld_tls_libs.
32103         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
32104         (HAVE_AS_IX86_TLSLDM): New test.
32105         * configure, config.in: Regenerate.
32106         * config/i386/i386.c (legitimize_tls_address): Fall back to
32107         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
32108         cannot support TLS_MODEL_LOCAL_DYNAMIC.
32109         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
32110         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
32112 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
32114         * common.opt (fira-loop-pressure): Mark as optimization.
32116 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
32118         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
32119         an OpenMP mappable type.
32121 2014-03-06  Matthias Klose  <doko@ubuntu.com>
32123         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
32124         MULTILIB_OSDIRNAMES is not defined.
32126 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
32127             Meador Inge  <meadori@codesourcery.com>
32129         PR target/58595
32130         * config/arm/arm.c (arm_tls_symbol_p): Remove.
32131         (arm_legitimize_address): Call legitimize_tls_address for any
32132         arm_tls_referenced_p expression, handle constant addend.  Call it
32133         before testing for !TARGET_ARM.
32134         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
32136 2014-03-06  Richard Biener  <rguenther@suse.de>
32138         PR middle-end/60445
32139         PR lto/60424
32140         PR lto/60427
32141         Revert
32142         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
32144         * tree-streamer.c (record_common_node): Assert we don't record
32145         nodes with type double.
32146         (preload_common_node): Skip type double, complex double and double
32147         pointer since it is now frontend dependent due to fshort-double option.
32149 2014-03-06  Richard Biener  <rguenther@suse.de>
32151         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
32152         or -fno-lto is specified and the linker has full plugin support.
32153         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
32154         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
32155         * lto-wrapper.c (merge_and_complain): Merge compile-time
32156         optimization levels.
32157         (run_gcc): And pass it through to the link options.
32159 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
32161         PR debug/60381
32162         Revert:
32163         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32164         PR debug/59992
32165         * cselib.c (remove_useless_values): Skip to avoid quadratic
32166         behavior if the condition moved from...
32167         (cselib_process_insn): ... here holds.
32169 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
32171         PR plugins/59335
32172         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
32173         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
32175         PR plugins/59335
32176         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
32177         (TM_H): Add x86-tune.def.
32179 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32181         * config/aarch64/aarch64.c (generic_tunings):
32182         Use cortexa57_extra_costs.
32184 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
32186         PR lto/60404
32187         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
32188         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
32189         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
32190         cost for in_lto_p.
32192 2014-03-04  Heiher  <r@hev.cc>
32194         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
32195         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
32197 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
32199         * config/i386/predicates.md (const2356_operand): Change to ...
32200         (const2367_operand): ... this.
32201         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
32202         const2367_operand.
32203         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32204         (*avx512pf_scatterpf<mode>sf): Ditto.
32205         (avx512pf_scatterpf<mode>df): Ditto.
32206         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32207         (*avx512pf_scatterpf<mode>df): Ditto.
32208         * config/i386/i386.c (ix86_expand_builtin): Update
32209         incorrect hint operand error message.
32211 2014-03-04  Richard Biener  <rguenther@suse.de>
32213         * lto-section-in.c (lto_get_section_data): Fix const cast.
32215 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
32217         * tree-streamer.c (record_common_node): Assert we don't record
32218         nodes with type double.
32219         (preload_common_node): Skip type double, complex double and double
32220         pointer since it is now frontend dependent due to fshort-double option.
32222 2014-03-04  Richard Biener  <rguenther@suse.de>
32224         PR lto/60405
32225         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
32226         (lto_input_toplevel_asms): Likewise.
32227         * lto-section-in.c (lto_get_section_data): Instead do it here
32228         for every section.
32230 2014-03-04  Richard Biener  <rguenther@suse.de>
32232         PR tree-optimization/60382
32233         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
32234         dead PHIs a reduction.
32236 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
32238         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
32239         hint value.
32240         (_mm_prefetch): Move out of GCC target("sse") pragma.
32241         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
32242         GCC target("prfchw") pragma.
32243         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
32244         for locality <= 2.
32245         * config/i386/i386.c (ix86_option_override_internal): Enable
32246         -mprfchw with -mprefetchwt1.
32248 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32250         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
32251         Mark as varying.
32253 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32255         * opts.h (CL_PCH_IGNORE): Define.
32256         * targhooks.c (option_affects_pch_p):
32257         Return false for options that have CL_PCH_IGNORE set.
32258         * opt-functions.awk: Process PchIgnore.
32259         * doc/options.texi: Document PchIgnore.
32261         * config/arc/arc.opt (misize): Add PchIgnore property.
32263 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32265         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
32266         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
32267         constraint on constants to permit them being loaded into
32268         GENERAL_REGS or BASE_REGS.
32270 2014-03-03  Nick Clifton  <nickc@redhat.com>
32272         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
32273         anti-cacnonical alternatives.
32274         (negandhi3_real): New pattern.
32275         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
32277 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32279         * config/avr/avr-mcus.def: Remove atxmega16x1.
32280         * config/avr/avr-tables.opt: Regenerate.
32281         * config/avr/t-multilib: Regenerate.
32282         * doc/avr-mmcu.texi: Regenerate.
32284 2014-03-03  Tobias Grosser  <tobias@grosser.es>
32285             Mircea Namolaru  <mircea.namolaru@inria.fr>
32287         PR tree-optimization/58028
32288         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
32289         scalar dimensions.
32291 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32293         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
32294         not handled by recognizers.
32296 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
32298         PR middle-end/60175
32299         * function.c (expand_function_end): Don't emit
32300         clobber_return_register sequence if clobber_after is a BARRIER.
32301         * cfgexpand.c (construct_exit_block): Append instructions before
32302         return_label to prev_bb.
32304 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32306         * config/rs6000/constraints.md: Document reserved use of "wc".
32308 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32310         PR ipa/60150
32311         * ipa.c (function_and_variable_visibility): When dissolving comdat
32312         group, also set all symbols to local.
32314 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32316         PR ipa/60306
32318         Revert:
32319         2013-12-14  Jan Hubicka  <jh@suse.cz>
32320         PR middle-end/58477
32321         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
32323 2014-03-02  Jon Beniston  <jon@beniston.com>
32325         PR bootstrap/48230
32326         PR bootstrap/50927
32327         PR bootstrap/52466
32328         PR target/46898
32329         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
32330         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
32331         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
32332         (simple_return, *simple_return): New patterns
32333         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
32334         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
32336 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
32338         * dwarf2out.c (gen_subprogram_die): Tidy.
32340 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
32342         PR target/60071
32343         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
32344         (*mov_t_msb_neg_negc): ... this new insn.
32346 2014-02-28  Jason Merrill  <jason@redhat.com>
32348         PR c++/58678
32349         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
32350         function.
32352 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32354         PR c++/60314
32355         * dwarf2out.c (decltype_auto_die): New static.
32356         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
32357         (gen_type_die_with_usage): Handle 'decltype(auto)'.
32358         (is_cxx_auto): Likewise.
32360 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
32362         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
32363         we are not using general regs only.
32365 2014-02-28  Richard Biener  <rguenther@suse.de>
32367         PR target/60280
32368         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
32369         previous fix and only allow to remove trivial pre-headers
32370         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
32371         (remove_forwarder_block): Properly update the latch of a loop.
32373 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32375         PR debug/59992
32376         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
32377         (cselib_preserved_hash_table): New.
32378         (preserve_constants_and_equivs): Move preserved vals to it.
32379         (cselib_find_slot): Look it up first.
32380         (cselib_init): Initialize it.
32381         (cselib_finish): Release it.
32382         (dump_cselib_table): Dump it.
32384 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32386         PR debug/59992
32387         * cselib.c (remove_useless_values): Skip to avoid quadratic
32388         behavior if the condition moved from...
32389         (cselib_process_insn): ... here holds.
32391 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32393         PR debug/57232
32394         * var-tracking.c (vt_initialize): Apply the same condition to
32395         preserve the CFA base value.
32397 2014-02-28  Joey Ye  <joey.ye@arm.com>
32399         PR target/PR60169
32400         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
32401         if reload in progress or completed.
32403 2014-02-28  Tobias Burnus  <burnus@net-b.de>
32405         PR middle-end/60147
32406         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
32407         NAMELIST_DECL.
32409 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32411         * doc/tm.texi.in (Condition Code Status): Update documention for
32412         relative locations of cc0-setter and cc0-user.
32414 2014-02-27  Jeff Law  <law@redhat.com>
32416         PR rtl-optimization/52714
32417         * combine.c (try_combine): When splitting an unrecognized PARALLEL
32418         into two independent simple sets, if I3 is a jump, ensure the
32419         pattern we place into I3 is a (set (pc) ...).
32421 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
32422             Jeff Law  <law@redhat.com>
32424         PR rtl-optimization/49847
32425         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
32426         are in different blocks.
32427         * doc/tm.texi (Condition Code Status): Update documention for
32428         relative locations of cc0-setter and cc0-user.
32430 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32432         PR target/59222
32433         * lra.c (lra_emit_add): Check SUBREG too.
32435 2014-02-27  Andreas Schwab  <schwab@suse.de>
32437         * config/m68k/m68k.c (m68k_option_override): Disable
32438         -flive-range-shrinkage for classic m68k.
32439         (m68k_override_options_after_change): Likewise.
32441 2014-02-27  Marek Polacek  <polacek@redhat.com>
32443         PR middle-end/59223
32444         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
32445         -Wmaybe-uninitialized.
32447 2014-02-27  Alan Modra  <amodra@gmail.com>
32449         PR target/57936
32450         * reload1.c (emit_input_reload_insns): When reload_override_in,
32451         set old to rl->in_reg when rl->in_reg is a subreg.
32453 2014-02-26  Richard Biener  <rguenther@suse.de>
32455         PR bootstrap/60343
32456         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
32458 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32460         * common/config/i386/predicates.md (const1256_operand): Remove.
32461         (const2356_operand): New.
32462         (const_1_to_2_operand): Remove.
32463         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32464         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32465         (*avx512pf_gatherpf<mode>sf): Ditto.
32466         (avx512pf_gatherpf<mode>df): Ditto.
32467         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32468         (*avx512pf_gatherpf<mode>df): Ditto.
32469         (avx512pf_scatterpf<mode>sf): Ditto.
32470         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32471         (*avx512pf_scatterpf<mode>sf): Ditto.
32472         (avx512pf_scatterpf<mode>df): Ditto.
32473         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32474         (*avx512pf_scatterpf<mode>df): Ditto.
32475         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
32477 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
32479         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
32480         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
32481         (_mm512_mask_testn_epi64_mask): Move to ...
32482         * config/i386/avx512cdintrin.h: Here.
32483         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
32484         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
32485         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
32486         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
32487         TARGET_AVX512F from TARGET_AVX512CD.
32489 2014-02-26  Richard Biener  <rguenther@suse.de>
32491         PR ipa/60327
32492         * ipa.c (walk_polymorphic_call_targets): Properly guard
32493         call to inline_update_overall_summary.
32495 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
32497         PR target/60280
32498         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
32499         and latches only if requested.  Fix latch if it is removed.
32500         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
32501         LOOPS_HAVE_PREHEADERS.
32503 2014-02-25  Andrew Pinski  <apinski@cavium.com>
32505         * builtins.c (expand_builtin_thread_pointer): Create a new target
32506         when the target is NULL.
32508 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
32510         PR rtl-optimization/60317
32511         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32512         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32513         * lra-assigns.c: Include params.h.
32514         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
32515         other reload pseudos considerations.
32517 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32519         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
32520         to use canonical form for nor<mode>3.
32522 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32524         PR target/55426
32525         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
32526         conversions.
32528 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32530         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
32531         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
32532         (ix86_handle_option): Handle OPT_mprefetchwt1.
32533         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
32534         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
32535         PREFETCHWT1 CPUID.
32536         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32537         OPTION_MASK_ISA_PREFETCHWT1.
32538         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
32539         (PTA_PREFETCHWT1): New.
32540         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
32541         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
32542         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
32543         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
32544         (*prefetch_avx512pf_<mode>_: Change into ...
32545         (*prefetch_prefetchwt1_<mode>: This.
32546         * config/i386/i386.opt (mprefetchwt1): New.
32547         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
32548         (_mm_prefetch): Handle intent to write.
32549         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
32551 2014-02-25  Richard Biener  <rguenther@suse.de>
32553         PR middle-end/60291
32554         * emit-rtl.c (mem_attrs_htab): Remove.
32555         (mem_attrs_htab_hash): Likewise.
32556         (mem_attrs_htab_eq): Likewise.
32557         (set_mem_attrs): Always allocate new mem-attrs when something changed.
32558         (init_emit_once): Do not allocate mem_attrs_htab.
32560 2014-02-25  Richard Biener  <rguenther@suse.de>
32562         PR lto/60319
32563         * lto-opts.c (lto_write_options): Output non-explicit conservative
32564         -fwrapv, -fno-trapv and -fno-strict-overflow.
32565         * lto-wrapper.c (merge_and_complain): Handle merging those options.
32566         (run_gcc): And pass them through.
32568 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32570         * sel-sched.c (calculate_new_fences): New parameter ptime.
32571         Calculate it as a maximum over all fence cycles.
32572         (sel_sched_region_2): Adjust the call to calculate_new_fences.
32573         Print the final schedule timing when sched_verbose.
32575 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32577         PR rtl-optimization/60292
32578         * sel-sched.c (fill_vec_av_set): Do not reset target availability
32579         bit fot the fence instruction.
32581 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
32583         * calls.h: Fix typo in comment.
32585 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
32587         * config/pa/pa.c (pa_output_move_double): Don't valididate when
32588         adjusting offsetable addresses.
32590 2014-02-24  Guozhi Wei  <carrot@google.com>
32592         * sparseset.h (sparseset_pop): Fix the wrong index.
32594 2014-02-24  Walter Lee  <walt@tilera.com>
32596         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
32597         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
32598         triplet.
32599         * common/config/tilegx/tilegx-common.c
32600         (TARGET_DEFAULT_TARGET_FLAGS): Define.
32601         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
32602         (LINK_SPEC): Ditto.
32603         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
32604         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
32605         (tilegx_gimplify_va_arg_expr): Handle big endian.
32606         (tilegx_expand_unaligned_load): Ditto.
32607         (tilegx_expand_unaligned_store): Ditto.
32608         (TARGET_RETURN_IN_MSB): New.
32609         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
32610         (TARGET_ENDIAN_DEFAULT): New.
32611         (TARGET_BIG_ENDIAN): Handle big endian.
32612         (BYTES_BIG_ENDIAN): Ditto.
32613         (WORDS_BIG_ENDIAN): Ditto.
32614         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
32615         (ENDIAN_SPEC): New.
32616         (EXTRA_SPECS): New.
32617         * config/tilegx/tilegx.md (extv): Handle big endian.
32618         (extzv): Ditto.
32619         (insn_st<n>): Ditto.
32620         (insn_st<n>_add<bitsuffix>): Ditto.
32621         (insn_stnt<n>): Ditto.
32622         (insn_stnt<n>_add<bitsuffix>):Ditto.
32623         (vec_interleave_highv8qi): Handle big endian.
32624         (vec_interleave_highv8qi_be): New.
32625         (vec_interleave_highv8qi_le): New.
32626         (insn_v1int_h): Handle big endian.
32627         (vec_interleave_lowv8qi): Handle big endian.
32628         (vec_interleave_lowv8qi_be): New.
32629         (vec_interleave_lowv8qi_le): New.
32630         (insn_v1int_l): Handle big endian.
32631         (vec_interleave_highv4hi): Handle big endian.
32632         (vec_interleave_highv4hi_be): New.
32633         (vec_interleave_highv4hi_le): New.
32634         (insn_v2int_h): Handle big endian.
32635         (vec_interleave_lowv4hi): Handle big endian.
32636         (vec_interleave_lowv4hi_be): New.
32637         (vec_interleave_lowv4hi_le): New.
32638         (insn_v2int_l): Handle big endian.
32639         (vec_interleave_highv2si): Handle big endian.
32640         (vec_interleave_highv2si_be): New.
32641         (vec_interleave_highv2si_le): New.
32642         (insn_v4int_h): Handle big endian.
32643         (vec_interleave_lowv2si): Handle big endian.
32644         (vec_interleave_lowv2si_be): New.
32645         (vec_interleave_lowv2si_le): New.
32646         (insn_v4int_l): Handle big endian.
32647         * config/tilegx/tilegx.opt (mbig-endian): New option.
32648         (mlittle-endian): New option.
32649         * doc/install.texi: Document tilegxbe-linux.
32650         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32652 2014-02-24  Martin Jambor  <mjambor@suse.cz>
32654         PR ipa/60266
32655         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32656         there are no parameter descriptors.
32658 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
32660         PR rtl-optimization/60268
32661         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32662         initialization to ...
32663         (sched_rgn_init): ... here.
32664         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32666 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32668         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32669         names.
32671 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32673         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32674         definition.
32676 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32678         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32679         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32681 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32683         * config/microblaze/predicates.md: Add cmp_op predicate.
32684         * config/microblaze/microblaze.md: Add branch_compare instruction
32685         which uses cmp_op predicate and emits cmp insn before branch.
32686         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32687         to microblaze_expand_conditional_branch and consolidate logic.
32688         (microblaze_expand_conditional_branch): emit branch_compare
32689         insn instead of handling cmp op separate from branch insn.
32691 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32693         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32694         to permit subregs.
32696 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32698         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32699         define_insn with define_expand and new define_insn
32700         *altivec_lve<VI_char>x_internal.
32701         (altivec_stve<VI_char>x): Replace define_insn with define_expand
32702         and new define_insn *altivec_stve<VI_char>x_internal.
32703         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32704         prototype.
32705         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32706         lve*x built-ins.
32707         (altivec_expand_stvex_be): New function.
32709 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
32711         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32712         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32713         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32714         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32716 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
32718         PR target/60298
32719         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32720         instead of emit_move_insn.
32722 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32724         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32725         vspltw with vsldoi.
32726         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32727         gen_altivec_vsumsws.
32729 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32731         * config/rs6000/altivec.md (altivec_lvxl): Rename as
32732         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32733         (altivec_lvxl_<mode>): New define_expand incorporating
32734         -maltivec=be semantics where needed.
32735         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32736         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32737         semantics where needed.
32738         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32739         (altivec_stvx_<mode>): New define_expand incorporating
32740         -maltivec=be semantics where needed.
32741         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32742         VM2 iterator instead of V4SI.
32743         (altivec_stvxl_<mode>): New define_expand incorporating
32744         -maltivec=be semantics where needed.
32745         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32746         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32747         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32748         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32749         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32750         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32751         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32752         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32753         ALTIVEC_BUILTIN_STVXL.
32754         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32755         (altivec_expand_stvx_be): Likewise.
32756         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32757         (altivec_expand_lvx_be): Likewise.
32758         (altivec_expand_stvx_be): Likewise.
32759         (altivec_expand_builtin): Add cases for
32760         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32761         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32762         (altivec_init_builtins): Add definitions for
32763         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32764         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32766 2014-02-21  Catherine Moore  <clm@codesourcery.com>
32768         * doc/invoke.texi (mvirt, mno-virt): Document.
32769         * config/mips/mips.opt (mvirt): New option.
32770         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32772 2014-02-21  Richard Biener  <rguenther@suse.de>
32774         PR tree-optimization/60276
32775         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32776         (STMT_VINFO_MIN_NEG_DIST): New macro.
32777         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32778         STMT_VINFO_MIN_NEG_DIST.
32779         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32780         made for negative dependence distances still hold.
32782 2014-02-21  Richard Biener  <rguenther@suse.de>
32784         PR middle-end/60291
32785         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32786         DECL_INITIAL for globals not in the current function context.
32788 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32790         PR tree-optimization/56490
32791         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32792         * tree-ssa-uninit.c: Include params.h.
32793         (compute_control_dep_chain): Add num_calls argument, return false
32794         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32795         num_calls to recursive call.
32796         (find_predicates): Change dep_chain into normal array,
32797         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32798         variable and adjust compute_control_dep_chain caller.
32799         (find_def_preds): Likewise.
32801 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
32803         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32804         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32806 2014-02-21  Nick Clifton  <nickc@redhat.com>
32808         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32809         (pushhi1): Likewise.
32810         (popqi1): Add mode to pre_dec.
32811         (pophi1): Likewise.
32813 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32815         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32816         mode for mask of V8SFmode permutation.
32818 2014-02-20  Richard Henderson  <rth@redhat.com>
32820         PR c++/60272
32821         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32822         a new pseudo for OLDVAL.
32824 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
32826         PR target/57896
32827         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32828         gen_reg_rtx if d->testing_p.
32829         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32830         if d->testing_p and we will certainly return true.
32831         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
32832         if d->testing_p.
32834 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
32836         * emit-rtl.c (gen_reg_rtx): Assert that
32837         crtl->emit.regno_pointer_align_length is non-zero.
32839 2014-02-20  Richard Henderson  <rth@redhat.com>
32841         PR c++/60272
32842         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32843         on failure the store back into EXPECT.
32845 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
32846             Sandra Loosemore  <sandra@codesourcery.com>
32848         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32849         * config/nios2/nios2.c (nios2_function_profiler): Add
32850         -fPIC (flag_pic == 2) support.
32851         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32852         (nios2_large_offset_p): New function.
32853         (nios2_unspec_reloc_p): Move up position, update to use
32854         nios2_large_offset_p.
32855         (nios2_unspec_address): Remove function.
32856         (nios2_unspec_offset): New function.
32857         (nios2_large_got_address): New function.
32858         (nios2_got_address): Add large offset support.
32859         (nios2_legitimize_tls_address): Update usage of removed and new
32860         functions.
32861         (nios2_symbol_binds_local_p): New function.
32862         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32863         (nios2_legitimize_address): Update to use nios2_large_offset_p.
32864         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32865         (nios2_print_operand): Merge H/L processing, add hiadj/lo
32866         processing for (const (unspec ...)).
32867         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32869 2014-02-20  Richard Biener  <rguenther@suse.de>
32871         * tree-cfg.c (replace_uses_by): Mark altered BBs before
32872         doing the substitution.
32873         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32875 2014-02-20  Martin Jambor  <mjambor@suse.cz>
32877         PR ipa/55260
32878         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32879         info when checking whether lattices are bottom.
32881 2014-02-20  Richard Biener  <rguenther@suse.de>
32883         PR middle-end/60221
32884         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32885         regions at -O0.
32887 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
32889         PR ipa/58555
32890         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32891         parameter specifying the scaling.
32892         (inline_call): Update.
32893         (want_inline_recursively): Guard division by zero.
32894         (recursive_inlining): Update.
32895         * ipa-inline.h (clone_inlined_nodes): Update.
32897 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32899         PR target/60204
32900         * config/i386/i386.c (classify_argument): Pass structures of size
32901         64 bytes or less in register.
32903 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32904             Kirill Yukhin  <kirill.yukhin@intel.com>
32906         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32907         (_mm_rcp28_round_ss): Ditto.
32908         (_mm_rsqrt28_round_sd): Ditto.
32909         (_mm_rsqrt28_round_ss): Ditto.
32910         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32911         (_mm_rcp14_round_ss): Ditto.
32912         (_mm_rsqrt14_round_sd): Ditto.
32913         (_mm_rsqrt14_round_ss): Ditto.
32914         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32915         the first input operand, get rid of match_dup.
32916         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32917         attribute to sse.
32918         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32919         Ditto.
32920         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32921         operand as the first input operand, set type attribute.
32922         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32923         Set type attribute.
32924         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32925         operand as the first input operand, set type attribute.
32927 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32929         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32930         bit of zero.
32932 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32934         PR target/60207
32935         * config/i386/i386.c (construct_container): Remove TFmode check
32936         for X86_64_INTEGER_CLASS.
32938 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
32940         PR target/59794
32941         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32942         only when -Wpsabi is enabled.
32944 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
32946         PR target/59799
32947         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32948         passing arrays in registers are the same as for structs, so remove the
32949         special case for them.
32951 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32953         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32954         destination type, extract only the valid bits if the source type is not
32955         integral and has a different mode.
32957 2014-02-19  Richard Biener  <rguenther@suse.de>
32959         PR ipa/60243
32960         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32961         for all calls.
32963 2014-02-19  Richard Biener  <rguenther@suse.de>
32965         PR ipa/60243
32966         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32967         (ipa_modify_call_arguments): Emit an argument load explicitely and
32968         preserve virtual SSA form there and for the replacement call.
32969         Do not update SSA form nor free dominance info.
32971 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32973         * ipa.c (function_and_variable_visibility): Also clear WEAK
32974         flag when disolving COMDAT_GROUP.
32976 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32978         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32979         * ipa-prop.c (ipa_set_jf_known_type): Return early when
32980         not devirtualizing.
32981         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32982         do more sanity checks.
32983         (detect_type_change): Return true when giving up early.
32984         (compute_complex_assign_jump_func): Fix type parameter of
32985         ipa_set_ancestor_jf.
32986         (compute_complex_ancestor_jump_func): Likewise.
32987         (update_jump_functions_after_inlining): Fix updating of
32988         ancestor function.
32989         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32991 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32993         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32994         inline clones when edge disappears.
32996 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
32998         PR target/60203
32999         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
33000         Split 64-bit moves into 2 patterns.  Do not allow the use of
33001         direct move for TDmode in little endian, since the decimal value
33002         has little endian bytes within a word, but the 64-bit pieces are
33003         ordered in a big endian fashion, and normal subreg's of TDmode are
33004         not allowed.
33005         (mov<mode>_64bit_dm): Likewise.
33006         (movtd_64bit_nodm): Likewise.
33008 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
33010         PR tree-optimization/60174
33011         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
33012         statement of an SSA_NAME that occurs in an abnormal PHI node.
33014 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
33016         PR sanitizer/60142
33017         * final.c (SEEN_BB): Remove.
33018         (SEEN_NOTE, SEEN_EMITTED): Renumber.
33019         (final_scan_insn): Don't force_source_line on second
33020         NOTE_INSN_BASIC_BLOCK.
33022 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
33024         PR target/60205
33025         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
33026         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
33027         (type_natural_mode): Warn ABI change when %zmm register is not
33028         available for AVX512F vector value passing.
33030 2014-02-18  Kai Tietz  <ktietz@redhat.com>
33032         PR target/60193
33033         * config/i386/i386.c (ix86_expand_prologue): Use value in
33034         rax register as displacement when restoring %r10 or %rax.
33035         Fix wrong offset when restoring both registers.
33037 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
33039         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
33040         assertion with conditional return.
33042 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
33043             Uros Bizjak  <ubizjak@gmail.com>
33045         PR driver/60233
33046         * config/i386/driver-i386.c (host_detect_local_cpu): If
33047         YMM state is not saved by the OS, also clear has_f16c.  Move
33048         CPUID 0x80000001 handling before YMM state saving checking.
33050 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
33052         PR rtl-optimization/58960
33053         * haifa-sched.c (alloc_global_sched_pressure_data): New,
33054         factored out from ...
33055         (sched_init): ... here.
33056         (free_global_sched_pressure_data): New, factored out from ...
33057         (sched_finish): ... here.
33058         * sched-int.h (free_global_sched_pressure_data): Declare.
33059         * sched-rgn.c (nr_regions_initial): New static global.
33060         (haifa_find_rgns): Initialize it.
33061         (schedule_region): Disable sched-pressure for the newly
33062         generated regions.
33064 2014-02-17  Richard Biener  <rguenther@suse.de>
33066         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
33067         release SSA defs of pattern stmts.
33069 2014-02-17  Richard Biener  <rguenther@suse.de>
33071         * tree-inline.c (expand_call_inline): Release the virtual
33072         operand defined by the call we are about to inline.
33074 2014-02-17  Richard Biener  <rguenther@suse.de>
33076         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
33078 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
33079             Ilya Tocar  <ilya.tocar@intel.com>
33081         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
33082         arguments order in builtin.
33083         (_mm512_permutexvar_epi64): Ditto.
33084         (_mm512_mask_permutexvar_epi64): Ditto
33085         (_mm512_maskz_permutexvar_epi32): Ditto
33086         (_mm512_permutexvar_epi32): Ditto
33087         (_mm512_mask_permutexvar_epi32): Ditto
33089 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33091         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
33092         (p8_vmrgow): Likewise.
33094 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33096         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
33097         endian targets.
33099 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
33101         PR target/60203
33102         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
33103         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
33104         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
33105         using direct move instructions on ISA 2.07.  Also adjust
33106         instruction length for 64-bit.
33107         (mov<mode>_64bit, TFmode/TDmode): Likewise.
33108         (mov<mode>_32bit, TFmode/TDmode): Likewise.
33110 2014-02-15  Alan Modra  <amodra@gmail.com>
33112         PR target/58675
33113         PR target/57935
33114         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
33115         find_replacement on parts of insn rtl that might be reloaded.
33117 2014-02-15  Richard Biener  <rguenther@suse.de>
33119         PR tree-optimization/60183
33120         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
33121         (tree_ssa_phiprop): Calculate and free post-dominators.
33123 2014-02-14  Jeff Law  <law@redhat.com>
33125         PR rtl-optimization/60131
33126         * ree.c (get_extended_src_reg): New function.
33127         (combine_reaching_defs): Use it rather than assuming location of REG.
33128         (find_and_remove_re): Verify first operand of extension is
33129         a REG before adding the insns to the copy list.
33131 2014-02-14  Roland McGrath  <mcgrathr@google.com>
33133         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
33134         * configure: Regenerated.
33135         * config.in: Regenerated.
33136         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
33137         instead of ASM_SHORT.
33139 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
33140             Richard Earnshaw  <rearnsha@arm.com>
33142         PR rtl-optimization/59535
33143         * lra-constraints.c (process_alt_operands): Encourage alternative
33144         when unassigned pseudo class is superset of the alternative class.
33145         (inherit_reload_reg): Don't inherit when optimizing for code size.
33146         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
33147         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
33148         modes not less than 4 for Thumb1.
33150 2014-02-14  Kyle McMartin  <kyle@redhat.com>
33152         PR pch/60010
33153         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
33155 2014-02-14  Richard Biener  <rguenther@suse.de>
33157         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
33158         (get_frame_arg): Drop the assert with langhook types_compatible_p.
33159         Do not strip INDIRECT_REFs.
33161 2014-02-14  Richard Biener  <rguenther@suse.de>
33163         PR lto/60179
33164         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
33165         DECL_FUNCTION_SPECIFIC_TARGET.
33166         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
33167         * tree-streamer-out.c (pack_ts_target_option): Remove.
33168         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
33169         (write_ts_function_decl_tree_pointers): Do not stream
33170         DECL_FUNCTION_SPECIFIC_TARGET.
33171         * tree-streamer-in.c (unpack_ts_target_option): Remove.
33172         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
33173         (lto_input_ts_function_decl_tree_pointers): Do not stream
33174         DECL_FUNCTION_SPECIFIC_TARGET.
33176 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
33178         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
33179         (get_initial_def_for_induction, vectorizable_induction): Ignore
33180         debug stmts when looking for exit_phi.
33181         (vectorizable_live_operation): Fix up condition.
33183 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33185         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
33186         nreverse() because it changes the content of original tree list.
33188 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33190         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
33191         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
33193 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33195         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
33196         GNU coding standards.
33198 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
33200         PR debug/60152
33201         * dwarf2out.c (gen_subprogram_die): Don't call
33202         add_calling_convention_attribute if subr_die is old_die.
33204 2014-02-13  Sharad Singhai  <singhai@google.com>
33206         * doc/optinfo.texi: Fix order of nodes.
33208 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
33210         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
33211         operands[2], not operands[3].
33213 2014-02-13  Richard Biener  <rguenther@suse.de>
33215         PR bootstrap/59878
33216         * doc/install.texi (ISL): Update recommended version to 0.12.2,
33217         mention the possibility of an in-tree build.
33218         (CLooG): Update recommended version to 0.18.1, mention the
33219         possibility of an in-tree build and clarify that the ISL
33220         bundled with CLooG does not work.
33222 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
33224         PR target/43546
33225         * expr.c (compress_float_constant): If x is a hard register,
33226         extend into a pseudo and then move to x.
33228 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33230         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
33231         caused by bad second argument to warning_at() with -mhotpatch and
33232         nested functions (e.g. with gfortran).
33234 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
33236         * opts.c (option_name): Remove "enabled by default" rider.
33238 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
33240         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
33242 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
33243             Uros Bizjak  <ubizjak@gmail.com>
33245         PR target/60151
33246         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
33247         * configure: Regenerated.
33249 2014-02-12  Richard Biener  <rguenther@suse.de>
33251         * vec.c (vec_prefix::calculate_allocation): Move as
33252         inline variant to vec.h.
33253         (vec_prefix::calculate_allocation_1): New out-of-line version.
33254         * vec.h (vec_prefix::calculate_allocation_1): Declare.
33255         (vec_prefix::m_has_auto_buf): Rename to ...
33256         (vec_prefix::m_using_auto_storage): ... this.
33257         (vec_prefix::calculate_allocation): Inline the easy cases
33258         and dispatch to calculate_allocation_1 which doesn't need the
33259         prefix address.
33260         (va_heap::reserve): Use gcc_checking_assert.
33261         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
33262         m_using_auto_storage.
33263         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
33264         member and adjust.
33265         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
33266         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
33267         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
33269 2014-02-12  Richard Biener  <rguenther@suse.de>
33271         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
33272         when we found a dependence.
33274 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
33276         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
33277         common code...
33278         (maybe_fold_stmt): ... into this new function.
33279         * omp-low.c (lower_omp): Update comment.
33281         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
33282         last use.
33284         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
33285         dereference.
33287 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
33289         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
33290         identifiers in comments.
33291         (cortexa53_extra_costs): Likewise.
33292         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
33293         (cortexa7_extra_costs): Likewise.
33294         (cortexa12_extra_costs): Likewise.
33295         (cortexa15_extra_costs): Likewise.
33296         (v7m_extra_costs): Likewise.
33298 2014-02-12  Richard Biener  <rguenther@suse.de>
33300         PR middle-end/60092
33301         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
33302         of posix_memalign being successful.
33303         (lower_stmt): Restrict lowering of posix_memalign to when
33304         -ftree-bit-ccp is enabled.
33306 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
33308         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
33309         arg_loc.
33310         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
33312 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
33314         PR rtl-optimization/60116
33315         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
33316         other_insn once the combination has been validated.
33318 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
33320         PR lto/59468
33321         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
33322         and wrapper.
33323         * ipa-devirt.c: Include demangle.h
33324         (odr_violation_reported): New static variable.
33325         (add_type_duplicate): Update odr_violations.
33326         (maybe_record_node): Add completep parameter; update it.
33327         (record_target_from_binfo): Add COMPLETEP parameter;
33328         update it as needed.
33329         (possible_polymorphic_call_targets_1): Likewise.
33330         (struct polymorphic_call_target_d): Add nonconstruction_targets;
33331         rename FINAL to COMPLETE.
33332         (record_targets_from_bases): Sanity check we found the binfo;
33333         fix COMPLETEP updating.
33334         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
33335         parameter, fix computing of COMPLETEP.
33336         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
33337         at LTO time do demangling.
33338         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
33339         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
33340         parameter.
33341         (gimple_get_virt_method_for_binfo): Likewise.
33342         * gimple-fold.h (gimple_get_virt_method_for_binfo,
33343         gimple_get_virt_method_for_vtable): Update prototypes.
33345 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
33347         PR target/49008
33348         * genautomata.c (add_presence_absence): Fix typo with
33349         {final_}presence_list.
33351 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
33353         PR target/60137
33354         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
33355         for VSX/Altivec vectors that land in GPR registers.
33357 2014-02-11  Richard Henderson  <rth@redhat.com>
33358             Jakub Jelinek  <jakub@redhat.com>
33360         PR debug/59776
33361         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
33362         around drhs if type conversion to lacc->type is not useless.
33364 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33366         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
33367         tuning struct.
33368         (cortex-a57.cortex-a53): Likewise.
33369         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
33371 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33373         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
33374         arm_restrict_it.
33376 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
33378         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
33379         add_options_for_arm_vfp3.
33381 2014-02-11  Jeff Law  <law@redhat.com>
33383         PR middle-end/54041
33384         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
33385         object with an undesirable mode.
33387 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33389         PR libgomp/60107
33390         * config/i386/sol2-9.h: New file.
33391         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
33392         *-*-solaris2.9*): Use it.
33394 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33396         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
33397         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
33399 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33401         * config/microblaze/microblaze.c: Extend mcpu version format
33403 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
33405         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
33407 2014-02-10  Richard Henderson  <rth@redhat.com>
33409         PR target/59927
33410         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
33411         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
33412         ms-abi vs -mno-accumulate-outgoing-args.
33413         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
33414         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
33415         respect to ms-abi.
33417 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33419         PR middle-end/60080
33420         * cfgexpand.c (expand_asm_operands): Attach source location to
33421         ASM_INPUT rtx objects.
33422         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
33424 2014-02-10  Nick Clifton  <nickc@redhat.com>
33426         * config/mn10300/mn10300.c (popcount): New function.
33427         (mn10300_expand_prologue): Include saved registers in stack usage
33428         count.
33430 2014-02-10  Jeff Law  <law@redhat.com>
33432         PR middle-end/52306
33433         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
33434         when changing the SET_DEST of a prior insn to avoid an input reload.
33436 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33438         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
33439         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
33440         -mcall-openbsd, or -mcall-linux.
33441         (CC1_ENDIAN_BIG_SPEC): Remove.
33442         (CC1_ENDIAN_LITTLE_SPEC): Remove.
33443         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33444         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
33445         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
33446         and %cc1_endian_default.
33447         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33449 2014-02-10  Richard Biener  <rguenther@suse.de>
33451         PR tree-optimization/60115
33452         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
33453         MEM_REF handling.  Properly verify that the accesses are not
33454         out of the objects bound.
33456 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33458         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
33459         coretex to cortex.
33461 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
33463         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
33464         proper constants and fix formatting.
33465         (possible_polymorphic_call_targets): Fix formatting.
33467 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
33468             Ilya Tocar  <ilya.tocar@intel.com>
33470         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
33471         (_mm512_loadu_epi32): Renamed into...
33472         (_mm512_loadu_si512): This.
33473         (_mm512_storeu_epi32): Renamed into...
33474         (_mm512_storeu_si512): This.
33475         (_mm512_maskz_ceil_ps): Removed.
33476         (_mm512_maskz_ceil_pd): Ditto.
33477         (_mm512_maskz_floor_ps): Ditto.
33478         (_mm512_maskz_floor_pd): Ditto.
33479         (_mm512_floor_round_ps): Ditto.
33480         (_mm512_floor_round_pd): Ditto.
33481         (_mm512_ceil_round_ps): Ditto.
33482         (_mm512_ceil_round_pd): Ditto.
33483         (_mm512_mask_floor_round_ps): Ditto.
33484         (_mm512_mask_floor_round_pd): Ditto.
33485         (_mm512_mask_ceil_round_ps): Ditto.
33486         (_mm512_mask_ceil_round_pd): Ditto.
33487         (_mm512_maskz_floor_round_ps): Ditto.
33488         (_mm512_maskz_floor_round_pd): Ditto.
33489         (_mm512_maskz_ceil_round_ps): Ditto.
33490         (_mm512_maskz_ceil_round_pd): Ditto.
33491         (_mm512_expand_pd): Ditto.
33492         (_mm512_expand_ps): Ditto.
33493         * config/i386/i386.c (ix86_builtins): Remove
33494         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
33495         (bdesc_args): Ditto.
33496         * config/i386/predicates.md (const1256_operand): New.
33497         (const_1_to_2_operand): Ditto.
33498         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
33499         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33500         (*avx512pf_gatherpf<mode>sf): Ditto.
33501         (avx512pf_gatherpf<mode>df): Ditto.
33502         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33503         (*avx512pf_gatherpf<mode>df): Ditto.
33504         (avx512pf_scatterpf<mode>sf): Ditto.
33505         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33506         (*avx512pf_scatterpf<mode>sf): Ditto.
33507         (avx512pf_scatterpf<mode>df): Ditto.
33508         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33509         (*avx512pf_scatterpf<mode>df): Ditto.
33510         (avx512f_expand<mode>): Removed.
33511         (<shift_insn><mode>3<mask_name>): Change predicate type.
33513 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33515         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
33516         not at the end of datarefs vector use ordered_remove to avoid
33517         reordering datarefs vector.
33519         PR c/59984
33520         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
33521         mark local addressable non-static vars as GOVD_PRIVATE
33522         instead of GOVD_LOCAL.
33523         * omp-low.c (lower_omp_for): Move gimple_bind_vars
33524         and BLOCK_VARS of gimple_bind_block to new_stmt rather
33525         than copying them.
33527         PR middle-end/60092
33528         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
33529         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
33530         assume_aligned or alloc_align attributes.
33531         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
33532         arguments.  Handle also assume_aligned and alloc_align attributes.
33533         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
33534         calls to functions with assume_aligned or alloc_align attributes.
33535         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
33537 2014-02-08  Terry Guo  <terry.guo@arm.com>
33539         * doc/invoke.texi: Document ARM -march=armv7e-m.
33541 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33543         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
33544         flag on __cilkrts_rethrow builtin.
33546         PR ipa/60026
33547         * ipa-cp.c (determine_versionability): Fail at -O0
33548         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
33549         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
33551         Revert:
33552         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33554         PR ipa/60026
33555         * tree-inline.c (copy_forbidden): Fail for
33556         __attribute__((optimize (0))) functions.
33558 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33560         * varpool.c: Include pointer-set.h.
33561         (varpool_remove_unreferenced_decls): Variables in other partitions
33562         will not be output; be however careful to not lose information
33563         about partitioning.
33565 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33567         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
33568         lookup in the vtable constructor.
33570 2014-02-07  Jeff Law  <law@redhat.com>
33572         PR target/40977
33573         * config/m68k/m68k.md (ashldi_extsi): Turn into a
33574         define_insn_and_split.
33576         * ipa-inline.c (inline_small_functions): Fix typos.
33578 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33580         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
33581         (s390_can_use_return_insn): Declare.
33582         * config/s390/s390.h (EPILOGUE_USES): Define.
33583         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
33584         instructions.
33585         (s390_chunkify_start): Handle return JUMP_LABELs.
33586         (s390_early_mach): Emit a main_pool instruction on the entry edge.
33587         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
33588         (s390_can_use_return_insn): New functions.
33589         (s390_fix_long_loop_prediction): Handle conditional returns.
33590         (TARGET_SET_UP_BY_PROLOGUE): Define.
33591         * config/s390/s390.md (ANY_RETURN): New code iterator.
33592         (*creturn, *csimple_return, return, simple_return): New patterns.
33594 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33596         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
33597         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
33598         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
33599         REG_CFA_RESTORE list when deciding not to restore a register.
33601 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33603         * config/s390/s390.c: Include tree-pass.h and context.h.
33604         (s390_early_mach): New function, split out from...
33605         (s390_emit_prologue): ...here.
33606         (pass_data_s390_early_mach): New pass structure.
33607         (pass_s390_early_mach): New class.
33608         (s390_option_override): Create and register early_mach pass.
33609         Move to end of file.
33611 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33613         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
33614         to match for the exit block.
33616 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33618         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
33619         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
33620         Reject misaligned operands.
33622 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33624         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33626 2014-02-07  Richard Biener  <rguenther@suse.de>
33628         PR middle-end/60092
33629         * gimple-low.c (lower_builtin_posix_memalign): New function.
33630         (lower_stmt): Call it to lower posix_memalign in a way
33631         to make alignment info accessible.
33633 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
33635         PR c++/60082
33636         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33637         __builtin_setjmp_receiver.
33639 2014-02-07  Richard Biener  <rguenther@suse.de>
33641         PR middle-end/60092
33642         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33643         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33644         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33645         Handle BUILT_IN_POSIX_MEMALIGN.
33646         (find_func_clobbers): Likewise.
33647         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33648         (call_may_clobber_ref_p_1): Likewise.
33650 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33652         PR ipa/59918
33653         * ipa-devirt.c (record_target_from_binfo): Remove overactive
33654         sanity check.
33656 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33658         PR ipa/59469
33659         * lto-cgraph.c (lto_output_node): Use
33660         symtab_get_symbol_partitioning_class.
33661         (lto_output_varpool_node): likewise.
33662         (symtab_get_symbol_partitioning_class): Move here from
33663         lto/lto-partition.c
33664         * cgraph.h (symbol_partitioning_class): Likewise.
33665         (symtab_get_symbol_partitioning_class): Declare.
33667 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33669         * ggc.h (ggc_internal_cleared_alloc): New macro.
33670         * vec.h (vec_safe_copy): Handle memory stats.
33671         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33672         * target-globals.c (save_target_globals): Likewise.
33674 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33676         PR target/60077
33677         * expr.c (emit_move_resolve_push): Export; be bit more selective
33678         on when to clear alias set.
33679         * expr.h (emit_move_resolve_push): Declare.
33680         * function.h (struct function): Add tail_call_marked.
33681         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33682         * config/i386/i386-protos.h (ix86_expand_push): Remove.
33683         * config/i386/i386.md (TImode move expander): De not call
33684         ix86_expand_push.
33685         (FP push expanders): Preserve memory attributes.
33686         * config/i386/sse.md (push<mode>1): Remove.
33687         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33688         (ix86_expand_push): Remove.
33689         * config/i386/mmx.md (push<mode>1): Remove.
33691 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33693         PR rtl-optimization/60030
33694         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33695         lopart with paradoxical subreg before shifting it up by hprec.
33697 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33699         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33700         Remove extra newline at end of file.
33701         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33702         (arm_issue_rate): Handle cortexa57.
33703         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33704         (cortex-a57.cortex-a53): Likewise.
33706 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33708         PR target/59575
33709         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33710         don't record in REG_FRAME_RELATED_EXPR registers not set in that
33711         bitmask.
33712         (arm_expand_prologue): Adjust all callers.
33713         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33714         info, registers also at the lowest numbered registers side.  Use
33715         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33716         XEXP.
33718         PR debug/59992
33719         * var-tracking.c (adjust_mems): Before adding a SET to
33720         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33722 2014-02-06  Alan Modra  <amodra@gmail.com>
33724         PR target/60032
33725         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33726         change SDmode to DDmode when lra_in_progress.
33728 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33730         PR middle-end/59150
33731         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33732         free_data_ref on the dr first, and before goto again also set dr
33733         to the next dr.  For simd_lane_access, free old datarefs[i] before
33734         overwriting it.  For get_vectype_for_scalar_type failure, don't
33735         free_data_ref if simd_lane_access.
33737         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33739         PR target/60062
33740         * tree.h (opts_for_fn): New inline function.
33741         (opt_for_fn): Define.
33742         * config/i386/i386.c (ix86_function_regparm): Use
33743         opt_for_fn (decl, optimize) instead of optimize.
33745 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33747         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33748         for SYMBOL_REF in large memory model.
33750 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33752         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33753         and crypto support.
33754         (cortex-a57): Likewise.
33755         (cortex-a57.cortex-a53): Likewise.
33757 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
33758             Kugan Vivekanandarajah  <kuganv@linaro.org>
33760         * config/arm/arm.c (arm_vector_alignment_reachable): Check
33761         unaligned_access.
33762         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33764 2014-02-06  Richard Biener  <rguenther@suse.de>
33766         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33767         set_loop_copy and initialize_original_copy_tables.
33769 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
33771         * config/aarch64/aarch64-simd.md
33772         (aarch64_ashr_simddi): Change QI to SI.
33774 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33775             Jakub Jelinek  <jakub@redhat.com>
33777         PR middle-end/60013
33778         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33779         of the dataflow.
33781 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33783         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33784         CODE_FOR_altivec_vpku[hw]um to
33785         CODE_FOR_altivec_vpku[hw]um_direct.
33786         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33787         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33788         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33789         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33791 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33793         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33794         generation for -maltivec=be.
33795         (altivec_vsumsws): Simplify redundant test.
33797 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33799         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33800         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33801         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33802         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33803         gen_altivec_vpkuwum.
33804         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33805         BYTES_BIG_ENDIAN.
33806         (altivec_vpks<VI_char>ss): Likewise.
33807         (altivec_vpks<VI_char>us): Likewise.
33808         (altivec_vpku<VI_char>us): Likewise.
33809         (altivec_vpku<VI_char>um): Likewise.
33810         (altivec_vpku<VI_char>um_direct): New (copy of
33811         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33812         internal use).
33813         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33814         target is little endian and -maltivec=be is not specified.
33815         (*altivec_vupkhs<VU_char>_direct): New (copy of
33816         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33817         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33818         target is little endian and -maltivec=be is not specified.
33819         (*altivec_vupkls<VU_char>_direct): New (copy of
33820         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33821         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33822         little endian and -maltivec=be is not specified.
33823         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33824         little endian and -maltivec=be is not specified.
33826 2014-02-05  Richard Henderson  <rth@redhat.com>
33828         PR debug/52727
33829         * combine-stack-adj.c: Revert r206943.
33830         * sched-int.h (struct deps_desc): Add last_args_size.
33831         * sched-deps.c (init_deps): Initialize it.
33832         (sched_analyze_insn): Add OUTPUT dependencies between insns that
33833         contain REG_ARGS_SIZE notes.
33835 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33837         * lto-cgraph.c (asm_nodes_output): Make global.
33838         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33839         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33840         (driver_handle_option): Handle OPT_fwpa.
33842 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
33844         PR ipa/59947
33845         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33846         a comment typo and formatting issue.  If odr_hash hasn't been
33847         created, return vNULL and set *completep to false.
33849         PR middle-end/57499
33850         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33851         bb with no successors.
33853 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
33855         PR target/59718
33856         * doc/invoke.texi (-march): Clarify documentation for ARM.
33857         (-mtune): Likewise.
33858         (-mcpu): Likewise.
33860 2014-02-05  Richard Biener  <rguenther@suse.de>
33862         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33863         when not vectorizing because of too many alias checks.
33864         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33865         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33867 2014-02-05  Nick Clifton  <nickc@redhat.com>
33869         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33870         accept extended registers in any mode when compiling for the MN10300.
33872 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
33874         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33875         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33876         sanitization attributes.
33877         (can_inline_edge_p): Likewise.
33878         (sanitize_attrs_match_for_inline_p): New function.
33880 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33882         * ipa-prop.c (detect_type_change): Shor circuit testing of
33883         type changes on THIS pointer.
33885 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
33887         PR target/59777
33888         * config/pa/pa.c (legitimize_tls_address): Return original address
33889         if not passed a SYMBOL_REF rtx.
33890         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33891         addresses.
33892         (pa_emit_move_sequence): Simplify TLS source operands.
33893         (pa_legitimate_constant_p): Reject all TLS constants.
33894         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33895         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33897 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33899         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33900         groups when we know they are controlled by LTO.
33901         * varasm.c (default_binds_local_p_1): If object is in other partition,
33902         it will be resolved locally.
33904 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33906         * config/host-linux.c (linux_gt_pch_use_address): Don't
33907         use SSIZE_MAX because it is not always defined.
33909 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
33911         PR bootstrap/59913
33912         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33913         threshold for pseudo splitting.
33914         (update_ebb_live_info): Process call argument hard registers and
33915         hard registers from insn definition too.
33916         (max_small_class_regs_num): New constant.
33917         (inherit_in_ebb): Update live hard regs through EBBs.  Update
33918         reloads_num only for small register classes.  Don't split for
33919         outputs of jumps.
33921 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
33923         PR ipa/60058
33924         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33925         is non-null.
33927 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33929         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33930         visibility is safe.
33932 2014-02-04  Marek Polacek  <polacek@redhat.com>
33934         * gdbinit.in (pel): Define.
33936 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33938         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33939         behavior.
33941 2014-02-04  Richard Biener  <rguenther@suse.de>
33943         PR lto/59723
33944         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33945         in function context local.
33946         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33947         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33948         similar to LTO_imported_decl_ref.
33950 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33952         PR tree-optimization/60002
33953         * cgraphclones.c (build_function_decl_skip_args): Clear
33954         DECL_LANG_SPECIFIC.
33956         PR tree-optimization/60023
33957         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33958         false to gsi_replace.
33959         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33960         has been in some EH region and vec_stmt could throw, add
33961         vec_stmt into the same EH region.
33962         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33963         has no lhs, ignore it.
33964         * internal-fn.c (expand_MASK_LOAD): Likewise.
33966         PR ipa/60026
33967         * tree-inline.c (copy_forbidden): Fail for
33968         __attribute__((optimize (0))) functions.
33970         PR other/58712
33971         * omp-low.c (simd_clone_struct_copy): If from->inbranch
33972         is set, copy one less argument.
33973         (expand_simd_clones): Don't subtract clone_info->inbranch
33974         from simd_clone_struct_alloc argument.
33976         PR rtl-optimization/57915
33977         * recog.c (simplify_while_replacing): If all unary/binary/relational
33978         operation arguments are constant, attempt to simplify those.
33980         PR middle-end/59261
33981         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33982         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33984 2014-02-04  Richard Biener  <rguenther@suse.de>
33986         PR tree-optimization/60012
33987         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33988         TBAA disambiguation to all DDRs.
33990 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33992         PR target/59788
33993         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33994         (LINK_SPEC): Use it for -shared, -shared-libgcc.
33996 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33998         PR ipa/59882
33999         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
34001 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34003         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
34004         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
34006 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34008         PR ipa/59831
34009         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
34010         to figure out targets of polymorphic calls with known decl.
34011         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
34012         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
34013         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
34014         (get_polymorphic_call_info): ... here.
34015         (get_polymorphic_call_info_from_invariant): New function.
34017 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34019         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
34020         lookup via vtable pointer; check for type consistency
34021         and turn inconsitent facts into UNREACHABLE.
34022         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
34023         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
34024         type inconsistent querries; return UNREACHABLE instead.
34026 2014-02-03  Richard Henderson  <rth@twiddle.net>
34028         PR tree-opt/59924
34029         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
34030         already processed this node.
34031         (normalize_one_pred_1): Pass along mark_set.
34032         (normalize_one_pred): Create and destroy a pointer_set_t.
34033         (normalize_one_pred_chain): Likewise.
34035 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
34037         PR gcov-profile/58602
34038         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
34040 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34042         PR ipa/59831
34043         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
34044         -fno-devirtualize; try to devirtualize by the knowledge of
34045         virtual table pointer given by aggregate propagation.
34046         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
34047         (ipa_print_node_jump_functions): Dump also offset that
34048         is relevant for polymorphic calls.
34049         (determine_known_aggregate_parts): Add arg_type parameter; use it
34050         instead of determining the type from pointer type.
34051         (ipa_compute_jump_functions_for_edge): Update call of
34052         determine_known_aggregate_parts.
34053         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
34054         (gimple_get_virt_method_for_binfo): ... here; simplify using
34055         vtable_pointer_value_to_vtable.
34056         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
34057         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
34058         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
34059         (vtable_pointer_value_to_vtable): Break out from ...; handle also
34060         POINTER_PLUS_EXPR.
34061         (vtable_pointer_value_to_binfo): ... here.
34062         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
34064 2014-02-03  Teresa Johnson  <tejohnson@google.com>
34066         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
34067         redef of outer loop index variable.
34069 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
34071         PR c++/53017
34072         PR c++/59211
34073         * doc/extend.texi (Function Attributes): Typo.
34075 2014-02-03  Cong Hou  <congh@google.com>
34077         PR tree-optimization/60000
34078         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
34079         if the vectorized statement is a store.  A store statement can only
34080         appear at the end of pattern statements.
34082 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
34084         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
34085         (ix86_option_override_internal): Default long double to 64-bit for
34086         32-bit Bionic and to 128-bit for 64-bit Bionic.
34088         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
34089         TARGET_LONG_DOUBLE_128 is true.
34090         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
34092         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
34093         (mlong-double-64): Negate -mlong-double-128.
34094         (mlong-double-128): New option.
34096         * config/i386/i386-c.c (ix86_target_macros): Define
34097         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
34099         * doc/invoke.texi: Document -mlong-double-128.
34101 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
34103         PR rtl-optimization/60024
34104         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
34106 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
34108         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
34110 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
34112         PR rtl-optimization/57662
34113         * sel-sched.c (code_motion_path_driver): Do not mark already not
34114         existing blocks in the visiting bitmap.
34116 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
34118         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
34119         on the insn being emitted.
34121 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
34122             Will Deacon  <will.deacon@arm.com>
34124         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
34126 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34128         * config/arm/arm-tables.opt: Regenerate.
34130 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34132         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
34133         for vector types other than V16QImode.
34134         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
34135         define_expand, and call altivec_expand_vec_perm_le when producing
34136         code with little endian element order.
34137         (*altivec_vperm_<mode>_internal): New insn having previous
34138         behavior of altivec_vperm_<mode>.
34139         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
34140         altivec_expand_vec_perm_le when producing code with little endian
34141         element order.
34142         (*altivec_vperm_<mode>_uns_internal): New insn having previous
34143         behavior of altivec_vperm_<mode>_uns.
34145 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34147         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
34148         (altivec_vsumsws): Add handling for -maltivec=be with a little
34149         endian target.
34150         (altivec_vsumsws_direct): New.
34151         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
34152         gen_altivec_vsumsws.
34154 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
34156         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
34157         vtable_pointer_value_to_binfo): New functions.
34158         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
34159         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
34161 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
34163         * config/nios2/nios2.md (load_got_register): Initialize GOT
34164         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
34165         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
34167 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
34169         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
34170         preserverd by passthrough, do not propagate the type.
34172 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34174         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
34175         (mips_atomic_assign_expand_fenv): New function.
34176         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
34178 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34180         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
34181         (__builtin_mips_set_fcsr): Likewise.
34182         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
34183         MIPS_USI_FTYPE_VOID.
34184         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
34185         (mips16_expand_set_fcsr): Likewise.
34186         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
34187         (mips16_set_fcsr_stub): Likewise.
34188         (mips16_get_fcsr_one_only_stub): New class.
34189         (mips16_set_fcsr_one_only_stub): Likewise.
34190         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
34191         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
34192         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
34193         (hard_float): New availability predicate.
34194         (mips_builtins): Add get_fcsr and set_fcsr.
34195         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
34196         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
34197         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
34198         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
34199         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
34200         patterns.
34202 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34204         * config/mips/mips.c (mips_one_only_stub): New class.
34205         (mips_need_mips16_rdhwr_p): Replace with...
34206         (mips16_rdhwr_stub): ...this new variable.
34207         (mips16_stub_call_address): New function.
34208         (mips16_rdhwr_one_only_stub): New class.
34209         (mips_expand_thread_pointer): Use mips16_stub_call_address.
34210         (mips_output_mips16_rdhwr): Delete.
34211         (mips_finish_stub): New function.
34212         (mips_code_end): Use it to handle rdhwr stubs.
34214 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
34216         PR target/60017
34217         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
34218         when calculating size of integer atomic types.
34220 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
34222         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
34224 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
34226         PR tree-optimization/60003
34227         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
34228         * profile.c (branch_prob): Use gimple_call_builtin_p
34229         to check for BUILT_IN_SETJMP_RECEIVER.
34230         * tree-inline.c (copy_bb): Call notice_special_calls.
34232 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
34234         PR bootstrap/59985
34235         * lra-constraints.c (process_alt_operands): Update reload_sum only
34236         on the first pass.
34238 2014-01-31  Richard Henderson  <rth@redhat.com>
34240         PR middle-end/60004
34241         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
34242         until after else_eh is processed.
34244 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34246         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
34247         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
34248         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
34249         in smmintrin.h, remove them.
34250         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
34251         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
34252         * config/i386/i386.md (ROUND_SAE): Fix value.
34253         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
34254         (const48_operand): New.
34255         * config/i386/subst.md (round), (round_expand): Use
34256         const_4_or_8_to_11_operand.
34257         (round_saeonly), (round_saeonly_expand): Use const48_operand.
34259 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34261         * config/i386/constraints.md (Yk): Swap meaning with k.
34262         * config/i386/i386.md (movhi_internal): Change Yk to k.
34263         (movqi_internal): Ditto.
34264         (*k<logic><mode>): Ditto.
34265         (*andhi_1): Ditto.
34266         (*andqi_1): Ditto.
34267         (kandn<mode>): Ditto.
34268         (*<code>hi_1): Ditto.
34269         (*<code>qi_1): Ditto.
34270         (kxnor<mode>): Ditto.
34271         (kortestzhi): Ditto.
34272         (kortestchi): Ditto.
34273         (kunpckhi): Ditto.
34274         (*one_cmplhi2_1): Ditto.
34275         (*one_cmplqi2_1): Ditto.
34276         * config/i386/sse.md (): Change k to Yk.
34277         (avx512f_load<mode>_mask): Ditto.
34278         (avx512f_blendm<mode>): Ditto.
34279         (avx512f_store<mode>_mask): Ditto.
34280         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
34281         (avx512f_storedqu<mode>_mask): Ditto.
34282         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
34283         Ditto.
34284         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
34285         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
34286         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
34287         (avx512f_maskcmp<mode>3): Ditto.
34288         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
34289         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
34290         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
34291         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
34292         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
34293         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
34294         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
34295         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
34296         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
34297         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
34298         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
34299         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
34300         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
34301         (vec_extract_lo_<mode>_maskm): Ditto.
34302         (vec_extract_hi_<mode>_maskm): Ditto.
34303         (avx512f_vternlog<mode>_mask): Ditto.
34304         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
34305         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
34306         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
34307         (avx512f_<code>v8div16qi2_mask): Ditto.
34308         (avx512f_<code>v8div16qi2_mask_store): Ditto.
34309         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
34310         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
34311         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
34312         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
34313         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
34314         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34315         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34316         (*avx512pf_scatterpf<mode>df_mask): Ditto.
34317         (avx512cd_maskb_vec_dupv8di): Ditto.
34318         (avx512cd_maskw_vec_dupv16si): Ditto.
34319         (avx512f_vpermi2var<mode>3_maskz): Ditto.
34320         (avx512f_vpermi2var<mode>3_mask): Ditto.
34321         (avx512f_vpermi2var<mode>3_mask): Ditto.
34322         (avx512f_vpermt2var<mode>3_maskz): Ditto.
34323         (*avx512f_gathersi<mode>): Ditto.
34324         (*avx512f_gathersi<mode>_2): Ditto.
34325         (*avx512f_gatherdi<mode>): Ditto.
34326         (*avx512f_gatherdi<mode>_2): Ditto.
34327         (*avx512f_scattersi<mode>): Ditto.
34328         (*avx512f_scatterdi<mode>): Ditto.
34329         (avx512f_compress<mode>_mask): Ditto.
34330         (avx512f_compressstore<mode>_mask): Ditto.
34331         (avx512f_expand<mode>_mask): Ditto.
34332         * config/i386/subst.md (mask): Change k to Yk.
34333         (mask_scalar_merge): Ditto.
34334         (sd): Ditto.
34336 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
34338         * doc/extend.texi (Vector Extensions): Document ?: in C++.
34340 2014-01-31  Richard Biener  <rguenther@suse.de>
34342         PR middle-end/59990
34343         * builtins.c (fold_builtin_memory_op): Make sure to not
34344         use a floating-point mode or a boolean or enumeral type for
34345         the copy operation.
34347 2014-01-30  DJ Delorie  <dj@redhat.com>
34349         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
34350         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
34351         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
34352         whenever main() has an epilogue.
34354 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34356         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
34357         unused variable "field".
34358         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
34359         (vsx_mergeh_<mode>): Likewise.
34360         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
34361         (altivec_vmrghh): Likewise.
34362         (altivec_vmrghw): Likewise.
34363         (altivec_vmrglb): Likewise.
34364         (altivec_vmrglh): Likewise.
34365         (altivec_vmrglw): Likewise.
34366         (altivec_vspltb): Add missing uses.
34367         (altivec_vsplth): Likewise.
34368         (altivec_vspltw): Likewise.
34369         (altivec_vspltsf): Likewise.
34371 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34373         PR target/59923
34374         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
34375         frame related instructions.
34377 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34379         PR rtl-optimization/59959
34380         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
34381         any reload of register whose subreg is invalid.
34383 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34385         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
34386         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
34387         Add missing return type - void.
34389 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34391         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
34392         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
34393         remove element index adjustment for endian (now handled in vsx.md
34394         and altivec.md).
34395         (altivec_expand_vec_perm_const): Use
34396         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
34397         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
34398         (vsx_xxspltw_<mode>): Adjust element index for little endian.
34399         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
34400         define_expand and a new define_insn *altivec_vspltb_internal;
34401         adjust for -maltivec=be on a little endian target.
34402         (altivec_vspltb_direct): New.
34403         (altivec_vsplth): Divide into a define_expand and a new
34404         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
34405         little endian target.
34406         (altivec_vsplth_direct): New.
34407         (altivec_vspltw): Divide into a define_expand and a new
34408         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
34409         little endian target.
34410         (altivec_vspltw_direct): New.
34411         (altivec_vspltsf): Divide into a define_expand and a new
34412         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
34413         a little endian target.
34415 2014-01-30  Richard Biener  <rguenther@suse.de>
34417         PR tree-optimization/59993
34418         * tree-ssa-forwprop.c (associate_pointerplus): Check we
34419         can propagate form the earlier stmt and avoid the transform
34420         when the intermediate result is needed.
34422 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
34424         * README.Portability: Fix typo.
34426 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
34428         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
34429         comparison_operator with ordered_comparison_operator.
34431 2014-01-30  Nick Clifton  <nickc@redhat.com>
34433         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
34434         Rename to mn10300_store_multiple_regs.
34435         * config/mn10300/mn10300.c: Likewise.
34436         * config/mn10300/mn10300.md (store_movm): Fix typo: call
34437         store_multiple_regs.
34438         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
34439         Call mn10300_store_multiple_regs.
34441 2014-01-30  Nick Clifton  <nickc@redhat.com>
34442             DJ Delorie  <dj@redhat.com>
34444         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
34445         %fp 2 to keep registers after it properly word-aligned.
34446         (rl78_alloc_physical_registers_umul): Handle the case where both
34447         input operands are the same.
34449 2014-01-30  Richard Biener  <rguenther@suse.de>
34451         PR tree-optimization/59903
34452         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
34453         check properly.
34455 2014-01-30  Jason Merrill  <jason@redhat.com>
34457         PR c++/59633
34458         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
34460         PR c++/59645
34461         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
34463 2014-01-30  Richard Biener  <rguenther@suse.de>
34465         PR tree-optimization/59951
34466         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
34468 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
34470         PR target/59784
34471         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
34472         SFmode to DFmode case.
34474 2014-01-29  DJ Delorie  <dj@redhat.com>
34476         * config/msp430/msp430.opt (-minrt): New.
34477         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
34478         if -minrt given.
34479         (ENDFILE_SPEC): Likewise.
34481 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
34483         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
34484         (estimate_function_body_sizes): Use it.
34486 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
34488         PR c++/58561
34489         * dwarf2out.c (is_cxx_auto): New.
34490         (is_base_type): Use it.
34491         (gen_type_die_with_usage): Likewise.
34493 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34495         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
34496         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
34497         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
34498         -maltivec=be with LE targets.
34499         (vsx_mergeh_<mode>): Likewise.
34500         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
34501         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
34502         (altivec_vmrghb): Replace with define_expand and new
34503         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
34504         (altivec_vmrghb_direct): New define_insn.
34505         (altivec_vmrghh): Replace with define_expand and new
34506         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
34507         (altivec_vmrghh_direct): New define_insn.
34508         (altivec_vmrghw): Replace with define_expand and new
34509         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
34510         (altivec_vmrghw_direct): New define_insn.
34511         (*altivec_vmrghsf): Adjust for endianness.
34512         (altivec_vmrglb): Replace with define_expand and new
34513         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
34514         (altivec_vmrglb_direct): New define_insn.
34515         (altivec_vmrglh): Replace with define_expand and new
34516         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
34517         (altivec_vmrglh_direct): New define_insn.
34518         (altivec_vmrglw): Replace with define_expand and new
34519         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
34520         (altivec_vmrglw_direct): New define_insn.
34521         (*altivec_vmrglsf): Adjust for endianness.
34522         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34523         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34524         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34525         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34526         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34527         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34528         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34529         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34531 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34533         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
34534         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
34535         whitespace.
34537 2014-01-29  Richard Biener  <rguenther@suse.de>
34539         PR tree-optimization/58742
34540         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
34541         associate_pointerplus_align.
34542         (associate_pointerplus_diff): New function.
34543         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
34544         and associate_pointerplus_diff.
34546 2014-01-29  Richard Biener  <rguenther@suse.de>
34548         * lto-streamer.h (LTO_major_version): Bump to 3.
34549         (LTO_minor_version): Reset to 0.
34551 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
34553         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
34554         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
34555         (arm_file_start): Generate correct asm header for armv7ve.
34556         * config/arm/bpabi.h: Add multilib support for armv7ve.
34557         * config/arm/driver-arm.c: Change the architectures of cortex-a7
34558         and cortex-a15 to armv7ve.
34559         * config/arm/t-aprofile: Add multilib support for armv7ve.
34560         * doc/invoke.texi: Document -march=armv7ve.
34562 2014-01-29  Richard Biener  <rguenther@suse.de>
34564         PR tree-optimization/58742
34565         * tree-ssa-forwprop.c (associate_plusminus): Return true
34566         if we changed sth, defer EH cleanup to ...
34567         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
34568         (simplify_mult): New function.
34570 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34572         PR middle-end/59917
34573         PR tree-optimization/59920
34574         * tree.c (build_common_builtin_nodes): Remove
34575         __builtin_setjmp_dispatcher initialization.
34576         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
34577         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
34578         instead of gsi_after_labels + manually skipping debug stmts.
34579         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
34580         ignore bbs with IFN_ABNORMAL_DISPATCHER.
34581         * tree-inline.c (copy_edges_for_bb): Remove
34582         can_make_abnormal_goto argument, instead add abnormal_goto_dest
34583         argument.  Ignore computed_goto_p stmts.  Don't call
34584         make_abnormal_goto_edges.  If a call might need abnormal edges
34585         for non-local gotos, see if it already has an edge to
34586         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
34587         with true argument, don't do anything then, otherwise add
34588         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
34589         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
34590         caller.
34591         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
34592         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
34593         (lower_stmt): Don't set data->calls_builtin_setjmp.
34594         (lower_builtin_setjmp): Adjust comment.
34595         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
34596         * tree-cfg.c (found_computed_goto): Remove.
34597         (factor_computed_gotos): Remove.
34598         (make_goto_expr_edges): Return bool, true for computed gotos.
34599         Don't call make_abnormal_goto_edges.
34600         (build_gimple_cfg): Don't set found_computed_goto, don't call
34601         factor_computed_gotos.
34602         (computed_goto_p): No longer static.
34603         (make_blocks): Don't set found_computed_goto.
34604         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
34605         (make_edges): If make_goto_expr_edges returns true, push bb
34606         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
34607         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
34608         vector.  Record mapping between bbs and OpenMP regions if there
34609         are any, adjust make_gimple_omp_edges caller.  Call
34610         handle_abnormal_edges.
34611         (make_abnormal_goto_edges): Remove.
34612         * tree-cfg.h (make_abnormal_goto_edges): Remove.
34613         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
34614         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
34615         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
34616         * internal-fn.def (ABNORMAL_DISPATCHER): New.
34617         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
34618         filling *region also set *region_idx to (*region)->entry->index.
34620         PR other/58712
34621         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34622         For REGs set ORIGINAL_REGNO.
34624 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
34626         * doc/md.texi: Mention that a target shouldn't implement
34627         vec_widen_(s|u)mul_even/odd pair if it is less efficient
34628         than hi/lo pair.
34630 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34632         PR tree-optimization/59594
34633         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34634         a copy of the datarefs vector rather than the vector itself.
34636 2014-01-28  Jason Merrill  <jason@redhat.com>
34638         PR c++/53756
34639         * dwarf2out.c (auto_die): New static.
34640         (gen_type_die_with_usage): Handle C++1y 'auto'.
34641         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34642         on definition.
34644 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
34646         PR target/59672
34647         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34648         (SPEC_X32): Likewise.
34649         (SPEC_64): Likewise.
34650         * config/i386/i386.c (ix86_option_override_internal): Turn off
34651         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34652         for TARGET_16BIT.
34653         (x86_file_start): Output .code16gcc for TARGET_16BIT.
34654         * config/i386/i386.h (TARGET_16BIT): New macro.
34655         (TARGET_16BIT_P): Likewise.
34656         * config/i386/i386.opt: Add m16.
34657         * doc/invoke.texi: Document -m16.
34659 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
34661         PR preprocessor/59935
34662         * input.c (location_get_source_line): Bail out on when line number
34663         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34665 2014-01-28  Richard Biener  <rguenther@suse.de>
34667         PR tree-optimization/58742
34668         * tree-ssa-forwprop.c (associate_plusminus): Handle
34669         pointer subtraction of the form (T)(P + A) - (T)P.
34671 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34673         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34674         at const_int_cost.
34676 2014-01-28  Richard Biener  <rguenther@suse.de>
34678         Revert
34679         2014-01-28  Richard Biener  <rguenther@suse.de>
34681         PR rtl-optimization/45364
34682         PR rtl-optimization/59890
34683         * var-tracking.c (local_get_addr_clear_given_value): Handle
34684         already cleared slot.
34685         (val_reset): Handle not allocated local_get_addr_cache.
34686         (vt_find_locations): Use post-order on the inverted CFG.
34688 2014-01-28  Richard Biener  <rguenther@suse.de>
34690         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34692 2014-01-28  Richard Biener  <rguenther@suse.de>
34694         PR rtl-optimization/45364
34695         PR rtl-optimization/59890
34696         * var-tracking.c (local_get_addr_clear_given_value): Handle
34697         already cleared slot.
34698         (val_reset): Handle not allocated local_get_addr_cache.
34699         (vt_find_locations): Use post-order on the inverted CFG.
34701 2014-01-28  Alan Modra  <amodra@gmail.com>
34703         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34704         * configure.ac <recursive call for build != host>: Define
34705         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34706         and LD_FOR_BUILD too.
34707         * configure: Regenerate.
34709 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
34711         * config/i386/i386.c (get_builtin_code_for_version): Separate
34712         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34713         Broadwell from Haswell.
34715 2014-01-27  Steve Ellcey  <sellcey@mips.com>
34717         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34718         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34719         * config/mips/mips.c (mips_option_override): Change setting
34720         of TARGET_DSP.
34721         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34722         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34723         Change from Mask to Var.
34725 2014-01-27  Jeff Law  <law@redhat.com>
34727         * ipa-inline.c (inline_small_functions): Fix typo.
34729 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
34731         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34732         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34733         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34734         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34735         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34736         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34737         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34738         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34739         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34740         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34741         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34742         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34743         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34744         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34745         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34746         (_mm512_storeu_epi64): Ditto.
34747         (_mm512_cmpge_epi32_mask): Ditto.
34748         (_mm512_cmpge_epu32_mask): Ditto.
34749         (_mm512_cmpge_epi64_mask): Ditto.
34750         (_mm512_cmpge_epu64_mask): Ditto.
34751         (_mm512_cmple_epi32_mask): Ditto.
34752         (_mm512_cmple_epu32_mask): Ditto.
34753         (_mm512_cmple_epi64_mask): Ditto.
34754         (_mm512_cmple_epu64_mask): Ditto.
34755         (_mm512_cmplt_epi32_mask): Ditto.
34756         (_mm512_cmplt_epu32_mask): Ditto.
34757         (_mm512_cmplt_epi64_mask): Ditto.
34758         (_mm512_cmplt_epu64_mask): Ditto.
34759         (_mm512_cmpneq_epi32_mask): Ditto.
34760         (_mm512_cmpneq_epu32_mask): Ditto.
34761         (_mm512_cmpneq_epi64_mask): Ditto.
34762         (_mm512_cmpneq_epu64_mask): Ditto.
34763         (_mm512_expand_pd): Ditto.
34764         (_mm512_expand_ps): Ditto.
34765         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34766         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34767         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34768         * config/i386/i386.c (ix86_builtins): Add
34769         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34770         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34771         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34772         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34773         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34774         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34775         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34776         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34777         IX86_BUILTIN_PMOVUSQW512_MEM.
34778         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34779         __builtin_ia32_pmovsqd512mem_mask,
34780         __builtin_ia32_pmovqd512mem_mask,
34781         __builtin_ia32_pmovusqw512mem_mask,
34782         __builtin_ia32_pmovsqw512mem_mask,
34783         __builtin_ia32_pmovqw512mem_mask,
34784         __builtin_ia32_pmovusdw512mem_mask,
34785         __builtin_ia32_pmovsdw512mem_mask,
34786         __builtin_ia32_pmovdw512mem_mask,
34787         __builtin_ia32_pmovqb512mem_mask,
34788         __builtin_ia32_pmovusqb512mem_mask,
34789         __builtin_ia32_pmovsqb512mem_mask,
34790         __builtin_ia32_pmovusdb512mem_mask,
34791         __builtin_ia32_pmovsdb512mem_mask,
34792         __builtin_ia32_pmovdb512mem_mask.
34793         (bdesc_args): Add __builtin_ia32_expanddf512,
34794         __builtin_ia32_expandsf512.
34795         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34796         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34797         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34798         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34799         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34800         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34801         (avx512f_<code>v8div16qi2_mask_store): This.
34802         (avx512f_expand<mode>): New.
34804 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
34806         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34807         New.
34808         (_mm512_mask_prefetch_i64gather_pd): Ditto.
34809         (_mm512_prefetch_i32scatter_pd): Ditto.
34810         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34811         (_mm512_prefetch_i64scatter_pd): Ditto.
34812         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34813         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34814         (_mm512_mask_prefetch_i64gather_ps): Ditto.
34815         (_mm512_prefetch_i32scatter_ps): Ditto.
34816         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34817         (_mm512_prefetch_i64scatter_ps): Ditto.
34818         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34819         * config/i386/i386-builtin-types.def: Define
34820         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34821         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34822         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34823         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34824         IX86_BUILTIN_SCATTERPFQPD.
34825         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34826         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34827         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34828         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34829         __builtin_ia32_scatterpfqps.
34830         (ix86_expand_builtin): Expand new built-ins.
34831         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34832         fix memory access data type.
34833         (*avx512pf_gatherpf<mode>_mask): Ditto.
34834         (*avx512pf_gatherpf<mode>): Ditto.
34835         (avx512pf_scatterpf<mode>): Ditto.
34836         (*avx512pf_scatterpf<mode>_mask): Ditto.
34837         (*avx512pf_scatterpf<mode>): Ditto.
34838         (GATHER_SCATTER_SF_MEM_MODE): New.
34839         (avx512pf_gatherpf<mode>df): Ditto.
34840         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34841         (*avx512pf_scatterpf<mode>df): Ditto.
34843 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
34845         PR bootstrap/59934
34846         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34847         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34848         reached.
34850 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34852         * common/config/arm/arm-common.c
34853         (arm_rewrite_mcpu): Handle multiple names.
34854         * config/arm/arm.h
34855         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34857 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34859         * gimple-builder.h (create_gimple_tmp): Delete.
34861 2014-01-27  Christian Bruel  <christian.bruel@st.com>
34863         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34864         words comparisons.
34866 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
34868         * config/pa/pa.md (call): Generate indirect long calls to non-local
34869         functions when outputing 32-bit code.
34870         (call_value): Likewise except for special call to buggy powf function.
34872         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34873         portable runtime and PIC indirect calls.
34874         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34875         and PIC call sequences.  Use ldo instead of blr to set return register
34876         in PIC call sequence.
34878 2014-01-25  Walter Lee  <walt@tilera.com>
34880         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34881         avoid clobbering a live register.
34883 2014-01-25  Walter Lee  <walt@tilera.com>
34885         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34886         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34887         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34888         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34890 2014-01-25  Walter Lee  <walt@tilera.com>
34892         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34893         arguments on even registers.
34894         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34895         STACK_BOUNDARY.
34896         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34897         (BIGGEST_ALIGNMENT): Ditto.
34898         (BIGGEST_FIELD_ALIGNMENT): Ditto.
34900 2014-01-25  Walter Lee  <walt@tilera.com>
34902         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34903         insns before bundling.
34904         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34906 2014-01-25  Walter Lee  <walt@tilera.com>
34908         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34909         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34910         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34912 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34914         * config/mips/constraints.md (kl): Delete.
34915         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34916         define expands, using...
34917         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34918         instructions for MIPS16.
34919         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34920         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34922 2014-01-25  Walter Lee  <walt@tilera.com>
34924         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34925         (clzdi2): Ditto.
34926         (ffsdi2): Ditto.
34928 2014-01-25  Walter Lee  <walt@tilera.com>
34930         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34931         (TARGET_EXPAND_TO_RTL_HOOK): Define.
34933 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34935         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34936         Handle XOR.
34938 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
34940         * print-rtl.c (in_call_function_usage): New var.
34941         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34942         EXPR_LIST mode as mode and not as reg note name.
34944         PR middle-end/59561
34945         * cfgloopmanip.c (copy_loop_info): If
34946         loop->warned_aggressive_loop_optimizations, make sure
34947         the flag is set in target loop too.
34949 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
34951         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34952         flag_cilkplus.
34953         * builtins.def: Likewise.
34954         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34955         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34956         * ira.c (ira_setup_eliminable_regset): Likewise.
34957         * omp-low.c (gate_expand_omp): Likewise.
34958         (execute_lower_omp): Likewise.
34959         (diagnose_sb_0): Likewise.
34960         (gate_diagnose_omp_blocks): Likewise.
34961         (simd_clone_clauses_extract): Likewise.
34962         (gate): Likewise.
34964 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34966         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34967         correction for little endian...
34968         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34969         here.
34971 2014-01-24  Jeff Law  <law@redhat.com>
34973         PR tree-optimization/59919
34974         * tree-vrp.c (find_assert_locations_1): Do not register asserts
34975         for non-returning calls.
34977 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
34979         * common/config/aarch64/aarch64-common.c
34980         (aarch64_rewrite_mcpu): Handle multiple names.
34981         * config/aarch64/aarch64.h
34982         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34984 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
34986         * input.c (add_file_to_cache_tab): Handle the case where fopen
34987         returns NULL.
34989 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34991         PR target/59929
34992         * config/i386/i386.md (pushsf splitter): Get stack adjustment
34993         from push operand if code of push isn't PRE_DEC.
34995 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
34997         PR target/59909
34998         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34999         -mquad-memory-atomic.  Update -mquad-memory documentation to say
35000         it is only used for non-atomic loads/stores.
35002         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
35003         -mquad-memory or -mquad-memory-atomic switches.
35005         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
35006         -mquad-memory-atomic to ISA 2.07 support.
35008         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
35009         to separate support of normal quad word memory operations (ldq, stq)
35010         from the atomic quad word memory operations.
35012         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
35013         support to separate non-atomic quad word operations from atomic
35014         quad word operations.  Disable non-atomic quad word operations in
35015         little endian mode so that we don't have to swap words after the
35016         load and before the store.
35017         (quad_load_store_p): Add comment about atomic quad word support.
35018         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
35019         options printed with -mdebug=reg.
35021         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
35022         -mquad-memory-atomic as the test for whether we have quad word
35023         atomic instructions.
35024         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
35025         or -mp8-vector are used, allow byte/half-word atomic operations.
35027         * config/rs6000/sync.md (load_lockedti): Insure that the address
35028         is a proper indexed or indirect address for the lqarx instruction.
35029         On little endian systems, swap the hi/lo registers after the lqarx
35030         instruction.
35031         (load_lockedpti): Use indexed_or_indirect_operand predicate to
35032         insure the address is valid for the lqarx instruction.
35033         (store_conditionalti): Insure that the address is a proper indexed
35034         or indirect address for the stqcrx. instruction.  On little endian
35035         systems, swap the hi/lo registers before doing the stqcrx.
35036         instruction.
35037         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
35038         insure the address is valid for the stqcrx. instruction.
35040         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
35041         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
35042         type of quad memory support is available.
35044 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
35046         PR regression/59915
35047         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
35048         there is a danger of looping.
35050 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
35052         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
35053         force flag_ira_loop_pressure if set via command line.
35055 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35057         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
35058         (ashr_simd): New builtin handling DI mode.
35059         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
35060         (aarch64_sshr_simddi): New match pattern.
35061         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
35062         (vshrd_n_s64): Likewise.
35063         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
35065 2014-01-23  Nick Clifton  <nickc@redhat.com>
35067         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
35068         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
35069         favour of mcu specific scripts.
35070         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
35071         430x multilibs.
35073 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
35074             Alex Velenko  <Alex.Velenko@arm.com>
35076         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
35077         (vaddv_s16): Likewise.
35078         (vaddv_s32): Likewise.
35079         (vaddv_u8): Likewise.
35080         (vaddv_u16): Likewise.
35081         (vaddv_u32): Likewise.
35082         (vaddvq_s8): Likewise.
35083         (vaddvq_s16): Likewise.
35084         (vaddvq_s32): Likewise.
35085         (vaddvq_s64): Likewise.
35086         (vaddvq_u8): Likewise.
35087         (vaddvq_u16): Likewise.
35088         (vaddvq_u32): Likewise.
35089         (vaddvq_u64): Likewise.
35090         (vaddv_f32): Likewise.
35091         (vaddvq_f32): Likewise.
35092         (vaddvq_f64): Likewise.
35093         (vmaxv_f32): Likewise.
35094         (vmaxv_s8): Likewise.
35095         (vmaxv_s16): Likewise.
35096         (vmaxv_s32): Likewise.
35097         (vmaxv_u8): Likewise.
35098         (vmaxv_u16): Likewise.
35099         (vmaxv_u32): Likewise.
35100         (vmaxvq_f32): Likewise.
35101         (vmaxvq_f64): Likewise.
35102         (vmaxvq_s8): Likewise.
35103         (vmaxvq_s16): Likewise.
35104         (vmaxvq_s32): Likewise.
35105         (vmaxvq_u8): Likewise.
35106         (vmaxvq_u16): Likewise.
35107         (vmaxvq_u32): Likewise.
35108         (vmaxnmv_f32): Likewise.
35109         (vmaxnmvq_f32): Likewise.
35110         (vmaxnmvq_f64): Likewise.
35111         (vminv_f32): Likewise.
35112         (vminv_s8): Likewise.
35113         (vminv_s16): Likewise.
35114         (vminv_s32): Likewise.
35115         (vminv_u8): Likewise.
35116         (vminv_u16): Likewise.
35117         (vminv_u32): Likewise.
35118         (vminvq_f32): Likewise.
35119         (vminvq_f64): Likewise.
35120         (vminvq_s8): Likewise.
35121         (vminvq_s16): Likewise.
35122         (vminvq_s32): Likewise.
35123         (vminvq_u8): Likewise.
35124         (vminvq_u16): Likewise.
35125         (vminvq_u32): Likewise.
35126         (vminnmv_f32): Likewise.
35127         (vminnmvq_f32): Likewise.
35128         (vminnmvq_f64): Likewise.
35130 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
35132         * config/aarch64/aarch64-simd.md
35133         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
35134         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
35135         (*aarch64_mul3_elt<mode>): Likewise.
35136         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
35137         (*aarch64_mul3_elt_to_64v2df): Likewise.
35138         (*aarch64_mla_elt<mode>): Likewise.
35139         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
35140         (*aarch64_mls_elt<mode>): Likewise.
35141         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
35142         (*aarch64_fma4_elt<mode>): Likewise.
35143         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
35144         (*aarch64_fma4_elt_to_64v2df): Likewise.
35145         (*aarch64_fnma4_elt<mode>): Likewise.
35146         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
35147         (*aarch64_fnma4_elt_to_64v2df): Likewise.
35148         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
35149         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
35150         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35151         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35152         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
35153         (aarch64_sqdmull_lane<mode>_internal): Likewise.
35154         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
35156 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35158         * config/aarch64/aarch64-simd.md
35159         (aarch64_be_checked_get_lane<mode>): New define_expand.
35160         * config/aarch64/aarch64-simd-builtins.def
35161         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
35162         New builtin definition.
35163         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
35164         Use new safe be builtin.
35166 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35168         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
35169         New define_insn.
35170         (aarch64_be_st1<mode>): Likewise.
35171         (aarch_ld1<VALL:mode>): Define_expand modified.
35172         (aarch_st1<VALL:mode>): Likewise.
35173         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
35174         (UNSPEC_ST1): Likewise.
35176 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
35178         * config/microblaze/microblaze.md: Add trap insn and attribute
35180 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
35182         PR preprocessor/58580
35183         * input.h (location_get_source_line): Take an additional line_size
35184         parameter.
35185         (void diagnostics_file_cache_fini): Declare new function.
35186         * input.c (struct fcache): New type.
35187         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
35188         New static constants.
35189         (diagnostic_file_cache_init, total_lines_num)
35190         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
35191         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
35192         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
35193         (get_next_line, read_next_line, goto_next_line, read_line_num):
35194         New static function definitions.
35195         (diagnostic_file_cache_fini): New function.
35196         (location_get_source_line): Take an additional output line_len
35197         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
35198         read_line_num.
35199         * diagnostic.c (diagnostic_finish): Call
35200         diagnostic_file_cache_fini.
35201         (adjust_line): Take an additional input parameter for the length
35202         of the line, rather than calculating it with strlen.
35203         (diagnostic_show_locus): Adjust the use of
35204         location_get_source_line and adjust_line with respect to their new
35205         signature.  While displaying a line now, do not stop at the first
35206         null byte.  Rather, display the zero byte as a space and keep
35207         going until we reach the size of the line.
35208         * Makefile.in: Add vec.o to OBJS-libcommon
35210 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
35211             Ilya Tocar  <ilya.tocar@intel.com>
35213         * config/i386/avx512fintrin.h (_mm512_kmov): New.
35214         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
35215         (__builtin_ia32_kmov16): Ditto.
35216         * config/i386/i386.md (UNSPEC_KMOV): New.
35217         (kmovw): Ditto.
35219 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
35221         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
35222         (_mm512_storeu_si512): Ditto.
35224 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
35226         PR target/52125
35227         * rtl.h (get_referenced_operands): Declare.
35228         * recog.c (get_referenced_operands): New function.
35229         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
35230         operands have been referenced when recording LO_SUM references.
35232 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
35234         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
35236 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35238         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
35239         Enable for generic and recent AMD targets.
35241 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35243         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
35244         ARG_SIZE note when adjustment was eliminated.
35246 2014-01-22  Jeff Law  <law@redhat.com>
35248         PR tree-optimization/59597
35249         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
35250         in file.  Accept new argument REGISTERING and use it to modify
35251         dump output appropriately.
35252         (register_jump_thread): Corresponding changes.
35253         (mark_threaded_blocks): Reinstate code to cancel unprofitable
35254         thread paths involving joiner blocks.  Add code to dump cancelled
35255         jump threading paths.
35257 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
35259         PR rtl-optimization/59477
35260         * lra-constraints.c (inherit_in_ebb): Process call for living hard
35261         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
35263 2014-01-22  Tom Tromey  <tromey@redhat.com>
35265         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
35266         PARAMS.
35267         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
35269 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35271         PR rtl-optimization/59896
35272         * lra-constraints.c (process_alt_operands): Check unused note for
35273         matched operands of insn with no output reloads.
35275 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
35277         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
35278         (mips_move_from_gpr_cost): Likewise.
35280 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35282         PR rtl-optimization/59858
35283         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
35284         ira_class_hard_regs_num.
35285         (process_alt_operands): Increase reject for dying matched operand.
35287 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
35289         PR target/59003
35290         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
35291         smaller than size, perform several stores or loads and stores
35292         at dst + count - size to store or copy all of size bytes, rather
35293         than just last modesize bytes.
35295 2014-01-20  DJ Delorie  <dj@redhat.com>
35297         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
35298         that CLOBBERs are REGs before propogating their values.
35300 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
35302         PR middle-end/59789
35303         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
35304         (cgraph_inline_failed_type): New function.
35305         * cgraph.h (DEFCIFCODE): Add type.
35306         (cgraph_inline_failed_type_t): New enum.
35307         (cgraph_inline_failed_type): New prototype.
35308         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
35309         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35310         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
35311         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
35312         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
35313         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
35314         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
35315         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
35316         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
35317         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
35318         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
35319         OPTIMIZATION_MISMATCH.
35320         * tree-inline.c (expand_call_inline): Emit errors during
35321         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
35323 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35325         PR target/59685
35326         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
35327         mode attribute in insn output.
35329 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
35331         * output.h (output_constant): Delete.
35332         * varasm.c (output_constant): Make private.
35334 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
35336         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
35338 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35340         PR middle-end/59860
35341         * tree.h (fold_builtin_strcat): New prototype.
35342         * builtins.c (fold_builtin_strcat): No longer static.  Add len
35343         argument, if non-NULL, don't call c_strlen.  Optimize
35344         directly into __builtin_memcpy instead of __builtin_strcpy.
35345         (fold_builtin_2): Adjust fold_builtin_strcat caller.
35346         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
35348 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35350         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35351         for SImode_address_operand operands, having only a REG argument.
35353 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35355         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
35356         loader name using mbig-endian.
35357         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
35359 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35361         * doc/invoke.texi (-march): Clarify documentation for AArch64.
35362         (-mtune): Likewise.
35363         (-mcpu): Likewise.
35365 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
35367         * config/aarch64/aarch64-protos.h
35368         (aarch64_cannot_change_mode_class_ptr): Declare.
35369         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
35370         aarch64_cannot_change_mode_class_ptr): New.
35371         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
35372         backend hook aarch64_cannot_change_mode_class.
35374 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35376         * common/config/aarch64/aarch64-common.c
35377         (aarch64_handle_option): Don't handle any option order logic here.
35378         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
35379         selected_cpu, warn on architecture version mismatch.
35380         (aarch64_override_options): Fix parsing order for option strings.
35382 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35383             Iain Sandoe  <iain@codesourcery.com>
35385         PR bootstrap/59496
35386         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
35387         warning.  Amend comment to reflect current functionality.
35389 2014-01-20  Richard Biener  <rguenther@suse.de>
35391         PR middle-end/59860
35392         * builtins.c (fold_builtin_strcat): Remove case better handled
35393         by tree-ssa-strlen.c.
35395 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
35397         * config/aarch64/aarch64.opt
35398         (mcpu, march, mtune): Make case-insensitive.
35400 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35402         PR target/59880
35403         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35404         if operands[1] is a REG or ZERO_EXTEND of a REG.
35406 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
35408         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
35410 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
35412         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
35413         long non-pic millicode calls.
35415 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35417         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
35419 2014-01-19  Kito Cheng  <kito@0xlab.org>
35421         * builtins.c (expand_movstr): Check movstr expand done or fail.
35423 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35424             H.J. Lu  <hongjiu.lu@intel.com>
35426         PR target/59379
35427         * config/i386/i386.md (*lea<mode>): Zero-extend return register
35428         to DImode for zero-extended addresses.
35430 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
35432         PR rtl-optimization/57763
35433         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
35434         on the new indirect jump_insn and increment LABEL_NUSES (label).
35436 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
35438         PR bootstrap/59580
35439         PR bootstrap/59583
35440         * config.gcc (x86_archs): New variable.
35441         (x86_64_archs): Likewise.
35442         (x86_cpus): Likewise.
35443         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
35444         --with-arch/--with-cpu= options.
35445         Support --with-arch=/--with-cpu={nehalem,westmere,
35446         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
35448 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35450         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
35451         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
35453 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35455         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
35457 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
35459         PR target/58944
35460         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
35461         clear cpp_get_options (parse_in)->warn_unused_macros for
35462         ix86_target_macros_internal with cpp_define.
35464 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
35466         * jump.c (delete_related_insns): Keep (use (insn))s.
35467         * reorg.c (redundant_insn): Check for barriers too.
35469 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35471         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
35473 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
35475         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
35476         call to $$dyncall when TARGET_LONG_CALLS is true.
35478 2014-01-17  Jeff Law  <law@redhat.com>
35480         * ree.c (combine_set_extension): Temporarily disable test for
35481         changing number of hard registers.
35483 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35485         PR middle-end/58125
35486         * ipa-inline-analysis.c (inline_free_summary):
35487         Do not free summary of aliases.
35489 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35491         PR middle-end/59706
35492         * gimplify.c (gimplify_expr): Use create_tmp_var
35493         instead of create_tmp_var_raw.  If cond doesn't have
35494         integral type, don't add the IFN_ANNOTATE builtin at all.
35496 2014-01-17  Martin Jambor  <mjambor@suse.cz>
35498         PR ipa/59736
35499         * ipa-cp.c (prev_edge_clone): New variable.
35500         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
35501         Also resize prev_edge_clone vector.
35502         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
35503         (ipcp_edge_removal_hook): New function.
35504         (ipcp_driver): Register ipcp_edge_removal_hook.
35506 2014-01-17  Andrew Pinski  <apinski@cavium.com>
35507             Steve Ellcey  <sellcey@mips.com>
35509         PR target/59462
35510         * config/mips/mips.c (mips_print_operand): Check operand mode instead
35511         of operator mode.
35513 2014-01-17  Jeff Law  <law@redhat.com>
35515         PR middle-end/57904
35516         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
35517         so that pass_ccp runs first.
35519 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35521         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
35522         (ix86_adjust_cost): Use !TARGET_XXX.
35523         (do_reorder_for_imul): Likewise.
35524         (swap_top_of_ready_list): Likewise.
35525         (ix86_sched_reorder): Likewise.
35527 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35529         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35530         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
35531         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
35532         (intel_memset): New.  Duplicate slm_memset.
35533         (intel_cost): New.  Duplicate slm_cost.
35534         (m_INTEL): New macro.
35535         (processor_target_table): Add "intel".
35536         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
35537         with PROCESSOR_INTEL for "intel".
35538         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
35539         PROCESSOR_SILVERMONT.
35540         (ix86_issue_rate): Likewise.
35541         (ix86_adjust_cost): Likewise.
35542         (ia32_multipass_dfa_lookahead): Likewise.
35543         (swap_top_of_ready_list): Likewise.
35544         (ix86_sched_reorder): Likewise.
35545         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
35546         instead of TARGET_OPT_AGU.
35547         * config/i386/i386.h (TARGET_INTEL): New.
35548         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
35549         (processor_type): Add PROCESSOR_INTEL.
35550         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
35551         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
35553 2014-01-17  Marek Polacek  <polacek@redhat.com>
35555         PR c/58346
35556         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
35557         size is zero.
35559 2014-01-17  Richard Biener  <rguenther@suse.de>
35561         PR tree-optimization/46590
35562         * opts.c (default_options_table): Add entries for
35563         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
35564         all enabled at -O1 but not for -Og.
35565         * common.opt (fbranch-count-reg): Remove Init(1).
35566         (fmove-loop-invariants): Likewise.
35567         (ftree-pta): Likewise.
35569 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35571         * config/i386/i386.c (ix86_data_alignment): For compatibility with
35572         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
35573         decls to at least the GCC 4.8 used alignments.
35575         PR fortran/59440
35576         * tree-nested.c (convert_nonlocal_reference_stmt,
35577         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
35578         of GIMPLE_BIND stmts, adjust associated decls.
35580 2014-01-17  Richard Biener  <rguenther@suse.de>
35582         PR tree-optimization/46590
35583         * vec.h (vec<>::bseach): New member function implementing
35584         binary search according to C89 bsearch.
35585         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
35586         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
35587         bitmap pointer again.  Make accesses_in_loop a flat array.
35588         (mem_ref_obstack): New global.
35589         (outermost_indep_loop): Adjust for mem_ref->stored changes.
35590         (mark_ref_stored): Likewise.
35591         (ref_indep_loop_p_2): Likewise.
35592         (set_ref_stored_in_loop): New helper function.
35593         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
35594         (memref_free): Adjust.
35595         (record_mem_ref_loc): Simplify.
35596         (gather_mem_refs_stmt): Adjust.
35597         (sort_locs_in_loop_postorder_cmp): New function.
35598         (analyze_memory_references): Sort accesses_in_loop after
35599         loop postorder number.
35600         (find_ref_loc_in_loop_cmp): New function.
35601         (for_all_locs_in_loop): Find relevant cluster of locs in
35602         accesses_in_loop and iterate without recursion.
35603         (execute_sm): Avoid uninit warning.
35604         (struct ref_always_accessed): Simplify.
35605         (ref_always_accessed::operator ()): Likewise.
35606         (ref_always_accessed_p): Likewise.
35607         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
35608         loop postorder numbers here.
35609         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
35610         numbers.
35612 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35614         PR c++/57945
35615         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
35616         on decls for which assemble_alias has been called.
35618 2014-01-17  Nick Clifton  <nickc@redhat.com>
35620         * config/msp430/msp430.opt: (mcpu): New option.
35621         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35622         (msp430_option_override): Parse target_cpu.  If the MCU name
35623         matches a generic string, clear target_mcu.
35624         (msp430_attr): Allow numeric interrupt values up to 63.
35625         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35626         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35627         option.
35628         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35629         Add mcpu matches.
35630         * config/msp430/msp430.md (popm): Use %J rather than %I.
35631         (addsi3): Use msp430_nonimmediate_operand for operand 2.
35632         (addhi_cy_i): Use immediate_operand for operand 2.
35633         * doc/invoke.texi: Document -mcpu option.
35635 2014-01-17  Richard Biener  <rguenther@suse.de>
35637         PR rtl-optimization/38518
35638         * df.h (df_analyze_loop): Declare.
35639         * df-core.c: Include cfgloop.h.
35640         (df_analyze_1): Split out main part of df_analyze.
35641         (df_analyze): Adjust.
35642         (loop_inverted_post_order_compute): New function.
35643         (loop_post_order_compute): Likewise.
35644         (df_analyze_loop): New function avoiding whole-function
35645         postorder computes.
35646         * loop-invariant.c (find_defs): Use df_analyze_loop.
35647         (find_invariants): Adjust.
35648         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35650 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
35652         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35653         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35655 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35657         * ipa-ref.c (ipa_remove_stmt_references): Fix references
35658         traversal when removing references.
35660 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
35662         PR ipa/59775
35663         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35665 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
35667         PR middle-end/56791
35668         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35669         pushing a reload for an autoinc when we had previously reloaded an
35670         inner part of the address.
35672 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
35674         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35675         field.
35676         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35677         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35678         when not giving up or versioning for alias only because of
35679         loop->safelen.
35680         (vect_analyze_data_ref_dependences): Set to true.
35681         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35682         is a GIMPLE_PHI.
35683         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35684         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35685         to the condition.
35687         PR middle-end/58344
35688         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35690         PR target/59839
35691         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35692         operand 0 predicate for gathers, use a new pseudo as subtarget.
35694 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35696         PR middle-end/59609
35697         * lra-constraints.c (process_alt_operands): Add printing debug info.
35698         Check absence of input/output reloads for matched operands too.
35700 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35702         PR rtl-optimization/59835
35703         * ira.c (ira_init_register_move_cost): Increase cost for
35704         impossible modes.
35706 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
35708         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35710 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
35712         PR target/59780
35713         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35714         non-register objects.  Use gen_(high/low)part more consistently.
35715         Fix assertions.
35717 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
35719         PR target/59844
35720         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35721         endian support, remove tests for WORDS_BIG_ENDIAN.
35722         (p8_mfvsrd_3_<mode>): Likewise.
35723         (reload_gpr_from_vsx<mode>): Likewise.
35724         (reload_gpr_from_vsxsf): Likewise.
35725         (p8_mfvsrd_4_disf): Likewise.
35727 2014-01-16  Richard Biener  <rguenther@suse.de>
35729         PR rtl-optimization/46590
35730         * lcm.c (compute_antinout_edge): Use postorder iteration.
35731         (compute_laterin): Use inverted postorder iteration.
35733 2014-01-16  Nick Clifton  <nickc@redhat.com>
35735         PR middle-end/28865
35736         * varasm.c (output_constant): Return the number of bytes actually
35737         emitted.
35738         (output_constructor_array_range): Update the field size with the
35739         number of bytes emitted by output_constant.
35740         (output_constructor_regular_field): Likewise.  Also do not
35741         complain if the total number of bytes emitted is now greater
35742         than the expected fieldpos.
35743         * output.h (output_constant): Update prototype and descriptive comment.
35745 2014-01-16  Marek Polacek  <polacek@redhat.com>
35747         PR middle-end/59827
35748         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35749         it is error_mark_node.
35751 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
35753         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35754         VALID_AVX256_REG_OR_OI_MODE.
35756 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
35758         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35759         current procedure should be profiled.
35761 2014-01-15  Andrew Pinski  <apinski@cavium.com>
35763         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35764         of moving from/to the STACK_REG register class.
35766 2014-01-15  Richard Henderson  <rth@redhat.com>
35768         PR debug/54694
35769         * reginfo.c (global_regs_decl): Globalize.
35770         * rtl.h (global_regs_decl): Declare.
35771         * ira.c (do_reload): Diagnose frame_pointer_needed and it
35772         reserved via global_regs.
35774 2014-01-15  Teresa Johnson  <tejohnson@google.com>
35776         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35778 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
35780         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35781         and vmulosh rather than call gen_vec_widen_smult_*.
35782         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35783         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35784         (vec_widen_smult_even_v16qi): Likewise.
35785         (vec_widen_umult_even_v8hi): Likewise.
35786         (vec_widen_smult_even_v8hi): Likewise.
35787         (vec_widen_umult_odd_v16qi): Likewise.
35788         (vec_widen_smult_odd_v16qi): Likewise.
35789         (vec_widen_umult_odd_v8hi): Likewise.
35790         (vec_widen_smult_odd_v8hi): Likewise.
35791         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35792         vmuloub rather than call gen_vec_widen_umult_*.
35793         (vec_widen_umult_lo_v16qi): Likewise.
35794         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35795         vmulosb rather than call gen_vec_widen_smult_*.
35796         (vec_widen_smult_lo_v16qi): Likewise.
35797         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35798         rather than call gen_vec_widen_umult_*.
35799         (vec_widen_umult_lo_v8hi): Likewise.
35800         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35801         rather than call gen_vec_widen_smult_*.
35802         (vec_widen_smult_lo_v8hi): Likewise.
35804 2014-01-15  Jeff Law  <law@redhat.com>
35806         PR tree-optimization/59747
35807         * ree.c (find_and_remove_re): Properly handle case where a second
35808         eliminated extension requires widening a copy created for elimination
35809         of a prior extension.
35810         (combine_set_extension): Ensure that the number of hard regs needed
35811         for a destination register does not change when we widen it.
35813 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35815         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35816         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35817         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35818         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35819         (avr-*-rtems*): Likewise.
35820         (bfin*-rtems*): Likewise.
35821         (moxie-*-rtems*): Likewise.
35822         (h8300-*-rtems*): Likewise.
35823         (i[34567]86-*-rtems*): Likewise.
35824         (lm32-*-rtems*): Likewise.
35825         (m32r-*-rtems*): Likewise.
35826         (m68k-*-rtems*): Likewise.
35827         (microblaze*-*-rtems*): Likewise.
35828         (mips*-*-rtems*): Likewise.
35829         (powerpc-*-rtems*): Likewise.
35830         (sh-*-rtems*): Likewise.
35831         (sparc-*-rtems*): Likewise.
35832         (sparc64-*-rtems*): Likewise.
35833         (v850-*-rtems*): Likewise.
35834         (m32c-*-rtems*): Likewise.
35836 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35838         PR rtl-optimization/59511
35839         * ira.c (ira_init_register_move_cost): Use memory costs for some
35840         cases of register move cost calculations.
35841         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35842         instead of BB frequency.
35843         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35844         * lra-assigns.c (find_hard_regno_for): Ditto.
35846 2014-01-15  Richard Biener  <rguenther@suse.de>
35848         PR tree-optimization/59822
35849         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35850         (vectorizable_load): Use it to hoist defs of uses of invariant
35851         loads out of the loop.
35853 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35854             Kugan Vivekanandarajah  <kuganv@linaro.org>
35856         PR target/59695
35857         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35858         truncation.
35860 2014-01-15  Richard Biener  <rguenther@suse.de>
35862         PR rtl-optimization/59802
35863         * lcm.c (compute_available): Use inverted postorder to seed
35864         the initial worklist.
35866 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35868         PR target/59803
35869         * config/s390/s390.c (s390_preferred_reload_class): Don't return
35870         ADDR_REGS for invalid symrefs in non-PIC code.
35872 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
35874         PR other/58712
35875         * builtins.c (determine_block_size): Initialize *probable_max_size
35876         even if len_rtx is CONST_INT.
35878 2014-01-14  Andrew Pinski  <apinski@cavium.com>
35880         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35881         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35882         (cortexa53_tunings): Likewise.
35883         (aarch64_sched_issue_rate): New function.
35884         (TARGET_SCHED_ISSUE_RATE): Define.
35886 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35888         * ira-costs.c (find_costs_and_classes): Add missed
35889         ira_init_register_move_cost_if_necessary.
35891 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35893         PR target/59787
35894         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35896 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
35898         PR target/59794
35899         * config/i386/i386.c (type_natural_mode): Add a bool parameter
35900         to indicate if type is used for function return value.  Warn ABI
35901         change if the vector mode isn't available for function return value.
35902         (ix86_function_arg_advance): Pass false to type_natural_mode.
35903         (ix86_function_arg): Likewise.
35904         (ix86_gimplify_va_arg): Likewise.
35905         (function_arg_32): Don't warn ABI change.
35906         (ix86_function_value): Pass true to type_natural_mode.
35907         (ix86_return_in_memory): Likewise.
35908         (ix86_struct_value_rtx): Removed.
35909         (TARGET_STRUCT_VALUE_RTX): Likewise.
35911 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35913         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35914         converting a conditional jump into a conditional return.
35916 2014-01-14  Richard Biener  <rguenther@suse.de>
35918         PR tree-optimization/58921
35919         PR tree-optimization/59006
35920         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35921         hoisting invariant stmts.
35922         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35923         invariant loads on the preheader edge if possible.
35925 2014-01-14  Joey Ye  <joey.ye@arm.com>
35927         * doc/plugin.texi (Building GCC plugins): Update to C++.
35929 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
35931         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35932         (_mm_rcp28_round_ss): Ditto.
35933         (_mm_rsqrt28_round_sd): Ditto.
35934         (_mm_rsqrt28_round_ss): Ditto.
35935         (_mm_rcp28_sd): Ditto.
35936         (_mm_rcp28_ss): Ditto.
35937         (_mm_rsqrt28_sd): Ditto.
35938         (_mm_rsqrt28_ss): Ditto.
35939         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35940         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35941         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35942         (IX86_BUILTIN_RCP28SD): Ditto.
35943         (IX86_BUILTIN_RCP28SS): Ditto.
35944         (IX86_BUILTIN_RSQRT28SD): Ditto.
35945         (IX86_BUILTIN_RSQRT28SS): Ditto.
35946         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35947         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35948         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35949         (ix86_expand_special_args_builtin): Expand new FTYPE.
35950         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35951         (srcp14<mode>): Make insn unary.
35952         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35953         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35954         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35955         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35956         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35957         Fix rounding: make it SAE only.
35958         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35959         Ditto.
35960         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35961         Ditto.
35962         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35963         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35964         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35965         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35966         (round_saeonly_mask_scalar_operand4): Ditto.
35967         (round_saeonly_mask_scalar_op3): Ditto.
35968         (round_saeonly_mask_scalar_op4): Ditto.
35970 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35972         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35973         Implement -maltivec=be for vec_insert and vec_extract.
35975 2014-01-10  DJ Delorie  <dj@redhat.com>
35977         * config/msp430/msp430.md (call_internal): Don't allow memory
35978         references with SP as the base register.
35979         (call_value_internal): Likewise.
35980         * config/msp430/constraints.md (Yc): New.  For memory references
35981         that don't use SP as a base register.
35983         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35984         "an integer without a # prefix"
35985         * config/msp430/msp430.md (epilogue_helper): Use it.
35987 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35989         PR target/59617
35990         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35991         AVX512F gather builtins.
35992         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35993         on gather decls with INTEGER_TYPE masktype.
35994         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35995         directly into the builtin rather than hoisting it before loop.
35997         PR tree-optimization/59387
35998         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35999         (scev_const_prop): If folded_casts and type has undefined overflow,
36000         use force_gimple_operand instead of force_gimple_operand_gsi and
36001         for each added stmt if it is assign with
36002         arith_code_with_undefined_signed_overflow, call
36003         rewrite_to_defined_overflow.
36004         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
36005         gimple-fold.h instead.
36006         (arith_code_with_undefined_signed_overflow,
36007         rewrite_to_defined_overflow): Moved to ...
36008         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
36009         rewrite_to_defined_overflow): ... here.  No longer static.
36010         Include gimplify-me.h.
36011         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
36012         rewrite_to_defined_overflow): New prototypes.
36014 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36016         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
36018 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
36020         * builtins.c (get_object_alignment_2): Minor tweak.
36021         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
36023 2014-01-13  Christian Bruel  <christian.bruel@st.com>
36025         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
36026         optimized non constant lengths.
36028 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
36030         PR libgomp/59194
36031         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
36032         load as __atomic_load_N if possible.
36034 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
36036         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
36037         target parameter.
36038         (rs6000_expand_builtin): Adjust call.
36040 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
36042         PR target/58115
36043         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
36044         * config/rs6000/rs6000.c: Include target-globals.h.
36045         (rs6000_set_current_function): Instead of doing target_reinit
36046         unconditionally, use save_target_globals_default_opts and
36047         restore_target_globals.
36049         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
36050         FPSCR.
36051         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
36052         (rs6000_expand_builtin): Handle mffs and mtfsf.
36053         (rs6000_init_builtins): Define mffs and mtfsf.
36054         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
36055         (rs6000_mffs): New pattern.
36056         (rs6000_mtfsf): New pattern.
36058 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
36060         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
36061         Start narrowing with START.  Apply candidate-use pair
36062         and check overall cost in narrowing.
36063         (iv_ca_prune): Pass new argument.
36065 2014-01-10  Jeff Law  <law@redhat.com>
36067         PR middle-end/59743
36068         * ree.c (combine_reaching_defs): Ensure the defining statement
36069         occurs before the extension when optimizing extensions with
36070         different source and destination hard registers.
36072 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
36074         PR ipa/58585
36075         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
36076         vtables into the type inheritance graph.
36078 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36080         PR rtl-optimization/59754
36081         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
36082         modes in the REGNO != REGNO case.
36084 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36086         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
36088 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36090         PR tree-optimization/59745
36091         * tree-predcom.c (tree_predictive_commoning_loop): Call
36092         free_affine_expand_cache if giving up because components is NULL.
36094         * target-globals.c (save_target_globals): Allocate < 4KB structs using
36095         GC in payload of target_globals struct instead of allocating them on
36096         the heap and the larger structs separately using GC.
36097         * target-globals.h (struct target_globals): Make regs, hard_regs,
36098         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
36099         of GTY((skip)) and change type to void *.
36100         (reset_target_globals): Cast loads from those fields to corresponding
36101         types.
36103 2014-01-10  Steve Ellcey  <sellcey@mips.com>
36105         PR plugins/59335
36106         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
36107         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
36108         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
36110 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
36112         PR target/59744
36113         * aarch64-modes.def (CC_Zmode): New flags mode.
36114         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
36115         represents an equality.
36116         (aarch64_get_condition_code): Handle CC_Zmode.
36117         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
36119 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36121         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
36122         extraction in good case.
36124 2014-01-10  Richard Biener  <rguenther@suse.de>
36126         PR tree-optimization/59374
36127         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
36128         checking after SLP discovery.  Mark stmts not participating
36129         in any SLP instance properly.
36131 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36133         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
36134         when handling a SET rtx.
36136 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36138         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
36139         (cortex-a57): Likewise.
36140         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
36142 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36144         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
36145         non-iwmmxt builtins.
36147 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
36149         PR ipa/58252
36150         PR ipa/59226
36151         * ipa-devirt.c record_target_from_binfo): Take as argument
36152         stack of binfos and lookup matching one for virtual inheritance.
36153         (possible_polymorphic_call_targets_1): Update.
36155 2014-01-10  Huacai Chen  <chenhc@lemote.com>
36157         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
36158         kernel strings for Loongson-2E/2F/3A.
36160 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36162         PR middle-end/59670
36163         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
36164         is_gimple_call before calling gimple_call_internal_p.
36166 2014-01-09  Steve Ellcey  <sellcey@mips.com>
36168         * Makefile.in (TREE_FLOW_H): Remove.
36169         (TREE_SSA_H): Add file names from tree-flow.h.
36170         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
36171         * tree.h: Remove tree-flow.h reference.
36172         * hash-table.h: Remove tree-flow.h reference.
36173         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
36174         reference with tree-ssa-loop.h.
36176 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36178         * doc/invoke.texi: Add -maltivec={be,le} options, and document
36179         default element-order behavior for -maltivec.
36180         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
36181         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
36182         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
36183         when targeting big endian, at least for now.
36184         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
36186 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36188         PR middle-end/47735
36189         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
36190         var satisfies use_register_for_decl, just take into account type
36191         alignment, rather than decl alignment.
36193         PR tree-optimization/59622
36194         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
36195         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
36196         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
36197         Don't devirtualize for inplace at all.  For targets.length () == 1,
36198         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
36200 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
36202         * config/i386/i386.md (cpu): Remove the unused btver1.
36204 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
36206         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
36208 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36210         PR target/58115
36211         * tree-core.h (struct target_globals): New forward declaration.
36212         (struct tree_target_option): Add globals field.
36213         * tree.h (TREE_TARGET_GLOBALS): Define.
36214         (prepare_target_option_nodes_for_pch): New prototype.
36215         * target-globals.h (struct target_globals): Define even if
36216         !SWITCHABLE_TARGET.
36217         * tree.c (prepare_target_option_node_for_pch,
36218         prepare_target_option_nodes_for_pch): New functions.
36219         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
36220         * config/i386/i386.c: Include target-globals.h.
36221         (ix86_set_current_function): Instead of doing target_reinit
36222         unconditionally, use save_target_globals_default_opts and
36223         restore_target_globals.
36225 2014-01-09  Richard Biener  <rguenther@suse.de>
36227         PR tree-optimization/59715
36228         * tree-cfg.h (split_critical_edges): Declare.
36229         * tree-cfg.c (split_critical_edges): Export.
36230         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
36232 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36234         * cfgexpand.c (expand_stack_vars): Optionally disable
36235         asan stack protection.
36236         (expand_used_vars): Likewise.
36237         (partition_stack_vars): Likewise.
36238         * asan.c (asan_emit_stack_protection): Optionally disable
36239         after return stack usage.
36240         (instrument_derefs): Optionally disable memory access instrumentation.
36241         (instrument_builtin_call): Likewise.
36242         (instrument_strlen_call): Likewise.
36243         (asan_protect_global): Optionally disable global variables protection.
36244         * doc/invoke.texi: Added doc for new options.
36245         * params.def: Added new options.
36246         * params.h: Likewise.
36248 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36250         PR rtl-optimization/59724
36251         * ifcvt.c (cond_exec_process_if_block): Don't call
36252         flow_find_head_matching_sequence with 0 longest_match.
36253         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
36254         non-active insns if !stop_after.
36255         (try_head_merge_bb): Revert 2014-01-07 changes.
36257 2014-01-08  Jeff Law  <law@redhat.com>
36259         * ree.c (get_sub_rtx): New function, extracted from...
36260         (merge_def_and_ext): Here.
36261         (combine_reaching_defs): Use get_sub_rtx.
36263 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
36265         * cgraph.h (varpool_variable_node): Do not choke on null node.
36267 2014-01-08  Catherine Moore  <clm@codesourcery.com>
36269         * config/mips/mips.md (simple_return): Attempt to use JRC
36270         for microMIPS.
36271         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
36273 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36275         PR rtl-optimization/59137
36276         * reorg.c (steal_delay_list_from_target): Call update_block for
36277         elided insns.
36278         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
36280 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36282         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
36283         two duplicate entries.
36285 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36287         Revert:
36288         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
36290         * config/mips/mips.c (mips_truncated_op_cost): New function.
36291         (mips_rtx_costs): Adjust test for BADDU.
36292         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
36294         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
36296         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
36297         (*baddu_si): ...this new pattern.
36299 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36301         PR ipa/59722
36302         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
36304 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36306         PR middle-end/57748
36307         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
36308         inner_reference_p.
36309         (expand_expr, expand_normal): Adjust.
36310         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
36311         inner_reference_p. Use inner_reference_p to expand inner references.
36312         (store_expr): Adjust.
36313         * cfgexpand.c (expand_call_stmt): Adjust.
36315 2014-01-08  Rong Xu  <xur@google.com>
36317         * gcov-io.c (gcov_var): Move from gcov-io.h.
36318         (gcov_position): Ditto.
36319         (gcov_is_error): Ditto.
36320         (gcov_rewrite): Ditto.
36321         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
36322         only part to libgcc/libgcov.h.
36324 2014-01-08  Marek Polacek  <polacek@redhat.com>
36326         PR middle-end/59669
36327         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
36329 2014-01-08  Marek Polacek  <polacek@redhat.com>
36331         PR sanitizer/59667
36332         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
36334 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36336         PR rtl-optimization/59649
36337         * stor-layout.c (get_mode_bounds): For BImode return
36338         0 and STORE_FLAG_VALUE.
36340 2014-01-08  Richard Biener  <rguenther@suse.de>
36342         PR middle-end/59630
36343         * gimple.h (is_gimple_builtin_call): Remove.
36344         (gimple_builtin_call_types_compatible_p): New.
36345         (gimple_call_builtin_p): New overload.
36346         * gimple.c (is_gimple_builtin_call): Remove.
36347         (validate_call): Rename to ...
36348         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
36349         check return types.
36350         (validate_type): New static function.
36351         (gimple_call_builtin_p): New overload and adjust.
36352         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
36353         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
36354         (gimple_fold_stmt_to_constant_1): Likewise.
36355         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
36357 2014-01-08  Richard Biener  <rguenther@suse.de>
36359         PR middle-end/59471
36360         * gimplify.c (gimplify_expr): Gimplify register-register type
36361         VIEW_CONVERT_EXPRs to separate stmts.
36363 2014-01-07  Jeff Law  <law@redhat.com>
36365         PR middle-end/53623
36366         * ree.c (combine_set_extension): Handle case where source
36367         and destination registers in an extension insn are different.
36368         (combine_reaching_defs): Allow source and destination registers
36369         in extension to be different under limited circumstances.
36370         (add_removable_extension): Remove restriction that the
36371         source and destination registers in the extension are the same.
36372         (find_and_remove_re): Emit a copy from the extension's
36373         destination to its source after the defining insn if
36374         the source and destination registers are different.
36376         PR middle-end/59285
36377         * ifcvt.c (merge_if_block): If we are merging a block with more than
36378         one successor with a block with no successors, remove any BARRIER
36379         after the second block.
36381 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
36383         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
36385 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
36387         PR target/59652
36388         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
36389         for 14-bit register offsets when INT14_OK_STRICT is false.
36391 2014-01-07  Roland Stigge  <stigge@antcom.de>
36392             Michael Meissner  <meissner@linux.vnet.ibm.com>
36394         PR 57386/target
36395         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
36396         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
36398 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36400         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
36401         -mcpu.
36403 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
36405         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
36406         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
36407         rtx is const0_rtx or not.
36409 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
36411         PR target/58115
36412         * target-globals.c (save_target_globals): Remove this_fn_optab
36413         handling.
36414         * toplev.c: Include optabs.h.
36415         (target_reinit): Temporarily restore the global options if another
36416         set of options are in force.
36418 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
36420         PR rtl-optimization/58668
36421         * cfgcleanup.c (flow_find_cross_jump): Don't count
36422         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
36423         to determine what is counted.
36424         (flow_find_head_matching_sequence): Use active_insn_p to determine
36425         what is counted.
36426         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
36427         counting change.
36428         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
36429         determine what is counted.
36431         PR tree-optimization/59643
36432         * tree-predcom.c (split_data_refs_to_components): If one dr is
36433         read and one write, determine_offset fails and the write isn't
36434         in the bad component, just put the read into the bad component.
36436 2014-01-07  Mike Stump  <mikestump@comcast.net>
36437             Jakub Jelinek  <jakub@redhat.com>
36439         PR pch/59436
36440         * tree-core.h (struct tree_optimization_option): Change optabs
36441         type from unsigned char * to void *.
36442         * optabs.c (init_tree_optimization_optabs): Adjust
36443         TREE_OPTIMIZATION_OPTABS initialization.
36445 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
36447         PR target/59644
36448         * config/i386/i386.h (struct machine_function): Add
36449         no_drap_save_restore field.
36450         * config/i386/i386.c (ix86_save_reg): Use
36451         !cfun->machine->no_drap_save_restore instead of
36452         crtl->stack_realign_needed.
36453         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
36454         this function clears frame_pointer_needed.  Set
36455         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
36456         and DRAP reg is needed.
36458 2014-01-06  Marek Polacek  <polacek@redhat.com>
36460         PR c/57773
36461         * doc/implement-c.texi: Mention that other integer types are
36462         permitted as bit-field types in strictly conforming mode.
36464 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
36466         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
36467         is newly allocated.
36469 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
36471         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
36473 2014-01-06  Martin Jambor  <mjambor@suse.cz>
36475         PR ipa/59008
36476         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
36477         to int.
36478         * ipa-prop.c (ipa_print_node_params): Fix indentation.
36480 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36482         PR debug/59350
36483         PR debug/59510
36484         * var-tracking.c (add_stores): Preserve the value of the source even if
36485         we don't record the store.
36487 2014-01-06  Terry Guo  <terry.guo@arm.com>
36489         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
36491 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
36493         PR bootstrap/59541
36494         * config/darwin.c (darwin_function_section): Adjust return values to
36495         correspond to optimisation changes made in r206070.
36497 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
36499         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
36500         from prefetch_block tune setting.
36501         (nocona_cost): Correct size of prefetch block to 64.
36503 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36505         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
36506         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
36507         used to save the static chain register in the computation of the offset
36508         from which the FP registers need to be restored.
36510 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
36512         PR tree-optimization/59519
36513         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
36514         ICE if get_current_def (current_new_name) is already non-NULL, as long
36515         as it is a phi result of some other phi in *new_exit_bb that has
36516         the same argument.
36518         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
36519         or vmovdqu* for misaligned_operand.
36520         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
36521         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
36522         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
36523         aligned_mem for AVX512F masked aligned load and store builtins and for
36524         non-temporal moves.
36526 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
36528         PR tree-optimization/59651
36529         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36530         Address range for negative step should be added by TYPE_SIZE_UNIT.
36532 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
36534         * config/m68k/m68k.c (handle_move_double): Handle pushes with
36535         overlapping registers also for registers other than the stack pointer.
36537 2014-01-03  Marek Polacek  <polacek@redhat.com>
36539         PR other/59661
36540         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
36541         __builtin_FILE.
36543 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
36545         PR target/59625
36546         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
36547         asm goto as jump.
36549         * config/i386/i386.md (MODE_SIZE): New mode attribute.
36550         (push splitter): Use <P:MODE_SIZE> instead of
36551         GET_MODE_SIZE (<P:MODE>mode).
36552         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
36553         (mov -1, reg peephole2): Likewise.
36554         * config/i386/sse.md (*mov<mode>_internal,
36555         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
36556         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
36557         *<code><mode>3, *andnot<mode>3<mask_name>,
36558         <mask_codefor><code><mode>3<mask_name>): Likewise.
36559         * config/i386/subst.md (mask_mode512bit_condition,
36560         sd_mask_mode512bit_condition): Likewise.
36562 2014-01-02  Xinliang David Li  <davidxl@google.com>
36564         PR tree-optimization/59303
36565         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
36566         (dump_predicates): Better output format.
36567         (pred_equal_p): New function.
36568         (is_neq_relop_p): Ditto.
36569         (is_neq_zero_form_p): Ditto.
36570         (pred_expr_equal_p): Ditto.
36571         (pred_neg_p): Ditto.
36572         (simplify_pred): Ditto.
36573         (simplify_preds_2): Ditto.
36574         (simplify_preds_3): Ditto.
36575         (simplify_preds_4): Ditto.
36576         (simplify_preds): Ditto.
36577         (push_pred): Ditto.
36578         (push_to_worklist): Ditto.
36579         (get_pred_info_from_cmp): Ditto.
36580         (is_degenerated_phi): Ditto.
36581         (normalize_one_pred_1): Ditto.
36582         (normalize_one_pred): Ditto.
36583         (normalize_one_pred_chain): Ditto.
36584         (normalize_preds): Ditto.
36585         (normalize_cond_1): Remove function.
36586         (normalize_cond): Ditto.
36587         (is_gcond_subset_of): Ditto.
36588         (is_subset_of_any): Ditto.
36589         (is_or_set_subset_of): Ditto.
36590         (is_and_set_subset_of): Ditto.
36591         (is_norm_cond_subset_of): Ditto.
36592         (pred_chain_length_cmp): Ditto.
36593         (convert_control_dep_chain_into_preds): Type change.
36594         (find_predicates): Ditto.
36595         (find_def_preds): Ditto.
36596         (destroy_predicates_vecs): Ditto.
36597         (find_matching_predicates_in_rest_chains): Ditto.
36598         (use_pred_not_overlap_with_undef_path_pred): Ditto.
36599         (is_pred_expr_subset): Ditto.
36600         (is_pred_chain_subset_of): Ditto.
36601         (is_included_in): Ditto.
36602         (is_superset_of): Ditto.
36604 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36606         Update copyright years.
36608 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36610         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
36611         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
36612         config/arc/arc.md, config/arc/arc.opt,
36613         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
36614         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
36615         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
36616         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
36617         config/linux-protos.h, config/linux.c, config/winnt-c.c,
36618         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
36619         vtable-verify.c, vtable-verify.h: Use the standard form for the
36620         copyright notice.
36622 2014-01-02  Tobias Burnus  <burnus@net-b.de>
36624         * gcc.c (process_command): Update copyright notice dates.
36625         * gcov-dump.c: Ditto.
36626         * gcov.c: Ditto.
36627         * doc/cpp.texi: Bump @copying's copyright year.
36628         * doc/cppinternals.texi: Ditto.
36629         * doc/gcc.texi: Ditto.
36630         * doc/gccint.texi: Ditto.
36631         * doc/gcov.texi: Ditto.
36632         * doc/install.texi: Ditto.
36633         * doc/invoke.texi: Ditto.
36635 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36637         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36639 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
36641         * config/i386/sse.md (*mov<mode>_internal): Guard
36642         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36644         PR rtl-optimization/59647
36645         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36646         new_rtx into UNSIGNED_FLOAT rtxes.
36648 Copyright (C) 2014 Free Software Foundation, Inc.
36650 Copying and distribution of this file, with or without modification,
36651 are permitted in any medium without royalty provided the copyright
36652 notice and this notice are preserved.