Don't inline GCC memory builtins if ASan is enabled.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-10-28  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2
3         * asan.h (asan_intercepted_p): New function.
4         * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
5         hash value construction.  Call iterative_hash_expr instead of explicit
6         hash building.
7         (asan_mem_ref_hasher::equal): Change condition.
8         (has_mem_ref_been_instrumented): Likewise.
9         (update_mem_ref_hash_table): Likewise.
10         (maybe_update_mem_ref_hash_table): New function.
11         (instrument_strlen_call): Removed.
12         (get_mem_refs_of_builtin_call): Handle new parameter.
13         (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
14         of instrument_mem_region_access if intercepted_p is true.
15         (instrument_mem_region_access): Instrument only base with len instead of
16         base and end with 1.
17         (build_check_stmt): Remove start_instrumented and end_instrumented
18         parameters.
19         (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
20         ASAN_CHECK_END_INSTRUMENTED.  Change ASAN_CHECK_LAST.
21         (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
22         * builtins.c (expand_builtin): Include asan.h.  Don't expand string/memory
23         builtin functions that have interceptors if ASan is enabled.
24
25 2014-10-28  Richard Biener  <rguenther@suse.de>
26
27         PR middle-end/63665
28         * fold-const.c (fold_comparison): Properly guard simplifying
29         against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
30
31 2014-10-28  Alan Lawrence  <alan.lawrence@arm.com>
32
33         * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
34         * fold-const.c (const_binop): Likewise.
35         * cfgexpand.c (expand_debug_expr): Likewise.
36         * tree-inline.c (estimate_operator_cost): Likewise.
37         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
38         * optabs.c (optab_for_tree_code): Likewise.
39         (expand_vec_shift_expr): Likewise, update comment.
40         * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
41         * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
42         * optabs.def: Remove vec_shl_optab.
43         * doc/md.texi: Remove references to vec_shr_m.
44
45 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
46
47         * asan.c (report_error_func): Add noabort path.
48         (check_func): Ditto.  Formatting.
49         (asan_expand_check_ifn): Handle noabort path.
50         * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
51         to default value.
52         * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
53         * opts.c (finish_options): Reword comment.
54         * sanitizer.def: Add noabort ASan builtins.
55
56 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
57
58         * asan.c (set_asan_shadow_offset): New function.
59         (asan_shadow_offset): Likewise.
60         (asan_emit_stack_protection): Call asan_shadow_offset.
61         (build_shadow_mem_access): Likewise.
62         * asan.h (set_asan_shadow_offset): Declare.
63         * common.opt (fasan-shadow-offset): New option.
64         (frandom-seed): Fixed parameter name.
65         * doc/invoke.texi (fasan-shadow-offset): Describe new option.
66         (frandom-seed): Fixed parameter name.
67         * opts-global.c (handle_common_deferred_options): Handle
68         -fasan-shadow-offset.
69         * opts.c (common_handle_option): Likewise.
70
71 2014-10-27  Jiong Wang <jiong.wang@arm.com>
72
73         PR target/63442
74         * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
75
76 2014-10-27  DJ Delorie  <dj@redhat.com>
77
78         * tree.c (build_common_tree_nodes): Don't even store the
79         __int128 types if they're not supported.
80
81 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
82
83         * config/i386/i386.c (ix86_loop_memcount): Delete.
84         (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
85
86 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
87
88         * config/i386/i386.c (find_constant_1): Delete.
89         (find_constant): Use FOR_EACH_SUBRTX.
90
91 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
92
93         * config/i386/i386.c (extended_reg_mentioned_1): Delete.
94         (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
95
96 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
97
98         * config/i386/i386.c: Include rtl-iter.h
99         (ix86_check_avx256_register): Take a const_rtx and return a bool.
100         (ix86_check_avx256_stores): Update call accordingly.
101         (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
102         (ix86_avx_u128_mode_needed): Likewise.  Use FOR_EACH_SUBRTX.
103
104 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
105
106         * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
107         Take an rtx and return a bool.
108         * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
109         Use FOR_EACH_SUBRTX_VAR.
110         * config/alpha/predicates.md (some_small_symbolic_operand): Update
111         accordingly.
112
113 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
114
115         * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
116         a bool.
117         * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
118         (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX.  Return a bool.
119
120 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
121
122         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
123         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
124
125 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
126
127         * config/alpha/alpha.c: Include rtl-iter.h.
128         (split_small_symbolic_operand_1): Delete.
129         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
130
131 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
132
133         * config/s390/s390.c: Include rtl-iter.h.
134         (check_dpu): Delete.
135         (s390_loop_unroll_adjust): Only iterate over patterns.
136         Use FOR_EACH_SUBRTX.
137
138 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
139
140         * config/spu/spu.c: Include rtl-iter.h
141         (ea_symbol_ref): Replace with...
142         (ea_symbol_ref_p): ...this new function.
143         (spu_legitimate_address_p): Update call accordingly.
144         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
145
146 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
147             Tom Tromey  <tromey@redhat.com>
148
149         * aclocal.m4, configure: Rebuild.
150         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
151         * configure.ac: Use GCC_ENABLE_PLUGINS.
152         * stor-layout.c (finish_bitfield_layout): Now public.  Change
153         argument type to 'tree'.
154         (finish_record_layout): Update.
155         * stor-layout.h (finish_bitfield_layout): Declare.
156
157 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
158
159         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
160         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
161         Restore, enable for bigendian, update to use __builtin..._scal...
162
163 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
164
165         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
166         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
167         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
168         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
169
170         * config/aarch64/aarch64-simd.md
171         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
172         (reduc_<maxmin_uns>_internal<mode>): ...this.
173         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
174         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
175
176         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
177         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
178         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
179
180         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
181         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
182         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
183         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
184         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
185         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
186         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
187         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
188
189 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
190
191         * config/aarch64/aarch64-simd-builtins.def
192         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
193         Remove.
194         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
195
196         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
197         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
198
199         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
200         (aarch64_reduc_plus_internal<mode>): ...this.
201
202         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
203         (aarch64_reduc_plus_internalv2si): ...this.
204
205         (reduc_splus_<mode>/V2F): Rename to...
206         (aarch64_reduc_plus_internal<mode>): ...this.
207
208         * config/aarch64/iterators.md
209         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
210         (UNSPEC_ADDV): New.
211         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
212
213         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
214         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
215         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
216         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
217         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
218
219 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
220
221         PR tree-optimization/61114
222         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
223         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
224
225         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
226         back to old reduc_... + BIT_FIELD_REF only if not.
227
228         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
229         return the reduce-to-scalar (reduc_..._scal) optab.
230         (scalar_reduc_to_vector): New.
231
232         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
233         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
234         New.
235
236         * optabs.h (scalar_reduc_to_vector): Declare.
237
238         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
239         to either scalar or vector.
240
241 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
242
243         PR tree-optimization/61114
244         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
245         extract_bit_field around optab result.
246
247         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
248         scalar not vector.
249
250         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
251         for REDUC_{MIN,MAX,PLUS}_EXPR.
252
253         * tree-vect-loop.c (vect_analyze_loop): Update comment.
254         (vect_create_epilog_for_reduction): For direct vector reduction, use
255         result of tree code directly without extract_bit_field.
256
257         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
258         comment.
259
260 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
261
262         * basic-block.h: Remove all includes.
263         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
264         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
265         * Makefile.in (GTFILES): Add cfg.h to list.
266         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
267         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
268         * genconditions.c (write_header): Add predict.h and basic-block.h to
269         lits of includes.
270         * genemit.c (main): Ditto.
271         * genpreds.c (write_insn_preds_c): Ditto.
272         * genrecog.c (write_header): Ditto.
273         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
274         to list of includes.
275         * alias.c: Adjust include files.
276         * asan.c: Ditto.
277         * auto-inc-dec.c: Ditto.
278         * auto-profile.c: Ditto.
279         * bb-reorder.c: Ditto.
280         * bt-load.c: Ditto.
281         * builtins.c: Ditto.
282         * caller-save.c: Ditto.
283         * calls.c: Ditto.
284         * cfg.c: Ditto.
285         * cfganal.c: Ditto.
286         * cfgbuild.c: Ditto.
287         * cfgcleanup.c: Ditto.
288         * cfgexpand.c: Ditto.
289         * cfghooks.c: Ditto.
290         * cfgloop.c: Ditto.
291         * cfgloopanal.c: Ditto.
292         * cfgloopmanip.c: Ditto.
293         * cfgrtl.c: Ditto.
294         * cgraphbuild.c: Ditto.
295         * cgraphclones.c: Ditto.
296         * cgraphunit.c: Ditto.
297         * combine-stack-adj.c: Ditto.
298         * combine.c: Ditto.
299         * compare-elim.c: Ditto.
300         * coverage.c: Ditto.
301         * cprop.c: Ditto.
302         * cse.c: Ditto.
303         * cselib.c: Ditto.
304         * data-streamer-in.c: Ditto.
305         * data-streamer-out.c: Ditto.
306         * data-streamer.c: Ditto.
307         * dce.c: Ditto.
308         * ddg.c: Ditto.
309         * ddg.h: Ditto.
310         * df-core.c: Ditto.
311         * df-problems.c: Ditto.
312         * df-scan.c: Ditto.
313         * df.h: Ditto.
314         * dojump.c: Ditto.
315         * dominance.c: Ditto.
316         * domwalk.c: Ditto.
317         * dse.c: Ditto.
318         * dwarf2cfi.c: Ditto.
319         * emit-rtl.c: Ditto.
320         * et-forest.c: Ditto.
321         * except.c: Ditto.
322         * expmed.c: Ditto.
323         * expr.c: Ditto.
324         * final.c: Ditto.
325         * fold-const.c: Ditto.
326         * function.c: Ditto.
327         * fwprop.c: Ditto.
328         * gcc-plugin.h: Ditto.
329         * gcse.c: Ditto.
330         * generic-match-head.c: Ditto.
331         * ggc-page.c: Ditto.
332         * gimple-builder.c: Ditto.
333         * gimple-expr.c: Ditto.
334         * gimple-fold.c: Ditto.
335         * gimple-iterator.c: Ditto.
336         * gimple-low.c: Ditto.
337         * gimple-match-head.c: Ditto.
338         * gimple-pretty-print.c: Ditto.
339         * gimple-ssa-isolate-paths.c: Ditto.
340         * gimple-ssa-strength-reduction.c: Ditto.
341         * gimple-streamer-in.c: Ditto.
342         * gimple-streamer-out.c: Ditto.
343         * gimple-streamer.h: Ditto.
344         * gimple-walk.c: Ditto.
345         * gimple.c: Ditto.
346         * gimplify-me.c: Ditto.
347         * gimplify.c: Ditto.
348         * graph.c: Ditto.
349         * graphite-blocking.c: Ditto.
350         * graphite-clast-to-gimple.c: Ditto.
351         * graphite-dependences.c: Ditto.
352         * graphite-interchange.c: Ditto.
353         * graphite-isl-ast-to-gimple.c: Ditto.
354         * graphite-optimize-isl.c: Ditto.
355         * graphite-poly.c: Ditto.
356         * graphite-scop-detection.c: Ditto.
357         * graphite-sese-to-poly.c: Ditto.
358         * graphite.c: Ditto.
359         * haifa-sched.c: Ditto.
360         * hw-doloop.c: Ditto.
361         * ifcvt.c: Ditto.
362         * init-regs.c: Ditto.
363         * internal-fn.c: Ditto.
364         * ipa-cp.c: Ditto.
365         * ipa-devirt.c: Ditto.
366         * ipa-icf-gimple.c: Ditto.
367         * ipa-icf.c: Ditto.
368         * ipa-inline-analysis.c: Ditto.
369         * ipa-inline.c: Ditto.
370         * ipa-polymorphic-call.c: Ditto.
371         * ipa-profile.c: Ditto.
372         * ipa-prop.c: Ditto.
373         * ipa-pure-const.c: Ditto.
374         * ipa-reference.c: Ditto.
375         * ipa-split.c: Ditto.
376         * ipa-utils.c: Ditto.
377         * ipa.c: Ditto.
378         * ira-build.c: Ditto.
379         * ira-color.c: Ditto.
380         * ira-conflicts.c: Ditto.
381         * ira-costs.c: Ditto.
382         * ira-emit.c: Ditto.
383         * ira-lives.c: Ditto.
384         * ira.c: Ditto.
385         * jump.c: Ditto.
386         * lcm.c: Ditto.
387         * loop-doloop.c: Ditto.
388         * loop-init.c: Ditto.
389         * loop-invariant.c: Ditto.
390         * loop-iv.c: Ditto.
391         * loop-unroll.c: Ditto.
392         * lower-subreg.c: Ditto.
393         * lra-assigns.c: Ditto.
394         * lra-coalesce.c: Ditto.
395         * lra-constraints.c: Ditto.
396         * lra-eliminations.c: Ditto.
397         * lra-lives.c: Ditto.
398         * lra-spills.c: Ditto.
399         * lra.c: Ditto.
400         * lto-cgraph.c: Ditto.
401         * lto-compress.c: Ditto.
402         * lto-opts.c: Ditto.
403         * lto-section-in.c: Ditto.
404         * lto-section-out.c: Ditto.
405         * lto-streamer-in.c: Ditto.
406         * lto-streamer-out.c: Ditto.
407         * lto-streamer.c: Ditto.
408         * mcf.c: Ditto.
409         * mode-switching.c: Ditto.
410         * modulo-sched.c: Ditto.
411         * omp-low.c: Ditto.
412         * optabs.c: Ditto.
413         * opts-global.c: Ditto.
414         * passes.c: Ditto.
415         * postreload-gcse.c: Ditto.
416         * postreload.c: Ditto.
417         * predict.c: Ditto.
418         * print-rtl.c: Ditto.
419         * profile.c: Ditto.
420         * recog.c: Ditto.
421         * ree.c: Ditto.
422         * reg-stack.c: Ditto.
423         * regcprop.c: Ditto.
424         * regcprop.h: Ditto.
425         * reginfo.c: Ditto.
426         * regrename.c: Ditto.
427         * regstat.c: Ditto.
428         * reload.c: Ditto.
429         * reload1.c: Ditto.
430         * reorg.c: Ditto.
431         * resource.c: Ditto.
432         * rtlanal.c: Ditto.
433         * sched-deps.c: Ditto.
434         * sched-ebb.c: Ditto.
435         * sched-int.h: Ditto.
436         * sched-rgn.c: Ditto.
437         * sched-vis.c: Ditto.
438         * sel-sched-dump.c: Ditto.
439         * sel-sched-ir.c: Ditto.
440         * sel-sched-ir.h: Ditto.
441         * sel-sched.c: Ditto.
442         * sese.c: Ditto.
443         * shrink-wrap.c: Ditto.
444         * stack-ptr-mod.c: Ditto.
445         * stmt.c: Ditto.
446         * store-motion.c: Ditto.
447         * symtab.c: Ditto.
448         * toplev.c: Ditto.
449         * tracer.c: Ditto.
450         * trans-mem.c: Ditto.
451         * tree-affine.c: Ditto.
452         * tree-call-cdce.c: Ditto.
453         * tree-cfg.c: Ditto.
454         * tree-cfgcleanup.c: Ditto.
455         * tree-chrec.c: Ditto.
456         * tree-complex.c: Ditto.
457         * tree-data-ref.c: Ditto.
458         * tree-dfa.c: Ditto.
459         * tree-eh.c: Ditto.
460         * tree-emutls.c: Ditto.
461         * tree-if-conv.c: Ditto.
462         * tree-inline.c: Ditto.
463         * tree-into-ssa.c: Ditto.
464         * tree-loop-distribution.c: Ditto.
465         * tree-nested.c: Ditto.
466         * tree-nrv.c: Ditto.
467         * tree-object-size.c: Ditto.
468         * tree-outof-ssa.c: Ditto.
469         * tree-parloops.c: Ditto.
470         * tree-phinodes.c: Ditto.
471         * tree-predcom.c: Ditto.
472         * tree-pretty-print.c: Ditto.
473         * tree-profile.c: Ditto.
474         * tree-scalar-evolution.c: Ditto.
475         * tree-sra.c: Ditto.
476         * tree-ssa-address.c: Ditto.
477         * tree-ssa-alias.c: Ditto.
478         * tree-ssa-ccp.c: Ditto.
479         * tree-ssa-coalesce.c: Ditto.
480         * tree-ssa-copy.c: Ditto.
481         * tree-ssa-copyrename.c: Ditto.
482         * tree-ssa-dce.c: Ditto.
483         * tree-ssa-dom.c: Ditto.
484         * tree-ssa-dse.c: Ditto.
485         * tree-ssa-forwprop.c: Ditto.
486         * tree-ssa-ifcombine.c: Ditto.
487         * tree-ssa-live.c: Ditto.
488         * tree-ssa-loop-ch.c: Ditto.
489         * tree-ssa-loop-im.c: Ditto.
490         * tree-ssa-loop-ivcanon.c: Ditto.
491         * tree-ssa-loop-ivopts.c: Ditto.
492         * tree-ssa-loop-manip.c: Ditto.
493         * tree-ssa-loop-niter.c: Ditto.
494         * tree-ssa-loop-prefetch.c: Ditto.
495         * tree-ssa-loop-unswitch.c: Ditto.
496         * tree-ssa-loop.c: Ditto.
497         * tree-ssa-math-opts.c: Ditto.
498         * tree-ssa-operands.c: Ditto.
499         * tree-ssa-phiopt.c: Ditto.
500         * tree-ssa-phiprop.c: Ditto.
501         * tree-ssa-pre.c: Ditto.
502         * tree-ssa-propagate.c: Ditto.
503         * tree-ssa-reassoc.c: Ditto.
504         * tree-ssa-sccvn.c: Ditto.
505         * tree-ssa-sink.c: Ditto.
506         * tree-ssa-strlen.c: Ditto.
507         * tree-ssa-structalias.c: Ditto.
508         * tree-ssa-tail-merge.c: Ditto.
509         * tree-ssa-ter.c: Ditto.
510         * tree-ssa-threadedge.c: Ditto.
511         * tree-ssa-threadupdate.c: Ditto.
512         * tree-ssa-uncprop.c: Ditto.
513         * tree-ssa-uninit.c: Ditto.
514         * tree-ssa.c: Ditto.
515         * tree-ssanames.c: Ditto.
516         * tree-stdarg.c: Ditto.
517         * tree-streamer-in.c: Ditto.
518         * tree-streamer-out.c: Ditto.
519         * tree-streamer.c: Ditto.
520         * tree-switch-conversion.c: Ditto.
521         * tree-tailcall.c: Ditto.
522         * tree-vect-data-refs.c: Ditto.
523         * tree-vect-generic.c: Ditto.
524         * tree-vect-loop-manip.c: Ditto.
525         * tree-vect-loop.c: Ditto.
526         * tree-vect-patterns.c: Ditto.
527         * tree-vect-slp.c: Ditto.
528         * tree-vect-stmts.c: Ditto.
529         * tree-vectorizer.c: Ditto.
530         * tree-vrp.c: Ditto.
531         * tree.c: Ditto.
532         * tsan.c: Ditto.
533         * ubsan.c: Ditto.
534         * valtrack.c: Ditto.
535         * valtrack.h: Ditto.
536         * value-prof.c: Ditto.
537         * var-tracking.c: Ditto.
538         * varasm.c: Ditto.
539         * varpool.c: Ditto.
540         * vtable-verify.c: Ditto.
541         * web.c: Ditto.
542         * config/aarch64/aarch64-builtins.c: Ditto.
543         * config/aarch64/aarch64.c: Ditto.
544         * config/alpha/alpha.c: Ditto.
545         * config/arc/arc.c: Ditto.
546         * config/arm/arm.c: Ditto.
547         * config/avr/avr.c: Ditto.
548         * config/bfin/bfin.c: Ditto.
549         * config/c6x/c6x.c: Ditto.
550         * config/cr16/cr16.c: Ditto.
551         * config/cris/cris.c: Ditto.
552         * config/darwin-c.c: Ditto.
553         * config/darwin.c: Ditto.
554         * config/epiphany/epiphany.c: Ditto.
555         * config/epiphany/mode-switch-use.c: Ditto.
556         * config/epiphany/resolve-sw-modes.c: Ditto.
557         * config/fr30/fr30.c: Ditto.
558         * config/frv/frv.c: Ditto.
559         * config/h8300/h8300.c: Ditto.
560         * config/i386/i386.c: Ditto.
561         * config/i386/winnt.c: Ditto.
562         * config/ia64/ia64.c: Ditto.
563         * config/iq2000/iq2000.c: Ditto.
564         * config/lm32/lm32.c: Ditto.
565         * config/m32c/m32c.c: Ditto.
566         * config/m32r/m32r.c: Ditto.
567         * config/m68k/m68k.c: Ditto.
568         * config/mcore/mcore.c: Ditto.
569         * config/mep/mep.c: Ditto.
570         * config/microblaze/microblaze.c: Ditto.
571         * config/mips/mips.c: Ditto.
572         * config/mmix/mmix.c: Ditto.
573         * config/mn10300/mn10300.c: Ditto.
574         * config/moxie/moxie.c: Ditto.
575         * config/msp430/msp430.c: Ditto.
576         * config/nds32/nds32-cost.c: Ditto.
577         * config/nds32/nds32-fp-as-gp.c: Ditto.
578         * config/nds32/nds32-intrinsic.c: Ditto.
579         * config/nds32/nds32-isr.c: Ditto.
580         * config/nds32/nds32-md-auxiliary.c: Ditto.
581         * config/nds32/nds32-memory-manipulation.c: Ditto.
582         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
583         * config/nds32/nds32-predicates.c: Ditto.
584         * config/nds32/nds32.c: Ditto.
585         * config/nios2/nios2.c: Ditto.
586         * config/pa/pa.c: Ditto.
587         * config/pdp11/pdp11.c: Ditto.
588         * config/rl78/rl78.c: Ditto.
589         * config/rs6000/rs6000.c: Ditto.
590         * config/rx/rx.c: Ditto.
591         * config/s390/s390.c: Ditto.
592         * config/sh/sh-mem.cc: Ditto.
593         * config/sh/sh.c: Ditto.
594         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
595         * config/sh/sh_treg_combine.cc: Ditto.
596         * config/sparc/sparc.c: Ditto.
597         * config/spu/spu.c: Ditto.
598         * config/stormy16/stormy16.c: Ditto.
599         * config/tilegx/tilegx.c: Ditto.
600         * config/tilepro/tilepro.c: Ditto.
601         * config/v850/v850.c: Ditto.
602         * config/vax/vax.c: Ditto.
603         * config/xtensa/xtensa.c: Ditto.
604
605 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
606
607         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
608         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
609         Remove using preprocessor directives.
610
611 2014-10-27  Richard Biener  <rguenther@suse.de>
612
613         * match.pd (0 % X): Properly use the iterator iterating over
614         all modulo operators.
615         (X % 1): Likewise.
616
617 2014-10-27  Richard Biener  <rguenther@suse.de>
618
619         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
620         (lattice): New global.
621         (fwprop_ssa_val): New function.
622         (fold_all_stmts): Likewise.
623         (pass_forwprop::execute): Finally fold all stmts.
624
625 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
626
627         PR c++/53061
628         * doc/invoke.texi (fmessage-length): Update text to match reality.
629
630 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
631
632         * config/microblaze/microblaze.c: Include rtl-iter.h.
633         (microblaze_tls_referenced_p_1): Delete.
634         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
635
636 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
637
638         * config/mips/mips.c (mips_at_reg_p): Delete.
639         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
640
641 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
642
643         * config/mips/mips.c (mips_record_lo_sum): Replace with...
644         (mips_record_lo_sums): ...this new function.
645         (mips_reorg_process_insns): Update accordingly.
646
647 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
648
649         * config/mips/mips.c (mips_sim_insn): Update comment.
650         (mips_sim_wait_regs_2): Delete.
651         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
652
653 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
654
655         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
656         and return a bool.  Iterate over all subrtxes here.
657         (r10k_needs_protection_p): Update accordingly.
658
659 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
660
661         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
662         rather than an rtx pointer.  Change type of insn from "void *"
663         to its real type.  Return bool rather than int.  Iterate over
664         all subrtxes here.
665         (r10k_needs_protection_p_store): Update accordingly.
666         (r10k_needs_protection_p): Likewise.
667
668 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
669
670         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
671         (mips16_rewrite_pool_refs): Take the insn and constant pool as
672         parameters.  Iterate over the instruction's pattern and return void.
673         (mips16_lay_out_constants): Update accordingly.
674
675 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
676
677         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
678         (mips_refers_to_kernel_reg_p): ...this new function.
679         (mips_expand_prologue): Update accordingly.
680
681 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
682
683         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
684         as a parameter instead of the containing MEM.  Iterate over all
685         subrtxes.  Don't return a value.
686         (mips_rewrite_small_data): Update call accordingly.
687
688 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
689
690         * config/mips/mips.c: Include rtl-iter.h.
691         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
692         Take the context as a parameter instead of the containing MEM.
693         Iterate over all subrtxes.
694         (mips_small_data_pattern_p): Update call accordingly.
695
696 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
697
698         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
699         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
700
701 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
702
703         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
704         return a bool.  Replace "void *" with specific type.  Iterate
705         over all subrtxes.
706         (mep_store_data_bypass_1): Update calls accordingly.
707
708 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
709
710         * config/mep/mep.c: Include rtl-iter.h.
711         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
712         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
713
714 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
715
716         * config/xtensa/xtensa.c: Include rtl-iter.h.
717         (xtensa_tls_referenced_p_1): Delete.
718         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
719
720 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
721
722         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
723         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
724
725 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
726
727         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
728         rtx as argument and return the number of changes.
729         * config/sh/sh.c: Include rtl-iter.h.
730         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
731         over all subrtxes.  Return the number of changes made.
732         * config/sh/sh.md: Update caller accordingly.
733
734 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
735
736         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
737         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
738
739 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
740
741         * config/m68k/m68k.c: Include rtl-iter.h.
742         (m68k_final_prescan_insn_1): Delete.
743         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
744
745 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
746
747         PR tree-optimization/63641
748         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
749         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
750
751 2014-10-25  Alan Modra  <amodra@gmail.com>
752
753         PR rtl-optimization/63615
754         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
755         decomposing PLUS or MINUS if operands are not placed adjacent
756         in the "ops" array.
757
758 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
759
760         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
761         not allow e500 double in registers not satisyfing
762         SPE_SIMD_REGNO_P.
763
764 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
765
766         * dwarf2out.c (declare_in_namespace): Only emit external
767         declarations in the local scope once.
768
769 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
770
771         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
772
773 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
774
775         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
776         update uses to use new macro arguments.
777         (__LD3_LANE_FUNC): Likewise.
778         (__LD4_LANE_FUNC): Likewise.
779
780 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
781
782         * config/aarch64/aarch64-builtins.c
783         (aarch64_types_loadstruct_lane_qualifiers): Define.
784         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
785         ld4_lane): New builtins.
786         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
787         New pattern.
788         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
789         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
790         (aarch64_ld2_lane<mode>): New expand.
791         (aarch64_ld3_lane<mode>): Likewise.
792         (aarch64_ld4_lane<mode>): Likewise.
793         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
794         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
795
796 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
797
798         * avr-protos.h (avr_out_sign_extend): New.
799         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
800         (avr_out_sign_extend): New function.
801         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
802         (extendhisi2, extendpsisi2): Use it.
803         (adjust_len) [sext]: New.
804
805 2014-10-24  Martin Liska  <mliska@suse.cz>
806
807         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
808         added.
809
810 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
811
812         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
813         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
814         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
815         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
816
817 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
818
819         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
820         do while (0).
821         * config/aarch64/aarch64.c (is_mem_p): Delete.
822         (is_memory_op): Rename to...
823         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
824         (dep_between_memop_and_curr): Assert that the input is a SET.
825         (aarch64_madd_needs_nop): Add comment.  Do not call
826         dep_between_memop_and_curr on NULL body.
827         (aarch64_final_prescan_insn): Add comment.
828         Include rtl-iter.h.
829
830 2014-10-24  Richard Biener  <rguenther@suse.de>
831
832         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
833         to genmatch BUILD_LIBS instead.
834
835 2014-10-24  Richard Biener  <rguenther@suse.de>
836
837         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
838         and build_call_expr_loc.
839         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
840         non_lvalue_loc to build it for GENERIC.
841         (decision_tree::gen_generic): Add location argument to
842         generic_simplify prototype.
843         (capture_info): New class.
844         (capture_info::capture_info): New constructor.
845         (capture_info::walk_match): New method.
846         (capture_info::walk_result): New method.
847         (capture_info::walk_c_expr): New method.
848         (dt_simplify::gen): Handle preserving side-effects for
849         GENERIC code generation.
850         (decision_tree::gen_generic): Do not reject operands
851         with TREE_SIDE_EFFECTS.
852         * generic-match.h: New file.
853         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
854         * match.pd: Add some constant folding patterns from fold-const.c.
855         * fold-const.c: Include generic-match.h.
856         (fold_unary_loc): Dispatch to generic_simplify.
857         (fold_ternary_loc): Likewise.
858         (fold_binary_loc): Likewise.  Remove patterns now implemented
859         by generic_simplify.
860         * gimple-fold.c (replace_stmt_with_simplification): New function.
861         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
862         (no_follow_ssa_edges): New function.
863         (fold_stmt): New overload with valueization hook.  Use
864         no_follow_ssa_edges for the overload without hook.
865         (fold_stmt_inplace): Likewise.
866         * gimple-fold.h (no_follow_ssa_edges): Declare.
867
868 2014-10-24  Felix Yang  <felix.yang@huawei.com>
869         Jiji Jiang  <jiangjiji@huawei.com>
870
871         PR target/63173
872         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
873         (__LD3R_FUNC): Ditto.
874         (__LD4R_FUNC): Ditto.
875         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
876          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
877          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
878          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
879          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
880          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
881         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
882          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
883          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
884          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
885          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
886          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
887         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
888          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
889          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
890          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
891          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
892          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
893         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
894         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
895         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
896         builtins.
897         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
898         (aarch64_simd_ld3r<mode>): Likewise.
899         (aarch64_simd_ld4r<mode>): Likewise.
900         (aarch64_ld2r<mode>): New expand.
901         (aarch64_ld3r<mode>): Likewise.
902         (aarch64_ld4r<mode>): Likewise.
903
904 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
905
906         * rtlanal.c (get_base_term): Handle SCRATCH.
907
908 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
909
910         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
911         register pressure.
912
913 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
914
915         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
916         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
917         (max_issue, choose_ready, sched_init): Update.
918
919 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
920
921         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
922         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
923         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
924         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
925         (print_rank_for_schedule_stats): Print out elements of ready list that
926         ended up on their respective places due to each of the sorting
927         heuristics.
928         (ready_sort): Update.
929         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
930         (schedule_block): Update.
931
932 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
933
934         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
935         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
936         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
937         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
938         (model_start_schedule): Update.
939         (sched_pressure_start_bb): New static function.  Calculate
940         sched_class_regs_num.
941         (schedule_block): Use it.
942         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
943
944 2014-10-24  Richard Biener  <rguenther@suse.de>
945
946         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
947         host library and make sure to pull in the required libintl
948         and libiconv dependencies.
949
950 2014-10-24  Richard Biener  <rguenther@suse.de>
951
952         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
953
954 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
955
956         PR bootstrap/63632
957         * collect2.c (main): Filter out -fno-lto.
958
959 2014-10-24  Martin Liska  <mliska@suse.cz>
960
961         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
962         division by zero in dumps.
963         (sem_item_optimizer::merge_classes): Ditto.
964
965 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
966
967         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
968
969 2014-10-23  Ian Lance Taylor  <iant@google.com>
970
971         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
972
973 2014-10-23  Ian Lance Taylor  <iant@google.com>
974
975         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
976
977 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
978
979         PR debug/63623
980         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
981         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
982         instead of only handling autoinc in dest if it is a MEM.
983         (vt_stack_adjustments): Fix up formatting.
984
985 2014-10-23  DJ Delorie  <dj@redhat.com>
986
987         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
988         independend of -mlarge.
989         * config/msp430/constraints.md (Ys): Update comment.
990
991 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
992
993         PR target/63534
994         PR target/63618
995         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
996         while it is pseudo.
997         * dse.c (deletable_insn_p): Likewise.
998
999 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
1000
1001         * config/avr/avr.c: Fix GNU coding rules and typos.
1002         * config/avr/avr.h: Dito.
1003         * config/avr/avr-c.c: Dito.
1004         * config/avr/avr.md: Dito.
1005
1006 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1007
1008         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
1009         New.
1010         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
1011         iterator.
1012         (define_expand "abs<mode>2"): Ditto.
1013
1014 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1015
1016         * tree-core.h (tree_var_decl): Extend `function_code' field
1017         by one bit, move `regdecl_flag' field to ...
1018         (tree_decl_with_vis): Here.
1019         * tree.h (DECL_STATIC_CHAIN): Update struct name.
1020
1021 2014-10-23  Richard Biener  <rguenther@suse.de>
1022
1023         * Makefile.in (BUILD_CPPLIB): Add.
1024         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
1025         Drop LIBIBERTY.
1026
1027 2014-10-23  Richard Biener  <rguenther@suse.de>
1028
1029         * fold-const.c (fold_binary_loc): Preserve side-effects of
1030         X - X when simplifying to 0.
1031         * stor-layout.c (finish_bitfield_representative): Strip
1032         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
1033
1034 2014-10-22  Richard Biener  <rguenther@suse.de>
1035             Tobias Burnus <burnus@net-b.de>
1036
1037         PR lto/63603
1038         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
1039
1040 2014-10-22  Dehao Chen  <dehao@google.com>
1041
1042         * auto-profile.c: Change order of header files.
1043
1044 2014-10-22  Guozhi Wei  <carrot@google.com>
1045
1046         PR tree-optimization/63530
1047         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
1048         pointer alignment according to DR_MISALIGNMENT.
1049
1050 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
1051
1052         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
1053
1054 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
1055
1056         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
1057         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
1058         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
1059         * dominance.h: New.  Add prototypes for dominance.c.
1060         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
1061         * cfghooks.h: (struct profile_record) Relocate here.
1062         Relocate 2 prototypes from basic-block.h.
1063         * basic-block.h: Move prototypes and struct to new header files.
1064         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
1065         * rtl.h: Move a few prototypes to new header files.
1066         * cfgcleanup.c (merge_memattrs): Make static.
1067         * genopinit.c (main): Add predict.h to list of includes.
1068         * predict.h: Update prototype list to match predict.c.
1069         * predict.c (maybe_hot_count_p): Export.
1070         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
1071         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
1072         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
1073         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
1074         * profile.h: Adjust prototypes.
1075         * ifcvt.h: New.  Relocate struct ce_if_block here.
1076         * ifcvt.c: Include ifcvt.h.
1077         * config/frv/frv.c: Include ifcvt.h.
1078         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
1079
1080 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1081
1082         * lra.c (lra): Remove call to recog_init.
1083         * config/i386/i386.md (preferred_for_speed): New attribute
1084         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
1085         "enabled".  Remove check for sched1.
1086
1087 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1088
1089         * recog.h (recog_data_d): Remove enabled_alternatives.
1090         * recog.c (extract_insn): Don't set it.
1091         * reload.c (find_reloads): Call get_enabled_alternatives.
1092
1093 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1094
1095         * recog.h (constrain_operands): Add an alternative_mask parameter.
1096         (constrain_operands_cached): Likewise.
1097         (get_preferred_alternatives): Declare new form.
1098         * recog.c (get_preferred_alternatives): New bb-taking instance.
1099         (constrain_operands): Take the set of available alternatives as
1100         a parameter.
1101         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
1102         (extract_constrain_insn_cached): Update calls to constrain_operands.
1103         * caller-save.c (reg_save_code): Likewise.
1104         * ira.c (setup_prohibited_mode_move_regs): Likewise.
1105         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1106         * ree.c (combine_reaching_defs): Likewise.
1107         * reload.c (can_reload_into): Likewise.
1108         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
1109         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
1110         (emit_insn_if_valid_for_reload): Likewise.
1111         * reorg.c (fill_slots_from_thread): Likewise.
1112         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
1113         * config/pa/pa.c (pa_can_combine_p): Likewise.
1114         * config/rl78/rl78.c (insn_ok_now): Likewise.
1115         * config/sh/sh.md (define_peephole2): Likewise.
1116         * final.c (final_scan_insn): Update call to constrain_operands_cached.
1117
1118 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1119
1120         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
1121         attributes.
1122         * genattr.c (main): Handle "preferred_for_size" and
1123         "preferred_for_speed" in the same way as "enabled".
1124         * recog.h (bool_attr): New enum.
1125         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
1126         (get_preferred_alternatives, check_bool_attrs): Declare.
1127         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
1128         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
1129         New functions.
1130         (get_enabled_alternatives): Use get_bool_attr_mask.
1131         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
1132         instead of recog_data.enabled_alternatives.
1133         * ira.c (ira_setup_alts): Likewise.
1134         * postreload.c (reload_cse_simplify_operands): Likewise.
1135         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1136         * ira-lives.c (preferred_alternatives): New variable.
1137         (process_bb_node_lives): Set it.
1138         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
1139         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
1140         of recog_data.enabled_alternatives.
1141         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
1142         to preferred_alternatives.
1143         * lra-constraints.c (process_alt_operands): Update accordingly.
1144         * lra.c (lra_set_insn_recog_data): Likewise.
1145         (lra_update_insn_recog_data): Assert check_bool_attrs.
1146
1147 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1148
1149         * recog.h (extract_constrain_insn): Declare.
1150         * recog.c (extract_constrain_insn): New function.
1151         * lra.c (check_rtl): Use it.
1152         * postreload.c (reload_cse_simplify_operands): Likewise.
1153         * reg-stack.c (check_asm_stack_operands): Likewise.
1154         (subst_asm_stack_regs): Likewise.
1155         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
1156         * regrename.c (build_def_use): Likewise.
1157         * sel-sched.c (get_reg_class): Likewise.
1158         * config/arm/arm.c (note_invalid_constants): Likewise.
1159         * config/s390/predicates.md (execute_operation): Likewise.
1160
1161 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1162             Yury Gribov  <y.gribov@samsung.com>
1163
1164         * common.opt (flag_sanitize_recover): New variable.
1165         (fsanitize-recover): Remove Var/Init, deprecate.
1166         (fsanitize-recover=): New option.
1167         * doc/invoke.texi (fsanitize-recover): Update docs.
1168         * opts.c (finish_options): Use opts->x_flag_sanitize
1169         instead of flag_sanitize.  Prohibit -fsanitize-recover
1170         for anything besides UBSan.  Formatting.
1171         (common_handle_option): Handle OPT_fsanitize_recover_
1172         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
1173         instead of flag_sanitize.
1174         * asan.c (pass_sanopt::execute): Fix up formatting.
1175         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
1176         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
1177         instrument_bool_enum_load, ubsan_instrument_float_cast,
1178         instrument_nonnull_arg, instrument_nonnull_return): Check
1179         bits in flag_sanitize_recover bitmask instead of
1180         flag_sanitize_recover as bool flag.
1181
1182 2014-10-22  Jiong Wang <jiong.wang@arm.com>
1183
1184         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
1185
1186 2014-10-22  Renlin Li <renlin.li@arm.com>
1187
1188         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
1189         __ARM_FEATURE_IDIV__.
1190
1191 2014-10-22  Richard Biener  <rguenther@suse.de>
1192
1193         * Makefile.in (s-match): Adjust dependencies to only catch
1194         match.pd.
1195
1196 2014-10-22  Richard Biener  <rguenther@suse.de>
1197         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1198
1199         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
1200         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
1201         (gimple-match.c): Generate by triggering s-match.
1202         (generic-match.c): Likewise.
1203         (s-match): Rule to build gimple-match.c and generic-match.c
1204         by running the genmatch generator program.
1205         (build/hash-table.o): Dependencies to build hash-table.c for the host.
1206         (build/genmatch.o): Dependencies to build genmatch.
1207         (genprog): Add match.
1208         (build/genmatch): Likewise.
1209         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
1210         * generic-match-head.c: New file.
1211         * gimple-match-head.c: Likewise.
1212         * gimple-match.h: Likewise.
1213         * genmatch.c: Likewise.
1214         * match.pd: Likewise.
1215         * builtins.h (fold_builtin_n): Export.
1216         * builtins.c (fold_builtin_n): Likewise.
1217         * gimple-fold.h (gimple_build): Declare various overloads.
1218         (gimple_simplify): Likewise.
1219         (gimple_convert): Re-implement in terms of gimple_build.
1220         * gimple-fold.c (gimple_convert): Remove.
1221         (gimple_build): New functions.
1222         * doc/match-and-simplify.texi: New file.
1223         * doc/gccint.texi: Add menu item Match and Simplify and include
1224         match-and-simplify.texi.
1225
1226 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1227
1228         PR target/63594
1229         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
1230         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
1231         even for just TARGET_AVX2, not only for
1232         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
1233         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
1234         otherwise build it using concatenation of 256-bit
1235         broadcast.
1236         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
1237         avx512 broadcast patterns.
1238         (vec_dup<mode>): Likewise.  For avx2 use
1239         v<sseintprefix>broadcast<bcstscalarsuff> instead of
1240         vbroadcast<ssescalarmodesuffix>.
1241         (AVX2_VEC_DUP_MODE): New mode iterator.
1242         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
1243         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
1244
1245         PR target/63542
1246         * config/i386/i386.c (ix86_pic_register_p): Also return
1247         true if x is a hard register with ORIGINAL_REGNO equal to
1248         pic_offset_table_rtx pseudo REGNO.
1249         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
1250         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
1251
1252 2014-10-22  Alan Modra  <amodra@gmail.com>
1253
1254         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
1255         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
1256         (gcc_obstack_init): Use obstack_specify_allocation in place of
1257         _obstack_begin.
1258         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
1259         (regexp_representation): Likewise.
1260         * godump.c (go_output_type): Likewise.
1261
1262 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
1263
1264         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
1265         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
1266         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
1267
1268 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
1269
1270         * doc/invoke.texi (pedantic-errors): Explain better.
1271
1272 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
1273             Vidya Praveen <vidya.praveen@atmel.com>
1274             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
1275             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
1276             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
1277
1278         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
1279         __MEMX for avrtiny.
1280         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
1281         (avr_nonconst_pointer_addrspace): Likewise.
1282         * config/avr/avr.h (AVR_HAVE_LPM): Define.
1283
1284         Added AVRTINY architecture to avr target.
1285         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
1286         (base_arch_s): member added for AVRTINY architecture.
1287         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
1288         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
1289         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
1290         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
1291         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
1292         in callee saved register list.
1293         (avr_option_override): CCP address updated for AVRTINY.
1294         (avr_init_expanders): tmp and zero rtx initialized as per arch.
1295         Reset avr_have_dimode if AVRTINY.
1296         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
1297         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
1298         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
1299         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
1300         (expand_epilogue): Likewise.
1301         (avr_print_operand): Print CCP address in case of AVRTINY also.
1302         <TBD>bad address
1303         (function_arg_regno_p): Check different register list for arguments
1304         if AVRTINY.
1305         (init_cumulative_args): Check for AVRTINY to update number of argument
1306         registers.
1307         (tiny_valid_direct_memory_access_range): New function. Return false if
1308         direct memory access range is not in accepted range for AVRTINY.
1309         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
1310         indirect load (with displacement) for AVRTINY.
1311         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
1312         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
1313         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
1314         indirect load (no displacement) for AVRTINY.
1315         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
1316         indirect load (with displacement) for AVRTINY.
1317         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
1318         indirect load for pre-decrement address.
1319         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
1320         functions. Update instruction length for AVRTINY.
1321         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
1322         SImode.
1323         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
1324         (out_movsi_r_mr): Likewise, for SImode.
1325         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
1326         indirect store (no displacement) for AVRTINY.
1327         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
1328         indirect store (with displacement) for AVRTINY.
1329         (out_movsi_mr_r): Emit out insn for IO address store. Update store
1330         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
1331         store functions.
1332         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
1333         indirect load (no displacement) for PSImode in AVRTINY.
1334         (avr_out_load_psi_reg_disp_tiny): New function to handle register
1335         indirect load (with displacement) for PSImode in AVRTINY.
1336         (avr_out_load_psi): Call PSImode register indirect load functions for
1337         AVRTINY. Update instruction length for AVRTINY.
1338         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
1339         indirect store (no displacement) for PSImode in AVRTINY.
1340         (avr_out_store_psi_reg_disp_tiny): New function to handle register
1341         indirect store (with displacement) for PSImode in AVRTINY.
1342         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
1343         register indirect store functions for AVRTINY.
1344         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
1345         register indirect store (with displacement) for AVRTINY.
1346         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
1347         register indirect store function for QImode in AVRTINY.
1348         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
1349         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
1350         indirect store (no displacement) for HImode in AVRTINY.
1351         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
1352         indirect store (with displacement) for HImode in AVRTINY.
1353         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
1354         indirect store for post-increment address in HImode.
1355         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
1356         register indirect store function for HImode in AVRTINY.
1357         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
1358         in case of AVRTINY.
1359         (order_regs_for_local_alloc): Updated register allocation order for
1360         AVRTINY.
1361         (avr_conditional_register_usage): New function. It is a target hook
1362         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
1363         used registers list and register allocation order for AVRTINY.
1364         (avr_return_in_memory): Update return value size for AVRTINY.
1365         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
1366         for AVRTINY arch and tiny program memory base address.
1367         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
1368         (avr_texinfo): Added description for AVRTINY arch.
1369         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
1370         STATIC_CHAIN_REGNUM for AVRTINY.
1371         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
1372         * config/avr/avr.md: Added constants for tmp/ zero registers in
1373         AVRTINY. Attributes for AVRTINY added.
1374         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
1375         memory access range.
1376         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
1377         in AVRTINY memory access range.
1378         (*mov<mode>): Likewise for HImode and SImode.
1379         (*movsf): Likewise for SFmode.
1380         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
1381         not have sbiw.
1382         * config/avr/avr-protos.h: Added function prototype for
1383         tiny_valid_direct_memory_access_range.
1384         * config/avr/avr-tables.opt: Regenerate.
1385         * gcc/config/avr/t-multilib: Regenerate.
1386         * doc/avr-mmcu.texi: Regenerate.
1387
1388 2014-10-21  Andrew Pinski  <apinski@cavium.com>
1389
1390         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
1391         available option also.
1392         * config/aarch64/aarch64-cost-tables.h: New file.
1393         * config/aarch64/aarch64-cores.def (thunderx): New core.
1394         * config/aarch64/aarch64-tune.md: Regenerate.
1395         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
1396         of config/arm/aarch-cost-tables.h.
1397         (thunderx_regmove_cost): New variable.
1398         (thunderx_tunings): New variable.
1399
1400 2014-10-21  Dehao Chen  <dehao@google.com>
1401
1402         * auto-profile.c: New file.
1403         * auto-profile.h: New file.
1404         * basic-block.h (maybe_hot_count_p): New export func.
1405         (add_working_set): New export func.
1406         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
1407         (GCOV_TAG_AFDO_FUNCTION): Likewise.
1408         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
1409         * opts.c (enable_fdo_optimizations): New func.
1410         (common_handle_option): Handle -fauto-profile flag.
1411         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
1412         (class pass_early_inline): Export early_inliner.
1413         (early_inliner): Likewise.
1414         (pass_early_inline::execute): Likewise.
1415         * ipa-inline.h (early_inliner): Likewise.
1416         * predict.c (maybe_hot_count_p): New export func.
1417         (counts_to_freqs): AutoFDO logic.
1418         (rebuild_frequencies): Likewise.
1419         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
1420         * profile.c (add_working_set): New func.
1421         * Makefile.in (auto-profile.o): New object file.
1422         * passes.def (pass_ipa_auto_profile): New pass.
1423         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
1424         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
1425         * toplev.c (compile_file): AutoFDO logic.
1426         * doc/invoke.texi (-fauto-profile): New doc.
1427         * coverage.c (coverage_init): AutoFDO logic.
1428         * common.opt (-fauto-profile): New flag.
1429         * timevar.def (TV_IPA_AUTOFDO): New tag.
1430         * value-prof.c (gimple_alloc_histogram_value): New export func.
1431         (check_ic_target): Likewise.
1432         * value-prof.h (gimple_alloc_histogram_value): Likewise.
1433         (check_ic_target): Likewise.
1434
1435 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
1436
1437         * cgraph.c (cgraph_c_finalize): New function.
1438         * cgraph.h (cgraph_c_finalize): New prototype.
1439         (cgraphunit_c_finalize): New prototype.
1440         * cgraphunit.c (first_analyzed): Move from analyze_functions
1441         to file-scope.
1442         (first_analyzed_var): Likewise.
1443         (analyze_functions): Move static variables into file-scope.
1444         (cgraphunit_c_finalize): New function.
1445         * diagnostic.c (diagnostic_finish): Free the memory for
1446         context->classify_diagnostic and context->printer, running the
1447         destructor for the latter.
1448         (bt_stop): Use toplev::main.
1449         * dwarf2out.c (dwarf2out_finalize): New function.
1450         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
1451         * gcse.c (gcse_c_finalize): New function.
1452         * gcse.h (gcse_c_finalize): New prototype.
1453         * ggc-page.c (init_ggc): Make idempotent.
1454         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
1455         * ipa-cp.c (ipa_cp_c_finalize): New function.
1456         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
1457         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
1458         a field of class pass_ipa_pure_const.
1459         (node_duplication_hook_holder): Likewise.
1460         (node_removal_hook_holder): Likewise.
1461         (register_hooks): Convert to method...
1462         (pass_ipa_pure_const::register_hooks): ...here, converting
1463         static variable init_p into...
1464         (pass_ipa_pure_const::init_p): ...new field.
1465         (pure_const_generate_summary): Update invocation of
1466         register_hooks to invoke as a method of current_pass.
1467         (pure_const_read_summary): Likewise.
1468         (propagate): Convert to...
1469         (pass_ipa_pure_const::execute): ...method.
1470         * ipa-reference.c (ipa_init): Move static bool init_p from here
1471         to...
1472         (ipa_init_p): New file-scope variable, so that it can be reset
1473         when repeatedly invoking the compiler within one process by...
1474         (ipa_reference_c_finalize): New function.
1475         * ipa-reference.h (ipa_reference_c_finalize): New.
1476         * main.c (main): Replace invocation of toplev_main with
1477         construction of a toplev instance, and call its "main" method.
1478         * params.c (global_init_params): Add an assert that
1479         params_finished is false.
1480         (params_c_finalize): New.
1481         * params.h (params_c_finalize): New.
1482         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
1483         invoking generate_summary, for the benefit of pass_ipa_pure_const.
1484         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
1485         before calling write_summary hook.
1486         (ipa_write_optimization_summaries_1): Likewise when calling
1487         write_optimization_summary hook.
1488         (ipa_read_summaries_1): Likewise for read_summary hook.
1489         (ipa_read_optimization_summaries_1): Likewise for
1490         read_optimization_summary hook.
1491         (execute_ipa_stmt_fixups): Likewise.
1492         * stringpool.c (init_stringpool): Clean up if we're called more
1493         than once.
1494         * timevar.c (timevar_init): Ignore repeated calls.
1495         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
1496         "ipa-prop.h".
1497         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
1498         (initialize_rtl): Move static local "initialized_once"
1499         into file scope, and rename to...
1500         (rtl_initialized): New variable.
1501         (do_compile): Move timevar initialization from here to
1502         toplev::start_timevars.
1503         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
1504         toplev::finalize): New functions.
1505         (toplev_main): Rename to...
1506         (toplev::main): ...this.
1507         * toplev.h (class toplev): New class.
1508
1509 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1510
1511         * loop-doloop.c: Include loop-unroll.h.
1512
1513 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1514
1515         * cfg.h: New.  Header file for cfg.c.
1516         * cfganal.h: New.  Header file for cfganal.c.
1517         * lcm.h: New.  Header file for lcm.c.
1518         * loop-unroll.h: New.  Header file for loop-unroll.h.
1519         * cfgloop.h: (unroll_loops): Remove prototype.
1520         * basic-block.h: Move prototypes and structs to new header files.
1521         Include cfg.h, cfganal.h, and lcm.h.
1522         * loop-init.c: Include loop-unroll.h.
1523         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
1524         * modulo-sched.c: Include loop-unroll.h.
1525
1526 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1527
1528         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
1529         MARKER_BYTE_UNKNOWN markers when handling casts.
1530
1531 2014-10-21  Richard Biener  <rguenther@suse.de>
1532
1533         * tree-ssa-phiopt.c (value_replacement): Properly verify we
1534         are the non-singleton PHI.
1535
1536 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
1537
1538         PR tree-optimization/63563
1539         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
1540         if either dra or drb stmts are not normal loads/stores.
1541
1542 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
1543
1544         * config/i386/i386.c (expand_vec_perm_1): Fix
1545         expand_vec_perm_palignr case.
1546         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
1547         VI1_AVX512.
1548
1549 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1550
1551         * cfgloopanal.c (seq_cost): Delete.
1552         * rtl.h (seq_cost): New prototype.
1553         * rtlanal.c (seq_cost): New function.
1554         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
1555
1556 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
1557
1558         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
1559         * basic-block.h: Remove prototypes for cfgrtl.c.
1560         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
1561         prototypes to cfgrtl.h.
1562         * profile.h (profile_info): Add extern export declaration.
1563         * rtl.h: Remove prototypes for cfgrtl.h.
1564         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
1565         * ipa-inline.c: Include profile.h.
1566         * loop-unroll.c: Ditto.
1567         * modulo-sched.c: Ditto.
1568         * postreload-gcse.c: Ditto.
1569         * predict.c: Ditto.
1570         * sched-ebb.c: Ditto.
1571         * sched-rgn.c: Ditto.
1572         * tracer.c: Ditto.
1573         * tree-ssa-loop-ivcanon.c: Ditto.
1574
1575 2014-10-20  Richard Biener  <rguenther@suse.de>
1576
1577         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
1578         operands to get a def operand kind match.  Signal mismatches
1579         to the parent so we can try swapping its operands.
1580         (vect_build_slp_tree): Try swapping operands if they have
1581         a mismatched operand kind.
1582
1583 2014-10-20  Alan Modra  <amodra@gmail.com>
1584
1585         PR debug/60655
1586         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
1587         Increase "ops" array size.  Correct array size tests.  Init
1588         n_constants in loop.  Break out of innermost loop when finding
1589         a trivial CONST expression.
1590
1591 2014-10-20  Martin Liska  <mliska@suse.cz>
1592
1593         PR ipa/63583
1594         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
1595         Gimple tempate string is compared.
1596
1597 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
1598
1599         * varasm.c (const_alias_set): Remove.
1600         (init_varasm_once): Remove initialization of const_alias_set.
1601         (build_constant_desc): Do not set alias set to const_alias_set.
1602
1603 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
1604
1605         * configure: Regenerate.
1606         * configure.ac: Move the test for section attribute specifier "e" in GAS
1607         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
1608         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
1609         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
1610         ifdef HAVE_GAS_SECTION_EXCLUDE.
1611
1612 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
1613
1614         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
1615         match_operand expression.
1616
1617 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1618             David Edelsohn  <dje.gcc@gmail.com>
1619
1620         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
1621         function.
1622         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1623
1624 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1625
1626         * doc/invoke.texi (Options to Request or Suppress Warnings):
1627         Explain options precedence.
1628         (Wtrampolines): Do not indent paragraph.
1629
1630 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
1631
1632         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
1633         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
1634         (pa_jump_in_call_delay): Likewise.
1635         * config/pa/pa.c (pa_option_override): Remove jump in call delay
1636         override.
1637         (pa_output_millicode_call): Remove support for jump in call delay.
1638         (pa_output_call): Likewise.
1639         (pa_jump_in_call_delay): Delete.
1640         (pa_following_call): Likewise.
1641         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
1642         (uncond_branch): Remove following call check from attribute length.
1643
1644 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
1645
1646         PR target/53513
1647         * config/sh/sh-modes.def (PSI): Remove.
1648         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
1649         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
1650         (sh_reorg): Remove commented out FPSCR code.
1651         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
1652         insn instead of move insn.
1653         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1654         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1655         handling.
1656         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1657         (sh1_builtin_p): Uncomment.
1658         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1659         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1660         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1661         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1662         (general_movsrc_operand, general_movdst_operand): Disallow
1663         fpscr_operand.
1664         * config/sh/sh.md (FPSCR_FR): New constant.
1665         (push_fpscr): Emit sts_fpscr insn.
1666         (pop_fpscr): Emit lds_fpscr_insn.
1667         (movsi_ie): Disallow FPSCR operands.
1668         (fpu_switch, unnamed related split, extend_psi_si,
1669         truncate_si_psi): Remove insns.
1670         (lds_fpscr, sts_fpscr): New insns.
1671         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1672
1673 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1674
1675         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1676         (clone_inlined_nodes): Do not overwrite the clone if above predicate
1677         returns true.
1678
1679 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
1680
1681         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1682         (expand_vec_perm_d): Ditto.
1683         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1684         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1685         V4DFmode.
1686         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1687         (ix86_expand_sse_unpack): Handle V64QImode.
1688         (expand_vec_perm_blend): Update conditions for TARGET, handle
1689         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1690         (expand_vec_perm_pshufb): Handle V64QImode.
1691         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1692         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1693         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
1694         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1695         (ix86_expand_vecop_qihi): Handle V64QImode.
1696         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1697         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1698         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1699         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1700         (mul<mode>3): Use VI1_AVX512.
1701         (<sse2_avx2>_packsswb): Ditto.
1702         (<sse2_avx2>_packuswb): Ditto.
1703         (<ssse3_avx2>_pshufb<mode>3): Ditto.
1704         (<shift_insn><mode>3): Ditto.
1705
1706 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
1707
1708         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1709         conditions to fix bootstrap.
1710
1711 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
1712
1713         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
1714
1715 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1716             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1717             Anna Tikhonova  <anna.tikhonova@intel.com>
1718             Ilya Tocar  <ilya.tocar@intel.com>
1719             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1720             Ilya Verbin  <ilya.verbin@intel.com>
1721             Kirill Yukhin  <kirill.yukhin@intel.com>
1722             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1723
1724         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1725         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1726         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1727         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1728         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1729         (define_expand "vec_init<mode>"): Use VF48_I1248.
1730
1731 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1732             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1733             Anna Tikhonova  <anna.tikhonova@intel.com>
1734             Ilya Tocar  <ilya.tocar@intel.com>
1735             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1736             Ilya Verbin  <ilya.verbin@intel.com>
1737             Kirill Yukhin  <kirill.yukhin@intel.com>
1738             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1739
1740         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1741         expand_sse2_mulvxdi3.
1742
1743 2014-10-17  Richard Biener  <rguenther@suse.de>
1744
1745         * fold-const.c (fold_comparison): Remove redundant constant
1746         folding and operand swapping.
1747         (fold_binary_loc): Do comparison operand swapping here.
1748         (fold_ternary_loc): Canonicalize operand order for
1749         commutative ternary operations.
1750         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1751         and FMA_EXPR.
1752
1753 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
1754
1755         PR tree-optimization/63464
1756         * gimple.h (gimple_seq_discard): New prototype.
1757         * gimple.c: Include stringpool.h and tree-ssanames.h.
1758         (gimple_seq_discard): New function.
1759         * optabs.h (lshift_cheap_p): New prototype.
1760         * optabs.c (lshift_cheap_p): New function, moved from...
1761         * tree-switch-conversion.c (lshift_cheap_p): ... here.
1762         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1763         (reassoc_branch_fixups): New variable.
1764         (update_range_test): Add otherrangep and seq arguments.
1765         Unshare exp.  If otherrange is NULL, use for other ranges
1766         array of pointers pointed by otherrangep instead.
1767         Emit seq before gimplified statements for tem.
1768         (optimize_range_tests_diff): Adjust update_range_test
1769         caller.
1770         (optimize_range_tests_xor): Likewise.  Fix up comment.
1771         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1772         functions.
1773         (optimize_range_tests): Adjust update_range_test caller.
1774         Call optimize_range_tests_to_bit_test.
1775         (branch_fixup): New function.
1776         (execute_reassoc): Call branch_fixup.
1777
1778         PR tree-optimization/63302
1779         * tree-ssa-reassoc.c (optimize_range_tests_xor,
1780         optimize_range_tests_diff): Use !integer_pow2p () instead of
1781         tree_log2 () < 0.
1782
1783 2014-10-17  Martin Liska  <mliska@suse.cz>
1784
1785         * ipa-icf.c (sem_function::merge): Local flags are set to false
1786         to enforce equal calling convention to be used.
1787         * opts.c (common_handle_option): Indentation fix.
1788
1789 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
1790
1791         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1792
1793 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1794
1795         PR rtl-optimization/61605
1796         * regcprop.c (copyprop_hardreg_forward_1): Use
1797         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1798
1799 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1800
1801         PR rtl-optimization/61605
1802         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
1803         notice stores for noops.  Don't regard noops as copies.
1804
1805 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
1806
1807         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1808         register in a special way.
1809         (__cpuid_count): Ditto.
1810         * config/i386/driver-i386.h: Protect with
1811         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1812         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1813         is required to compile the function.
1814
1815 2014-10-16  DJ Delorie  <dj@redhat.com>
1816
1817         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1818         integers.
1819
1820         * config/rs6000/rs6000-c.c (rid_int128): New.
1821         (rs6000_macro_to_expand): Use instead of RID_INT128.
1822
1823 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1824
1825         * function.h: Flatten file.  Remove includes, adjust prototypes to
1826         reflect only what is in function.h.
1827         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1828         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1829         from expr.h.
1830         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1831         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1832         prototypes to predict.h.
1833         (init_varasm_status): Move prototype to varasm.h.
1834         * expr.h: Adjust include files.
1835         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1836         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1837         to function.h.
1838         (locate_and_pad_parm): Move prototype to function.h.
1839         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1840         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1841         assign_temp, reposition_prologue_and_epilogue_notes,
1842         prologue_epilogue_contains, sibcall_epilogue_contains,
1843         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1844         set_return_jump_label): Move prototypes to function.h.
1845         * predict.h (optimize_function_for_size_p,
1846         optimize_function_for_speed_p): Relocate prototypes from function.h.
1847         * shrink-wrap.h (emit_return_into_block, active_insn_between,
1848         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1849         function.h.
1850         * varasm.h (init_varasm_status): Relocate prototype from function.h.
1851         * genattrtab.c (write_header): Add predict.h to include list.
1852         * genconditions.c (write_header): Add predict.h to include list.
1853         * genemit.c (main): Adjust header file includes.
1854         * gengtype.c (ifiles): Add flattened function.h header files.
1855         * genoutput.c (output_prologue): Add predict.h to include list.
1856         * genpreds.c (write_insn_preds_c): Adjust header file includes.
1857         * genrecog.c (write_header): Add flattened function.h header files.
1858         * alias.c: Adjust include files.
1859         * auto-inc-dec.c: Likewise.
1860         * basic-block.h: Likewise.
1861         * bb-reorder.c: Likewise.
1862         * bt-load.c: Likewise.
1863         * builtins.c: Likewise.
1864         * caller-save.c: Likewise.
1865         * calls.c: Likewise.
1866         * cfgbuild.c: Likewise.
1867         * cfgcleanup.c: Likewise.
1868         * cfgexpand.c: Likewise.
1869         * cfgloop.c: Likewise.
1870         * cfgloop.h: Likewise.
1871         * cfgrtl.c: Likewise.
1872         * cgraph.h: Likewise.
1873         * cgraphclones.c: Likewise.
1874         * cgraphunit.c: Likewise.
1875         * combine-stack-adj.c: Likewise.
1876         * combine.c: Likewise.
1877         * coverage.c: Likewise.
1878         * cprop.c: Likewise.
1879         * cse.c: Likewise.
1880         * cselib.c: Likewise.
1881         * dbxout.c: Likewise.
1882         * ddg.c: Likewise.
1883         * df-core.c: Likewise.
1884         * df-problems.c: Likewise.
1885         * df-scan.c: Likewise.
1886         * dojump.c: Likewise.
1887         * dwarf2cfi.c: Likewise.
1888         * dwarf2out.c: Likewise.
1889         * emit-rtl.c: Likewise.
1890         * except.c: Likewise.
1891         * explow.c: Likewise.
1892         * expr.c: Likewise.
1893         * final.c: Likewise.
1894         * function.c: Likewise.
1895         * gcse.c: Likewise.
1896         * gimple-fold.c: Likewise.
1897         * gimple-low.c: Likewise.
1898         * gimple-streamer.h: Likewise.
1899         * haifa-sched.c: Likewise.
1900         * ifcvt.c: Likewise.
1901         * ira.c: Likewise.
1902         * jump.c: Likewise.
1903         * lcm.c: Likewise.
1904         * loop-invariant.c: Likewise.
1905         * lra-assigns.c: Likewise.
1906         * lra-coalesce.c: Likewise.
1907         * lra-constraints.c: Likewise.
1908         * lra-eliminations.c: Likewise.
1909         * lra-lives.c: Likewise.
1910         * lra-spills.c: Likewise.
1911         * lra.c: Likewise.
1912         * lto-cgraph.c: Likewise.
1913         * lto-section-in.c: Likewise.
1914         * lto-section-out.c: Likewise.
1915         * lto-streamer-in.c: Likewise.
1916         * lto-streamer-out.c: Likewise.
1917         * mode-switching.c: Likewise.
1918         * modulo-sched.c: Likewise.
1919         * omp-low.c: Likewise.
1920         * optabs.c: Likewise.
1921         * passes.c: Likewise.
1922         * postreload-gcse.c: Likewise.
1923         * postreload.c: Likewise.
1924         * predict.c: Likewise.
1925         * profile.c: Likewise.
1926         * recog.c: Likewise.
1927         * ree.c: Likewise.
1928         * reg-stack.c: Likewise.
1929         * regcprop.c: Likewise.
1930         * reginfo.c: Likewise.
1931         * regrename.c: Likewise.
1932         * reload.c: Likewise.
1933         * reload1.c: Likewise.
1934         * reorg.c: Likewise.
1935         * resource.c: Likewise.
1936         * rtlanal.c: Likewise.
1937         * sched-deps.c: Likewise.
1938         * sched-ebb.c: Likewise.
1939         * sched-rgn.c: Likewise.
1940         * sel-sched-dump.c: Likewise.
1941         * sel-sched-ir.c: Likewise.
1942         * sel-sched.c: Likewise.
1943         * shrink-wrap.c: Likewise.
1944         * simplify-rtx.c: Likewise.
1945         * statistics.c: Likewise.
1946         * stmt.c: Likewise.
1947         * stor-layout.c: Likewise.
1948         * store-motion.c: Likewise.
1949         * symtab.c: Likewise.
1950         * targhooks.c: Likewise.
1951         * toplev.c: Likewise.
1952         * trans-mem.c: Likewise.
1953         * tree-cfg.c: Likewise.
1954         * tree-cfgcleanup.c: Likewise.
1955         * tree-dfa.c: Likewise.
1956         * tree-eh.c: Likewise.
1957         * tree-inline.c: Likewise.
1958         * tree-into-ssa.c: Likewise.
1959         * tree-nested.c: Likewise.
1960         * tree-nrv.c: Likewise.
1961         * tree-profile.c: Likewise.
1962         * tree-ssa-alias.c: Likewise.
1963         * tree-ssa-ccp.c: Likewise.
1964         * tree-ssa-copy.c: Likewise.
1965         * tree-ssa-copyrename.c: Likewise.
1966         * tree-ssa-dom.c: Likewise.
1967         * tree-ssa-operands.c: Likewise.
1968         * tree-ssa-propagate.c: Likewise.
1969         * tree-ssa-structalias.c: Likewise.
1970         * tree-ssa-tail-merge.c: Likewise.
1971         * tree-ssa-threadedge.c: Likewise.
1972         * tree-ssa-threadupdate.c: Likewise.
1973         * tree-ssa-uncprop.c: Likewise.
1974         * tree-ssa-uninit.c: Likewise.
1975         * tree-ssa.c: Likewise.
1976         * tree-stdarg.c: Likewise.
1977         * tree-tailcall.c: Likewise.
1978         * tree.c: Likewise.
1979         * tsan.c: Likewise.
1980         * valtrack.c: Likewise.
1981         * varasm.c: Likewise.
1982         * vmsdbgout.c: Likewise.
1983         * web.c: Likewise.
1984         * config/aarch64/aarch64.c: Add flattened includes from function.h.
1985         * config/alpha/alpha.c: Likewise.
1986         * config/arc/arc.c: Likewise.
1987         * config/arm/arm.c: Likewise.
1988         * config/avr/avr-log.c: Likewise.
1989         * config/avr/avr.c: Likewise.
1990         * config/bfin/bfin.c: Likewise.
1991         * config/c6x/c6x.c: Likewise.
1992         * config/cr16/cr16.c: Likewise.
1993         * config/cris/cris.c: Likewise.
1994         * config/darwin.c: Likewise.
1995         * config/epiphany/epiphany.c: Likewise.
1996         * config/epiphany/mode-switch-use.c: Likewise.
1997         * config/epiphany/resolve-sw-modes.c: Likewise.
1998         * config/fr30/fr30.c: Likewise.
1999         * config/frv/frv.c: Likewise.
2000         * config/h8300/h8300.c: Likewise.
2001         * config/i386/i386.c: Likewise.
2002         * config/ia64/ia64.c: Likewise.
2003         * config/iq2000/iq2000.c: Likewise.
2004         * config/lm32/lm32.c: Likewise.
2005         * config/m32c/m32c.c: Likewise.
2006         * config/m32r/m32r.c: Likewise.
2007         * config/m68k/m68k.c: Likewise.
2008         * config/mcore/mcore.c: Likewise.
2009         * config/mep/mep-pragma.c: Likewise.
2010         * config/mep/mep.c: Likewise.
2011         * config/microblaze/microblaze.c: Likewise.
2012         * config/mips/mips.c: Likewise.
2013         * config/mmix/mmix.c: Likewise.
2014         * config/mn10300/mn10300.c: Likewise.
2015         * config/moxie/moxie.c: Likewise.
2016         * config/msp430/msp430.c: Likewise.
2017         * config/nds32/nds32-cost.c: Likewise.
2018         * config/nds32/nds32-fp-as-gp.c: Likewise.
2019         * config/nds32/nds32-intrinsic.c: Likewise.
2020         * config/nds32/nds32-isr.c: Likewise.
2021         * config/nds32/nds32-md-auxiliary.c: Likewise.
2022         * config/nds32/nds32-memory-manipulation.c: Likewise.
2023         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2024         * config/nds32/nds32-predicates.c: Likewise.
2025         * config/nds32/nds32.c: Likewise.
2026         * config/nios2/nios2.c: Likewise.
2027         * config/pa/pa.c: Likewise.
2028         * config/pdp11/pdp11.c: Likewise.
2029         * config/rl78/rl78.c: Likewise.
2030         * config/rs6000/rs6000.c: Likewise.
2031         * config/rx/rx.c: Likewise.
2032         * config/s390/s390.c: Likewise.
2033         * config/score/score.c: Likewise.
2034         * config/sh/sh.c: Likewise.
2035         * config/sparc/sparc.c: Likewise.
2036         * config/spu/spu.c: Likewise.
2037         * config/stormy16/stormy16.c: Likewise.
2038         * config/tilegx/tilegx.c: Likewise.
2039         * config/tilepro/tilepro.c: Likewise.
2040         * config/v850/v850.c: Likewise.
2041         * config/vax/vax.c: Likewise.
2042         * config/xtensa/xtensa.c: Likewise.
2043
2044 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
2045
2046         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
2047         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
2048
2049 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
2050
2051         * config/sh/sh-protos.h (fldi_ok): Remove.
2052         * config/sh/sh.c (fldi_ok): Likewise.
2053         (sh_secondary_reload): Don't use fldi_ok.
2054         * config/sh/constraints.md (G constraint, H constraint): Don't use
2055         fldi_ok.
2056
2057 2014-10-16  Martin Liska  <mliska@suse.cz>
2058
2059         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
2060         Cast to unsigned long.
2061         (sem_item_optimizer::dump_cong_classes): Likewise.
2062
2063 2014-10-16  Tom de Vries  <tom@codesourcery.com>
2064
2065         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
2066         with SSA_NAME_IN_FREELIST.
2067
2068 2014-10-16  Richard Biener  <rguenther@suse.de>
2069
2070         PR middle-end/63554
2071         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
2072         (fold_builtin_strncat_chk): Move ...
2073         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
2074         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
2075
2076 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
2077
2078         PR target/59401
2079         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
2080         GBR to 0.
2081
2082 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2083             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2084             Anna Tikhonova  <anna.tikhonova@intel.com>
2085             Ilya Tocar  <ilya.tocar@intel.com>
2086             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2087             Ilya Verbin  <ilya.verbin@intel.com>
2088             Kirill Yukhin  <kirill.yukhin@intel.com>
2089             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2090
2091         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
2092         V64QI modes.
2093
2094 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2095             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2096             Anna Tikhonova  <anna.tikhonova@intel.com>
2097             Ilya Tocar  <ilya.tocar@intel.com>
2098             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2099             Ilya Verbin  <ilya.verbin@intel.com>
2100             Kirill Yukhin  <kirill.yukhin@intel.com>
2101             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2102
2103         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
2104         V16SI, V32HI, V64QI modes.
2105
2106 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
2107
2108         PR target/53513
2109         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
2110         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
2111
2112         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
2113         to match fp insn patterns.
2114         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
2115         list.
2116         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
2117         expand_df_unop, expand_df_binop): Remove.
2118         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
2119         FPSCR_STAT_REG as not call clobbered.
2120         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
2121         invoking fpscr_set_from_mem.
2122
2123         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
2124         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
2125         FPSCR_STAT_REG.
2126         (REGISTER_NAMES): Adjust.
2127         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2128         (FIRST_PSEUDO_REGISTER): Increase to 156.
2129         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
2130         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
2131         FPSCR_STAT_REG.
2132         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
2133         FPSCR_MODES_REG and FPSCR_STAT_REG.
2134         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2135
2136         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
2137         FPSCR_SZ): Add new constants.
2138         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
2139
2140         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
2141         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
2142         Use TARGET_FPU_ANY condition.
2143         (fpu_switch peephole2): Remove.
2144         (fpu_switch split): Use simple_mem_operand to capture the mem and
2145         adjust split implementation.
2146         (extend_psi_si, truncate_si_psi): New insns.
2147         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
2148         set of FPSCR_MODES_REG.
2149
2150         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
2151         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
2152         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
2153         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
2154         call_value_compact, call_value_compact_rettramp, call,
2155         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
2156         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
2157         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
2158         sibcall_value_compact, sibcall_value, call_value_pop_compact,
2159         call_value_pop_compact_rettramp, various unnamed splits):
2160         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
2161         function uses.
2162
2163         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
2164         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
2165         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
2166         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
2167         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
2168
2169         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
2170         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
2171         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
2172         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
2173         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
2174         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
2175         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
2176
2177 2014-10-16  Martin Liska  <mliska@suse.cz>
2178             Jan Hubicka  <hubicka@ucw.cz>
2179
2180         * Makefile.in: New object files included.
2181         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
2182         is printed.
2183         (verify_edge_corresponds_to_fndecl): More sensitive verification
2184         of nodes that are merged by IPA ICF.
2185         * cgraph.h (cgraph_node::num_references): New function.
2186         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
2187         * common.opt: New options ipa-icf, ipa-icf-functions and
2188         ipa-icf-variables introduced.
2189         * doc/invoke.texi: Documentation of new options introduced.
2190         * ipa-icf-gimple.c: New file.
2191         * ipa-icf-gimple.h: New file.
2192         * ipa-icf.c: New file.
2193         * ipa-icf.h: New file.
2194         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
2195         (input_overwrite_node): Likewise.
2196         * lto-section-in.c: New icf section added.
2197         * lto-streamer.h (enum lto_section_type): Likewise.
2198         * opts.c (common_handle_option): New option added.
2199         * passes.def: New pass included.
2200         * timevar.def: Time variable for IPA ICF added.
2201         * tree-pass.h: New IPA ICF pass entry point added.
2202
2203 2014-10-16  Richard Biener  <rguenther@suse.de>
2204
2205         PR tree-optimization/63168
2206         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
2207         latches if after merging they are no longer simple.
2208         * cfghooks.c (merge_blocks): Handle merging a latch block
2209         into another block.
2210
2211 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2212             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2213             Anna Tikhonova  <anna.tikhonova@intel.com>
2214             Ilya Tocar  <ilya.tocar@intel.com>
2215             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2216             Ilya Verbin  <ilya.verbin@intel.com>
2217             Kirill Yukhin  <kirill.yukhin@intel.com>
2218             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2219
2220         * config/i386/sse.md
2221         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
2222         support AVX-512VL instructions.
2223
2224 2014-10-16  DJ Delorie  <dj@redhat.com>
2225
2226         * tree-core.h: Fix comment to not assume pointers are multiples of
2227         bytes.
2228
2229 2014-10-15  Tom Tromey  <tromey@redhat.com>
2230
2231         * timevar.h (class auto_timevar): New class.
2232
2233 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
2234
2235         PR go/59432
2236         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2237         Remove the second alternative.
2238         (regprefix): Remove mode attribute.
2239         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
2240         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
2241
2242         Revert:
2243         2013-11-05  Ian Lance Taylor  <iant@google.com>
2244
2245         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2246         If possible, add .cfi directives to record change to bx.
2247         * config/i386/i386.c (ix86_emit_cfi): New function.
2248         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
2249
2250 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
2251
2252         PR lto/62026
2253         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
2254         to duplicate.
2255         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
2256         at WPA time.
2257
2258 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2259
2260         PR rtl-optimization/63448
2261         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
2262         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
2263         (LRA_MAX_INHERITANCE_PASSES): Use it.
2264         (lra_constraint_iter_after_spill): Remove.
2265         (lra_assignment_iter): New.
2266         (lra_assignment_iter_after_spill): New.
2267         * lra-assigns.c (lra_assignment_iter): New.
2268         (lra_assignment_iter_after_spill): New.
2269         (former_reload_pseudo_spill_p): New.
2270         (spill_for): Set up former_reload_pseudo_spill_p.
2271         (setup_live_pseudos_and_spill_after_risky): Ditto.
2272         (assign_by_spills): Ditto.
2273         (lra_assign): Increment lra_assignment_iter.  Print the iteration
2274         number.  Reset former_reload_pseudo_spill_p.  Check
2275         lra_assignment_iter_after_spill.
2276         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
2277         lra_assignment_iter and lra_assignment_iter_after_spill.
2278         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
2279         (lra_constraints): Remove code with
2280         lra_assignment_iter_after_spill.
2281
2282 2014-10-15  Teresa Johnson  <tejohnson@google.com>
2283
2284         PR bootstrap/63432
2285         * tree-ssa-threadupdate.c (recompute_probabilities): Better
2286         overflow checking.
2287
2288 2014-10-15  Renlin Li <renlin.li@arm.com>
2289
2290         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2291         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
2292         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
2293         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
2294
2295 2014-10-15  Richard Biener  <rguenther@suse.de>
2296
2297         * gimple-fold.c (gimple_fold_call): Properly keep virtual
2298         SSA form up-to-date when devirtualizing a call to
2299         __builtin_unreachable and avoid fixing up EH info here.
2300
2301 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2302             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2303             Anna Tikhonova  <anna.tikhonova@intel.com>
2304             Ilya Tocar  <ilya.tocar@intel.com>
2305             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2306             Ilya Verbin  <ilya.verbin@intel.com>
2307             Kirill Yukhin  <kirill.yukhin@intel.com>
2308             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2309
2310         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
2311         to support AVX-512BW.
2312         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
2313         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
2314         (define_insn "*<plusminus_insn><mode>3"): Ditto.
2315         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
2316         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2317         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
2318         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2319         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
2320         (define_insn "*andnot<mode>3"): Ditto.
2321         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
2322         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
2323         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2324         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
2325         (define_insn "*abs<mode>2"): Remove masking support.
2326         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
2327         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
2328         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
2329
2330 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2331             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2332             Anna Tikhonova  <anna.tikhonova@intel.com>
2333             Ilya Tocar  <ilya.tocar@intel.com>
2334             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2335             Ilya Verbin  <ilya.verbin@intel.com>
2336             Kirill Yukhin  <kirill.yukhin@intel.com>
2337             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2338
2339         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
2340         * config/i386/sse.md
2341         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
2342         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
2343         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
2344         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2345         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2346         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2347         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2348
2349 2014-10-15  Renlin Li <renlin.li@arm.com>
2350
2351         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
2352
2353 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
2354
2355         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
2356         MINUS_EXPR in unsigned type to avoid undefined behavior.
2357
2358 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2359
2360         * stor-layout.c (self_referential_size): Do not promote arguments.
2361
2362 2014-10-15  Marek Polacek  <polacek@redhat.com>
2363
2364         * doc/invoke.texi: Update to reflect that GNU11 is the default
2365         mode for C.
2366         * c-common.h (c_language_kind): Update comment.
2367
2368 2014-10-15  Richard Biener  <rguenther@suse.de>
2369
2370         * hash-table.c: Include bconfig.h if building for the host.
2371         * hash-table.h: Do not include ggc.h on the host but just declare
2372         a few ggc allocation templates.
2373
2374 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
2375             Jeff Law  <law@redhat.com>
2376
2377         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
2378         multiple hard registers, use smaller mode derived from MODE.
2379
2380 2014-10-15  Andreas Schwab  <schwab@suse.de>
2381
2382         * explow.c (convert_memory_address_addr_space_1): Mark in_const
2383         as ATTRIBUTE_UNUSED.
2384
2385 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
2386
2387         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
2388         (decide_unrolling): ... this one.
2389         (peel_loops_completely): Remove.
2390         (decide_peel_simple): Remove.
2391         (decide_peel_once_rolling): Remove.
2392         (decide_peel_completely): Remove.
2393         (peel_loop_simple): Remove.
2394         (peel_loop_completely): Remove.
2395         (unroll_and_peel_loops): Rename to ...
2396         (unroll_loops): ... this one; handle only unrolling.
2397         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
2398         LPT_PEEL_SIMPLE.
2399         (UAP_PEEL): Remove.
2400         (unroll_and_peel_loops): Remove.
2401         (unroll_loops): New.
2402         * passes.def: Replace
2403         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
2404         * loop-init.c (gate_rtl_unroll_and_peel_loops,
2405         rtl_unroll_and_peel_loops): Rename to ...
2406         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
2407         (pass_rtl_unroll_and_peel_loops): Rename to ...
2408         (pass_rtl_unroll_loops): ... this one.
2409         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
2410         (make_pass_rtl_unroll_loops): New.
2411         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
2412         (canonicalize_loop_induction_variables): Update.
2413
2414 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2415
2416         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
2417         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
2418         !TARGET_HARD_FLOAT_POSTINC.
2419         (*lsip, *ssip): new instructions.
2420
2421 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2422
2423         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
2424         remove.
2425
2426 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2427
2428         * explow.c (convert_memory_address_addr_space): Rename to ...
2429         (convert_memory_address_addr_space_1): This.  Add in_const argument.
2430         Inside a CONST RTL, permute the conversion and addition of constant
2431         for zero and sign extended pointers.
2432         (convert_memory_address_addr_space): New function.
2433
2434 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2435
2436         Revert:
2437         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2438
2439         PR middle-end/49721
2440         * explow.c (convert_memory_address_addr_space): Also permute the
2441         conversion and addition of constant for zero-extend.
2442
2443 2014-10-14  DJ Delorie  <dj@redhat.com>
2444
2445         * config/msp430/msp430-modes.def (PSI): Add.
2446
2447         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
2448         (msp430_hard_regno_nregs_with_padding): New.
2449         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
2450         (msp430_hard_regno_nregs_has_padding): New.
2451         (msp430_hard_regno_nregs_with_padding): New.
2452         (msp430_unwind_word_mode): Use PSImode instead of SImode.
2453         (msp430_addr_space_legitimate_address_p): New.
2454         (msp430_asm_integer): New.
2455         (msp430_init_dwarf_reg_sizes_extra): New.
2456         (msp430_print_operand): Use X suffix for PSImode even in small model.
2457         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
2458         (PTR_SIZE): ...but 4 bytes for EH.
2459         (SIZE_TYPE): Use __int20.
2460         (PTRDIFF_TYPE): Likewise.
2461         (INCOMING_FRAME_SP_OFFSET): Adjust.
2462         * config/msp430/msp430.md (movqi_topbyte): New.
2463         (movpsi): Use fixed suffixes.
2464         (movsipsi2): Enable for 430X, not large model.
2465         (extendhipsi2): Likewise.
2466         (zero_extendhisi2): Likewise.
2467         (zero_extendhisipsi2): Likewise.
2468         (extend_and_shift1_hipsi2): Likewise.
2469         (extendpsisi2): Likewise.
2470         (*bitbranch<mode>4_z): Fix suffix logic.
2471
2472 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
2473
2474         PR ada/62019
2475         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
2476         do not choke on null node.
2477         <VAR_DECL>: Likewise.
2478
2479 2014-10-14  DJ Delorie  <dj@redhat.com>
2480
2481         * machmode.h (int_n_data_t): New.
2482         (int_n_enabled_p): New.
2483         (int_n_data): New.
2484         * tree.c (int_n_enabled_p): New.
2485         (int_n_trees): New.
2486         (make_or_reuse_type): Check for all __intN types, not just
2487         __int128.
2488         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
2489         entries.
2490         * tree.h (int128_integer_type_node): Remove.
2491         (int128_unsigned_type_node): Remove.
2492         (int_n_trees_t): New.
2493         (int_n_enabled_p): New.
2494         (int_n_trees): New.
2495         * toplev.c (standard_type_bitsize): New.
2496         (do_compile): Check which __intN types are enabled for the current
2497         run.
2498         * builtin-types.def (BT_INT128): Remove.
2499         (BT_UINT128): Remove.
2500         * machmode.def: Add macro to create __int128 for all targets.
2501         * stor-layout.c (mode_for_size): Support __intN types.
2502         (smallest_mode_for_size): Likewise.
2503         (initialize_sizetypes): Support __intN types.
2504         * genmodes.c (struct mode_data): Add int_n field.
2505         (blank_mode): Likewise.
2506         (INT_N): New.
2507         (make_int_n): New.
2508         (emit_insn_modes_h): Count __intN entries and define
2509         NUM_INT_N_ENTS.
2510         (emit_mode_int_n): New.
2511         (emit_insn_modes_c): Call it.
2512         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
2513         types, not just __int128.
2514         * tree-core.h (integer_type_kind): Remove __int128-specific
2515         entries, reserve spots for __intN entries.
2516
2517         * config/msp430/msp430-modes.def (PSI): Add.
2518
2519 2014-10-14  Kito Cheng  <kito@0xlab.org>
2520
2521         * ira.c: Fix typo in comment.
2522         * ira.h: Ditto.
2523         * ira-build.c: Ditto.
2524         * ira-color.c: Ditto.
2525         * ira-emit.c: Ditto.
2526         * ira-int.h: Ditto.
2527         * ira-lives.c: Ditto.
2528
2529 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
2530
2531         PR rtl-optimization/63475
2532         * alias.c (true_dependence_1): Always use get_addr to extract
2533         true address operands from x_addr and mem_addr.  Use extracted
2534         address operands to check for references with alignment ANDs.
2535         Use extracted address operands with find_base_term and
2536         base_alias_check. For noncanonicalized operands call canon_rtx with
2537         extracted address operand.
2538         (write_dependence_1): Ditto.
2539         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
2540
2541 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
2542
2543         PR target/63534
2544         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
2545         __morestack local.
2546
2547 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2548             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2549             Anna Tikhonova  <anna.tikhonova@intel.com>
2550             Ilya Tocar  <ilya.tocar@intel.com>
2551             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2552             Ilya Verbin  <ilya.verbin@intel.com>
2553             Kirill Yukhin  <kirill.yukhin@intel.com>
2554             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2555
2556         * config/i386/i386.c
2557         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
2558         (ix86_expand_int_vcond): Ditto.
2559
2560 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2561             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2562             Anna Tikhonova  <anna.tikhonova@intel.com>
2563             Ilya Tocar  <ilya.tocar@intel.com>
2564             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2565             Ilya Verbin  <ilya.verbin@intel.com>
2566             Kirill Yukhin  <kirill.yukhin@intel.com>
2567             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2568
2569         * config/i386/i386.c
2570         (emit_reduc_half): Handle V64QI and V32HI mode.
2571         * config/i386/sse.md
2572         (define_mode_iterator VI_AVX512BW): New.
2573         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
2574
2575 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2576             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2577             Anna Tikhonova  <anna.tikhonova@intel.com>
2578             Ilya Tocar  <ilya.tocar@intel.com>
2579             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2580             Ilya Verbin  <ilya.verbin@intel.com>
2581             Kirill Yukhin  <kirill.yukhin@intel.com>
2582             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2583
2584         * config/i386/sse.md
2585         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
2586
2587 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2588             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2589             Anna Tikhonova  <anna.tikhonova@intel.com>
2590             Ilya Tocar  <ilya.tocar@intel.com>
2591             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2592             Ilya Verbin  <ilya.verbin@intel.com>
2593             Kirill Yukhin  <kirill.yukhin@intel.com>
2594             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2595
2596         * config/i386/i386.c
2597         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
2598         * config/i386/sse.md
2599         (define_mode_iterator VI): Add V64QI and V32HI modes.
2600
2601 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2602             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2603             Anna Tikhonova  <anna.tikhonova@intel.com>
2604             Ilya Tocar  <ilya.tocar@intel.com>
2605             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2606             Ilya Verbin  <ilya.verbin@intel.com>
2607             Kirill Yukhin  <kirill.yukhin@intel.com>
2608             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2609
2610         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
2611
2612 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2613             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2614             Anna Tikhonova  <anna.tikhonova@intel.com>
2615             Ilya Tocar  <ilya.tocar@intel.com>
2616             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2617             Ilya Verbin  <ilya.verbin@intel.com>
2618             Kirill Yukhin  <kirill.yukhin@intel.com>
2619             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2620
2621         * config/i386/sse.md
2622         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
2623         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
2624
2625 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2626             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2627             Anna Tikhonova  <anna.tikhonova@intel.com>
2628             Ilya Tocar  <ilya.tocar@intel.com>
2629             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2630             Ilya Verbin  <ilya.verbin@intel.com>
2631             Kirill Yukhin  <kirill.yukhin@intel.com>
2632             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2633
2634         * config/i386/sse.md
2635         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
2636         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
2637
2638 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2639             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2640             Anna Tikhonova  <anna.tikhonova@intel.com>
2641             Ilya Tocar  <ilya.tocar@intel.com>
2642             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2643             Ilya Verbin  <ilya.verbin@intel.com>
2644             Kirill Yukhin  <kirill.yukhin@intel.com>
2645             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2646
2647         * config/i386/sse.md
2648         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
2649         (define_mode_iterator VI2_AVX2): Add V32HI mode.
2650         (define_expand "mul<mode>3<mask_name>"): Add masking.
2651         (define_insn "*mul<mode>3<mask_name>"): Ditto.
2652         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2653         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2654         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2655         (define_mode_attr SDOT_PMADD_SUF): Ditto.
2656         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2657         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2658         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2659         (define_insn "avx2_packusdw"): Delete.
2660         (define_insn "sse4_1_packusdw"): Ditto.
2661         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2662
2663 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2664             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2665             Anna Tikhonova  <anna.tikhonova@intel.com>
2666             Ilya Tocar  <ilya.tocar@intel.com>
2667             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2668             Ilya Verbin  <ilya.verbin@intel.com>
2669             Kirill Yukhin  <kirill.yukhin@intel.com>
2670             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2671
2672         * config/i386/sse.md
2673         (define_insn "vec_dup<mode>"): Update constraints.
2674
2675 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2676             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2677             Anna Tikhonova  <anna.tikhonova@intel.com>
2678             Ilya Tocar  <ilya.tocar@intel.com>
2679             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2680             Ilya Verbin  <ilya.verbin@intel.com>
2681             Kirill Yukhin  <kirill.yukhin@intel.com>
2682             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2683
2684         * config/i386/sse.md
2685         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2686         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2687         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2688
2689 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2690             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2691             Anna Tikhonova  <anna.tikhonova@intel.com>
2692             Ilya Tocar  <ilya.tocar@intel.com>
2693             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2694             Ilya Verbin  <ilya.verbin@intel.com>
2695             Kirill Yukhin  <kirill.yukhin@intel.com>
2696             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2697
2698         * config/i386/sse.md
2699         (define_expand "mul<mode>3<mask_name>"): Add masking.
2700
2701 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2702             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2703             Anna Tikhonova  <anna.tikhonova@intel.com>
2704             Ilya Tocar  <ilya.tocar@intel.com>
2705             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2706             Ilya Verbin  <ilya.verbin@intel.com>
2707             Kirill Yukhin  <kirill.yukhin@intel.com>
2708             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2709
2710         * config/i386/sse.md
2711         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2712         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2713
2714 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2715             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2716             Anna Tikhonova  <anna.tikhonova@intel.com>
2717             Ilya Tocar  <ilya.tocar@intel.com>
2718             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2719             Ilya Verbin  <ilya.verbin@intel.com>
2720             Kirill Yukhin  <kirill.yukhin@intel.com>
2721             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2722
2723         * config/i386/sse.md
2724         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2725         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2726         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2727         Ditto.
2728
2729 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2730             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2731             Anna Tikhonova  <anna.tikhonova@intel.com>
2732             Ilya Tocar  <ilya.tocar@intel.com>
2733             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2734             Ilya Verbin  <ilya.verbin@intel.com>
2735             Kirill Yukhin  <kirill.yukhin@intel.com>
2736             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2737
2738         * config/i386/sse.md
2739         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2740         use VF_128_256 mode iterator and update assembler emit code.
2741         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2742         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2743         Add masking, use VF_128_256 mode iterator.
2744         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2745         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2746         Add masking, use VF_128_256 mode iterator and update assembler emit
2747         code.
2748         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2749         (define_mode_attr avx512flogicsuff): Delete.
2750         (define_insn "avx512f_<logic><mode>"): Ditto.
2751         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2752         MODE_TI.
2753         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2754
2755 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2756             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2757             Anna Tikhonova  <anna.tikhonova@intel.com>
2758             Ilya Tocar  <ilya.tocar@intel.com>
2759             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2760             Ilya Verbin  <ilya.verbin@intel.com>
2761             Kirill Yukhin  <kirill.yukhin@intel.com>
2762             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2763
2764         * config/i386/sse.md
2765         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2766         (define_expand "vashr<mode>3<mask_name>"): Add masking,
2767         use VI12_128 mode iterator.
2768         (define_expand "ashrv2di3<mask_name>"): New.
2769
2770 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2771             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2772             Anna Tikhonova  <anna.tikhonova@intel.com>
2773             Ilya Tocar  <ilya.tocar@intel.com>
2774             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2775             Ilya Verbin  <ilya.verbin@intel.com>
2776             Kirill Yukhin  <kirill.yukhin@intel.com>
2777             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2778
2779         * config/i386/i386.c
2780         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2781         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2782         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2783         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2784         CODE_FOR_avx512vl_ucmpv4si3_mask.
2785         * config/i386/sse.md
2786         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2787         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2788         (define_insn
2789         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2790         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2791         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2792         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2793         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2794         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2795
2796 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2797             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2798             Anna Tikhonova  <anna.tikhonova@intel.com>
2799             Ilya Tocar  <ilya.tocar@intel.com>
2800             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2801             Ilya Verbin  <ilya.verbin@intel.com>
2802             Kirill Yukhin  <kirill.yukhin@intel.com>
2803             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2804
2805         * config/i386/sse.md
2806         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2807         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2808         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2809         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2810         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2811         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2812         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2813         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2814         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2815
2816 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2817             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2818             Anna Tikhonova  <anna.tikhonova@intel.com>
2819             Ilya Tocar  <ilya.tocar@intel.com>
2820             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2821             Ilya Verbin  <ilya.verbin@intel.com>
2822             Kirill Yukhin  <kirill.yukhin@intel.com>
2823             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2824
2825         * config/i386/sse.md
2826         (define_insn "avx512f_blendm<mode>"): Delete.
2827         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2828         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2829         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2830         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2831         (define_insn
2832         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2833         Remove.
2834         (define_insn
2835         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2836         New.
2837         (define_insn
2838         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2839         Ditto.
2840         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2841         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2842         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2843         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2844         Delete.
2845         (define_insn
2846         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2847         New.
2848         (define_insn
2849         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2850         Ditto.
2851         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2852         Delete.
2853         (define_insn
2854         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2855         New.
2856         (define_insn
2857         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2858         Ditto.
2859
2860 2014-10-14  Richard Biener  <rguenther@suse.de>
2861
2862         PR tree-optimization/63512
2863         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2864         modified.
2865
2866 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
2867
2868         PR target/63260
2869         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2870         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
2871         of FPSCR.
2872         (negsf2_i): Rename to *negsf2_i.
2873         (abssf2_i): Rename to *abssf2_i.
2874         (negdf2_i): Rename to *negdf2_i.
2875         (absdf2_i): Rename to *absdf2_i.
2876
2877 2014-10-14  Felix Yang  <felix.yang@huawei.com>
2878             Jeff Law  <law@redhat.com>
2879
2880         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2881         "replace" into boolean bitfields; turn member "loop_depth" into a short
2882         integer; add new member "no_equiv" and "reserved".
2883         (no_equiv): Set no_equiv of struct equivalence if register is marked
2884         as having no known equivalence.
2885         (update_equiv_regs): Check all definitions for a multiple-set
2886         register to make sure that the RHS have the same value.
2887
2888 2014-10-13  Richard Henderson  <rth@redhat.com>
2889
2890         * combine-stack-adj.c (no_unhandled_cfa): New.
2891         (maybe_merge_cfa_adjust): New.
2892         (combine_stack_adjustments_for_block): Use them.
2893
2894 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
2895
2896         * Makefile.in (TAGS): Tag ../include files.
2897
2898 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2899
2900         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2901         to rs6000_dbx_register_number.
2902         (DWARF_FRAME_REGNUM): Redefine as identity map.
2903         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2904         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2905         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2906         argument to handle .debug_frame and .eh_frame directly.  Always
2907         translate SPE high register numbers.  Add special treatment for CR,
2908         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
2909
2910         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2911         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2912         (RS6000_USE_DWARF_NUMBERING): Define.
2913         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2914         (RS6000_USE_DWARF_NUMBERING): Define.
2915         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2916         (RS6000_USE_DWARF_NUMBERING): Define.
2917         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2918         (RS6000_USE_DWARF_NUMBERING): Define.
2919         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2920         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2921
2922 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2923
2924         * config/i386/i386.c (ix86_address_cost): Lower cost for
2925         when address contains GOT register.
2926
2927 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2928             Vladimir Makarov  <vmakarov@redhat.com>
2929
2930         PR target/8340
2931         PR middle-end/47602
2932         PR rtl-optimization/55458
2933         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2934         (ix86_init_pic_reg): New.
2935         (ix86_select_alt_pic_regnum): Add check on pseudo register.
2936         (ix86_save_reg): Likewise.
2937         (ix86_expand_prologue): Remove PIC register initialization
2938         now performed in ix86_init_pic_reg.
2939         (ix86_output_function_epilogue): Add check on pseudo register.
2940         (set_pic_reg_ever_alive): New.
2941         (legitimize_pic_address): Replace df_set_regs_ever_live with new
2942         set_pic_reg_ever_alive.
2943         (legitimize_tls_address): Likewise.
2944         (ix86_pic_register_p): New check.
2945         (ix86_delegitimize_address): Add check on pseudo register.
2946         (ix86_expand_call): Insert move from pseudo PIC register to ABI
2947         defined REAL_PIC_OFFSET_TABLE_REGNUM.
2948         (TARGET_INIT_PIC_REG): New.
2949         (TARGET_USE_PSEUDO_PIC_REG): New.
2950         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2951         if pic_offset_table_rtx exists.
2952         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2953         Document.
2954         * doc/tm.texi: Regenerate.
2955         * function.c (assign_parms): Generate pseudo register for PIC.
2956         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2957         register.
2958         * ira-color.c (color_pass): Add check on pseudo register.
2959         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2960         register.
2961         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2962         register.
2963         (ira): Add target specific PIC register initialization.
2964         (do_reload): Keep PIC pseudo register.
2965         * lra-assigns.c (spill_for): Add checks on pseudo register.
2966         * lra-constraints.c (contains_symbol_ref_p): New.
2967         (lra_constraints): Enable lra risky transformations when PIC is pseudo
2968         register.
2969         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2970         * target.def (use_pseudo_pic_reg): New.
2971         (init_pic_reg): New.
2972
2973 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2974
2975         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2976         Remove m_SILVERMONT and m_INTEL from the tune.
2977
2978 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2979
2980         PR libfortran/63471
2981         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2982         when _HPUX_SOURCE is defined.
2983
2984 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2985
2986         PR tree-optimization/62127
2987         * tree.c (remap_type_1): When remapping array, remap
2988         also its type.
2989
2990 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
2991
2992         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2993         longer impact parallelization.
2994
2995 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2996
2997         PR bootstrap/63496
2998         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2999
3000 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
3001
3002         * asan.c (instrument_derefs): BIT_FIELD_REF added.
3003
3004 2014-10-13  Richard Biener  <rguenther@suse.de>
3005
3006         PR tree-optimization/63419
3007         * gimple-fold.h (gimple_convert): New function.
3008         * gimple-fold.c (gimple_convert): Likewise.
3009         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
3010         to split out required conversions early.
3011
3012 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
3013
3014         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
3015         Add the parts of an insn in reverse order, with the pattern at
3016         the top of the queue.  Detect when we're iterating over a SEQUENCE
3017         pattern and in that case just consider patterns of subinstructions.
3018
3019 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
3020
3021         PR target/59401
3022         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
3023         of rtx.
3024         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
3025         insn walking.
3026         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
3027         address.  Use def chains to handle GBR clobbering call insns.
3028
3029 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
3030
3031         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
3032         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
3033         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
3034         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
3035         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
3036         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
3037         * doc/gty.texi (for_user): Document new option.
3038         * gengtype.c (create_user_defined_type): Don't try to get a struct for
3039         char.
3040         (walk_type): Don't error out on for_user option.
3041         (write_func_for_structure): Emit user marking routines if requested by
3042         for_user option.
3043         (write_local_func_for_structure): Likewise.
3044         (main): Mark types with for_user option as used.
3045         * ggc.h (gt_pch_nx): Add overload for unsigned int.
3046         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
3047         * hash-table.h (ggc_hasher): New struct.
3048         (hash_table::create_ggc): New function.
3049         (gt_pch_nx): New overload for hash_table.
3050
3051 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
3052
3053         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
3054         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
3055         * config/sh/sh.c: Likewise.
3056         * config/sh/sh-mem.cc: Likewise.
3057         * config/sh/sh.md: Likewise.
3058         * config/sh/predicates.md: Likewise.
3059         * config/sh/sync.md: Likewise.
3060
3061 2014-10-11  Martin Liska  <mliska@suse.cz>
3062
3063         PR middle-end/63376
3064         * cgraphunit.c (symbol_table::process_new_functions): Missing call
3065         for call_cgraph_insertion_hooks added.
3066
3067 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
3068
3069         PR c/63495
3070         * stor-layout.c (min_align_of_type): Don't decrease alignment
3071         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
3072         TYPE_USER_ALIGN is set.
3073
3074 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
3075
3076         PR rtl-optimization/63483
3077         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
3078         references when alignment ANDs are involved.
3079         (write_dependence_p): Ditto.
3080         (may_alias_p): Ditto.
3081
3082 2014-10-10  Marek Polacek  <polacek@redhat.com>
3083
3084         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
3085         * doc/invoke.texi: Document -fsanitize=object-size.
3086         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
3087         or it into SANITIZE_UNDEFINED.
3088         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
3089         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
3090         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
3091         * opts.c (common_handle_option): Handle -fsanitize=object-size.
3092         * ubsan.c: Include tree-object-size.h.
3093         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
3094         (ubsan_expand_bounds_ifn): Use false instead of 0.
3095         (ubsan_expand_objsize_ifn): New function.
3096         (instrument_object_size): New function.
3097         (pass_ubsan::execute): Add object size instrumentation.
3098         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
3099
3100 2014-10-10  Richard Henderson  <rth@redhat.com>
3101
3102         PR target/63404
3103         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
3104         Restrict the set of expressions we're willing to move.
3105
3106 2014-10-10  Jeff Law  <law@redhat.com>
3107
3108         * ira.c (struct equivalence): Promote INIT_INSNs field to
3109         an rtx_insn_list.  Add comments.
3110         (no_equiv): Promote LIST to an rtx_insn_list.  Update
3111         testing for and creating the special marker.  Use methods
3112         to extract the insn and next pointers.  Promote INSN to an
3113         rtx_insn.
3114         (update_equiv_regs): Update test for special marker in the
3115         INIT_INSNs list.
3116
3117 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3118
3119         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
3120         * configure: Regenerate.
3121         * config/aarch64/aarch64.c (aarch64_override_options): Handle
3122         TARGET_FIX_ERR_A53_835769_DEFAULT.
3123         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
3124         value to 2.
3125         * doc/install.texi (aarch64*-*-*): Document
3126         new --enable-fix-cortex-a53-835769 option.
3127
3128 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3129             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3130
3131         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
3132         (ADJUST_INSN_LENGTH): Define.
3133         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
3134         * config/aarch64/aarch64.c (is_mem_p): New function.
3135         (is_memory_op): Likewise.
3136         (aarch64_prev_real_insn): Likewise.
3137         (is_madd_op): Likewise.
3138         (dep_between_memop_and_curr): Likewise.
3139         (aarch64_madd_needs_nop): Likewise.
3140         (aarch64_final_prescan_insn): Likewise.
3141         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
3142         and -mno-fix-cortex-a53-835769 options.
3143
3144 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
3145
3146         PR tree-optimization/63464
3147         * tree-switch-conversion.c (struct case_bit_test): Remove
3148         hi and lo fields, add wide_int mask field.
3149         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
3150         hi/lo fields into wide_int mask operations, optimize by pretending
3151         minval to be 0 if maxval is small enough.
3152         (process_switch): Adjust caller.
3153
3154 2014-10-10  Richard Biener  <rguenther@suse.de>
3155
3156         PR tree-optimization/63379
3157         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
3158         a neutral operand for min/max when it is not a reduction chain.
3159
3160 2014-10-10  Richard Biener  <rguenther@suse.de>
3161
3162         PR tree-optimization/63476
3163         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
3164         (BB_LIVE_VOP_ON_EXIT): New define.
3165         (create_expression_by_pieces): Assign VUSEs to stmts.
3166         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
3167         (pass_pre::execute): Assert virtual SSA form is up-to-date
3168         after insertion.
3169
3170 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
3171
3172         * lra-assigns.c (assign_by_spills): Error out on spill failure.
3173
3174 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
3175
3176         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
3177         assertion.
3178
3179 2014-10-09  Richard Biener  <rguenther@suse.de>
3180
3181         PR tree-optimization/63380
3182         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
3183         may trap.
3184
3185 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3186
3187         * config/avr/avr.opt (mmcu=): Change to have a string value.
3188         (mn-flash=, mskip-bug, march=, mrmw): New options.
3189         (HeaderInclude): New.
3190         (mmcu=): Remove Var / Init clauses.
3191         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
3192         -specs option.
3193         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
3194         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
3195         (SYMBOL_FLAG_IO_LOW): Define.
3196         (avr_device_to_as, avr_device_to_ld): Don't declare.
3197         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3198         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
3199         (EXTRA_SPEC_FUNCTIONS): Don't define.
3200         (ASM_SPEC): Translate -arch= option to -mmcu= option.
3201         (LINK_SPEC): Translate -arch= option to -m= option.
3202         Don't use device_to_ld / device_to_data_start.
3203         (STARTFILE_SPEC): Now empty.
3204         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
3205         * config/avr/gen-avr-mmcu-specs.c: New file.
3206         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
3207         (s-device-specs): Likewise.
3208         (GCC_PASSES): Add s-device-specs.
3209         (install-driver): Depend on install-device-specs.
3210         (install-device-specs): New rule.
3211         * config/avr/avr.c (avr_option_override): Look up mcu arch by
3212         avr_arch_index and provide fallback initialization for avr_n_flash.
3213         (varasm.h): #include.
3214         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
3215         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
3216         (avr_attribute_table): Add "io", "address" and "io_low".
3217         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
3218         Add special handling for symbols with "io" and/or "address" attributes.
3219         (avr_asm_asm_output_aligned_bss): New function.
3220         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
3221         as appropriate.  Handle io_low attribute.
3222         (avr_out_sbxx_branch): Handle symbolic io addresses.
3223         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
3224         avr_n_flash instead of avr_current_device->n_flash.
3225         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
3226         (avr_emit_movmemhi): Likewise.
3227         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
3228         Use TARGET_RMW instead of avr_current_device->dev_attributes.
3229         Don't define avr_current_device->macro (that's the specfile's job).
3230         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
3231         * config/avr/avr.c (avr_2word_insn_p): Likewise.
3232         * config/avr/avr.md (*cpse.ne): Likewise.
3233         (mov<mode>): Use avr_eval_addr_attrib.
3234         (cbi): Change constraint for low_io_address_operand operand to "i".
3235         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
3236         * config/avr/predicates.md (io_address_operand):
3237         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
3238         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
3239         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
3240         Update prototype.
3241         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
3242         * config/avr/genmultilib.awk: Use -march=.
3243         Remove Multilib matches processing.
3244         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
3245         * config/avr/avr-arch.h: Add double include guard.
3246         (avr_mcu_t) <library_name>: Update comment.
3247         * config/avr/driver-avr.c (avr_device_to_as): Delete.
3248         (avr_device_to_ld, avr_device_to_data_start): Likewise.
3249         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
3250         (avr_device_to_sp8): Likewise.
3251         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
3252
3253         * doc/extend.texi (io, address): Document new AVR variable attributes.
3254         (io_low): Likewise.
3255
3256 2014-10-09  Marek Polacek  <polacek@redhat.com>
3257
3258         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
3259
3260 2014-10-08  Richard Biener  <rguenther@suse.de>
3261
3262         PR tree-optimization/61969
3263         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
3264         variables.
3265
3266 2014-10-09  Richard Biener  <rguenther@suse.de>
3267
3268         PR tree-optimization/63445
3269         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
3270         overflow for non-equality compares.
3271
3272 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
3273
3274         PR rtl-optimization/57003
3275         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3276         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
3277         killing regs_invalidated_by_call.
3278
3279 2014-10-08  Teresa Johnson  <tejohnson@google.com>
3280
3281         PR bootstrap/63432.
3282         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
3283         (ssa_fix_duplicate_block_edges): Invoke it.
3284         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
3285
3286 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
3287
3288         PR target/52941
3289         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
3290         atomic_fetch_<fetchop_name>si_hard,
3291         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
3292         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
3293         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
3294         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
3295
3296 2014-10-08  Rong Xu  <xur@google.com>
3297
3298         * gcov-tool.c (profile_overlap): New driver function
3299         to compute profile overlap.
3300         (print_overlap_usage_message): New.
3301         (overlap_usage): New.
3302         (do_overlap): New.
3303         (print_usage): Add calls to overlap function.
3304         (main): Ditto.
3305         * doc/gcov-tool.texi: Add documentation.
3306
3307 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3308
3309         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
3310         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
3311
3312 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
3313
3314         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
3315         pattern matching of MEM_REF.
3316         (check_stmt_for_type_change): Update.
3317
3318 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3319
3320         * config/mips/linux64.h: Remove.
3321         * config/mips/gnu-user64.h: Remove.
3322         * gcc.config (mips*-*-*): Remove references to linux64.h and
3323         gnu-user64.h
3324         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
3325         with modified version from gnu-user64.h.
3326         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
3327         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
3328         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
3329         linux64.h.
3330         (GNU_USER_LINK_EMULATION64): Ditto.
3331         (GNU_USER_LINK_EMULATIONN32): Ditto.
3332         (GLIBC_DYNAMIC_LINKER32): Ditto.
3333         (GLIBC_DYNAMIC_LINKER64): Ditto.
3334         (GLIBC_DYNAMIC_LINKERN32): Ditto.
3335         (UCLIBC_DYNAMIC_LINKER32): Ditto.
3336         (UCLIBC_DYNAMIC_LINKER64): Ditto.
3337         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
3338         (BIONIC_DYNAMIC_LINKERN32): Ditto.
3339         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
3340         (GLIBC_DYNAMIC_LINKER): Delete.
3341         (UCLIBC_DYNAMIC_LINKER): Delete.
3342
3343 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3344             Richard Biener  <rguenther@suse.de>
3345
3346         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
3347         Get address space from operand 0 (BASE).
3348
3349 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
3350
3351         PR target/61387
3352         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
3353
3354 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
3355
3356         * dwarf2out.c: Remove current_function_has_inlines.
3357         (gen_subprogram_die): Same.
3358         (gen_inlined_subroutine_die): Same.
3359
3360 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
3361
3362         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
3363         type.
3364         (_addcarry_u64): Ditto.
3365         (_addcarryx_u64): Ditto.
3366
3367 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3368
3369         * cgraph.h (cgraph_node::get_fun): Declare.
3370         * cgraph.c (cgraph_node::get_fun): New method.
3371         * ipa-inline.c (can_inline_edge_p): Use it.
3372
3373 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3374
3375         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
3376         and -ftrapping-math.
3377         * lto-wrapper.c (merge_and_complain): Likewise.
3378         (run_gcc): Likewise.
3379
3380 2014-10-06  Rong Xu  <xur@google.com>
3381
3382         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
3383         * tree-profile.c: (params.h): New include.
3384         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
3385         and __gcov_indirect_call_topn_counters for
3386         indirect_call_topn_profile.
3387         (gimple_init_edge_profiler): New decls for
3388         __gcov_indirect_call_topn_profiler.
3389         (gimple_gen_ic_profiler): Generate the correct profiler call.
3390         (gimple_gen_ic_func_profiler): Fix format.
3391         * value-prof.c (params.h): New include.
3392         (dump_histogram_value): Hanlde indirect_call_topn counters.
3393         (stream_in_histogram_value): Ditto.
3394         (gimple_indirect_call_to_profile): Use indirect_call_topn
3395         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
3396         (gimple_find_values_to_profile): Hanlde indirect_call_topn
3397         counters.
3398         * value-prof.h (enum hist_type): Histrogram type for
3399         indirect_call_topn counters.
3400         * profile.c (instrument_values): Instrument
3401         indirect_call_topn counters.
3402
3403 2014-10-06  Rong Xu  <xur@google.com>
3404
3405         * Makefile.in: Fix dependence.
3406         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
3407         indirect call topn profiler.
3408         * gcov-io.h: Ditto.
3409
3410 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3411
3412         * calls.c (expand_call): Do not use the target as the return slot if
3413         it is not sufficiently aligned.
3414
3415 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3416
3417         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
3418         discussion of permutes and why we don't handle them.
3419
3420 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3421
3422         * config/sparc/predicates.md (int_register_operand): Delete.
3423
3424 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3425
3426         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
3427
3428 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
3429
3430         * ubsan.h (ubsan_get_source_location): New prototype.
3431         * ubsan.c (ubsan_source_location_type): New variable.
3432         Function renamed to ...
3433         (ubsan_get_source_location_type): ... this.  Cache
3434         return value in ubsan_source_location_type variable.
3435         (ubsan_source_location, ubsan_create_data): Use
3436         ubsan_get_source_location_type instead of
3437         ubsan_source_location_type.
3438         * asan.c (asan_protect_global): Don't protect globals
3439         with ubsan_get_source_location_type () type.
3440         (asan_add_global): Provide global decl location info
3441         if possible.
3442
3443 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3444
3445         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
3446         sanity check.
3447
3448 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3449
3450         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
3451         on size.
3452         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
3453         into vptr pointer.
3454         (ipa_polymorphic_call_context::dump): Fix formating.
3455         (walk_ssa_copies): Add logic avoiding loops; update uses.
3456         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
3457
3458 2014-10-02  Mark Wielaard  <mjw@redhat.com>
3459
3460         PR debug/63239
3461         * dwarf2out.c (gen_subprogram_die): When a member function is
3462         explicitly deleted then add a DW_AT_GNU_deleted attribute.
3463         * langhooks.h (struct lang_hooks_for_decls): Add
3464         function_decl_deleted_p langhook.
3465         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
3466         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
3467
3468 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3469
3470         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
3471         NULL pointer checks.
3472         (ipa_polymorphic_call_context::get_dynamic_type): Return true
3473         if type doesn't change.
3474         * cgraph.h (cgraph_indirect_call_info): New flag.
3475         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
3476         (cgraph_node::dump): Dump it.
3477         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
3478         of context.get_dynamic_type.
3479         (ipa_make_edge_direct_to_target): Do not speculate
3480         edge that is already speuclative.
3481         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
3482         speculate to __builtin_unreachable
3483         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
3484         vptr_changed.
3485         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
3486
3487 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3488
3489         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
3490         get_dynamic_type; drop TODO.
3491         * ipa-polymorphic-call.c
3492         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
3493         for otr_type to be unknown.
3494
3495 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3496
3497         * common/config/score/score-common.c: Remove.
3498         * config.gcc: Remove support for score-*.
3499         * config/score/constraints.md: Remove.
3500         * config/score/elf.h: Remove.
3501         * config/score/predicates.md: Remove.
3502         * config/score/score-conv.h: Remove.
3503         * config/score/score-generic.md: Remove.
3504         * config/score/score-modes.def: Remove.
3505         * config/score/score-protos.h: Remove.
3506         * config/score/score.c: Remove.
3507         * config/score/score.h: Remove.
3508         * config/score/score.md: Remove.
3509         * config/score/score.opt: Remove.
3510         * doc/md.texi: Don't document score-*.
3511
3512 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3513
3514         PR pch/63429
3515         * genconditions.c: Directly include ggc.h before rtl.h.
3516
3517 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3518
3519         * ipa-polymorphic-call.c
3520         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
3521         code determining speculative type.
3522         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
3523
3524 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3525
3526         * altivec.md (altivec_lvsl): New define_expand.
3527         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
3528         (altivec_lvsr): New define_expand.
3529         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
3530         * rs6000.c (rs6000_expand_builtin): Change to use
3531         altivec_lvs[lr]_direct; remove commented-out code.
3532
3533 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3534
3535         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3536         Issue a warning message when vec_lvsl or vec_lvsr is used with a
3537         little endian target.
3538
3539 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3540
3541         * tree-pretty-print.c (dump_location): Make it extern. Dump also
3542         the column.
3543         * tree-pretty-print.h (dump_location): Declare.
3544         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
3545         (pp_gimple_stmt_1): Likewise.
3546         (dump_implicit_edges): Likewise.
3547         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
3548         LOCATION_LINE.
3549
3550
3551 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3552
3553         * gcc.c (driver::global_initializations): Remove "const" so
3554         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
3555         and decoded_options_count.
3556
3557 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
3558
3559         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
3560         macro.
3561         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
3562         TARGET_E500_DOUBLE case here.
3563
3564 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
3565
3566         PR c++/54427
3567         PR c++/57198
3568         PR c++/58845
3569         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
3570
3571 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3572
3573         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
3574         * lto-cgraph.c (lto_output_edge, input_edge): Stream
3575         in_polymorphic_cdtor
3576         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
3577         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
3578         * cgraphclones.c (cgraph_edge::clone): Likewise.
3579         * ipa-prop.c (update_jump_functions_after_inlining,
3580         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
3581         to possible_dynamic_type_change.
3582         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
3583         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3584         IN_POLY_CDOTR argument.
3585
3586         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
3587         for BASE and OUTER_TYPE being NULL.
3588         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3589         in_poly_cdtor parameter.
3590
3591 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3592
3593         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
3594         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
3595         TARGET_AVX512F.
3596         (expand_vec_perm_1): Likewise.
3597
3598 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3599             Uros Bizjak  <ubizjak@gmail.com>
3600
3601         PR tree-optimization/61403
3602         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
3603         error in comment.  Also optimize 256-bit vectors for AVX2
3604         or AVX (floating vectors only), provided the first permutation
3605         can be performed in one insn.
3606
3607 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3608
3609         * gcc.c (class driver): New class.
3610         (main): Reimplement in terms of driver::main, moving most of the
3611         locals to be locals within individual methods of class driver.
3612         The remaining locals "explicit_link_files", "decoded_options" and
3613         "decoded_options_count" are used by multiple driver:: methods, and
3614         so become member data.  Doing so isolates the argc/argv reads and
3615         writes.  Replace "goto out" with a special exit code from
3616         new method driver::prepare_infiles.  Split out the old
3617         implementation of main into the following...
3618         (driver::main): New function, corresponding to the old "main"
3619         implementation.
3620         (driver::set_progname): New function, taken from the old
3621         "main" implementation.
3622         (driver::expand_at_files): Likewise.
3623         (driver::decode_argv): Likewise.
3624         (driver::global_initializations): Likewise.
3625         (driver::build_multilib_strings): Likewise.
3626         (driver::set_up_specs): Likewise.
3627         (driver::putenv_COLLECT_GCC): Likewise.
3628         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
3629         (driver::handle_unrecognized_options): Likewise.
3630         (driver::maybe_print_and_exit): Likewise.
3631         (driver::prepare_infiles): Likewise.
3632         (driver::do_spec_on_infiles): Likewise.
3633         (driver::maybe_run_linker): Likewise.
3634         (driver::final_actions): Likewise.
3635         (driver::get_exit_code): Likewise.
3636
3637 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
3638
3639         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
3640         don't emit empty ctors.
3641
3642 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
3643
3644         * convert.c (convert_to_integer): Do not introduce useless conversions
3645         between integral types.
3646
3647 2014-10-03  David Sherwood  <david.sherwood@arm.com>
3648
3649         * ira-int.h (ira_allocno): Mark hard_regno as signed.
3650
3651 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3652
3653         * lra-constraints.c (inherit_in_ebb): Handle calls with
3654         multiple return values.
3655         * caller-save.c (save_call_clobbered_regs): Likewise.
3656
3657 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3658
3659         * tree-vect-data-refs.c (vect_permute_load_chain,
3660         vect_shift_permute_load_chain): Fix a typo in temporary var names,
3661         suffle3 to shuffle3.
3662
3663         PR libgomp/61200
3664         * omp-low.c (taskreg_contexts): New variable.
3665         (scan_omp_parallel): Push newly created context into taskreg_contexts
3666         vector and move record layout code to finish_taskreg_scan.
3667         (scan_omp_task): Likewise.
3668         (finish_taskreg_scan): New function.
3669         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3670         vector elements and release it.
3671
3672         PR target/62128
3673         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3674         of palignr arguments can't be used due to min 0 or max - min
3675         too high, try also op0, op1 order of palignr arguments.
3676
3677 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
3678
3679         * cgraph.h (ipa_polymorphic_call_context):
3680         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3681         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3682         * ipa-polymorphic-call.c
3683         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3684         past end of dynamic types.
3685         (ipa_polymorphic_call_context::stream_out,
3686         speculative_outer_type): Stream dynamic flag.
3687         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3688         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3689         Clear DYNAMIC.
3690         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3691         set it.
3692         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3693         * ipa-prop.c (update_jump_functions_after_inlining,
3694         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3695
3696 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3697
3698         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3699         up when synthesizing counts to avoid rounding errors.
3700
3701 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3702
3703         PR middle-end/63422
3704         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3705         asserts to handle incoming insanities.
3706
3707 2014-10-02  Martin Jambor  <mjambor@suse.cz>
3708
3709         PR tree-optimization/63375
3710         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3711         references.
3712
3713 2014-10-02  Olivier Hainque  <hainque@adacore.com>
3714
3715         * Makefile.in (CROSS): Define, to @CROSS.
3716
3717 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
3718
3719         PR target/62128
3720         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3721         if it expands to a single insn only.
3722         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
3723         fail unless in_order is true.  Add forward declaration.
3724         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3725         is useful for one_operand_p.
3726         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3727
3728 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3729
3730         * cgraphclones.c (build_function_type_skip_args): Do not make new
3731         type variant of old.
3732
3733 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3734
3735         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3736         when speculation is added.
3737         (ipa_edge_args): Add polymorphic_call_contexts.
3738         (ipa_get_ith_polymorhic_call_context): New accesor.
3739         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3740         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3741         (ipa_compute_jump_functions_for_edge): Compute contexts.
3742         (update_jump_functions_after_inlining): Update contexts.
3743         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3744         update dumping; add speculative edge creation.
3745         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3746         context updating.
3747         (update_indirect_edges_after_inlining): Pass down context.
3748         (ipa_edge_duplication_hook): Duplicate contexts.
3749         (ipa_write_node_info): Stream out contexts.
3750         (ipa_read_node_info): Stream in contexts.
3751         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3752         types.
3753         (try_speculative_devirtualization): New function.
3754         * ipa-utils.h (try_speculative_devirtualization): Declare.
3755
3756 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3757
3758         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3759         dumping during WPA.
3760
3761 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3762
3763         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3764         type variants.
3765
3766 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3767
3768         * ipa-polymorphic-call.c
3769         (ipa_polymorphic_call_context::restrict_to_inner_class):
3770         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3771         use speculation_consistent_p to do so; Add CONSDER_BASES
3772         and CONSIDER_PLACEMENT_NEW parameters.
3773         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3774         short circuit obvious cases.
3775         (ipa_polymorphic_call_context::dump): Improve formatting.
3776         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3777         combine_speculation_with to record speculations; Do not ICE when
3778         object is located in pointer type decl; do not ICE for methods
3779         of UNION_TYPE; do not record nonpolymorphic types.
3780         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3781         (ipa_polymorphic_call_context::combine_speculation_with): New method.
3782         (ipa_polymorphic_call_context::combine_with): New method.
3783         (ipa_polymorphic_call_context::make_speculative): Move here; use
3784         combine speculation.
3785         * cgraph.h (ipa_polymorphic_call_context): Update
3786         restrict_to_inner_class prototype; add offset_by, make_speculative,
3787         combine_with, useless_p, combine_speculation_with and
3788         speculation_consistent_p methods.
3789         (ipa_polymorphic_call_context::offset_by): New method.
3790         (ipa_polymorphic_call_context::useless_p): New method.
3791
3792 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3793
3794         PR rtl-optimization/62151
3795         * combine.c (can_combine_p): Allow the destination register of INSN
3796         to be clobbered in I3.
3797         (subst): Do not substitute into clobbers of registers.
3798
3799 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
3800
3801         PR debug/63342
3802         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3803         offset, TARGET_MEM_REF and SSA_NAME.
3804
3805         * config/i386/i386.c (expand_vec_perm_palignr): Handle
3806         256-bit vectors for TARGET_AVX2.
3807
3808         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3809         dfirst permutation.
3810
3811         PR target/63428
3812         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3813         argument to avx2_permv2ti.
3814
3815 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3816
3817         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3818
3819 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
3820
3821         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3822         (fmod<mode>3): Ditto.
3823         (fpremxf4_i387): Ditto.
3824         (reminderxf3): Ditto.
3825         (reminder<mode>3): Ditto.
3826         (fprem1xf4_i387): Ditto.
3827
3828 2014-09-30  Teresa Johnson  <tejohnson@google.com>
3829
3830         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3831         duplicate_blocks bitmap.
3832         (remove_ctrl_stmt_and_useless_edges): Ditto.
3833         (create_block_for_threading): Ditto.
3834         (compute_path_counts): New function.
3835         (update_profile): Ditto.
3836         (recompute_probabilities): Ditto.
3837         (update_joiner_offpath_counts): Ditto.
3838         (freqs_to_counts_path): Ditto.
3839         (clear_counts_path): Ditto.
3840         (ssa_fix_duplicate_block_edges): Update profile info.
3841         (ssa_create_duplicates): Pass new parameter.
3842         (ssa_redirect_edges): Remove old profile update.
3843         (thread_block_1): New duplicate_blocks bitmap,
3844         remove old profile update.
3845         (thread_single_edge): Pass new parameter.
3846
3847 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
3848
3849         PR middle-end/62120
3850         * varasm.c (decode_reg_name_and_count): Check availability for
3851         registers from ADDITIONAL_REGISTER_NAMES.
3852
3853 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
3854
3855         PR plugins/63410
3856         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3857         (PLUGIN_HEADERS): Add pass-instances.def.
3858
3859 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
3860
3861         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3862         iterator.
3863         * config/aarch64/aarch64-simd.md
3864         (aarch64_sqdmull_laneq<mode>): Expand iterator.
3865         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3866         (vqdmulls_lane_s32): Fix return type.
3867         (vqdmulls_laneq_s32): New.
3868
3869 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
3870
3871         PR inline-asm/63282
3872         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3873         or invert_jump_1 if jump isn't any_condjump_p.
3874
3875 2014-09-30  Terry Guo  <terry.guo@arm.com>
3876
3877         * config/arm/arm-cores.def (cortex-m7): New core name.
3878         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3879         (fpv5-d16): Ditto.
3880         * config/arm/arm-tables.opt: Regenerated.
3881         * config/arm/arm-tune.md: Regenerated.
3882         * config/arm/arm.h (TARGET_VFP5): New macro.
3883         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3884         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3885         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3886         * doc/invoke.texi: Document new cpu and fpu names.
3887
3888 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
3889
3890         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3891         before sinking insn.
3892
3893 2014-09-30  David Sherwood  <david.sherwood@arm.com>
3894
3895         * ira-int.h (ira_allocno): Add "wmode" field.
3896         * ira-build.c (create_insn_allocnos): Add new "parent" function
3897         parameter.
3898         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3899         that cannot be accessed in wmode.
3900
3901 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
3902
3903         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3904         integer overflow.
3905
3906 2014-09-29  Andi Kleen  <ak@linux.intel.com>
3907
3908         * opts.c (print_filtered_help): Print --param min/max/default
3909         with -Q.
3910
3911 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3912
3913         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3914
3915 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3916
3917         * tree-vrp.c (get_single_symbol): New function.
3918         (build_symbolic_expr): Likewise.
3919         (symbolic_range_based_on_p): New predicate.
3920         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3921         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
3922         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3923         operand is symbolic and based on the other operand.
3924
3925 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
3926
3927         * config/microblaze/microblaze.md (call_internal1): Use VOID
3928         instead of SI to fix "((void (*)(void)) 0)()" issue
3929
3930 2014-09-29  Nick Clifton  <nickc@redhat.com>
3931
3932         * config/msp430/msp430.c (msp430_expand_prologue): Return a
3933         CLOBBER rtx for naked functions.
3934         (msp430_expand_epilogue): Likewise.
3935         (msp430_use_f5_series_hwmult): Cache result.
3936         (use_32bit_hwmult): Cache result.
3937         (msp430_no_hwmult): New function.
3938         (msp430_output_labelref): Use it.
3939
3940 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
3941
3942         PR middle-end/63247
3943         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3944         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3945         use the alignment of avar rather than ovar.
3946
3947 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
3948
3949         * config/pa/pa.c (pa_output_function_epilogue): Only update
3950         last_address when a nonnote insn is found.
3951
3952 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3953
3954         PR ipa/60665
3955         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3956
3957 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3958
3959         PR ipa/62121
3960         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3961         fix pasto in checking array size.
3962
3963 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3964
3965         PR middle-end/35545
3966         * passes.def (pass_tracer): Move before last dominator pass.
3967
3968 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
3969
3970         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
3971         users.
3972         (run_attempt): Handle errors of "pex_run" invocation.
3973
3974 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
3975
3976         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3977         (CC1_SPEC): Define.
3978         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3979         (TARGET_ASAN_SHADOW_OFFSET): Define.
3980
3981 2014-09-26  Martin Liska  <mliska@suse.cz>
3982
3983         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3984         introduced.
3985         * cgraph.h: Likewise.
3986         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3987         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3988         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3989         * tree-ssa-alias.h: Likewise.
3990
3991 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
3992             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3993
3994         * common.opt: New option.
3995         * doc/invoke.texi: Describe new option.
3996         * gcc.c (execute): Don't free first string early, but at the end
3997         of the function.  Call retry_ice if compiler exited with
3998         ICE_EXIT_CODE.
3999         (main): Factor out common code.
4000         (print_configuration): New function.
4001         (files_equal_p): Likewise.
4002         (check_repro): Likewise.
4003         (run_attempt): Likewise.
4004         (do_report_bug): Likewise.
4005         (append_text): Likewise.
4006         (try_generate_repro): Likewise
4007
4008 2014-09-25  Andi Kleen  <ak@linux.intel.com>
4009
4010         * config/i386/i386.c (x86_print_call_or_nop): New function.
4011         (x86_function_profiler): Support -mnop-mcount and
4012         -mrecord-mcount.
4013         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
4014         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
4015
4016 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
4017
4018         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
4019         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
4020         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
4021         Remove.
4022
4023 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
4024
4025         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
4026         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
4027         types_odr_comparable): Declare.
4028         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
4029         * ipa-polymorphic-call.c: New file.
4030         (contains_polymorphic_type_p, possible_placement_new,
4031         ipa_polymorphic_call_context::restrict_to_inner_class,
4032         contains_type_p, decl_maybe_in_construction_p,
4033         ipa_polymorphic_call_context::stream_out,
4034         ipa_polymorphic_call_context::debug,
4035         ipa_polymorphic_call_context::stream_in,
4036         ipa_polymorphic_call_context::set_by_decl,
4037         ipa_polymorphic_call_context::set_by_invariant,
4038         walk_ssa_copies,
4039         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4040         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
4041         extr_type_from_vtbl_ptr_store, record_known_type
4042         check_stmt_for_type_change,
4043         ipa_polymorphic_call_context::get_dynamic_type): Move here from
4044         ipa-devirt.c
4045         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
4046         and streamer-hooks.h
4047         (contains_polymorphic_type_p, possible_placement_new,
4048         ipa_polymorphic_call_context::restrict_to_inner_class,
4049         contains_type_p, decl_maybe_in_construction_p,
4050         ipa_polymorphic_call_context::stream_out,
4051         ipa_polymorphic_call_context::debug,
4052         ipa_polymorphic_call_context::stream_in,
4053         ipa_polymorphic_call_context::set_by_decl,
4054         ipa_polymorphic_call_context::set_by_invariant,
4055         walk_ssa_copies,
4056         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4057         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
4058         extr_type_from_vtbl_ptr_store, record_known_type
4059         check_stmt_for_type_change,
4060         ipa_polymorphic_call_context::get_dynamic_type): Move to
4061         ipa-polymorphic-call.c
4062         (type_all_derivations_known_p, types_odr_comparable,
4063         types_must_be_same_for_odr): Export.
4064         (type_known_to_have_no_deriavations_p): New function.
4065         * Makefile.in: Add ipa-polymorphic-call.c
4066
4067 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
4068
4069         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
4070         for better storage.
4071         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
4072         (possible_polymorphic_call_targets): Instead of computing both
4073         speculative and non-speculative answers, do just one at a time.
4074         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
4075         (dump_targets): Break out from ...
4076         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
4077         and non-speculative lists.
4078         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
4079         * ipa-utils.h (possible_polymorphic_call_targets): Update.
4080
4081 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
4082
4083         PR rtl-optimization/63348
4084         * emit-rtl.c (try_split): Do not emit extra barrier.
4085
4086 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
4087
4088         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
4089         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
4090         new predicates.
4091         (aarch64_<sur>shll2_n<mode>): Likewise.
4092         (aarch64_<sur>shr_n<mode>): Likewise.
4093         (aarch64_<sur>sra_n<mode>: Likewise.
4094         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
4095         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
4096         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
4097         * config/aarch64/iterators.md (ve_mode): New.
4098         (offsetlr): Remap to infix text for use in new predicates.
4099         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
4100         (aarch64_simd_shift_imm_hi): Likewise.
4101         (aarch64_simd_shift_imm_si): Likewise.
4102         (aarch64_simd_shift_imm_di): Likewise.
4103         (aarch64_simd_shift_imm_offset_qi): Likewise.
4104         (aarch64_simd_shift_imm_offset_hi): Likewise.
4105         (aarch64_simd_shift_imm_offset_si): Likewise.
4106         (aarch64_simd_shift_imm_offset_di): Likewise.
4107         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
4108         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
4109         (aarch64_simd_shift_imm_bitsize_si): Likewise.
4110         (aarch64_simd_shift_imm_bitsize_di): Likewise.
4111
4112 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
4113
4114         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
4115         new created BB as the intersection of live-in from "old_dest" and
4116         live-out from "bb".
4117
4118 2014-09-25  Felix Yang  <felix.yang@huawei.com>
4119
4120         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
4121         * genautomata.c (merge_states): Ditto.
4122
4123 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4124
4125         PR target/62218
4126         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
4127         in instruction sequence.
4128
4129 2014-09-25  Nick Clifton  <nickc@redhat.com>
4130
4131         PR target/62218
4132         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
4133         in instruction sequence.
4134
4135 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4136
4137         PR target/63335
4138         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
4139         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
4140
4141 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4142             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4143             Anna Tikhonova  <anna.tikhonova@intel.com>
4144             Ilya Tocar  <ilya.tocar@intel.com>
4145             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4146             Ilya Verbin  <ilya.verbin@intel.com>
4147             Kirill Yukhin  <kirill.yukhin@intel.com>
4148             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4149
4150         * config/i386/sse.md
4151         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
4152         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
4153         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
4154         (define_expand "<avx512>_perm<mode>_mask"): ... this.
4155         Use VI8F_256_512 mode iterator.
4156         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
4157         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
4158
4159 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4160             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4161             Anna Tikhonova  <anna.tikhonova@intel.com>
4162             Ilya Tocar  <ilya.tocar@intel.com>
4163             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4164             Ilya Verbin  <ilya.verbin@intel.com>
4165             Kirill Yukhin  <kirill.yukhin@intel.com>
4166             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4167
4168         * config/i386/sse.md
4169         (define_insn "avx_movshdup256<mask_name>"): Add masking.
4170         (define_insn "sse3_movshdup<mask_name>"): Ditto.
4171         (define_insn "avx_movsldup256<mask_name>"): Ditto.
4172         (define_insn "sse3_movsldup<mask_name>"): Ditto.
4173         (define_insn "vec_dupv2df<mask_name>"): Ditto.
4174         (define_insn "*vec_concatv2df"): Add EVEX version.
4175
4176 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4177             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4178             Anna Tikhonova  <anna.tikhonova@intel.com>
4179             Ilya Tocar  <ilya.tocar@intel.com>
4180             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4181             Ilya Verbin  <ilya.verbin@intel.com>
4182             Kirill Yukhin  <kirill.yukhin@intel.com>
4183             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4184
4185         * config/i386/sse.md
4186         (define_insn "vec_set<mode>_0"): Add EVEX version.
4187
4188 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4189             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4190             Anna Tikhonova  <anna.tikhonova@intel.com>
4191             Ilya Tocar  <ilya.tocar@intel.com>
4192             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4193             Ilya Verbin  <ilya.verbin@intel.com>
4194             Kirill Yukhin  <kirill.yukhin@intel.com>
4195             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4196
4197         * config/i386/sse.md
4198         (define_insn
4199         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
4200         New.
4201         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4202         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
4203         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
4204         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
4205         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
4206         (define_expand "sse2_cvtpd2ps_mask): New.
4207         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
4208         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
4209
4210 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4211             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4212             Anna Tikhonova  <anna.tikhonova@intel.com>
4213             Ilya Tocar  <ilya.tocar@intel.com>
4214             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4215             Ilya Verbin  <ilya.verbin@intel.com>
4216             Kirill Yukhin  <kirill.yukhin@intel.com>
4217             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4218
4219         * config/i386/i386.c
4220         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
4221         (ufix_notruncv8dfv8si2_mask_round): ... this.
4222         * config/i386/sse.md
4223         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
4224         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
4225         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
4226         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
4227         (define_expand "sse2_cvtpd2dq"): Delete.
4228         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
4229         make 2nd operand const0 vector.
4230         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
4231         Delete.
4232         (define_mode_attr pd2udqsuff): New.
4233         (define_insn
4234         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
4235         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
4236         (define_insn "*avx_cvttpd2dq256_2"): Delete.
4237         (define_expand "sse2_cvttpd2dq"): Ditto.
4238         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
4239         make 2nd operand const0 vector.
4240
4241 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
4242
4243         PR tree-optimization/63341
4244         * tree-vectorizer.h (vect_create_data_ref_ptr,
4245         vect_create_addr_base_for_vector_ref): Add another tree argument
4246         defaulting to NULL_TREE.
4247         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
4248         argument, pass it down to vect_create_addr_base_for_vector_ref.
4249         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
4250         add that to base_offset too if non-NULL.
4251         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
4252         for dr_explicit_realign_optimized set it to vector byte size
4253         - 1 instead of setting offset, pass byte_offset down to
4254         vect_create_data_ref_ptr.
4255
4256 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4257
4258         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
4259         forgotten debug output; canonicalize querries more wtih LTO.
4260
4261 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4262
4263         * cgraph.h (class ipa_polymorphic_call_context): Move here from
4264         ipa-utils.h; add stream_int and stream_out methods.
4265         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
4266         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
4267         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
4268         add CONTEXT.
4269         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4270         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4271         ipa_polymorphic_call_context::clear_speculation,
4272         ipa_polymorphic_call_context::clear_outer_type): Move here from
4273         ipa-utils.h
4274         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
4275         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4276         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4277         ipa_polymorphic_call_context::clear_speculation,
4278         ipa_polymorphic_call_context::clear_outer_type): Likewise.
4279         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
4280         streamer-hooks.h
4281         (ipa_polymorphic_call_context::stream_out): New method.
4282         (ipa_polymorphic_call_context::stream_in): New method.
4283         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
4284         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
4285         OUTER_TYPE.
4286         (ipa_analyze_call_uses): Simplify.
4287         (update_indirect_edges_after_inlining): Do not care about outer_type.
4288         (ipa_write_indirect_edge_info): Update.
4289         (ipa_write_indirect_edge_info): Likewise.
4290         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
4291         (dump_edge_flags): Break out from ...
4292         (cgraph_node::dump): ... here; dump indirect edges.
4293
4294 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4295
4296         * ipa-utils.h (polymorphic_call_context): Add
4297         metdhos dump, debug and clear_outer_type.
4298         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4299         (ipa_polymorphic_call_context::clear_outer_type): New method.
4300         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
4301         * ipa-devirt.c (types_odr_comparable): New function.
4302         (types_must_be_same_for_odr): New function.
4303         (odr_subtypes_equivalent_p): Simplify.
4304         (possible_placement_new): Break out from ...
4305         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
4306         be more cuatious about returning false in cases the context may be
4307         valid in derived type or via placement new.
4308         (contains_type_p): Clear maybe_derived_type
4309         (ipa_polymorphic_call_context::dump): New method.
4310         (ipa_polymorphic_call_context::debug): New method.
4311         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
4312         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
4313         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4314         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
4315         to suceed on all valid cases; remove confused sanity check.
4316         (dump_possible_polymorphic_call_targets): Simplify.
4317
4318 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
4319
4320         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
4321         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
4322         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
4323         varpool.c: Rename all instances of DECL_ABSTRACT to
4324         DECL_ABSTRACT_P.
4325
4326 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4327
4328         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
4329         special handling for stores whose SET_SRC is an UNSPEC (such as
4330         UNSPEC_STVE).
4331
4332 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
4333
4334         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
4335         !REG_P (src) to release more instruction sink opportunities.
4336
4337 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4338
4339         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
4340         move costs for 128-bit types.
4341
4342 2014-09-24  Martin Jambor  <mjambor@suse.cz>
4343
4344         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
4345         when duplicating a PASS_THROUGH jump function when creating a
4346         speculative edge.
4347
4348 2014-09-24  Marek Polacek  <polacek@redhat.com>
4349
4350         PR c/61405
4351         PR c/53874
4352         * asan.c (maybe_instrument_call): Add default case.
4353         * ipa-pure-const.c (special_builtin_state): Likewise.
4354         * predict.c (expr_expected_value_1): Likewise.
4355         * lto-streamer-out.c (write_symbol): Initialize variable.
4356
4357 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4358
4359         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
4360         the lane.
4361         (vmuld_laneq_f64): Likewise.
4362         (vmuls_lane_f32): Likewise.
4363         (vmuls_laneq_f32): Likewise.
4364
4365 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
4366
4367         PR bootstrap/63235
4368         * varpool.c (varpool_node::add): Pass decl attributes
4369         to lookup_attribute.
4370
4371 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
4372
4373         PR sanitizer/63316
4374         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
4375
4376 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4377
4378         PR tree-optimization/63266
4379         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
4380         marker for unknown byte value.
4381         (MARKER_MASK): New macro.
4382         (MARKER_BYTE_UNKNOWN): New macro.
4383         (HEAD_MARKER): New macro.
4384         (do_shift_rotate): Mark bytes with unknown values due to sign
4385         extension when doing an arithmetic right shift. Replace hardcoded
4386         mask for marker by new MARKER_MASK macro.
4387         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
4388         numbers accordingly.
4389
4390 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4391             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4392             Anna Tikhonova  <anna.tikhonova@intel.com>
4393             Ilya Tocar  <ilya.tocar@intel.com>
4394             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4395             Ilya Verbin  <ilya.verbin@intel.com>
4396             Kirill Yukhin  <kirill.yukhin@intel.com>
4397             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4398
4399         * config/i386/sse.md
4400         (define_insn
4401         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
4402         Add masking.
4403         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
4404         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
4405
4406 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4407             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4408             Anna Tikhonova  <anna.tikhonova@intel.com>
4409             Ilya Tocar  <ilya.tocar@intel.com>
4410             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4411             Ilya Verbin  <ilya.verbin@intel.com>
4412             Kirill Yukhin  <kirill.yukhin@intel.com>
4413             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4414
4415         * config/i386/sse.md
4416         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
4417         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
4418         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
4419         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
4420         (define_expand "avx512vl_pshuflw_mask"): New.
4421         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
4422         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
4423         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
4424         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
4425         (define_expand "avx512vl_pshufhw_mask"): New.
4426         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
4427
4428 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4429             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4430             Anna Tikhonova  <anna.tikhonova@intel.com>
4431             Ilya Tocar  <ilya.tocar@intel.com>
4432             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4433             Ilya Verbin  <ilya.verbin@intel.com>
4434             Kirill Yukhin  <kirill.yukhin@intel.com>
4435             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4436
4437         * config/i386/i386.c
4438         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
4439         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
4440         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
4441         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
4442         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
4443         * config/i386/sse.md
4444         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
4445         (define_insn
4446         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
4447         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
4448         (define_insn
4449         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
4450         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
4451         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
4452         (define_expand "avx512vl_pshufd_mask"): New.
4453         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
4454
4455 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4456             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4457             Anna Tikhonova  <anna.tikhonova@intel.com>
4458             Ilya Tocar  <ilya.tocar@intel.com>
4459             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4460             Ilya Verbin  <ilya.verbin@intel.com>
4461             Kirill Yukhin  <kirill.yukhin@intel.com>
4462             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4463
4464         * config/i386/i386.c
4465         (CODE_FOR_avx2_extracti128): Rename to ...
4466         (CODE_FOR_avx_vextractf128v4di): this.
4467         (CODE_FOR_avx2_inserti128): Rename to ...
4468         (CODE_FOR_avx_vinsertf128v4di): this.
4469         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
4470         CODE_FOR_avx_vextractf128v4di.
4471         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
4472         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
4473         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
4474         CODE_FOR_avx512vl_vinsertv8si.
4475         * config/i386/sse.md
4476         (define_expand
4477         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
4478         AVX512_VEC mode iterator.
4479         (define_insn
4480         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
4481         Ditto.
4482         (define_expand
4483         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
4484         AVX512_VEC_2 mode iterator.
4485         (define_insn "vec_set_lo_<mode><mask_name>"): New.
4486         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4487         (define_expand "avx512vl_vinsert<mode>"): Ditto.
4488         (define_insn "avx2_vec_set_lo_v4di"): Delete.
4489         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
4490         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
4491         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4492         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
4493         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4494         (define_expand "avx2_extracti128"): Delete.
4495         (define_expand "avx2_inserti128"): Ditto.
4496
4497 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4498             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4499             Anna Tikhonova  <anna.tikhonova@intel.com>
4500             Ilya Tocar  <ilya.tocar@intel.com>
4501             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4502             Ilya Verbin  <ilya.verbin@intel.com>
4503             Kirill Yukhin  <kirill.yukhin@intel.com>
4504             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4505
4506         * config/i386/sse.md
4507         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
4508         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
4509         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
4510         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
4511         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
4512         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
4513         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
4514         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
4515         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
4516         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
4517         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
4518         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
4519         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
4520
4521 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4522
4523         PR rtl-optimization/63210
4524         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
4525         HARD_REGNO is not available for CONFLICT_A.
4526
4527 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4528
4529         * cgraph.h (symtab_node): Add no_reorder attribute.
4530         (symbol_table::output_asm_statements): Remove.
4531         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
4532         (cgraph_node::create_version_clone): Dito.
4533         (symbol_table::output_asm_statements): Remove.
4534         * trans-mem.c (ipa_tm_create_version_alias): Dito.
4535         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
4536         (output_in_order): Add no_reorder flag. Only handle no_reorder
4537         nodes when set.
4538         (symbol_table::compile): Add separate pass for no_reorder nodes.
4539         (process_common_attributes): Set no_reorder flag in symtab node.
4540         Add node argument.
4541         (process_function_and_variable_attributes): Pass symtab nodes to
4542         process_common_attributes.
4543         * doc/extend.texi (no_reorder): Document no_reorder attribute.
4544         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
4545         (lto_output_varpool_node): Dito.
4546         (input_overwrite_node): Dito.
4547         (input_varpool_node): Dito.
4548         * varpool.c (varpool_node::add): Set no_reorder attribute.
4549         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
4550         (symbol_table::output_variables): Dito.
4551         * symtab.c (symtab_node::dump_base): Print no_reorder.
4552
4553 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
4554
4555         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
4556         be INVALID_REGNUM.
4557
4558 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4559
4560         * configure: Regenerate.
4561
4562 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
4563
4564         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
4565         when result_mode == shift_mode.
4566
4567 2014-09-23  Kostya Serebryany  <kcc@google.com>
4568
4569         Update to match the changed asan API.
4570         * asan.c (asan_global_struct): Update the __asan_global definition
4571         to match the new API.
4572         (asan_add_global): Ditto.
4573         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
4574         to __asan_init_v4.
4575
4576 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4577
4578         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
4579         refine the constraints used on 32/64-bit floating point moves.
4580         (f32_av): Likewise.
4581         (f64_vsx): Likewise.
4582         (f64_dm): Likewise.
4583         (f64_av): Likewise.
4584         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
4585         (BOOL_REGS_OP1): Likewise.
4586         (BOOL_REGS_OP2): Likewise.
4587         (BOOL_REGS_UNARY): Likewise.
4588         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
4589         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
4590         for moves involving VSX registers.  Do not use constraints that
4591         target VSX registers for decimal types.
4592         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
4593         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
4594
4595 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
4596
4597         * tree.h (int_bit_position): Turn into inline function;
4598         implement using wide int.
4599         * tree.c (int_bit_position): Remove.
4600
4601 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
4602
4603         PR bootstrap/63280
4604         * target-globals.c (target_globals::~target_globals): Fix location
4605         of ira_int destruction.
4606
4607 2014-09-23  Renlin Li  <renlin.li@arm.com>
4608
4609         * config/aarch64/aarch64.md (return): New.
4610         (simple_return): Likewise.
4611         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
4612         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
4613
4614 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
4615
4616         * common/config/aarch64/aarch64-common.c:
4617         (default_options aarch_option_optimization_table):
4618         Default to -fsched-pressure.
4619
4620 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
4621
4622         * cfgcleanup.c (try_optimize_cfg): Do not remove label
4623         with LABEL_PRESERVE_P flag set.
4624
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>
4633
4634         * config/i386/sse.md
4635         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
4636         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
4637         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
4638         (define_insn "sse2_shufpd_v2df_mask"): New.
4639
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>
4648
4649         * config/i386/sse.md
4650         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
4651         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4652         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4653         (define_insn "sse_shufps_v4sf_mask"): New.
4654
4655 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4656             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4657             Anna Tikhonova  <anna.tikhonova@intel.com>
4658             Ilya Tocar  <ilya.tocar@intel.com>
4659             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4660             Ilya Verbin  <ilya.verbin@intel.com>
4661             Kirill Yukhin  <kirill.yukhin@intel.com>
4662             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4663
4664         * config/i386/sse.md
4665         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4666         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4667         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4668         (define_insn "unpcklps128_mask"): New.
4669
4670 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4671             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4672             Anna Tikhonova  <anna.tikhonova@intel.com>
4673             Ilya Tocar  <ilya.tocar@intel.com>
4674             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4675             Ilya Verbin  <ilya.verbin@intel.com>
4676             Kirill Yukhin  <kirill.yukhin@intel.com>
4677             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4678
4679         * config/i386/sse.md
4680         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4681         (define_insn "avx512vl_unpckhpd128_mask"): New.
4682         (define_expand "avx_movddup256<mask_name>"): Add masking.
4683         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4684         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4685         (define_insn "avx512vl_unpcklpd128_mask"): New.
4686
4687 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4688
4689         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4690         * doc/tm.texi: Regenerate.
4691         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4692         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4693         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4694         Remove.
4695         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4696         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4697         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4698         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4699         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4700         Remove.
4701         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4702         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4703         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4704         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4705         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4706         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4707         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4708         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4709         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4710         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4711         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4712         Remove.
4713
4714 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
4715
4716         * tree-ssa-ccp.c (prop_value_d): Rename to ...
4717         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4718         * ipa-prop.c (struct type_change_info): Rename to ...
4719         (prop_type_change_info): ... this; update uses.
4720         * ggc-page.c (globals): Rename to ...
4721         (static struct ggc_globals): ... this; update uses.
4722         * tree-ssa-loop-im.c (mem_ref): Rename to ...
4723         (im_mem_ref): ... this; update uses.
4724         * ggc-common.c (loc_descriptor): Rename to ...
4725         (ggc_loc_descriptor): ... this; update uses.
4726         * lra-eliminations.c (elim_table): Rename to ...
4727         (lra_elim_table): ... this; update uses.
4728         * bitmap.c (output_info): Rename to ...
4729         (bitmap_output_info): ... this; update uses.
4730         * gcse.c (expr): Rename to ...
4731         (gcse_expr) ... this; update uses.
4732         (occr): Rename to ...
4733         (gcse_occr): .. this; update uses.
4734         * tree-ssa-copy.c (prop_value_d): Rename to ...
4735         (prop_value_t): ... this.
4736         * predict.c (block_info_def): Rename to ...
4737         (block_info): ... this; update uses.
4738         (edge_info_def): Rename to ...
4739         (edge_info): ... this; update uses.
4740         * profile.c (bb_info): Rename to ...
4741         (bb_profile_info): ... this; update uses.
4742         * alloc-pool.c (output_info): Rename to ...
4743         (pool_output_info): ... this; update uses.
4744         * ipa-cp.c (topo_info): Rename to ..
4745         (ipa_topo_info): ... this; update uses.
4746         * tree-nrv.c (nrv_data): Rename to ...
4747         (nrv_data_t): ... this; update uses.
4748         * ipa-split.c (bb_info): Rename to ...
4749         (split_bb_info): ... this one.
4750         * profile.h (edge_info): Rename to ...
4751         (edge_profile_info): ... this one; update uses.
4752         * dse.c (bb_info): Rename to ...
4753         (dse_bb_info): ... this one; update uses.
4754         * cprop.c (occr): Rename to ...
4755         (cprop_occr): ... this one; update uses.
4756         (expr): Rename to ...
4757         (cprop_expr): ... this one; update uses.
4758
4759 2014-09-22  Jason Merrill  <jason@redhat.com>
4760
4761         * Makefile.in (check-parallel-%): Add @.
4762
4763 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4764
4765         * config/aarch64/geniterators.sh: New.
4766         * config/aarch64/iterators.md (VDQF_DF): New.
4767         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4768         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4769
4770 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
4771
4772         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4773         -lnosys when -msim absent.
4774
4775 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
4776
4777         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4778
4779 2014-09-22  Richard Biener  <rguenther@suse.de>
4780
4781         * gimplify.c (gimplify_init_constructor): Do not leave
4782         non-GIMPLE vector constructors around.
4783         * tree-cfg.c (verify_gimple_assign_single): Verify that
4784         CONSTRUCTORs have gimple elements.
4785
4786 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
4787
4788         PR debug/63328
4789         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4790         insert a debug source bind stmt setting DEBUG_EXPR_DECL
4791         instead of a normal gimple assignment stmt.
4792
4793 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4794
4795         * config/bfin/bfin.md: Fix use of constraints in define_split.
4796
4797 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4798
4799         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4800         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4801
4802 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4803
4804         * hard-reg-set.h: Include hash-table.h.
4805         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4806         field.
4807         * target-globals.c (target_globals::~target_globals): Call
4808         hard_regs->finalize.
4809         * rtl.h (subreg_shape): New structure.
4810         (shape_of_subreg): New function.
4811         (simplifiable_subregs): Declare.
4812         * reginfo.c (simplifiable_subreg): New structure.
4813         (simplifiable_subregs_hasher): Likewise.
4814         (simplifiable_subregs): New function.
4815         (invalid_mode_changes): Delete.
4816         (alid_mode_changes, valid_mode_changes_obstack): New variables.
4817         (record_subregs_of_mode): Remove subregs_of_mode parameter.
4818         Record valid mode changes in valid_mode_changes.
4819         (find_subregs_of_mode): Remove subregs_of_mode parameter.
4820         Update calls to record_subregs_of_mode.
4821         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4822         handling.  Initialize new variables.  Update call to
4823         find_subregs_of_mode.
4824         (invalid_mode_change_p): Check new variables instead of
4825         invalid_mode_changes.
4826         (finish_subregs_of_mode): Finalize new variables instead of
4827         invalid_mode_changes.
4828         (target_hard_regs::finalize): New function.
4829         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4830         even when CLASS_CANNOT_CHANGE_MODE is undefined.
4831
4832 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4833
4834         * combine.c (subst): Use simplify_subreg_regno rather than
4835         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4836
4837 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4838
4839         * rtl.h (subreg_info): Expand commentary
4840         * rtlanal.c (subreg_get_info): Likewise.
4841
4842 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4843
4844         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4845         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4846         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4847
4848 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4849
4850         * config/arm/arm.c: #include "tm-constrs.h"
4851         (thumb1_size_rtx_costs): Adjust rtx costs.
4852
4853 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
4854
4855         * configure.ac (target_header_dir): Move block defining
4856         this to before the block setting inhibit_libc.
4857         (inhibit_libc): When considering $with_headers, just
4858         check it it's explicitly "no".  If not, also check if
4859         $target_header_dir/stdio.h is present.  If not, set
4860         inhibit_libc=true.
4861         * configure: Regenerate.
4862
4863 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
4864
4865         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4866
4867 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4868
4869         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
4870         insn for divides by integer powers of two.
4871         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4872         (mod<mode>3): Fix formatting.
4873         (three anonymous define_insn and two define_split): Delete.
4874
4875 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4876
4877         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4878         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4879         (floatdisf2_internal2): Ditto.
4880         (ashrdi3_no_power): Ditto.  Fix formatting.
4881
4882 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4883
4884         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4885         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4886         Tidy.
4887
4888 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4889
4890         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4891         constant, use addsi3 directly.
4892         (three anonymous define_insn, two define_split): Delete.
4893         (sub<mode>3): Move.  Do not allow constant second operand.
4894         Generate different insn for constant first operand.
4895         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4896         (subf<mode>3_imm): New.
4897         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4898         (*plus_ltu<mode>): Only handle registers.
4899         (*plus_ltu<mode>_1): New.  Handle integer third operand.
4900         (*plus_gtu<mode>): Only handle registers.
4901         (*plus_gtu<mode>_1): New.  Handle integer third operand.
4902
4903 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4904
4905         * config/rs6000/rs6000.md (iorxor): New code_iterator.
4906         (iorxor): New code_attr.
4907         (IORXOR): New code_attr.
4908         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4909         (ior<mode>3, xor<mode>3): Delete.
4910         (<iorxor><mode>3): New.
4911         (splitter for "big" integer ior, xor): New.
4912         (*bool<mode>3): Move.  Also handle AND.
4913         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4914         (splitter for "big" integer ior, xor): Delete.
4915
4916 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4917
4918         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4919         (two anonymous define_insn and two define_split): Delete.
4920         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4921
4922 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4923
4924         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4925         (two anonymous define_insn and two define_split): Delete.
4926         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4927
4928 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4929
4930         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4931
4932 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4933
4934         * config/rs6000/predicates.md (ca_operand): Allow subregs.
4935         (input_operand): Do not allow ca_operand.
4936         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4937         carry bit, allow SImode and Pmode.
4938         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4939
4940 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
4941
4942         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4943         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
4944         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4945         (*call_rex64_ms_sysv): Remove.
4946         (*call_value_rex64_ms_sysv): Ditto.
4947         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4948
4949 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
4950
4951         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4952         operand 3 to "CnL".
4953
4954 2014-09-20  Andreas Schwab  <schwab@suse.de>
4955
4956         * config/ia64/ia64.md: Remove constraints from define_split
4957         patterns.
4958
4959 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4960
4961         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4962         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4963         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4964         (get_dynamic_type): Remove.
4965         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4966         (clear_speculation): Bring to ipa-deivrt.h
4967         (get_class_context): Rename to ...
4968         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4969         (contains_type_p): Update.
4970         (get_dynamic_type): Rename to ...
4971         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4972         (possible_polymorphic_call_targets): UPdate.
4973         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4974         * ipa-prop.c (ipa_analyze_call_uses): Update.
4975
4976 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4977
4978         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4979         privatize dynamic TLS variables.
4980
4981 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4982
4983         * diagnostic.c (warning_n): New function.
4984         * diagnostic-core.h (warning_n): Declare.
4985         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4986         output dynamic counts when available.
4987
4988 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4989
4990         PR tree-optimization/63255
4991         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4992         issue in setting body_removed flag.
4993
4994 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4995
4996         PR c++/61825
4997         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4998         that visibility change is possible
4999         (handle_weakref_attribute): Likewise.
5000         * cgraph.h (symtab_node): Add method get_create and
5001         field refuse_visibility_changes.
5002         (symtab_node::get_create): New method.
5003         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
5004         * varasm.c (mark_weak): Verify that visibility change is
5005         possible.
5006
5007 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
5008
5009         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
5010         for base_reg_operand to be common between LO_SUM and PLUS.
5011         (fusion_gpr_mem_combo): New predicate to match a fused address
5012         that combines the addis and memory offset address.
5013
5014         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
5015         calling signature.
5016         (emit_fusion_gpr_load): Likewise.
5017
5018         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
5019         signature to pass each argument separately, rather than
5020         using an operands array.  Rewrite the insns found by peephole2 to
5021         be a single insn, rather than hoping the insns will still be
5022         together when the peephole pass is done.  Drop being called via a
5023         normal peephole.
5024         (emit_fusion_gpr_load): Change calling signature to be called from
5025         the fusion_gpr_load_<mode> insns with a combined memory address
5026         instead of the peephole pass passing the addis and offset
5027         separately.
5028
5029         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
5030         fusion.
5031         (power8 fusion peephole): Drop support for doing power8 via a
5032         normal peephole that was created by the peephole2 pass.
5033         (power8 fusion peephole2): Create a new insn with the fused
5034         address, so that the fused operation is kept together after
5035         register allocation is done.
5036         (fusion_gpr_load_<mode>): Likewise.
5037
5038 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
5039
5040         PR lto/63286
5041         * tree.c (need_assembler_name_p): Do not mangle variadic types.
5042
5043 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
5044
5045         * recog.c (scratch_operand): Do not simply allow all hard registers:
5046         only allow those that are allocatable.
5047
5048 2014-09-19  Felix Yang  <felix.yang@huawei.com>
5049
5050         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
5051         comments and fix spacing to conform to coding style.
5052
5053 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
5054
5055         * genrecog.c (validate_pattern): Allow empty constraints in
5056         a match_scratch.
5057
5058 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
5059
5060         * dwarf2out.c (decl_ultimate_origin): Update comment.
5061         * tree.c (block_ultimate_origin): Same.
5062
5063 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5064
5065         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
5066         Update GCC version name to GCC 5.
5067         (rs6000_function_arg_boundary): Likewise.
5068         (rs6000_function_arg): Likewise.
5069
5070 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
5071
5072         * config/sh/sh.md: Fix use of constraints in define_split.
5073
5074 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
5075
5076         PR ipa/61998
5077         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
5078
5079 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
5080
5081         * doc/md.texi (Modifiers): Consistently use "read/write"
5082         nomenclature rather than "input/output".
5083         * genrecog.c (constraints_supported_in_insn_p): New.
5084         (validate_pattern): If needed, also check constraints on
5085         MATCH_SCRATCH operands.
5086         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
5087         operands with no '=' or '+' modifier.
5088
5089 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
5090
5091         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
5092         scratch register as written.
5093
5094 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5095
5096         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
5097         assignment.
5098
5099 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5100
5101         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
5102         expanders.
5103
5104 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5105
5106         PR target/62662
5107         * config/s390/s390.c (s390_emit_epilogue): When doing the return
5108         address load optimization force s390_optimize_prologue to leave it
5109         that way.  Only do the optimization if we already decided to push
5110         r14 into a stack slot.
5111
5112 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
5113
5114         * asan.c (build_check_stmt): Alignment arg was added.
5115         (asan_expand_check_ifn): Optimization for alignment >= 8.
5116
5117 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5118
5119         * config/i386/vxworksae.h: Remove obsolete definitions.
5120         (STACK_CHECK_PROTECT): Define.
5121         * config/i386/vx-common.h: Remove.  Merge contents within
5122         config/i386/vxworks.h.
5123         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
5124         i386/vx-common.h.
5125
5126 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5127
5128         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
5129         * config/rs6000/t-vxworksmils: New file.
5130         * config/rs6000/vxworksmils.h: New file.
5131
5132 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5133
5134         * varasm.c (default_section_type_flags): Flag .persistent.bss
5135         sections as SECTION_BSS.
5136
5137 2014-09-19  Nick Clifton  <nickc@redhat.com>
5138
5139         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
5140         pop'ed registers so that DCE does not eliminate them.
5141
5142 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
5143
5144         PR lto/63298
5145         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
5146
5147 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
5148
5149         * system.h (LIBGCC2_TF_CEXT): Poison.
5150         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
5151         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
5152         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
5153         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
5154         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
5155         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
5156         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
5157         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
5158         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
5159
5160 2014-09-19  Kito Cheng  <kito@0xlab.org>
5161
5162         * except.h: Fix header guard.
5163         * addresses.h: Add missing header guard.
5164         * cfghooks.h: Likewise.
5165         * collect-utils.h: Likewise.
5166         * collect2-aix.h: Likewise.
5167         * conditions.h: Likewise.
5168         * cselib.h: Likewise.
5169         * dwarf2asm.h: Likewise.
5170         * graphds.h: Likewise.
5171         * graphite-scop-detection.h: Likewise.
5172         * gsyms.h: Likewise.
5173         * hw-doloop.h: Likewise.
5174         * incpath.h: Likewise.
5175         * ipa-inline.h: Likewise.
5176         * ipa-ref.h: Likewise.
5177         * ira-int.h: Likewise.
5178         * ira.h: Likewise.
5179         * lra-int.h: Likewise.
5180         * lra.h: Likewise.
5181         * lto-section-names.h: Likewise.
5182         * read-md.h: Likewise.
5183         * reload.h: Likewise.
5184         * rtl-error.h: Likewise.
5185         * sdbout.h: Likewise.
5186         * targhooks.h: Likewise.
5187         * tree-affine.h: Likewise.
5188         * xcoff.h: Likewise.
5189         * xcoffout.h: Likewise.
5190
5191 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5192
5193         PR debug/63285
5194         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
5195         if advance != 0.
5196
5197 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5198
5199         PR target/61360
5200         * lra.c (lra): Call recog_init.
5201
5202 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
5203
5204         PR c++/62017
5205         * asan.c (transform_statements): Don't instrument clobber statements.
5206
5207 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5208
5209         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
5210         to neon_load1_1reg<q>.
5211
5212 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
5213
5214         PR debug/63284
5215         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
5216         if there are only debug stmts after the noreturn call, instead
5217         remove the debug stmts.
5218
5219 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
5220
5221         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
5222         (odr_types_equivalent_p): Use pair hash.
5223         (odr_subtypes_equivalent_p): Likewise, do structural compare
5224         on ODR types that may be mismatched.
5225         (warn_odr): Support warning when only one field is given.
5226         (odr_types_equivalent_p): Strenghten comparsions made;
5227         support VOIDtype.
5228         (add_type_duplicate): Update VISITED hash set.
5229
5230 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5231
5232         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
5233         Enable selection of 'posix' or no thread model.
5234
5235 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
5236
5237         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
5238         when architecture is older than ARMv7.
5239
5240 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
5241
5242         PR target/61853
5243         * config/pa/pa.c (pa_function_value): Directly handle aggregates
5244         that fit exactly in a word or double word.
5245
5246 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
5247
5248         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
5249         zmm/k regs support.
5250
5251 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5252             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5253             Anna Tikhonova  <anna.tikhonova@intel.com>
5254             Ilya Tocar  <ilya.tocar@intel.com>
5255             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5256             Ilya Verbin  <ilya.verbin@intel.com>
5257             Kirill Yukhin  <kirill.yukhin@intel.com>
5258             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5259
5260         * config/i386/i386.c
5261         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
5262         * config/i386/sse.md
5263         (define_mode_iterator VI48F_256): New.
5264         (define_mode_attr extract_type): Ditto.
5265         (define_mode_attr extract_suf): Ditto.
5266         (define_mode_iterator AVX512_VEC): Ditto.
5267         (define_expand
5268         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
5269         AVX512_VEC.
5270         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
5271         (define_insn
5272         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
5273         Ditto.
5274         (define_mode_attr extract_type_2): Ditto.
5275         (define_mode_attr extract_suf_2): Ditto.
5276         (define_mode_iterator AVX512_VEC_2): Ditto.
5277         (define_expand
5278         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
5279         AVX512_VEC_2 mode iterator.
5280         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5281         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
5282         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5283         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5284         (define_split for V16FI mode): Ditto.
5285         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5286         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5287         (define_split for VI8F_256 mode): Ditto.
5288         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5289         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5290         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5291         (define_split for VI4F_256 mode): Ditto.
5292         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
5293         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5294         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5295         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
5296         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
5297         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
5298         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
5299         Update `type' attribute, remove explicit `memory' attribute calculation.
5300
5301 2014-09-16  Kito Cheng  <kito@0xlab.org>
5302
5303         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
5304         ira_spilled_reg_stack_slots_num if using lra.
5305         (do_reload): Remove release ira_spilled_reg_stack_slots part.
5306         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
5307         make sure not using lra.
5308         (ira_reuse_stack_slot): Likewise.
5309         (ira_mark_new_stack_slot): Likewise.
5310
5311 2014-09-15  Andi Kleen  <ak@linux.intel.com>
5312
5313         * function.c (allocate_struct_function): Force
5314         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
5315         profiling is disabled.
5316
5317 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5318
5319         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
5320         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
5321         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
5322         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
5323         macro with statically checked member functions.
5324         * rtl.h (rtx_insn::deleted): New method.
5325         (rtx_insn::set_deleted): Likewise.
5326         (rtx_insn::set_undeleted): Likewise.
5327         (INSN_DELETED_P): Remove.
5328
5329 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5330
5331         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
5332         result of emit_jump_insn_before to a new variable.
5333         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
5334         (mark_jump_label_1): Likewise.
5335         (mark_jump_label_asm): Likewise.
5336         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
5337         * rtl.h (mark_jump_label): Adjust.
5338
5339 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
5340
5341         * Makefile.in (dg_target_exps): Remove.
5342         (check_gcc_parallelize): Change to just an upper bound number.
5343         (check-%-subtargets): Always print the non-parallelized goals.
5344         (check_p_vars, check_p_comma, check_p_subwork): Remove.
5345         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
5346         check_p_numbers3, check_p_numbers4, check_p_numbers5,
5347         check_p_numbers6): New variables.
5348         (check_p_numbers): Set to sequence from 1 to 9999.
5349         (check_p_subdirs): Set to sequence from 1 to minimum of
5350         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
5351         or 128.
5352         (check-%, check-parallel-%): Rewritten so that for parallelized
5353         testing each job runs all the *.exp files, with
5354         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
5355
5356 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5357
5358         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
5359         rtx to rtx_insn *.
5360         (arc_sets_cc_p): Likewise.
5361         * config/arc/arc.c (arc_print_operand): Use methods of
5362         "final_sequence" for clarity, and to enable strengthening of
5363         locals "jump" and "delay" from rtx to rtx_insn *.
5364         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
5365         rtx_insn *; use method of rtx_sequence for typesafety.
5366         (arc_get_insn_variants): Use insn method of rtx_sequence for
5367         typesafety.
5368         (arc_pad_return): Likewise.
5369         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
5370         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
5371         dyn_cast to rtx_sequence *, using insn method for typesafety.
5372         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
5373         rtx_sequence * and use insn method when invoking get_attr_length.
5374         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
5375         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
5376         rtx_sequence *, introducing a local "seq", using its insn method
5377         from typesafety and clarity.
5378         (add_sched_insns_for_speculation): Strengthen local "next" from
5379         rtx to rtx_insn *.
5380         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
5381         (predicate_insn): Likewise.
5382         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
5383         second param.
5384         * config/cris/cris.c (cris_notice_update_cc): Likewise.
5385         * config/epiphany/epiphany-protos.h
5386         (extern void epiphany_insert_mode_switch_use): Likewise for param
5387         "insn".
5388         (get_attr_sched_use_fpu): Likewise for param.
5389         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
5390         Likewise for param "insn".
5391         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
5392         param "insn" of "target_insert_mode_switch_use" callback.
5393         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
5394         (frv_issues_to_branch_unit_p): Likewise.
5395         (frv_pack_insn_p): Likewise.
5396         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
5397         const rtx * (i.e. mutable rtx_def * const *) to
5398         rtx_insn * const *.
5399         * config/i386/i386-protos.h (standard_sse_constant_opcode):
5400         Strengthen first param from rtx to rtx_insn *.
5401         (output_fix_trunc): Likewise.
5402         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
5403         (output_fix_trunc): Likewise.
5404         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
5405         local "insn".
5406         (min_insn_size): Likewise for param "insn".
5407         (get_mem_group): Likewise.
5408         (is_cmp): Likewise.
5409         (get_insn_path): Likewise.
5410         (get_insn_group): Likewise.
5411         (count_num_restricted): Likewise.
5412         (fits_dispatch_window): Likewise.
5413         (add_insn_window): Likewise.
5414         (add_to_dispatch_window): Likewise.
5415         (debug_insn_dispatch_info_file): Likewise.
5416         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
5417         first param.
5418         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
5419         "cmp" and local "prev".
5420         (m32c_output_compare): Likewise for param "insn".
5421         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
5422         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
5423         (define_predicate "large_insn_p"): Likewise.
5424         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
5425         param from rtx to rtx_insn *.
5426         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
5427         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
5428         (m68k_sched_attr_size): Likewise.
5429         (sched_get_opxy_mem_type): Likewise for param "insn".
5430         (m68k_sched_attr_op_mem): Likewise.
5431         (sched_mem_operand_p): Likewise.
5432         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
5433         * config/mep/mep.c (mep_multi_slot): Likewise.
5434         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
5435         first param.
5436         (mips_sync_loop_insns): Likewise.
5437         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
5438         method of "final_sequence" for typesafety.
5439         (mips_process_sync_loop): Strengthen param "insn" from rtx to
5440         rtx_insn *.
5441         (mips_output_sync_loop): Likewise.
5442         (mips_sync_loop_insns): Likewise.
5443         (mips_74k_agen_init): Likewise.
5444         (mips_sched_init): Use NULL rather than NULL_RTX when working with
5445         insns.
5446         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
5447         Strengthen param "insn" from rtx to rtx_insn *.
5448         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
5449         local "insn".
5450         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
5451         param.
5452         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
5453         "insn".  Use method of rtx_sequence for typesafety.
5454         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
5455         rtx_insn *.
5456         (branch_needs_nop_p): Likewise.
5457         (use_skip_p): Likewise.
5458         (pa_insn_refs_are_delayed): Likewise.
5459         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
5460         for locals "insn", "ninsn".
5461         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
5462         "insn".
5463         (is_cracked_insn): Likewise.
5464         (is_branch_slot_insn): Likewise.
5465         (is_nonpipeline_insn): Likewise.
5466         (insn_terminates_group_p): Likewise.
5467         (insn_must_be_first_in_group): Likewise.
5468         (insn_must_be_last_in_group): Likewise.
5469         (force_new_group): Likewise for param "next_insn".
5470         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
5471         "insn".
5472         (s390_sched_score): Likewise.
5473         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
5474         (rtx sfunc_uses_reg): Likewise for sole param.
5475         * config/sh/sh.c (sh_print_operand): Use insn method of
5476         final_sequence for typesafety.
5477         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
5478         Use insn method of final_sequence for typesafety.
5479         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
5480         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
5481         for param.
5482         (eligible_for_return_delay): Likewise.
5483         (eligible_for_sibcall_delay): Likewise.
5484         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
5485         (eligible_for_return_delay): Likewise.
5486         (eligible_for_sibcall_delay): Likewise.
5487         * config/stormy16/stormy16-protos.h
5488         (xstormy16_output_cbranch_hi): Likewise for final param.
5489         (xstormy16_output_cbranch_si): Likewise.
5490         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
5491         (xstormy16_output_cbranch_si): Likewise.
5492         * config/v850/v850-protos.h (notice_update_cc): Likewise.
5493         * config/v850/v850.c (notice_update_cc): Likewise.
5494
5495         * final.c (get_attr_length_1): Strengthen param "insn" and param
5496         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
5497         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
5498         (get_attr_min_length): Likewise.
5499         (shorten_branches): Likewise for signature of locals "length_fun"
5500         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
5501         from a checked cast and use its methods for clarity and to enable
5502         strengthening local "inner_insn" from rtx to rtx_insn *.
5503         * genattr.c (gen_attr): When writing out the prototypes of the
5504         various generated "get_attr_" functions, strengthen the params of
5505         the non-const functions from rtx to rtx_insn *.
5506         Similarly, strengthen the params of insn_default_length,
5507         insn_min_length, insn_variable_length_p, insn_current_length.
5508         (main): Similarly, strengthen the param of num_delay_slots,
5509         internal_dfa_insn_code, insn_default_latency, bypass_p,
5510         insn_latency, min_issue_delay, print_reservation,
5511         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
5512         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
5513         to hook_int_rtx_insn_unreachable.
5514         * genattrtab.c (write_attr_get): When writing out the generated
5515         "get_attr_" functions, strengthen the param "insn" from rtx to
5516         rtx_insn *, eliminating a checked cast.
5517         (make_automaton_attrs): When writing out prototypes of
5518         "internal_dfa_insn_code_", "insn_default_latency_" functions
5519         and the "internal_dfa_insn_code" and "insn_default_latency"
5520         callbacks, strengthen their params from rtx to rtx_insn *
5521         * genautomata.c (output_internal_insn_code_evaluation): When
5522         writing out code, add a checked cast from rtx to rtx_insn * when
5523         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
5524         (output_dfa_insn_code_func): Strengthen param of generated
5525         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
5526         (output_trans_func): Likewise for generated function
5527         "state_transition".
5528         (output_internal_insn_latency_func): When writing out generated
5529         function "internal_insn_latency", rename params from "insn" and
5530         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
5531         locals "insn" and "insn2" as rtx_insn * with checked casts once
5532         we've proven that we're not dealing with const0_rtx.
5533         (output_insn_latency_func):  Strengthen param of generated
5534         function "insn_latency" from rtx to rtx_insn *.
5535         (output_print_reservation_func): Likewise for generated function
5536         "print_reservation".
5537         (output_insn_has_dfa_reservation_p): Likewise for generated
5538         function "insn_has_dfa_reservation_p".
5539         * hooks.c (hook_int_rtx_unreachable): Rename to...
5540         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
5541         from rtx to rtx_insn *.
5542         * hooks.h (hook_int_rtx_unreachable): Likewise.
5543         (extern int hook_int_rtx_insn_unreachable): Likewise.
5544         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
5545         (get_attr_min_length): Likewise.
5546         * recog.c (get_enabled_alternatives): Likewise.
5547         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
5548         * reorg.c (find_end_label): Introduce local rtx "pat" and
5549         strengthen local "insn" from rtx to rtx_insn *.
5550         (redundant_insn): Use insn method of "seq" rather than element for
5551         typesafety; strengthen local "control" from rtx to rtx_insn *.
5552         * resource.c (mark_referenced_resources): Add checked cast to
5553         rtx_insn * within INSN/JUMP_INSN case.
5554         (mark_set_resources): Likewise.
5555         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
5556         rtx to rtx_insn *.
5557
5558 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5559
5560         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
5561         param "label" from rtx to rtx_insn *.
5562         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
5563         and local "op".
5564         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
5565         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
5566         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5567         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5568         * final.c (default_label_align_after_barrier_max_skip): Strengthen
5569         param from rtx to rtx_insn *.
5570         (default_loop_align_max_skip): Likewise.
5571         (default_label_align_max_skip): Likewise.
5572         (default_jump_align_max_skip): Likewise.
5573         * target.def (label_align_after_barrier_max_skip): Likewise.
5574         (loop_align_max_skip): Likewise.
5575         (label_align_max_skip): Likewise.
5576         (jump_align_max_skip): Likewise.
5577         * targhooks.h (default_label_align_after_barrier_max_skip):
5578         Likewise.
5579         (default_loop_align_max_skip): Likewise.
5580         (default_label_align_max_skip): Likewise.
5581         (default_jump_align_max_skip): Likewise.
5582
5583 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5584
5585         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
5586         from const_rtx to const rtx_insn *.  Update union members from rtx
5587         to rtx_insn *.
5588         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
5589         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
5590         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
5591         strengthen both params from const_rtx to const rtx_insn *.
5592         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
5593         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
5594         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
5595         rtx_insn *.
5596         * target.def (can_follow_jump): Strengthen both params from
5597         const_rtx to const rtx_insn *, and update default implementation
5598         from hook_bool_const_rtx_const_rtx_true to
5599         hook_bool_const_rtx_insn_const_rtx_insn_true.
5600
5601 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5602
5603         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
5604         "insn" from rtx to rtx_insn *.
5605         * sched-int.h (deps_start_bb): Likewise for 2nd param.
5606
5607 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5608             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5609             Anna Tikhonova  <anna.tikhonova@intel.com>
5610             Ilya Tocar  <ilya.tocar@intel.com>
5611             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5612             Ilya Verbin  <ilya.verbin@intel.com>
5613             Kirill Yukhin  <kirill.yukhin@intel.com>
5614             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5615
5616         * config/i386/sse.md
5617         (define_insn "vcvtph2ps<mask_name>"): Add masking.
5618         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
5619         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
5620         (define_expand "vcvtps2ph_mask"): New.
5621         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
5622         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
5623         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
5624
5625 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5626             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5627             Anna Tikhonova  <anna.tikhonova@intel.com>
5628             Ilya Tocar  <ilya.tocar@intel.com>
5629             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5630             Ilya Verbin  <ilya.verbin@intel.com>
5631             Kirill Yukhin  <kirill.yukhin@intel.com>
5632             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5633
5634         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
5635         New.
5636         (define_mode_iterator VI24_AVX512BW_1): Ditto.
5637         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
5638         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
5639         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
5640         also for TARGET_AVX512VL.
5641         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
5642
5643 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
5644
5645         * doc/install.texi (Options specification): add
5646         --disable-libsanitizer item.
5647
5648 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
5649             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5650
5651         PR target/61407
5652         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5653         and above.
5654         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5655         kernel version check to avoid incrementing it after every major OS X
5656         release.
5657         (darwin_default_min_version): Avoid static memory buffer.
5658
5659 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
5660
5661         * tree.c (need_assembler_name_p): Store C++ type mangling only
5662         for aggregates.
5663
5664 2014-09-13  Marek Polacek  <polacek@redhat.com>
5665
5666         * tree.c (protected_set_expr_location): Don't check whether T is
5667         non-null here.
5668
5669 2014-09-12  DJ Delorie  <dj@redhat.com>
5670
5671         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5672         (extend_and_shift1_hipsi2): Likewise.
5673         (extend_and_shift2_hipsi2): Likewise.
5674
5675 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
5676
5677         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5678         with NULL when dealing with an insn.
5679         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5680         from rtx to rtx_insn *.
5681         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5682         const_rtx to const rtx_insn *.
5683         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5684
5685 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
5686
5687         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5688         assert.
5689
5690 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
5691
5692         * target.def (libgcc_floating_mode_supported_p): New hook.
5693         * targhooks.c (default_libgcc_floating_mode_supported_p): New
5694         function.
5695         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5696         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5697         (LIBGCC2_HAS_TF_MODE): Remove.
5698         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5699         * doc/tm.texi: Regenerate.
5700         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5701         machine mode.
5702         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5703         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5704         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5705         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5706         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5707         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5708         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5709         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5710         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5711         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5712         function.
5713         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5714         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5715         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5716         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5717         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5718         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5719         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5720         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5721         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5722         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5723         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5724         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5725         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5726         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5727         Remove.
5728         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5729         New macro.
5730         (ia64_libgcc_floating_mode_supported_p): New function.
5731         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5732         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5733         (IA64_NO_LIBGCC_TFMODE): Define.
5734         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5735         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5736         macro.
5737         (pdp11_scalar_mode_supported_p): New function.
5738         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5739         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5740
5741 2014-09-12  Richard Biener  <rguenther@suse.de>
5742
5743         PR middle-end/63237
5744         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5745
5746 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
5747
5748         * tree.c (integer_each_onep): New function.
5749         * tree.h (integer_each_onep): Declare it.
5750         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5751         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5752         (X & 1) == 0 for vector and complex.
5753
5754 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5755
5756         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5757         for A57.
5758         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
5759         cost to spilling from integer to FP registers.
5760
5761 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5762
5763         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5764         move handling.
5765         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5766         are now handled correctly.
5767
5768 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5769
5770         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5771         handling of CALLER_SAVE_REGS and POINTER_REGS.
5772
5773 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5774
5775         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5776         the number of hard registers.
5777
5778 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5779             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5780             Anna Tikhonova  <anna.tikhonova@intel.com>
5781             Ilya Tocar  <ilya.tocar@intel.com>
5782             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5783             Ilya Verbin  <ilya.verbin@intel.com>
5784             Kirill Yukhin  <kirill.yukhin@intel.com>
5785             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5786
5787         * config/i386/sse.md
5788         (define_mode_iterator VI48_AVX512VL): New.
5789         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5790         "avx512f_vternlog<mode>_maskz" and update mode iterator.
5791         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5792         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5793         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5794         "avx512f_vternlog<mode>_mask" and update mode iterator.
5795         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5796         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5797         iterator.
5798         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5799         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5800         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5801         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5802         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5803         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5804
5805 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5806             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5807             Anna Tikhonova  <anna.tikhonova@intel.com>
5808             Ilya Tocar  <ilya.tocar@intel.com>
5809             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5810             Ilya Verbin  <ilya.verbin@intel.com>
5811             Kirill Yukhin  <kirill.yukhin@intel.com>
5812             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5813
5814         * config/i386/sse.md (VI128_256): Delete.
5815         (define_mode_iterator VI124_256): New.
5816         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5817         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5818         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5819         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5820         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5821         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5822         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5823         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5824         iterator.
5825         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5826         in presence of AVX-512.
5827
5828 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5829             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5830             Anna Tikhonova  <anna.tikhonova@intel.com>
5831             Ilya Tocar  <ilya.tocar@intel.com>
5832             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5833             Ilya Verbin  <ilya.verbin@intel.com>
5834             Kirill Yukhin  <kirill.yukhin@intel.com>
5835             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5836
5837         * config/i386/sse.md
5838         (define_expand "<avx512>_gathersi<mode>"): Rename from
5839         "avx512f_gathersi<mode>".
5840         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5841         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5842         (define_expand "<avx512>_gatherdi<mode>"): Rename from
5843         "avx512f_gatherdi<mode>".
5844         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5845         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5846         wide versions.
5847         (define_expand "<avx512>_scattersi<mode>"): Rename from
5848         "avx512f_scattersi<mode>".
5849         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5850         (define_expand "<avx512>_scatterdi<mode>"): Rename from
5851         "avx512f_scatterdi<mode>".
5852         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5853
5854 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
5855
5856         * ira.h (ira_finish_once): Delete.
5857         * ira-int.h (target_ira_int::~target_ira_int): Declare.
5858         (target_ira_int::free_ira_costs): Likewise.
5859         (target_ira_int::free_register_move_costs): Likewise.
5860         (ira_finish_costs_once): Delete.
5861         * ira.c (free_register_move_costs): Replace with...
5862         (target_ira_int::free_register_move_costs): ...this new function.
5863         (target_ira_int::~target_ira_int): Define.
5864         (ira_init): Call free_register_move_costs as a member function rather
5865         than a global function.
5866         (ira_finish_once): Delete.
5867         * ira-costs.c (free_ira_costs): Replace with...
5868         (target_ira_int::free_ira_costs): ...this new function.
5869         (ira_init_costs): Call free_ira_costs as a member function rather
5870         than a global function.
5871         (ira_finish_costs_once): Delete.
5872         * target-globals.c (target_globals::~target_globals): Call the
5873         target_ira_int destructor.
5874         * toplev.c: Include lra.h.
5875         (finalize): Call lra_finish_once rather than ira_finish_once.
5876
5877 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
5878
5879         * common.opt (flto-odr-type-merging): New flag.
5880         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5881         (types_same_for_odr): Likewise.
5882         (odr_subtypes_equivalent_p): Likewise.
5883         (add_type_duplicate): Do not walk type variants.
5884         (register_odr_type): New function.
5885         * ipa-utils.h (register_odr_type): Declare.
5886         (odr_type_p): New function.
5887         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5888         TYPE_DECLs
5889         * doc/invoke.texi (-flto-odr-type-merging): Document.
5890         * tree.c (need_assembler_name_p): Compute ODR names when asked
5891         for it.
5892         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5893
5894 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5895
5896         PR target/63228
5897         * config/i386/i386.c (ix86_option_override_internal): Also turn
5898         off OPTION_MASK_ABI_X32 for -m16.
5899
5900 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5901
5902         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5903         GPR instead of P.
5904
5905 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
5906
5907         PR target/58757
5908         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5909         Directly forward to __*_DENORM_MIN__.
5910
5911 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
5912
5913         * rtl.h (LABEL_REF_LABEL): New macro.
5914
5915         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5916         of XEXP (, 0), where we know that we have a LABEL_REF.
5917         * cfgbuild.c (make_edges): Likewise.
5918         (purge_dead_tablejump_edges): Likewise.
5919         * cfgexpand.c (convert_debug_memory_address): Likewise.
5920         * cfgrtl.c (patch_jump_insn): Likewise.
5921         * combine.c (distribute_notes): Likewise.
5922         * cse.c (hash_rtx_cb): Likewise.
5923         (exp_equiv_p): Likewise.
5924         (fold_rtx): Likewise.
5925         (check_for_label_ref): Likewise.
5926         * cselib.c (rtx_equal_for_cselib_1): Likewise.
5927         (cselib_hash_rtx): Likewise.
5928         * emit-rtl.c (mark_label_nuses): Likewise.
5929         * explow.c (convert_memory_address_addr_space): Likewise.
5930         * final.c (output_asm_label): Likewise.
5931         (output_addr_const): Likewise.
5932         * gcse.c (add_label_notes): Likewise.
5933         * genconfig.c (walk_insn_part): Likewise.
5934         * genrecog.c (validate_pattern): Likewise.
5935         * ifcvt.c (cond_exec_get_condition): Likewise.
5936         (noce_emit_store_flag): Likewise.
5937         (noce_get_alt_condition): Likewise.
5938         (noce_get_condition): Likewise.
5939         * jump.c (maybe_propagate_label_ref): Likewise.
5940         (mark_jump_label_1): Likewise.
5941         (redirect_exp_1): Likewise.
5942         (rtx_renumbered_equal_p): Likewise.
5943         * lra-constraints.c (operands_match_p): Likewise.
5944         * reload.c (operands_match_p): Likewise.
5945         (find_reloads): Likewise.
5946         * reload1.c (set_label_offsets): Likewise.
5947         * reorg.c (get_branch_condition): Likewise.
5948         * rtl.c (rtx_equal_p_cb): Likewise.
5949         (rtx_equal_p): Likewise.
5950         * rtlanal.c (reg_mentioned_p): Likewise.
5951         (rtx_referenced_p): Likewise.
5952         (get_condition): Likewise.
5953         * sched-vis.c (print_value): Likewise.
5954         * varasm.c (const_hash_1): Likewise.
5955         (compare_constant): Likewise.
5956         (const_rtx_hash_1): Likewise.
5957         (output_constant_pool_1): Likewise.
5958
5959 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5960
5961         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5962         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5963         instead of minus.
5964         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5965         cr6_test_for_lt_reverse): Ditto.
5966
5967 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
5968
5969         PR c++/61489
5970         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5971
5972 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5973
5974         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5975         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5976         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5977         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5978         Delete.
5979
5980         (aarch64_fold_builtin): Remove all reinterpret cases.
5981
5982         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5983
5984         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5985
5986         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5987         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5988         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5989         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5990         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5991         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5992         aarch64_reinterpretv2df<mode>): Delete.
5993
5994         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5995
5996         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5997         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5998         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5999         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
6000         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
6001         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
6002         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
6003         vreinterpret_u32_f64): Use cast.
6004
6005         * config/aarch64/iterators.md (VD_RE): Delete.
6006
6007 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
6008
6009         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
6010         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
6011         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
6012         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
6013         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
6014         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
6015         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
6016         Replace inline assembler with __aarch64_vset_lane_any.
6017
6018 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
6019
6020         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
6021         types.
6022         (vmull_high_lane_s32): Likewise.
6023         (vmull_high_lane_u16): Likewise.
6024         (vmull_high_lane_u32): Likewise.
6025
6026 2014-09-11  Jason Merrill  <jason@redhat.com>
6027
6028         PR c++/58678
6029         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
6030
6031 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
6032
6033         PR target/63223
6034         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
6035         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
6036         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
6037
6038 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6039             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6040             Anna Tikhonova  <anna.tikhonova@intel.com>
6041             Ilya Tocar  <ilya.tocar@intel.com>
6042             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6043             Ilya Verbin  <ilya.verbin@intel.com>
6044             Kirill Yukhin  <kirill.yukhin@intel.com>
6045             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6046
6047         * config/i386/sse.md
6048         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
6049         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
6050         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
6051         New.
6052         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
6053         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
6054         iterator.
6055         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
6056         New.
6057         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
6058         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
6059         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
6060         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
6061         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
6062         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
6063         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
6064         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
6065         iterator.
6066         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
6067         New.
6068         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
6069         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
6070         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
6071
6072 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6073
6074         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
6075         to access removed nodes.
6076
6077 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6078
6079         PR tree-optimization/63186
6080         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
6081         (mark_nonssa_use): Likewise.
6082         (verify_non_ssa_vars): Verify all header blocks for label
6083         definitions.
6084
6085 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6086             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6087             Anna Tikhonova  <anna.tikhonova@intel.com>
6088             Ilya Tocar  <ilya.tocar@intel.com>
6089             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6090             Ilya Verbin  <ilya.verbin@intel.com>
6091             Kirill Yukhin  <kirill.yukhin@intel.com>
6092             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6093
6094         * config/i386/sse.md
6095         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
6096         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
6097         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
6098         "<avx2_avx512f>_permvar<mode><mask_name>".
6099         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
6100         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
6101         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
6102         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
6103         Ditto.
6104         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
6105         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
6106         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
6107         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
6108
6109 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6110
6111         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
6112         V2DF, V4SF, DF, and DI modes.
6113         (vsx_fmav2df2): Likewise.
6114         (vsx_float_fix_<mode>2): Likewise.
6115         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
6116
6117 2014-09-10  Xinliang David Li  <davidxl@google.com>
6118
6119         PR target/63209
6120         * config/arm/arm.md (movcond_addsi): Handle case where source
6121         and target operands are the same.
6122
6123 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
6124
6125         * final.c (this_is_asm_operands): Strengthen this variable from
6126         rtx to const rtx_insn *.
6127         * output.h (this_is_asm_operands): Likewise.
6128         * rtl-error.c (location_for_asm): Strengthen param "insn" from
6129         const_rtx to const rtx_insn *.
6130         (diagnostic_for_asm): Likewise.
6131         * rtl-error.h (error_for_asm): Likewise.
6132         (warning_for_asm): Likewise.
6133
6134 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
6135
6136         * genextract.c (print_header): When writing out insn_extract to
6137         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
6138         * recog.h (insn_extract): Strengthen the param from rtx to
6139         rtx_insn *.
6140
6141 2014-09-10  Mike Stump  <mikestump@comcast.net>
6142
6143         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
6144         8.6.1.
6145
6146 2014-09-10  Martin Jambor  <mjambor@suse.cz>
6147
6148         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
6149         (analyze): Do not set analyze flag if expand_thunk returns false;.
6150         (create_wrapper): Likewise.
6151         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6152
6153 2014-09-10  Martin Jambor  <mjambor@suse.cz>
6154
6155         PR ipa/61654
6156         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
6157         new decl properly.  Analyze the new thunk if it is expanded.
6158
6159 2014-09-10  Andreas Schwab  <schwab@suse.de>
6160
6161         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
6162         [USED_FOR_TARGET]: Define.
6163
6164 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
6165
6166         * config/mips/mips.c (mips_secondary_reload_class): Handle
6167         regno < 0 case.
6168
6169 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
6170
6171         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
6172         assignment.
6173
6174 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
6175
6176         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
6177         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
6178         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
6179         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
6180         flag_delete_null_pointer_checks for them.
6181         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6182         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
6183         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
6184         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
6185         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
6186         stmt's iterator.
6187         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
6188         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
6189         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
6190         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
6191         * doc/invoke.texi (-fsanitize=nonnull-attribute,
6192         -fsanitize=returns-nonnull-attribute): Document.
6193
6194         * ubsan.h (struct ubsan_mismatch_data): Removed.
6195         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6196         * ubsan.c (ubsan_source_location): For unknown locations,
6197         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
6198         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6199         Allow more than one location and arbitrary extra arguments passed
6200         in ... instead of through MISMATCH pointer.
6201         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
6202         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
6203         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
6204         callers.
6205
6206 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6207             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6208             Anna Tikhonova  <anna.tikhonova@intel.com>
6209             Ilya Tocar  <ilya.tocar@intel.com>
6210             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6211             Ilya Verbin  <ilya.verbin@intel.com>
6212             Kirill Yukhin  <kirill.yukhin@intel.com>
6213             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6214
6215         * config/i386/sse.md
6216         (define_mode_iterator VI48F): New.
6217         (define_insn "<avx512>_compress<mode>_mask"): Rename from
6218         "avx512f_compress<mode>_mask" and update mode iterator.
6219         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
6220         "avx512f_compressstore<mode>_mask" and update mode iterator.
6221         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
6222         "avx512f_expand<mode>_maskz" and update mode iterator.
6223         (define_insn "<avx512>_expand<mode>_mask"): Rename from
6224         "avx512f_expand<mode>_mask" and update mode iterator.
6225
6226 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6227             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6228             Anna Tikhonova  <anna.tikhonova@intel.com>
6229             Ilya Tocar  <ilya.tocar@intel.com>
6230             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6231             Ilya Verbin  <ilya.verbin@intel.com>
6232             Kirill Yukhin  <kirill.yukhin@intel.com>
6233             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6234
6235         * config/i386/i386.c
6236         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
6237         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
6238         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
6239         avx512dq_rangepv4sf_mask.
6240         * config/i386/sse.md
6241         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
6242         UNSPEC_RANGE.
6243         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
6244         (define_insn "reduces<mode>"): Ditto.
6245         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6246         Ditto.
6247         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
6248         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
6249         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
6250
6251 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6252             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6253             Anna Tikhonova  <anna.tikhonova@intel.com>
6254             Ilya Tocar  <ilya.tocar@intel.com>
6255             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6256             Ilya Verbin  <ilya.verbin@intel.com>
6257             Kirill Yukhin  <kirill.yukhin@intel.com>
6258             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6259
6260         * config/i386/i386.c
6261         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
6262         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
6263         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
6264         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
6265         avx512vl_getmantv2df_mask.
6266         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
6267         avx512f_vgetmantv4sf_round.
6268         * config/i386/sse.md
6269         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
6270         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
6271         mode iterator.
6272         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
6273         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
6274         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
6275         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
6276         iterator..
6277         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
6278         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
6279         update mode iterator.
6280         (define_expand
6281         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
6282         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
6283         mode iterator.
6284         (define_insn
6285         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
6286         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
6287         update mode iterator.
6288         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
6289         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
6290         iterator..
6291         (define_insn
6292         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
6293         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
6294         mode iterator..
6295         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
6296         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
6297         update mode iterator.
6298         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
6299         "avx512f_getmant<mode><round_saeonly_name>".
6300
6301 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6302
6303         PR ipa/63166
6304         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
6305
6306 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6307             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6308             Anna Tikhonova  <anna.tikhonova@intel.com>
6309             Ilya Tocar  <ilya.tocar@intel.com>
6310             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6311             Ilya Verbin  <ilya.verbin@intel.com>
6312             Kirill Yukhin  <kirill.yukhin@intel.com>
6313             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6314
6315         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
6316         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
6317         (define_mode_iterator FMAMODE_AVX512): New.
6318         (define_mode_iterator FMAMODE): Remove conditions.
6319         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
6320         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
6321         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
6322         mode iterator.
6323         (define_mode_iterator FMAMODE_NOVF512): Remove.
6324         (define_insn "*fma_fmadd_<mode>"): Rename from
6325         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
6326         FMAMODE mode iterator.
6327         (define_mode_iterator VF_SF_AVX512VL): New.
6328         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
6329         Use VF_SF_AVX512VL mode iterator.
6330         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
6331         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6332         iterator.
6333         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
6334         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6335         iterator.
6336         (define_insn "*fma_fmsub_<mode>"): Rename from
6337         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
6338         FMAMODE mode iterator.
6339         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
6340         Use VF_SF_AVX512VL mode iterator.
6341         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
6342         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6343         iterator.
6344         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
6345         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6346         iterator.
6347         (define_insn "*fma_fnmadd_<mode>"): Rename from
6348         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
6349         use FMAMODE mode iterator.
6350         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
6351         Use VF_SF_AVX512VL mode iterator.
6352         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
6353         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6354         iterator.
6355         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
6356         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6357         iterator.
6358         (define_insn "*fma_fnmsub_<mode>"): Rename from
6359         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
6360         FMAMODE mode iterator.
6361         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
6362         Use VF_SF_AVX512VL mode iterator.
6363         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
6364         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6365         iterator.
6366         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
6367         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6368         iterator.
6369         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
6370         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
6371         use VF_AVX512VL mode iterator.
6372         (define_insn "*fma_fmaddsub_<mode>"): Rename from
6373         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
6374         remove subst usage.
6375         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
6376         Use VF_SF_AVX512VL mode iterator.
6377         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
6378         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6379         iterator.
6380         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
6381         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6382         iterator.
6383         (define_insn "*fma_fmsubadd_<mode>"): Rename from
6384         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
6385         remove usage of subst.
6386         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
6387         Use VF_SF_AVX512VL mode iterator.
6388         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
6389         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6390         iterator.
6391         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
6392         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6393         iterator.
6394
6395 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
6396
6397         Revert r213751:
6398         * calls.c (precompute_arguments): Check
6399          promoted_for_signed_and_unsigned_p and set the promoted mode.
6400         (promoted_for_signed_and_unsigned_p): New function.
6401         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6402         and set the promoted mode.
6403         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6404         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6405         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6406
6407 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6408
6409         * opth-gen.awk: Generate mapping from cpp message reasons to the
6410         options that enable them.
6411         * doc/options.texi (CppReason): Document.
6412
6413 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6414
6415         * doc/invoke.texi (Wnormalized=): Update.
6416
6417 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6418
6419         PR target/63195
6420         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
6421         operands.  Split off the constant operand alternative to ...
6422         (*bool<mode>3_imm): New.
6423
6424 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6425
6426         * rtl.h (single_set_2): Strengthen first param from const_rtx to
6427         const rtx_insn *, and move prototype to above...
6428         (single_set): ...this.  Convert this from a macro to an inline
6429         function, enforcing the requirement that the param is a const
6430         rtx_insn *.
6431         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
6432
6433         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
6434         Strengthen both params from rtx to rtx_insn *.
6435         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6436         Likewise; introduce locals "producer_set", "consumer_set", using
6437         them in place of "producer" and "consumer" when dealing with SET
6438         rather than insn.
6439         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
6440         when invoking single_set in region guarded by INSN_P.
6441         (avr_out_bitop): Likewise.
6442         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
6443         region guarded by GET_CODE check, using methods to strengthen
6444         local "this_insn" from rtx to rtx_insn *, and for clarity.
6445         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
6446         Strengthen local "insn" from rtx to rtx_insn *.
6447         (define_insn_and_split "xload<mode>_A"): Likewise.
6448         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
6449         "insn".
6450         (find_load): Likewise for return type.
6451         (workaround_speculation): Likewise for both locals named
6452         "load_insn".
6453         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
6454         local "cc0_user".
6455         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
6456         for local "prev".
6457         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
6458         param 2.
6459         * config/h8300/h8300.c (notice_update_cc): Likewise.
6460         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
6461         "insn" and "dep_insn".
6462         (exact_store_load_dependency): Likewise for both params.
6463         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
6464         since this now clashes with inline function.  Instead, delay
6465         calling single_set until the point where its needed, and then
6466         assign the result to "compare_set" and rework the conditional that
6467         follows.
6468         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
6469         local "last" from rtx to rtx_insn *.
6470         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
6471         second param.
6472         (mips_store_data_bypass_p): Likewise for both params.
6473         * config/mips/mips.c (mips_load_store_insns): Likewise for second
6474         param.
6475         (mips_store_data_bypass_p): Likewise for both params.
6476         (mips_orphaned_high_part_p): Likewise for param "insn".
6477         * config/mn10300/mn10300.c (extract_bundle): Likewise.
6478         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
6479         Introduce local rtx "insn2_pat".
6480         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
6481         "ninsn".
6482         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
6483         Introduce local rtx "set", using it in place of "insn" for the
6484         result of single_set.  This appears to fix a bug, since the call
6485         to find_regno_note on a SET does nothing.
6486         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
6487         params from rtx to rtx_insn *.
6488         (set_to_load_agen): Likewise.
6489         * config/s390/s390.c (s390_label_align): Likewise for local
6490         "prev_insn".  Introduce new rtx locals "set" and "src", using
6491         them in place of "prev_insn" for the results of single_set
6492         and SET_SRC respectively.
6493         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
6494         Introduce new rtx local "set" using in place of "jump" for the
6495         result of single_set.  Use SET_SRC (set) rather than plain
6496         XEXP (set, 1).
6497         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
6498         rtx to rtx_insn *.
6499         (noncall_uses_reg): Likewise.
6500         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
6501         guarded by GET_CODE check, using its methods for clarity, and to
6502         enable strengthening local "this_insn" from rtx to rtx_insn *.
6503         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
6504         "insn" from rtx to rtx_insn *.
6505         (define_expand "umulhisi3"): Likewise.
6506         (define_expand "smulsi3_highpart"): Likewise.
6507         (define_expand "umulsi3_highpart"): Likewise.
6508         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6509         local "after".  Replace GET_CODE check with a dyn_cast,
6510         introducing new local rtx_sequence * "seq", using insn method for
6511         typesafety.
6512
6513         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
6514         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
6515         place of "insn" once we're dealing with patterns rather than the
6516         input insn.
6517         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
6518         (scan_trace): Likewise for local "elt", updating lookups within
6519         sequence to use insn method rather than element method.
6520         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
6521         to rtx_insn *.
6522         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
6523         * ifcvt.c (noce_try_abs): Likewise for local "insn".
6524         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
6525         invoking single_set.
6526         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
6527         "insn" from rtx to rtx_insn *.
6528         (skip_usage_debug_insns): Likewise for return type, adding a
6529         checked cast.
6530         (check_secondary_memory_needed_p): Likewise for local "insn".
6531         (inherit_reload_reg): Likewise.
6532         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
6533         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
6534         checked casts.
6535         (store_data_bypass_p): Likewise for both params.
6536         (if_test_bypass_p): Likewise.
6537         * recog.h (store_data_bypass_p): Likewise for both params.
6538         (if_test_bypass_p): Likewise.
6539         * reload.c (find_equiv_reg): Likewise for local "where".
6540         * reorg.c (delete_jump): Likewise for param "insn".
6541         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
6542         to const rtx_insn *.
6543         * store-motion.c (replace_store_insn): Likewise for param "del".
6544         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
6545         and use its methods for clarity, and to strengthen local "del"
6546         from rtx to rtx_insn *.
6547         (build_store_vectors): Use insn method of "st" when calling
6548         replace_store_insn for typesafety and clarity.
6549
6550 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6551
6552         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
6553         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
6554         on how to make it legal in future.
6555
6556 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6557
6558         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
6559         to rtx_insn *.
6560         (restinsn): Likewise.
6561         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6562         Likewise for param.
6563         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
6564         Likewise.
6565         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
6566         first param.
6567         (arc_hazard): Likewise for both params.
6568         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
6569         checked casts to rtx_sequence * and uses of the insn method for
6570         type-safety.
6571         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
6572         (arc_adjust_insn_length): Likewise for param "insn".
6573         (struct insn_length_parameters_s): Likewise for first param of
6574         "get_variants" callback field.
6575         (arc_get_insn_variants): Likewise for first param and local
6576         "inner".  Replace a check of GET_CODE with a dyn_cast to
6577         rtx_sequence *, using methods for type-safety and clarity.
6578         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
6579         rtx_sequence * and uses of the insn method for type-safety when
6580         invoking arc_adjust_insn_length.
6581         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
6582         for param.
6583         (arm_address_offset_is_imm): Likewise.
6584         (struct tune_params): Likewise for params 1 and 3 of the
6585         "sched_adjust_cost" callback field.
6586         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
6587         params 1 and 3 ("insn" and "dep").
6588         (xscale_sched_adjust_cost): Likewise.
6589         (fa726te_sched_adjust_cost): Likewise.
6590         (cortexa7_older_only): Likewise for param "insn".
6591         (cortexa7_younger): Likewise.
6592         (arm_attr_length_move_neon): Likewise.
6593         (arm_address_offset_is_imm): Likewise.
6594         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
6595         * config/avr/avr.c (avr_notice_update_cc): Likewise.
6596         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
6597         (workaround_speculation): Likewise for local "last_condjump".
6598         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
6599         (shadow_or_blockage_p): Likewise.
6600         (get_unit_reqs): Likewise.
6601         (get_unit_operand_masks): Likewise.
6602         (c6x_registers_update): Likewise.
6603         (returning_call_p): Likewise.
6604         (can_use_callp): Likewise.
6605         (convert_to_callp): Likewise.
6606         (find_last_same_clock): Likwise for local "t".
6607         (reorg_split_calls): Likewise for local "shadow".
6608         (hwloop_pattern_reg): Likewise for param "insn".
6609         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
6610         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
6611         (frv_extract_membar): Likewise.
6612         (frv_optimize_membar_local): Strengthen param "last_membar" from
6613         rtx * to rtx_insn **.
6614         (frv_optimize_membar_global): Strengthen param "membar" from rtx
6615         to rtx_insn *.
6616         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
6617         to rtx_insn **.
6618         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
6619         both params from rtx to rtx_insn *.
6620         (ia64_ld_address_bypass_p): Likewise.
6621         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
6622         "insn".
6623         (ia64_safe_type): Likewise.
6624         (group_barrier_needed): Likewise.
6625         (safe_group_barrier_needed): Likewise.
6626         (ia64_single_set): Likewise.
6627         (is_load_p): Likewise.
6628         (record_memory_reference): Likewise.
6629         (get_mode_no_for_insn): Likewise.
6630         (important_for_bundling_p): Likewise.
6631         (unknown_for_bundling_p): Likewise.
6632         (ia64_st_address_bypass_p): Likewise for both params.
6633         (ia64_ld_address_bypass_p): Likewise.
6634         (expand_vselect): Introduce new local rtx_insn * "insn", using it
6635         in place of rtx "x" after the emit_insn call.
6636         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
6637         Strengthen param from rtx to rtx_insn *.
6638         (ix86_agi_dependent): Likewise for both params.
6639         (ix86_attr_length_immediate_default): Likewise for param 1.
6640         (ix86_attr_length_address_default): Likewise for param.
6641         (ix86_attr_length_vex_default): Likewise for param 1.
6642         * config/i386/i386.c (ix86_attr_length_immediate_default):
6643         Likewise for param "insn".
6644         (ix86_attr_length_address_default): Likewise.
6645         (ix86_attr_length_vex_default): Likewise.
6646         (ix86_agi_dependent): Likewise for both params.
6647         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
6648         (vselect_insn): Likewise for this variable.
6649         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
6650         for param 1.
6651         (m68k_sched_attr_opy_type): Likewise.
6652         * config/m68k/m68k.c (sched_get_operand): Likewise.
6653         (sched_attr_op_type): Likewise.
6654         (m68k_sched_attr_opx_type): Likewise.
6655         (m68k_sched_attr_opy_type): Likewise.
6656         (sched_get_reg_operand): Likewise.
6657         (sched_get_mem_operand): Likewise.
6658         (m68k_sched_address_bypass_p): Likewise for both params.
6659         (sched_get_indexed_address_scale): Likewise.
6660         (m68k_sched_indexed_address_bypass_p): Likewise.
6661         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6662         (m68k_sched_indexed_address_bypass_p): Likewise.
6663         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6664         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6665         removing another.
6666         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6667         params from rtx to rtx_insn *.
6668         (mips_fmadd_bypass): Likewise.
6669         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6670         (mips_linked_madd_p): Likewise.
6671         (mips_macc_chains_last_hilo): Likewise for this variable.
6672         (mips_macc_chains_record): Likewise for param.
6673         (vr4130_last_insn): Likewise for this variable.
6674         (vr4130_swap_insns_p): Likewise for both params.
6675         (mips_ls2_variable_issue): Likewise for param.
6676         (mips_need_noat_wrapper_p): Likewise for param "insn".
6677         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6678         in place of "x" after the emit_insn.
6679         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6680         params from rtx to rtx_insn *.
6681         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6682         (pa_combine_instructions): Introduce local "par" for result of
6683         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6684         to make_insn_raw.
6685         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6686         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6687         (rl78_alloc_physical_registers_op1): Likewise.
6688         (rl78_alloc_physical_registers_op2): Likewise.
6689         (rl78_alloc_physical_registers_ro1): Likewise.
6690         (rl78_alloc_physical_registers_cmp): Likewise.
6691         (rl78_alloc_physical_registers_umul): Likewise.
6692         (rl78_alloc_address_registers_macax): Likewise.
6693         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6694         * config/s390/predicates.md (execute_operation): Likewise for
6695         local "insn".
6696         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6697         params.
6698         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6699         (addr_generation_dependency_p): Likewise for param "insn".
6700         (s390_agen_dep_p): Likewise for both params.
6701         (s390_fpload_toreg): Likewise for param "insn".
6702         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6703         * config/sh/sh.c (sh_loop_align): Likewise for param and local
6704         "next".
6705         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6706         * config/sh/sh_treg_combine.cc
6707         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6708         and local "i".
6709         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6710         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6711         "and_insn", "load", "shift".
6712         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6713         "insn".
6714         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6715         for XEXP (note, 0) of the REG_CC_SETTER note.
6716         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6717         rtx_insn *, eliminating a checked cast made redundant by this.
6718         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6719         to rtx_insn *.
6720         * genattr.c (main): When writing out the prototype to
6721         const_num_delay_slots, strengthen the param from rtx to
6722         rtx_insn *.
6723         * genattrtab.c (write_const_num_delay_slots): Likewise when
6724         writing out the implementation of const_num_delay_slots.
6725         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6726         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6727         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6728         favor of new rtx locals "src" and "set" and new local rtx_insn *
6729         "insn" and "seq".
6730         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6731         to rtx_insn *.
6732         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6733         locals "cond", "if_then_else", "set" and new rtx_insn * locals
6734         "insn" and "seq".
6735         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6736         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
6737         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
6738         the top-level scope, replacing with new more tightly-scoped rtx
6739         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6740         "new_insn", "copy_of_insn_b", and make local rtx "set" more
6741         tightly-scoped.
6742         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6743         rtx_insn *.
6744         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6745         "move_insn".
6746         (ira_setup_alts): Likewise for param "insn".
6747         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6748         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6749         and an rtx_insn *.
6750         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6751         new more-tightly scoped rtx locals "add3_insn", "insn",
6752         "add2_insn" and rtx_insn * "move_insn".
6753         * postreload-gcse.c (eliminate_partially_redundant_load): Add
6754         checked cast on result of gen_move_insn when invoking
6755         extract_insn.
6756         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6757         rtx_insn *.
6758         (verify_changes): Add a checked cast on "object" when invoking
6759         insn_invalid_p.
6760         (extract_insn_cached): Strengthen param "insn" from rtx to
6761         rtx_insn *.
6762         (extract_constrain_insn_cached): Likewise.
6763         (extract_insn): Likewise.
6764         * recog.h (insn_invalid_p): Likewise for param 1.
6765         (recog_memoized): Likewise for param.
6766         (extract_insn): Likewise.
6767         (extract_constrain_insn_cached): Likewise.
6768         (extract_insn_cached): Likewise.
6769         * reload.c (can_reload_into): Likewise for local "test_insn".
6770         * reload.h (cleanup_subreg_operands): Likewise for param.
6771         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6772         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6773         result of emit_insn.  Remove a checked cast made redundant by this
6774         change.
6775         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6776         rtx to rtx_insn *.
6777         * sel-sched.c (get_reg_class): Likewise.
6778
6779 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6780             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6781
6782         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6783         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6784         Define.
6785         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6786
6787 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6788
6789         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6790         const rtx_insn *, and from rtx to rtx_insn * for the other
6791         overloaded variant.
6792         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6793         INSN_LOCATION, since we know INSN_P holds.
6794         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6795         (insn_file): Likewise.
6796         (insn_scope): Likewise.
6797         (insn_location): Likewise.
6798
6799         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6800         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6801         for the result of gen_load_const_gp.
6802         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6803         param from rtx to rtx_insn *.
6804         * config/rs6000/rs6000.c (output_call): Likewise.
6805         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6806         introducing a checked cast to rtx_sequence * and use of the insn
6807         method.
6808         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6809         from rtx to rtx_insn *.
6810         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6811         (insn_line): Likewise.
6812         (insn_file): Likewise.
6813         (insn_location): Likewise.
6814         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6815         from rtx to rtx_insn *.
6816         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6817         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6818         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6819         via a checked cast.
6820         * reorg.c (relax_delay_slots): Strengthen locals named "after"
6821         from rtx to rtx_insn *; use methods of "pat" for type-safety.
6822
6823 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6824
6825         * combine.c (try_combine): Eliminate checked cast on result of
6826         gen_rtx_INSN.
6827         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6828         autogenerated one by strengthening the return type and params 2 and 3
6829         from rtx to rtx_insn *, and by naming the params.
6830         * gengenrtl.c (special_rtx): Add INSN to those that are
6831         special-cased.
6832         * rtl.h (gen_rtx_INSN): New prototype.
6833
6834 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6835
6836         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6837         than NULL_RTX.
6838         (no_equiv): Likewise.
6839         (update_equiv_regs): Likewise.
6840         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
6841         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6842         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
6843         clarity.
6844         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6845         from rtx to rtx_insn_list *.
6846         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6847         rtx_insn_list * and use methods for clarity and typesafety.
6848         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6849         "list".
6850         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
6851         redundant check on INSN_P (insns): this cannot hold, as "insns" is
6852         an INSN_LIST, not an insn.
6853         (reverse_equiv_p): Strengthen local "insns" from rtx to
6854         rtx_insn_list * and use methods for clarity and typesafety.
6855         (contains_reloaded_insn_p): Likewise for local "list".
6856
6857 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
6858
6859         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6860         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6861         (arm_builtin_vectorized_function): Likewise.
6862         * config/arm/arm_neon_builtins.def: New macro for copysignf.
6863         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6864
6865 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
6866
6867         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6868         * builtins.h (default_target_builtins): Likewise.
6869         * gcse.h (default_target_gcse): Likewise.
6870         * target-globals.h (target_globals): Add a destructor.  Convert
6871         void-pointer fields back to their real type and change from
6872         GTY((atomic)) to GTY((skip)).
6873         (restore_target_globals): Remove casts accordingly.
6874         * target-globals.c (save_target_globals): Use XCNEW rather than
6875         ggc_internal_cleared_alloc to allocate non-GC structures.
6876         Use ggc_cleared_alloc to allocate the target_globals structure
6877         itself.
6878         (target_globals::~target_globals): Define.
6879
6880 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6881
6882         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6883         mnemonic instead of fldmfdd.
6884         * config/arm/arm.c (vfp_output_fstmd): Rename to...
6885         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
6886         Output vpush when address register is SP.
6887         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6888         (vfp_output_vstmd): ... This.
6889         * config/arm/vfp.md (push_multi_vfp): Update call to
6890         vfp_output_vstmd.
6891
6892 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6893
6894         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6895
6896 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6897
6898         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6899         (*sqrtdf2_vfp): Likewise.
6900         (*cmpsf_vfp): Likewise.
6901         (*cmpsf_trap_vfp): Likewise.
6902         (*cmpdf_vfp): Likewise.
6903         (*cmpdf_trap_vfp): Likewise.
6904
6905 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6906
6907         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6908         (*truncdfsf2_vfp): Likewise.
6909         (*truncsisf2_vfp): Likewise.
6910         (*truncsidf2_vfp): Likewise.
6911         (fixuns_truncsfsi2): Likewise.
6912         (fixuns_truncdfsi2): Likewise.
6913         (*floatsisf2_vfp): Likewise.
6914         (*floatsidf2_vfp): Likewise.
6915         (floatunssisf2): Likewise.
6916         (floatunssidf2): Likewise.
6917
6918 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6919
6920         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6921         (*muldf3_vfp): Likewise.
6922         (*mulsf3negsf_vfp): Likewise.
6923         (*muldf3negdf_vfp): Likewise.
6924         (*mulsf3addsf_vfp): Likewise.
6925         (*muldf3adddf_vfp): Likewise.
6926         (*mulsf3subsf_vfp): Likewise.
6927         (*muldf3subdf_vfp): Likewise.
6928         (*mulsf3negsfaddsf_vfp): Likewise.
6929         (*fmuldf3negdfadddf_vfp): Likewise.
6930         (*mulsf3negsfsubsf_vfp): Likewise.
6931         (*muldf3negdfsubdf_vfp): Likewise.
6932
6933 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6934
6935         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6936         (*absdf2_vfp): Likewise.
6937         (*negsf2_vfp): Likewise.
6938         (*negdf2_vfp): Likewise.
6939         (*addsf3_vfp): Likewise.
6940         (*adddf3_vfp): Likewise.
6941         (*subsf3_vfp): Likewise.
6942         (*subdf3_vfp): Likewise.
6943         (*divsf3_vfp): Likewise.
6944         (*divdf3_vfp): Likewise.
6945
6946 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6947
6948         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6949         multiple.
6950         (arm_print_operand): Don't convert real values to decimal
6951         representation in default case.
6952         (fp_immediate_constant): Delete.
6953         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6954         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6955         syntax.
6956         (*thumb2_movsi_vfp): Likewise.
6957         (*movdi_vfp): Likewise.
6958         (*movdi_vfp_cortexa8): Likewise.
6959         (*movhf_vfp_neon): Likewise.
6960         (*movhf_vfp): Likewise.
6961         (*movsf_vfp): Likewise.
6962         (*thumb2_movsf_vfp): Likewise.
6963         (*movdf_vfp): Likewise.
6964         (*thumb2_movdf_vfp): Likewise.
6965         (*movsfcc_vfp): Likewise.
6966         (*thumb2_movsfcc_vfp): Likewise.
6967         (*movdfcc_vfp): Likewise.
6968         (*thumb2_movdfcc_vfp): Likewise.
6969
6970 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
6971
6972         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6973         (-mtune): Likewise.
6974         (-mcpu): Likewise.
6975
6976 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6977
6978         PR target/61749
6979         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6980         Use qualifier_immediate for last operand.  Rename to...
6981         (aarch64_types_ternop_lane_qualifiers): ... This.
6982         (TYPES_QUADOP): Rename to...
6983         (TYPES_TERNOP_LANE): ... This.
6984         (aarch64_simd_expand_args): Return const0_rtx when encountering user
6985         error.  Change return of 0 to return of NULL_RTX.
6986         (aarch64_crc32_expand_builtin): Likewise.
6987         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6988         ICE when expanding unknown builtin.
6989         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6990         TERNOP_LANE qualifiers.
6991         (sqdmlsl_lane): Likewise.
6992         (sqdmlal_laneq): Likewise.
6993         (sqdmlsl_laneq): Likewise.
6994         (sqdmlal2_lane): Likewise.
6995         (sqdmlsl2_lane): Likewise.
6996         (sqdmlal2_laneq): Likewise.
6997         (sqdmlsl2_laneq): Likewise.
6998
6999 2014-09-09  Nick Clifton  <nickc@redhat.com>
7000
7001         * doc/invoke.texi (Optimization Options): Add missing @gol to the
7002         end of a line.
7003         (S/390 and zSeries Options): Remove superfluous word from the
7004         description of the -mhotpatch option.
7005
7006 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7007
7008         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
7009         * ira.c: #include "shrink-wrap.h"
7010         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
7011         * ifcvt.c: #include "shrink-wrap.h"
7012         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
7013
7014 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
7015
7016         * common/config/picochip/picochip-common.c: Remove.
7017         * config.gcc: Remove support for picochip.
7018         * config/picochip/constraints.md: Remove.
7019         * config/picochip/dfa_space.md: Remove.
7020         * config/picochip/dfa_speed.md: Remove.
7021         * config/picochip/picochip-protos.h: Remove.
7022         * config/picochip/picochip.c: Remove.
7023         * config/picochip/picochip.h: Remove.
7024         * config/picochip/picochip.md: Remove.
7025         * config/picochip/picochip.opt: Remove.
7026         * config/picochip/predicates.md: Remove.
7027         * config/picochip/t-picochip: Remove.
7028         * doc/md.texi: Don't document picochi.
7029
7030 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
7031
7032         * basic-block.h (control_flow_insn_p): Strengthen param from
7033         const_rtx to const rtx_insn *.
7034         * cfgbuild.c (control_flow_insn_p): Likewise.
7035
7036 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
7037
7038         * gcse.c (modify_mem_list): Strengthen this variable from
7039         vec<rtx> * to vec<rtx_insn *> *.
7040         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
7041         vec<rtx_insn *>.
7042         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
7043         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
7044         (record_last_mem_set_info): Strengthen param "insn" from rtx to
7045         rtx_insn *.
7046         (record_last_set_info): Likewise for local "last_set_insn".
7047
7048 2014-09-08  DJ Delorie  <dj@redhat.com>
7049
7050         * doc/invoke.texi (MSP430 Options): Add -minrt.
7051
7052 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7053
7054         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
7055         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
7056         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
7057         handling SH_SPLAT.
7058         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
7059         of extracted lane.
7060         (adjust_splat): New function.
7061         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
7062         (dump_swap_insn_table): Add case for SH_SPLAT.
7063
7064 2014-09-08  Richard Biener  <rguenther@suse.de>
7065
7066         PR ipa/63196
7067         * tree-inline.c (copy_loops): The source loop header should
7068         always be non-NULL.
7069         (tree_function_versioning): If loops need fixup after removing
7070         unreachable blocks fix them.
7071         * omp-low.c (simd_clone_adjust): Do not add incr block to
7072         loop under construction.
7073
7074 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
7075
7076         * config/aarch64/aarch64-builtins.c
7077         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
7078
7079 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
7080
7081         * config/i386/cygming.h (TF_SIZE): Remove.
7082         * config/i386/darwin.h (TF_SIZE): Remove.
7083         * config/i386/dragonfly.h (TF_SIZE): Remove.
7084         * config/i386/freebsd.h (TF_SIZE): Remove.
7085         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
7086         * config/i386/openbsdelf.h (TF_SIZE): Remove.
7087         * config/i386/sol2.h (TF_SIZE): Remove.
7088         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
7089         * config/ia64/linux.h (TF_SIZE): Remove.
7090         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
7091         * doc/tm.texi: Regenerate.
7092         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
7093
7094 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
7095
7096         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
7097         Remove.
7098         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
7099         Remove.
7100         * doc/tm.texi: Regenerate.
7101         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
7102         Poison.
7103         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
7104         * config/cris/cris.h (__make_dp): Remove.
7105
7106 2014-09-08  Richard Biener  <rguenther@suse.de>
7107
7108         PR bootstrap/63204
7109         * cfgloop.c (mark_loop_for_removal): Track former header
7110         unconditionally.
7111         * cfgloop.h (struct loop): Add former_header member unconditionally.
7112         * loop-init.c (fix_loop_structure): Enable bogus loop removal
7113         diagnostic unconditionally.
7114
7115 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
7116
7117         PR target/63190
7118         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
7119         constraint for operand0 and remove write only modifier from operand3.
7120
7121 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
7122
7123         PR rtl-optimization/62208
7124         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
7125         rather than const0_rtx in eq/ne-xor simplifications.
7126
7127 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
7128
7129         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
7130         (arc_output_mi_thunk): Likewise.
7131
7132         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
7133         arguments to silence bogus warning.
7134
7135 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
7136
7137         PR middle-end/63171
7138         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
7139
7140 2014-09-06  Tom de Vries  <tom@codesourcery.com>
7141
7142         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
7143         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
7144         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7145
7146 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
7147
7148         PR target/63188
7149         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
7150         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
7151
7152 2014-09-05  Easwaran Raman  <eraman@google.com>
7153
7154         PR rtl-optimization/62146
7155         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
7156         hoisted instruction unconditional.
7157
7158 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
7159
7160         PR target/63187
7161         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
7162         Do not allow any_mask_operand for operands[2].
7163         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
7164
7165 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7166
7167         * config/arc/arc.c (arc_print_operand): Use insn method of
7168         final_sequence for type-safety.
7169         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
7170         "insn" from rtx to rtx_insn *.
7171         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
7172         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7173         Likewise for locals "branch", "label".
7174         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
7175         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
7176         (same_cmp_following_p): Likewise for locals "i2", "i3".
7177         * config/sh/sh_optimize_sett_clrt.cc
7178         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
7179         param "cbranch_insn".
7180         * function.c (convert_jumps_to_returns): Likewis for local "jump".
7181         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
7182         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
7183         const rtx_insn *.
7184         (condjump_p): Likewise.
7185         (condjump_in_parallel_p): Likewise.
7186         (pc_set): Likewise.
7187         (any_uncondjump_p): Likewise.
7188         (any_condjump_p): Likewise.
7189         (condjump_label): Likewise.
7190         (returnjump_p): Strengthen param "insn" from rtx to
7191         const rtx_insn *.
7192         (onlyjump_p): Strengthen param "insn" from const_rtx to
7193         const rtx_insn *.
7194         (jump_to_label_p): Likewise.
7195         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
7196         (invert_jump): Likewise.
7197         * reorg.c (simplejump_or_return_p): Add checked cast when calling
7198         simplejump_p.
7199         (get_jump_flags): Strengthen param "insn" from rtx to
7200         const rtx_insn *.
7201         (get_branch_condition): Likewise.
7202         (condition_dominates_p): Likewise.
7203         (make_return_insns): Move declaration of local "pat" earlier, to
7204         after we've handled NONJUMP_INSN_P and non-sequences, using its
7205         methods to simplify the code and for type-safety.
7206         * rtl.h (find_constant_src): Strengthen param from const_rtx to
7207         const rtx_insn *.
7208         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
7209         (condjump_p): Strengthen param from const_rtx to
7210         const rtx_insn *.
7211         (any_condjump_p): Likewise.
7212         (any_uncondjump_p): Likewise.
7213         (pc_set): Likewise.
7214         (condjump_label): Likewise.
7215         (simplejump_p): Likewise.
7216         (returnjump_p): Likewise.
7217         (onlyjump_p): Likewise.
7218         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
7219         (invert_jump): Likewise.
7220         (condjump_in_parallel_p): Strengthen param from const_rtx to
7221         const rtx_insn *.
7222         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
7223         to const rtx_insn *.
7224         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
7225         to const rtx_insn *.
7226         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
7227
7228 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7229
7230         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
7231         above the conditional, and convert the check on GET_CODE to a
7232         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
7233         the conditional.  Simplify the conditional by using methods of
7234         "trial_seq".
7235
7236 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7237
7238         * haifa-sched.c (check_clobbered_conditions): Strengthen local
7239         "link" from rtx to rtx_insn_list *, and use its methods for
7240         clarity and type-safety.
7241         (toggle_cancelled_flags): Likewise.
7242         (restore_last_backtrack_point): Likewise.
7243         (queue_to_ready): Use insn method of "link" in one place.
7244         (schedule_block): Strengthen local "link" from rtx to
7245         rtx_insn_list *, and use its methods for clarity and type-safety.
7246
7247 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7248
7249         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
7250         param "insn" from const_rtx to const rtx_insn *.
7251         (sched_get_reverse_condition_uncached): Likewise.
7252         (sched_get_condition_with_rev): Likewise.
7253         (sched_has_condition_p): Likewise.
7254         (sched_insns_conditions_mutex_p): Likewise for both params.
7255         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
7256         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
7257         (setup_insn_reg_uses): Move local "list" to be more tightly
7258         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
7259         its methods for clarity and type-safety.
7260         (sched_analyze_1): Strengthen local "pending" from rtx to
7261         rtx_insn_list *, and local "pending_mem" from rtx to
7262         rtx_expr_list *.  Use methods of each for clarity and type-safety.
7263         (sched_analyze_2): Likewise.
7264         (sched_analyze_insn): Likewise.
7265
7266         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
7267         param from const_rtx to const rtx_insn *.
7268         (sched_insns_conditions_mutex_p): Likewise for both params.
7269         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
7270         param.
7271
7272         * system.h (CONST_CAST_RTX_INSN): New macro.
7273
7274 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7275
7276         * recog.c (peep2_attempt): Strengthen return type from rtx to
7277         rtx_insn *.
7278         (peep2_update_life): Likewise for params "last", "prev", removing
7279         a checked cast made redundant by this.
7280         (peephole2_optimize): Likewise for local "last".
7281
7282 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7283
7284         * basic-block.h (set_block_for_insn): Eliminate this macro in
7285         favor of...
7286         * rtl.h (set_block_for_insn): New inline function, imposing the
7287         requirement that the "insn" param is an rtx_insn *.
7288
7289 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7290
7291         * caller-save.c (setup_save_areas): Strengthen local "insn" from
7292         rtx to rtx_insn *.
7293         * final.c (get_call_reg_set_usage): Likewise for first param,
7294         eliminating a checked cast.
7295         * regs.h (get_call_reg_set_usage): Likewise for first param.
7296         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
7297         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
7298         cast, replacing references to "x" with "call_insn" where
7299         appropriate.
7300         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
7301         rtx_insn *, adding a checked cast.
7302
7303 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7304
7305         * output.h (final_scan_insn): Strengthen first param from rtx to
7306         rtx_insn *.
7307
7308         * final.c (final_scan_insn): Likewise, renaming it back from
7309         "uncast_insn" to "insn", eliminating the checked cast.
7310
7311         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
7312         "vec" with an rtx_sequence * "seq", taking a copy of
7313         "final_sequence", and using methods of "seq" for clarity, and for
7314         type-safety in the calls to final_scan_insn.
7315         * config/mips/mips.c (mips_output_conditional_branch): Use methods
7316         of "final_sequence" for clarity, and for type-safety in the call to
7317         final_scan_insn.
7318         * config/sh/sh.c (print_slot): Strengthen param from rtx to
7319         rtx_sequence * and rename from "insn" to "seq".
7320
7321 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7322
7323         * jump.c (delete_related_insns): Introduce a new local "table" by
7324         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
7325         get_labels method of "table" to simplify access to the labels in
7326         the jump table.
7327
7328 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7329
7330         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
7331         f_minmaxs, f_minmaxd types.
7332
7333 2014-09-05  Richard Biener  <rguenther@suse.de>
7334
7335         * cfgloop.c (mark_loop_for_removal): Record former header
7336         when ENABLE_CHECKING.
7337         * cfgloop.h (strut loop): Add former_header member when
7338         ENABLE_CHECKING.
7339         * loop-init.c (fix_loop_structure): Sanity check loops
7340         marked for removal if they re-appeared.
7341
7342 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7343
7344         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
7345         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
7346
7347         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
7348         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
7349         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
7350         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
7351         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
7352         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
7353         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
7354         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
7355         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
7356         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
7357         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
7358         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
7359         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
7360         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
7361         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
7362         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
7363         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
7364         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
7365         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
7366         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
7367         with int{32,16,8}_t.
7368
7369 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7370
7371         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
7372         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
7373         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
7374         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
7375         Remove temporary __asm__ and reimplement.
7376
7377 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7378
7379         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
7380         handling cmge, cmgt, cmeq, cmtst.
7381
7382         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
7383         cmlt, cmgeu, cmgtu, cmtst): Remove.
7384
7385         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
7386         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
7387         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
7388         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
7389
7390 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7391
7392         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
7393         TYPES_TST): Define.
7394         (aarch64_fold_builtin): Update pattern for cmtst.
7395
7396         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
7397         Declare.
7398
7399         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
7400
7401         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
7402         Switch operands, separate out more cases, refactor.
7403
7404         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
7405
7406         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
7407         argument; rename old version to...
7408         (aarch64_const_vec_all_same_in_range_p): ...this.
7409         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
7410
7411         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
7412
7413 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7414
7415         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7416         Remove qualifier_const_pointer, update comment.
7417
7418 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7419
7420         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
7421
7422 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7423
7424         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
7425         varargs with pointer parameter.
7426         (aarch64_simd_expand_builtin): pass pointer into previous.
7427
7428 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7429
7430         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
7431         alus_ext.
7432
7433 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7434
7435         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
7436         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
7437         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
7438         Replace temporary asm with call to builtin.
7439         (vrbit_p8, vrbitq_p8): New functions.
7440
7441 2014-09-05  Richard Biener  <rguenther@suse.de>
7442
7443         * cfgloop.c (mark_loop_for_removal): New function.
7444         * cfgloop.h (mark_loop_for_removal): Declare.
7445         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
7446         (merge_blocks): Likewise.
7447         (duplicate_block): Likewise.
7448         * except.c (sjlj_emit_dispatch_table): Likewise.
7449         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
7450         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
7451         (thread_through_loop_header): Likewise.
7452
7453 2014-09-05  Richard Biener  <rguenther@suse.de>
7454
7455         PR middle-end/63148
7456         * fold-const.c (try_move_mult_to_index): Remove.
7457         (fold_binary_loc): Do not call it.
7458         * tree-data-ref.c (dr_analyze_indices): Strip conversions
7459         from the base object again.
7460
7461 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
7462
7463         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
7464         DImode.
7465
7466 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7467
7468         PR target/55701
7469         * config/arm/arm.md (setmem): New pattern.
7470         * config/arm/arm-protos.h (struct tune_params): New fields.
7471         (arm_gen_setmem): New prototype.
7472         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7473         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7474         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7475         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7476         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7477         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7478         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7479         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7480         (arm_const_inline_cost): New function.
7481         (arm_block_set_max_insns): New function.
7482         (arm_block_set_non_vect_profit_p): New function.
7483         (arm_block_set_vect_profit_p): New function.
7484         (arm_block_set_unaligned_vect): New function.
7485         (arm_block_set_aligned_vect): New function.
7486         (arm_block_set_unaligned_non_vect): New function.
7487         (arm_block_set_aligned_non_vect): New function.
7488         (arm_block_set_vect, arm_gen_setmem): New functions.
7489
7490 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7491
7492         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
7493
7494 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7495
7496         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7497
7498 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7499
7500         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
7501         an rtx.
7502         * valtrack.h: Adjust.
7503
7504 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7505
7506         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
7507         an rtx.
7508         (emit_jump_insn_before_noloc): Likewise.
7509         (emit_call_insn_before_noloc): Likewise.
7510         (emit_label_before): Likewise.
7511         (emit_label_after): Likewise.
7512         (emit_insn_before_setloc): Likewise.
7513         (emit_jump_insn_before_setloc): Likewise.
7514         (emit_call_insn_before_setloc): Likewise.
7515         (emit_call_insn_before): Likewise.
7516         * rtl.h: Adjust.
7517
7518 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7519
7520         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
7521         rtx_insn *, eliminating a checked cast.
7522
7523 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7524
7525         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
7526         const_rtx to const rtx_insn *.
7527         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
7528         cast.
7529
7530 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7531
7532         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
7533         fixup_args_size_notes.
7534         * expr.c (fixup_args_size_notes): Strengthen first two params from
7535         rtx to rtx_insn *, eliminating a checked cast.
7536         * rtl.h (fixup_args_size_notes): Strengthen first two params from
7537         rtx to rtx_insn *.
7538
7539 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7540
7541         * haifa-sched.c (get_ready_element): Strengthen return type from
7542         rtx to rtx_insn *.
7543         * sched-int.h (get_ready_element): Likewise.
7544
7545 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
7546
7547         PR target/63165
7548         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
7549         indexed_or_indirect_operand instead of memory_operand.
7550         (floatsi<mode>2_lfiwzx_mem): Ditto.
7551
7552 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7553
7554         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
7555         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
7556         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
7557
7558 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7559
7560         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
7561         rtx.
7562         (get_last_nonnote_insn): Likewise.
7563         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
7564         * resource.c (find_basic_block): Likewise.
7565         * rtl.h: Adjust.
7566         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
7567         const_rtx.
7568
7569 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7570
7571         * genattr.c (main): Within the prototype of insn_latency written
7572         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
7573         * genautomata.c (output_internal_maximal_insn_latency_func):
7574         Within the implementation of insn_latency written out to
7575         insn-automata.c, strengthen both params from rtx to rtx_insn *,
7576         eliminating a pair of checked casts.
7577
7578 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7579
7580         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
7581         rtx_insn *.
7582
7583         * rtl.h (eh_returnjump_p): Likewise.
7584
7585 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
7586
7587         * Makefile.in (TAGS): Handle constructs in timevar.def.
7588
7589 2014-09-04  Guozhi Wei  <carrot@google.com>
7590
7591         PR target/62040
7592         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
7593         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
7594         it into two patterns.
7595         (move_lo_quad_internal_be_<mode>): Likewise.
7596
7597 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7598
7599         * doc/options.texi: Document that Var and Init are required if CPP
7600         is given.
7601         * optc-gen.awk: Require Var and Init if CPP is given.
7602         * common.opt (Wpedantic): Use Init.
7603
7604 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7605
7606         * config/rs6000/rs6000.c (special_handling_values): Add
7607         SH_EXTRACT.
7608         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
7609         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
7610         as swappable with special handling SH_EXTRACT.  Remove
7611         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
7612         optimization.
7613         (adjust_extract): New function.
7614         (handle_special_swappables): Add default to case statement; add
7615         case for SH_EXTRACT that calls adjust_extract.
7616         (dump_swap_insn_table): Handle SH_EXTRACT.
7617
7618 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7619
7620         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
7621         selection of 0th memory doubleword, regardless of endianness.
7622
7623 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7624
7625         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
7626
7627 2014-09-04  Alan Modra  <amodra@gmail.com>
7628
7629         PR debug/60655
7630         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
7631         can't be output.
7632
7633 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
7634
7635         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
7636         * targhooks.c (default_dwarf_frame_reg_mode): New function.
7637         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
7638         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
7639         * doc/tm.texi: Regenerate.
7640         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
7641         selection logic to default_dwarf_frame_reg_mode.
7642
7643 2014-09-03  Marek Polacek  <polacek@redhat.com>
7644
7645         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
7646         by -Wall.
7647
7648 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7649
7650         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
7651         the automodified register.
7652
7653 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7654
7655         * output.h (get_some_local_dynamic_name): Declare.
7656         * final.c (some_local_dynamic_name): New variable.
7657         (get_some_local_dynamic_name): New function.
7658         (final_end_function): Clear some_local_dynamic_name.
7659         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7660         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7661         (print_operand): Report an error if '%&' is used inappropriately.
7662         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7663         (get_some_local_dynamic_name_1): Delete.
7664         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7665         (rs6000_get_some_local_dynamic_name): Delete.
7666         (rs6000_get_some_local_dynamic_name_1): Delete.
7667         (print_operand): Report an error if '%&' is used inappropriately.
7668         * config/s390/s390.c (machine_function): Remove some_ld_name.
7669         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7670         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7671         * config/sparc/sparc.c: Include rtl-iter.h.
7672         (machine_function): Remove some_ld_name.
7673         (sparc_print_operand): Report an error if '%&' is used inappropriately.
7674         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7675
7676 2014-09-03  Richard Henderson  <rth@redhat.com>
7677
7678         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7679         (aarch64_popwb_pair_reg): Remove.
7680         (aarch64_set_frame_expr): Remove.
7681         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7682         the restore ops performed by the insns generated.
7683         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7684         insn.  Perform the calls_eh_return addition later; do not attempt to
7685         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
7686         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7687         special markup at all.  Load cfun->machine->frame.hard_fp_offset
7688         into a local variable.
7689         (aarch64_frame_pointer_required): Don't check calls_alloca.
7690
7691 2014-09-03  Richard Biener  <rguenther@suse.de>
7692
7693         * opts.c (default_options_optimization): Adjust
7694         max-combine-insns to 2 for -Og.
7695
7696 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7697
7698         PR ipa/62015
7699         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7700         pass-trough jump functions correctly.
7701
7702 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7703
7704         PR ipa/61986
7705         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7706         created replacements in ascending order of offsets.
7707         (known_aggs_to_agg_replacement_list): Likewise.
7708
7709 2014-09-03  Martin Liska  <mliska@suse.cz>
7710
7711         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7712         is set to set uninitialized value for vnresult.
7713
7714 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7715
7716         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7717         for TARGET_MUST_PASS_IN_STACK.
7718
7719 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7720
7721         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7722         for TARGET_ARG_PARTIAL_BYTES.
7723
7724 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7725
7726         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7727         instructions for varargs implementation.
7728         (nds32_expand_epilogue): Emit stack adjustment instructions for
7729         varargs implementation.
7730
7731 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7732
7733         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7734         optimization detection.
7735
7736 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7737
7738         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7739         arguments.
7740         (nds32_function_arg_advance): Deal with nameless arguments.
7741         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7742         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7743         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7744
7745 2014-09-03  Richard Biener  <rguenther@suse.de>
7746
7747         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7748         (struct bb_bitmap_sets): Remove deferred member.
7749         (BB_DEFERRED): Remove.
7750         (defer_or_phi_translate_block): Remove.
7751         (compute_antic_aux): Remove deferring of blocks, assert
7752         proper iteration order.
7753         (compute_antic): Do not set BB_DEFERRED.
7754         (eliminate): Allocate el_avail of proper size initially.
7755
7756 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7757
7758         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7759         according to the value of crtl->args.pretend_args_size.
7760
7761 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7762
7763         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7764         varargs information.
7765
7766 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7767
7768         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7769         implementation for TARGET_SETUP_INCOMING_VARARGS.
7770         (nds32_strict_argument_naming): Refine comment.
7771         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7772         Define for future implementation.
7773
7774 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
7775
7776         * config/i386/adxintrin.h (_subborrow_u32): New.
7777         (_addcarry_u32): Ditto.
7778         (_subborrow_u64): Ditto.
7779         (_addcarry_u64): Ditto.
7780         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7781         IX86_BUILTIN_SBB64.
7782         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7783         __builtin_ia32_sbb_u64
7784
7785 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7786
7787         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7788         GPR-specific stuff.
7789         (nds32_function_arg_advance): Likewise.
7790         (nds32_init_cumulative_args): Likewise.
7791         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7792         (NDS32_FIRST_GPR_REGNUM): Define.
7793         (NDS32_LAST_GPR_REGNUM): Define.
7794         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7795         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7796         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7797         (machine_function): Use GRP-specific stuff.
7798
7799 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7800
7801         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7802         (nds32_expand_epilogue): Likewise.
7803         (nds32_expand_prologue_v3push): Likewise.
7804         (nds32_expand_epilogue_v3pop): Likewise.
7805
7806 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7807
7808         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7809         v3push/v3pop for variadic function.
7810         * config/nds32/nds32.md (prologue, epilogue): Likewise.
7811
7812 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7813
7814         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7815         Check rtx for varargs implementation.
7816         (nds32_output_stack_pop): Likewise.
7817         * config/nds32/nds32-protos.h: Have a rtx argument for
7818         nds32_output_stack_push and nds32_output_stack_pop.
7819         * config/nds32/nds32.md: Likewise.
7820
7821 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7822
7823         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7824         to check if FUNC is an interrupt service routine.
7825         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7826
7827 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7828
7829         * config/nds32/nds32.h (machine_function): Add some fields for variadic
7830         arguments implementation.
7831
7832 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7833
7834         * config/nds32/nds32-predicates.c
7835         (nds32_valid_stack_push_pop): Rename to ...
7836         (nds32_valid_stack_push_pop_p): ... this.
7837         * config/nds32/nds32-protos.h: Likewise.
7838         * config/nds32/predicates.md: Likewise.
7839
7840 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7841
7842         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7843         (nds32_emit_stack_v3push): ... this.
7844         (nds32_gen_stack_v3pop): Rename to ...
7845         (nds32_emit_stack_v3pop): ... this and consider CFA restore
7846         information.
7847
7848 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7849
7850         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7851         (nds32_emit_stack_push_multiple): ... this.
7852         (nds32_gen_stack_pop_multiple): Rename to ...
7853         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7854         information.
7855
7856 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7857
7858         PR target/61078
7859         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7860         and add a second splitter to handle the remaining cases.
7861
7862 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7863
7864         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7865
7866 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7867
7868         * cfgexpand.c (label_rtx_for_bb): Change type to
7869         hash_map<basic_block, rtx_code_label *> *.
7870         (expand_gimple_basic_block): Adjust.
7871         (pass_expand::execute): Likewise.
7872
7873 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7874
7875         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7876         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7877         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7878         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7879         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7880         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7881         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7882         of rtx.
7883
7884 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7885
7886         * alloc-pool.c: Include coretypes.h.
7887         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7888         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7889         hash_set instead of htab.
7890         * ggc-page.c (in_gc): New variable.
7891         (ggc_free): Do nothing if a collection is taking place.
7892         (ggc_collect): Set in_gc appropriately.
7893         * ggc.h (gt_ggc_mx(const char *)): New function.
7894         (gt_pch_nx(const char *)): Likewise.
7895         (gt_ggc_mx(int)): Likewise.
7896         (gt_pch_nx(int)): Likewise.
7897         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7898         (hash_map::hash_entry::pch_nx): Likewise.
7899         (hash_map::hash_entry::pch_nx_helper): Likewise.
7900 (hash_map::hash_map): Adjust.
7901 (hash_map::create_ggc): New function.
7902 (gt_ggc_mx): Likewise.
7903 (gt_pch_nx): Likewise.
7904         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7905 (default_hashset_traits::pch_nx): Likewise.
7906 (hash_set::hash_entry::ggc_mx): Likewise.
7907 (hash_set::hash_entry::pch_nx): Likewise.
7908 (hash_set::hash_entry::pch_nx_helper): Likewise.
7909 (hash_set::hash_set): Adjust.
7910 (hash_set::create_ggc): New function.
7911 (hash_set::elements): Likewise.
7912 (gt_ggc_mx): Likewise.
7913 (gt_pch_nx): Likewise.
7914         * hash-table.h (hash_table::hash_table): Adjust.
7915 (hash_table::m_ggc): New member.
7916         (hash_table::~hash_table): Adjust.
7917         (hash_table::expand): Likewise.
7918         (hash_table::empty): Likewise.
7919 (gt_ggc_mx): New function.
7920         (hashtab_entry_note_pointers): Likewise.
7921 (gt_pch_nx): Likewise.
7922
7923 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7924
7925         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
7926         built-in definition.
7927         (XVCVUXDDP_SCALE): Likewise.
7928         (XVCVDPSXDS_SCALE): Likewise.
7929         (XVCVDPUXDS_SCALE): Likewise.
7930         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
7931         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7932         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7933         VSX_BUILTIN_XVCVDPUXDS_SCALE.
7934         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7935         prototype.
7936         * config/rs6000/rs6000.c (real.h): New include.
7937         (rs6000_scale_v2df): New function.
7938         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7939         (UNSPEC_VSX_XVCVUXDDP): Likewise.
7940         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7941         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7942         (vsx_xvcvsxddp_scale): New define_expand.
7943         (vsx_xvcvsxddp): New define_insn.
7944         (vsx_xvcvuxddp_scale): New define_expand.
7945         (vsx_xvcvuxddp): New define_insn.
7946         (vsx_xvcvdpsxds_scale): New define_expand.
7947         (vsx_xvcvdpsxds): New define_insn.
7948         (vsx_xvcvdpuxds_scale): New define_expand.
7949         (vsx_xvcvdpuxds): New define_insn.
7950         * doc/extend.texi (vec_ctf): Add new prototypes.
7951         (vec_cts): Likewise.
7952         (vec_ctu): Likewise.
7953         (vec_splat): Likewise.
7954         (vec_div): Likewise.
7955         (vec_mul): Likewise.
7956
7957 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7958
7959         PR target/62275
7960         * config/arm/neon.md
7961         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7962         <v_cmp_result>): New pattern.
7963         * config/arm/iterators.md (NEON_VCVT): New int iterator.
7964         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7965         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7966         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7967         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7968         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7969
7970 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7971
7972         PR target/62275
7973         * config/arm/iterators.md (FIXUORS): New code iterator.
7974         (VCVT): New int iterator.
7975         (su_optab): New code attribute.
7976         (su): Likewise.
7977         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7978
7979 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7980
7981         * config/aarch64/predicates.md (aarch64_comparison_operation):
7982         New special predicate.
7983         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7984         aarch64_comparison_operation instead of matching an operator.
7985         Update operand numbers.
7986         (csinc3<mode>_insn): Likewise.
7987         (*csinv3<mode>_insn): Likewise.
7988         (*csneg3<mode>_insn): Likewise.
7989         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7990         * config/aarch64/aarch64.c (aarch64_get_condition_code):
7991         Return -1 instead of aborting on invalid condition codes.
7992         (aarch64_print_operand): Update aarch64_get_condition_code callsites
7993         to assert that the returned condition code is valid.
7994         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7995
7996 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
7997
7998         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7999         tree.def, and gimple.def
8000
8001 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
8002             Balaji V. Iyer  <balaji.v.iyer@intel.com>
8003             Igor Zamyatin  <igor.zamyatin@intel.com>
8004
8005         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
8006         (__cilkrts_cilk_for_64): Likewise.
8007         * cilk-common.c (declare_cilk_for_builtin): New function.
8008         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
8009         __cilkrts_cilk_for_64 bultins.
8010         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
8011         CILK_TI_F_LOOP_64.
8012         (cilk_for_32_fndecl): New define.
8013         (cilk_for_64_fndecl): Likewise.
8014         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
8015         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
8016         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
8017         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
8018         GF_OMP_FOR_COMBINED_INTO.
8019         * gimplify.c (gimplify_scan_omp_clauses): Added
8020         OMP_CLAUSE__CILK_FOR_COUNT_ case.
8021         (gimplify_adjust_omp_clauses): Ditto.
8022         (gimplify_omp_for): Added CILK_FOR case.
8023         (gimplify_expr): Ditto.
8024         * omp-low.c: Include cilk.h.
8025         (extract_omp_for_data): Set appropriate kind for
8026         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
8027         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
8028         (create_omp_child_function_name): Added second argument to handle
8029         cilk_for case.
8030         (cilk_for_check_loop_diff_type): New function.
8031         (expand_cilk_for_call): Likewise.
8032         (expand_cilk_for): Likewise.
8033         (create_omp_child_function): Set cilk_for_count; handle the cases when
8034         it is true; call create_omp_child_function_name with second argument.
8035         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
8036         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
8037         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
8038         * tree-nested.c (convert_nonlocal_omp_clauses): Added
8039         OMP_CLAUSE__CILK_FOR_COUNT_ case.
8040         (convert_local_omp_clauses): Ditto.
8041         * tree-pretty-print.c (dump_omp_clause): Added
8042         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
8043         (dump_generic_node): Added CILK_FOR case.
8044         * tree.c (omp_clause_num_ops): New element
8045         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
8046         (omp_clause_code_name): New element _Cilk_for_count_.
8047         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
8048         * tree.def: Add tree code for CILK_FOR.
8049
8050 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8051
8052         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
8053         (ppc403-compare): Add "exts with dot" case.
8054         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
8055         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
8056         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
8057         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
8058         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
8059         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
8060         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
8061         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
8062         cell-cmp-microcoded): Similarly.
8063         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
8064         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
8065         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
8066         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
8067         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
8068         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
8069         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
8070         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
8071         (power6-compare): Add "exts with dot" case.
8072         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
8073         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
8074         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
8075
8076         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
8077         if avoiding Cell microcode.
8078         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
8079         (is_cracked_insn): Ditto.
8080         (insn_must_be_first_in_group): Ditto.
8081         * config/rs6000/rs6000.md (dot): Adjust comment.
8082         (cell_micro): Handle exts+dot.
8083         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
8084         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
8085         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
8086         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
8087         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
8088         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
8089         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
8090
8091 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8092
8093         * config/rs6000/rs6000.md (QHSI): Delete.
8094         (EXTQI, EXTHI, EXTSI): New mode iterators.
8095         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
8096         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
8097         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
8098         9 anonymous instructions, and 8 splitters): Delete.
8099         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
8100         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
8101         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
8102         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
8103         *zero_extendsi<mode>2_dot2): New.
8104
8105 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8106
8107         * config/rs6000/rs6000.md (any_extend): New code iterator.
8108         (u, su): New code attributes.
8109         (dmode, DMODE): New mode attributes.
8110         (<su>mul<mode>3_highpart): New.
8111         (*<su>mul<mode>3_highpart): New.
8112         (<su>mulsi3_highpart_le): New.
8113         (<su>muldi3_highpart_le): New.
8114         (<su>mulsi3_highpart_64): New.
8115         (<u>mul<mode><dmode>3): New.
8116         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
8117         splitters): Delete.
8118         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
8119         splitters): Delete.
8120
8121 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8122
8123         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
8124         *mulsi3_internal2, and two splitters): Delete.
8125         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
8126         Delete.
8127         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
8128
8129 2014-09-02  Richard Biener  <rguenther@suse.de>
8130
8131         PR tree-optimization/62695
8132         * tree-ssa-structalias.c (find_func_clobbers): Add missing
8133         vector truncate.
8134
8135 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
8136
8137         PR target/62312
8138         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
8139
8140 2014-09-01  Andi Kleen  <ak@linux.intel.com>
8141
8142         * file-find.c (add_prefix_begin): Add.
8143         (do_add_prefix): Rename from add_prefix with first argument.
8144         (add_prefix): Add new wrapper.
8145         * file-find.h (add_prefix_begin): Add.
8146         * gcc-ar.c (main): Support -B option.
8147
8148 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
8149
8150         * genemit.c: Include dumpfile.h.
8151         (gen_split): Print name of splitter function to dump file.
8152
8153 2014-09-01  Richard Biener  <rguenther@suse.de>
8154
8155         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
8156         Use stack auto_vecs for constraint expressions.
8157         (find_func_aliases_for_call): Likewise.
8158         (find_func_aliases): Likewise.
8159         (find_func_clobbers): Likewise.
8160
8161 2014-09-01  Richard Biener  <rguenther@suse.de>
8162
8163         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
8164         operands vector in most cases.  Remove redundant code.
8165
8166 2014-09-01  Olivier Hainque  <hainque@adacore.com>
8167
8168         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
8169         $WIND_BASE instead of designating a harcoded arbitrary home dir.
8170         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
8171
8172 2014-09-01  Richard Biener  <rguenther@suse.de>
8173
8174         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
8175         copy_reference_ops_from_call, vn_nary_op_compute_hash,
8176         vn_reference_compute_hash, vn_reference_insert): Remove.
8177         (vn_reference_lookup_call): New function.
8178         * tree-ssa-sccvn.c (vn_reference_compute_hash,
8179         copy_reference_ops_from_ref, copy_reference_ops_from_call,
8180         vn_reference_insert, vn_nary_op_compute_hash): Make static.
8181         (create_reference_ops_from_call): Remove.
8182         (vn_reference_lookup_3): Properly update shared_lookup_references.
8183         (vn_reference_lookup_pieces): Assert that we updated
8184         shared_lookup_references properly.
8185         (vn_reference_lookup): Likewise.
8186         (vn_reference_lookup_call): New function.
8187         (visit_reference_op_call): Use it.  Avoid re-building the
8188         reference ops.
8189         (visit_reference_op_load): Remove redundant lookup.
8190         (visit_reference_op_store): Perform special tail-merging work
8191         only when possibly doing tail-merging.
8192         (visit_use): Likewise.
8193         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
8194
8195 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
8196
8197         PR target/62025
8198         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
8199         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
8200         (find_inc): Revert 2014-08-13 change.
8201
8202 2014-09-01  Marek Polacek  <polacek@redhat.com>
8203
8204         PR middle-end/61903
8205         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
8206         Change the type of V to unsigned HOST_WIDE_INT.
8207
8208 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8209
8210         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
8211         the size of byte markers.
8212         (do_shift_rotate): Fix confusion between host, target and marker byte
8213         size.
8214         (verify_symbolic_number_p): Likewise.
8215         (find_bswap_or_nop_1): Likewise.
8216         (find_bswap_or_nop): Likewise.
8217
8218 2014-09-01  Olivier Hainque  <hainque@adacore.com>
8219
8220         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
8221         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
8222
8223 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
8224
8225         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
8226         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
8227         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
8228
8229 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
8230
8231         PR sanitizer/61897
8232         PR sanitizer/62140
8233         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
8234         (build_check_stmt): Likewise.
8235         (instrument_strlen_call): Likewise.
8236         (asan_expand_check_ifn): Likewise and fix types.
8237         (maybe_cast_to_ptrmode): New function.
8238
8239 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8240
8241         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
8242
8243 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
8244
8245         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
8246
8247 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
8248
8249         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
8250         prefix to function labels when generating fast indirect calls.
8251
8252 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
8253
8254         PR bootstrap/62304
8255
8256         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
8257         param back from rtx_insn * to rtx.  Rename param from "label" to
8258         "label_or_return", reintroducing "label" as an rtx_insn * after
8259         we've ensured it's not a RETURN.
8260         (first_active_target_insn): Likewise for return type and param;
8261         add a checked cast to rtx_insn * once we've ensured "insn" is not
8262         a RETURN.
8263         (steal_delay_list_from_target): Convert param "pnew_thread" back
8264         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
8265         with JUMP_LABEL.
8266         (own_thread_p): Convert param "thread" back from an rtx_insn * to
8267         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
8268         cast once we've established we're not dealing with a RETURN,
8269         renaming subsequent uses of "thread" to "thread_insn".
8270         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
8271         to JUMP_LABEL.
8272         (follow_jumps): Convert return type and param "label" from
8273         rtx_insn * back to rtx.  Move initialization of "value" to after
8274         the handling for ANY_RETURN_P, adding a checked cast there to
8275         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
8276         rename to "this_label_or_return", reintroducing "this_label" as
8277         an rtx_insn * once we've handled the case where it could be an
8278         ANY_RETURN_P.
8279         (fill_slots_from_thread): Rename param "thread" to
8280         "thread_or_return", converting from an rtx_insn * back to an rtx.
8281         Reintroduce name "thread" as an rtx_insn * local with a checked
8282         cast once we've handled the case of it being an ANY_RETURN_P.
8283         Convert local "new_thread" from an rtx_insn * back to an rtx.
8284         Add a checked cast when assigning to "trial" from "new_thread".
8285         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
8286         checked cast to rtx_insn * from "new_thread" when invoking
8287         get_label_before.
8288         (fill_eager_delay_slots): Convert locals "target_label",
8289         "insn_at_target" from rtx_insn * back to rtx.
8290         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
8291         (relax_delay_slots): Convert locals "trial", "target_label" from
8292         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
8293         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
8294         invoking update_block.
8295         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
8296         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
8297
8298         * resource.h (mark_target_live_regs): Undo erroneous conversion
8299         of second param of r214693, converting it back from rtx_insn * to
8300         rtx, since it could be a RETURN.
8301
8302         * resource.c (find_dead_or_set_registers): Similarly, convert
8303         param "jump_target" back from an rtx_insn ** to an rtx *, as we
8304         could be writing back a RETURN.  Rename local rtx_insn * "next" to
8305         "next_insn", and introduce "lab_or_return" as a local rtx,
8306         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
8307         (mark_target_live_regs): Undo erroneous conversion
8308         of second param of r214693, converting it back from rtx_insn * to
8309         rtx, since it could be a RETURN.  Rename it from "target" to
8310         "target_maybe_return", reintroducing the name "target" as a local
8311         rtx_insn * with a checked cast, after we've handled the case of
8312         ANY_RETURN_P.
8313
8314 2014-08-29  DJ Delorie  <dj@redhat.com>
8315
8316         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
8317         pointer size up to a power of two.
8318         * defaults.h (DWARF2_ADDR_SIZE): Round up.
8319         (POINTER_SIZE_UNITS): New, rounded up value.
8320         * dwarf2asm.c (size_of_encoded_value): Use it.
8321         (dw2_output_indirect_constant_1): Likewise.
8322         * expmed.c (init_expmed_one_conv): We now know the sizes of
8323         partial int modes.
8324         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
8325         * optabs.c (expand_float): Use precision, not size.
8326         (expand_fix): Likewise.
8327         * simplify-rtx (simplify_unary_operation_1): Likewise.
8328         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8329         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
8330         (default_assemble_integer) Likewise.
8331         (dump_tm_clone_pairs): Likewise.
8332         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
8333         * var-tracking.c (adjust_mems): Allow partial-int modes also.
8334         (prepare_call_arguments): Likewise.
8335         * stor-layout.c (finalize_type_size): Preserve precision.
8336         (layout_type): Use precision, not size.
8337
8338         * expr.c (convert_move): If the target has an explicit converter,
8339         use it.
8340
8341 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8342
8343         * gdbinit.in: Skip various inline functions in rtl.h when
8344         stepping.
8345
8346 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
8347
8348         PR bootstrap/62301
8349         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
8350
8351 2014-08-29  Richard Biener  <rguenther@suse.de>
8352
8353         PR tree-optimization/62291
8354         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
8355         exactly the vector size needed and use quick_push.
8356         (phi_translate_1): Adjust comment.
8357         (valid_in_sets): Remove block argument and remove pointless
8358         checking of NAMEs.
8359         (dependent_clean): Adjust for removal of block argument.
8360         (clean): Likewise.
8361         (compute_antic_aux): Likewise.
8362         (compute_partial_antic_aux): Likewise.
8363
8364 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8365             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8366             Anna Tikhonova  <anna.tikhonova@intel.com>
8367             Ilya Tocar  <ilya.tocar@intel.com>
8368             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8369             Ilya Verbin  <ilya.verbin@intel.com>
8370             Kirill Yukhin  <kirill.yukhin@intel.com>
8371             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8372
8373         * config/i386/sse.md
8374         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
8375         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
8376         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
8377         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
8378
8379 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8380             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8381             Anna Tikhonova  <anna.tikhonova@intel.com>
8382             Ilya Tocar  <ilya.tocar@intel.com>
8383             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8384             Ilya Verbin  <ilya.verbin@intel.com>
8385             Kirill Yukhin  <kirill.yukhin@intel.com>
8386             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8387
8388         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
8389         * config/i386/sse.md
8390         (define_mode_iterator VI4_128_8_256): New.
8391         (define_mode_iterator VI2_128_4_256): Ditto.
8392         (define_mode_iterator PMOV_DST_MODE): Rename into
8393         (define_mode_iterator PMOV_DST_MODE_1): this.
8394         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
8395         Use PMOV_DST_MODE_1 mode iterator.
8396         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8397         Ditto.
8398         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8399         Ditto.
8400         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
8401         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
8402         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
8403         (define_mode_iterator PMOV_DST_MODE_2): New.
8404         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
8405         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
8406         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
8407         Ditto.
8408         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
8409         (define_mode_attr pmov_dst_3): Ditto.
8410         (define_mode_attr pmov_dst_zeroed_3): Ditto.
8411         (define_mode_attr pmov_suff_3): Ditto.
8412         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
8413         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
8414         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
8415         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
8416         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
8417         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
8418         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
8419         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
8420         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
8421         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
8422         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
8423         (define_mode_attr pmov_dst_4): Ditto.
8424         (define_mode_attr pmov_dst_zeroed_4): Ditto.
8425         (define_mode_attr pmov_suff_4): Ditto.
8426         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
8427         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
8428         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
8429         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
8430         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
8431         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
8432         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
8433         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
8434         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
8435         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
8436         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
8437
8438 2014-08-29  Richard Biener  <rguenther@suse.de>
8439
8440         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
8441         NON_LVALUE_EXPR in gimple.
8442
8443 2014-08-29  Richard Biener  <rguenther@suse.de>
8444
8445         PR middle-end/62292
8446         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
8447         from previous refactoring.
8448         (gimple_fold_builtin_strncpy): Likewise.
8449
8450 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8451
8452         PR bootstrap/62300
8453         * function.c (assign_parm_setup_reg): Remove erroneous checked
8454         cast to rtx_insn * on result of gen_extend_insn in favor of
8455         introducing a new local rtx "pat".
8456
8457 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8458
8459         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
8460         to silence warning.
8461         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
8462
8463 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8464
8465         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
8466         (next_insn): Likewise.
8467         * emit-rtl.c (next_insn): Likewise.
8468         (previous_insn): Likewise.
8469         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
8470         "insn" and "next" from rtx to rtx_insn *.
8471         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
8472         "insn", "insn1", "vliw_start",  "prologue_end_note",
8473         "last_insn_in_packet".
8474
8475 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8476
8477         * shrink-wrap.h (active_insn_between): Strengthen both params from
8478         rtx to rtx_insn *.
8479         * function.c (active_insn_between): Likewise.
8480
8481 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8482
8483         * genattr.c (main): When writing out insn-attr.h, strengthen param
8484         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
8485         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
8486         writing out the definition of dfa_clear_single_insn_cache to the
8487         generated insn-automata.c
8488
8489 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8490
8491         * resource.h (clear_hashed_info_for_insn): Strengthen param from
8492         rtx to rtx_insn *.
8493         (incr_ticks_for_insn): Likewise.
8494         (init_resource_info): Likewise.
8495
8496         * resource.c (init_resource_info): Likewise.
8497         (clear_hashed_info_for_insn): Likewise.
8498         (incr_ticks_for_insn): Likewise.
8499
8500         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
8501         rtx to rtx_insn *.
8502         (steal_delay_list_from_target): Use methods of "seq".
8503         (try_merge_delay_insns): Use methods of "merged_insns".
8504         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
8505         (reorg_redirect_jump): Likewise for param "jump".
8506
8507 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8508
8509         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
8510         rtx to rtx_insn *.
8511         * config/s390/s390.c (s390_split_branches): Eliminate top-level
8512         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
8513         "set_insn".
8514         (s390_mainpool_finish): In three places, split out a local rtx
8515         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
8516         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
8517         and split another local rtx "insn" out into rtx "pat" and
8518         rtx_insn * "insn".
8519         * config/sh/sh.c (output_branchy_insn): Rather than working
8520         directly on operands[9], introduce local rtx_code_label *
8521         variables named "lab" in two places, working on them, and then
8522         assigning them to operands[9], so that the intervening operations
8523         are known by the type system to be on insns.
8524
8525 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8526
8527         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
8528         const rtx_insn *.
8529
8530         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
8531         in invocation of INSN_HAS_LOCATION.
8532
8533 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8534
8535         * config/rs6000/altivec.h (vec_xl): New #define.
8536         (vec_xst): Likewise.
8537         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
8538         (XXSPLTD_V2DI): Likewise.
8539         (DIV_V2DI): Likewise.
8540         (UDIV_V2DI): Likewise.
8541         (MUL_V2DI): Likewise.
8542         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8543         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
8544         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
8545         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
8546         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
8547         (UNSPEC_VSX_DIVSD): Likewise.
8548         (UNSPEC_VSX_DIVUD): Likewise.
8549         (UNSPEC_VSX_MULSD): Likewise.
8550         (vsx_mul_v2di): New insn-and-split.
8551         (vsx_div_v2di): Likewise.
8552         (vsx_udiv_v2di): Likewise.
8553         (vsx_xxspltd_<mode>): New insn.
8554
8555 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8556
8557         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
8558         NEXT_INSN.
8559         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
8560         (NEXT_INSN): Likewise.
8561         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
8562         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
8563         const rtx_insn *.
8564         (no_labels_between_p): Likewise for both params.
8565
8566         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
8567         cast when using NEXT_INSN on operands[2].
8568         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
8569         "insn" from rtx to rtx_insn *, adding a checked cast.
8570         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
8571         rtx_insn *.
8572         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
8573         for third param.
8574         (arc_text_label): Likewise for param "insn".
8575         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
8576         "insn".
8577         (arc_ccfsm_record_condition): Likewise for param "jump".
8578         (arc_text_label): Likewise for local "label".
8579         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
8580         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
8581         a method for typesafety.  Add a checked cast.
8582         * config/arc/constraints.md (Clb): Add a checked cast when getting
8583         the CODE_LABEL from a LABEL_REF.
8584         * config/arm/arm.c (require_pic_register): Strengthen locals
8585         "seq", "insn" from rtx to rtx_insn *.
8586         (create_fix_barrier): Likewise for locals "selected", "next".
8587         (thumb1_reorg): Likewise for locals "prev", "insn".
8588         (arm_expand_prologue): Likewise for local "last".
8589         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
8590         operands[0].
8591         (thumb2_output_casesi): Likewise for operands[2].
8592         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
8593         strengthen local "insn" from rtx to rtx_insn *.
8594         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
8595         type and param "insn".
8596         (find_prev_insn_start): Likewise.
8597         (hwloop_optimize): Likewise for locals "insn", "last_insn",
8598         "prev".
8599         (gen_one_bundle): Likewise for loal "t".
8600         (find_load): Likewise for param "insn".
8601         (workaround_speculation): Likewise for locals "insn", "next",
8602         "target", "next_tgt".
8603         * config/c6x/c6x.c (assign_reservations): Likewise for both params
8604         and for locals "insn", "within", "last".
8605         (count_unit_reqs): Likewise for params "head", "tail" and local
8606         "insn".
8607         (try_rename_operands): Likewise for params "head", "tail".
8608         (reshuffle_units): Likewise for locals "head", "tail", "insn".
8609         (struct c6x_sched_context): Likewise for fields
8610         "last_scheduled_insn", "last_scheduled_iter0".
8611         (init_sched_state): Replace NULL_RTX with NULL.
8612         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
8613         to rtx_insn *.
8614         (undo_split_delayed_nonbranch): Likewise for param and for local
8615         "prev".
8616         (conditionalize_after_sched): Likewise for local "insn".
8617         (bb_earliest_end_cycle): Likewise.
8618         (filter_insns_above): Likewise for locals "insn", "next".
8619         (hwloop_optimize): Remove redundant checked cast.
8620         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
8621         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
8622         NULL_RTX with NULL.
8623         (cris_simple_epilogue): Likewise.
8624         (cris_expand_prologue): Likewise.
8625         (cris_expand_epilogue): Likewise.
8626         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
8627         local "insn" from rtx to rtx_insn *.
8628         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
8629         (struct frv_packet_group): Likewise for the elements within array
8630         fields "insns", "sorted", and for field "nop".
8631         (frv_packet): Likewise for the elements within array field
8632         "insns".
8633         (frv_add_insn_to_packet): Likewise for param "insn".
8634         (frv_insert_nop_in_packet): Likewise for param "insn" and local
8635         "last".
8636         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
8637         (frv_sort_insn_group_1): Likewise for local "insn".
8638         (frv_optimize_membar_local): Likewise.
8639         (frv_align_label): Likewise for locals "x", "last", "barrier",
8640         "label".
8641         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
8642         local.
8643         (ia64_sched_init): Likewise for local "insn".
8644         (scheduled_good_insn): Likewise for param "last".
8645         (struct _ia64_sched_context): Likewise for field
8646         "last_scheduled_insn".
8647         (ia64_init_sched_context): Replace NULL_RTX with NULL.
8648         (struct bundle_state): Likewise for field "insn".
8649         (issue_nops_and_insn): Likewise for param "insn".
8650         (get_next_important_insn): Likewise for return type and both
8651         params.
8652         (ia64_add_bundle_selector_before): Likewise for param "insn".
8653         (bundling): Likewise for params "prev_head_insn", "tail" and
8654         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
8655         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8656         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8657         Strengthen final param from rtx to rtx_insn *.
8658         (iq2000_move_1word): Likewise for second param.
8659         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8660         param "cur_insn" and local "next_insn".
8661         (iq2000_move_1word): Likewise for param "insn".
8662         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8663         casts when using NEXT_INSN on operands[1].
8664         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8665         "insn" from rtx to rtx_insn *.
8666         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8667         "x", introducing local rtx_insn * "insn" for when working with the
8668         CODE_LABEL of the LABEL_REF.
8669         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8670         rtx_insn *.
8671         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8672         param.
8673         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8674         type.
8675         (conditionalize_block): Likewise for return type and param.
8676         (mcore_is_dead): Likewise for param "first" and local "insn".
8677         (emit_new_cond_insn): Likewise for return type.
8678         (conditionalize_block): Likewise for return type, param, and
8679         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8680         "newinsn".
8681         (conditionalize_optimization): Likewise for local "insn".
8682         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8683         using NEXT_INSN.
8684         * config/microblaze/microblaze.md: Add checked casts when using
8685         NEXT_INSN.
8686         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8687         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8688         and rtx_insn * "insn".
8689         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8690         checked cast when using NEXT_INSN on operands[2].
8691         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8692         local "insn" from rtx to rtx_insn *.
8693         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8694         Likewise.
8695         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8696         Add a checked cast when using NEXT_INSN on operands[1].
8697         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8698         rtx to rtx_insn *.
8699         (pa_output_cbranch): Likewise for final param.
8700         (pa_output_lbranch): Likewise for second param.
8701         (pa_output_bb): Likewise for third param.
8702         (pa_output_bvb): Likewise.
8703         (pa_output_dbra): Likewise for second param.
8704         (pa_output_movb): Likewise.
8705         (pa_output_parallel_movb): Likewise.
8706         (pa_output_parallel_addb): Likewise.
8707         (pa_output_millicode_call): Likewise for first param.
8708         (pa_output_mul_insn): Likewise for second param.
8709         (pa_output_div_insn): Likewise for third param.
8710         (pa_output_mod_insn): Likewise for second param.
8711         (pa_jump_in_call_delay): Likewise for param.
8712         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8713         (pa_output_div_insn): Likewise.
8714         (pa_output_mod_insn): Likewise.
8715         (pa_output_cbranch): Likewise.
8716         (pa_output_lbranch): Likewise.
8717         (pa_output_bb): Likewise.
8718         (pa_output_bvb): Likewise.
8719         (pa_output_dbra): Likewise.
8720         (pa_output_movb): Likewise.
8721         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8722         to simplify and for typesafety.
8723         (pa_output_call): Use method of rtx_sequence *.
8724         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8725         (pa_jump_in_call_delay): Likewise.
8726         (pa_output_parallel_movb): Likewise.
8727         (pa_output_parallel_addb): Likewise.
8728         (pa_following_call): Likewise.
8729         (pa_combine_instructions): Likewise for locals "anchor",
8730         "floater".
8731         (pa_can_combine_p): Likewise for params "anchor", "floater" and
8732         locals "start", "end".
8733         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8734         param "insn" and local "local_insn".
8735         (picochip_final_prescan_insn): Likewise for local "local_insn".
8736         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8737         local "insn".
8738         (uses_TOC): Likewise.
8739         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8740         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8741         splitting out to more tightly-scoped locals, 3 as rtx and one as
8742         rtx_insn *.
8743         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8744         to rtx_insn *.
8745         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8746         where needed.
8747         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8748         to rtx_insn *.
8749         (fixup_addr_diff_vecs): Likewise.
8750         (reg_unused_after): Likewise for param 2.
8751         (sh_can_redirect_branch): Likewise for both params.
8752         (check_use_sfunc_addr): Likewise for param 1.
8753         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8754         (find_barrier): Likewise for local "last_got".
8755         (gen_block_redirect): Likewise for return type, param "jump" and
8756         locals "prev", "scan", "next", "insn".
8757         (struct far_branch): Likewise for fields "near_label",
8758         "insert_place", "far_label".
8759         (gen_far_branch): Likewise for local "jump".
8760         (fixup_addr_diff_vecs): Likewise for param "first" and locals
8761         "insn", "prev".
8762         (barrier_align): Likewise for param and for locals "prev", "x".
8763         Introduce local rtx_sequence * "prev_seq" and use insn method for
8764         typesafety and clarity.
8765         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8766         (get_dest_uid): Likewise for local "dest".
8767         (split_branches): Likewise for locals "next", "beyond", "label",
8768         "block", "far_label".  Add checked casts when assigning to
8769         bp->far_label and "far_label".
8770         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8771         (sequence_insn_p): Likewise.
8772         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
8773         more loop-scoped rtx "insn" when walking LABEL_REFS.
8774         (sh_can_redirect_branch): Strengthen both params from rtx to
8775         rtx_insn *.
8776         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
8777         new local rtx_sequence * "seq" via a dyn_cast, and use a method
8778         for clarity and typesafety.
8779         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8780         "insn" from rtx to rtx_insn *.
8781         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8782         when using NEXT_INSN on the CODE_LABEL in operands[2].
8783         (define_insn "casesi_worker_2"): Likewise.
8784         (define_insn "casesi_shift_media"): Likewise.
8785         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8786         operands[3].
8787         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8788         Strengthen field "insn" from rtx to rtx_insn *.
8789         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8790         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8791         param "start_insn" and local "start_insn".
8792         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8793         field "insn".
8794         (find_set_of_reg_bb): Likewise for param "insn".
8795         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8796         (trace_reg_uses): Likewise for param "start_insn".
8797         (sh_treg_combine::cbranch_trace): Likewise for field
8798         "cbranch_insn".
8799         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8800         param "insn".
8801         (sh_treg_combine::record_set_of_reg): Likewise for param
8802         "start_insn" and local "i".
8803         (sh_treg_combine::can_remove_cstore): Likewise for local
8804         "prev_insn".
8805         (sh_treg_combine::try_optimize_cbranch): Likewise for param
8806         "insn".
8807         (sh_treg_combine::execute): Likewise for local "i".
8808         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8809         param.
8810         (sparc_check_64): Likewise for second param.
8811         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8812         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
8813         dyn_cast, using its insn method for typesafety and clarity.
8814         (empty_delay_slot): Strengthen param "insn" from rtx to
8815         rtx_insn *.
8816         (set_extends): Likewise.
8817         (sparc_check_64): Likewise.
8818         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8819         for locals "seq", "last_insn".
8820         (combine_bnp): Likewise for param "insn".
8821         (xstormy16_reorg): Likewise for local "insn".
8822         * config/v850/v850.c (substitute_ep_register): Likewise for params
8823         "first_insn", "last_insn" and local "insn".
8824         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8825         elements of "regs" array, and local "insn".
8826         * except.c (emit_note_eh_region_end): Likewise for param "insn".
8827         * final.c (final_sequence): Strengthen this global from rtx to
8828         rtx_sequence *.
8829         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8830         rtx_insn *.
8831         (final_scan_insn): Update assignment to "final_sequence" to be
8832         from "seq", the cast version of "body", for type-safety.
8833         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8834         "insns" from rtx to rtx_insn *.
8835         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8836         * genattr.c (main): When writing out generated insn-attr.h,
8837         strengthen params 1 and 3 of eligible_for_delay,
8838         eligible_for_annul_true, eligible_for_annul_false from rtx to
8839         rtx_insn *.
8840         * genattrtab.c (write_eligible_delay): Likewise when writing out
8841         generated insn-attrtab.c; also local "insn" the generated
8842         functions.
8843         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8844         to rtx_insn *.
8845         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8846         "start_label" from rtx to rtx_insn *.
8847         * ira.c (decrease_live_ranges_number): Likewise for local "p".
8848         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8849         "insns" and local "insn".
8850         (validate_equiv_mem): Likewise for param "start" and local "insn".
8851         (memref_used_between_p): Likewise for params "start", "end" and
8852         local "insn".
8853         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8854         final param.
8855         * loop-doloop.c (doloop_optimize): Within region guarded by
8856         INSN_P (doloop_pat), introduce a new local rtx_insn *
8857         "doloop_insn" via a checked cast, and use it for typesafety,
8858         eventually writing the value back into doloop_pat.
8859         * output.h (final_sequence): Strengthen this global from rtx to
8860         rtx_sequence *.
8861         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8862         reintroducing "insn" as an rtx_insn * via a checked cast.
8863         Strengthen param "attempt" and local "new_insn"from rtx to
8864         rtx_insn *.
8865         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8866         to rtx_insn *.
8867         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8868         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8869         "p" in favor of more tightly-scoped replacements, sometimes rtx
8870         and sometimes rtx_insn *, as appropriate.
8871         (delete_output_reload): Eliminate top-level rtx "i1", splitting
8872         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8873         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
8874         local "trial" from rtx to rtx_insn *.
8875         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8876         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
8877         rtx_sequence * and use methods for clarity and typesafety.
8878         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8879         rtx to rtx_insn *.  Strenghten local "li" from rtx to
8880         rtx_insn_list * and use its methods for clarity and typesafety.
8881         (steal_delay_list_from_target): Strengthen param "insn" from rtx
8882         to rtx_insn *.
8883         (steal_delay_list_from_fallthrough): Likewise.
8884         (try_merge_delay_insns): Likewise for param "thread" and locals
8885         "trial", "next_trial", "delay_insn".
8886         (redundant_insn): Likewise for param "target" and local "trial".
8887         (own_thread_p): Likewise for param "thread" and locals
8888         "active_insn", "insn".
8889         (get_label_before): Likewise for param "insn".
8890         (fill_simple_delay_slots): Likewise for local "new_label"; use
8891         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8892         (label_before_next_insn): Strengthen return type and local "insn"
8893         from rtx to rtx_insn *.
8894         (relax_delay_slots): Likewise for locals "other", "tmp".
8895         (make_return_insns): Likewise for param "first" and locals "insn",
8896         "jump_insn", "prev".  Move declaration of "pat" to its assignment
8897         and strengthen from rtx to rtx_sequence *.  Use its methods for
8898         clarity and typesafety.
8899         * rtlanal.c (no_labels_between_p): Strengthen params from
8900         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
8901         rtx_insn *.
8902         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8903         from const_rtx to const rtx_insn *.
8904         (reg_set_between_p): Rename param "from_insn" to
8905         "uncast_from_insn", and reintroduce "from_insn" as a
8906         const rtx_insn * via a checked cast.
8907         (modified_between_p): Likewise for param "start" as "uncast_start".
8908         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8909         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8910         "tmp", head" from rtx to rtx_insn *.
8911         (recompute_rev_top_order): Likewise for local "insn".
8912         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8913         * store-motion.c (build_store_vectors): Likewise for local "insn".
8914         Strengthen local "st" from rtx to rtx_insn_list * and use methods
8915         for clarity and typesafety.
8916         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8917         rtx to rtx_insn *.
8918         (computation_cost): Likewise for local "seq".
8919         (get_address_cost): Likewise.
8920
8921 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8922
8923         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8924         const rtx_insn *.
8925         (label_is_jump_target_p): Likewise for second param.
8926
8927         * rtlanal.c (tablejump_p): Likewise for param "insn".
8928         (label_is_jump_target_p): Likewise for param "jump_insn".
8929
8930 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8931
8932         * rtl.h (find_first_parameter_load): Strengthen return type and
8933         both params from rtx to rtx_insn *.
8934         * rtlanal.c (find_first_parameter_load): Strengthen return type,
8935         both params and locals "before", "first_set" from rtx to
8936         rtx_insn *.  Remove now-redundant cast.
8937         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8938
8939 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8940
8941         * rtl.h (find_last_value): Delete.
8942         * rtlanal.c (find_last_value): Delete.
8943
8944 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8945
8946         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8947         from rtx to rtx_insn *.
8948         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8949         rtx "note" with new local rtx_insn * "new_head" when calculating
8950         head insn of new basic block.
8951         * combine.c (combine_split_insns): Strengthen return type and local
8952         "ret" from rtx to rtx_insn *.
8953         (likely_spilled_retval_p): Likewise for locals "use" and "p".
8954         (try_combine): Eliminate local "m_split", splitting into new
8955         locals "m_split_insn" and "m_split_pat".
8956         (find_split_point): Strengthen local "seq" from rtx into
8957         rtx_insn *.
8958         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8959         locals "label", "branch".
8960         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8961         for local "insn".
8962         (define_expand "umulsi3_highpart"): Likewise for local "insn".
8963         * dse.c (note_add_store_info): Likewise for fields "first",
8964         "current".
8965         (note_add_store): Likewise for local "insn".
8966         (emit_inc_dec_insn_before): Likewise for locals "insn",
8967         "new_insn", "cur".
8968         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8969         (replace_read): Likewise for locals "insns", "this_insn".
8970         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8971         (notice_eh_throw): Likewise for param "insn".
8972         (before_next_cfi_note): Likewise for return type, param, and local
8973         "prev".
8974         (connect_traces): Likewise for local "note".
8975         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8976         (verify_rtl_sharing): Likewise.
8977         (unshare_all_rtl_in_chain): Likewise for param "insn".
8978         (get_first_nonnote_insn): Likewise for local "insn".
8979         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
8980         "seq" and use its methods to clarify things.
8981         (next_insn): Strengthen return type from rtx to rtx_insn *.
8982         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8983         local rtx_insn * using a checked cast, dropping a checked cast
8984         made redundant by this change.  Use a cast to and method of
8985         rtx_sequence to clarify the code.
8986         (previous_insn): Rename param "insn" to "uncast_insn" and
8987         reintroduce "insn" as a local rtx_insn * using a checked cast,
8988         dropping a checked cast made redundant by this change.  Use a cast
8989         to and method of rtx_sequence to clarify the code.
8990         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8991         reintroduce "insn" as a local rtx_insn * using a checked cast,
8992         dropping a checked cast made redundant by this change.
8993         (next_nonnote_insn_bb): Likewise.
8994         (prev_nonnote_insn): Likewise.
8995         (prev_nonnote_insn_bb): Likewise.
8996         (next_nondebug_insn): Likewise.
8997         (prev_nondebug_insn): Likewise.
8998         (next_nonnote_nondebug_insn): Likewise.
8999         (prev_nonnote_nondebug_insn): Likewise.
9000         (next_real_insn): Likewise.
9001         (prev_real_insn): Likewise.
9002         (next_active_insn): Likewise.
9003         (prev_active_insn): Likewise.
9004         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
9005         clarity.
9006         (prev_cc0_setter): Likewise.
9007         (try_split): Rename param "trial" to "uncast_trial" and
9008         reintroduce "insn" as a local rtx_insn * using a checked cast,
9009         dropping checked casts made redundant by this change.
9010         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
9011         rtx to rtx_insn *.
9012         (remove_insn): Rename param "insn" to "uncast_insn" and
9013         reintroduce "insn" as a local rtx_insn * using a checked cast.
9014         (emit_pattern_after_setloc): Likewise for param "after", as
9015         "uncast_after".
9016         (emit_pattern_after): Likewise.  Strengthen local "prev" from
9017         rtx to rtx_insn *.
9018         (emit_pattern_before_setloc): Rename param "before" to
9019         "uncast_before" and reintroduce "before" as a local rtx_insn *
9020         using a checked cast.  Strengthen locals "first", "last" from
9021         rtx to rtx_insn *.
9022         (emit_pattern_before): Likewise rename/cast param "before" to
9023         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
9024         * except.c (copy_reg_eh_region_note_forward): Strengthen param
9025         "first" and local "insn" from rtx to rtx_insn *.
9026         (copy_reg_eh_region_note_backward): Likewise for param "last"
9027         and local "insn".
9028         * expr.c (fixup_args_size_notes): Rename param "last" to
9029         "uncast_last" and reintroduce "last" as a local rtx_insn *
9030         using a checked cast.  Strengthen local "insn" from rtx to
9031         rtx_insn *.
9032         * function.c (set_insn_locations): Strengthen param "insn" from
9033         rtx to rtx_insn *.
9034         (record_insns): Likewise for param "insns" and local "tmp".
9035         (active_insn_between): Rename param "tail" to
9036         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
9037         using a checked cast.
9038         (thread_prologue_and_epilogue_insns): Split out top-level local
9039         rtx "seq" into three different rtx_insn * locals.  Strengthen
9040         local "prologue_seq" from rtx to rtx_insn *.
9041         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
9042         from rtx to rtx_insn *.
9043         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
9044         (priority): Likewise for locals "prev_first", "twin".
9045         (setup_insn_max_reg_pressure): Likewise for param "after".
9046         (sched_setup_bb_reg_pressure_info): Likewise.
9047         (no_real_insns_p): Strengthen params from const_rtx to
9048         const rtx_insn *.
9049         (schedule_block): Strengthen local "next_tail" from rtx to
9050         rtx_insn *.
9051         * ifcvt.c (find_active_insn_before): Strengthen return type and
9052         param "insn" from rtx to rtx_insn *.
9053         (find_active_insn_after): Likewise.
9054         (cond_exec_process_insns): Likewise for param "start" and local "insn".
9055         (cond_exec_process_if_block): Likewise for locals "then_start",
9056         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
9057         (noce_process_if_block): Likewise for local "jump".
9058         (merge_if_block): Likewise for two locals named "end".
9059         (cond_exec_find_if_block): Likewise for local "last_insn".
9060         * jump.c (delete_related_insns): Rename param "insn" to
9061         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
9062         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
9063         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
9064         NULL.
9065         (split_reg): Likewise.
9066         * lra.c (lra_process_new_insns): Likewise.
9067         * modulo-sched.c (permute_partial_schedule): Strengthen param
9068         "last" from rtx to rtx_insn *.
9069         * optabs.c (add_equal_note): Likewise for param "insns" and local
9070         "last_insn".
9071         (expand_binop_directly): Add checked casts to rtx_insn * within
9072         NEXT_INSN (pat) uses.
9073         (expand_unop_direct): Likewise.
9074         (maybe_emit_unop_insn): Likewise.
9075         * recog.c (peep2_attempt): Strengthen locals "last",
9076         "before_try", "x" from rtx to rtx_insn *.
9077         * reorg.c (optimize_skip): Strengthen return type and local
9078         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
9079         and locals "trial", "next_trial" from rtx to rtx_insn *.
9080         * resource.c (next_insn_no_annul): Strengthen return type and
9081         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
9082         rtx_sequence to clarify the code.
9083         (mark_referenced_resources): Add a checked cast to rtx_insn *
9084         within PREV_INSN (x).
9085         (find_dead_or_set_registers): Strengthen return type, param
9086         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
9087         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
9088         to rtx_insn **.
9089         (mark_target_live_regs): Strengthen params "insns" and "target",
9090         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
9091         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
9092         the code.
9093         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
9094         from rtx to rtx_insn *.
9095         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
9096         from rtx to rtx_insn *.
9097         (copy_reg_eh_region_note_backward): Likewise.
9098         (unshare_all_rtl_in_chain): Likewise for sole param.
9099         (dump_rtl_slim): Strengthen second and third params from const_rtx
9100         to const rtx_insn *.
9101         * sched-deps.c (sched_free_deps): Strengthen params "head" and
9102         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
9103         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
9104         "next_tail" from rtx to rtx_insn *.
9105         (begin_move_insn): Likewise for local "next".
9106         * sched-int.h (sched_free_deps): Likewise for first and second
9107         params.
9108         (no_real_insns_p): Strengthen both params from const_rtx to
9109         const rtx_insn *.
9110         (sched_setup_bb_reg_pressure_info): Strengthen second params from
9111         rtx to rtx_insn *.
9112         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
9113         "next_tail".
9114         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
9115         and locals "insn", "tail" from const_rtx to const rtx_insn *.
9116         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
9117         rtx_insn *.
9118         (debug_rtl_slim): Strengthen params "first" and "last" from
9119         const_rtx to const rtx_insn *.
9120         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
9121         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
9122         (convert_to_simple_return): Likewise for param "returnjump".
9123         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
9124         "prologue_seq".
9125         (convert_to_simple_return): Likewise for param "returnjump".
9126         * valtrack.c (propagate_for_debug): Likewise for params
9127         "insn", "last".
9128         * valtrack.h (propagate_for_debug): Likewise for second param.
9129
9130 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9131
9132         * output.h (insn_current_reference_address): Strengthen param
9133         from rtx to rtx_insn *.
9134         * final.c (insn_current_reference_address): Likewise.
9135
9136 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9137
9138         * basic-block.h (inside_basic_block_p): Strengthen param from
9139         const_rtx to const rtx_insn *.
9140         * cfgbuild.c (inside_basic_block_p): Likewise.
9141
9142 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9143
9144         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
9145         rtx_insn *.
9146         (get_trace_info): Likewise for param "insn".
9147         (save_point_p): Likewise.
9148         (maybe_record_trace_start): Likewise for both params.
9149         (maybe_record_trace_start_abnormal): Likewise.
9150         (create_trace_edges): Likewise for sole param and for three of the
9151         locals named "lab".
9152         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
9153         to rtx_insn *, and update a call to pat->element to pat->insn.
9154
9155 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9156
9157         * function.h (struct expr_status): Convert field "x_forced_labels"
9158         from rtx_expr_list * to rtx_insn_list *.
9159
9160         * cfgbuild.c (make_edges): Convert local "x" from an
9161         rtx_expr_list * to an rtx_insn_list *, replacing use of
9162         "element" method with "insn" method.
9163         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9164         * except.c (sjlj_emit_dispatch_table): Replace use of
9165         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
9166         forced_labels.
9167         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
9168         rtx_expr_list * to an rtx_insn_list *, replacing use of
9169         "element" method with "insn" method.
9170         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9171         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
9172         rtx_insn *, adding a checked cast.  Replace use of
9173         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
9174         forced_labels.
9175         (expand_label): Likewise for local "label_r".
9176
9177 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9178
9179         * function.h (struct rtl_data): Convert field
9180         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
9181         rtx_insn_list *.
9182         * rtl.h (remove_node_from_insn_list): New prototype.
9183
9184         * builtins.c (expand_builtin): When prepending to
9185         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9186         gen_rtx_EXPR_LIST.
9187         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
9188         to rtx_insn_list *, and use its "insn" method rather than
9189         "element" method.
9190         * cfgrtl.c (delete_insn): Use new function
9191         remove_node_from_insn_list rather than
9192         remove_node_from_expr_list.
9193         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
9194         to rtx_insn_list *, and use its "insn" method rather than
9195         "element" method.
9196         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9197         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9198         * rtlanal.c (remove_node_from_insn_list): New function, adapted
9199         from remove_node_from_expr_list.
9200         * stmt.c (expand_label): When prepending to
9201         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9202         gen_rtx_EXPR_LIST.
9203
9204 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9205
9206         * function.h (struct rtl_data): Strengthen fields "x_return_label"
9207         and "x_naked_return_label" from rtx to rtx_code_label *.
9208
9209 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9210
9211         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
9212         (SET_NEXT_INSN): Likewise.
9213         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
9214
9215         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
9216         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
9217         to split out the SEQUENCE from local "bundle", strengthening the
9218         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
9219         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
9220         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
9221         and the type of the elements of the "slot" array from rtx to
9222         rtx_insn *.
9223         (reorg_split_calls): Likewise for locals "insn" and "next", and
9224         the type of the elements of the "slot" array.
9225
9226         * config/frv/frv.c (frv_nops): Likewise for the elements of this
9227         array.
9228         (frv_function_prologue): Likewise for locals "insn", "next",
9229         "last_call".
9230         (frv_register_nop): Introduce a local "nop_insn" to be the
9231         rtx_insn * containing rtx "nop".
9232
9233         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
9234         used as an insn and sometimes as a pattern, so rename it to
9235         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
9236         using it where dealing with the core insn.
9237
9238         * config/picochip/picochip.c (reorder_var_tracking_notes):
9239         Strengthen locals "insn", "next", "last_insn", "queue",
9240         "next_queue", "prev" from rtx to rtx_insn *.
9241
9242         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
9243         the second param is an rtx_insn ** rather than an rtx **.
9244         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
9245         from rtx to rtx_sequence *, and introduce local named "sequence",
9246         using methods of rtx_sequence to clarify the code.
9247         (remove_insn): Introduce local rtx_sequence * named "sequence" and
9248         use its methods.
9249         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
9250         Rename param "after" to "uncast_after", reintroducing "after" as a
9251         local rtx_insn * with a checked cast.
9252         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
9253         reintroducing "after" as a local rtx_insn * with a checked cast.
9254         Strengthen local "last" from rtx to rtx_insn * and remove the
9255         now-redundant checked casts.
9256         (copy_delay_slot_insn): Strengthen return type and param from rtx
9257         to rtx_insn *.
9258
9259         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
9260         "last" from rtx to rtx_insn *.
9261
9262 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9263
9264         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
9265         param from rtx to rtx_insn *.
9266
9267         * emit-rtl.c (copy_delay_slot_insn): Likewise.
9268
9269         * reorg.c (skip_consecutive_labels): Strengthen return type, param
9270         and local "insn" from rtx to rtx_insn *.
9271         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
9272         (unfilled_slots_next): Likewise.
9273         (function_return_label): Strengthen from rtx to rtx_code_label *.
9274         (function_simple_return_label): Likewise.
9275         (first_active_target_insn): Strengthen return type and param from
9276         rtx to rtx_insn *.
9277         (find_end_label): Strengthen return type from rtx to
9278         rtx_code_label *; strengthen locals as appropriate.
9279         (emit_delay_sequence): Strengthen return type, param "insn" and
9280         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
9281         and local "li" from rtx to rtx_insn_list *, using methods of
9282         rtx_insn_list for clarity and typesafety.
9283         (add_to_delay_list): Strengthen return type and param "insn" from
9284         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
9285         rtx_insn_list * and use methods of rtx_insn_list.
9286         (delete_from_delay_slot): Strengthen return type, param "insn",
9287         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
9288         Strengthen local "seq" from rtx to rtx_sequence *, and local
9289         "delay_list" from rtx to rtx_insn_list *, using methods of
9290         rtx_sequence for clarity and type-safety.
9291         (delete_scheduled_jump): Add checked cast when invoking
9292         delete_from_delay_slot.  Strengthen local "trial" from rtx to
9293         rtx_insn *.
9294         (optimize_skip): Strengthen return type and local "delay_list"
9295         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
9296         rtx_insn *.
9297         (steal_delay_list_from_target): Strengthen return type, param
9298         "delay_list" and local "new_delay_list" from rtx to
9299         rtx_insn_list *.  Strengthen param "seq" from rtx to
9300         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
9301         rtx_insn **.
9302         Split out local "temp" into multiple more-tightly scoped locals:
9303         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
9304         of rtx_insn_list and rtx_sequence for clarity and typesafety.
9305         Strengthen locals named "trial" from rtx to rtx_insn *.
9306         (steal_delay_list_from_fallthrough): Strengthen return type and
9307         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
9308         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
9309         Strengthen local "trial" from rtx to rtx_insn *.
9310         (try_merge_delay_insns): Strength local "merged_insns" from rtx
9311         to rtx_insn_list * and use its methods.  Strengthen local "pat"
9312         from rtx to rtx_sequence * and use its methods.  Strengthen locals
9313         "dtrial" and "new_rtx" from rtx to rtx_insn *.
9314         (get_label_before): Strengthen return type and local "label" from
9315         rtx to rtx_insn *.
9316         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
9317         "next_trial", "next", prev".  Strengthen local "delay_list" from
9318         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
9319         rtx_insn **.
9320         (follow_jumps): Strengthen return type, param "label" and locals
9321         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
9322         (fill_slots_from_thread): Strengthen return type, param
9323         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
9324         "insn", "thread", "opposite_thread" and locals "new_thread",
9325         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
9326         "sequence" from a checked cast to rtx_sequence so that we can call
9327         steal_delay_list_from_target and steal_delay_list_from_fallthrough
9328         with an rtx_sequence *.
9329         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
9330         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
9331         Strengthen local "delay_list" from rtx to rtx_insn_list *.
9332         (relax_delay_slots): Strengthen param "first" and locals "insn",
9333         "next", "trial", "delay_insn", "target_label" from rtx to
9334         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
9335         Introduce a local "trial_seq" for PATTERN (trial) of type
9336         rtx_sequence *, in both cases using methods of rtx_sequence.
9337         (dbr_schedule): Strengthen param "first" and locals "insn",
9338         "next", "epilogue_insn" from rtx to rtx_insn *.
9339
9340 2014-08-28  Richard Biener  <rguenther@suse.de>
9341
9342         PR tree-optimization/62283
9343         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9344         Do not peel loops for alignment where the vector loop likely
9345         doesn't run at least VF times.
9346
9347 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
9348
9349         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
9350         important_candidates.  Consider all important candidates if
9351         IVS doesn't give any result.  Remove check on ivs->upto.
9352         (try_add_cand_for): Call iv_ca_add_use only once.
9353
9354 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9355             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9356             Anna Tikhonova  <anna.tikhonova@intel.com>
9357             Ilya Tocar  <ilya.tocar@intel.com>
9358             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9359             Ilya Verbin  <ilya.verbin@intel.com>
9360             Kirill Yukhin  <kirill.yukhin@intel.com>
9361             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9362
9363         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
9364         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
9365         masking.
9366         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
9367         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9368         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9369         (define_insn "*mul<mode>3"): Add EVEX version.
9370
9371 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9372             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9373             Anna Tikhonova  <anna.tikhonova@intel.com>
9374             Ilya Tocar  <ilya.tocar@intel.com>
9375             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9376             Ilya Verbin  <ilya.verbin@intel.com>
9377             Kirill Yukhin  <kirill.yukhin@intel.com>
9378             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9379
9380         * config/i386/sse.md
9381         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
9382         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
9383         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
9384         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
9385         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
9386         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
9387         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
9388         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
9389         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
9390         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
9391         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
9392         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
9393         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
9394         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
9395         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
9396         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
9397
9398 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9399             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9400             Anna Tikhonova  <anna.tikhonova@intel.com>
9401             Ilya Tocar  <ilya.tocar@intel.com>
9402             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9403             Ilya Verbin  <ilya.verbin@intel.com>
9404             Kirill Yukhin  <kirill.yukhin@intel.com>
9405             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9406
9407         * config/i386/sse.md
9408         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
9409         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
9410         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
9411
9412 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9413             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9414             Anna Tikhonova  <anna.tikhonova@intel.com>
9415             Ilya Tocar  <ilya.tocar@intel.com>
9416             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9417             Ilya Verbin  <ilya.verbin@intel.com>
9418             Kirill Yukhin  <kirill.yukhin@intel.com>
9419             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9420
9421         * config/i386/sse.md
9422         (define_mode_iterator VI128_256): New.
9423         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
9424
9425 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9426             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9427             Anna Tikhonova  <anna.tikhonova@intel.com>
9428             Ilya Tocar  <ilya.tocar@intel.com>
9429             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9430             Ilya Verbin  <ilya.verbin@intel.com>
9431             Kirill Yukhin  <kirill.yukhin@intel.com>
9432             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9433
9434         * config/i386/sse.md
9435         (define_mode_iterator VI8_256_512): New.
9436         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
9437         Ditto.
9438         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9439         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
9440         Ditto.
9441         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
9442
9443 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9444
9445         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
9446         pointer to the cumulative reloc value and return the value for
9447         this reloc instead.
9448         (compute_reloc_for_rtx): Take a const_rtx.  Call
9449         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
9450         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
9451         for_each_rtx for the CONST case.
9452
9453 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9454
9455         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
9456         (mark_constants_in_pattern): ...this new function to iterate over
9457         all the subrtxes.
9458         (mark_constants): Update accordingly.
9459
9460 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9461
9462         * varasm.c: Include rtl-iter.h.
9463         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
9464         Remove the pointer to the cumulative hashval_t and just return
9465         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
9466         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9467         Accumulate the hashval_ts here instead of const_rtx_hash_1.
9468
9469 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9470
9471         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
9472         Give real type of data parameter.  Remove return value.
9473         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
9474         to iterate over subrtxes.
9475
9476 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9477
9478         * var-tracking.c (use_narrower_mode_test): Turn from being a
9479         for_each_rtx callback to being a function that examines each
9480         subrtx itself.
9481         (adjust_mems): Update accordingly.
9482
9483 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9484
9485         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
9486         callback to being a function that examines each subrtx itself.
9487         Remove handling of null rtxes.
9488         (add_uses): Update accordingly.
9489
9490 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9491
9492         * var-tracking.c: Include rtl-iter.h.
9493         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
9494         to being a function that examines each subrtx itself.
9495         (use_type): Update accordingly.
9496
9497 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9498
9499         * store-motion.c: Include rtl-iter.h.
9500         (extract_mentioned_regs_1): Delete.
9501         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
9502         for_each_rtx to iterate over subrtxes.
9503
9504 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9505
9506         * sel-sched.c: Include rtl-iter.h
9507         (count_occurrences_1): Delete.
9508         (count_occurrences_equiv): Turn rtxes into const_rtxes.
9509         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9510
9511 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9512
9513         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
9514         * rtlanal.c (tls_referenced_p_1): Delete.
9515         (tls_referenced_p): Take a const_rtx rather than an rtx.
9516         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9517
9518 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9519
9520         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
9521         (for_each_inc_dec): Take an rtx rather than an rtx *.
9522         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
9523         (cselib_record_sets): Likewise.
9524         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
9525         (check_for_inc_dec): Likewise.
9526         * rtlanal.c (for_each_inc_dec_ops): Delete.
9527         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
9528         rather than a pointer to the memory address.  Replace
9529         for_each_inc_dec_ops argument with separate function and data
9530         arguments.  Abort on non-autoinc addresses.
9531         (for_each_inc_dec_find_mem): Delete.
9532         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
9533         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
9534
9535 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9536
9537         * rtl.h (find_all_hard_regs): Declare.
9538         * rtlanal.c (find_all_hard_regs): New function.
9539         (record_hard_reg_uses_1): Delete.
9540         (record_hard_reg_uses): Use find_all_hard_regs.
9541
9542 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9543
9544         * rtl.h (replace_label_data): Delete.
9545         (replace_label): Take the old label, new label and update-nuses flag
9546         as direct arguments.  Return void.
9547         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
9548         * rtlanal.c (replace_label): Update interface as above.  Handle
9549         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
9550         iterator.  Use FOR_EACH_SUBRTX_PTR.
9551
9552 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9553
9554         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
9555         with const_rtx parameters.
9556         * varasm.c (get_pool_constant): Likewise.
9557         * rtlanal.c (rtx_referenced_p_1): Delete.
9558         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9559         Assert that the rtx we're looking for is nonnull.  Allow searches
9560         for constant pool SYMBOL_REFs.
9561
9562 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9563
9564         * reload1.c: Include rtl-iter.h.
9565         (note_reg_elim_costly): Turn from being a for_each_rtx callback
9566         to being a function that examines each subrtx itself.
9567         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
9568
9569 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9570
9571         * regcprop.c (cprop_find_used_regs_1): Delete.
9572         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9573
9574 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9575
9576         * regcprop.c: Include rtl-iter.h.
9577         (kill_value): Take a const_rtx.
9578         (kill_autoinc_value): Turn from being a for_each_rtx callback
9579         to being a function that examines each subrtx itself.
9580         (copyprop_hardreg_forward_1): Update accordingly.
9581
9582 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9583
9584         * reg-stack.c: Include rtl-iter.h.
9585         (subst_stack_regs_in_debug_insn): Delete.
9586         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
9587         instead of for_each_rtx.
9588
9589 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9590
9591         * lower-subreg.c (find_decomposable_subregs): Turn from being
9592         a for_each_rtx callback to being a function that examines each
9593         subrtx itself.  Remove handling of null rtxes.
9594         (decompose_multiword_subregs): Update accordingly.
9595
9596 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9597
9598         * lower-subreg.c (adjust_decomposed_uses): Delete.
9599         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
9600         Remove handling of null rtxes.
9601
9602 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9603
9604         * lower-subreg.c: Include rtl-iter.h.
9605         (resolve_subreg_use): Turn from being a for_each_rtx callback
9606         to being a function that examines each subrtx itself.  Remove
9607         handling of null rtxes.
9608         (resolve_reg_notes, resolve_simple_move): Update accordingly.
9609         (decompose_multiword_subregs): Likewise.
9610
9611 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9612
9613         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
9614         to being a function that examines each subrtx itself.
9615         (simplify_using_condition, simplify_using_initial_values): Update
9616         accordingly.
9617
9618 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9619
9620         * loop-iv.c: Include rtl-iter.h.
9621         (find_single_def_src): New function.
9622         (replace_single_def_regs): Turn from being a for_each_rtx callback
9623         to being a function that examines each subrtx itself.
9624         (replace_in_expr, simplify_using_initial_values): Update accordingly.
9625
9626 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9627
9628         * jump.c (eh_returnjump_p_1): Delete.
9629         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9630         Remove handling of null rtxes.
9631
9632 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9633
9634         * jump.c: Include rtl-iter.h.
9635         (returnjump_p_1): Delete.
9636         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9637         Remove handling of null rtxes.
9638
9639 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9640
9641         * ira.c: Include rtl-iter.h.
9642         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
9643         to being a function that examines each subrtx itself.  Remove
9644         handling of null rtxes.
9645         (update_equiv_regs): Update call accordingly.
9646
9647 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9648
9649         * fwprop.c: Include rtl-iter.h.
9650         (varying_mem_p): Turn from being a for_each_rtx callback to being
9651         a function that examines each subrtx itself.
9652         (propagate_rtx): Update accordingly.
9653
9654 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9655
9656         * function.c: Include rtl-iter.h
9657         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9658         callback to being a function that examines each subrtx itself.
9659         Return the changed flag.
9660         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9661         (instantiate_virtual_regs): Update calls accordingly.
9662
9663 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9664
9665         * final.c: Include rtl-iter.h.
9666         (mark_symbol_ref_as_used): Delete.
9667         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9668         for_each_rtx.
9669
9670 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9671
9672         * emit-rtl.c: Include rtl-iter.h.
9673         (find_auto_inc): Turn from being a for_each_rtx callback to being
9674         a function that examines each subrtx itself.  Assume the first operand
9675         to an RTX_AUTOINC is the automodified register.
9676         (try_split): Update call accordingly.
9677
9678 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9679
9680         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9681         Return a bool, inverting the result so that 0/false means "not ok".
9682         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9683         subrtxes of a CONST.
9684         (mem_loc_descriptor, add_const_value_attribute)
9685         (resolve_addr_in_expr): Update calls accordingly.
9686
9687 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9688
9689         * dwarf2out.c: Include rtl-iter.h.
9690         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9691         Remove unused data parameter.  Return a bool, inverting the result
9692         so that 0/false means "not ok".
9693         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
9694         instead of for_each_rtx.
9695
9696 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9697
9698         * dse.c: Include rtl-iter.h.
9699         (check_mem_read_rtx): Change void * parameter to real type.
9700         Remove return value.
9701         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
9702         for_each_rtx.  Don't handle null rtxes.
9703
9704 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9705
9706         * df-problems.c: Include rtl-iter.h.
9707         (find_memory): Turn from being a for_each_rtx callback to being
9708         a function that examines each subrtx itself.  Continue to look for
9709         volatile references even after a nonvolatile one has been found.
9710         (can_move_insns_across): Update calls accordingly.
9711
9712 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9713
9714         * ddg.c (walk_mems_2, walk_mems_1): Delete.
9715         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9716         to iterate over subrtxes.  Return a bool rather than an int.
9717
9718 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9719
9720         * ddg.c: Include rtl-iter.h.
9721         (mark_mem_use_1): Rename to...
9722         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
9723         instead of for_each_rtx.
9724         (mem_read_insn_p): Update accordingly.
9725
9726 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9727
9728         * cse.c (change_cc_mode_args): Delete.
9729         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9730         a function that examines each subrtx itself.  Take the fields of
9731         change_cc_mode_args as argument and return void.
9732         (cse_change_cc_mode_insn): Update calls accordingly.
9733
9734 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9735
9736         * cse.c (is_dead_reg): Change argument to const_rtx.
9737         (dead_debug_insn_data): Delete.
9738         (is_dead_debug_insn): Expand commentary.  Turn from being a
9739         for_each_rtx callback to being a function that examines
9740         each subrtx itself.  Take the fields of dead_debug_insn_data
9741         as argument.
9742         (delete_trivially_dead_insns): Update call accordingly.
9743
9744 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9745
9746         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
9747         being a for_each_rtx callback to being a function that examines
9748         each subrtx itself.
9749         (cse_extended_basic_block): Update call accordingly.
9750
9751 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9752
9753         * cse.c (check_dependence_data): Delete.
9754         (check_dependence): Change from being a for_each_rtx callback to being
9755         a function that examines all subrtxes itself.  Don't handle null rtxes.
9756         (invalidate): Update call accordingly.
9757
9758 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9759
9760         * cse.c: Include rtl-iter.h.
9761         (approx_reg_cost_1): Delete.
9762         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9763         Don't handle null rtxes.
9764
9765 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9766
9767         * cfgcleanup.c: Include rtl-iter.h.
9768         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9769         to being a function that examines each subrtx itself.
9770         (thread_jump): Update accordingly.
9771
9772 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9773
9774         * combine-stack-adj.c: Include rtl-iter.h.
9775         (record_stack_refs_data): Delete.
9776         (record_stack_refs): Turn from being a for_each_rtx callback
9777         to being a function that examines each subrtx itself.
9778         Take a pointer to the reflist.  Invert sense of return value
9779         so that true means success and false means failure.  Don't
9780         handle null rtxes.
9781         (combine_stack_adjustments_for_block): Update accordingly.
9782
9783 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9784
9785         * combine.c (record_truncated_value): Turn from being a for_each_rtx
9786         callback to a function that takes an rtx and returns a bool
9787         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9788         for_each_rtx.
9789
9790 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9791
9792         * combine.c: Include rtl-iter.h.
9793         (unmentioned_reg_p_1): Delete.
9794         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9795         Don't handle null rtxes.
9796
9797 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9798
9799         * calls.c: Include rtl-iter.h.
9800         (internal_arg_pointer_based_exp_1): Delete.
9801         (internal_arg_pointer_based_exp): Take a const_rtx.
9802         Use FOR_EACH_SUBRTX to iterate over subrtxes.
9803
9804 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9805
9806         * caller-save.c: Include rtl-iter.h.
9807         (add_used_regs_1): Delete.
9808         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9809         to iterate over subrtxes.  Assert that any remaining pseudos
9810         have been spilled.
9811
9812 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9813
9814         * bt-load.c: Include rtl-iter.h.
9815         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9816         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
9817         to iterate over subrtxes.
9818         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9819         find_btr_use rather than btr_referenced_p.
9820
9821 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9822
9823         * alias.c: Include rtl-iter.h.
9824         (refs_newer_value_cb): Delete.
9825         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9826
9827 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9828
9829         * rtl-iter.h: New file.
9830         * rtlanal.c: Include it.
9831         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9832         (generic_subrtx_iterator <T>::add_single_to_queue)
9833         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9834         (generic_subrtx_iterator <T>::free_array): New functions.
9835         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9836         (generic_subrtx_iterator <const_rtx_accessor>)
9837         (generic_subrtx_iterator <rtx_var_accessor>
9838         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9839         (setup_reg_subrtx_bounds): New function.
9840         (init_rtlanal): Call it.
9841
9842 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
9843
9844         PR target/62261
9845         * config/sh/sh.md (ashlsi3): Handle negative shift count for
9846         TARGET_SHMEDIA.
9847         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9848
9849 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
9850
9851         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9852
9853 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9854
9855         * rtl.h (JUMP_LABEL_AS_INSN): New.
9856
9857 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9858
9859         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9860         rtx_expr_list **.
9861         (alloc_EXPR_LIST): Strengthen return type from rtx to
9862         rtx_expr_list *.
9863         (remove_free_EXPR_LIST_node): Likewise for param.
9864         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9865         from rtx to rtx_expr_list *.
9866         * sched-int.h (struct deps_desc): Strengthen fields
9867         "pending_read_mems" and "pending_write_mems" from rtx to
9868         rtx_expr_list *.
9869
9870         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9871         rtx to rtx_expr_list *.
9872         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9873         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9874         rtx_expr_list **.
9875         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
9876         from rtx to rtx_expr_list *.
9877         * loop-iv.c (simplify_using_initial_values): Strengthen local
9878         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9879         "pnote_next" from rtx * to rtx_expr_list **.
9880         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
9881         param "exprp" from rtx * to rtx_expr_list **.
9882         (add_insn_mem_dependence): Strengthen local "mem_list" from
9883         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
9884         to rtx_expr_list *.
9885         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9886         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
9887         param "old_mems_p" from rtx * to rtx_expr_list **.
9888         * var-tracking.c (struct adjust_mem_data): Strengthen field
9889         "side_effects" from rtx to rtx_expr_list *.
9890         (adjust_insn): Replace NULL_RTX with NULL when assigning to
9891         rtx_expr_list *.
9892         (prepare_call_arguments): Likewise.
9893
9894 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9895
9896         * function.h (struct rtl_data): Strengthen field
9897         "x_stack_slot_list" from rtx to rtx_expr_list *.
9898
9899         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9900         when assigning to stack_slot_list.
9901
9902 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9903
9904         * function.h (struct rtl_data): Strengthen field
9905         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9906         * rtl.h (remove_node_from_expr_list): Strengthen second param from
9907         rtx * to rtx_expr_list **.
9908
9909         * cfgbuild.c (make_edges): In loop over
9910         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9911         rtx_expr_list *, and use methods of the latter class to clarify
9912         the code.
9913         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9914         rtx_expr_list *, and use methods of the latter class to clarify
9915         the code.
9916         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9917         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9918         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9919         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
9920         to rtx_expr_list *.  Use methods of the latter class to clarify
9921         the code.
9922
9923 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9924
9925         * function.h (struct expr_status): Strengthen field
9926         "x_forced_labels" from rtx to rtx_expr_list *.
9927
9928         * cfgbuild.c (make_edges): Split local "x" into two locals,
9929         strengthening one from rtx to rtx_expr_list *, and using methods
9930         of said class.
9931         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9932         loop over forced_labels, introduce strengthen it from rtx to
9933         rtx_expr_list *, using methods to clarify the code.
9934         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9935         to rtx_expr_list *, using methods of said class to clarify the
9936         code.
9937         * reload1.c (set_initial_label_offsets): Split local "x" into two
9938         per-loop variables, strengthening the first from rtx to
9939         rtx_expr_list * and using methods.
9940
9941 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9942
9943         * coretypes.h (class rtx_expr_list): Add forward declaration.
9944         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9945         * gengenrtl.c (special_rtx): Add EXPR_LIST.
9946         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9947         invariant: GET_CODE (X) == EXPR_LIST.
9948         (is_a_helper <rtx_expr_list *>::test): New.
9949         (rtx_expr_list::next): New.
9950         (rtx_expr_list::element): New.
9951         (gen_rtx_EXPR_LIST): New.
9952
9953 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9954
9955         * varasm.c (mark_constants): Convert a GET_CODE check into a
9956         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9957         Use methods of rtx_sequence to clarify the code.
9958
9959 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9960
9961         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9962         local "seq" via a checked cast, and use methods of rtx_sequence
9963         to simplify the code.
9964
9965 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9966
9967         * resource.c (mark_referenced_resources): Strengthen local
9968         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9969         using methods of rtx_sequence to clarify the code.
9970         (find_dead_or_set_registers): Within the switch statement, convert
9971         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
9972         the JUMP_P handling, introduce another local "seq", adding a
9973         checked cast to rtx_sequence *.  In both cases, use methods of
9974         rtx_sequence to clarify the code.
9975         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9976         via a checked cast, and use methods of rtx_sequence to simplify
9977         the code.
9978
9979 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9980
9981         * reorg.c (redundant_insn): In two places in the function, replace
9982         a check of GET_CODE with a dyn_cast, introducing local "seq", and
9983         usings methods of rtx_sequence to clarify the code.
9984
9985 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9986
9987         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9988         local "seq" with a checked cast, and use methods of rtx_sequence
9989         to clarify the code.
9990
9991 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9992
9993         * function.c (contains): Introduce local "seq" for PATTERN (insn),
9994         with a checked cast, in the region for where we know it's a
9995         SEQUENCE.  Use methods of rtx_sequence.
9996
9997 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9998
9999         * final.c (get_attr_length_1): Replace GET_CODE check with a
10000         dyn_cast, introducing local "seq" and the use of methods of
10001         rtx_sequence.
10002         (shorten_branches): Likewise, introducing local "body_seq".
10003         Strengthen local "inner_insn" from rtx to rtx_insn *.
10004         (reemit_insn_block_notes): Replace GET_CODE check with a
10005         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
10006         Use methods of rtx_sequence.
10007         (final_scan_insn): Likewise, introducing local "seq" for when
10008         "body" is known to be a SEQUENCE, using its methods.
10009
10010 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10011
10012         * except.c (can_throw_external): Strengthen local "seq" from rtx
10013         to rtx_sequence *.  Use methods of rtx_sequence.
10014         (insn_nothrow_p): Likewise.
10015
10016 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10017
10018         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
10019         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
10020         Use methods of rtx_sequence.
10021         (scan_trace): Likewise for local "pat".
10022
10023 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10024
10025         * coretypes.h (class rtx_sequence): Add forward declaration.
10026         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
10027         invariant: GET_CODE (X) == SEQUENCE.
10028         (is_a_helper <rtx_sequence *>::test): New.
10029         (is_a_helper <const rtx_sequence *>::test): New.
10030         (rtx_sequence::len): New.
10031         (rtx_sequence::element): New.
10032         (rtx_sequence::insn): New.
10033
10034 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10035
10036         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
10037         rtx_insn_list **.
10038         (alloc_INSN_LIST): Strengthen return type from rtx to
10039         rtx_insn_list *.
10040         (copy_INSN_LIST): Likewise for return type and param.
10041         (concat_INSN_LIST): Likewise for both params and return type.
10042         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
10043         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
10044         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
10045         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
10046
10047         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
10048         "implicit_sets", "control_uses", "clobbers" from rtx to
10049         rtx_insn_list *.
10050         (struct deps_desc): Likewise for fields "pending_read_insns",
10051         "pending_write_insns", "pending_jump_insns",
10052         "last_pending_memory_flush", "last_function_call",
10053         "last_function_call_may_noreturn", "sched_before_next_call",
10054         "sched_before_next_jump".
10055         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
10056         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
10057
10058         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
10059         from rtx to rtx_insn_list *.
10060         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
10061         rtx_insn_list *.
10062
10063         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
10064         to rtx_insn_list **.
10065         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
10066         rtx_insn_list *.
10067         (queue_insn): Likewise for local "link".
10068         (struct haifa_saved_data): Strengthen field "insn_queue" from
10069         rtx * to rtx_insn_list **.
10070         (save_backtrack_point): Update allocation of save->insn_queue to
10071         reflect the strengthening of elements from rtx to rtx_insn_list *.
10072         (queue_to_ready): Strengthen local "link" from rtx to
10073         rtx_insn_list *; use methods "next" and "insn" when traversing the
10074         list.
10075         (early_queue_to_ready): Likewise for locals "link", "next_link",
10076         "prev_link".
10077         (schedule_block): Update allocation of insn_queue to reflect the
10078         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
10079         local "link" from rtx to rtx_insn_list *, and use methods when
10080         working it.
10081         (add_to_speculative_block): Strengthen locals "twins" and
10082         "next_node" from rtx to rtx_insn_list *, and use methods when
10083         working with them.  Strengthen local "twin" from rtx to
10084         rtx_insn *, eliminating a checked cast.
10085         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
10086         from rtx to rtx_insn_list *, and use methods when working with
10087         them.
10088
10089         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
10090         from rtx to rtx_insn_list *, adding a checked cast.
10091         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
10092         rtx_insn_list **.
10093         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
10094         "newlink" from rtx to rtx_insn_list *.  Strengthen local
10095         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
10096         from rtx to rtx_insn *.
10097         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
10098         from rtx to rtx_insn_list *.  Use methods of the latter class.
10099         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
10100         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
10101         (remove_free_INSN_LIST_node): Strengthen return type and local
10102         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
10103         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
10104         rtx_insn_list *, using "insn" method.
10105
10106         * sched-deps.c (add_dependence_list):  Strengthen param "list"
10107         from rtx to rtx_insn_list *, and use methods when working with it.
10108         (add_dependence_list_and_free):  Strengthen param "listp" from
10109         rtx * to rtx_insn_list **.
10110         (remove_from_dependence_list): Strenghten param "listp" from rtx *
10111         to rtx_insn_list **, and use methods when working with *listp.
10112         (remove_from_both_dependence_lists): Strengthen param "listp" from
10113         rtx * to rtx_insn_list **
10114         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
10115         to rtx_insn_list **.  Eliminate local "link", in favor of two new
10116         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
10117         respectively.
10118         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
10119         by introducing local "cond_deps".
10120         (remove_from_deps): Strengthen param "insn" from rtx to
10121         rtx_insn *.
10122
10123         * sched-rgn.c (concat_insn_mem_list): Strengthen param
10124         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
10125         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
10126         Use methods of rtx_insn_list.
10127
10128         * store-motion.c (struct st_expr): Strengthen fields
10129         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
10130         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
10131         rtx_insn_list *.
10132         (find_moveable_store): Split out "tmp" into multiple more-tightly
10133         scoped locals.  Use methods of rtx_insn_list *.
10134         (compute_store_table): Strengthen local "tmp" from rtx to
10135         rtx_insn *.  Use methods of rtx_insn_list *.
10136
10137 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10138
10139         * coretypes.h (class rtx_insn_list): Add forward declaration.
10140         * rtl.h (class rtx_insn_list): New subclass of rtx_def
10141         (is_a_helper <rtx_insn_list *>::test): New.
10142         (rtx_insn_list::next): New.
10143         (rtx_insn_list::insn): New.
10144         (gen_rtx_INSN_LIST): Add prototype.
10145         * emit-rtl.c (gen_rtx_INSN_LIST): New.
10146         * gengenrtl.c (special_rtx): Add INSN_LIST.
10147
10148 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10149
10150         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
10151         "prev" from rtx to rtx_insn *.
10152
10153 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10154
10155         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
10156         functions.  Require merely an rtx for now, not an rtx_insn *.
10157         (BLOCK_FOR_INSN): Likewise.
10158         (INSN_LOCATION): Likewise.
10159         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
10160
10161 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10162
10163         * rtl.h (PATTERN): Convert this macro into a pair of inline
10164         functions, for now, requiring const_rtx and rtx.
10165
10166 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10167
10168         * target.def (unwind_emit): Strengthen param "insn" from rtx to
10169         rtx_insn *.
10170         (final_postscan_insn): Likewise.
10171         (adjust_cost): Likewise.
10172         (adjust_priority): Likewise.
10173         (variable_issue): Likewise.
10174         (macro_fusion_pair_p): Likewise.
10175         (dfa_post_cycle_insn): Likewise.
10176         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
10177         (first_cycle_multipass_issue): Likewise.
10178         (dfa_new_cycle): Likewise.
10179         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
10180         (speculate_insn): Likewise for param "insn".
10181         (gen_spec_check): Likewise for params "insn" and "label".
10182         (get_insn_spec_ds): Likewise for param "insn".
10183         (get_insn_checked_ds): Likewise.
10184         (dispatch_do): Likewise.
10185         (dispatch): Likewise.
10186         (cannot_copy_insn_p): Likewise.
10187         (invalid_within_doloop): Likewise.
10188         (legitimate_combined_insn): Likewise.
10189         (needed): Likewise.
10190         (after): Likewise.
10191
10192         * doc/tm.texi: Automatically updated to reflect changes to
10193         target.def.
10194
10195         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
10196         working with insn.
10197         (schedule_block): Likewise.
10198         (sched_init): Likewise.
10199         (sched_speculate_insn): Strengthen param "insn" from rtx to
10200         rtx_insn *.
10201         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
10202         working with insn.
10203         * hooks.c (hook_bool_rtx_true): Rename to...
10204         hook_bool_rtx_insn_true): ...this, and strengthen first param from
10205         rtx to rtx_insn *.
10206         (hook_constcharptr_const_rtx_null): Rename to...
10207         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10208         first param from const_rtx to const rtx_insn *.
10209         (hook_bool_rtx_int_false): Rename to...
10210         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10211         param from rtx to rtx_insn *.
10212         (hook_void_rtx_int): Rename to...
10213         (hook_void_rtx_insn_int): ...this, and strengthen first param from
10214         rtx to rtx_insn *.
10215
10216         * hooks.h (hook_bool_rtx_true): Rename to...
10217         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
10218         rtx to rtx_insn *.
10219         (hook_bool_rtx_int_false): Rename to...
10220         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10221         param from rtx to rtx_insn *.
10222         (hook_void_rtx_int): Rename to...
10223         (hook_void_rtx_insn_int): ...this, and strengthen first param from
10224         rtx to rtx_insn *.
10225         (hook_constcharptr_const_rtx_null): Rename to...
10226         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10227         first param from const_rtx to const rtx_insn *.
10228
10229         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
10230         and local "prev" from rtx to rtx_insn *.
10231
10232         * sched-int.h (sched_speculate_insn): Strengthen first param from
10233         rtx to rtx_insn *.
10234
10235         * sel-sched.c (create_speculation_check): Likewise for local "label".
10236         * targhooks.c (default_invalid_within_doloop): Strengthen param
10237         "insn" from const_rtx to const rtx_insn *.
10238         * targhooks.h (default_invalid_within_doloop): Strengthen param
10239         from const_rtx to const rtx_insn *.
10240
10241         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
10242         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
10243
10244         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
10245         "insn".
10246         (arc_invalid_within_doloop): Likewise, with const.
10247
10248         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
10249         (arm_cannot_copy_insn_p): Likewise for param "insn".
10250         (arm_unwind_emit): Likewise.
10251
10252         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
10253         "dep_insn".
10254
10255         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
10256         (c6x_variable_issue): Likewise.  Removed now-redundant checked
10257         cast.
10258         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
10259
10260         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
10261         Likewise for param "insn".
10262         (epiphany_mode_after): Likewise.
10263         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
10264         params "insn", "dep_insn".
10265         (epiphany_mode_needed): Likewise for param "insn".
10266         (epiphany_mode_after): Likewise.
10267
10268         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
10269         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10270         (ix86_avx_u128_mode_needed): Likewise.
10271         (ix86_i387_mode_needed): Likewise.
10272         (ix86_mode_needed): Likewise.
10273         (ix86_avx_u128_mode_after): Likewise.
10274         (ix86_mode_after): Likewise.
10275         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
10276         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
10277         (ix86_adjust_priority): Likewise for param "insn".
10278         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
10279         (do_dispatch): Likewise.
10280         (has_dispatch): Likewise.
10281         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
10282
10283         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
10284         reflect renaming of default hook implementation from
10285         hook_constcharptr_const_rtx_null to
10286         hook_constcharptr_const_rtx_insn_null.
10287         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
10288         rtx to rtx_insn *.
10289         (ia64_variable_issue): Likewise for param "insn".
10290         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
10291         (ia64_dfa_new_cycle): Likewise.
10292         (ia64_get_insn_spec_ds): Likewise.
10293         (ia64_get_insn_checked_ds): Likewise.
10294         (ia64_speculate_insn): Likewise.
10295         (ia64_gen_spec_check): Likewise for params "insn", "label".
10296         (ia64_asm_unwind_emit): Likewise for param "insn".
10297
10298         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
10299
10300         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
10301         "insn", "def_insn".
10302         (m68k_sched_variable_issue): Likewise for param "insn".
10303
10304         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
10305         "def_insn".
10306
10307         * config/microblaze/microblaze.c (microblaze_adjust_cost):
10308         Likewise for params "insn", "dep".
10309
10310         * config/mips/mips.c (mips_adjust_cost): Likewise.
10311         (mips_variable_issue): Likewise for param "insn".
10312         (mips_final_postscan_insn): Likewise.
10313
10314         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
10315         for params "insn", "dep".
10316
10317         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
10318         "dep_insn".
10319         (pa_adjust_priority): Likewise for param "insn".
10320
10321         * config/picochip/picochip.c (picochip_sched_adjust_cost):
10322         Likewise for params "insn", "dep_insn".
10323
10324         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
10325         param "insn".
10326         (rs6000_variable_issue): Likewise.
10327         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
10328         (rs6000_debug_adjust_cost): Likewise.
10329         (rs6000_adjust_priority): Likewise for param "insn".
10330         (rs6000_use_sched_lookahead_guard): Likewise.
10331         (get_next_active_insn): Likewise for return type and both params.
10332         (redefine_groups): Likewise for params "prev_head_insn", "tail"
10333         and locals "insn", "next_insn".
10334         (pad_groups): Likewise.
10335
10336         * config/s390/s390.c (s390_adjust_priority): Likewise for param
10337         "insn".
10338         (s390_cannot_copy_insn_p): Likewise.
10339         (s390_sched_variable_issue): Likewise for third param, eliminating
10340         checked cast.
10341         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
10342         default hook implementation from hook_constcharptr_const_rtx_null
10343         to hook_constcharptr_const_rtx_insn_null.
10344
10345         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
10346         from rtx to rtx_insn *.
10347         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
10348         (sh_variable_issue): Likewise for param "insn".
10349         (sh_dfa_new_cycle): Likewise.
10350         (sh_mode_needed): Likewise.
10351         (sh_mode_after): Likewise.
10352
10353         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
10354         params "insn", "dep_insn".
10355         (hypersparc_adjust_cost): Likewise.
10356         (sparc_adjust_cost): Likewise.
10357
10358         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
10359         param, eliminated checked cast.
10360         (spu_sched_adjust_cost): Likewise for first and third params.
10361
10362         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
10363         params "insn" and "dep_insn" from rtx to rtx_insn *.
10364
10365         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
10366
10367 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10368
10369         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
10370         (set_is_load_p): ...this, updating to work on a SET pattern rather
10371         than an insn.
10372         (is_store_insn): Rename to...
10373         (set_is_store_p): ...this, updating to work on a SET pattern
10374         rather than an insn.
10375         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
10376         top of function to where it is needed.  Rewrite the bogus
10377         condition that checks for "insn" and "dep" being PARALLEL to
10378         instead use single_set, introducing locals "insn_set" and
10379         "dep_set".  Given that we only ever returned "cost" for a non-pair
10380         of SETs, bail out early if we don't have a pair of SET.
10381         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
10382         use the new locals "insn_set" and "dep_set", and update calls to
10383         is_load_insn and is_store_insn to be calls to set_is_load_p and
10384         set_is_store_p.
10385
10386 2014-08-27  Guozhi Wei  <carrot@google.com>
10387
10388         PR target/62262
10389         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
10390         amount before using it.
10391
10392 2014-08-27  Richard Biener  <rguenther@suse.de>
10393
10394         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
10395         get_maxval_strlen inside a more useful API.
10396         (gimple_fold_builtin_with_strlen): Remove and fold into ...
10397         (gimple_fold_builtin): ... caller.
10398         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
10399         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
10400         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
10401         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
10402         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
10403         gimple_fold_builtin_sprintf): Adjust to compute maxval
10404         themselves.
10405
10406 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
10407
10408         PR other/62248
10409         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
10410
10411 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10412             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10413             Anna Tikhonova  <anna.tikhonova@intel.com>
10414             Ilya Tocar  <ilya.tocar@intel.com>
10415             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10416             Ilya Verbin  <ilya.verbin@intel.com>
10417             Kirill Yukhin  <kirill.yukhin@intel.com>
10418             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10419
10420         * config/i386/sse.md
10421         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
10422         Use `concat_tg_mode' attribute to determine asm register size.
10423
10424 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10425             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10426             Anna Tikhonova  <anna.tikhonova@intel.com>
10427             Ilya Tocar  <ilya.tocar@intel.com>
10428             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10429             Ilya Verbin  <ilya.verbin@intel.com>
10430             Kirill Yukhin  <kirill.yukhin@intel.com>
10431             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10432
10433         * config/i386/sse.md
10434         (define_mode_iterator VI48_AVX512VL): New.
10435         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
10436         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
10437         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
10438         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10439         with VI1): Change mode iterator.
10440         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10441         with VI_ULOADSTORE_BW_AVX512VL): New.
10442         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10443         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10444         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10445         with VI1): Change mode iterator.
10446         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10447         with VI_ULOADSTORE_BW_AVX512VL): New.
10448         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10449         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10450         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10451         with VI1): Change mode iterator.
10452         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10453         with VI_ULOADSTORE_BW_AVX512VL): New.
10454         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10455         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
10456         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
10457         (define_insn "<avx512>_storedqu<mode>_mask" with
10458         VI48_AVX512VL): New.
10459         (define_insn "<avx512>_storedqu<mode>_mask" with
10460         VI12_AVX512VL): Ditto.
10461
10462 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10463             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10464             Anna Tikhonova  <anna.tikhonova@intel.com>
10465             Ilya Tocar  <ilya.tocar@intel.com>
10466             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10467             Ilya Verbin  <ilya.verbin@intel.com>
10468             Kirill Yukhin  <kirill.yukhin@intel.com>
10469             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10470
10471         * config/i386/sse.md
10472         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
10473         (define_mode_iterator VI48_AVX512BW): New.
10474         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
10475         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10476         with VI48_AVX2_48_AVX512F): New.
10477         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10478         with VI2_AVX512VL): Ditto.
10479
10480 2014-08-27  Richard Biener  <rguenther@suse.de>
10481
10482         PR middle-end/62239
10483         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
10484         (fold_builtin_3): Do not fold strcat_chk here.
10485         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
10486         from builtins.c.
10487         (gimple_fold_builtin): Fold strcat_chk here.
10488
10489 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
10490
10491         * dwarf2out.h (dwarf2out_decl): Remove prototype.
10492         * dwarf2out.c (dwarf2out_decl): Make static.
10493
10494 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
10495
10496         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
10497
10498 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10499
10500         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
10501         from rtx to rtx_insn *.
10502         (cselib_lookup_from_insn): Likewise for final param.
10503         (cselib_subst_to_values_from_insn): Likewise.
10504         (cselib_add_permanent_equiv): Likewise.
10505
10506         * cselib.c (cselib_current_insn): Likewise for this variable.
10507         (cselib_subst_to_values_from_insn): Likewise for param "insn".
10508         (cselib_lookup_from_insn): Likewise.
10509         (cselib_add_permanent_equiv): Likewise for param "insn" and local
10510         "save_cselib_current_insn".
10511         (cselib_process_insn): Replace use of NULL_RTX with NULL.
10512
10513         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
10514         from rtx to rtx_insn *.
10515
10516 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10517
10518         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
10519         rtx_insn *.
10520
10521 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10522
10523         * df.h (df_dump_insn_problem_function): Strengthen first param of
10524         this callback from const_rtx to const rtx_insn *.
10525         (struct df_insn_info): Strengthen field "insn" from rtx to
10526         rtx_insn *.
10527         (DF_REF_INSN): Eliminate this function, reinstating the older
10528         macro definition.
10529         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
10530         (df_reg_defined): Likewise.
10531         (df_find_use): Likewise.
10532         (df_reg_used): Likewise.
10533         (df_dump_insn_top): Strengthen param 1 from const_rtx to
10534         const rtx_insn *.
10535         (df_dump_insn_bottom): Likewise.
10536         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
10537         (df_insn_debug_regno): Likewise.
10538         (debug_df_insn): Likewise.
10539         (df_rd_simulate_one_insn): Likewise for param 2.
10540         (df_word_lr_simulate_defs): Likewise for param 1.
10541         (df_word_lr_simulate_uses): Likewise.
10542         (df_md_simulate_one_insn): Likewise for param 2.
10543         (df_simulate_find_noclobber_defs): Likewise for param 1.
10544         (df_simulate_find_defs): Likewise.
10545         (df_simulate_defs): Likewise.
10546         (df_simulate_uses): Likewise.
10547         (df_simulate_one_insn_backwards): Likewise for param 2.
10548         (df_simulate_one_insn_forwards): Likewise.
10549         (df_uses_create): Likewise for param 2.
10550         (df_insn_create_insn_record): Likewise for param 1.
10551         (df_insn_delete): Likewise.
10552         (df_insn_rescan): Likewise.
10553         (df_insn_rescan_debug_internal): Likewise.
10554         (df_insn_change_bb): Likewise.
10555         (df_notes_rescan): Likewise.
10556         * rtl.h (remove_death): Likewise for param 2.
10557         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
10558         const rtx_insn *.
10559         * sched-int.h (reemit_notes): Strengthen param from rtx to
10560         rtx_insn *.
10561         * valtrack.h (propagate_for_debug): Likewise for param 1.
10562
10563         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
10564         local "tmp_rtx" from const_rtx to const rtx_insn *.
10565         * combine.c (remove_death): Strengthen param "insn" from rtx to
10566         rtx_insn *.
10567         (move_deaths): Likewise for local "where_dead".
10568         * cse.c (delete_trivially_dead_insns): Introduce local
10569         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
10570         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
10571         rtx_insn *.
10572         (df_reg_defined): Likewise.
10573         (df_find_use): Likewise.
10574         (df_reg_used): Likewise.
10575         (df_dump_insn_problem_data): Strengthen param "insn" from
10576         const_rtx to const rtx_insn *.
10577         (df_dump_insn_top): Likewise.
10578         (df_dump_insn_bottom): Likewise.
10579         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
10580         (df_insn_debug_regno): Likewise.
10581         (debug_df_insn): Likewise.
10582         (DF_REF_INSN): Delete.
10583         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
10584         from rtx to rtx_insn *.
10585         (df_chain_insn_top_dump): Strengthen param "insn" from
10586         const_rtx to const rtx_insn *.
10587         (df_chain_insn_bottom_dump): Likewise.
10588         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
10589         rtx_insn *.
10590         (df_word_lr_simulate_uses): Likewise.
10591         (df_print_note): Likewise.
10592         (df_remove_dead_and_unused_notes): Likewise.
10593         (df_set_unused_notes_for_mw): Likewise.
10594         (df_set_dead_notes_for_mw): Likewise.
10595         (df_create_unused_note): Likewise.
10596         (df_simulate_find_defs): Likewise.
10597         (df_simulate_find_uses): Likewise.
10598         (df_simulate_find_noclobber_defs): Likewise.
10599         (df_simulate_defs): Likewise.
10600         (df_simulate_uses): Likewise.
10601         (df_simulate_one_insn_backwards): Likewise.
10602         (df_simulate_one_insn_forwards): Likewise.
10603         (df_md_simulate_one_insn): Likewise.
10604         * df-scan.c (df_uses_create): Likewise.
10605         (df_insn_create_insn_record): Likewise.
10606         (df_insn_delete): Likewise.
10607         (df_insn_rescan): Likewise.
10608         (df_insn_rescan_debug_internal): Likewise.
10609         (df_insn_change_bb): Likewise.
10610         (df_notes_rescan): Likewise.
10611         (df_refs_add_to_chains): Likewise.
10612         (df_insn_refs_verify): Likewise.
10613         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
10614         when invoking df_insn_delete.
10615         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
10616         (set_unique_reg_note): Add checked cast.
10617         * final.c (cleanup_subreg_operands): Likewise.
10618         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
10619         "insn" from rtx to rtx_insn *.
10620         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
10621         "last" from rtx to rtx_insn *.
10622         * ira-emit.c (change_regs_in_insn): New function.
10623         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
10624         Invoke change_regs_in_insn rather than change_regs.
10625         * ira.c (update_equiv_regs): Strengthen locals "insn",
10626         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
10627         for_each_rtx_in_insn rather than for_each_rtx.
10628         * recog.c (confirm_change_group): Add checked casts.
10629         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
10630         Add checked cast.
10631         (peep2_fill_buffer): Add checked cast.
10632         * rtlanal.c (remove_note): Likewise.
10633         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
10634         locals "next" "end" from rtx to rtx_insn *.
10635
10636 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10637
10638         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
10639         to rtx_insn *.
10640         (struct reg_use_data): Likewise for field "insn".
10641         (insn_cost): Likewise for param.
10642         (real_insn_for_shadow): Likewise for return type and param.
10643         (increase_insn_priority): Likewise for param 1.
10644         (debug_dependencies): Likewise for both params.
10645
10646         * haifa-sched.c (insn_delay): Likewise for param "insn".
10647         (real_insn_for_shadow): Likewise for return type and param "insn".
10648         (update_insn_after_change): Likewise for param "insn".
10649         (recompute_todo_spec): Likewise for param "next" and locals "pro",
10650         "other".
10651         (insn_cost): Likewise for param "insn".
10652         (increase_insn_priority): Likewise.
10653         (calculate_reg_deaths): Likewise.
10654         (setup_insn_reg_pressure_info): Likewise.
10655         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10656         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10657         (model_recompute): Likewise.
10658         (must_restore_pattern_p): Likewise for param "next".
10659         (model_excess_cost): Likewise for param "insn".
10660         (queue_remove): Likewise.
10661         (adjust_priority): Likewise for param "prev".
10662         (update_register_pressure): Likewise for param "insn".
10663         (setup_insn_max_reg_pressure): Likewise for local "insn".
10664         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10665         (model_add_to_schedule): Likewise.
10666         (model_reset_queue_indices): Likewise for local "insn".
10667         (unschedule_insns_until): Strengthen local "recompute_vec" from
10668         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
10669         "con" from rtx to rtx_insn *.
10670         (restore_last_backtrack_point): Likewise for both locals "x". Add
10671         checked casts.
10672         (estimate_insn_tick): Likewise for param "insn".
10673         (commit_schedule): Likewise for params "prev_head", "tail" and
10674         local "x".
10675         (verify_shadows): Likewise for locals "i1", "i2".
10676         (dump_insn_stream): Likewise for params "head", "tail" and locals
10677         "next_tail", "insn".
10678         (schedule_block): Likewise for locals "insn", "x".  Add a checked
10679         cast.
10680         (fix_inter_tick): Likewise for params "head", "tail".
10681         (create_check_block_twin): Likewise for local "jump".
10682         (haifa_change_pattern): Likewise for param "insn".
10683         (haifa_speculate_insn): Likewise.
10684         (dump_new_block_header): Likewise for params "head", "tail".
10685         (fix_jump_move): Likewise for param "jump".
10686         (move_block_after_check): Likewise.
10687         (sched_init_insn_luid): Likewise for param "insn".
10688         (sched_init_luids): Likewise for local "insn".
10689         (insn_luid): Likewise for param "insn".
10690         (init_h_i_d): Likewise.
10691         (haifa_init_h_i_d): Likewise for local "insn".
10692         (haifa_init_insn): Likewise for param "insn".
10693         * sched-deps.c (add_dependence): Likewise for local "real_pro",
10694         "other".
10695         (create_insn_reg_use): Likewise for param "insn".
10696         (setup_insn_reg_uses): Likewise.  Add a checked cast.
10697         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10698         "tail" from rtx to rtx_insn *.
10699         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10700         "insn", "next_tail".
10701
10702 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10703
10704         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10705         from rtx to rtx_insn *.
10706         (model_add_to_schedule): Likewise for locals "start", "end",
10707         "iter".
10708
10709 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10710
10711         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10712         rtx_insn *.
10713         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
10714         "to" and locals "insn", "next", "copy".  Remove now-redundant
10715         checked cast.
10716
10717 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10718
10719         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10720         rtx_insn * and param 4 from rtx * to rtx_insn **.
10721         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10722         param 2 from rtx * to rtx_insn **.
10723
10724         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10725         rtx_insn * and final param from rtx * to rtx_insn **.
10726
10727         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10728         from rtx to rtx_insn *.
10729         (try_head_merge_bb): Likewise for both locals named "move_upto".
10730         * df-problems.c (can_move_insns_across): Likewise for params
10731         "from", "to", "across_from", "across_to" and locals "insn",
10732         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
10733         rtx_insn **.
10734         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10735         from rtx to rtx_insn *.
10736         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10737         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10738         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10739         rtx_insn *.
10740         (noce_try_abs): Likewise.
10741         (noce_get_condition): Likewise for param "jump".  Strengthen param
10742         "earliest" from rtx * to rtx_insn **.
10743         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10744         rtx_insn *.
10745         (find_cond_trap): Likewise.
10746         (dead_or_predicable): Likewise for local "earliest".
10747         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
10748         checked cast.
10749         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10750         and local "prev".  Strengthen param "earliest" from rtx * to
10751         rtx_insn **.
10752         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10753         Strengthen param "earliest" from rtx * to rtx_insn **.
10754
10755 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10756
10757         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10758         "to" and local "insn" from rtx to rtx_insn *.
10759
10760 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10761
10762         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10763         from rtx to rtx_insn *.
10764         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10765         (code_motion_path_driver): Likewise for local "last_insn".
10766         (simplify_changed_insns): Likewise for local "insn".
10767
10768 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10769
10770         * rtl.h (push_to_sequence): Strengthen param from rtx to
10771         rtx_insn *.
10772         (push_to_sequence2): Likewise for both params.
10773         (delete_insns_since): Likewise for param.
10774         (reorder_insns_nobb): Likewise for all three params.
10775         (set_new_first_and_last_insn): Likewise for both params.
10776
10777         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10778         rtx_insn *.  Remove now-redundant cast.
10779         (set_last_insn): Likewise.
10780
10781         * builtins.c (expand_builtin_return): Strengthen local
10782         "call_fusage" from rtx to rtx_insn *.
10783         * cfgrtl.c (create_basic_block_structure): Likewise for local
10784         "after".
10785         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10786         "first", "last" and local "insn".
10787         (delete_insns_since): Likewise for param "from".
10788         (reorder_insns_nobb): Likewise for params "from", "to", "after"
10789         and local "x".
10790         (push_to_sequence): Likewise for param "first" and local "last".
10791         (push_to_sequence2): Likewise for params "first" and "last".
10792         * lra.c (emit_add3_insn): Likewise for local "last".
10793         (lra_emit_add): Likewise.
10794         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10795         "last_insn".
10796         (process_address_1): Likewise for locals "insn", last".
10797         * modulo-sched.c (ps_first_note): Likewise for return type.
10798         * optabs.c (expand_binop_directly): Likewise for param "last".
10799
10800 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10801
10802         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10803         to rtx_insn*.
10804         * emit-rtl.c (get_last_insn_anywhere): Likewise.
10805
10806 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10807
10808         * function.h (struct sequence_stack): Strengthen fields "first"
10809         and "last" from rtx to rtx_insn *.
10810         (struct emit_status): Likewise for fields "x_first_insn" and
10811         "x_last_insn".
10812
10813         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10814         (set_first_insn): Add checked cast.
10815         (get_last_insn): Remove now-redundant checked cast.
10816         (set_last_insn): Add checked cast.
10817
10818         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10819         "saved_first" and "saved_last" from rtx to rtx_insn *.
10820
10821 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10822
10823         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10824         (unlink_insn_chain): Strengthen both params from rtx to
10825         rtx_insn *.
10826
10827         * cfgrtl.c (cfg_layout_function_header): Likewise for this
10828         variable.
10829         (unlink_insn_chain): Likewise for params "first" and "last".
10830         Remove now-redundant checked cast.
10831         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10832         (fixup_reorder_chain): Strengthen local "insn" from rtx to
10833         rtx_insn *.
10834         * emit-rtl.c (link_insn_into_chain): Likewise for all three
10835         params.
10836         (add_insn): Likewise for param "insn" and local "prev".
10837         (add_insn_after_nobb): Likewise for both params and local "next".
10838         (add_insn_before_nobb): Likewise for both params and local "prev".
10839         (add_insn_after): Rename param "after" to "uncast_after",
10840         introducing local "after" with another checked cast.
10841         (add_insn_before): Rename params "insn" and "before", giving them
10842         "uncast_" prefixes, adding the old names back using checked casts.
10843         (emit_note_after): Likewise for param "after".
10844         (emit_note_before): Likewise for param "before".
10845         (emit_label): Add a checked cast.
10846
10847 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10848
10849         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
10850         "insn" from rtx to rtx_insn *.
10851
10852         * cselib.c (cselib_record_sets_hook): Likewise.
10853
10854         * var-tracking.c (add_with_sets): Likewise, renaming back from
10855         "uncast_insn" to "insn" and eliminating the checked cast from rtx
10856         to rtx_insn *.
10857
10858 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10859
10860         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10861         and "header_" from rtx to rtx_insn *.
10862         (struct basic_block_d): Likewise for field "head_" within "x"
10863         field of union basic_block_il_dependent.
10864         (BB_HEAD): Drop function...
10865         (SET_BB_HEAD): ...and this function in favor of...
10866         (BB_HEAD): ...reinstate macro.
10867         (BB_END): Drop function...
10868         (SET_BB_END): ...and this function in favor of...
10869         (BB_END): ...reinstate macro.
10870         (BB_HEADER): Drop function...
10871         (SET_BB_HEADER): ...and this function in favor of...
10872         (BB_HEADER): ...reinstate macro.
10873
10874         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10875         (fix_crossing_unconditional_branches): Likewise.
10876         * caller-save.c (save_call_clobbered_regs): Likewise.
10877         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10878         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10879         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10880         (merge_blocks_move_successor_nojumps): Likewise.
10881         (outgoing_edges_match): Update use of for_each_rtx to
10882         for_each_rtx_in_insn.
10883         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10884         (expand_gimple_cond): Likewise.
10885         (expand_gimple_tailcall): Likewise.
10886         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10887         SET_BB_END.
10888         (construct_exit_block): Drop use of SET_BB_END.
10889         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10890         rtx_insn *.
10891         (delete_insn): Rename param "insn" to "uncast_insn", introducing
10892         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
10893         SET_BB_HEAD and SET_BB_END.
10894         (create_basic_block_structure): Drop use of SET_BB_HEAD and
10895         SET_BB_END.
10896         (rtl_delete_block): Drop use of SET_BB_HEAD.
10897         (rtl_split_block): Drop use of SET_BB_END.
10898         (emit_nop_for_unique_locus_between): Likewise.
10899         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10900         (block_label): Drop use of SET_BB_HEAD.
10901         (fixup_abnormal_edges): Drop use of SET_BB_END.
10902         (record_effective_endpoints): Drop use of SET_BB_HEADER.
10903         (relink_block_chain): Likewise.
10904         (fixup_reorder_chain): Drop use of SET_BB_END.
10905         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10906         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10907         rtx_insn **.  Drop use of SET_BB_HEADER.
10908         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10909         SET_BB_HEAD.
10910         (BB_HEAD): Delete this function.
10911         (SET_BB_HEAD): Likewise.
10912         (BB_END): Likewise.
10913         (SET_BB_END): Likewise.
10914         (BB_HEADER): Likewise.
10915         (SET_BB_HEADER): Likewise.
10916         * emit-rtl.c (add_insn_after):  Rename param "insn" to
10917         "uncast_insn", adding a new local "insn" and a checked cast to
10918         rtx_insn *.  Drop use of SET_BB_END.
10919         (remove_insn): Strengthen locals "next" and "prev" from rtx to
10920         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
10921         (reorder_insns): Drop use of SET_BB_END.
10922         (emit_insn_after_1): Strengthen param "first" and locals "last",
10923         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
10924         (emit_pattern_after_noloc): Add checked cast.
10925         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10926         (restore_other_notes): Likewise.
10927         (move_insn): Likewise.
10928         (sched_extend_bb): Likewise.
10929         (fix_jump_move): Likewise.
10930         * ifcvt.c (noce_process_if_block): Likewise.
10931         (dead_or_predicable): Likewise.
10932         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10933         * reg-stack.c (change_stack): Drop use of SET_BB_END.
10934         * sel-sched-ir.c (sel_move_insn): Likewise.
10935         * sel-sched.c (move_nop_to_previous_block): Likewise.
10936
10937         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10938         SET_BB_END.
10939         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10940
10941 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10942
10943         * basic-block.h (create_basic_block_structure): Strengthen params
10944         1 "head" and 2 "end" from rtx to rtx_insn *.
10945         * cfgrtl.c (create_basic_block_structure): Likewise.
10946         (rtl_create_basic_block): Update casts from void * to rtx to
10947         rtx_insn *, so that we can pass them as rtx_insn * to
10948         create_basic_block_structure.
10949         * sel-sched-ir.c (sel_create_basic_block): Likewise.
10950
10951 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10952
10953         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10954         rtx_insn **.
10955         (check_for_inc_dec): Strengthen param "insn" from rtx to
10956         rtx_insn *.
10957
10958         * cselib.h (cselib_process_insn): Likewise.
10959
10960         * cselib.c (cselib_record_sets): Likewise.
10961         (cselib_process_insn): Likewise.
10962
10963         * dse.c (struct insn_info): Likewise for field "insn".
10964         (check_for_inc_dec_1): Likewise for local "insn".
10965         (check_for_inc_dec): Likewise for param "insn".
10966         (scan_insn): Likewise.
10967         (dse_step1): Likewise for local "insn".
10968
10969         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10970         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
10971
10972 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10973
10974         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10975         from rtx to rtx_insn *.
10976         (DEP_PRO): Delete this function and...
10977         (SET_DEP_PRO): ...this function in favor of...
10978         (DEP_PRO): ...reinstate this macro.
10979         (DEP_CON): Delete this function and...
10980         (SET_DEP_CON): ...this function in favor of...
10981         (DEP_CON): ...reinstate this old macro.
10982         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10983         (init_dep): Likewise.
10984         (set_priorities): Likewise for both params.
10985         (sd_copy_back_deps): Likewise for params 1 and 2.
10986
10987         * haifa-sched.c (priority): Likewise for param "insn" and local
10988         "next".
10989         (set_priorities): Likewise for params "head" and "tail" and local
10990         "insn".
10991         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10992         local "consumer".
10993         (add_to_speculative_block): Add a checked cast.
10994         (create_check_block_twin): Drop use of SET_DEP_CON.
10995         (add_jump_dependencies): Strengthen params "insn" and "jump" from
10996         rtx to rtx_insn *.
10997
10998         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10999         Drop use of SET_DEP_PRO
11000         (init_dep): Strengthen params "pro" and "con" from rtx to
11001         rtx_insn *.
11002         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
11003         use of SET_DEP_CON.
11004         (DEP_PRO): Delete.
11005         (DEP_CON): Delete.
11006         (SET_DEP_PRO): Delete.
11007         (SET_DEP_CON): Delete.
11008
11009 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
11010
11011         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
11012         from rtx to rtx_insn *.
11013         (VINSN_INSN_RTX): Eliminate rvalue function and...
11014         (SET_VINSN_INSN): ...lvalue function in favor of...
11015         (VINSN_INSN_RTX): reinstate this old macro.
11016
11017         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
11018         in favor of VINSN_INSN_RTX.
11019         (VINSN_INSN_RTX): Delete this function.
11020         (SET_VINSN_INSN_RTX): Likewise.
11021
11022 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
11023
11024         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
11025         (BND_TO): Delete this function and...
11026         (SET_BND_TO): ...this functions in favor of...
11027         (BND_TO): ...reinstating this macro.
11028         (struct _fence): Strengthen field "executing_insns" from
11029         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
11030         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
11031         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
11032         and param "insn" from rtx to insn_t.
11033         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
11034         rtx_insn *.
11035
11036         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
11037         vec<rtx_insn *> .
11038         (rtx_vec_t): Likewise.
11039         (struct sched_deps_info_def): Strengthen param of "start_insn"
11040         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
11041         "note_mem_dep" callback and first param of "note_dep" callback.
11042
11043         * haifa-sched.c (add_to_speculative_block): Strengthen param
11044         "insn" from rtx to rtx_insn *.
11045         (clear_priorities): Likewise.
11046         (calc_priorities): Likewise for local "insn".
11047
11048         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
11049         Remove redundant checked cast.
11050         (haifa_note_mem_dep): Likewise for param "pending_insn".
11051         (haifa_note_dep): Likewise for param "elem".
11052         (note_mem_dep): Likewise for param "e".
11053         (sched_analyze_1): Add checked casts.
11054         (sched_analyze_2): Likewise.
11055
11056         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
11057         from rtx to rtx_insn *.
11058         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
11059         from vec<rtx> * to vec<rtx_insn *> *.
11060
11061         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
11062         scaffolding.
11063         (flist_add): Strengthen param "executing_insns" from
11064         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
11065         (advance_deps_context): Remove now-redundant checked cast.
11066         (init_fences): Replace uses of NULL_RTX with NULL.
11067         (merge_fences): Strengthen params "last_scheduled_insn" and
11068         "sched_next" from rtx to rtx_insn * and "executing_insns" from
11069         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
11070         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
11071         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
11072         an instruction, rather than doing double-duty as a pattern.
11073         (return_nop_to_pool): Update for change of insn_t.
11074         (deps_init_id): Remove now-redundant checked cast.
11075         (struct sched_scan_info_def): Strengthen param of "init_insn"
11076         callback from rtx to insn_t.
11077         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
11078         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
11079         NULL.
11080         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
11081         "end" from rtx to rtx_insn *.
11082         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
11083         (rtx insn_rtx, bool force_unique_p)
11084         (BND_TO): Delete function.
11085         (SET_BND_TO): Delete function.
11086
11087         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
11088         rtx to rtx_insn *.
11089         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
11090         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
11091         rtx to rtx_insn *.
11092         (undo_transformations): Likewise for param "insn".
11093         (update_liveness_on_insn): Likewise.
11094         (compute_live_below_insn): Likewise for param "insn" and local
11095         "succ".
11096         (update_data_sets): Likewise for param "insn".
11097         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
11098         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
11099         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
11100         rtx_insn *.
11101         (move_cond_jump): Likewise for param "insn".
11102         (move_cond_jump): Drop use of SET_BND_TO.
11103         (compute_av_set_on_boundaries): Likewise.
11104         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
11105         (update_and_record_unavailable_insns): Strengthen local "bb_end"
11106         from rtx to rtx_insn *.
11107         (maybe_emit_renaming_copy): Likewise for param "insn".
11108         (maybe_emit_speculative_check): Likewise.
11109         (handle_emitting_transformations): Likewise.
11110         (remove_insn_from_stream): Likewise.
11111         (code_motion_process_successors): Strengthen local "succ" from rtx
11112         to insn_t.
11113
11114 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
11115
11116         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
11117         ilist_t, not _xlist_t;
11118         (ILIST_INSN): Define in terms of new union field "insn".
11119         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
11120         _XLIST_NEXT.
11121         (struct _list_node): Add new field "insn" to the union, of type
11122         insn_t.
11123         (ilist_add): Replace macro with an inline function, requiring an
11124         insn_t.
11125         (ilist_remove): Define this macro directly in terms of
11126         _list_remove, rather than indirectly via _xlist_remove.
11127         (ilist_clear): Likewise, in terms of _list_clear rather than
11128         _xlist_clear.
11129         (ilist_is_in_p): Replace macro with an inline function, requiring
11130         an insn_t.
11131         (_list_iter_cond_insn): New function.
11132         (ilist_iter_remove): Define this macro directly in terms of
11133         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
11134         (ilist_iterator): Define directly in terms of _list_iterator
11135         rather than indirectly through _xlist_iterator.
11136         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
11137         than in terms of _FOR_EACH_X.
11138         (FOR_EACH_INSN_1): Likewise.
11139
11140 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
11141
11142         PR target/60606
11143         PR target/61330
11144         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
11145         DECL_HARD_REGISTER and return for invalid register specifications.
11146         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
11147         DECL_HARD_REGISTER, call expand_one_error_var.
11148         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
11149         CC_REGNUM with non-MODE_CC modes.
11150         (arm_regno_class): Return NO_REGS for PC_REGNUM.
11151
11152 2014-08-26  Marek Polacek  <polacek@redhat.com>
11153
11154         PR c/61271
11155         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
11156
11157 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
11158
11159         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
11160         qi cost; add di cost.
11161         (cortexa57_addrcost_table): Likewise.
11162
11163 2014-08-26  Marek Polacek  <polacek@redhat.com>
11164
11165         PR c/61271
11166         * expr.c (is_aligning_offset): Remove logical not.
11167
11168 2014-08-26  Marek Polacek  <polacek@redhat.com>
11169
11170         PR c/61271
11171         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
11172         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
11173
11174 2014-08-26  Richard Biener  <rguenther@suse.de>
11175
11176         PR tree-optimization/62175
11177         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11178         expand possibly trapping operations.
11179
11180 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
11181
11182         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
11183         "insn" from rtx to rtx_insn *.
11184         (permute_load): Likewise for param "insn".
11185         (permute_store): Likewise.
11186         (handle_special_swappables): Likewise for local "insn".
11187         (replace_swap_with_copy): Likewise for locals "insn" and
11188         "new_insn".
11189         (rs6000_analyze_swaps): Likewise for local "insn".
11190
11191 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11192
11193         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
11194         to rtx_insn *.
11195
11196 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11197
11198         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
11199         "note_list" from rtx to rtx_insn *.
11200         (BB_NOTE_LIST): Replace this function and...
11201         (SET_BB_NOTE_LIST): ...this function with...
11202         (BB_NOTE_LIST): ...the former macro implementation.
11203
11204         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
11205         local "from_start" from rtx to rtx_insn *.  Strengthen param
11206         "to_endp" from rtx * to rtx_insn **.
11207
11208         * haifa-sched.c (concat_note_lists): Likewise.
11209         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
11210         BB_NOTE_LIST.
11211         (sel_restore_notes): Likewise.
11212         (move_bb_info): Likewise.
11213         (BB_NOTE_LIST): Delete this function.
11214         (SET_BB_NOTE_LIST): Delete this function.
11215         * sel-sched.c (create_block_for_bookkeeping): Eliminate
11216         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
11217
11218 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11219
11220         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
11221         from rtx * to rtx_insn **.
11222         (reorder2): Likewise.
11223         (dependencies_evaluation_hook): Strengthen params "head", "tail"
11224         from rtx to rtx_insn *.
11225
11226         * doc/tm.texi: Update mechanically for above change to target.def.
11227
11228         * sched-int.h (note_list): Strengthen this variable from rtx to
11229         rtx_insn *.
11230         (remove_notes): Likewise for both params.
11231         (restore_other_notes): Likewise for return type and first param.
11232         (struct ready_list): Strengthen field "vec" from rtx * to
11233         rtx_insn **.
11234         (struct dep_replacement): Strenghten field "insn" from rtx to
11235         rtx_insn *.
11236         (struct deps_desc): Likewise for fields "last_debug_insn",
11237         "last_args_size".
11238         (struct haifa_sched_info): Likewise for callback field
11239         "can_schedule_ready_p"'s param, for first param of "new_ready"
11240         callback field, for both params of "rank" callback field, for
11241         first field of "print_insn" callback field (with a const), for
11242         both params of "contributes_to_priority" callback, for param
11243         of "insn_finishes_block_p" callback, for fields "prev_head",
11244         "next_tail", "head", "tail", for first param of "add_remove_insn"
11245         callback, for first param of "begin_schedule_ready" callback, for
11246         both params of "begin_move_insn" callback, and for second param
11247         of "advance_target_bb" callback.
11248         (add_dependence): Likewise for params 1 and 2.
11249         (sched_analyze): Likewise for params 2 and 3.
11250         (deps_analyze_insn): Likewise for param 2.
11251         (ready_element): Likewise for return type.
11252         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11253         (try_ready): Strenghten param from rtx to rtx_insn *.
11254         (sched_emit_insn): Likewise for return type.
11255         (record_delay_slot_pair): Likewise for params 1 and 2.
11256         (add_delay_dependencies): Likewise for param.
11257         (contributes_to_priority): Likewise for both params.
11258         (find_modifiable_mems): Likewise.
11259
11260         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
11261         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
11262         "first_older_only_insn" from rtx to rtx_insn *.
11263         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
11264         rtx_insn **.
11265
11266         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
11267         "last_scheduled_iter0" from rtx to rtx_insn *.
11268         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
11269         (c6x_sched_reorder_1): Strengthen param "ready" and locals
11270         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
11271         "insn" from rtx to rtx_insn *.
11272         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
11273         rtx_insn **.
11274         (c6x_sched_reorder2): Strengthen param "ready" and locals
11275         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
11276         "insn" from rtx to rtx_insn *.
11277         (c6x_variable_issue):  Add a checked cast when assigning from insn
11278         to ss.last_scheduled_iter0.
11279         (split_delayed_branch): Strengthen param "insn" and local "i1"
11280         from rtx to rtx_insn *.
11281         (split_delayed_nonbranch): Likewise.
11282         (undo_split_delayed_nonbranch): Likewise for local "insn".
11283         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
11284         "entry_after", "end_packet", "head_insn", "tail_insn",
11285         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
11286         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
11287         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
11288         but add a checked cast on loop->start_label.  Consolidate calls to
11289         avoid assigning result of gen_spkernel to "insn", now an
11290         rtx_insn *.
11291
11292         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
11293         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
11294         rtx to rtx_insn *.
11295         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
11296         rtx_insn **.  Strengthen locals "top", "next" from rtx to
11297         rtx_insn *.
11298         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
11299         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
11300         (add_parameter_dependencies): Strengthen params "call", "head" and
11301         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
11302         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
11303         (add_dependee_for_func_arg): Likewise for param "arg" and local
11304         "insn".
11305         (ix86_dependencies_evaluation_hook): Likewise for params "head",
11306         "tail" and locals "insn", "first_arg".
11307
11308         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
11309         for params "head", "tail" and locals "insn", "next", "next_tail".
11310         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
11311         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
11312         "insn", "lowest", "highest" from rtx to rtx_insn *.
11313         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
11314         rtx_insn **.
11315         (ia64_sched_reorder2): Likewise.
11316
11317         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
11318         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
11319         from rtx * to rtx_insn **.
11320         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
11321         rtx_insn **.
11322         (mep_print_sched_insn): Strengthen param "insn" from rtx to
11323         rtx_insn *.
11324         (mep_sched_reorder): Strengthen param "ready" from rtx * to
11325         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
11326         to rtx_insn *.
11327
11328         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
11329         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
11330         to rtx_insn *.
11331         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
11332         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
11333         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
11334         rtx_insn **.
11335         (vr4130_reorder): Likewise.
11336         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
11337         rtx to rtx_insn *.
11338         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
11339         rtx_insn **.
11340         (mips_sched_reorder): Likewise.
11341         (mips_sched_reorder2): Likewise.
11342
11343         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
11344
11345         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
11346         Strengthen local "tmp" from rtx to rtx_insn *.
11347         (rs6000_sched_reorder2): Likewise.
11348
11349         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
11350         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
11351         (s390_sched_reorder): Strengthen param "ready" from rtx * to
11352         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
11353
11354         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
11355         "tmp2" from rtx to rtx_insn *.
11356         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
11357         Strengthen local "insn" from rtx to rtx_insn *.
11358         (ready_reorder): Strengthen param "ready" from rtx * to
11359         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
11360         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
11361         (sh_reorder2): Likewise.
11362
11363         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
11364         local "insn" from rtx to rtx_insn *.
11365
11366         * haifa-sched.c (note_list): Strengthen this variable from rtx to
11367         rtx_insn *.
11368         (scheduled_insns): Strengthen this variable from vec<rtx> to
11369         vec<rtx_insn *>.
11370         (set_modulo_params): Likewise for locals "i1", "i2".
11371         (record_delay_slot_pair): Likewise for params "i1", "i2".
11372         (add_delay_dependencies): Likewise for param "insn".
11373         (cond_clobbered_p): Likewise.
11374         (recompute_todo_spec): Likewise for local "prev".
11375         (last_scheduled_insn): Likewise for this variable.
11376         (nonscheduled_insns_begin): Likewise.
11377         (model_set_excess_costs): Strengthen param "insns" from rtx * to
11378         rtx_insn **.
11379         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
11380         rtx_insn *.
11381         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
11382         Strengthen local "insn" from rtx to rtx_insn *.
11383         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
11384         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11385         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
11386         (ready_remove_first): Likewise for return type and local "t".
11387         (ready_element): Likewise for return type.
11388         (ready_remove): Likewise for return type and local "t".
11389         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
11390         (check_clobbered_conditions): Strengthen local "x" from rtx to
11391         rtx_insn *, adding a checked cast.
11392         (schedule_insn): Likewise for param "insn".
11393         (remove_notes): Likewise for params "head", "tail" and locals
11394         "next_tail", "insn", "next".
11395         (struct haifa_saved_data): Likewise for fields
11396         "last_scheduled_insn", "nonscheduled_insns_begin".
11397         (save_backtrack_point): Update for change to field "vec" of
11398         struct ready_list.
11399         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
11400         rtx_insn **.
11401         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
11402         from rtx to rtx_insn *
11403         (resolve_dependencies): Strengthen param "insn" from rtx to
11404         rtx_insn *
11405         (restore_other_notes): Likewise for return type, for param "head"
11406         and local "note_head".
11407         (undo_all_replacements): Likewise for local "insn".
11408         (first_nonscheduled_insn): Likewise for return type and local "insn".
11409         (queue_to_ready): Likewise for local "insn", adding checked casts.
11410         (early_queue_to_ready): Likewise for local "insn".
11411         (debug_ready_list_1): Strengthen local "p" from rtx * to
11412         rtx_insn **.
11413         (move_insn): Strengthen param "insn" and local "note" from rtx to
11414         rtx_insn *
11415         (insn_finishes_cycle_p): Likewise for param "insn".
11416         (max_issue): Likewise for local "insn".
11417         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
11418         to rtx_insn **.
11419         (commit_schedule): Strengthen param "prev_head" and local "insn"
11420         from rtx to rtx_insn *
11421         (prune_ready_list): Likewise for local "insn".
11422         (schedule_block): Likewise for locals "prev_head", "head", "tail",
11423         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
11424         (set_priorities): Likewise for local "prev_head".
11425         (try_ready): Likewise for param "next".
11426         (fix_tick_ready): Likewise.
11427         (change_queue_index): Likewise.
11428         (sched_extend_ready_list): Update for change to field "vec" of
11429         struct ready_list.
11430         (generate_recovery_code): Strengthen param "insn" from rtx to
11431         rtx_insn *.
11432         (begin_speculative_block): Likewise.
11433         (create_check_block_twin): Likewise for param "insn" and locals
11434         "label", "check", "twin".  Introduce local "check_pat" to avoid
11435         "check" being used as a plain rtx before being used as an insn.
11436         (fix_recovery_deps): Add a checked cast to rtx_insn * when
11437         extracting elements from ready_list.
11438         (sched_remove_insn): Strengthen param "insn" from rtx to
11439         rtx_insn *.
11440         (sched_emit_insn): Likewise for return type.
11441         (ready_remove_first_dispatch): Likewise for return type and local
11442         "insn".
11443
11444         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
11445
11446         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
11447         const rtx_insn *.
11448
11449         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
11450         from rtx to rtx_insn *.
11451         (add_dependence_list): Likewise for param "insn".  Add a checked
11452         cast.
11453         (add_dependence_list_and_free): Strengthen param "insn" from rtx
11454         to rtx_insn *.  Strengthen param "list_p" from rtx * to
11455         rtx_insn **.
11456         (chain_to_prev_insn): Strengthen param "insn" and locals
11457         "prec_nonnote", "i" from rtx to rtx_insn *.
11458         (flush_pending_lists): Likewise for param "insn".
11459         (cur_insn): Likewise for this variable.
11460         (haifa_start_insn): Add a checked cast.
11461         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
11462         (sched_analyze_reg): Likewise for param "insn".
11463         (sched_analyze_1): Likewise.
11464         (sched_analyze_2): Likewise.  Add checked casts.
11465         (sched_analyze_insn): Likewise.  Also for local "prev".
11466         (deps_analyze_insn): Likewise for param "insn".
11467         (sched_analyze): Likewise for params "head", "tail" and local "insn".
11468         (add_dependence_1): Likewise for params "insn", "elem".
11469         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
11470         (parse_add_or_inc): Likewise for param "insn".
11471         (find_inc): Likewise for local "inc_cand".
11472         (find_modifiable_mems): Likewise for params "head", "tail" and
11473         locals "insn", "next_tail".
11474
11475         * sched-ebb.c (init_ready_list): Likewise for local "insn".
11476         (begin_schedule_ready): Likewise for param "insn".
11477         (begin_move_insn): Likewise for params "insn" and "last".
11478         (ebb_print_insn): Strengthen param "insn" from const_rtx to
11479         const rtx_insn *.
11480         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
11481         (ebb_contributes_to_priority): Likewise for params "next", "insn".
11482         (ebb_add_remove_insn): Likewise for param "insn".
11483         (advance_target_bb): Likewise.
11484
11485         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
11486         "insn".
11487         (check_live): Likewise for param "insn".
11488         (init_ready_list): Likewise for local "insn".
11489         (can_schedule_ready_p): Likewise for param "insn".
11490         (begin_schedule_ready): Likewise.
11491         (new_ready): Likewise for param "next".
11492         (rgn_print_insn): Likewise for param "insn".
11493         (rgn_rank): Likewise for params "insn1", "insn2".
11494         (contributes_to_priority): Likewise for params "next", "insn".
11495         (rgn_insn_finishes_block_p): Likewise for param "insn".
11496         (add_branch_dependences): Likewise for params "head", "tail" and
11497         locals "insn", "last".
11498         (rgn_add_remove_insn): Likewise for param "insn".
11499         (advance_target_bb): Likewise.
11500
11501         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
11502         const_rtx to const rtx_insn *.
11503
11504         * sel-sched-dump.h (sel_print_insn): Likewise.
11505
11506         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
11507         (deps_init_id): Likewise.
11508
11509         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
11510         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
11511         rtx_insn **.
11512
11513 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11514
11515         * output.h (final_start_function): Strengthen param 1 from rtx to
11516         rtx_insn *.
11517
11518         * final.c (final_start_function): Likewise, renaming back from
11519         "uncast_first" to "first", and dropping the checked cast from rtx
11520         to rtx_insn *.
11521
11522 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11523
11524         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
11525         * final.c (final): Likewise.  Rename param back from
11526         "uncast_first" to "first" and eliminate the checked cast from rtx
11527         to rtx_insn *.
11528
11529 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11530
11531         * output.h (shorten_branches): Strengthen param from rtx to
11532         rtx_insn *.
11533
11534         * final.c (shorten_branches): Likewise, renaming param back from
11535         "uncast_first" to "first", and dropping the checked cast from rtx
11536         to rtx_insn *.
11537
11538         * genattr.c (gen_attr): Likewise when writing out the prototype of
11539         shorten_branches.
11540
11541 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11542
11543         * sched-int.h (struct haifa_sched_info): Strengthen fields
11544         "prev_head" and "next_tail" from rtx to rtx_insn *.
11545
11546 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11547
11548         * rtl.h (rtx_jump_table_data::get_labels): New method.
11549         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
11550         with use of the new rtx_jump_table_data::get_labels method.
11551         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
11552         to rtx_jump_table_data *.  Simplify by using get_labels method.
11553         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
11554         a dyn_cast, introducing local "table", using it to replace
11555         label-lookup logic with a get_labels method call.
11556         (patch_jump_insn): Simplify using get_labels method.
11557         * dwarf2cfi.c (create_trace_edges): Likewise.
11558         * rtlanal.c (label_is_jump_target_p): Likewise.
11559
11560 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11561
11562         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
11563         to rtx_insn *.
11564
11565         * emit-rtl.c (unshare_all_rtl_1): Likewise.
11566         (unshare_all_rtl_again): Likewise, also for local "p".
11567
11568 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11569
11570         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
11571         to rtx_insn *.
11572         * cfgrtl.c (delete_insn_and_edges): Likewise.
11573
11574 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11575
11576         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
11577         from rtx to rtx_insn *.
11578
11579         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
11580
11581 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11582
11583         * function.c (thread_prologue_and_epilogue_insns): Likewise for
11584         locals "returnjump", "epilogue_end", "insn", "next".
11585
11586         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
11587         "returnjump" from rtx * to rtx_insn **.
11588         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
11589
11590 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11591
11592         * basic-block.h (struct edge_def). Strengthen "r" within
11593         union edge_def_insns from rtx to rtx_insn *.
11594
11595         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
11596         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
11597         rtx_insn *.
11598         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
11599         from rtx to rtx_insn *.
11600         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
11601         rtx_insn *.
11602         * postreload-gcse.c (reg_killed_on_edge): Likewise.
11603         (reg_used_on_edge): Likewise.
11604         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
11605         (gt_pch_nx): New overload for rtx_insn *&.
11606         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
11607         from rtx to rtx_insn *.
11608
11609 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11610
11611         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
11612         from rtx to rtx_insn *.
11613         (BB_FOOTER): Replace function with access macro.
11614         (SET_BB_FOOTER): Delete.
11615
11616         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
11617         with BB_FOOTER.
11618         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11619         (emit_barrier_after_bb): Likewise.
11620         (record_effective_endpoints): Likewise.
11621         (relink_block_chain): Likewise.
11622         (fixup_fallthru_exit_predecessor): Likewise.
11623         (cfg_layout_duplicate_bb): Likewise.
11624         (cfg_layout_split_block): Likewise.
11625         (cfg_layout_delete_block): Likewise.
11626         (cfg_layout_merge_blocks): Likewise.
11627         (BB_FOOTER): Delete function.
11628         (SET_BB_FOOTER): Delete function.
11629         * combine.c (update_cfg_for_uncondjump): Replace uses of
11630         SET_BB_FOOTER with BB_FOOTER.
11631
11632 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11633
11634         * except.h (struct eh_landing_pad_d): Strengthen field
11635         "landing_pad" from rtx to rtx_code_label *.
11636
11637         * except.c (sjlj_emit_dispatch_table): Likewise for param
11638         "dispatch_label"
11639         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
11640
11641 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11642
11643         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
11644         first param from rtx to rtx_insn *.
11645         * config/xtensa/xtensa.c (struct machine_function): Likewise for
11646         field "set_frame_ptr_insn".
11647         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
11648         "csend" from rtx to rtx_code_label *.
11649         (xtensa_expand_atomic): Likewise for local "csloop".
11650         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11651         rtx_insn *.
11652         (xtensa_call_tls_desc): Likewise for return type and locals
11653         "call_insn", "insns".
11654         (xtensa_legitimize_tls_address): Likewise for local "insns".
11655         (xtensa_expand_prologue): Likewise for locals "insn", "first".
11656
11657 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11658
11659         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11660         first param from rtx to rtx_insn *.
11661         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11662         "insn".
11663
11664 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11665
11666         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11667         Strengthen param 1 from rtx to rtx_insn *.
11668         (tilepro_output_cbranch): Likewise.
11669         (tilepro_adjust_insn_length): Likewise.
11670         (tilepro_final_prescan_insn): Likewise for sole param.
11671
11672         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11673         Likewise for local "last".
11674         (cbranch_predicted_p): Likewise for param "insn".
11675         (tilepro_output_simple_cbranch_with_opcode): Likewise.
11676         (tilepro_output_cbranch_with_opcode): Likewise.
11677         (tilepro_output_cbranch): Likewise.
11678         (frame_emit_load): Likewise for return type and locals "seq",
11679         "insn".
11680         (emit_sp_adjust): Likewise for return type and local "insn".
11681         (tilepro_expand_epilogue): Likewise for locals "last_insn",
11682         "insn".
11683         (tilepro_adjust_insn_length): Likewise for param "insn".
11684         (next_insn_to_bundle): Likewise for return type and params
11685         "r", "end".
11686         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11687         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11688         local "new_insns".
11689         (match_addli_pcrel): Likewise for param "insn".
11690         (replace_addli_pcrel): Likewise.
11691         (match_auli_pcrel): Likewise.
11692         (replace_auli_pcrel): Likewise.
11693         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11694         "next_insn".
11695         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11696         "queue", "next_queue", "prev".
11697         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11698         (tilepro_final_prescan_insn): Likewise for param "insn".
11699
11700 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11701
11702         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11703         Strengthen param 1 from rtx to rtx_insn *.
11704         (tilegx_output_cbranch): Likewise.
11705         (tilegx_adjust_insn_length): Likewise.
11706         (tilegx_final_prescan_insn): Likewise for sole param.
11707
11708         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11709         or local "last".
11710         (cbranch_predicted_p): Likewise for param "insn".
11711         (tilegx_output_simple_cbranch_with_opcode): Likewise.
11712         (tilegx_output_cbranch_with_opcode): Likewise.
11713         (tilegx_output_cbranch): Likewise.
11714         (frame_emit_load): Likewise for return type.
11715         (set_frame_related_p): Likewise for locals "seq", "insn".
11716         (emit_sp_adjust): Likewise for return type, and for local "insn".
11717         Introduce local "pat" for use in place of "insn" where the latter
11718         isn't an instruction.
11719         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11720         from rtx to rtx_insn *.
11721         (tilegx_adjust_insn_length): Likewise for param "insn".
11722         (next_insn_to_bundle): Likewise for return type and params "r" and
11723         "end".
11724         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11725         "end".
11726         (replace_insns): Likewise for params "old_insn", "new_insns".
11727         (replace_mov_pcrel_step1): Likewise for param "insn" and local
11728         "new_insns".
11729         (replace_mov_pcrel_step2): Likewise.
11730         (replace_mov_pcrel_step3): Likewise.
11731         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11732         "next_insn".
11733         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11734         "queue", "next_queue", "prev".
11735         (tilegx_output_mi_thunk): Likewise for local "insn".
11736         (tilegx_final_prescan_insn): Likewise for param "insn".
11737
11738 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11739
11740         * config/spu/spu.c (frame_emit_store): Strengthen return type from
11741         rtx to rtx_insn *.
11742         (frame_emit_load): Likewise.
11743         (frame_emit_add_imm): Likewise, also for local "insn".
11744         (spu_expand_prologue): Likewise for local "insn".
11745         (struct spu_bb_info): Likewise for field "prop_jump".
11746         (emit_nop_for_insn): Likewise for param "insn" and local
11747         "new_insn".
11748         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11749         "hbr_insn".
11750         (spu_emit_branch_hint): Likewise for params "before", "branch" and
11751         locals "hint", "insn".
11752         (get_branch_target): Likewise for param "branch".
11753         (insn_clobbers_hbr): Likewise for param "insn".
11754         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11755         locals "insn", "before_4", "before_16".
11756         (insert_hbrp): Likewise for local "insn".
11757         (spu_machine_dependent_reorg): Likewise for locals "branch",
11758         "insn", "next", "bbend".
11759         (uses_ls_unit): Likewise for param "insn".
11760         (get_pipe): Likewise.
11761         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11762         introducing a checked cast.
11763         (spu_sched_adjust_cost): Likewise for params "insn" and
11764         "dep_insn".
11765         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11766         (spu_sms_res_mii): Likewise.
11767
11768 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11769
11770         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11771         from rtx to rtx_insn *.
11772         (output_cbranch): Likewise for param 6.
11773         (output_return): Likewise for param 1.
11774         (output_sibcall): Likewise.
11775         (output_v8plus_shift): Likewise.
11776         (output_v8plus_mult): Likewise.
11777         (output_v9branch): Likewise for param 7.
11778         (output_cbcond):  Likewise for param 3.
11779
11780         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11781         for local "insn".
11782         (sparc_legitimize_pic_address): Likewise.
11783         (sparc_emit_call_insn): Likewise.
11784         (emit_save_or_restore_regs): Likewise.
11785         (emit_window_save): Likewise for return type and local "insn".
11786         (sparc_expand_prologue): Likewise for local "insn".
11787         (sparc_flat_expand_prologue): Likewise.
11788         (output_return): Likewise for param "insn".
11789         (output_sibcall): Likewise for param "insn" and local "delay".
11790         (output_ubranch): Likewise for param "insn".
11791         (output_cbranch): Likewise.
11792         (output_cbcond): Likewise.
11793         (output_v9branch): Likewise.
11794         (output_v8plus_shift): Likewise.
11795         (sparc_output_mi_thunk): Likewise for local "insn".
11796         (get_some_local_dynamic_name): Likewise.
11797         (output_v8plus_mult): Likewise for param "insn".
11798
11799 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11800
11801         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11802         from rtx to rtx_insn *.
11803         (output_branchy_insn): Likewise for param 3.
11804         (output_far_jump): Likewise for param 1.
11805         (final_prescan_insn): Likewise.
11806         (sh_insn_length_adjustment): Likewise for sole param.
11807
11808         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11809         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11810         rtx_code_label *.
11811         (sh_emit_compare_and_set): Likewise for local "lab".
11812         (output_far_jump): Strengthen param "insn" and local "prev" from
11813         rtx to rtx_insn *.
11814         (output_branchy_insn): Likewise for param "insn" and local
11815         "next_insn".
11816         (output_ieee_ccmpeq): Likewise for param "insn".
11817         (struct label_ref_list_d): Strengthen field "label" from rtx to
11818         rtx_code_label *.
11819         (pool_node): Likewise.
11820         (pool_window_label): Likewise for this global.
11821         (add_constant): Likewise for return type and locals "lab", "new_rtx".
11822         (dump_table): Strengthen params "start", "barrier" and local
11823         "scan" from rtx to rtx_insn *.
11824         (broken_move): Likewise for param "insn".
11825         (untangle_mova): Likewise for params "first_mova" and "new_mova".
11826         Strengthen param "first_mova" from rtx * to rtx_insn **.
11827         (mova_p): Likewise for param "insn".
11828         (fixup_mova): Likewise for param "mova".
11829         (find_barrier): Likewise for return type, params "mova" and
11830         "from", and locals "barrier_before_mova", "found_barrier",
11831         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
11832         "label" from rtx to rtx_code_label *.
11833         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11834         rtx to rtx_insn *.
11835         (sh_reorg): Likewise for locals "link", "scan", "barrier".
11836         (split_branches): Likewise for param "first" and local "insn".
11837         (final_prescan_insn): Likewise for param "insn".
11838         (sequence_insn_p): Likewise for locals "prev", "next".
11839         (sh_insn_length_adjustment): Likewise for param "insn".
11840         (sh_can_redirect_branch): Likewise for local "insn".
11841         (find_r0_life_regions): Likewise for locals "end", "insn".
11842         (sh_output_mi_thunk): Likewise for local "insns".
11843
11844 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11845
11846         * config/score/score.c (score_output_mi_thunk): Strengthen local
11847         "insn" from rtx to rtx_insn *.
11848         (score_prologue): Likewise.
11849
11850 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11851
11852         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11853         1 from rtx to rtx_insn *.
11854         (s390_emit_jump): Likewise for return type.
11855         (s390_emit_call): Likewise.
11856         (s390_load_got): Likewise.
11857
11858         * config/s390/s390.c (last_scheduled_insn): Likewise for this
11859         variable.
11860         (s390_match_ccmode): Likewise for param "insn".
11861         (s390_emit_jump): Likewise for return type.
11862         (s390_split_branches): Likewise for local "label".
11863         (struct constant): Strengthen field "label" from rtx to
11864         rtx_code_label *.
11865         (struct constant_pool): Likewise for field "label".  Strengthen
11866         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11867         rtx_insn *.
11868         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11869         insns.
11870         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11871         (s390_end_pool): Likewise.
11872         (s390_dump_pool): Likewise for local "insn".
11873         (s390_mainpool_start): Likewise.
11874         (s390_chunkify_start): Likewise.
11875         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11876         with insns.  Strengthen locals "label", "jump", "barrier", "next",
11877         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11878         (s390_chunkify_finish): Strengthen local "insn" from rtx to
11879         rtx_insn *.
11880         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11881         "jump", "label", "next_insn".
11882         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11883         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11884         "tbegin_insn".
11885         (s390_load_got): Likewise for return type and local "insns".
11886         (s390_save_gprs_to_fprs): Likewise for local "insn".
11887         (s390_restore_gprs_from_fprs): Likewise.
11888         (pass_s390_early_mach::execute): Likewise.
11889         (s390_emit_prologue): Likewise for local "insns".
11890         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11891         rtx_code_label *.
11892         (s390_emit_call): Strengthen return type and local "insn" from
11893         rtx to rtx_insn *.
11894         (s390_emit_tpf_eh_return): Likewise for local "insn".
11895         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11896         "next_insn", introducing locals "s_pat", "rpat" to allow this.
11897         (s390_fix_long_loop_prediction): Likewise for param "insn" and
11898         local "cur_insn".
11899         (s390_non_addr_reg_read_p): Likewise for param "insn".
11900         (find_cond_jump): Likewise for return type and param "insn".
11901         (s390_swap_cmp): Likewise for param "insn".
11902         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11903         "prev_insn", "next_insn".
11904         (s390_reorg): Likewise for locals "insn", "target".
11905         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11906         (s390_sched_variable_issue): For now, rename param "insn" to
11907         "uncast_insn", introducing a checked cast.
11908         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11909         insn.
11910         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11911         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
11912
11913 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11914
11915         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11916         param from rtx to rtx_insn *.
11917         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11918
11919 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11920
11921         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11922         4 from rtx to rtx_insn *.
11923         (rs6000_final_prescan_insn): Likewise for first param.
11924         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11925         local "insn".
11926         (rs6000_get_some_local_dynamic_name): Likewise.
11927         (output_cbranch): Likewise for param "insn".
11928         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11929         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11930         (rs6000_emit_allocate_stack): Likewise for local "insn".
11931         (load_cr_save): Likewise.
11932         (restore_saved_cr): Likewise.
11933         (restore_saved_lr): Likewise.
11934         (emit_cfa_restores): Likewise.
11935         (rs6000_output_function_epilogue): Likewise for locals "insn" and
11936         "deleted_debug_label".
11937         (rs6000_output_mi_thunk): Likewise for local "insn".
11938         (rs6000_final_prescan_insn): Likewise for param "insn".
11939
11940 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11941
11942         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11943         Strengthen param "insn" from rtx to rtx_insn *.
11944         * config/picochip/picochip.c (picochip_current_prescan_insn):
11945         Likewise for this variable.
11946         (picochip_final_prescan_insn): Likewise for param "insn".
11947
11948 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11949
11950         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11951         from rtx to rtx_insn *.
11952         (pa_output_indirect_call): Likewise.
11953         (pa_adjust_insn_length): Likewise.
11954         (pa_attr_length_millicode_call): Likewise.
11955         (pa_attr_length_call): Likewise.
11956         (pa_attr_length_indirect_call): Likewise.
11957
11958         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11959         "insn".
11960         (pa_attr_length_millicode_call): Likewise.
11961         (pa_attr_length_call): Likewise.
11962         (pa_output_call): Likewise.
11963         (pa_attr_length_indirect_call): Likewise.
11964         (pa_output_indirect_call): Likewise.
11965
11966 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11967
11968         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11969         Strengthen first param from rtx to rtx_insn *.
11970         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11971         param "insn".
11972
11973 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11974
11975         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11976         type from rtx to rtx_insn *.
11977         (mips_expand_call): Likewise.
11978         (mips_adjust_insn_length): Likewise for first param.
11979         (mips_output_conditional_branch): Likewise.
11980         (mips_output_order_conditional_branch): Likewise.
11981         (mips_final_prescan_insn): Likewise.
11982
11983         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11984         rtx_insn * for the SEQUENCE case.
11985         (SEQ_END): Likewise.
11986         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11987         (mips_emit_call_insn): Likewise, also for local "insn".
11988         (mips16_gp_pseudo_reg): Likewise for local "scan".
11989         (mips16_build_call_stub): Likewise for return type and for local
11990         "insn".  Introduce a new local "pattern" so that "insn" can indeed
11991         be an insn.
11992         (mips_expand_call): Strengthen return type and local "insn" from
11993         rtx to rtx_insn *.
11994         (mips_block_move_loop): Strengthen local "label" from rtx to
11995         rtx_code_label *.
11996         (mips_expand_synci_loop): Likewise for locals "label",
11997         "end_label".
11998         (mips_set_frame_expr): Strengthen local "insn" from rtx to
11999         rtx_insn *.
12000         (mips16e_collect_argument_saves): Likewise for locals "insn",
12001         "next".
12002         (mips_find_gp_ref): Likewise for param of callback for "pred"
12003         param, and for local "insn".
12004         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
12005         (mips_insn_has_flexible_gp_ref_p): Likewise.
12006         (mips_epilogue_emit_cfa_restores): Likewise for return type and
12007         local "insn".
12008         (mips_epilogue_set_cfa): Likewise for local "insn".
12009         (mips_expand_epilogue): Likewise.
12010         (mips_adjust_insn_length): Likewise for param "insn".
12011         (mips_output_conditional_branch): Likewise.
12012         (mips_output_order_conditional_branch): Likewise.
12013         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
12014         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
12015         "falu2_turn_enabled_insn".
12016         (mips_builtin_branch_and_move): Strengthen locals "true_label",
12017         "done_label" from rtx to rtx_code_label *.
12018         (struct mips16_constant): Likewise for field "label".
12019         (mips16_add_constant): Likewise for return type.
12020         (mips16_emit_constants_1): Strengthen return type and param "insn"
12021         from rtx to rtx_insn *.
12022         (mips16_emit_constants): Likewise for param "insn".
12023         (mips16_insn_length): Likewise.
12024         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
12025         to rtx_code_label *.
12026         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
12027         from rtx to rtx_insn *.
12028         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
12029         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
12030         (r10k_simplify_address): Strengthen param "insn" and local
12031         "def_insn" from rtx to rtx_insn *.
12032         (r10k_safe_address_p): Strengthen param "insn" from rtx to
12033         rtx_insn *.
12034         (r10k_needs_protection_p_1): Update target type of cast of data
12035         from to rtx to rtx_insn *.
12036         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
12037         rtx * to rtx_insn **.
12038         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
12039         rtx_insn *.
12040         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
12041         (mips_call_expr_from_insn): Likewise for param "insn".
12042         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
12043         (mips_find_pic_call_symbol): Likewise for param "insn".
12044         (mips_annotate_pic_calls): Likewise for local "insn".
12045         (mips_sim_insn): Likewise for this variable.
12046         (struct mips_sim): Likewise for field "insn" within elements of
12047         last_set array.
12048         (mips_sim_wait_reg): Likewise for param "insn".
12049         (mips_sim_wait_regs): Likewise.
12050         (mips_sim_wait_units): Likewise.
12051         (mips_sim_wait_insn): Likewise.
12052         (mips_sim_issue_insn): Likewise.
12053         (mips_sim_finish_insn): Likewise.
12054         (mips_seq_time): Likewise for param "seq" and local "insn".
12055         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
12056         locals "first", "second".
12057         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
12058         "last", "last2", "next".
12059         (mips_avoid_hazard): Likewise for params "after", "insn".
12060         (mips_reorg_process_insns): Likewise for locals "insn",
12061         "last_insn", "subinsn", "next_insn".
12062         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
12063         (mips16_split_long_branches): Likewise for locals "insn" "jump",
12064         "jump_sequence".
12065         (mips_output_mi_thunk): Likewise for local "insn".
12066         (mips_final_prescan_insn): Likewise for param "insn".
12067
12068 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12069
12070         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
12071         Strengthen return type and local "insns" from rtx to rtx_insn *.
12072         (microblaze_legitimize_tls_address): Likewise for local "insns".
12073         (microblaze_block_move_loop): Strengthen local "label" from rtx
12074         to rtx_code_label *.
12075         (microblaze_expand_prologue): Strengthen two locals named "insn"
12076         from rtx to rtx_insn *.
12077         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
12078         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
12079         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
12080         to rtx_code_label *.
12081
12082 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12083
12084         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
12085         param from rtx to rtx_insn *.
12086         (mep_reuse_lo): Likewise for third param.
12087         (mep_use_post_modify_p): Likewise for first param.
12088         (mep_core_address_length): Likewise.
12089         (mep_cop_address_length): Likewise.
12090         (mep_final_prescan_insn): Likewise.
12091         (mep_store_data_bypass_p): Likewise for both params.
12092         (mep_mul_hilo_bypass_p): Likewise.
12093         (mep_ipipe_ldc_p): Likewise for param.
12094
12095         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
12096         (mep_rewrite_mult): Likewise.
12097         (mep_rewrite_mulsi3): Likewise.
12098         (mep_rewrite_maddsi3): Likewise.
12099         (mep_reuse_lo_p_1): Likewise.
12100         (mep_reuse_lo_p): Likewise.
12101         (mep_frame_expr): Likewise.
12102         (mep_make_parallel): Likewise for both params.
12103         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
12104         local "insn".
12105         (mep_use_post_modify_p): Likewise for param "insn".
12106         (mep_core_address_length): Likewise.
12107         (mep_cop_address_length): Likewise.
12108         (mep_reg_set_in_function): Likewise for local "insn".
12109         (mep_asm_without_operands_p): Likewise.
12110         (F): Likewise for return type and param "x".
12111         (add_constant): Likewise for local "insn".
12112         (maybe_dead_move): Likewise for return type and local "insn".
12113         (mep_expand_prologue): Likewise for local "insn".
12114         (mep_final_prescan_insn): Likewise for param "insn".
12115         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
12116         "next", "follow", "x".
12117         (mep_insert_repeat_label_last): Likewise for return type, param
12118         "last_insn", and locals "next", "prev".  Strengthen param "label"
12119         from rtx to rtx_code_label *.
12120         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
12121         rtx_insn *.
12122         (struct mep_doloop_end): Likewise for fields "insn" and
12123         "fallthrough".
12124         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
12125         Strengthen local "repeat_label" from rtx to rtx_code_label *.
12126         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
12127         rtx_insn *.
12128         (mep_invert_branch): Likewise for params "insn" and "after".
12129         (mep_reorg_erepeat): Likewise for param "insns" and locals
12130         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
12131         "l" from rtx to rtx_code_label *.
12132         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
12133         from rtx to rtx_insn *.
12134         (mep_reorg_addcombine): Likewise for param "insns" and locals
12135         "i", "n".
12136         (add_sp_insn_p): Likewise for param "insn".
12137         (mep_reorg_noframe): Likewise for param "insns" and locals
12138         "start_frame_insn", "end_frame_insn", "next".
12139         (mep_reorg): Likewise for local "insns".
12140         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
12141         cast.
12142         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
12143         (mep_mul_hilo_bypass_p): Likewise.
12144         (mep_ipipe_ldc_p): Likewise for param "insn".
12145         (mep_make_bundle): Likewise for return type, param "cop" and local
12146         "insn", splitting out the latter into a new local "seq" for when it
12147         is a SEQUENCE rather than an insn.
12148         (core_insn_p): Likewise for param "insn".
12149         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
12150         "last", "first", "note", "prev", "core_insn".
12151
12152 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12153
12154         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
12155         rtx to rtx_insn *.
12156         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
12157         (m68k_final_prescan_insn): Likewise for first param.
12158
12159         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
12160         (m68k_set_frame_related): Likewise for param "insn".
12161         (output_btst): Likewise for param "insn".
12162         (m68k_final_prescan_insn): Likewise.
12163         (m68k_move_to_reg): Likewise for local "insn".
12164         (m68k_call_tls_get_addr): Likewise for local "insns".
12165         (m68k_call_m68k_read_tp): Likewise.
12166         (strict_low_part_peephole_ok): Likewise for param "first_insn".
12167         (m68k_output_mi_thunk): Likewise for local "insn".
12168
12169 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12170
12171         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
12172         first param from rtx to rtx_insn *.
12173         (iq2000_adjust_insn_length): Likewise.
12174         (iq2000_output_conditional_branch): Likewise.
12175         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
12176         "insn" and local "nop_insn".
12177         (iq2000_annotate_frame_insn): Likewise for param "insn".
12178         (iq2000_expand_prologue): Likewise for both locals "insn".
12179         (iq2000_adjust_insn_length): Likewise for param "insn".
12180         (iq2000_output_conditional_branch): Likewise.
12181
12182 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12183
12184         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
12185         "insns" from rtx to rtx_insn *.
12186         (ia64_emit_cond_move): Likewise for locals "insn", "first".
12187         (struct spill_fill_data): Likewise for field "init_after" and for
12188         elements of array field "prev_insn".
12189         (spill_restore_mem): Likewise for locals "insn", "first".
12190         (do_spill): Likewise for local "insn".
12191         (do_restore): Likewise.
12192         (ia64_expand_prologue): Likewise.
12193         (ia64_expand_epilogue): Likewise.
12194         (emit_insn_group_barriers): Likewise for locals "insn",
12195         "last_label".
12196         (emit_all_insn_group_barriers): Likewise for locals "insn",
12197         "last".
12198         (dfa_stop_insn): Likewise for this global.
12199         (dfa_pre_cycle_insn): Likewise.
12200         (ia64_nop): Likewise.
12201         (final_emit_insn_group_barriers): Likewise for locals "insn",
12202         "last".
12203         (emit_predicate_relation_info): Likewise for locals "head", "n",
12204         "insn", "b", "a".
12205         (ia64_reorg): Likewise for local "insn".
12206         (ia64_output_mi_thunk): Likewise.
12207         (expand_vec_perm_interleave_2): Likewise for local "seq".
12208
12209 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12210
12211         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
12212         param 1 "insn" from rtx to rtx_insn *.
12213         (ix86_use_lea_for_mov): Likewise.
12214         (ix86_avoid_lea_for_addr): Likewise.
12215         (ix86_split_lea_for_addr): Likewise.
12216         (ix86_lea_for_add_ok): Likewise.
12217         (ix86_output_call_insn): Likewise.
12218
12219         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
12220         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
12221         (ix86_output_function_epilogue): Likewise for locals "insn",
12222         "deleted_debug_label".
12223         (legitimize_tls_address): Likewise for local "insn".
12224         (get_some_local_dynamic_name): Likewise.
12225         (increase_distance): Likewise for params "prev", "next".
12226         (distance_non_agu_define_in_bb): Likewise for params "insn",
12227         "start" and locals "prev", "next".
12228         (distance_non_agu_define): Likewise for param "insn".
12229         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
12230         locals "next", "prev".
12231         (distance_agu_use): Likewise for param "insn".
12232         (ix86_lea_outperforms): Likewise.
12233         (ix86_ok_to_clobber_flags): Likewise.
12234         (ix86_avoid_lea_for_add): Likewise.
12235         (ix86_use_lea_for_mov): Likewise.
12236         (ix86_avoid_lea_for_addr): Likewise.
12237         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
12238         (ix86_split_lea_for_addr): Likewise for param "insn".
12239         (ix86_lea_for_add_ok): Likewise for param "insn".
12240         (ix86_expand_carry_flag_compare): Likewise for local
12241         "compare_seq".
12242         (ix86_expand_int_movcc): Likewise.
12243         (ix86_output_call_insn): Likewise for param "insn".
12244         (ix86_output_call_insn): Likewise for local "i".
12245         (x86_output_mi_thunk): Introduce local "insn", using it in place
12246         of "tmp" when dealing with insns.
12247         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
12248         "start".
12249         (ix86_pad_returns): Likewise for locals "ret", "prev".
12250         (ix86_count_insn_bb): Likewise for local "insn".
12251         (ix86_pad_short_function): Likewise for locals "ret", "insn".
12252         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
12253         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
12254         (expand_vec_perm_interleave2): Likewise for local "seq".
12255         (expand_vec_perm_vperm2f128_vblend): Likewise.
12256         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
12257         call to for_each_rtx with for_each_rtx_in_insn.
12258
12259 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12260
12261         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
12262         "label" from rtx to rtx_code_label *.
12263         (ix86_expand_prologue): Likewise.
12264         (ix86_expand_split_stack_prologue): Likewise for locals "label",
12265         "varargs_label".
12266         (ix86_split_idivmod): Likewise for locals "end_label" and
12267         "qimode_label".
12268         (ix86_expand_branch): Likewise for local "label2".
12269         (ix86_expand_aligntest): Likewise for return type and local "label".
12270         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
12271         "top_label".
12272         (expand_movmem_epilogue): Likewise for the various locals named
12273         "label".
12274         (expand_setmem_epilogue): Likewise.
12275         (expand_small_movmem_or_setmem): Likewise for local "label".
12276         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12277         Strengthen param "done_label" from rtx * to rtx_code_label **.
12278         Strengthen locals "loop_label" and "label" from rtx to
12279         rtx_code_label *.
12280         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12281         Likewise for locals "loop_label", "label".
12282         (ix86_expand_set_or_movmem): Likewise for locals "label",
12283         "jump_around_label", "hot_label".
12284         (ix86_expand_strlensi_unroll_1): Likewise for locals
12285         "align_2_label", align_3_label", "align_4_label", "end_0_label",
12286         "end_2_label".
12287         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
12288         (void ix86_emit_i387_log1p): Likewise for locals "label1",
12289         "label2", "jump_label".
12290         (ix86_expand_sse_compare_and_jump): Likewise for return type and
12291         local "label".
12292         (ix86_expand_lfloorceil): Likewise for local "label".
12293         (ix86_expand_rint): Likewise.
12294         (ix86_expand_floorceildf_32): Likewise.
12295         (ix86_expand_floorceil): Likewise.
12296         (ix86_expand_rounddf_32): Likewise.
12297         (ix86_expand_trunc): Likewise.
12298         (ix86_expand_truncdf_32): Likewise.
12299         (ix86_expand_round): Likewise.
12300
12301 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12302
12303         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
12304         first param from rtx to rtx_insn *.
12305         (h8300_insn_length_from_table): Likewise.
12306         * config/h8300/h8300.c (F): Likewise for return type and param
12307         "x".
12308         (Fpa): Add a checked cast to rtx_insn *.
12309         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
12310         rtx_insn *.
12311         (final_prescan_insn): Likewise for param "insn".
12312         (h8300_binary_length): Likewise.
12313         (h8300_insn_length_from_table): Likewise.
12314
12315 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12316
12317         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
12318         Strengthen first param "insn" from rtx to rtx_insn *.
12319
12320         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
12321         Likewise.
12322         (frame_insn): Likewise for return type.  Introduce local "insn"
12323         for use in place of local "x" for use as an rtx_insn *.
12324         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
12325         (epiphany_expand_prologue): Likewise for local "insn".
12326         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
12327         * config/epiphany/resolve-sw-modes.c
12328         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
12329         "seq".
12330
12331 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12332
12333         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
12334         param from rtx to rtx_insn *.
12335         (c6x_final_prescan_insn): Likewise for first param.
12336
12337         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
12338         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
12339         (c6x_expand_compare): Strengthen local "insns" from rtx to
12340         rtx_insn *.
12341         (c6x_get_unit_specifier): Likewise for param "insn".
12342         (c6x_print_unit_specifier_field): Likewise.
12343         (c6x_final_prescan_insn): Likewise.
12344         (emit_add_sp_const): Likewise for local "insn".
12345         (c6x_expand_prologue): Likewise.
12346
12347 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12348
12349         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
12350         param 1 from rtx to rtx_insn *.
12351         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
12352         the various locals named "insn".
12353         (expand_epilogue_reg_restore): Likewise.
12354         (frame_related_constant_load): Likewise.
12355         (add_to_reg): Likewise.
12356         (emit_link_insn): Likewise.
12357         (do_link): Likewise.
12358         (expand_interrupt_handler_prologue): Likewise.
12359         (branch_dest): Likewise for param "branch".
12360         (asm_conditional_branch): Likewise for param "insn".
12361         (gen_one_bundle): Likewise for elements of param "slot" and local
12362         "t".
12363         (bfin_gen_bundles): Likewise for locals "insn", "next" and
12364         elements of local "slot".
12365         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
12366         "queue", "next_queue", "prev".
12367         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
12368         (add_sched_insns_for_speculation): Likewise for local "insn".
12369
12370 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12371
12372         * config/avr/avr-protos.h (output_movqi): Strengthen first param
12373         from rtx to rtx_insn *.
12374         (output_movhi): Likewise.
12375         (output_movsisf): Likewise.
12376         (avr_out_tstsi): Likewise.
12377         (avr_out_tsthi): Likewise.
12378         (avr_out_tstpsi): Likewise.
12379         (avr_out_compare): Likewise.
12380         (avr_out_compare64): Likewise.
12381         (avr_out_movpsi): Likewise.
12382         (ashlqi3_out): Likewise.
12383         (ashlhi3_out): Likewise.
12384         (ashlsi3_out): Likewise.
12385         (ashrqi3_out): Likewise.
12386         (ashrhi3_out): Likewise.
12387         (ashrsi3_out): Likewise.
12388         (lshrqi3_out): Likewise.
12389         (lshrhi3_out): Likewise.
12390         (lshrsi3_out): Likewise.
12391         (avr_out_ashlpsi3): Likewise.
12392         (avr_out_ashrpsi3): Likewise.
12393         (avr_out_lshrpsi3): Likewise.
12394         (avr_out_fract): Likewise.
12395         (avr_out_sbxx_branch): Likewise.
12396         (avr_out_round): Likewise.
12397         (avr_out_xload): Likewise.
12398         (avr_out_movmem): Likewise.
12399         (adjust_insn_length): Likewise.
12400         (avr_out_lpm): Likewise.
12401         (reg_unused_after): Likewise.
12402         (_reg_unused_after): Likewise.
12403         (avr_jump_mode): Likewise for second param.
12404         (jump_over_one_insn): Likewise for first param.
12405         (avr_final_prescan_insn): Likewise.
12406         (out_shift_with_cnt): Likewise for second param.
12407
12408         * config/avr/avr.c (get_sequence_length): Likewise for param
12409         "insns" and local "insn".
12410         (emit_push_byte): Likewise for local "insn".
12411         (emit_push_sfr): Likewise.
12412         (avr_prologue_setup_frame): Likewise for locals "insn",
12413         "fp_plus_insns", "sp_plus_insns".
12414         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
12415         "sp_plus_insns".
12416         (avr_jump_mode): Likewise for param "insn".
12417         (avr_final_prescan_insn): Likewise.
12418         (avr_find_unused_d_reg): Likewise.
12419         (avr_out_lpm_no_lpmx): Likewise.
12420         (avr_out_lpm): Likewise.
12421         (avr_out_xload): Likewise.
12422         (output_movqi): Likewise.
12423         (output_movhi): Likewise.
12424         (out_movqi_r_mr): Likewise.
12425         (out_movhi_r_mr): Likewise.
12426         (out_movsi_r_mr): Likewise.
12427         (out_movsi_mr_r): Likewise.
12428         (output_movsisf): Likewise.
12429         (avr_out_load_psi): Likewise.
12430         (avr_out_store_psi): Likewise.
12431         (avr_out_movpsi): Likewise.
12432         (out_movqi_mr_r): Likewise.
12433         (avr_out_movhi_mr_r_xmega): Likewise.
12434         (out_movhi_mr_r): Likewise.
12435         (compare_condition): Likewise for param "insn" and local "next".
12436         (compare_sign_p): Likewise for param "insn".
12437         (compare_diff_p): Likewise.
12438         (compare_eq_p): Likewise.
12439         (avr_out_compare): Likewise.
12440         (avr_out_compare64): Likewise.
12441         (avr_out_tsthi): Likewise.
12442         (avr_out_tstpsi): Likewise.
12443         (avr_out_tstsi): Likewise.
12444         (out_shift_with_cnt): Likewise.
12445         (ashlqi3_out): Likewise.
12446         (ashlhi3_out): Likewise.
12447         (avr_out_ashlpsi3): Likewise.
12448         (ashlsi3_out): Likewise.
12449         (ashrqi3_out): Likewise.
12450         (ashrhi3_out): Likewise.
12451         (avr_out_ashrpsi3): Likewise.
12452         (ashrsi3_out): Likewise.
12453         (lshrqi3_out): Likewise.
12454         (lshrhi3_out): Likewise.
12455         (avr_out_lshrpsi3): Likewise.
12456         (lshrsi3_out): Likewise.
12457         (avr_out_fract): Likewise.
12458         (avr_out_round): Likewise.
12459         (avr_adjust_insn_length): Likewise.
12460         (reg_unused_after): Likewise.
12461         (_reg_unused_after): Likewise.
12462         (avr_compare_pattern): Likewise.
12463         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
12464         and locals "branch1", "branch2", "insn2", "jump".
12465         (avr_reorg): Likewise for local "insn".
12466         (avr_2word_insn_p): Likewise for param "insn".
12467         (jump_over_one_insn_p): Likewise.
12468         (avr_out_sbxx_branch): Likewise.
12469         (avr_out_movmem): Likewise.
12470
12471 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12472
12473         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
12474         param from rtx to rtx_insn *.
12475         (thumb1_final_prescan_insn): Likewise.
12476         (thumb2_final_prescan_insn): Likewise.
12477
12478         * config/arm/arm.c (emit_set_insn): Strengthen return type from
12479         rtx to rtx_insn *.
12480         (struct minipool_node): Likewise for field "insn".
12481         (dump_minipool): Likewise for param "scan".
12482         (create_fix_barrier): Likewise for local "from".  Strengthen local
12483         "label" from rtx to rtx_code_label *.
12484         (push_minipool_barrier): Strengthen param "insn" from rtx to
12485         rtx_insn *.
12486         (push_minipool_fix): Likewise.
12487         (note_invalid_constants): Likewise.
12488         (thumb2_reorg): Likewise for local "insn".
12489         (arm_reorg): Likewise.
12490         (thumb2_final_prescan_insn): Likewise for param
12491         "insn" and local "first_insn".
12492         (arm_final_prescan_insn): Likewise for param "insn" and locals
12493         "start_insn", "this_insn".
12494         (arm_debugger_arg_offset): Likewise for param "insn".
12495         (thumb1_emit_multi_reg_push): Likewise for return type and local
12496         "insn".
12497         (thumb1_final_prescan_insn): Likewise for param "insn".
12498         (thumb_far_jump_used_p): Likewise for local "insn".
12499         (thumb1_expand_prologue): Likewise.
12500         (arm_expand_epilogue_apcs_frame): Likewise.
12501         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
12502         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
12503         from rtx to rtx_code_label *.
12504         (arm_split_atomic_op): Likewise for local "label".
12505         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
12506
12507 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12508
12509         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
12510         first param from rtx to rtx_insn *.
12511         (arc_verify_short): Likewise.
12512         (arc_short_long): Likewise.
12513         (arc_need_delay): Likewise.
12514
12515         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
12516         "target_insn".
12517         (arc_ccfsm_advance): Likewise for param "insn" and locals
12518         "start_insn", "this_insn".
12519         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
12520         (arc_ccfsm_post_advance): Likewise for param "insn".
12521         (arc_next_active_insn): Likewise for return type and param "insn".
12522         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
12523         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
12524         (output_short_suffix): Likewise for local "insn".
12525         (arc_final_prescan_insn): Likewise for param "insn".  Remove
12526         now-redundant checked cast.
12527         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
12528         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
12529         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
12530         for use where lc_set became an insn.
12531         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
12532         rtx to rtx_insn *.
12533         (arc_get_insn_variants): Likewise for local "prev".
12534         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
12535         "next".
12536         (arc_predicate_delay_insns): Likewise for local "insn".
12537         (arc_pad_return): Likewise for local "prev".  For now, add a
12538         checked cast when extracting the insn from "final_sequence".
12539         (arc_short_long): Likewise for param "insn".
12540         (arc_need_delay): Likewise for param "insn" and local "next".
12541         (arc_label_align): Likewise for locals "prev", "next".
12542
12543 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12544
12545         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
12546         "insn" from rtx to rtx_insn *.
12547         (alpha_gp_save_rtx): Likewise for local "seq".
12548         (alpha_instantiate_decls): Likewise for local "top".
12549         (get_some_local_dynamic_name): Likewise for local "insn".
12550         (alpha_does_function_need_gp): Likewise.
12551         (set_frame_related_p): Likewise for return type and for locals
12552         "seq" and "insn".
12553         (emit_frame_store_1): Likewise for local "insn".
12554         (alpha_expand_prologue): Likewise for locals "insn", "seq".
12555         (alpha_end_function): Likewise for local "insn".
12556         (alpha_output_mi_thunk_osf): Likewise.
12557         (alphaev4_insn_pipe): Likewise for param "insn".
12558         (alphaev5_insn_pipe): Likewise.
12559         (alphaev4_next_group): Likewise for return type and param 1
12560         "insn".
12561         (alphaev5_next_group): Likewise.
12562         (alpha_align_insns_1): Likewise for return type and param 1 of
12563         callback param "next_group", and for locals "i", "next", "prev",
12564         "where", "where2", "insn".
12565
12566 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12567
12568         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
12569         rather than modifying the stmt.
12570
12571 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12572
12573         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
12574         cgraph_state conversion.
12575
12576 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12577
12578         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12579         Strengthen local "insns" from rtx to rtx_insn *.
12580         (aarch64_set_frame_expr): Likewise for local "insn".
12581         (aarch64_save_or_restore_fprs): Likewise.
12582         (aarch64_save_or_restore_callee_save_registers): Likewise.
12583         (aarch64_expand_prologue): Likewise.
12584         (aarch64_expand_epilogue): Likewise.
12585         (aarch64_output_mi_thunk): Likewise.
12586         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
12587         "label2" from rtx to rtx_code_label *.
12588         (aarch64_split_atomic_op): Likewise for local "label".
12589
12590 2014-08-25  Martin Liska  <mliska@suse.cz>
12591
12592         * cgraph.h (symtab_node):
12593         (bool needed_p (void)): created from decide_is_symbol_needed
12594         (bool referred_to_p (void)): created from referred_to_p
12595         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
12596         * cgraph.h (cgraph_node):
12597         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
12598         (void expand (void)): created from expand_function
12599         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
12600         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
12601         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
12602         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
12603         * cgraph.h (varpool_node):
12604         (static void add (tree decl): created from varpool_add_new_variable
12605         * cgraph.h (cgraph_edge):
12606         void remove (void);
12607         (void remove_caller (void)): created from cgraph_edge_remove_caller
12608         (void remove_callee (void)): created from cgraph_edge_remove_callee
12609         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
12610           created from cgraph_set_call_stmt
12611         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
12612         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
12613         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
12614           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
12615         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
12616           created from cgraph_speculative_call_info
12617         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
12618           int freq_scale, bool update_original)): created from cgraph_clone_edge
12619         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
12620         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
12621         (bool recursive_p (void)): created from cgraph_edge_recursive_p
12622         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
12623         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
12624         (static void rebuild_references (void)): created from cgraph_rebuild_references
12625         * cgraph.h (symbol_table):
12626         (create_reference): renamed from add_reference
12627         (maybe_create_reference): renamed from maybe_add_reference
12628         (void register_symbol (symtab_node *node)): new function
12629         (void clear_asm_symbols (void)): new function
12630         (void unregister (symtab_node *node)): new function
12631         (void release_symbol (cgraph_node *node, int uid)): new function
12632         (cgraph_node * allocate_cgraph_symbol (void)): new function
12633         (void initialize (void)): created from cgraph_init
12634         (symtab_node *first_symbol (void)):new function
12635         (asm_node *first_asm_symbol (void)):new function
12636         (symtab_node *first_defined_symbol (void)):new function
12637         (varpool_node *first_variable (void)):new function
12638         (varpool_node *next_variable (varpool_node *node)):new function
12639         (varpool_node *first_static_initializer (void)):new function
12640         (varpool_node *next_static_initializer (varpool_node *node)):new function
12641         (varpool_node *first_defined_variable (void)):new function
12642         (varpool_node *next_defined_variable (varpool_node *node)):new function
12643         (cgraph_node *first_defined_function (void)):new function
12644         (cgraph_node *next_defined_function (cgraph_node *node)):new function
12645         (cgraph_node *first_function (void)):new function
12646         (cgraph_node *next_function (cgraph_node *node)):new function
12647         (cgraph_node *first_function_with_gimple_body (void)):new function
12648         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
12649         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
12650           created from symtab_remove_unreachable_nodes
12651         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12652         (void process_new_functions (void)): created from cgraph_process_new_functions
12653         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12654         (bool output_variables (void)): created from varpool_node::output_variables
12655         (void output_asm_statements (void)): created from output_asm_statements
12656         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12657         (void compile (void)): created from compile
12658         (void output_weakrefs (void)): created from output_weakrefs
12659         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12660         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12661           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12662         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12663         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12664           created from cgraph_next_function_with_gimple_body
12665         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12666           created from cgraph_remove_edge_removal_hook
12667         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12668           created from cgraph_add_node_removal_hook
12669         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12670           created from cgraph_remove_node_removal_hook
12671         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12672           created from varpool_add_node_removal_hook
12673         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12674           created from varpool_remove_node_removal_hook
12675         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12676           created from cgraph_add_function_insertion_hook
12677         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12678           created from cgraph_remove_function_insertion_hook
12679         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12680           created from varpool_add_variable_insertion_hook
12681         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12682           created from varpool_remove_variable_insertion_hook
12683         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12684           created from cgraph_add_edge_duplication_hook
12685         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12686           created from cgraph_remove_edge_duplication_hook
12687         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12688           created from cgraph_add_node_duplication_hook
12689         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12690           created from cgraph_remove_node_duplication_hook
12691         (void call_edge_removal_hooks (cgraph_edge *e)):
12692           created from cgraph_call_edge_removal_hooks
12693         (void call_cgraph_insertion_hooks (cgraph_node *node)):
12694           created from call_function_insertion_hooks
12695         (void call_cgraph_removal_hooks (cgraph_node *node)):
12696           created from cgraph_call_node_removal_hooks
12697         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12698           created from cgraph_node::call_duplication_hooks
12699         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12700           created from cgraph_call_edge_duplication_hooks
12701         (void call_varpool_removal_hooks (varpool_node *node)):
12702           created from varpool_call_node_removal_hooks
12703         (void call_varpool_insertion_hooks (varpool_node *node)):
12704           created from varpool_call_variable_insertion_hooks
12705         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12706           created from insert_to_assembler_name_hash
12707         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12708           created from unlink_from_assembler_name_hash
12709         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12710           created from symtab_prevail_in_asm_name_hash
12711         (void symtab_initialize_asm_name_hash (void)):
12712           created from symtab_initialize_asm_name_hash
12713         (void change_decl_assembler_name (tree decl, tree name)):
12714           created from change_decl_assembler_name
12715         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12716         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12717           created from decl_assembler_name_hash
12718         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12719           created from decl_assembler_name_equal
12720         (static hashval_t hash_node_by_assembler_name (const void *p)):
12721           created from hash_node_by_assembler_name
12722         (static int eq_assembler_name (const void *p1, const void *p2)):
12723           created from eq_assembler_name
12724
12725 2014-08-25  Marek Polacek  <polacek@redhat.com>
12726
12727         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12728
12729 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
12730
12731         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12732         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12733         SWI1248_AVX512BW mode iterator.
12734
12735 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12736
12737         PR target/62111
12738         * config/sh/predicates.md (general_extend_operand): Disable
12739         TRUNCATE before reload completes.
12740
12741 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
12742
12743         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12744
12745 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
12746
12747         PR target/61996
12748         * config/sh/sh.opt (musermode): Allow negative form.
12749         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12750         targets that don't support it.
12751         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12752         Document -mno-usermode option.
12753
12754 2014-08-24  Kito Cheng  <kito@0xlab.org>
12755
12756         * system.h (CALLER_SAVE_PROFITABLE): Poison.
12757         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12758         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12759         * doc/tm.texi: Regenerate.
12760
12761 2014-08-24  Kito Cheng  <kito@0xlab.org>
12762
12763         * ira.c: Fix typo in comment.
12764
12765 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
12766
12767         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12768         Deprecate c++1y. Change language to reflect greater confidence in C++14.
12769
12770 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
12771
12772         PR target/62038
12773         * config/pa/pa.c (pa_output_function_epilogue): Don't set
12774         last_address when the current function is a thunk.
12775         (pa_asm_output_mi_thunk): When we don't have named sections or they
12776         are not being used, check that thunk can reach the stub table with a
12777         short branch.
12778
12779 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12780
12781         * web.c (union_match_dups): Strengthen param "insn" from rtx to
12782         rtx_insn *.
12783         (pass_web::execute): Likewise for local "insn".
12784
12785 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12786
12787         * var-tracking.c (struct micro_operation_def): Strengthen field
12788         "insn" from rtx to rtx_insn *.
12789         (struct emit_note_data_def): Likewise.
12790         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12791         (vt_stack_adjustments): Likewise for local "insn".
12792         (adjust_insn): Likewise for param "insn".
12793         (val_store): Likewise.
12794         (val_resolve): Likewise.
12795         (struct count_use_info): Likewise for field "insn".
12796         (log_op_type): Likewise for param "insn".
12797         (reverse_op): Likewise.
12798         (prepare_call_arguments): Likewise.
12799         (add_with_sets):  The initial param takes an insn, but we can't
12800         yet strengthen it from rtx to rtx_insn * since it's used as a
12801         cselib_record_sets_hook callback.  For now rename initial param
12802         from "insn" to "uncast_insn", and introduce a local "insn" of
12803         the stronger rtx_insn * type, with a checked cast.
12804         (compute_bb_dataflow): Strengthen local "insn" from rtx to
12805         rtx_insn *.
12806         (emit_note_insn_var_location): Likewise.
12807         (emit_notes_for_changes): Likewise.
12808         (emit_notes_for_differences): Likewise.
12809         (next_non_note_insn_var_location): Likewise for return type and
12810         for param "insn".
12811         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12812         (vt_initialize): Likewise for local "insn".
12813         (delete_debug_insns): Likewise for locals "insn" and "next".
12814
12815 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12816
12817         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12818         rtx_insn *.
12819         (mark_constant_pool): Likewise for local "insn".
12820
12821 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12822
12823         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12824         rtx to rtx_insn *.
12825         (dead_debug_promote_uses): Likewise.
12826         (dead_debug_insert_temp): Likewise.
12827
12828 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12829
12830         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12831         from const_rtx to const rtx_insn *.
12832         (store_killed_after): Likewise.  Strengthen locals "last", "act"
12833         from rtx to rtx_insn *.
12834         (store_killed_before): Strengthen param "insn" from const_rtx to
12835         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
12836         (find_moveable_store): Strengthen param "insn" from rtx to
12837         rtx_insn *.
12838         (compute_store_table): Likewise for local "insn".
12839         (insert_insn_start_basic_block): Likewise for param "insn" and
12840         locals "prev", "before", "insn".
12841         (insert_store): For now, add a checked cast to rtx_insn * on the
12842         result of gen_move_insn.
12843         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12844         to rtx_insn *.
12845         (replace_store_insn): Likewise.  For now, add a checked cast to
12846         rtx_insn * on the result of gen_move_insn.
12847
12848 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12849
12850         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12851         rtx_insn *.
12852         (expand_sjlj_dispatch_table): Likewise.
12853
12854 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12855
12856         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12857         "insn" from rtx to rtx_insn *.
12858
12859 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12860
12861         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12862         "insn" from rtx to rtx_insn *.
12863         (dup_block_and_redirect): Likewise for param 3 "before".
12864
12865         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12866         from rtx to rtx_insn *.
12867         (move_insn_for_shrink_wrap): Likewise.
12868         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12869         (dup_block_and_redirect): Likewise for param "before" and local
12870         "insn".
12871         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12872         "end".
12873         (convert_to_simple_return): Likewise for local "start".
12874
12875         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12876         Strengthen local "insn" from rtx to rtx_insn *, for use when
12877         invoking requires_stack_frame_p.
12878
12879 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12880
12881         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12882         rtx_insn *.
12883         (speculate_expr): Likewise for locals "orig_insn_rtx",
12884         "spec_insn_rtx".
12885         (eq_transformed_insns): Likewise for locals "i1", "i2".
12886         (check_for_new_jump): Likewise for return type and local "end".
12887         (find_new_jump): Likewise for return type and local "jump".
12888         (sel_split_edge): Likewise for local "jump".
12889         (sel_create_recovery_block): Likewise.
12890         (sel_redirect_edge_and_branch_force): Likewise.
12891         (sel_redirect_edge_and_branch): Likewise.
12892
12893 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12894
12895         * sel-sched.c (substitute_reg_in_expr): Strengthen local
12896         "new_insn" from rtx to rtx_insn *.
12897         (create_insn_rtx_with_rhs): Likewise for return type and for local
12898         "insn_rtx".
12899         (create_insn_rtx_with_lhs): Likewise.
12900         (create_speculation_check): Likewise for local "insn_rtx".
12901         (implicit_clobber_conflict_p): Likewise for local "insn".
12902         (get_expr_cost): Likewise.
12903         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12904         (move_cond_jump): Likewise for locals "next", "prev", "link",
12905         "head", "from", "to".
12906
12907 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12908
12909         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12910         "next" from rtx to rtx_insn *.
12911         (find_conditional_protection): Likewise for local "next".
12912         (is_conditionally_protected): Likewise for local "insn1".
12913         (is_pfree): Likewise for locals "insn1", "insn2".
12914
12915 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12916
12917         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12918         from rtx to rtx_insn *.
12919
12920         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12921         locals "insn1", "insn2" from rtx to rtx_insn *.
12922         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12923         locals "insn", "prev", "last_jump", "next_tail".
12924         (schedule_ebb): Likewise for params "head", "tail".
12925         (schedule_ebbs): Likewise for locals "tail", "head".
12926
12927         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12928         to rtx_insn on "last_insn" in one of the invocations of
12929         schedule_ebb.
12930
12931 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12932
12933         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12934         "elem", "insn" from rtx to rtx_insn *.
12935         (change_spec_dep_to_hard): Likewise.
12936         (get_back_and_forw_lists): Likewise for local "con".
12937         (sd_add_dep): Likewise for locals "elem", "insn".
12938         (sd_resolve_dep): Likewise for locals "pro", "con".
12939         (sd_unresolve_dep): Likewise.
12940         (sd_delete_dep): Likewise.
12941         (chain_to_prev_insn): Likewise for local "pro".
12942         (find_inc): Likewise for locals "pro", "con".
12943
12944 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12945
12946         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12947         to rtx_insn *.
12948         (reg_set_between_p): Strengthen local "insn" from const_rtx to
12949         const rtx_insn *.
12950         (modified_between_p): Strengthen local "insn" from rtx to
12951         rtx_insn *.
12952         (remove_reg_equal_equiv_notes_for_regno): Likewise.
12953         (keep_with_call_p): Strengthen local "i2" from const_rtx to
12954         const rtx_insn *.
12955
12956 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12957
12958         * resource.c (next_insn_no_annul): Strengthen local "next" from
12959         rtx to rtx_insn *.
12960         (mark_referenced_resources): Likewise for local "insn".
12961
12962 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12963
12964         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12965         to rtx_insn *.
12966         (find_reloads): Likewise for param 1.
12967         (subst_reloads): Likewise for sole param.
12968         (find_equiv_reg): Likwise for param 2.
12969         (regno_clobbered_p): Likwise for param 2.
12970         (reload): Likewise for param 1.
12971
12972         * caller-save.c (save_call_clobbered_regs): Strengthen local
12973         "insn" from rtx to rtx_insn *.
12974         (insert_one_insn): Likewise for local "insn".
12975
12976         * reload.c (this_insn): Likewise for this global.
12977         (find_reloads): Likewise for param "insn".
12978         (find_reloads_toplev): Likewise.
12979         (find_reloads_address): Likewise.
12980         (subst_reg_equivs): Likewise.
12981         (update_auto_inc_notes): Likewise.
12982         (find_reloads_address_1): Likewise.
12983         (find_reloads_subreg_address): Likewise.
12984         (subst_reloads): Likewise.
12985         (find_equiv_reg): Likewise, also for local "p".
12986         (regno_clobbered_p): Likewise for param "insn".
12987
12988         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12989         array.
12990         (spill_reg_store): Likewise for the elements of this array.
12991         (remove_init_insns): Likewise for local "equiv_insn".
12992         (will_delete_init_insn_p): Likewise for param "insn".
12993         (reload): Likewise for param ""first" and local "insn".
12994         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12995         rtx_insn *.
12996         (calculate_elim_costs_all_insns): Likewise.
12997         (delete_caller_save_insns): Likewise.
12998         (spill_failure): Likewise for param "insn".
12999         (delete_dead_insn): Likewise.
13000         (set_label_offsets): Likewise.
13001         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
13002         "prev_insn".
13003         (elimination_costs_in_insn): Likewise for param "insn".
13004         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
13005         when referring to an insn.
13006         (set_initial_label_offsets): Likewise.
13007         (set_offsets_for_label): Strengthen param "insn" from rtx to
13008         rtx_insn *.
13009         (init_eliminable_invariants): Likewise for param "first" and local
13010         "insn".
13011         (fixup_eh_region_note): Likewise for param "insn".
13012         (reload_as_needed): Likewise for locals "prev", "insn",
13013         "old_next", "old_prev", "next".
13014         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
13015         "last".
13016         (reload_inheritance_insn): Strengthen elements of this array from
13017         rtx to rtx_insn *.
13018         (failed_reload): Likewise for param "insn".
13019         (choose_reload_regs): Likewise for local "insn".  Replace use of
13020         NULL_RTX with NULL when referring to an insn.
13021         (input_reload_insns): Strengthen elements of this array from rtx
13022         to rtx_insn *.
13023         (other_input_address_reload_insns): Likewise for this global.
13024         (other_input_reload_insns): Likewise for this global.
13025         (input_address_reload_insns): Likwise for the elements of this
13026         array.
13027         (inpaddr_address_reload_insns): Likwise for the elements of this
13028         array.
13029         (output_reload_insns): Likewise for the elements of this array.
13030         (output_address_reload_insns): Likewise for the elements of this
13031         array.
13032         (outaddr_address_reload_insns): Likewise for the elements of this
13033         array.
13034         (operand_reload_insns): Likewise for this global.
13035         (other_operand_reload_insns): Likewise for this global.
13036         (other_output_reload_insns): Likewise for the elements of this
13037         array.
13038         (new_spill_reg_store): Likewise for the elements of this
13039         array.
13040         (emit_input_reload_insns): Likewise for locals "insn", "temp".
13041         Strengthen local "where" from rtx * to rtx_insn **.
13042         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
13043         from rtx to rtx_insn *.
13044         (do_input_reload): Likewise for local "insn".
13045         (do_output_reload): Likewise for local "insn".
13046         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
13047         (emit_insn_if_valid_for_reload): Likewise for return type and local
13048         "last".  Add checked cast to rtx_insn when returning "insn" since
13049         this has been through emit_insn.
13050         (gen_reload): Strengthen return type and locals "last", "insn", "set"
13051         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
13052         returning "insn" since it's been through
13053         emit_insn_if_valid_for_reload at this point.
13054         (delete_output_reload): Strengthen param "insn" and locals
13055         "output_reload_insn", "i2" from rtx to rtx_insn *.
13056         (delete_address_reloads): Likewise for params "dead_insn",
13057         "current_insn" and locals "prev", "next".
13058         (delete_address_reloads_1): Likewise for params "dead_insn",
13059         "current_insn" and locals "prev", "i2".
13060         (inc_for_reload): Likewise for locals "last", "add_insn".
13061         (add_auto_inc_notes): Strengthen param "insn" from rtx to
13062         rtx_insn *.
13063
13064         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
13065         param of this duplicate of the prototype from reload.h
13066
13067 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13068
13069         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
13070         rtx to rtx_insn *.
13071         (regstat_bb_compute_calls_crossed): Likewise.
13072
13073 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13074
13075         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
13076         to rtx_insn *.
13077         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
13078         with an insn.
13079         (regrename_analyze): Strengthen local "insn" from rtx to
13080         rtx_insn *.
13081         (scan_rtx_reg): Likewise for param "insn".
13082         (scan_rtx_address): Likewise.
13083         (scan_rtx): Likewise.
13084         (restore_operands): Likewise.
13085         (record_out_operands): Likewise.
13086         (build_def_use): Likewise for local "insn".  Replace use of
13087         NULL_RTX with NULL when dealing with an insn.
13088
13089 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13090
13091         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
13092         * reginfo.c (reg_scan): Likewise, also for local "insn".
13093         (reg_scan_mark_refs): Likewise for param "insn".
13094         (init_subregs_of_mode): Likewise for local "insn".
13095
13096 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13097
13098         * regcprop.c (struct queued_debug_insn_change): Strengthen field
13099         "insn" from rtx to rtx_insn *.
13100         (replace_oldest_value_reg): Likewise for param "insn".
13101         (replace_oldest_value_addr): Likewise.
13102         (replace_oldest_value_mem): Likewise.
13103         (apply_debug_insn_changes): Likewise for local "last_insn".
13104         (copyprop_hardreg_forward_1): Likewise for local "insn".
13105
13106 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13107
13108         * reg-stack.c (next_flags_user): Strengthen return type and param
13109         "insn" from rtx to rtx_insn *.
13110         (straighten_stack): Likewise for param "insn".
13111         (check_asm_stack_operands): Likewise.
13112         (remove_regno_note): Likewise.
13113         (emit_pop_insn): Likewise for return type, param "insn", local
13114         "pop_insn".
13115         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
13116         "limit" from rtx to rtx_insn *.
13117         (swap_to_top): Likewise for param "insn".
13118         (move_for_stack_reg): Likewise.
13119         (move_nan_for_stack_reg): Likewise.
13120         (swap_rtx_condition): Likewise.
13121         (compare_for_stack_reg): Likewise.
13122         (subst_all_stack_regs_in_debug_insn): Likewise.
13123         (subst_stack_regs_pat): Likewise, and local "insn2".
13124         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
13125         rtx_insn *.
13126         (subst_stack_regs): Likewise.
13127         (change_stack): Likewise.
13128         (convert_regs_1): Likewise for locals "insn", "next".
13129
13130 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13131
13132         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
13133         rtx_insn *.
13134         (combine_set_extension): Likewise for param "curr_insn".
13135         (transform_ifelse): Likewise for param "def_insn".
13136         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
13137         from vec<rtx> * to vec<rtx_insn *> *.
13138         (is_cond_copy_insn): Likewise for param "insn".
13139         (struct ext_state): Strengthen the four vec fields from vec<rtx>
13140         to vec<rtx_insn *>.
13141         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
13142         local "def_insn" from rtx to rtx_insn *.
13143         (get_sub_rtx): Likewise for param "def_insn".
13144         (merge_def_and_ext): Likewise.
13145         (combine_reaching_defs): Likewise.
13146         (add_removable_extension): Likewise for param "insn".
13147         (find_removable_extensions): Likewise for local "insn".
13148         (find_and_remove_re): Likewise for locals "curr_insn" and
13149         "def_insn".  Strengthen locals "reinsn_del_list" and
13150         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
13151
13152 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13153
13154         * recog.c (split_insn): Strengthen param "insn" and locals
13155         "first", "last" from rtx to rtx_insn *.
13156         (split_all_insns): Likewise for locals "insn", "next".
13157         (split_all_insns_noflow): Likewise.
13158
13159 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13160
13161         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
13162         const rtx_insn *.
13163         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13164         (debug_rtx_find): Likewise for param 1 "x".
13165
13166         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
13167         const_rtx to const rtx_insn *.  Likewise for local "insn".
13168         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13169         (debug_rtx_find): Likewise for param 1 "x".
13170         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
13171         from const_rtx to const rtx_insn * within the appropriate cases of
13172         the switch statement.
13173
13174         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
13175         Strengthen local "insns" from rtx to rtx_insn * since this is
13176         passed to a call to debug_rtx_list.
13177
13178 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13179
13180         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
13181         to rtx_insn *.
13182
13183         * function.c (stack_protect_epilogue): Add checked cast to
13184         rtx_insn for now when invoking predict_insn_def.
13185
13186         * predict.c (predict_insn): Strengthen param "insn" from rtx to
13187         rtx_insn *.
13188         (predict_insn_def): Likewise.
13189         (rtl_predict_edge): Likewise for local "last_insn".
13190         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
13191         const rtx_insn *.
13192         (combine_predictions_for_insn): Strengthen param "insn" from rtx
13193         to rtx_insn *.
13194         (bb_estimate_probability_locally): Likewise for local "last_insn".
13195         (expensive_function_p): Likewise for local "insn".
13196
13197         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
13198         local "jmp", since this is used when invoking predict_insn_def.
13199
13200 2014-08-22  Marek Polacek  <polacek@redhat.com>
13201
13202         PR c++/62199
13203         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
13204
13205 2014-08-22  Marek Polacek  <polacek@redhat.com>
13206
13207         PR c/61271
13208         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
13209         a comparison in parens.
13210         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
13211         in parens.
13212
13213 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13214
13215         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
13216         rtx_insn *.
13217
13218         * cprop.c (fis_get_condition): Likewise.
13219
13220         * postreload.c (reload_cse_regs): Likewise for param "first".
13221         (reload_cse_simplify): Likewise for param "insn".
13222         (reload_cse_regs_1): Likewise for local "insn".
13223         (reload_cse_simplify_set): Likewise for param "insn".
13224         (reload_cse_simplify_operands): Likewise.
13225         (struct reg_use): Likewise for field "insn".
13226         (reload_combine_purge_insn_uses): Likewise for param "insn".
13227         (fixup_debug_insns): Likewise for params "from", "to" and local
13228         "insn".
13229         (try_replace_in_use): Likewise for local "use_insn".
13230         (reload_combine_recognize_const_pattern): Likewise for param
13231         "insn" and locals "add_moved_after_insn", "use_insn".
13232         (reload_combine_recognize_pattern): Likewise for param "insn" and
13233         local "prev".
13234         (reload_combine): Likewise for locals "insn", "prev".
13235         (reload_combine_note_use): Likewise for param "insn".
13236         (move2add_use_add2_insn): Likewise.
13237         (move2add_use_add3_insn): Likewise.
13238         (reload_cse_move2add): Likewise, also for local "next".
13239         (move2add_note_store): Likewise for local "insn".
13240
13241 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13242
13243         * postreload-gcse.c (struct occr): Strengthen field "insn" from
13244         rtx to rtx_insn *.
13245         (struct unoccr): Likewise.
13246         (struct modifies_mem): Likewise.
13247         (alloc_mem): Likewise for local "insn".
13248         (insert_expr_in_table): Likewise for param "insn".
13249         (dump_expr_hash_table_entry): Likewise for local "insn".
13250         (oprs_unchanged_p): Likewise for param "insn".
13251         (load_killed_in_block_p): Likewise for local "setter".
13252         (record_last_reg_set_info): Likewise for param "insn".
13253         (record_last_reg_set_info_regno): Likewise.
13254         (record_last_mem_set_info): Likewise.
13255         (record_last_set_info): Likewise for local "last_set_insn".
13256         (record_opr_changes): Likewise for param "insn".
13257         (hash_scan_set): Likewise.
13258         (compute_hash_table): Likewise for local "insn".
13259         (get_avail_load_store_reg): Likewise for param "insn".
13260         (eliminate_partially_redundant_load): Likewise, also for locals
13261         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
13262         RTX for insns.
13263         (eliminate_partially_redundant_loads): Likewise for local "insn".
13264
13265 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13266
13267         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
13268         rtx to rtx_insn *.
13269         (expand_binop): Likewise for locals "entry_last", "last", "insns"
13270         (expand_twoval_unop): Likewise for locals entry_last", "last".
13271         (expand_twoval_binop): Likewise.
13272         (expand_twoval_binop_libfunc): Likewise for local "insns".
13273         (widen_leading): Likewise for local "last".
13274         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
13275         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
13276         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
13277         (expand_parity): Likewise for locals "last" and "seq".
13278         (expand_ffs): Likewise for local "seq".  Strengthen local
13279         "nonzero_label" from rtx to rtx_code_label *.
13280         (expand_absneg_bit): Strengthen local "insns" from rtx to
13281         rtx_insn *.
13282         (expand_unop_direct): Likewise for local "last".
13283         (expand_unop): Likewise for locals "last", "insns".
13284         (expand_abs_nojump): Likewise for local "last".
13285         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
13286         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
13287         rtx_insn *.
13288         (expand_copysign_absneg): Strengthen local "label" from rtx to
13289         rtx_code_label *.
13290         (expand_copysign_bit): Strengthen local "insns" from rtx to
13291         rtx_insn *.
13292         (struct no_conflict_data): Likewise for fields "first", "insn".
13293         (emit_libcall_block_1): Likewise for param "insns" and locals
13294         "next", "last", "insn".
13295         (emit_libcall_block): For now, add a checked cast to rtx_insn *
13296         on "insns" when invoking emit_libcall_block_1.  Ultimately we
13297         want to strengthen insns itself.
13298         (prepare_cmp_insn): Strengthen local "last" from rtx to
13299         rtx_insn *.
13300         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
13301         (prepare_float_lib_cmp): Likewise for local "insns".
13302         (emit_conditional_move): Likewise for local "last".
13303         (emit_conditional_add): Likewise.
13304         (have_sub2_insn): Likewise for local "seq".
13305         (expand_float): Likewise for local "insns".  Strengthen locals
13306         "label", "neglabel" from rtx to rtx_code_label *.
13307         (expand_fix): Likewise for locals "last", "insn", "insns" (to
13308         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
13309         (expand_fixed_convert): Likewise for local "insns" (to
13310         rtx_insn *).
13311         (expand_sfix_optab): Likewise for local "last".
13312         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
13313         to rtx_code_label *.
13314         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
13315         from rtx to rtx_insn *.
13316         (expand_atomic_fetch_op): Likewise for local "insn".
13317         (maybe_legitimize_operand_same_code): Likewise for local "last".
13318         (maybe_legitimize_operands): Likewise.
13319
13320 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13321
13322         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
13323         "insn" from rtx to rtx_insn *.
13324         (ps_rtl_insn): Likewise for return type.
13325         (doloop_register_get): Likewise for params "head", "tail" and
13326         locals "insn", "first_insn_not_to_check".
13327         (schedule_reg_move): Likewise for local "this_insn".
13328         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
13329         of gen_move_insn for now.
13330         (reset_sched_times): Strengthen local "insn" from rtx to
13331         rtx_insn *.
13332         (permute_partial_schedule): Likewise.
13333         (duplicate_insns_of_cycles): Likewise for local "u_insn".
13334         (dump_insn_location): Likewise for param "insn".
13335         (loop_canon_p): Likewise for local "insn".
13336         (sms_schedule): Likewise.
13337         (print_partial_schedule): Likewise.
13338         (ps_has_conflicts): Likewise.
13339
13340 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13341
13342         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
13343         "tailp" from rtx * to rtx_insn **.
13344
13345         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
13346         from rtx to rtx_insn *.
13347         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
13348         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
13349         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
13350         rtx to rtx_insn *.
13351         * modulo-sched.c (const_iteration_count): Strengthen return type
13352         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
13353         use of NULL_RTX with NULL when working with insns.
13354         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
13355         to rtx_insn *.
13356         (sms_schedule): Likewise.
13357         * sched-rgn.c (init_ready_list): Likewise, also for locals
13358         "src_head" and "src_next_tail".
13359         (compute_block_dependences): Likewise.
13360         (free_block_dependencies): Likewise.
13361         (debug_rgn_dependencies): Likewise.
13362         (free_rgn_deps): Likewise.
13363         (compute_priorities): Likewise.
13364         (schedule_region): Likewise.
13365         * sel-sched.c (find_ebb_boundaries): Likewise.
13366
13367         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
13368         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
13369
13370 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13371
13372         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
13373         from rtx to rtx_insn *.
13374         (new_seginfo): Likewise for param "insn".
13375         (create_pre_exit): Likewise for locals "last_insn",
13376         "before_return_copy", "return_copy".
13377         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
13378         "mode_set".
13379
13380 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13381
13382         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
13383         from rtx to rtx_insn *.
13384         (lra_push_insn): Likewise for 1st param.
13385         (lra_push_insn_and_update_insn_regno_info): Likewise.
13386         (lra_pop_insn): Likewise for return type.
13387         (lra_invalidate_insn_data): Likewise for 1st param.
13388         (lra_set_insn_deleted): Likewise.
13389         (lra_delete_dead_insn): Likewise.
13390         (lra_process_new_insns): Likewise for first 3 params.
13391         (lra_set_insn_recog_data): Likewise for 1st param.
13392         (lra_update_insn_recog_data): Likewise.
13393         (lra_set_used_insn_alternative): Likewise.
13394         (lra_invalidate_insn_regno_info): Likewise.
13395         (lra_update_insn_regno_info): Likewise.
13396         (lra_former_scratch_operand_p): Likewise.
13397         (lra_eliminate_regs_1): Likewise.
13398         (lra_get_insn_recog_data): Likewise.
13399
13400         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
13401         rtx to rtx_insn *.
13402
13403         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
13404         "mv1" and "mv2".
13405         (substitute_within_insn): New.
13406         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
13407         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
13408         Replace call to "substitute" with call to substitute_within_insn.
13409
13410         * lra-constraints.c (curr_insn): Strengthen from rtx to
13411         rtx_insn *.
13412         (get_equiv_with_elimination): Likewise for param "insn".
13413         (match_reload): Strengthen params "before" and "after" from rtx *
13414         to rtx_insn **.
13415         (emit_spill_move): Likewise for return type.  Add a checked cast
13416         to rtx_insn * on result of gen_move_insn for now.
13417         (check_and_process_move): Likewise for local "before".  Replace
13418         NULL_RTX with NULL when referring to insns.
13419         (process_addr_reg): Strengthen params "before" and "after" from
13420         rtx * to rtx_insn **.
13421         (insert_move_for_subreg): Likewise.
13422         (simplify_operand_subreg): Strengthen locals "before" and "after"
13423         from rtx to rtx_insn *.
13424         (process_address_1): Strengthen params "before" and "after" from
13425         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
13426         rtx to rtx_insn *.
13427         (process_address): Strengthen params "before" and "after" from
13428         rtx * to rtx_insn **.
13429         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
13430         (curr_insn_transform): Strengthen locals "before" and "after"
13431         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
13432         to insns.
13433         (loc_equivalence_callback): Update cast of "data", changing
13434         resulting type from rtx to rtx_insn *.
13435         (substitute_pseudo_within_insn): New.
13436         (inherit_reload_reg): Strengthen param "insn" from rtx to
13437         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
13438         NULL when referring to insns.  Add a checked cast to rtx_insn *
13439         when using usage_insn to invoke lra_update_insn_regno_info.
13440         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
13441         likewise for locals "restore", "save".  Add checked casts to
13442         rtx_insn * when using usage_insn to invoke
13443         lra_update_insn_regno_info and lra_process_new_insns.  Replace
13444         NULL_RTX with NULL when referring to insns.
13445         (split_if_necessary): Strengthen param "insn" from rtx to
13446         rtx_insn *.
13447         (update_ebb_live_info): Likewise for params "head", "tail" and local
13448         "prev_insn".
13449         (get_last_insertion_point): Likewise for return type and local "insn".
13450         (get_live_on_other_edges): Likewise for local "last".
13451         (inherit_in_ebb): Likewise for params "head", "tail" and locals
13452         "prev_insn", "next_insn", "restore".
13453         (remove_inheritance_pseudos): Likewise for local "prev_insn".
13454         (undo_optional_reloads): Likewise for local "insn".
13455
13456         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
13457         "insn".
13458         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
13459         insns.
13460         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
13461         rtx_insn *.
13462         (spill_pseudos): Likewise for local "insn".
13463         (init_elimination): Likewise.
13464         (process_insn_for_elimination): Likewise for param "insn".
13465
13466         * lra-lives.c (curr_insn): Likewise.;
13467
13468         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
13469         (remove_pseudos): Likewise for param "insn".
13470         (spill_pseudos): Likewise for local "insn".
13471         (lra_final_code_change): Likewise for locals "insn", "curr".
13472
13473         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
13474         (lra_set_insn_deleted): Likewise.
13475         (lra_delete_dead_insn): Likewise, and for local "prev".
13476         (new_insn_reg): Likewise for param "insn".
13477         (lra_set_insn_recog_data): Likewise.
13478         (lra_update_insn_recog_data): Likewise.
13479         (lra_set_used_insn_alternative): Likewise.
13480         (get_insn_freq): Likewise.
13481         (invalidate_insn_data_regno_info): Likewise.
13482         (lra_invalidate_insn_regno_info): Likewise.
13483         (lra_update_insn_regno_info): Likewise.
13484         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
13485         vec<rtx_insn *>.
13486         (lra_push_insn_1): Strengthen param "insn" from rtx to
13487         rtx_insn *.
13488         (lra_push_insn): Likewise.
13489         (lra_push_insn_and_update_insn_regno_info): Likewise.
13490         (lra_pop_insn): Likewise for return type and local "insn".
13491         (push_insns): Likewise for params "from", "to", and local "insn".
13492         (setup_sp_offset): Likewise for params "from", "last" and locals
13493         "before", "insn".
13494         (lra_process_new_insns): Likewise for params "insn", "before",
13495         "after" and local "last".
13496         (struct sloc): Likewise for field "insn".
13497         (lra_former_scratch_operand_p): Likewise for param "insn".
13498         (remove_scratches): Likewise for locals "insn", "last".
13499         (check_rtl): Likewise for local "insn".
13500         (add_auto_inc_notes): Likewise for param "insn".
13501         (update_inc_notes): Likewise for local "insn".
13502         (lra): Replace NULL_RTX with NULL when referring to insn.
13503
13504 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13505
13506         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
13507         to rtx_insn *.
13508         (resolve_reg_notes): Likewise.
13509         (resolve_simple_move): Likewise for return type, param "insn", and
13510         locals "insns", "minsn".
13511         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
13512         (resolve_use): Likewise.
13513         (resolve_debug): Likewise.
13514         (find_decomposable_shift_zext): Likewise.
13515         (resolve_shift_zext): Likewise for return type, param "insn", and
13516         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
13517         (decompose_multiword_subregs): Likewise for local "insn",
13518         "orig_insn", "decomposed_shift", "end".
13519
13520 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13521
13522         * basic-block.h (basic_block split_edge_and_insert): Strengthen
13523         param "insns" from rtx to rtx_insn *.
13524
13525         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
13526         rtx to rtx_insn *.
13527         (struct iv_to_split): Likewise.
13528         (loop_exit_at_end_p): Likewise for local "insn".
13529         (split_edge_and_insert): Likewise for param "insns".
13530         (compare_and_jump_seq): Likewise for return type, param "cinsn",
13531         and locals "seq", "jump".
13532         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
13533         "branch_code"; update invocations of compare_and_jump_seq to
13534         eliminate NULL_RTX in favor of NULL.
13535         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
13536         rtx to rtx_insn *.
13537         (reset_debug_uses_in_loop): Likewise.
13538         (analyze_insn_to_expand_var): Likewise for param "insn".
13539         (analyze_iv_to_split_insn): Likewise.
13540         (analyze_insns_in_loop): Likewise for local "insn".
13541         (insert_base_initialization): Likewise for param
13542         "insn" and local "seq".
13543         (split_iv): Likewise for param "insn" and local "seq".
13544         (expand_var_during_unrolling): Likewise for param "insn".
13545         (insert_var_expansion_initialization): Likewise for local "seq".
13546         (combine_var_copies_in_loop_exit): Likewise.
13547         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
13548         "insn".
13549         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
13550         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
13551         "next".
13552
13553 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13554
13555         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
13556         rtx_insn *.
13557         (iv_analyze_result): Likewise.
13558         (iv_analyze_expr): Likewise.
13559         (biv_p): Likewise.
13560
13561         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
13562         local "def_insn" from rtx to rtx_insn *.
13563         (get_biv_step_1): Likewise for local "insn".
13564         (iv_analyze_expr): Likewise for param "insn".
13565         (iv_analyze_def): Likewise for local "insn".
13566         (iv_analyze_op): Likewise for param "insn".
13567         (iv_analyze): Likewise.
13568         (iv_analyze_result): Likewise.
13569         (biv_p): Likewise.
13570         (suitable_set_for_replacement): Likewise.
13571         (simplify_using_initial_values): Likewise for local "insn".
13572         (iv_number_of_iterations): Likewise for param "insn".
13573         (check_simple_exit): Add checked cast to rtx_insn when invoking
13574         iv_number_of_iterations for now (until get_condition is
13575         strengthened).
13576
13577         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
13578         "insn" from rtx to rtx_insn *.
13579         (analyze_insns_in_loop): Likewise for local "insn".
13580
13581 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13582
13583         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
13584         to rtx_insn *.
13585         (struct invariant): Likewise.
13586         (hash_invariant_expr_1): Likewise for param "insn".
13587         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
13588         (find_exits): Likewise for local "insn".
13589         (create_new_invariant): Likewise for param "insn".
13590         (check_dependencies): Likewise.
13591         (find_invariant_insn): Likewise.
13592         (record_uses): Likewise.
13593         (find_invariants_insn): Likewise.
13594         (find_invariants_bb): Likewise for local "insn".
13595         (get_pressure_class_and_nregs): Likewise for param "insn".
13596         (calculate_loop_reg_pressure): Likewise for local "insn".
13597
13598 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13599
13600         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
13601         to rtx_insn *.
13602         (add_test): Likewise for locals "seq", "jump".
13603         (doloop_modify): Likewise for locals "sequence", "jump_insn".
13604
13605 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13606
13607         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
13608         rtx_insn *.
13609         (rebuild_jump_labels_chain): Likewise for param "chain".
13610
13611         * cfgexpand.c (pass_expand::execute): Add checked cast to
13612         rtx_insn * when calling rebuild_jump_labels_chain in region where
13613         we know e->insns.r is non-NULL.
13614
13615         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
13616         rtx_insn *.
13617         (rebuild_jump_labels): Likewise.
13618         (rebuild_jump_labels_chain): Likewise for param "chain".
13619         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
13620         (init_label_info): Likewise for param "f".
13621         (maybe_propagate_label_ref): Likewise for params "jump_insn",
13622         "prev_nonjump_insn".
13623         (mark_all_labels): Likewise for param "f" and locals "insn",
13624         "prev_nonjump_insn".
13625
13626 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13627
13628         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
13629         from rtx to rtx_insn *insn.
13630         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
13631         (ira_add_allocno_copy): Likewise.
13632         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
13633         rtx to rtx_insn *.
13634         (ira_create_copy): Likewise.
13635         (ira_add_allocno_copy): Likewise.
13636         (create_bb_allocnos): Likewise for local "insn".
13637         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
13638         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
13639         process_regs_for_copy for rtx_insn * param.
13640         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
13641         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
13642         process_regs_for_copy for rtx_insn * param.
13643         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
13644         * ira-costs.c (record_reg_classes): Likewise for param "insn".
13645         (record_operand_costs): Likewise.
13646         (scan_one_insn): Likewise for return type, and for param "insn".
13647         (process_bb_for_costs): Likewise for local "insn".
13648         (process_bb_node_for_hard_reg_moves): Likewise.
13649         * ira-emit.c (struct move): Likewise for field "insn".
13650         (create_move): Eliminate use of NULL_RTX when dealing with an
13651         rtx_insn *.
13652         (emit_move_list): Strengthen return type and locals "result",
13653         "insn" from rtx to rtx_insn *insn.
13654         (emit_moves): Likewise for locals "insns", "tmp".
13655         (ira_emit): Likewise for local "insn".
13656         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13657         "insn".
13658         (find_call_crossed_cheap_reg): Likewise.
13659         (process_bb_node_lives): Likewise for local "insn".
13660         * ira.c (decrease_live_ranges_number): Likewise.
13661         (compute_regs_asm_clobbered): Likewise.
13662         (build_insn_chain): Likewise.
13663         (find_moveable_pseudos): Likewise, also locals "def_insn",
13664         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
13665         to rtx_insn **.  Add a checked cast when assigning from
13666         "closest_use" into closest_uses array in a region where we know
13667         it's a non-NULL insn.
13668         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13669         to rtx_insn *.
13670         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13671         "last_interesting_insn", "uin".
13672         (move_unallocated_pseudos): Likewise for locals "def_insn",
13673         "move_insn", "newinsn".
13674
13675 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13676
13677         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13678         Strengthen locals "done_label", "do_error" from rtx to
13679         rtx_code_label *.
13680         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13681         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
13682         rtx_code_label *.
13683         (ubsan_expand_si_overflow_neg_check): Likewise for locals
13684         "done_label", "do_error" to rtx_code_label * and local  "last" to
13685         rtx_insn *.
13686         (ubsan_expand_si_overflow_mul_check): Likewise for locals
13687         "done_label", "do_error", "large_op0", "small_op0_large_op1",
13688         "one_small_one_large", "both_ops_large", "after_hipart_neg",
13689         "after_lopart_neg", "do_overflow", "hipart_different"  to
13690         rtx_code_label * and local  "last" to rtx_insn *.
13691
13692 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13693
13694         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13695         "insn" and "move_insn" from rtx to rtx_insn *.
13696
13697 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13698
13699         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13700         rtx_insn *.
13701         (cheap_bb_rtx_cost_p): Likewise.
13702         (first_active_insn): Likewise for return type and local "insn".
13703         (last_active_insn):  Likewise for return type and locals "insn",
13704         "head".
13705         (struct noce_if_info): Likewise for fields "jump", "insn_a",
13706         "insn_b".
13707         (end_ifcvt_sequence): Likewise for return type and locals "insn",
13708         "seq".
13709         (noce_try_move): Likewise for local "seq".
13710         (noce_try_store_flag): Likewise.
13711         (noce_try_store_flag_constants): Likewise.
13712         (noce_try_addcc): Likewise.
13713         (noce_try_store_flag_mask): Likewise.
13714         (noce_try_cmove): Likewise.
13715         (noce_try_minmax): Likewise.
13716         (noce_try_abs): Likewise.
13717         (noce_try_sign_mask): Likewise.
13718         (noce_try_bitop): Likewise.
13719         (noce_can_store_speculate_p): Likewise for local "insn".
13720         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13721         seq".
13722         (check_cond_move_block): Likewise for local "insn".
13723         (cond_move_convert_if_block): Likewise.
13724         (cond_move_process_if_block): Likewise for locals "seq",
13725         "loc_insn".
13726         (noce_find_if_block): Likewise for local "jump".
13727         (merge_if_block): Likewise for local "last".
13728         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13729         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13730         (block_has_only_trap): Likewise for return type and local "trap".
13731         (find_if_case_1): Likewise for local "jump".
13732         (dead_or_predicable): Likewise for locals "head", "end", "jump",
13733         "insn".
13734
13735 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13736
13737         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13738         "last_insn", "loop_end" from rtx to rtx_insn *.
13739
13740         * hw-doloop.c (scan_loop): Likewise for local "insn".
13741         (discover_loop): Likewise for param "tail_insn".
13742         (discover_loops): Likewise for local "tail".
13743
13744         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13745         cast to rtx_insn * when assigning from an rtx local to a
13746         hwloop_info's "last_insn" field.
13747
13748 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13749
13750         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13751         (add_delay_dependencies): Strengthen local "pro" from rtx to
13752         rtx_insn *.
13753         (recompute_todo_spec): Likewise.
13754         (dep_cost_1): Likewise for locals "insn", "used".
13755         (schedule_insn): Likewise for local "dbg".
13756         (schedule_insn): Likewise for locals "pro", "next".
13757         (unschedule_insns_until): Likewise for local "con".
13758         (restore_pattern): Likewise for local "next".
13759         (estimate_insn_tick): Likewise for local "pro".
13760         (resolve_dependencies): Likewise for local "next".
13761         (fix_inter_tick): Likewise.
13762         (fix_tick_ready): Likewise for local "pro".
13763         (add_to_speculative_block): Likewise for locals "check", "twin",
13764         "pro".
13765         (sched_extend_bb): Likewise for locals "end", "insn".
13766         (init_before_recovery): Likewise for local "x".
13767         (sched_create_recovery_block): Likewise for local "barrier".
13768         (create_check_block_twin): Likewise for local "pro".
13769         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13770         "consumer".
13771         (unlink_bb_notes): Update for change to type of bb_header.
13772         Strengthen locals "prev", "label", "note", "next" from rtx to
13773         rtx_insn *.
13774         (clear_priorities): Likewise for local "pro".
13775
13776 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13777
13778         * gcse.c (struct occr): Strengthen field "insn" from rtx to
13779         rtx_insn *.
13780         (test_insn): Likewise for this global.
13781         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13782         const rtx_insn *.
13783         (oprs_anticipatable_p): Likewise.
13784         (oprs_available_p): Likewise.
13785         (insert_expr_in_table): Strengthen param "insn" from  rtx to
13786         rtx_insn *.
13787         (hash_scan_set): Likewise.
13788         (hash_scan_clobber): Likewise.
13789         (hash_scan_call): Likewise.
13790         (hash_scan_insn): Likewise.
13791         (compute_hash_table_work): Likewise for local "insn".
13792         (process_insert_insn): Likewise for return type and local "pat".
13793         (insert_insn_end_basic_block): Likewise for locals "new_insn",
13794         "pat", "pat_end", "maybe_cc0_setter".
13795         (pre_edge_insert): Likewise for local "insn".
13796         (pre_insert_copy_insn): Likewise for param "insn".
13797         (pre_insert_copies): Likewise for local "insn".
13798         (struct set_data): Likewise for field "insn".
13799         (single_set_gcse): Likewise for param "insn".
13800         (gcse_emit_move_after): Likewise.
13801         (pre_delete): Likewise for local "insn".
13802         (update_bb_reg_pressure): Likewise for param "from" and local
13803         "insn".
13804         (should_hoist_expr_to_dom): Likewise for param "from".
13805         (hoist_code): Likewise for local "insn".
13806         (get_pressure_class_and_nregs): Likewise for param "insn".
13807         (calculate_bb_reg_pressure): Likewise for local "insn".
13808         (compute_ld_motion_mems): Likewise.
13809
13810 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13811
13812         * genpeep.c (main): Rename param back from "uncast_ins1" to
13813         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
13814         checked cast.
13815
13816         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13817
13818 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
13819
13820         PR target/62195
13821         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13822         documentation to state it is only for VSX operations.
13823
13824         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13825         constraint only active if VSX.
13826
13827         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13828         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13829         (lfiwzx): Likewise.
13830
13831 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13832
13833         * fwprop.c (single_def_use_dom_walker::before_dom_children):
13834         Strengthen local "insn" from rtx to rtx_insn *.
13835         (use_killed_between): Likewise for param "target_insn".
13836         (all_uses_available_at): Likewise for param "target_insn" and
13837         local "next".
13838         (update_df_init): Likewise for params "def_insn", "insn".
13839         (update_df): Likewise for param "insn".
13840         (try_fwprop_subst): Likewise for param "def_insn" and local
13841         "insn".
13842         (free_load_extend): Likewise for param "insn".
13843         (forward_propagate_subreg): Likewise for param "def_insn" and
13844         local "use_insn".
13845         (forward_propagate_asm): Likewise for param "def_insn" and local
13846         "use_insn".
13847         (forward_propagate_and_simplify): Likewise for param "def_insn"
13848         and local "use_insn".
13849         (forward_propagate_into): Likewise for locals "def_insn" and
13850         "use_insn".
13851
13852 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13853
13854         * function.c (emit_initial_value_sets): Strengthen local "seq"
13855         from rtx to rtx_insn *.
13856         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13857         local "seq".
13858         (instantiate_virtual_regs): Likewise for local "insn".
13859         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13860         (reorder_blocks_1): Likewise for param "insns" and local "insn".
13861         (expand_function_end): Likewise for locals "insn" and "seq".
13862         (epilogue_done): Likewise for local "insn".
13863         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13864         "last", "trial".
13865         (reposition_prologue_and_epilogue_notes): Likewise for locals
13866         "insn", "last", "note", "first".
13867         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13868         (pass_match_asm_constraints::execute): Likewise for local "insn".
13869
13870 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13871
13872         * output.h (final_scan_insn): Strengthen return type from rtx to
13873         rtx_insn *.
13874         (final_forward_branch_p): Likewise for param.
13875         (current_output_insn): Likewise for this global.
13876
13877         * final.c (rtx debug_insn): Likewise for this variable.
13878         (current_output_insn): Likewise.
13879         (get_attr_length_1): Rename param "insn" to "uncast_insn",
13880         adding "insn" back in as an rtx_insn * with a checked cast, so
13881         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13882         first param.
13883         (compute_alignments): Strengthen local "label" from rtx to
13884         rtx_insn *.
13885         (shorten_branches): Rename param from "first" to "uncast_first",
13886         introducing a new local rtx_insn * "first" using a checked cast to
13887         effectively strengthen "first" from rtx to rtx_insn * without
13888         affecting the type signature.  Strengthen locals "insn", "seq",
13889         "next", "label" from rtx to rtx_insn *.
13890         (change_scope): Strengthen param "orig_insn" and local "insn" from
13891         rtx to rtx_insn *.
13892         (final_start_function): Rename param from "first" to "uncast_first",
13893         introducing a new local rtx_insn * "first" using a checked cast to
13894         effectively strengthen "first" from rtx to rtx_insn * without
13895         affecting the type signature.  Strengthen local "insn" from rtx to
13896         rtx_insn *.
13897         (dump_basic_block_info): Strengthen param "insn" from rtx to
13898         rtx_insn *.
13899         (final): Rename param from "first" to "uncast_first",
13900         introducing a new local rtx_insn * "first" using a checked cast to
13901         effectively strengthen "first" from rtx to rtx_insn * without
13902         affecting the type signature.  Strengthen locals "insn", "next"
13903         from rtx to rtx_insn *.
13904         (output_alternate_entry_point): Strengthen param "insn" from rtx to
13905         rtx_insn *.
13906         (call_from_call_insn): Strengthen param "insn" from rtx to
13907         rtx_call_insn *.
13908         (final_scan_insn): Rename param from "insn" to "uncast_insn",
13909         introducing a new local rtx_insn * "insn" using a checked cast to
13910         effectively strengthen "insn" from rtx to rtx_insn * without
13911         affecting the type signature.  Strengthen return type and locals
13912         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
13913         now-redundant checked cast to rtx_insn * from both invocations of
13914         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
13915         introducing a local "call_insn" for use when invoking
13916         call_from_call_insn.
13917         (notice_source_line): Strengthen param "insn" from rtx to
13918         rtx_insn *.
13919         (leaf_function_p): Likewise for local "insn".
13920         (final_forward_branch_p): Likewise.
13921         (leaf_renumber_regs): Likewise for param "first".
13922         (rest_of_clean_state): Likewise for locals "insn" and "next".
13923         (self_recursive_call_p): Likewise for param "insn".
13924         (collect_fn_hard_reg_usage): Likewise for local "insn".
13925         (get_call_fndecl): Likewise for param "insn".
13926         (get_call_cgraph_rtl_info): Likewise.
13927         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13928         introducing a new local rtx_insn * "insn" using a checked cast to
13929         effectively strengthen "insn" from rtx to rtx_insn * without
13930         affecting the type signature.
13931
13932         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13933         cast when assigning from param "insn" to current_output_insn.
13934         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13935         so that we can assign it back to current_output_insn.
13936
13937 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13938
13939         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13940         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13941         atmxt540s and atmxt540sreva devices.
13942         * config/avr/avr-tables.opt: Regenerate.
13943         * config/avr/t-multilib: Regenerate.
13944         * doc/avr-mmcu.texi: Regenerate.
13945
13946 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13947
13948         * expr.c (convert_move): Strengthen local "insns" from rtx to
13949         rtx_insn *.
13950         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13951         "top_label" from rtx to rtx_code_label *.
13952         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13953         rtx_insn *.
13954         (emit_single_push_insn): Likewise for locals "prev", "last".
13955         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13956         to rtx_code_label *.
13957         (store_constructor): Likewise for locals "loop_start", "loop_end".
13958         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13959         rtx_insn *.
13960         (expand_expr_real_2): Likewise.
13961         (expand_expr_real_1): Strengthen local "label" from rtx to
13962         rtx_code_label *.
13963
13964 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13965
13966         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13967         from rtx to rtx_insn *.
13968         (store_bit_field_1): Likewise.
13969         (extract_bit_field_1): Likewise.
13970         (expand_mult_const): Likewise for local "insns".
13971         (expmed_mult_highpart): Strengthen local "label" from rtx to
13972         rtx_code_label *.
13973         (expand_smod_pow2): Likewise.
13974         (expand_sdiv_pow2): Likewise.
13975         (expand_divmod): Strengthen locals "last", "insn" from rtx to
13976         rtx_insn *.  Strengthen locals "label", "label1", "label2",
13977         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13978         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13979         (emit_store_flag): Likewise.
13980         (emit_store_flag_force): Strengthen local "label" from rtx to
13981         rtx_code_label *.
13982         (do_cmp_and_jump): Likewise for param "label".
13983
13984 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13985
13986         * explow.c (force_reg): Strengthen local "insn" from rtx to
13987         rtx_insn *.
13988         (adjust_stack_1): Likewise.
13989         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
13990         "final_label", "available_label", "space_available" from rtx to
13991         rtx_code_label *.
13992         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13993         (anti_adjust_stack_and_probe): Likewise.
13994
13995 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13996
13997         * except.h (sjlj_emit_function_exit_after): Strengthen param
13998         "after" from rtx to rtx_insn *.  This is only called with
13999         result of get_last_insn (in function.c) so type-change should be
14000         self-contained.
14001
14002         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
14003         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
14004         to rtx_insn *.  These fields are only used from except.c so this
14005         type-change should be self-contained to this patch.
14006
14007         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
14008         local "last" from rtx to rtx_insn *.
14009         (dw2_build_landing_pads): Likewise for local "seq".
14010         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
14011         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
14012         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
14013         rtx to rtx_insn *.
14014         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
14015         to rtx_insn *.
14016         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
14017         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
14018         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
14019         referring to an insn.  Strengthen local "dispatch_label" from
14020         rtx to rtx_code_label *.
14021         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
14022         rtx_insn *.
14023         (expand_eh_return): Strengthen local "around_label" from
14024         rtx to rtx_code_label *.
14025         (convert_to_eh_region_ranges): Strengthen locals "iter",
14026         "last_action_insn", "first_no_action_insn",
14027         "first_no_action_insn_before_switch",
14028         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
14029
14030 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14031
14032         * dwarf2out.c (last_var_location_insn): Strengthen this variable
14033         from rtx to rtx_insn *.
14034         (cached_next_real_insn): Likewise.
14035         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
14036         working with insns.
14037         (dwarf2out_var_location): Strengthen locals "next_real",
14038         "next_note", "expected_next_loc_note", "last_start", "insn" from
14039         rtx to rtx_insn *.
14040
14041 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14042
14043         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
14044         from rtx to rtx_insn *.
14045         (create_pseudo_cfg): Likewise for local "insn".
14046
14047 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14048
14049         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
14050         from rtx to rtx_insn *.
14051         (df_bb_regno_last_def_find): Likewise.
14052
14053         * df-problems.c (df_rd_bb_local_compute): Likewise.
14054         (df_lr_bb_local_compute): Likewise.
14055         (df_live_bb_local_compute): Likewise.
14056         (df_chain_remove_problem): Likewise.
14057         (df_chain_create_bb): Likewise.
14058         (df_word_lr_bb_local_compute): Likewise.
14059         (df_remove_dead_eq_notes): Likewise for param "insn".
14060         (df_note_bb_compute): Likewise for local "insn".
14061         (simulate_backwards_to_point): Likewise.
14062         (df_md_bb_local_compute): Likewise.
14063
14064         * df-scan.c (df_scan_free_bb_info): Likewise.
14065         (df_scan_start_dump): Likewise.
14066         (df_scan_start_block): Likewise.
14067         (df_install_ref_incremental): Likewise for local "insn".
14068         (df_insn_rescan_all): Likewise.
14069         (df_reorganize_refs_by_reg_by_insn): Likewise.
14070         (df_reorganize_refs_by_insn_bb): Likewise.
14071         (df_recompute_luids): Likewise.
14072         (df_bb_refs_record): Likewise.
14073         (df_update_entry_exit_and_calls): Likewise.
14074         (df_bb_verify): Likewise.
14075
14076 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14077
14078         * ddg.h (struct ddg_node): Strengthen fields "insn" and
14079         "first_note" from rtx to rtx_insn *.
14080         (get_node_of_insn): Likewise for param 2 "insn".
14081         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
14082
14083         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
14084         rtx_insn *.
14085         (mem_write_insn_p): Likewise.
14086         (mem_access_insn_p): Likewise.
14087         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
14088         (def_has_ccmode_p): Likewise for param "insn".
14089         (add_cross_iteration_register_deps): Likewise for locals
14090         "def_insn" and "use_insn".
14091         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
14092         (build_intra_loop_deps): Likewise for local "src_insn".
14093         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
14094         to rtx_insn *.
14095         (get_node_of_insn): Likewise for param "insn".
14096
14097 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14098
14099         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
14100         (deletable_insn_p): Strengthen param "insn" from rtx to
14101         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
14102         find_call_stack_args, since this is guarded by CALL_P (insn).
14103         (marked_insn_p): Strengthen param "insn" from rtx to
14104         rtx_insn *.
14105         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
14106         invoking find_call_stack_args, since this is guarded by
14107         CALL_P (insn).
14108         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
14109         rtx_insn *; we know this is an insn since this was called by
14110         mark_nonreg_stores.
14111         (mark_nonreg_stores_2): Likewise.
14112         (mark_nonreg_stores): Strengthen param "insn" from rtx to
14113         rtx_insn *.
14114         (find_call_stack_args): Strengthen param "call_insn" from rtx to
14115         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
14116         to rtx_insn *.
14117         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
14118         from rtx to rtx_insn *.
14119         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
14120         "next", "ref_insn".
14121         (delete_unmarked_insns): Likewise for locals "insn", "next".
14122         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
14123         (mark_reg_dependencies): Likewise for param "insn".
14124         (rest_of_handle_ud_dce): Likewise for local "insn".
14125         (word_dce_process_block): Likewise.
14126         (dce_process_block): Likewise.
14127
14128 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14129
14130         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
14131         from rtx to rtx_insn *.
14132         (struct change_cc_mode_args): Likewise for field "insn".
14133         (this_insn): Strengthen from rtx to rtx_insn *.
14134         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
14135         with insn.
14136         (validate_canon_reg): Strengthen param "insn" from rtx to
14137         rtx_insn *.
14138         (canon_reg): Likewise.
14139         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
14140         dealing with insn.
14141         (record_jump_equiv): Strengthen param "insn" from rtx to
14142         rtx_insn *.
14143         (try_back_substitute_reg): Likewise, also for locals "prev",
14144         "bb_head".
14145         (find_sets_in_insn): Likewise for param "insn".
14146         (canonicalize_insn): Likewise.
14147         (cse_insn): Likewise.  Add a checked cast.
14148         (invalidate_from_clobbers): Likewise for param "insn".
14149         (invalidate_from_sets_and_clobbers): Likewise.
14150         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
14151         dealing with insn.
14152         (cse_prescan_path): Strengthen local "insn" from rtx to
14153         rtx_insn *.
14154         (cse_extended_basic_block): Likewise for locals "insn" and
14155         "prev_insn".
14156         (cse_main): Likewise for param "f".
14157         (check_for_label_ref): Likewise for local "insn".
14158         (set_live_p): Likewise for second param ("insn").
14159         (insn_live_p): Likewise for first param ("insn") and for local
14160         "next".
14161         (cse_change_cc_mode_insn): Likewise for first param "insn".
14162         (cse_change_cc_mode_insns): Likewise for first and second params
14163         "start" and "end".
14164         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
14165         and "end".
14166         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
14167         "cc_src_insn".
14168
14169 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14170             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14171             Anna Tikhonova  <anna.tikhonova@intel.com>
14172             Ilya Tocar  <ilya.tocar@intel.com>
14173             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14174             Ilya Verbin  <ilya.verbin@intel.com>
14175             Kirill Yukhin  <kirill.yukhin@intel.com>
14176             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14177
14178         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
14179         New.
14180         * config/i386/sse.md
14181         (define_mode_iterator VI248_AVX2): Delete.
14182         (define_mode_iterator VI2_AVX2_AVX512BW): New.
14183         (define_mode_iterator VI48_AVX2): Ditto.
14184         (define_insn <shift_insn><mode>3): Delete.
14185         (define_insn "<shift_insn><mode>3<mask_name>" with
14186         VI2_AVX2_AVX512BW): New.
14187         (define_insn "<shift_insn><mode>3<mask_name>" with
14188         VI48_AVX2): Ditto.
14189
14190 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14191             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14192             Anna Tikhonova  <anna.tikhonova@intel.com>
14193             Ilya Tocar  <ilya.tocar@intel.com>
14194             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14195             Ilya Verbin  <ilya.verbin@intel.com>
14196             Kirill Yukhin  <kirill.yukhin@intel.com>
14197             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14198
14199         * config/i386/sse.md
14200         (define_mode_iterator VI4F_BRCST32x2): New.
14201         (define_mode_attr 64x2_mode): Ditto.
14202         (define_mode_attr 32x2mode): Ditto.
14203         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
14204         with VI4F_BRCST32x2): Ditto.
14205         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
14206         with V16FI mode iterator): Ditto.
14207         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14208         with V16FI): Ditto.
14209         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14210         with VI8F_BRCST64x2): Ditto.
14211
14212 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14213             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14214             Anna Tikhonova  <anna.tikhonova@intel.com>
14215             Ilya Tocar  <ilya.tocar@intel.com>
14216             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14217             Ilya Verbin  <ilya.verbin@intel.com>
14218             Kirill Yukhin  <kirill.yukhin@intel.com>
14219             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14220
14221         * config/i386/sse.md
14222         (define_mode_iterator VI8_AVX512VL): New.
14223         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
14224
14225 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14226
14227         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
14228         (define_mode_iterator V48_AVX512VL): New.
14229         (define_mode_iterator V12_AVX512VL): Ditto.
14230         (define_insn <avx512>_load<mode>_mask): Split into two similar
14231         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
14232         Refactor output template.
14233         (define_insn "<avx512>_store<mode>_mask"): Ditto.
14234
14235 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14236
14237         * cprop.c (struct occr): Strengthen field "insn" from rtx to
14238         rtx_insn *.
14239         (reg_available_p): Likewise for param "insn".
14240         (insert_set_in_table): Likewise.
14241         (hash_scan_set): Likewise.
14242         (hash_scan_insn): Likewise.
14243         (make_set_regs_unavailable): Likewise.
14244         (compute_hash_table_work): Likewise for local "insn".
14245         (reg_not_set_p): Strengthen param "insn" from const_rtx to
14246         const rtx_insn *.
14247         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
14248         (try_replace_reg): Likewise.
14249         (find_avail_set): Likewise.
14250         (cprop_jump): Likewise for params "setcc", "jump".
14251         (constprop_register): Likewise for param "insn".
14252         (cprop_insn): Likewise.
14253         (do_local_cprop): Likewise.
14254         (local_cprop_pass): Likewise for local "insn".
14255         (bypass_block): Likewise for params "setcc" and "jump".
14256         (bypass_conditional_jumps): Likewise for locals "setcc" and
14257         "insn".
14258         (one_cprop_pass): Likewise for local "insn".
14259
14260 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14261
14262         * compare-elim.c (struct comparison_use): Strengthen field "insn"
14263         from rtx to rtx_insn *.
14264         (struct comparison): Likewise, also for field "prev_clobber".
14265         (conforming_compare): Likewise for param "insn".
14266         (arithmetic_flags_clobber_p): Likewise.
14267         (find_flags_uses_in_insn): Likewise.
14268         (find_comparison_dom_walker::before_dom_children): Likewise for
14269         locals "insn", "next", "last_clobber".
14270         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
14271
14272 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14273
14274         * combine-stack-adj.c (struct csa_reflist): Strengthen field
14275         "insn" from rtx to rtx_insn *.
14276         (single_set_for_csa): Likewise for param "insn".
14277         (record_one_stack_ref): Likewise.
14278         (try_apply_stack_adjustment): Likewise.
14279         (struct record_stack_refs_data): Likewise for field "insn".
14280         (maybe_move_args_size_note): Likewise for params "last" and "insn".
14281         (prev_active_insn_bb): Likewise for return type and param "insn".
14282         (next_active_insn_bb): Likewise.
14283         (force_move_args_size_note): Likewise for params "prev" and "last"
14284         and locals "test", "next_candidate", "prev_candidate".
14285         (combine_stack_adjustments_for_block): Strengthen locals
14286         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
14287         rtx_insn *.
14288
14289 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14290
14291         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
14292         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
14293         (subst_insn): Likewise for this variable.
14294         (added_links_insn): Likewise.
14295         (struct insn_link): Likewise for field "insn".
14296         (alloc_insn_link): Likewise for param "insn".
14297         (struct undobuf): Likewise for field "other_insn".
14298         (find_single_use): Likewise for param "insn" and local "next".
14299         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
14300         (delete_noop_moves): Likewise for locals "insn", "next".
14301         (create_log_links): Likewise for locals "insn", "use_insn".
14302         Strengthen local "next_use" from rtx * to rtx_insn **.
14303         (insn_a_feeds_b): Likewise for params "a", "b".
14304         (combine_instructions): Likewise for param "f" and locals "insn",
14305         "next", "prev", "first", "last_combined_insn", "link", "link1",
14306         "temp".  Replace use of NULL_RTX with NULL when referring to
14307         insns.
14308         (setup_incoming_promotions): Likewise for param "first"
14309         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
14310         (can_combine_p): Likewise for params "insn", "i3", "pred",
14311         "pred2", "succ", "succ2" and for local "p".
14312         (combinable_i3pat): Likewise for param "i3".
14313         (cant_combine_insn_p): Likewise for param "insn".
14314         (likely_spilled_retval_p): Likewise.
14315         (adjust_for_new_dest): Likewise.
14316         (update_cfg_for_uncondjump): Likewise, also for local "insn".
14317         (try_combine): Likewise for return type and for params "i3", "i2",
14318         "i1", "i0", "last_combined_insn", and for locals "insn",
14319         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
14320         "i0_insn".  Eliminate local "tem" in favor of new locals
14321         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
14322         checked cast for now to rtx_insn * on the return type of
14323         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
14324         insns.
14325         (find_split_point): Strengthen param "insn" from rtx to
14326         rtx_insn *.
14327         (simplify_set): Likewise for local "other_insn".
14328         (recog_for_combine): Likewise for param "insn".
14329         (record_value_for_reg): Likewise.
14330         (record_dead_and_set_regs_1): Likewise for local
14331         "record_dead_insn".
14332         (record_dead_and_set_regs): Likewise for param "insn".
14333         (record_promoted_value): Likewise.
14334         (check_promoted_subreg): Likewise.
14335         (get_last_value_validate): Likewise.
14336         (reg_dead_at_p): Likewise.
14337         (move_deaths): Likewise for param "to_insn".
14338         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
14339         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
14340         in favor of new locals "tem_note" and "tem_insn", the latter being
14341         an rtx_insn *.
14342         (distribute_links): Strengthen locals "place", "insn" from rtx to
14343         rtx_insn *.
14344
14345 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14346
14347         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
14348         than a const_rtx.
14349         (can_delete_label_p): Require a const rtx_code_label * rather than
14350         a const_rtx.
14351         (delete_insn): Add checked cast to rtx_code_label * when we know
14352         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
14353         rtx to rtx_insn *.
14354         (delete_insn_chain): Strengthen locals "prev" and "current" from
14355         rtx to rtx_insn *.  Add a checked cast when assigning from
14356         "finish" (strengthening the params will come later).  Add a
14357         checked cast to rtx_note * in region where we know
14358         NOTE_P (current).
14359         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
14360         rtx_insn *.
14361         (compute_bb_for_insn): Likewise.
14362         (free_bb_for_insn): Likewise for local "insn".
14363         (compute_bb_for_insn): Likewise.
14364         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
14365         local "insn" from rtx to rtx_insn *
14366         (flow_active_insn_p): Require a const rtx_insn * rather than a
14367         const_rtx.
14368         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
14369         rtx_insn *.
14370         (can_fallthru): Likewise for locals "insn" and "insn2".
14371         (bb_note): Likewise for local "note".
14372         (first_insn_after_basic_block_note): Likewise for local "note" and
14373         for return type.
14374         (rtl_split_block): Likewise for locals "insn" and "next".
14375         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
14376         "end".
14377         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
14378         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
14379         "prev", "tmp".
14380         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
14381         them), "kill_from", "barrier", "new_insn".
14382         (patch_jump_insn): Likewise for params "insn", "old_label".
14383         (redirect_branch_edge): Likewise for locals "old_label", "insn".
14384         (force_nonfallthru_and_redirect): Likewise for locals "insn",
14385         "old_label", "new_label".
14386         (rtl_tidy_fallthru_edge): Likewise for local "q".
14387         (rtl_split_edge): Likewise for locals "before", "last".
14388         (commit_one_edge_insertion): Likewise for locals "before",
14389         "after", "insns", "tmp", "last", adding a checked cast where
14390         currently necessary.
14391         (commit_edge_insertions): Likewise.
14392         (rtl_dump_bb): Likewise for locals "insn", "last".
14393         (print_rtl_with_bb): Likewise for local "x".
14394         (rtl_verify_bb_insns): Likewise for local "x".
14395         (rtl_verify_bb_pointers): Likewise for local "insn".
14396         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
14397         "head", "end".
14398         (rtl_verify_fallthru): Likewise for local "insn".
14399         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
14400         (purge_dead_edges): Likewise for local "insn".
14401         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
14402         (skip_insns_after_block): Likewise for return type and for locals
14403         "insn", "last_insn", "next_head", "prev".
14404         (record_effective_endpoints): Likewise for locals "next_insn",
14405         "insn", "end".
14406         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
14407         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
14408         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
14409         (duplicate_insn_chain): For now, add checked cast from rtx to
14410         rtx_insn * when returning insn.
14411         (cfg_layout_duplicate_bb): Likewise for local "insn".
14412         (cfg_layout_delete_block): Likewise for locals "insn", "next",
14413         "prev", "remaints".
14414         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
14415         (rtl_block_empty_p): Likewise.
14416         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
14417         "split_point", "last".
14418         (rtl_block_ends_with_call_p): Likewise for local "insn".
14419         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
14420         const rtx_insn *.
14421         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
14422         "split_at_insn" from rtx to rtx_insn *.
14423         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
14424         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
14425         to const rtx_insn *.
14426         (rtl_account_profile_record): Likewise.
14427
14428 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14429
14430         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
14431         rtx to rtx_insn *.
14432         (average_num_loop_insns): Likewise.
14433         (init_set_costs): Likewise for local "seq".
14434         (seq_cost): Likewise for param "seq", from const_rtx to const
14435         rtx_insn *.
14436
14437 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14438
14439         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
14440         rtx to rtx_insn *.
14441
14442 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14443
14444         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
14445         "f1" and "f2" from rtx * to rtx_insn **.
14446         (flow_find_head_matching_sequence): Likewise.
14447
14448         * cfgcleanup.c (try_simplify_condjump): Strengthen local
14449         "cbranch_insn" from rtx to rtx_insn *.
14450         (thread_jump): Likewise for local "insn".
14451         (try_forward_edges): Likewise for local "last".
14452         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
14453         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
14454         "real_b_end".
14455         (can_replace_by): Likewise for params "i1", "i2".
14456         (old_insns_match_p): Likewise.
14457         (merge_notes): Likewise.
14458         (walk_to_nondebug_insn): Likewise for param "i1".
14459         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
14460         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
14461         "afterlast1", "afterlast2" from rtx to rtx_insn *.
14462         (flow_find_head_matching_sequence): Strengthen params "f1" and
14463         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
14464         "last1", "last2", "beforelast1", "beforelast2" from rtx to
14465         rtx_insn *.
14466         (outgoing_edges_match): Likewise for locals "last1", "last2".
14467         (try_crossjump_to_edge): Likewise for local "insn".
14468         Replace call to for_each_rtx with for_each_rtx_in_insn.
14469
14470         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
14471         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
14472         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
14473         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
14474         (try_optimize_cfg): Strengthen local "last" from rtx to
14475         rtx_insn *.
14476         (delete_dead_jumptables): Likewise for locals "insn", "next",
14477         "label".
14478
14479         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
14480         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
14481         "rtx else_first_tail", to reflect the basic-block.h changes above.
14482
14483 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14484
14485         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
14486         rtx_insn *.
14487         (purge_dead_tablejump_edges): Likewise.
14488         (find_bb_boundaries): Likewise for locals "insn", "end",
14489         "flow_transfer_insn".
14490
14491 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14492
14493         * caller-save.c (save_call_clobbered_regs): Strengthen locals
14494         "ins" and "prev" from rtx to rtx_insn *.
14495
14496 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14497
14498         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
14499         rtx_insn *.
14500         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
14501         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
14502         "scan_start".
14503         (load_register_parameters): Likewise for local "before_arg".
14504         (check_sibcall_argument_overlap): Likewise for param "insn".
14505         (expand_call): Likewise for locals "normal_call_insns",
14506         "tail_call_insns", "insns", "before_call", "after_args",
14507         "before_arg", "last", "prev".  Strengthen one of the "last" from
14508         rtx to rtx_call_insn *.
14509         (fixup_tail_calls): Strengthen local "insn" from rtx to
14510         rtx_insn *.
14511         (emit_library_call_value_1): Likewise for locals "before_call" and
14512         "last".
14513
14514 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14515
14516         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
14517         and "last" from rtx to rtx_insn *.
14518         (expand_builtin_nonlocal_goto): Likewise for local "insn".
14519         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
14520         rtx_call_insn *.
14521         (expand_errno_check): Strengthen local "lab" from rtx to
14522         rtx_code_label *.
14523         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
14524         rtx_insn *.
14525         (expand_builtin_mathfn_2): Likewise.
14526         (expand_builtin_mathfn_ternary): Likewise.
14527         (expand_builtin_mathfn_3): Likewise.
14528         (expand_builtin_interclass_mathfn): Likewise for local "last".
14529         (expand_builtin_int_roundingfn): Likewise for local "insns".
14530         (expand_builtin_int_roundingfn_2): Likewise.
14531         (expand_builtin_strlen): Likewise for local "before_strlen".
14532         (expand_builtin_strncmp): Likewise for local "seq".
14533         (expand_builtin_signbit): Likewise for local "last".
14534         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
14535         from rtx to rtx_code_label *.
14536         (expand_stack_restore):  Strengthen local "prev" from rtx to
14537         rtx_insn *.
14538
14539 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14540
14541         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
14542         to rtx_insn *.
14543         (struct btr_def_s): Likewise.
14544         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
14545         const rtx_insn *.
14546         (add_btr_def): Likewise.
14547         (new_btr_user): Likewise.
14548         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
14549         rtx to rtx_insn *.
14550         (link_btr_uses): Likewise.
14551         (move_btr_def): Likewise for locals "insp", "old_insn",
14552         "new_insn".  Add checked cast to rtx_insn * for now on result of
14553         gen_move_insn.
14554         (can_move_up): Strengthen param "insn" from const_rtx to
14555         const rtx_insn *.
14556
14557 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14558
14559         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
14560         rtx_insn *.
14561         (get_uncond_jump_length): Likewise for locals "label", "jump".
14562         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
14563         "jump", "insn".
14564         (add_labels_and_missing_jumps): Likewise for local "new_jump".
14565         (fix_up_fall_thru_edges): Likewise for local "old_jump".
14566         (find_jump_block): Likewise for local "insn".
14567         (fix_crossing_conditional_branches): Likewise for locals
14568         "old_jump", "new_jump".
14569         (fix_crossing_unconditional_branches): Likewise for locals
14570         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
14571         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
14572
14573 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14574
14575         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
14576         rtx to rtx_insn *.
14577         (struct mem_insn): Likewise for field "insn".
14578         (reg_next_use): Strengthen from rtx * to rtx_insn **.
14579         (reg_next_inc_use): Likewise.
14580         (reg_next_def): Likewise.
14581         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
14582         from rtx to rtx_insn *.
14583         (move_insn_before): Likewise for param "next_insn" and local "insns".
14584         (attempt_change): Likewise for local "mov_insn".
14585         (try_merge): Likewise for param "last_insn".
14586         (get_next_ref): Likewise for return type and local "insn".
14587         Strengthen param "next_array" from rtx * to rtx_insn **.
14588         (parse_add_or_inc): Strengthen param "insn" from rtx to
14589         rtx_insn *.
14590         (find_inc): Likewise for locals "insn" and "other_insn" (three of
14591         the latter).
14592         (merge_in_block): Likewise for locals "insn", "curr",
14593         "other_insn".
14594         (pass_inc_dec::execute): Update allocations of the arrays to
14595         reflect the stronger types.
14596
14597 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14598
14599         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
14600         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
14601         from rtx to rtx_code_label *.
14602
14603 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14604
14605         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
14606         to rtx_insn *.
14607
14608 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14609
14610         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
14611         generated a warning and prevented bootstrapping the compiler.
14612
14613 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14614
14615         * rtl.h (delete_related_insns): Strengthen return type from rtx to
14616         rtx_insn *.
14617
14618         * jump.c (delete_related_insns): Likewise, also for locals "next"
14619         and "prev".
14620
14621 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14622
14623         * genautomata.c (output_internal_insn_latency_func): When writing
14624         the function "internal_insn_latency" to insn-automata.c,
14625         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14626         allowing the optional guard function of (define_bypass) clauses to
14627         expect a pair of rtx_insn *, rather than a pair of rtx.
14628         (output_insn_latency_func): When writing the function
14629         "insn_latency", add an "uncast_" prefix to params "insn" and
14630         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
14631         using checked casts from the params, thus enabling the above
14632         change to the generated "internal_insn_latency" function.
14633
14634 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
14635
14636         PR tree-optimization/62091
14637         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
14638         handle correctly arrays.
14639         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
14640         inheritance binfos.
14641         (record_known_type): Walk into inner type.
14642         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
14643         condition on no type changes.
14644
14645 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14646
14647         * genattrtab.c (write_attr_get): Within the generated get_attr_
14648         functions, rename param "insn" to "uncast_insn" and reintroduce
14649         "insn" as an local rtx_insn * using a checked cast, so that "insn"
14650         is an rtx_insn * within insn-attrtab.c
14651
14652 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14653
14654         * output.h (peephole): Strengthen return type from rtx to
14655         rtx_insn *.
14656         * rtl.h (delete_for_peephole): Likewise for both params.
14657         * genpeep.c (main): In generated "peephole" function, strengthen
14658         return type and local "insn" from rtx to rtx_insn *.  For now,
14659         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14660         rtx_insn *, with a checked cast.
14661         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14662         locals "insn", "next", "prev" from rtx to rtx_insn *.
14663
14664 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
14665
14666         PR tree-optimization/62112
14667         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14668         * gimple-iterator.h (gsi_replace): Return bool.
14669         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14670         moved from ref_may_alias_global_p.
14671         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14672         New overloads.
14673         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14674         (stmt_kills_ref_p_1): Rename...
14675         (stmt_kills_ref_p): ... to this.
14676         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14677         stmt_kills_ref_p): Declare.
14678         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14679         Move the self-assignment case...
14680         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14681
14682 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14683
14684         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14685
14686         * emit-rtl.c (try_split): Likewise, also for locals "before" and
14687         "after".  For now, don't strengthen param "trial", which requires
14688         adding checked casts when returning it.
14689
14690 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14691
14692         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14693         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
14694         "var_location" hook from rtx to rtx_insn *.
14695         (debug_nothing_rtx): Delete in favor of...
14696         (debug_nothing_rtx_code_label): New prototype.
14697         (debug_nothing_rtx_rtx): Delete unused prototype.
14698         (debug_nothing_rtx_insn): New prototype.
14699
14700         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14701         invoking debug_hooks->var_location (in two places, one in a NOTE
14702         case of a switch statement, the other guarded by a CALL_P
14703         conditional.  Add checked cast to rtx_code_label * when invoking
14704         debug_hooks->label (within CODE_LABEL case of switch statement).
14705
14706         * dbxout.c (dbx_debug_hooks): Update "label" hook from
14707         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14708         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14709         (xcoff_debug_hooks): Likewise.
14710         * debug.c (do_nothing_debug_hooks): Likewise.
14711         (debug_nothing_rtx): Delete in favor of...
14712         (debug_nothing_rtx_insn): New function.
14713         (debug_nothing_rtx_rtx): Delete unused function.
14714         (debug_nothing_rtx_code_label): New function.
14715         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14716         debug_nothing_rtx to debug_nothing_rtx_code_label.
14717         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14718         to rtx_insn *.
14719         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14720         debug_nothing_rtx to debug_nothing_rtx_insn.
14721         (sdbout_label): Strengthen param "insn" from rtx to
14722         rtx_code_label *.
14723         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14724         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14725         "var_location" hook from debug_nothing_rtx to
14726         debug_nothing_rtx_insn.
14727
14728 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14729
14730         * recog.h (insn_output_fn): Update this function typedef to match
14731         the changes below to the generated output functions, strengthening
14732         the 2nd param from rtx to rtx_insn *.
14733
14734         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14735         insn when invoking an output function, to match the new signature
14736         of insn_output_fn with a stronger second param.
14737
14738         * genconditions.c (write_header): In the generated code for
14739         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14740         to match the other changes in this patch.
14741
14742         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14743         the generated "gen_" functions from rtx to rtx_insn * within their
14744         implementations.
14745
14746         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14747         the subfunctions within the generated "recog_", "split", "peephole2"
14748         function trees from rtx to rtx_insn *.  For now, the top-level
14749         generated functions ("recog", "split", "peephole2") continue to
14750         take a plain rtx for "insn", to avoid introducing dependencies on
14751         other patches.  Rename this 2nd param from "insn" to
14752         "uncast_insn", and reintroduce "insn" as a local variable of type
14753         rtx_insn *, initialized at the top of the generated function with
14754         a checked cast on "uncast_insn".
14755         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14756         the generated "gen_" functions from rtx to rtx_insn * within their
14757         prototypes.
14758
14759         * genoutput.c (process_template): Strengthen the 2nd param within
14760         the generated "output_" functions "insn" from rtx to rtx_insn *.
14761
14762 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14763
14764         * tree-profile.c (tree_profiling): Skip external functions
14765         when doing coverage instrumentation.
14766         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14767
14768 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14769
14770         * config/rs6000/altivec.h (vec_cpsgn): New #define.
14771         (vec_mergee): Likewise.
14772         (vec_mergeo): Likewise.
14773         (vec_cntlz): Likewise.
14774         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14775         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14776         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14777         VMRGEW, and VMRGOW.
14778         * doc/extend.texi: Document various forms of vec_cpsgn,
14779         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14780         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14781         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14782         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14783         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14784
14785 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14786
14787         * config/rs6000/rs6000.c (context.h): New include.
14788         (tree-pass.h): Likewise.
14789         (make_pass_analyze_swaps): New decl.
14790         (rs6000_option_override): Register pass_analyze_swaps.
14791         (swap_web_entry): New subsclass of web_entry_base (df.h).
14792         (special_handling_values): New enum.
14793         (union_defs): New function.
14794         (union_uses): Likewise.
14795         (insn_is_load_p): Likewise.
14796         (insn_is_store_p): Likewise.
14797         (insn_is_swap_p): Likewise.
14798         (rtx_is_swappable_p): Likewise.
14799         (insn_is_swappable_p): Likewise.
14800         (chain_purpose): New enum.
14801         (chain_contains_only_swaps): New function.
14802         (mark_swaps_for_removal): Likewise.
14803         (swap_const_vector_halves): Likewise.
14804         (adjust_subreg_index): Likewise.
14805         (permute_load): Likewise.
14806         (permute_store): Likewise.
14807         (handle_special_swappables): Likewise.
14808         (replace_swap_with_copy): Likewise.
14809         (dump_swap_insn_table): Likewise.
14810         (rs6000_analyze_swaps): Likewise.
14811         (pass_data_analyze_swaps): New pass_data.
14812         (pass_analyze_swaps): New rtl_opt_pass.
14813         (make_pass_analyze_swaps): New function.
14814         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14815
14816 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14817
14818         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14819         type from rtx to rtx_insn *.
14820         (create_copy_of_insn_rtx): Likewise.
14821         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14822         (create_copy_of_insn_rtx): Likewise, also for local "res".
14823
14824 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14825
14826         * rtl.h (find_first_parameter_load): Strengthen return type from
14827         rtx to rtx_insn *.
14828         * rtlanal.c (find_first_parameter_load): Strengthen return type
14829         from rtx to rtx_insn *.  Add checked cast for now, to postpone
14830         strengthening the params.
14831
14832 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14833
14834         PR fortran/44054
14835         * diagnostic.c: Set default caret.
14836         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14837         line is needed.
14838         * diagnostic.h (struct diagnostic_context):
14839
14840 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14841
14842         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14843         (sel_bb_head): Strengthen return type insn_t (currently just an
14844         rtx) to rtx_insn *.
14845         (sel_bb_end): Likewise.
14846
14847         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14848         (sel_bb_head): Strengthen return type and local "head" from
14849         insn_t (currently just an rtx) to rtx_insn *.
14850         (sel_bb_end): Likewise for return type.
14851         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14852         working with insn.
14853
14854 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14855
14856         * basic-block.h (get_last_bb_insn): Strengthen return type from
14857         rtx to rtx_insn *.
14858         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14859         end".
14860
14861 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14862
14863         PR fortran/44054
14864         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14865         to here ...
14866         (diagnostic_report_diagnostic): ... from here.
14867         * toplev.c (general_init): Move code to c-family.
14868
14869 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14870
14871         * df.h (web_entry_base): Replace existing struct web_entry with a
14872         new class web_entry_base with only the predecessor member.
14873         (unionfind_root): Remove declaration and move to class member.
14874         (unionfind_union): Remove declaration and move to friend
14875         function.
14876         (union_defs): Remove declaration.
14877         * web.c (web_entry_base::unionfind_root): Modify to be member
14878         function and adjust accessors.
14879         (unionfind_union): Modify to be friend function and adjust
14880         accessors.
14881         (web_entry): New subclass of web_entry_base containing the reg
14882         member.
14883         (union_match_dups): Modify for struct -> class changes.
14884         (union_defs): Likewise.
14885         (entry_register): Likewise.
14886         (pass_web::execute): Likewise.
14887
14888 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
14889
14890         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14891         builtin define __VEC_ELEMENT_REG_ORDER__.
14892
14893 2014-08-20  Martin Jambor  <mjambor@suse.cz>
14894             Wei Mi  <wmi@google.com>
14895
14896         PR ipa/60449
14897         PR middle-end/61776
14898         * tree-ssa-operands.c (update_stmt_operands): Remove
14899         MODIFIED_NORETURN_CALLS.
14900         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14901         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14902         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14903         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14904         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14905         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14906         (gimple_call_set_ctrl_altering): New func.
14907         (gimple_call_ctrl_altering_p): Ditto.
14908         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14909         (make_blocks): Use gimple_call_initialize_ctrl_altering.
14910         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14911         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14912         remove MODIFIED_NORETURN_CALLS.
14913
14914 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14915
14916         * coverage.c (coverage_compute_profile_id): Return non-0;
14917         also handle symbols with unique name.
14918         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14919
14920 2014-08-20  Steve Ellcey  <sellcey@mips.com>
14921
14922         PR middle-end/49191
14923         * doc/sourcebuild.texi (non_strict_align): New.
14924
14925 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14926
14927         * cgraphunit.c (ipa_passes, compile): Reshedule
14928         symtab_remove_unreachable_nodes passes; update comments.
14929         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14930         TODO_remove_functions before the pass; the functions ought to be
14931         already removed.
14932         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14933         TODO_remove_functions.
14934         * passes.c (pass_data_early_local_passes): Do not schedule function
14935         removal.
14936         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14937
14938 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14939
14940         PR c/59304
14941         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14942         before setting the option.
14943         * diagnostic.c (diagnostic_classify_diagnostic): Record
14944         command-line status.
14945
14946 2014-08-20  Richard Biener  <rguenther@suse.de>
14947
14948         PR lto/62190
14949         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14950         to build uint{16,32,64}_type_node.
14951
14952 2014-08-20  Terry Guo  <terry.guo@arm.com>
14953
14954         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14955         with immediate_operand.
14956
14957 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
14958
14959         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14960         "insn" from an as_a to a safe_as_a, for the case when "insn" is
14961         NULL.
14962
14963 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14964
14965         PR preprocessor/51303
14966         * incpath.c (remove_duplicates): Use cpp_warning.
14967
14968 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14969
14970         PR c/60975
14971         PR c/53063
14972         * doc/options.texi (CPP): Document it.
14973         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14974         * optc-gen.awk: Handle CPP.
14975         * opth-gen.awk: Likewise.
14976
14977 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14978
14979         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14980         rtx_insn *.
14981         (duplicate_insn_chain): Likewise.
14982         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14983         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
14984         checked cast for now (until we can strengthen the params in the
14985         same way).
14986         (duplicate_insn_chain): Likewise.
14987
14988 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14989
14990         * rtl.h (next_cc0_user): Strengthen return type from rtx to
14991         rtx_insn *.
14992         (prev_cc0_setter): Likewise.
14993
14994         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14995         rtx_insn *, adding checked casts for now as necessary.
14996         (prev_cc0_setter): Likewise.
14997
14998 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14999
15000         * expr.h (emit_move_insn): Strengthen return type from rtx to
15001         rtx_insn *.
15002         (emit_move_insn_1): Likewise.
15003         (emit_move_complex_push): Likewise.
15004         (emit_move_complex_parts): Likewise.
15005
15006         * expr.c (emit_move_via_integer): Strengthen return type from rtx
15007         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
15008         with insns.
15009         (emit_move_complex_push): Strengthen return type from rtx to
15010         rtx_insn *.
15011         (emit_move_complex): Likewise, also for local "ret".
15012         (emit_move_ccmode): Likewise.
15013         (emit_move_multi_word): Likewise for return type and locals
15014         "last_insn", "seq".
15015         (emit_move_insn_1): Likewise for return type and locals "result",
15016         "ret".
15017         (emit_move_insn): Likewise for return type and local "last_insn".
15018         (compress_float_constant): Likewise.
15019
15020 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15021
15022         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
15023         from rtx to rtx_insn *.
15024
15025         * rtl.h (emit_insn_before): Likewise.
15026         (emit_insn_before_noloc): Likewise.
15027         (emit_insn_before_setloc): Likewise.
15028         (emit_jump_insn_before): Likewise.
15029         (emit_jump_insn_before_noloc): Likewise.
15030         (emit_jump_insn_before_setloc): Likewise.
15031         (emit_call_insn_before): Likewise.
15032         (emit_call_insn_before_noloc): Likewise.
15033         (emit_call_insn_before_setloc): Likewise.
15034         (emit_debug_insn_before): Likewise.
15035         (emit_debug_insn_before_noloc): Likewise.
15036         (emit_debug_insn_before_setloc): Likewise.
15037         (emit_label_before): Likewise.
15038         (emit_insn_after): Likewise.
15039         (emit_insn_after_noloc): Likewise.
15040         (emit_insn_after_setloc): Likewise.
15041         (emit_jump_insn_after): Likewise.
15042         (emit_jump_insn_after_noloc): Likewise.
15043         (emit_jump_insn_after_setloc): Likewise.
15044         (emit_call_insn_after): Likewise.
15045         (emit_call_insn_after_noloc): Likewise.
15046         (emit_call_insn_after_setloc): Likewise.
15047         (emit_debug_insn_after): Likewise.
15048         (emit_debug_insn_after_noloc): Likewise.
15049         (emit_debug_insn_after_setloc): Likewise.
15050         (emit_label_after): Likewise.
15051         (emit_insn): Likewise.
15052         (emit_debug_insn): Likewise.
15053         (emit_jump_insn): Likewise.
15054         (emit_call_insn): Likewise.
15055         (emit_label): Likewise.
15056         (gen_clobber): Likewise.
15057         (emit_clobber): Likewise.
15058         (gen_use): Likewise.
15059         (emit_use): Likewise.
15060         (emit): Likewise.
15061
15062         (emit_barrier_before): Strengthen return type from rtx to
15063         rtx_barrier *.
15064         (emit_barrier_after): Likewise.
15065         (emit_barrier): Likewise.
15066
15067         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
15068         from rtx to rtx_insn *.  Add checked casts for now when converting
15069         "last" from rtx to rtx_insn *.
15070         (emit_insn_before_noloc): Likewise for return type.
15071         (emit_jump_insn_before_noloc): Likewise.
15072         (emit_call_insn_before_noloc): Likewise.
15073         (emit_debug_insn_before_noloc): Likewise.
15074         (emit_barrier_before): Strengthen return type and local "insn"
15075         from rtx to rtx_barrier *.
15076         (emit_label_before): Strengthen return type from rtx to
15077         rtx_insn *.  Add checked cast for now when returning param
15078         (emit_pattern_after_noloc): Strengthen return type from rtx to
15079         rtx_insn *.  Add checked casts for now when converting "last" from
15080         rtx to rtx_insn *.
15081         (emit_insn_after_noloc): Strengthen return type from rtx to
15082         rtx_insn *.
15083         (emit_jump_insn_after_noloc): Likewise.
15084         (emit_call_insn_after_noloc): Likewise.
15085         (emit_debug_insn_after_noloc): Likewise.
15086         (emit_barrier_after): Strengthen return type from rtx to
15087         rtx_barrier *.
15088         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
15089         Add checked cast for now when converting "label" from rtx to
15090         rtx_insn *.
15091         (emit_pattern_after_setloc): Strengthen return type from rtx to
15092         rtx_insn *.  Add checked casts for now when converting "last" from
15093         rtx to rtx_insn *.
15094         (emit_pattern_after): Strengthen return type from rtx to
15095         rtx_insn *.
15096         (emit_insn_after_setloc): Likewise.
15097         (emit_insn_after): Likewise.
15098         (emit_jump_insn_after_setloc): Likewise.
15099         (emit_jump_insn_after): Likewise.
15100         (emit_call_insn_after_setloc): Likewise.
15101         (emit_call_insn_after): Likewise.
15102         (emit_debug_insn_after_setloc): Likewise.
15103         (emit_debug_insn_after): Likewise.
15104         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
15105         when converting "last" from rtx to rtx_insn *.
15106         (emit_pattern_before): Strengthen return type from rtx to
15107         rtx_insn *.
15108         (emit_insn_before_setloc): Likewise.
15109         (emit_insn_before): Likewise.
15110         (emit_jump_insn_before_setloc): Likewise.
15111         (emit_jump_insn_before): Likewise.
15112         (emit_call_insn_before_setloc): Likewise.
15113         (emit_call_insn_before): Likewise.
15114         (emit_debug_insn_before_setloc): Likewise.
15115         (emit_debug_insn_before): Likewise.
15116         (emit_insn): Strengthen return type and locals "last", "insn",
15117         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
15118         within cases where we know we have an insn.
15119         (emit_debug_insn): Likewise.
15120         (emit_jump_insn): Likewise.
15121         (emit_call_insn): Strengthen return type and local "insn" from rtx
15122         to rtx_insn *.
15123         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
15124         a checked cast to rtx_insn * for now on "label".
15125         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
15126         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
15127         (emit_use): Likewise.
15128         (gen_use): Likewise, also for local "seq".
15129         (emit): Likewise for return type and local "insn".
15130         (rtx_insn): Likewise for return type and local "new_rtx".
15131
15132         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
15133         from rtx to rtx_barrier *.
15134
15135         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
15136         changed return type from rtx to rtx_insn *, we must update
15137         "emit_fn" type, and this in turn means updating...
15138         (frame_insn): ...this.  Strengthen return type from rtx to
15139         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
15140
15141 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15142
15143         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
15144         rtx to rtx_jump_table_data *.  Also for local.
15145         * rtl.h (emit_jump_table_data): Likewise.
15146
15147 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15148
15149         * basic-block.h (create_basic_block_structure): Strengthen third
15150         param "bb_note" from rtx to rtx_note *.
15151         * rtl.h (emit_note_before): Strengthen return type from rtx to
15152         rtx_note *.
15153         (emit_note_after): Likewise.
15154         (emit_note): Likewise.
15155         (emit_note_copy): Likewise.  Also, strengthen param similarly.
15156         * function.h (struct rtl_data): Strengthen field
15157         "x_stack_check_probe_note" from rtx to rtx_note *.
15158
15159         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
15160         from rtx to rtx_note *.
15161         * cfgrtl.c (create_basic_block_structure): Strengthen third param
15162         "bb_note" from rtx to rtx_note *.
15163         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
15164         when calling emit_note_copy.
15165         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
15166         rtx_note *.
15167         (emit_note_after): Likewise.
15168         (emit_note_before): Likewise.
15169         (emit_note_copy): Likewise.  Also, strengthen param similarly.
15170         (emit_note): Likewise.
15171         * except.c (emit_note_eh_region_end): Likewise for return type.
15172         Strengthen local "next" from rtx to rtx_insn *.
15173         (convert_to_eh_region_ranges): Strengthen local "note"
15174         from rtx to rtx_note *.
15175         * final.c (change_scope): Likewise.
15176         (reemit_insn_block_notes): Likewise, for both locals named "note".
15177         Also, strengthen local "insn" from rtx to rtx_insn *.
15178         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
15179         rtx to rtx_note *.
15180         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
15181         strengthen local "seq" from rtx to rtx_insn *.
15182         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
15183         to rtx_note *.
15184         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
15185         vec<rtx_note *>.
15186         (get_bb_note_from_pool): Strengthen return type from rtx to
15187         rtx_note *.
15188         (sel_create_basic_block): Strengthen local "new_bb_note" from
15189         insn_t to rtx_note *.
15190         * var-tracking.c (emit_note_insn_var_location): Strengthen local
15191         "note" from rtx to rtx_note *.
15192         (emit_notes_in_bb): Likewise.
15193
15194 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15195
15196         * function.h (struct rtl_data): Strengthen field
15197         "x_parm_birth_insn" from rtx to rtx_insn *.
15198         * function.c (struct assign_parm_data_all): Strengthen fields
15199         "first_conversion_insn" and "last_conversion_insn" from rtx to
15200         rtx_insn *.
15201
15202 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15203
15204         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
15205         to rtx_insn *; also for local "var_end_seq".
15206         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
15207         (maybe_cleanup_end_of_block): Likewise for param "last" and local
15208         "insn".
15209         (expand_gimple_cond): Likewise for locals "last2" and "last".
15210         (mark_transaction_restart_calls): Likewise for local "insn".
15211         (expand_gimple_stmt): Likewise for return type and locals "last"
15212         and "insn".
15213         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
15214         (avoid_complex_debug_insns): Likewise for param "insn".
15215         (expand_debug_locations): Likewise for locals "insn", "last",
15216         "prev_insn" and "insn2".
15217         (expand_gimple_basic_block): Likewise for local "last".
15218         (construct_exit_block): Likewise for locals "head", "end",
15219         "orig_end".
15220         (pass_expand::execute): Likewise for locals "var_seq",
15221         "var_ret_seq", "next".
15222
15223 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15224
15225         * asan.h (asan_emit_stack_protection): Strengthen return type from
15226         rtx to rtx_insn *.
15227         * asan.c (asan_emit_stack_protection): Likewise.  Add local
15228         "insns" to hold the return value.
15229
15230 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15231
15232         * basic-block.h (bb_note): Strengthen return type from rtx to
15233         rtx_note *.
15234         * sched-int.h (bb_note): Likewise.
15235         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
15236
15237 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15238
15239         * rtl.h (make_insn_raw): Strengthen return type from rtx to
15240         rtx_insn *.
15241
15242         * emit-rtl.c (make_insn_raw): Strengthen return type and local
15243         "insn" from rtx to rtx_insn *.
15244         (make_debug_insn_raw): Strengthen return type from rtx to
15245         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
15246         (make_jump_insn_raw):  Strengthen return type from rtx to
15247         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
15248         (make_call_insn_raw):  Strengthen return type from rtx to
15249         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
15250         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
15251         callback from rtx to rtx_insn *; likewise for local "insn" and
15252         "next", adding a checked cast to rtx_insn in the relevant cases of
15253         the switch statement.
15254         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
15255         callback from rtx to rtx_insn *.
15256         (emit_pattern_after_setloc): Likewise.
15257         (emit_pattern_after): Likewise.
15258         (emit_pattern_before_setloc): Likewise.
15259         (emit_pattern_before): Likewise.
15260
15261 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15262
15263         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
15264         rtx_call_insn *.
15265         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
15266         accepting an rtx_insn *.
15267         (last_call_insn): Strengthen return type from rtx to
15268         rtx_call_insn *.
15269
15270 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15271
15272         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
15273         "insns" from rtx to rtx_insn *.
15274         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
15275         locals "insn" and "prev".
15276
15277 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15278
15279         * rtl.h (tablejump_p): Strengthen third param from rtx * to
15280         rtx_jump_table_data **.
15281
15282         * cfgbuild.c (make_edges): Introduce local "table", using it in
15283         place of "tmp" for jump table data.
15284         (find_bb_boundaries): Strengthen local "table" from rtx to
15285         rtx_jump_table_data *.
15286         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15287         (outgoing_edges_match): Likewise for locals "table1" and "table2".
15288         (try_crossjump_to_edge): Likewise.
15289         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
15290         "table".
15291         (patch_jump_insn): Introduce local "table", using it in place of
15292         "tmp" for jump table data.
15293         (force_nonfallthru_and_redirect): Introduce local "table", so that
15294         call to tablejump_p can receive an rtx_jump_table_data **.  Update
15295         logic around the call to overwrite "note" appropriately if
15296         tablejump_p returns non-zero.
15297         (get_last_bb_insn): Introduce local "table", using it in place of
15298         "tmp" for jump table data.
15299         * dwarf2cfi.c (create_trace_edges): Likewise.
15300
15301         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
15302         from rtx to rtx_jump_table_data *.
15303         (create_fix_barrier): Strengthen local "tmp" from rtx to
15304         rtx_jump_table_data *.
15305         (arm_reorg): Likewise for local "table".
15306
15307         * config/s390/s390.c (s390_chunkify_start): Likewise.
15308
15309         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
15310
15311         * jump.c (delete_related_insns): Strengthen local "lab_next" from
15312         rtx to rtx_jump_table_data *.
15313
15314         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
15315         rtx_jump_table_data **.  Add a checked cast when writing through
15316         the pointer: we know there that local "table" is non-NULL and that
15317         JUMP_TABLE_DATA_P (table) holds.
15318         (label_is_jump_target_p): Introduce local "table", using it in
15319         place of "tmp" for jump table data.
15320
15321 2014-08-19  Marek Polacek  <polacek@redhat.com>
15322
15323         PR c++/62153
15324         * doc/invoke.texi: Document -Wbool-compare.
15325
15326 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15327
15328         * rtl.h (entry_of_function): Strengthen return type from rtx to
15329         rtx_insn *.
15330         * cfgrtl.c (entry_of_function): Likewise.
15331
15332 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15333
15334         * emit-rtl.h (get_insns): Strengthen return type from rtx to
15335         rtx_insn *, adding a checked cast for now.
15336         (get_last_insn): Likewise.
15337
15338 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15339
15340         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
15341         rtx_code_label *.
15342
15343         * emit-rtl.c (gen_label_rtx): Likewise.
15344
15345 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15346
15347         * rtl.h (previous_insn): Strengthen return type from rtx to
15348         rtx_insn *.
15349         (next_insn): Likewise.
15350         (prev_nonnote_insn): Likewise.
15351         (prev_nonnote_insn_bb): Likewise.
15352         (next_nonnote_insn): Likewise.
15353         (next_nonnote_insn_bb): Likewise.
15354         (prev_nondebug_insn): Likewise.
15355         (next_nondebug_insn): Likewise.
15356         (prev_nonnote_nondebug_insn): Likewise.
15357         (next_nonnote_nondebug_insn): Likewise.
15358         (prev_real_insn): Likewise.
15359         (next_real_insn): Likewise.
15360         (prev_active_insn): Likewise.
15361         (next_active_insn): Likewise.
15362
15363         * emit-rtl.c (next_insn): Strengthen return type from rtx to
15364         rtx_insn *, adding a checked cast.
15365         (previous_insn): Likewise.
15366         (next_nonnote_insn): Likewise.
15367         (next_nonnote_insn_bb): Likewise.
15368         (prev_nonnote_insn): Likewise.
15369         (prev_nonnote_insn_bb): Likewise.
15370         (next_nondebug_insn): Likewise.
15371         (prev_nondebug_insn): Likewise.
15372         (next_nonnote_nondebug_insn): Likewise.
15373         (prev_nonnote_nondebug_insn): Likewise.
15374         (next_real_insn): Likewise.
15375         (prev_real_insn): Likewise.
15376         (next_active_insn): Likewise.
15377         (prev_active_insn): Likewise.
15378
15379         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
15380         param "stepfunc" so that it returns an rtx_insn * rather than an
15381         rtx, to track the change to prev_nonnote_insn_bb, which is the
15382         only function this is called with.
15383         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
15384
15385 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
15386
15387         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
15388         assert.
15389
15390 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15391
15392         * coretypes.h (class rtx_debug_insn): Add forward declaration.
15393         (class rtx_nonjump_insn): Likewise.
15394         (class rtx_jump_insn): Likewise.
15395         (class rtx_call_insn): Likewise.
15396         (class rtx_jump_table_data): Likewise.
15397         (class rtx_barrier): Likewise.
15398         (class rtx_code_label): Likewise.
15399         (class rtx_note): Likewise.
15400
15401         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
15402         adding the invariant DEBUG_INSN_P (X).
15403         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
15404         the invariant NONJUMP_INSN_P (X).
15405         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
15406         the invariant JUMP_P (X).
15407         (class rtx_call_insn): New, a subclass of rtx_insn, adding
15408         the invariant CALL_P (X).
15409         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
15410         invariant JUMP_TABLE_DATA_P (X).
15411         (class rtx_barrier): New, a subclass of rtx_insn, adding the
15412         invariant BARRIER_P (X).
15413         (class rtx_code_label): New, a subclass of rtx_insn, adding
15414         the invariant LABEL_P (X).
15415         (class rtx_note): New, a subclass of rtx_insn, adding
15416         the invariant NOTE_P(X).
15417         (is_a_helper <rtx_debug_insn *>::test): New.
15418         (is_a_helper <rtx_nonjump_insn *>::test): New.
15419         (is_a_helper <rtx_jump_insn *>::test): New.
15420         (is_a_helper <rtx_call_insn *>::test): New.
15421         (is_a_helper <rtx_jump_table_data *>::test): New functions,
15422         overloaded for both rtx and rtx_insn *.
15423         (is_a_helper <rtx_barrier *>::test): New.
15424         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
15425         for both rtx and rtx_insn *.
15426         (is_a_helper <rtx_note *>::test): New.
15427
15428 2014-08-19  Marek Polacek  <polacek@redhat.com>
15429
15430         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
15431         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15432         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
15433         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15434
15435 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15436
15437         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
15438         rtx_insn *.  To help with transition, for now, convert from an
15439         access macro into a pair of functions: BND_TO, returning an
15440         rtx_insn *, and...
15441         (SET_BND_TO): New function, for use where BND_TO is used as an
15442         lvalue.
15443
15444         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
15445         SET_BND_TO.
15446         (BND_TO): New function, adding a checked cast.
15447         (SET_BND_TO): New function.
15448
15449         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
15450         SET_BND_TO.
15451         (compute_av_set_on_boundaries): Likewise.
15452
15453 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15454
15455         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
15456         destination if it is used in source.
15457         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
15458         (*popcount<mode>2_falsedep_1): Likewise.
15459
15460 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15461
15462         PR other/62168
15463         * configure.ac: Set install_gold_as_default to no first.
15464         * configure: Regenerated.
15465
15466 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15467
15468         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
15469         "note_list" field will eventually be an rtx_insn *.  To help with
15470         transition, for now, convert from an access macro into a pair of
15471         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
15472         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
15473         used as an lvalue.
15474
15475         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
15476         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
15477
15478         * sel-sched-ir.c (init_bb): Likewise.
15479         (sel_restore_notes): Likewise.
15480         (move_bb_info): Likewise.
15481         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
15482         (SET_BB_NOTE_LIST): New function.
15483
15484 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15485
15486         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
15487         field will eventually be an rtx_insn *.  To help with transition,
15488         for now, convert from an access macro into a pair of functions:
15489         VINSN_INSN_RTX, returning an rtx_insn *, and...
15490         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
15491         is used as an lvalue.
15492
15493         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
15494         SET_VINSN_INSN_RTX where it's used as an lvalue.
15495         (VINSN_INSN_RTX): New function.
15496         (SET_VINSN_INSN_RTX): New function.
15497
15498 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15499
15500         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
15501         eventually be rtx_insn *, but to help with transition, for now,
15502         convert from an access macro into a pair of functions: DEP_PRO
15503         returning an rtx_insn * and...
15504         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
15505         lvalue, returning an rtx&.
15506         (DEP_CON): Analogous changes to DEP_PRO above.
15507         (SET_DEP_CON): Likewise.
15508
15509         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
15510         an lvalue to SET_DEP_CON.
15511         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
15512         (sd_copy_back_deps): Likewise for DEP_CON.
15513         (DEP_PRO): New function, adding a checked cast for now.
15514         (DEP_CON): Likewise.
15515         (SET_DEP_PRO): New function.
15516         (SET_DEP_CON): Likewise.
15517
15518 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15519
15520         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
15521         (extra_options): Add i386/cygwin.opt.
15522         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
15523         (CPP_SPEC): Accept -pthread.
15524         (LINK_SPEC): Ditto.
15525         (GOMP_SELF_SPECS): Update comment.
15526         * config/i386/cygwin.opt: New file for -pthread flag.
15527
15528 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15529
15530         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
15531         * df.h (DF_REF_INSN): Convert from a macro to a function, so
15532         that we can return an rtx_insn *.
15533
15534 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15535
15536         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
15537         when building executables, not DLLs.  Add --large-address-aware
15538         under the same conditions.
15539         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
15540         when building executables, not DLLs.  Add --large-address-aware
15541         under the same conditions when using -m32.
15542
15543         * config/i386/cygwin-stdint.h: Throughout, make type
15544         definitions dependent on target architecture, not host.
15545
15546 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15547
15548         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
15549         the return type from rtx to rtx_insn *,  which will enable various
15550         conversions in followup patches.  For now this is is done by a
15551         checked cast.
15552         (NEXT_INSN): Likewise.
15553         (SET_PREV_INSN): Convert to an inline function.  This is intended
15554         for use as an lvalue, and so returns an rtx& to allow in-place
15555         modification.
15556         (SET_NEXT_INSN): Likewise.
15557
15558 2014-07-08  Mark Wielaard  <mjw@redhat.com>
15559
15560         PR debug/59051
15561         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
15562
15563 2014-08-19  Marek Polacek  <polacek@redhat.com>
15564
15565         PR c/61271
15566         * cgraphunit.c (handle_alias_pairs): Fix condition.
15567
15568 2014-08-19  Richard Biener  <rguenther@suse.de>
15569
15570         * gimple-fold.c (fold_gimple_assign): Properly build a
15571         null-pointer constant when devirtualizing addresses.
15572
15573 2014-07-07  Mark Wielaard  <mjw@redhat.com>
15574
15575         * dwarf2out.c (decl_quals): New function.
15576         (modified_type_die): Take one cv_quals argument instead of two,
15577         one for const and one for volatile.
15578         (add_type_attribute): Likewise.
15579         (generic_parameter_die): Call add_type_attribute with one modifier
15580         argument.
15581         (base_type_for_mode): Likewise.
15582         (add_bounds_info): Likewise.
15583         (add_subscript_info): Likewise.
15584         (gen_array_type_die): Likewise.
15585         (gen_descr_array_type_die): Likewise.
15586         (gen_entry_point_die): Likewise.
15587         (gen_enumeration_type_die): Likewise.
15588         (gen_formal_parameter_die): Likewise.
15589         (gen_subprogram_die): Likewise.
15590         (gen_variable_die): Likewise.
15591         (gen_const_die): Likewise.
15592         (gen_field_die): Likewise.
15593         (gen_pointer_type_die): Likewise.
15594         (gen_reference_type_die): Likewise.
15595         (gen_ptr_to_mbr_type_die): Likewise.
15596         (gen_inheritance_die): Likewise.
15597         (gen_subroutine_type_die): Likewise.
15598         (gen_typedef_die): Likewise.
15599         (force_type_die): Likewise.
15600
15601 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15602
15603         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
15604         if unset.
15605         * configure: Regenerate.
15606
15607 2014-08-19  Richard Biener  <rguenther@suse.de>
15608
15609         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
15610         DECL_EXTERNALs in BLOCKs as non-references.
15611         * tree-streamer-out.c (streamer_write_chain): Likewise.
15612
15613 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15614             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15615             Anna Tikhonova  <anna.tikhonova@intel.com>
15616             Ilya Tocar  <ilya.tocar@intel.com>
15617             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15618             Ilya Verbin  <ilya.verbin@intel.com>
15619             Kirill Yukhin  <kirill.yukhin@intel.com>
15620             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15621
15622         * config/i386/sse.md
15623         (define_mode_iterator VI48_AVX512F): Delete.
15624         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
15625         (define_mode_iterator VI2_AVX512VL): Ditto.
15626         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
15627         Delete.
15628         (define_insn
15629         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
15630         New.
15631         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
15632         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
15633         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15634         with VI48_AVX512F_AVX512VL): New.
15635         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15636         with VI2_AVX512VL): Ditto.
15637
15638 2014-08-19  Marek Polacek  <polacek@redhat.com>
15639
15640         * doc/invoke.texi: Document -Wc99-c11-compat.
15641
15642 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15643
15644         * rtl.h (PREV_INSN): Split macro in two: the existing one,
15645         for rvalues, and...
15646         (SET_PREV_INSN): New macro, for use as an lvalue.
15647         (NEXT_INSN, SET_NEXT_INSN): Likewise.
15648
15649         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
15650         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
15651         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15652         (fixup_abnormal_edges): Likewise.
15653         (unlink_insn_chain): Likewise.
15654         (fixup_reorder_chain): Likewise.
15655         (cfg_layout_delete_block): Likewise.
15656         (cfg_layout_merge_blocks): Likewise.
15657         * combine.c (update_cfg_for_uncondjump): Likewise.
15658         * emit-rtl.c (link_insn_into_chain): Likewise.
15659         (remove_insn): Likewise.
15660         (delete_insns_since): Likewise.
15661         (reorder_insns_nobb): Likewise.
15662         (emit_insn_after_1): Likewise.
15663         * final.c (rest_of_clean_state): Likewise.
15664         (final_scan_insn): Likewise.
15665         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15666         * haifa-sched.c (concat_note_lists): Likewise.
15667         (remove_notes): Likewise.
15668         (restore_other_notes): Likewise.
15669         (move_insn): Likewise.
15670         (unlink_bb_notes): Likewise.
15671         (restore_bb_notes): Likewise.
15672         * jump.c (delete_for_peephole): Likewise.
15673         * optabs.c (emit_libcall_block_1): Likewise.
15674         * reorg.c (emit_delay_sequence): Likewise.
15675         (fill_simple_delay_slots): Likewise.
15676         * sel-sched-ir.c (sel_move_insn): Likewise.
15677         (sel_remove_insn): Likewise.
15678         (get_bb_note_from_pool): Likewise.
15679         * sel-sched.c (move_nop_to_previous_block): Likewise.
15680
15681         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15682         * config/c6x/c6x.c (gen_one_bundle): Likewise.
15683         (c6x_gen_bundles): Likewise.
15684         (hwloop_optimize): Likewise.
15685         * config/frv/frv.c (frv_function_prologue): Likewise.
15686         (frv_register_nop): Likewise.
15687         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15688         (ia64_reorg): Likewise.
15689         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15690         (mep_make_bundle): Likewise.
15691         (mep_bundle_insns): Likewise.
15692         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15693         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15694         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15695
15696 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15697
15698         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
15699         return type from rtx to rtx_insn *.
15700         (BB_END): Likewise.
15701         (BB_HEADER): Likewise.
15702         (BB_FOOTER): Likewise.
15703         (SET_BB_HEAD): Convert to a function.
15704         (SET_BB_END): Likewise.
15705         (SET_BB_HEADER): Likewise.
15706         (SET_BB_FOOTER): Likewise.
15707
15708         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15709         Strengthen the return type from rtx to rtx_insn *.  For now, this
15710         is done by adding a checked cast, but this will eventually
15711         become a field lookup.
15712         (BB_END): Likewise.
15713         (BB_HEADER): Likewise.
15714         (BB_FOOTER): Likewise.
15715         (SET_BB_HEAD): New function, from macro of same name.  This is
15716         intended for use as an lvalue, and so returns an rtx& to allow
15717         in-place modification.
15718         (SET_BB_END): Likewise.
15719         (SET_BB_HEADER): Likewise.
15720         (SET_BB_FOOTER): Likewise.
15721
15722 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15723
15724         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15725         for rvalues, and...
15726         (SET_BB_HEAD): New macro, for use as a lvalue.
15727         (BB_END, SET_BB_END): Likewise.
15728         (BB_HEADER, SET_BB_HEADER): Likewise.
15729         (BB_FOOTER, SET_BB_FOOTER): Likewise.
15730
15731         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15732         of BB_* macros into SET_BB_* macros.
15733         (fix_crossing_unconditional_branches): Likewise.
15734         * caller-save.c (save_call_clobbered_regs): Likewise.
15735         (insert_one_insn): Likewise.
15736         * cfgbuild.c (find_bb_boundaries): Likewise.
15737         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15738         (outgoing_edges_match): Likewise.
15739         (try_optimize_cfg): Likewise.
15740         * cfgexpand.c (expand_gimple_cond): Likewise.
15741         (expand_gimple_tailcall): Likewise.
15742         (expand_gimple_basic_block): Likewise.
15743         (construct_exit_block): Likewise.
15744         * cfgrtl.c (delete_insn): Likewise.
15745         (create_basic_block_structure): Likewise.
15746         (rtl_delete_block): Likewise.
15747         (rtl_split_block): Likewise.
15748         (emit_nop_for_unique_locus_between): Likewise.
15749         (rtl_merge_blocks): Likewise.
15750         (block_label): Likewise.
15751         (try_redirect_by_replacing_jump): Likewise.
15752         (emit_barrier_after_bb): Likewise.
15753         (fixup_abnormal_edges): Likewise.
15754         (record_effective_endpoints): Likewise.
15755         (relink_block_chain): Likewise.
15756         (fixup_reorder_chain): Likewise.
15757         (fixup_fallthru_exit_predecessor): Likewise.
15758         (cfg_layout_duplicate_bb): Likewise.
15759         (cfg_layout_split_block): Likewise.
15760         (cfg_layout_delete_block): Likewise.
15761         (cfg_layout_merge_blocks): Likewise.
15762         * combine.c (update_cfg_for_uncondjump): Likewise.
15763         * emit-rtl.c (add_insn_after): Likewise.
15764         (remove_insn): Likewise.
15765         (reorder_insns): Likewise.
15766         (emit_insn_after_1): Likewise.
15767         * haifa-sched.c (get_ebb_head_tail): Likewise.
15768         (restore_other_notes): Likewise.
15769         (move_insn): Likewise.
15770         (sched_extend_bb): Likewise.
15771         (fix_jump_move): Likewise.
15772         * ifcvt.c (noce_process_if_block): Likewise.
15773         (dead_or_predicable): Likewise.
15774         * ira.c (update_equiv_regs): Likewise.
15775         * reg-stack.c (change_stack): Likewise.
15776         * sel-sched-ir.c (sel_move_insn): Likewise.
15777         * sel-sched.c (move_nop_to_previous_block): Likewise.
15778
15779         * config/c6x/c6x.c (hwloop_optimize): Likewise.
15780         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15781
15782 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15783
15784         * rtl.h (for_each_rtx_in_insn): New function.
15785         * rtlanal.c (for_each_rtx_in_insn): Likewise.
15786
15787 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15788
15789         * coretypes.h (class rtx_insn): Add forward declaration.
15790
15791         * rtl.h: Include is-a.h.
15792         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15793         workaround to ensure gengtype knows inheritance is occurring,
15794         whilst continuing to use the pre-existing special-casing for
15795         rtx_def.
15796         (class rtx_insn): New subclass of rtx_def, adding the
15797         invariant that we're dealing with something we can sanely use
15798         INSN_UID, NEXT_INSN, PREV_INSN on.
15799         (is_a_helper <rtx_insn *>::test): New.
15800         (is_a_helper <const rtx_insn *>::test): New.
15801
15802 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15803
15804         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15805
15806 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15807
15808         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15809         comdats as extern.
15810
15811 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15812
15813         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15814         to BUILT_IN_UNREACHABLE.
15815
15816 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
15817
15818         PR target/62011
15819         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15820         New tune flag.
15821         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15822         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15823         (ffs<mode>2): Do not expand with tzcnt for
15824         TARGET_AVOID_FALSE_DEP_FOR_BMI.
15825         (ffssi2_no_cmove): Ditto.
15826         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15827         (ctz<mode>2): New expander.
15828         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15829         (*ctz<mode>2_falsedep): New insn.
15830         (*ctz<mode>2): Rename from ctz<mode>2.
15831         (clz<mode>2_lzcnt): New expander.
15832         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15833         (*clz<mode>2_lzcnt_falsedep): New insn.
15834         (*clz<mode>2): Rename from ctz<mode>2.
15835         (popcount<mode>2): New expander.
15836         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15837         (*popcount<mode>2_falsedep): New insn.
15838         (*popcount<mode>2): Rename from ctz<mode>2.
15839         (*popcount<mode>2_cmp): Remove.
15840         (*popcountsi2_cmp_zext): Ditto.
15841
15842 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
15843
15844         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15845         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15846         * config/microblaze/microblaze.h
15847         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15848
15849 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
15850
15851         PR other/62168
15852         * configure.ac: Set install_gold_as_default to no for
15853         --enable-gold=no.
15854         * configure: Regenerated.
15855
15856 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
15857
15858         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15859         * config.in: Add undef of HAVE_isl.
15860         * configure: Regenerate.
15861         * configure.ac: Add definition of HAVE_isl.
15862         * graphite-blocking.c: Add checking of HAVE_isl.
15863         * graphite-dependences.c: Likewise.
15864         * graphite-interchange.c: Likewise.
15865         * graphite-isl-ast-to-gimple.c: Likewise.
15866         * graphite-optimize-isl.c: Likewise.
15867         * graphite-poly.c: Likewise.
15868         * graphite-scop-detection.c: Likewise.
15869         * graphite-sese-to-poly.c: Likewise.
15870         * graphite.c: Likewise.
15871         * toplev.c: Replace the checking of HAVE_cloog with the checking
15872         of HAVE_isl.
15873
15874 2014-08-18  Richard Biener  <rguenther@suse.de>
15875
15876         PR tree-optimization/62090
15877         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15878         (fold_builtin_3): Do not fold snprintf.
15879         (fold_builtin_4): Likewise.
15880         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15881         moved from builtins.c.
15882         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15883         (gimple_fold_builtin): Do not fold sprintf here.
15884
15885 2014-08-18  Richard Biener  <rguenther@suse.de>
15886
15887         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15888         code to ...
15889         (maybe_canonicalize_mem_ref_addr): ... this function.
15890         (fold_stmt_1): Apply it here before all simplification.
15891
15892 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
15893
15894         PR ipa/61800
15895         * cgraph.h (cgraph_node::create_indirect_edge): Add
15896         compute_indirect_info param.
15897         * cgraph.c (cgraph_node::create_indirect_edge): Compute
15898         indirect_info only when it is required.
15899         * cgraphclones.c (cgraph_clone_edge): Do not recompute
15900         indirect_info fore cloned indirect edge.
15901
15902 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15903             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15904             Anna Tikhonova  <anna.tikhonova@intel.com>
15905             Ilya Tocar  <ilya.tocar@intel.com>
15906             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15907             Ilya Verbin  <ilya.verbin@intel.com>
15908             Kirill Yukhin  <kirill.yukhin@intel.com>
15909             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15910
15911         * config/i386/sse.md
15912         (define_mode_iterator VI8_AVX2_AVX512BW): New.
15913         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15914
15915 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15916             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15917             Anna Tikhonova  <anna.tikhonova@intel.com>
15918             Ilya Tocar  <ilya.tocar@intel.com>
15919             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15920             Ilya Verbin  <ilya.verbin@intel.com>
15921             Kirill Yukhin  <kirill.yukhin@intel.com>
15922             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15923
15924         * config/i386/sse.md
15925         (define_mode_iterator VF1_AVX512VL): New.
15926         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15927         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15928         New.
15929
15930 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15931             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15932             Anna Tikhonova  <anna.tikhonova@intel.com>
15933             Ilya Tocar  <ilya.tocar@intel.com>
15934             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15935             Ilya Verbin  <ilya.verbin@intel.com>
15936             Kirill Yukhin  <kirill.yukhin@intel.com>
15937             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15938
15939         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15940         * config/i386/i386.md
15941         (define_code_iterator any_float): New.
15942         (define_code_attr floatsuffix): New.
15943         * config/i386/sse.md
15944         (define_mode_iterator VF1_128_256VL): New.
15945         (define_mode_iterator VF2_512_256VL): New.
15946         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15947         TARGET check.
15948         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15949         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15950         New.
15951         (define_mode_attr qq2pssuff): New.
15952         (define_mode_attr sselongvecmode): New.
15953         (define_mode_attr sselongvecmodelower): New.
15954         (define_mode_attr sseintvecmode3): New.
15955         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15956         New.
15957         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15958         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15959         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15960         (define_insn "ufloatv2siv2df2<mask_name>"): New.
15961
15962 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15963             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15964             Anna Tikhonova  <anna.tikhonova@intel.com>
15965             Ilya Tocar  <ilya.tocar@intel.com>
15966             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15967             Ilya Verbin  <ilya.verbin@intel.com>
15968             Kirill Yukhin  <kirill.yukhin@intel.com>
15969             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15970
15971         * config/i386/sse.md
15972         (define_mode_iterator VF2_AVX512VL): New.
15973         (define_mode_attr sseintvecmode2): New.
15974         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15975         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15976         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15977         (define_insn
15978         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15979         Ditto.
15980         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15981         Ditto.
15982         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15983         Ditto.
15984
15985 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15986             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15987             Anna Tikhonova  <anna.tikhonova@intel.com>
15988             Ilya Tocar  <ilya.tocar@intel.com>
15989             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15990             Ilya Verbin  <ilya.verbin@intel.com>
15991             Kirill Yukhin  <kirill.yukhin@intel.com>
15992             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15993
15994         * config/i386/i386.md
15995         (define_insn "*movoi_internal_avx"): Add evex version.
15996         (define_insn "*movti_internal"): Ditto.
15997
15998 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15999             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16000             Anna Tikhonova  <anna.tikhonova@intel.com>
16001             Ilya Tocar  <ilya.tocar@intel.com>
16002             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16003             Ilya Verbin  <ilya.verbin@intel.com>
16004             Kirill Yukhin  <kirill.yukhin@intel.com>
16005             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16006
16007         * config/i386/i386.md
16008         (define_attr "isa"): Add avx512dq, noavx512dq.
16009         (define_attr "enabled"): Ditto.
16010         * config/i386/sse.md
16011         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
16012
16013 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16014             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16015             Anna Tikhonova  <anna.tikhonova@intel.com>
16016             Ilya Tocar  <ilya.tocar@intel.com>
16017             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16018             Ilya Verbin  <ilya.verbin@intel.com>
16019             Kirill Yukhin  <kirill.yukhin@intel.com>
16020             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16021
16022         * config/i386/i386.c
16023         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
16024         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
16025         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
16026         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
16027         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
16028         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
16029         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
16030         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
16031         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
16032         * config/i386/sse.md
16033         (define_mode_iterator VMOVE): Allow V4TI mode.
16034         (define_mode_iterator V_AVX512VL): New.
16035         (define_mode_iterator V): New handling for AVX512VL.
16036         (define_insn "avx512f_load<mode>_mask"): Delete.
16037         (define_insn "<avx512>_load<mode>_mask"): New.
16038         (define_insn "avx512f_store<mode>_mask"): Delete.
16039         (define_insn "<avx512>_store<mode>_mask"): New.
16040
16041
16042 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
16043
16044         PR sanitizer/62089
16045         * asan.c (instrument_derefs): Fix bitfield check.
16046
16047 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
16048
16049         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
16050         * config/rs6000/htm.md (ttest): Remove clobber.
16051         * config/rs6000/predicates.md (any_mask_operand): New predicate.
16052         (and_operand): Reformat.
16053         (and_2rld_operand): New predicate.
16054         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
16055         parameter.
16056         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
16057         parameter.  Handle AND directly.
16058         (rs6000_split_logical_di): Remove last parameter.
16059         (rs6000_split_logical): Remove last parameter.  Remove obsolete
16060         comment.
16061         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
16062         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
16063         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
16064         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
16065         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
16066         and 5 anonymous splitters):  Delete.
16067         (and<mode>3): New expander.
16068         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
16069         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
16070         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
16071         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
16072         (floatdisf2_internal1): Remove clobbers.
16073         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
16074         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
16075         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
16076         (and<mode>3 for BOOL_128): Remove clobber.
16077         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
16078         rs6000_split_logical.
16079         (*bool<mode>3_internal for BOOL_128): Adjust call of
16080         rs6000_split_logical.
16081         (*boolc<mode>3_internal1 for BOOL_128,
16082         *boolc<mode>3_internal2 for BOOL_128,
16083         *boolcc<mode>3_internal1 for BOOL_128,
16084         *boolcc<mode>3_internal2 for BOOL_128,
16085         *eqv<mode>3_internal1 for BOOL_128,
16086         *eqv<mode>3_internal2 for BOOL_128,
16087         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
16088         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
16089         clobber.
16090         (*vec_reload_and_reg_<mptrsize>): Delete.
16091
16092 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
16093
16094         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
16095         and split, *boolccsi3_internal3 and split): Delete.
16096         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
16097         *boolccdi3_internal3 and split): Delete.
16098         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
16099         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
16100
16101 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
16102
16103         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
16104         and split, *boolcsi3_internal3 and split): Delete.
16105         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
16106         *boolcdi3_internal3 and split): Delete.
16107         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
16108
16109 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
16110
16111         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
16112         <'u'>: Also support printing the low-order 16 bits.
16113         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
16114         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
16115         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
16116         *booldi3_internal3 and split): Delete.
16117         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
16118         *bool<mode>3_dot2): New.
16119         (two anonymous define_splits for non_logical_cint_operand): Merge.
16120
16121 2014-08-17  Marek Polacek  <polacek@redhat.com>
16122             Manuel López-Ibáñez  <manu@gcc.gnu.org>
16123
16124         PR c/62059
16125         * diagnostic.c (adjust_line): Add gcc_checking_assert.
16126         (diagnostic_show_locus): Don't print caret diagnostic
16127         if a column is larger than the line_width.
16128
16129 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
16130
16131         * common.opt: Make the ISL AST generator to be the main code generator
16132         of Graphite.
16133
16134 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
16135
16136         * wide-int.h (generic_wide_int): Declare as class instead of struct.
16137
16138 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
16139
16140         PR target/61641
16141         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
16142         Declare.
16143         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
16144         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
16145         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
16146         Define.
16147         * config/pa/pa.md (begin_brtab): Delete insn.
16148         (end_brtab): Likewise.
16149
16150 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16151
16152         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
16153
16154 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
16155
16156         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
16157         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
16158         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
16159         (get_dynamic_type): Remove.
16160         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
16161         (clear_speculation): Bring to ipa-deivrt.h
16162         (get_class_context): Rename to ...
16163         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
16164         (contains_type_p): Update.
16165         (get_dynamic_type): Rename to ...
16166         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
16167         (possible_polymorphic_call_targets): UPdate.
16168         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
16169         * ipa-prop.c (ipa_analyze_call_uses): Update.
16170
16171 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
16172
16173         * doc/invoke.texi (SH options): Document missing processor variant
16174         options.  Remove references to Hitachi.  Undocument deprecated mspace
16175         option.
16176
16177 2014-08-15  Jason Merrill  <jason@redhat.com>
16178
16179         * tree.c (type_hash_canon): Uncomment assert.
16180
16181 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16182
16183         * input.h (in_system_header_at): Add comment.
16184
16185 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16186
16187         PR fortran/44054
16188         * diagnostic.c (build_message_string): Make it extern.
16189         * diagnostic.h (build_message_string): Make it extern.
16190
16191 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
16192
16193         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
16194         load/store from/to non-floating class pseudo.
16195
16196 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16197
16198         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
16199
16200 2014-08-15  Richard Biener  <rguenther@suse.de>
16201
16202         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
16203         (get_constraint_for_ssa_var): Remove dead code.
16204         (get_constraint_for_1): Adjust.
16205         (find_what_var_points_to): Likewise.
16206         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
16207
16208 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
16209
16210         PR target/61878
16211         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
16212         (_mm512_mask_cmpge_epu32_mask): Ditto.
16213         (_mm512_cmpge_epu32_mask): Ditto.
16214         (_mm512_mask_cmpge_epi64_mask): Ditto.
16215         (_mm512_cmpge_epi64_mask): Ditto.
16216         (_mm512_mask_cmpge_epu64_mask): Ditto.
16217         (_mm512_cmpge_epu64_mask): Ditto.
16218         (_mm512_mask_cmple_epi32_mask): Ditto.
16219         (_mm512_cmple_epi32_mask): Ditto.
16220         (_mm512_mask_cmple_epu32_mask): Ditto.
16221         (_mm512_cmple_epu32_mask): Ditto.
16222         (_mm512_mask_cmple_epi64_mask): Ditto.
16223         (_mm512_cmple_epi64_mask): Ditto.
16224         (_mm512_mask_cmple_epu64_mask): Ditto.
16225         (_mm512_cmple_epu64_mask): Ditto.
16226         (_mm512_mask_cmplt_epi32_mask): Ditto.
16227         (_mm512_cmplt_epi32_mask): Ditto.
16228         (_mm512_mask_cmplt_epu32_mask): Ditto.
16229         (_mm512_cmplt_epu32_mask): Ditto.
16230         (_mm512_mask_cmplt_epi64_mask): Ditto.
16231         (_mm512_cmplt_epi64_mask): Ditto.
16232         (_mm512_mask_cmplt_epu64_mask): Ditto.
16233         (_mm512_cmplt_epu64_mask): Ditto.
16234         (_mm512_mask_cmpneq_epi32_mask): Ditto.
16235         (_mm512_mask_cmpneq_epu32_mask): Ditto.
16236         (_mm512_cmpneq_epu32_mask): Ditto.
16237         (_mm512_mask_cmpneq_epi64_mask): Ditto.
16238         (_mm512_cmpneq_epi64_mask): Ditto.
16239         (_mm512_mask_cmpneq_epu64_mask): Ditto.
16240         (_mm512_cmpneq_epu64_mask): Ditto.
16241         (_mm512_castpd_ps): Ditto.
16242         (_mm512_castpd_si512): Ditto.
16243         (_mm512_castps_pd): Ditto.
16244         (_mm512_castps_si512): Ditto.
16245         (_mm512_castsi512_ps): Ditto.
16246         (_mm512_castsi512_pd): Ditto.
16247         (_mm512_castpd512_pd128): Ditto.
16248         (_mm512_castps512_ps128): Ditto.
16249         (_mm512_castsi512_si128): Ditto.
16250         (_mm512_castpd512_pd256): Ditto.
16251         (_mm512_castps512_ps256): Ditto.
16252         (_mm512_castsi512_si256): Ditto.
16253         (_mm512_castpd128_pd512): Ditto.
16254         (_mm512_castps128_ps512): Ditto.
16255         (_mm512_castsi128_si512): Ditto.
16256         (_mm512_castpd256_pd512): Ditto.
16257         (_mm512_castps256_ps512): Ditto.
16258         (_mm512_castsi256_si512): Ditto.
16259         (_mm512_cmpeq_epu32_mask): Ditto.
16260         (_mm512_mask_cmpeq_epu32_mask): Ditto.
16261         (_mm512_mask_cmpeq_epu64_mask): Ditto.
16262         (_mm512_cmpeq_epu64_mask): Ditto.
16263         (_mm512_cmpgt_epu32_mask): Ditto.
16264         (_mm512_mask_cmpgt_epu32_mask): Ditto.
16265         (_mm512_mask_cmpgt_epu64_mask): Ditto.
16266         (_mm512_cmpgt_epu64_mask): Ditto.
16267         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
16268         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
16269         * config/i386/i386.c (enum ix86_builtins): Add
16270         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
16271         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
16272         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
16273         (bdesc_args): Add __builtin_ia32_si512_256si,
16274         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
16275         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
16276         __builtin_ia32_pd512_pd.
16277         (ix86_expand_args_builtin): Handle new FTYPEs.
16278         * config/i386/sse.md (castmode): Add 512-bit modes.
16279         (AVX512MODE2P): New.
16280         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
16281         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
16282
16283 2014-08-15  Richard Biener  <rguenther@suse.de>
16284
16285         * fold-const.c (tree_swap_operands_p): Put all constants
16286         last, also strip sign-changing NOPs when considering further
16287         canonicalization.  Canonicalize also when optimizing for size.
16288
16289 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16290
16291         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
16292         one_match > zero_match case to just before simple_sequence.
16293
16294 2014-08-15  Richard Biener  <rguenther@suse.de>
16295
16296         * data-streamer.h (streamer_string_index, string_for_index):
16297         Remove.
16298         * data-streamer-out.c (streamer_string_index): Make static.
16299         * data-streamer-in.c (string_for_index): Likewise.
16300         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
16301         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
16302
16303 2014-08-15  Richard Biener  <rguenther@suse.de>
16304
16305         PR tree-optimization/62031
16306         * tree-data-ref.c (dr_analyze_indices): Do not set
16307         DR_UNCONSTRAINED_BASE.
16308         (dr_may_alias_p): All indirect accesses have to go the
16309         formerly DR_UNCONSTRAINED_BASE path.
16310         * tree-data-ref.h (struct indices): Remove
16311         unconstrained_base member.
16312         (DR_UNCONSTRAINED_BASE): Remove.
16313
16314 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
16315
16316         PR middle-end/62092
16317         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
16318         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
16319         in OMP_CLAUSE_MAP in some outer target region.
16320
16321 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
16322
16323         * tree-ssa-loop-ivopts.c (ivopts_data): New field
16324         name_expansion_cache.
16325         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
16326         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
16327         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
16328         (difference_cannot_overflow_p): New parameter.  Use affine
16329         expansion for equality check.
16330         (iv_elimination_compare_lt): Pass new argument.
16331
16332 2014-08-14  DJ Delorie  <dj@redhat.com>
16333
16334         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
16335         variables to the accumulator.
16336
16337         * config/rl78/predicates.md (rl78_near_mem_operand): New.
16338         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
16339         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
16340         with far-far moves.
16341
16342         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
16343         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
16344         (umulqihi3_virt): Likewise.
16345         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
16346         (umulqihi3_real): Likewise.
16347
16348         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
16349
16350 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16351
16352         PR tree-optimization/62091
16353         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
16354         function_entry_reached.
16355         (walk_aliased_vdefs): Clear it here.
16356         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
16357
16358 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16359
16360         * ipa-utils.h (compare_virtual_tables): Declare.
16361         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
16362
16363 2014-08-14  Marek Polacek  <polacek@redhat.com>
16364
16365         DR 458
16366         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
16367         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
16368
16369 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16370
16371         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
16372
16373 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16374
16375         PR rtl-optimization/62004
16376         PR rtl-optimization/62030
16377         * ifcvt.c (rtx_interchangeable_p): New function.
16378         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
16379         * emit-rtl.h (mem_attrs_eq_p): Declare.
16380
16381 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
16382
16383         * graphite-scop-detection.c:
16384         Add inclusion of cp-tree.h.
16385         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
16386         in case they are pointers to object types
16387
16388 2014-08-14  Richard Biener  <rguenther@suse.de>
16389
16390         * BASE-VER: Change to 5.0.0
16391
16392 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16393             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16394             Anna Tikhonova  <anna.tikhonova@intel.com>
16395             Ilya Tocar  <ilya.tocar@intel.com>
16396             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16397             Ilya Verbin  <ilya.verbin@intel.com>
16398             Kirill Yukhin  <kirill.yukhin@intel.com>
16399             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16400
16401         * config/i386/sse.md (define_mode_attr avx512): New.
16402         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
16403         V4DI modes.
16404         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
16405         (define_mode_attr ssse3_avx2): Ditto.
16406         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
16407         (define_mode_attr avx2_avx512bw): New.
16408         (define_mode_attr ssedoublemodelower): New.
16409         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
16410         V32HI, V64QI modes.
16411         (define_mode_attr ssebytemode): Allow V8DI modes.
16412         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
16413         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
16414         (define_mode_attr ssePSmode2): New.
16415         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
16416         V16HI, V32HI modes.
16417         (define_mode_attr dbpsadbwmode): New.
16418         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
16419         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
16420         (vi8_sse4_1_avx2_avx512): New.
16421         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
16422         mode attribute.
16423         (define_mode_attr blendbits): Move before its immediate use.
16424
16425 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16426             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16427             Anna Tikhonova  <anna.tikhonova@intel.com>
16428             Ilya Tocar  <ilya.tocar@intel.com>
16429             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16430             Ilya Verbin  <ilya.verbin@intel.com>
16431             Kirill Yukhin  <kirill.yukhin@intel.com>
16432             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16433
16434         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
16435         * config/i386/subst.md
16436         (define_mode_iterator SUBST_V): Update.
16437         (define_mode_iterator SUBST_A): Ditto.
16438         (define_subst_attr "mask_operand7"): New.
16439         (define_subst_attr "mask_operand10"): New.
16440         (define_subst_attr "mask_operand_arg34") : New.
16441         (define_subst_attr "mask_expand_op3"): New.
16442         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
16443         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
16444         (define_subst_attr "mask_avx512vl_condition"): New.
16445         (define_subst_attr "round_mask_operand4"): Ditto.
16446         (define_subst_attr "round_mask_scalar_op3"): Delete.
16447         (define_subst_attr "round_mask_op4"): New.
16448         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
16449         V16SImode.
16450         (define_subst_attr "round_modev8sf_condition"): New.
16451         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
16452         <MODE>mode.
16453         (define_subst_attr "round_saeonly_mask_operand4"): New.
16454         (define_subst_attr "round_saeonly_mask_op4"): New.
16455         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
16456         V8DImode, V16SImode.
16457         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
16458         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
16459         (define_subst_attr "mask_expand4_args"): New.
16460         (define_subst "mask_expand4"): New.
16461
16462 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16463             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16464             Anna Tikhonova  <anna.tikhonova@intel.com>
16465             Ilya Tocar  <ilya.tocar@intel.com>
16466             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16467             Ilya Verbin  <ilya.verbin@intel.com>
16468             Kirill Yukhin  <kirill.yukhin@intel.com>
16469             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16470
16471         * config/i386/i386.md
16472         (define_attr "isa"): Add avx512bw,noavx512bw.
16473         (define_attr "enabled"): Ditto.
16474         (define_split): Add 32/64-bit mask logic.
16475         (define_insn "*k<logic>qi"): New.
16476         (define_insn "*k<logic>hi"): New.
16477         (define_insn "*anddi_1"): Add mask version.
16478         (define_insn "*andsi_1"): Ditto.
16479         (define_insn "*<code><mode>_1"): Ditto.
16480         (define_insn "*<code>hi_1"): Ditto.
16481         (define_insn "kxnor<mode>"): New.
16482         (define_insn "kunpcksi"): New.
16483         (define_insn "kunpckdi"): New.
16484         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
16485         (define_insn "*one_cmplhi2_1"): Ditto.
16486
16487 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16488             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16489             Anna Tikhonova  <anna.tikhonova@intel.com>
16490             Ilya Tocar  <ilya.tocar@intel.com>
16491             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16492             Ilya Verbin  <ilya.verbin@intel.com>
16493             Kirill Yukhin  <kirill.yukhin@intel.com>
16494             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16495
16496         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
16497         V32HImode.
16498
16499 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16500             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16501             Anna Tikhonova  <anna.tikhonova@intel.com>
16502             Ilya Tocar  <ilya.tocar@intel.com>
16503             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16504             Ilya Verbin  <ilya.verbin@intel.com>
16505             Kirill Yukhin  <kirill.yukhin@intel.com>
16506             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16507
16508         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
16509         registers.
16510         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
16511         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
16512         xmm/ymm16+ when availble.
16513         * config/i386/i386.h
16514         (HARD_REGNO_NREGS): Add mask regs.
16515         (VALID_AVX512F_REG_MODE): Ditto.
16516         (VALID_AVX512F_REG_MODE) : Define.
16517         (VALID_MASK_AVX512BW_MODE): Ditto.
16518         (reg_class) (MASK_REG_P(X)): Define.
16519         * config/i386/i386.md: Do not split long moves with mask register,
16520         use kmovb if avx512bw is availible.
16521         (movdi_internal): Handle mask registers.
16522
16523 2014-08-14  Richard Biener  <rguenther@suse.de>
16524
16525         PR tree-optimization/62081
16526         * tree-ssa-loop.c (pass_fix_loops): New pass.
16527         (pass_tree_loop::gate):  Do not fixup loops here.
16528         * tree-pass.h (make_pass_fix_loops): Declare.
16529         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
16530
16531 2014-08-14  Richard Biener  <rguenther@suse.de>
16532
16533         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
16534         (type_hash_canon): ... this and avoid 2nd lookup for the add.
16535
16536 2014-08-14  Richard Biener  <rguenther@suse.de>
16537
16538         PR tree-optimization/62090
16539         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
16540         (fold_builtin_2): Do not fold sprintf.
16541         (fold_builtin_3): Likewise.
16542         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
16543         moved from builtins.c.
16544         (gimple_fold_builtin): Fold sprintf.
16545
16546 2014-08-14  Richard Biener  <rguenther@suse.de>
16547
16548         PR rtl-optimization/62079
16549         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
16550         run cleanup_cfg.
16551
16552 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16553
16554         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
16555         current_function_decl.
16556
16557 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16558
16559         * cgraph.c (cgraph_node::function_symbol): Fix wrong
16560         cgraph_function_node to cgraph_node::function_symbol
16561         refactoring.
16562
16563 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16564
16565         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
16566         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
16567
16568 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
16569
16570         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
16571         warning.
16572
16573 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
16574
16575         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
16576         generator.
16577
16578 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
16579
16580         PR target/62025
16581         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
16582         any registers that are used in mem_insn.
16583
16584 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16585
16586         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
16587
16588 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16589
16590         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
16591         (MULTILIB_DIRNAMES): Ditto.
16592         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
16593         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
16594         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
16595         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
16596         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
16597         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
16598
16599 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16600
16601         PR target/61413
16602         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
16603         of __ARM_SIZEOF_WCHAR_T.
16604
16605 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16606
16607         PR target/62098
16608         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
16609         Remove unnecessary attributes.
16610
16611 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
16612
16613         * internal-fn.c (init_internal_fns): Fix off-by-one.
16614
16615 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16616             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16617             Anna Tikhonova  <anna.tikhonova@intel.com>
16618             Ilya Tocar  <ilya.tocar@intel.com>
16619             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16620             Ilya Verbin  <ilya.verbin@intel.com>
16621             Kirill Yukhin  <kirill.yukhin@intel.com>
16622             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16623
16624         * config/i386/i386.c (standard_sse_constant_opcode): Use
16625         vpxord/vpternlog if avx512 is availible.
16626
16627 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16628
16629         PR middle-end/62103
16630         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
16631         bitfields, that is when size doesn't match the size of type or the
16632         size of the constructor.
16633
16634 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16635
16636         * config/rs6000/constraints.md (wh constraint): New constraint,
16637         for FP registers if direct move is available.
16638         (wi constraint): New constraint, for VSX/FP registers that can
16639         handle 64-bit integers.
16640         (wj constraint): New constraint for VSX/FP registers that can
16641         handle 64-bit integers for direct moves.
16642         (wk constraint): New constraint for VSX/FP registers that can
16643         handle 64-bit doubles for direct moves.
16644         (wy constraint): Make documentation match implementation.
16645
16646         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
16647         scalar_in_vmx_p field to simplify tests of whether SFmode or
16648         DFmode can go in the Altivec registers.
16649         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
16650         (rs6000_setup_reg_addr_masks): Likewise.
16651         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16652         field, and wh/wi/wj/wk constraints.
16653         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16654         the wh/wi/wj/wk constraints.
16655         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16656         upper registers, prefer VSX registers unless the operation is a
16657         memory operation with REG+OFFSET addressing.
16658
16659         * config/rs6000/vsx.md (VSr mode attribute): Add support for
16660         DImode.  Change SFmode to use ww constraint instead of d to allow
16661         SF registers in the upper registers.
16662         (VSr2): Likewise.
16663         (VSr3): Likewise.
16664         (VSr5): Fix thinko in comment.
16665         (VSa): New mode attribute that is an alternative to wa, that
16666         returns the VSX register class that a mode can go in, but may not
16667         be the preferred register class.
16668         (VS_64dm): New mode attribute for appropriate register classes for
16669         referencing 64-bit elements of vectors for direct moves and normal
16670         moves.
16671         (VS_64reg): Likewise.
16672         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16673         register allocator to only registers the data type can handle.
16674         (vsx_le_perm_load_<mode>): Likewise.
16675         (vsx_le_perm_store_<mode>): Likewise.
16676         (vsx_xxpermdi2_le_<mode>): Likewise.
16677         (vsx_xxpermdi4_le_<mode>): Likewise.
16678         (vsx_lxvd2x2_le_<mode>): Likewise.
16679         (vsx_lxvd2x4_le_<mode>): Likewise.
16680         (vsx_stxvd2x2_le_<mode>): Likewise.
16681         (vsx_add<mode>3): Likewise.
16682         (vsx_sub<mode>3): Likewise.
16683         (vsx_mul<mode>3): Likewise.
16684         (vsx_div<mode>3): Likewise.
16685         (vsx_tdiv<mode>3_internal): Likewise.
16686         (vsx_fre<mode>2): Likewise.
16687         (vsx_neg<mode>2): Likewise.
16688         (vsx_abs<mode>2): Likewise.
16689         (vsx_nabs<mode>2): Likewise.
16690         (vsx_smax<mode>3): Likewise.
16691         (vsx_smin<mode>3): Likewise.
16692         (vsx_sqrt<mode>2): Likewise.
16693         (vsx_rsqrte<mode>2): Likewise.
16694         (vsx_tsqrt<mode>2_internal): Likewise.
16695         (vsx_fms<mode>4): Likewise.
16696         (vsx_nfma<mode>4): Likewise.
16697         (vsx_eq<mode>): Likewise.
16698         (vsx_gt<mode>): Likewise.
16699         (vsx_ge<mode>): Likewise.
16700         (vsx_eq<mode>_p): Likewise.
16701         (vsx_gt<mode>_p): Likewise.
16702         (vsx_ge<mode>_p): Likewise.
16703         (vsx_xxsel<mode>): Likewise.
16704         (vsx_xxsel<mode>_uns): Likewise.
16705         (vsx_copysign<mode>3): Likewise.
16706         (vsx_float<VSi><mode>2): Likewise.
16707         (vsx_floatuns<VSi><mode>2): Likewise.
16708         (vsx_fix_trunc<mode><VSi>2): Likewise.
16709         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16710         (vsx_x<VSv>r<VSs>i): Likewise.
16711         (vsx_x<VSv>r<VSs>ic): Likewise.
16712         (vsx_btrunc<mode>2): Likewise.
16713         (vsx_b2trunc<mode>2): Likewise.
16714         (vsx_floor<mode>2): Likewise.
16715         (vsx_ceil<mode>2): Likewise.
16716         (vsx_<VS_spdp_insn>): Likewise.
16717         (vsx_xscvspdp): Likewise.
16718         (vsx_xvcvspuxds): Likewise.
16719         (vsx_float_fix_<mode>2): Likewise.
16720         (vsx_set_<mode>): Likewise.
16721         (vsx_extract_<mode>_internal1): Likewise.
16722         (vsx_extract_<mode>_internal2): Likewise.
16723         (vsx_extract_<mode>_load): Likewise.
16724         (vsx_extract_<mode>_store): Likewise.
16725         (vsx_splat_<mode>): Likewise.
16726         (vsx_xxspltw_<mode>): Likewise.
16727         (vsx_xxspltw_<mode>_direct): Likewise.
16728         (vsx_xxmrghw_<mode>): Likewise.
16729         (vsx_xxmrglw_<mode>): Likewise.
16730         (vsx_xxsldwi_<mode>): Likewise.
16731         (vsx_xscvdpspn): Tighten constraints to only use register classes
16732         the types use.
16733         (vsx_xscvspdpn): Likewise.
16734         (vsx_xscvdpspn_scalar): Likewise.
16735
16736         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16737         wj, and wk constraints.
16738         (GPR_REG_CLASS_P): New helper macro for register classes targeting
16739         general purpose registers.
16740
16741         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16742         direct moves.
16743         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16744         DImode instead of wm.  Use wk constraint for direct move of DFmode
16745         instead of wm.
16746         (extendsidi2_lfiwax): Likewise.
16747         (lfiwax): Likewise.
16748         (lfiwzx): Likewise.
16749         (movdi_internal64): Likewise.
16750
16751         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16752         wk constraints. Make the wy constraint documentation match them
16753         implementation.
16754
16755 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
16756
16757         Replacement of isl_int by isl_val
16758         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16759         (compute_bounds_for_param): use isl_val instead of isl_int
16760         (compute_bounds_for_loop): likewise
16761         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16762         (build_linearized_memory_access): use isl_val instead of isl_int
16763         (pdr_stride_in_loop): likewise
16764         * graphite-optimize-isl.c:
16765         (getPrevectorMap): use isl_val instead of isl_int
16766         * graphite-poly.c:
16767         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16768         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16769         (extern the_isl_ctx): declare
16770         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16771         (extract_affine_gmp): likewise
16772         (wrap): likewise
16773         (build_loop_iteration_domains): likewise
16774         (add_param_constraints): likewise
16775
16776 2014-08-11  Richard Biener  <rguenther@suse.de>
16777
16778         PR tree-optimization/62075
16779         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16780         handle uses in patterns.
16781
16782 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16783             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16784             Anna Tikhonova  <anna.tikhonova@intel.com>
16785             Ilya Tocar  <ilya.tocar@intel.com>
16786             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16787             Ilya Verbin  <ilya.verbin@intel.com>
16788             Kirill Yukhin  <kirill.yukhin@intel.com>
16789             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16790
16791         * common/config/i386/i386-common.c
16792         (OPTION_MASK_ISA_AVX512VL_SET): Define.
16793         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16794         (ix86_handle_option): Handle OPT_mavx512vl.
16795         * config/i386/cpuid.h (bit_AVX512VL): Define.
16796         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16797         set -mavx512vl accordingly.
16798         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16799         OPTION_MASK_ISA_AVX512VL.
16800         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16801         (ix86_option_override_internal): Define PTA_AVX512VL, handle
16802         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16803         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16804         * config/i386/i386.h (TARGET_AVX512VL): Define.
16805         (TARGET_AVX512VL_P(x)): Ditto.
16806         * config/i386/i386.opt: Add mavx512vl.
16807
16808 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
16809
16810         PR tree-optimization/62073
16811         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16812         a basic block.
16813
16814 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16815             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16816             Anna Tikhonova  <anna.tikhonova@intel.com>
16817             Ilya Tocar  <ilya.tocar@intel.com>
16818             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16819             Ilya Verbin  <ilya.verbin@intel.com>
16820             Kirill Yukhin  <kirill.yukhin@intel.com>
16821             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16822
16823         * common/config/i386/i386-common.c
16824         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16825         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16826         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16827         (ix86_handle_option): Handle OPT_mavx512bw.
16828         * config/i386/cpuid.h (bit_AVX512BW): Define.
16829         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16830         set -mavx512bw accordingly.
16831         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16832         OPTION_MASK_ISA_AVX512BW.
16833         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16834         (ix86_option_override_internal): Define PTA_AVX512BW, handle
16835         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16836         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16837         * config/i386/i386.h (TARGET_AVX512BW): Define.
16838         (TARGET_AVX512BW_P(x)): Ditto.
16839         * config/i386/i386.opt: Add mavx512bw.
16840
16841 2014-08-11  Richard Biener  <rguenther@suse.de>
16842
16843         PR tree-optimization/62070
16844         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16845         Remove SSA checking.
16846
16847 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16848
16849         * asan.c (asan_check_flags): New enum.
16850         (build_check_stmt_with_calls): Removed function.
16851         (build_check_stmt): Split inlining logic to
16852         asan_expand_check_ifn.
16853         (instrument_derefs): Rename parameter.
16854         (instrument_mem_region_access): Rename parameter.
16855         (instrument_strlen_call): Likewise.
16856         (asan_expand_check_ifn): New function.
16857         (asan_instrument): Remove old code.
16858         (pass_sanopt::execute): Change handling of
16859         asan-instrumentation-with-call-threshold.
16860         (asan_clear_shadow): Fix formatting.
16861         (asan_function_start): Likewise.
16862         (asan_emit_stack_protection): Likewise.
16863         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16864         Update description.
16865         * internal-fn.c (expand_ASAN_CHECK): New function.
16866         * internal-fn.def (ASAN_CHECK): New internal function.
16867         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16868         Update description.
16869         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16870         * tree.c: Small comment fix.
16871
16872 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16873
16874         * gimple.c (gimple_call_fnspec): Support internal functions.
16875         (gimple_call_return_flags): Use const.
16876         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16877         * internal-fn.def: Add fnspec information.
16878         * internal-fn.h (internal_fn_fnspec): New function.
16879         (init_internal_fns): Declare new function.
16880         * internal-fn.c (internal_fn_fnspec_array): New global variable.
16881         (init_internal_fns): New function.
16882         * tree-core.h: Update macro call.
16883         * tree.c (build_common_builtin_nodes): Initialize internal fns.
16884
16885 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
16886
16887         * lto-streamer.h (struct output_block::symbol): Change from
16888         struct symtab_node to plain symtab_node.
16889         (referenced_from_this_partition_p): Change first parameter
16890         from struct symtab_node to plain symtab_node.
16891
16892 2014-08-10  Marek Polacek  <polacek@redhat.com>
16893
16894         PR c/51849
16895         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16896
16897 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
16898
16899         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16900         DECL correctly; do not give up on types in static storage.
16901
16902 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
16903
16904         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16905
16906 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
16907
16908         * graphite-isl-ast-to-gimple.c:
16909         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16910
16911         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16912
16913 2014-08-08  Guozhi Wei  <carrot@google.com>
16914
16915         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16916
16917 2014-08-08  Cary Coutant  <ccoutant@google.com>
16918
16919         * dwarf2out.c (get_skeleton_type_unit): Remove.
16920         (output_skeleton_debug_sections): Remove skeleton type units.
16921         (output_comdat_type_unit): Likewise.
16922         (dwarf2out_finish): Likewise.
16923
16924 2014-08-07  Yi Yang  <ahyangyi@google.com>
16925
16926         * predict.c (expr_expected_value_1): Remove the redundant assignment.
16927
16928 2014-08-08  Richard Biener  <rguenther@suse.de>
16929
16930         * lto-streamer.h (struct lto_input_block): Make it a class
16931         with a constructor.
16932         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16933         (struct lto_function_header, struct lto_simple_header,
16934         struct lto_simple_header_with_strings,
16935         struct lto_decl_header, struct lto_function_header): Make
16936         a simple inheritance hieararchy.  Remove unused fields.
16937         (struct lto_asm_header): Remove.
16938         * lto-streamer-out.c (produce_asm): Adjust.
16939         (lto_output_toplevel_asms): Likewise.
16940         (produce_asm_for_decls): Likewise.
16941         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16942         * data-streamer-in.c (string_for_index): Likewise.
16943         * ipa-inline-analysis.c (inline_read_section): Likewise.
16944         * ipa-prop.c (ipa_prop_read_section): Likewise.
16945         (read_replacements_section): Likewise.
16946         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16947         * lto-section-in.c (lto_create_simple_input_block): Likewise.
16948         (lto_destroy_simple_input_block): Likewise.
16949         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16950         (lto_input_toplevel_asms): Likewise.
16951
16952 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16953             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16954             Anna Tikhonova  <anna.tikhonova@intel.com>
16955             Ilya Tocar  <ilya.tocar@intel.com>
16956             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16957             Ilya Verbin  <ilya.verbin@intel.com>
16958             Kirill Yukhin  <kirill.yukhin@intel.com>
16959             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16960
16961         * common/config/i386/i386-common.c
16962         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16963         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16964         (ix86_handle_option): Handle OPT_mavx512dq.
16965         * config/i386/cpuid.h (bit_AVX512DQ): Define.
16966         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16967         set -mavx512dq accordingly.
16968         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16969         OPTION_MASK_ISA_AVX512DQ.
16970         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16971         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16972         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16973         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16974         * config/i386/i386.h (TARGET_AVX512DQ): Define.
16975         (TARGET_AVX512DQ_P(x)): Ditto.
16976         * config/i386/i386.opt: Add mavx512dq.
16977
16978 2014-08-08  Richard Biener  <rguenther@suse.de>
16979
16980         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16981         target_percent, target_percent_s): Export.
16982         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16983         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16984         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16985         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16986         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16987         Move to gimple-fold.c.
16988         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16989         strcat and strcpy.
16990         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16991         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16992         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16993         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16994         (rewrite_call_expr_array): Remove.
16995         (fold_builtin_sprintf_chk): Likewise.
16996         (fold_builtin_snprintf_chk): Likewise.
16997         (fold_builtin_varargs): Remove handling of sprintf_chk,
16998         vsprintf_chk, snprintf_chk and vsnprintf_chk.
16999         (gimple_fold_builtin_sprintf_chk): Remove.
17000         (gimple_fold_builtin_snprintf_chk): Likewise.
17001         (gimple_fold_builtin_varargs): Likewise.
17002         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
17003         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
17004         * gimple.c (gimple_seq_add_seq_without_update): New function.
17005         * gimple.h (gimple_seq_add_seq_without_update): Declare.
17006         * gimple-fold.c: Include output.h.
17007         (gsi_replace_with_seq_vops): New function, split out from ...
17008         (gimplify_and_update_call_from_tree): ... here.
17009         (replace_call_with_value): New function.
17010         (replace_call_with_call_and_fold): Likewise.
17011         (var_decl_component_p): Moved from builtins.c.
17012         (gimple_fold_builtin_memory_op): Moved from builtins.c
17013         fold_builtin_memory_op and rewritten to GIMPLE.
17014         (gimple_fold_builtin_memset): Likewise.
17015         (gimple_fold_builtin_strcpy): Likewise.
17016         (gimple_fold_builtin_strncpy): Likewise.
17017         (gimple_fold_builtin_strcat): Likewise.
17018         (gimple_fold_builtin_fputs): Likewise.
17019         (gimple_fold_builtin_memory_chk): Likewise.
17020         (gimple_fold_builtin_stxcpy_chk): Likewise.
17021         (gimple_fold_builtin_stxncpy_chk): Likewise.
17022         (gimple_fold_builtin_snprintf_chk): Likewise.
17023         (gimple_fold_builtin_sprintf_chk): Likewise.
17024         (gimple_fold_builtin_strlen): New function.
17025         (gimple_fold_builtin_with_strlen): New function split out from
17026         gimple_fold_builtin.
17027         (gimple_fold_builtin): Change signature and handle
17028         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
17029         here.  Call gimple_fold_builtin_with_strlen.
17030         (gimple_fold_call): Adjust.
17031
17032 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
17033
17034         * calls.c (precompute_arguments): Check
17035         promoted_for_signed_and_unsigned_p and set the promoted mode.
17036         (promoted_for_signed_and_unsigned_p): New function.
17037         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
17038         and set the promoted mode.
17039         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
17040         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
17041         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
17042
17043
17044 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
17045
17046         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
17047         instead of SUBREG_PROMOTED_UNSIGNED_SET.
17048         (expand_call): Likewise.
17049         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
17050         to get promoted mode.
17051         * combine.c (record_promoted_value): Skip > 0 comparison with
17052         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
17053         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
17054         of SUBREG_PROMOTED_UNSIGNED_P.
17055         (convert_modes): Likewise.
17056         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
17057         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
17058         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
17059         SUBREG_PROMOTED_UNSIGNED_SET.
17060         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
17061         instead of SUBREG_PROMOTED_UNSIGNED_SET.
17062         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
17063         SUBREG_PROMOTED_SET.
17064         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
17065         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
17066         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
17067         of SUBREG_PROMOTED_UNSIGNED_P.
17068         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
17069         (SUBREG_PROMOTED_SET): New define.
17070         (SUBREG_PROMOTED_GET): Likewise.
17071         (SUBREG_PROMOTED_SIGN): Likewise.
17072         (SUBREG_PROMOTED_SIGNED_P): Likewise.
17073         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
17074         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
17075         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
17076         instead of SUBREG_PROMOTED_UNSIGNED_GET.
17077         (nonzero_bits1): Skip > 0 comparison with the results as
17078         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
17079         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
17080         of !SUBREG_PROMOTED_UNSIGNED_P.
17081         * simplify-rtx.c (simplify_unary_operation_1): Use new
17082         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
17083         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
17084         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
17085         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
17086
17087 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
17088
17089         * ipa-devirt.c: Include gimple-pretty-print.h
17090         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
17091         further tests.
17092         (decl_maybe_in_construction_p): Fix conditional on cdtor check
17093         (get_polymorphic_call_info): Fix return value
17094         (type_change_info): New sturcture based on ipa-prop
17095         variant.
17096         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
17097         based on ipa-prop variant.
17098         (extr_type_from_vtbl_ptr_store): New function
17099         based on ipa-prop variant.
17100         (record_known_type): New function.
17101         (check_stmt_for_type_change): New function.
17102         (get_dynamic_type): New function.
17103         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
17104         * tree-ssa-pre.c: ipa-utils.h
17105         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
17106         machinery; sanity check with ipa-prop devirtualization.
17107         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
17108         polymorphic flag.
17109
17110 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
17111
17112         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
17113         * alias.c, cfgexpand.c, cgraphbuild.c,
17114         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
17115         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
17116         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
17117         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
17118         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
17119         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17120         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
17121         dse.c, except.c, gengtype.c, gimple-expr.c,
17122         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
17123         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
17124         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
17125         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
17126         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
17127         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
17128         pointer-set.h.
17129         * pointer-set.c: Remove file.
17130         * pointer-set.h: Remove file.
17131
17132 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17133
17134         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
17135         * config/arm/types.md (f_sels, f_seld): Delete.
17136
17137 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17138
17139         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
17140         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
17141         (aarch64_movdi_<mode>high): Likewise.
17142         (aarch64_mov<mode>high_di): Likewise.
17143         (aarch64_movdi_<mode>low): Likewise.
17144         (aarch64_mov<mode>low_di): Likewise.
17145         (aarch64_movtilow_tilow): Likewise.
17146         Add comment explaining usage of fp,simd attributes and of
17147         TARGET_FLOAT and TARGET_SIMD.
17148
17149 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
17150             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17151
17152         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
17153         Use MOVN when one of the half-words is 0xffff.
17154
17155 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
17156
17157         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
17158
17159 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17160
17161         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
17162         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
17163         (rfs_str): String corresponding to RFS_* constants.
17164         (rank_for_schedule_stats_t): New typedef.
17165         (rank_for_schedule_stats): New static variable.
17166         (rfs_result): New static function.
17167         (rank_for_schedule): Track statistics for deciding heuristics.
17168         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
17169         static functions.
17170         (ready_sort): Use them for debug printouts.
17171         (schedule_block): Init statistics state.  Print statistics on
17172         rank_for_schedule decisions.
17173
17174 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17175
17176         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
17177
17178 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
17179
17180         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
17181         constraint.
17182
17183 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
17184
17185         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
17186         function to not conflict.
17187         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
17188         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
17189         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
17190         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
17191         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
17192         of pointer_map.
17193
17194 2014-08-07  Marek Polacek  <polacek@redhat.com>
17195
17196         * fold-const.c (fold_binary_loc): Add folding of
17197         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
17198
17199 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
17200
17201         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
17202         instead of type size.
17203         (ASM_FINISH_DECLARE_OBJECT): Likewise.
17204
17205 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
17206
17207         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
17208         (*thumb1_movqi_insn): Likewise.
17209         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
17210
17211 2014-08-07  Tom de Vries  <tom@codesourcery.com>
17212
17213         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17214         (glibc_2_11_or_earlier): Remove effective-target keywords.
17215
17216 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
17217
17218         * config/arm/arm.c (bdesc_2arg): Fix typo.
17219         (arm_atomic_assign_expand_fenv): Remove The default implementation.
17220
17221 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17222
17223         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
17224
17225 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
17226
17227         PR debug/61923
17228         * haifa-sched.c (advance_one_cycle): Fix dump.
17229         (schedule_block): Don't advance cycle if we are already at the
17230         beginning of the cycle.
17231
17232 2014-08-06  Martin Jambor  <mjambor@suse.cz>
17233
17234         PR ipa/61393
17235         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
17236
17237 2014-08-06  Richard Biener  <rguenther@suse.de>
17238
17239         PR lto/62034
17240         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
17241         SCCs here.
17242         (lto_input_tree): Pop SCCs here.
17243
17244 2014-08-06  Richard Biener  <rguenther@suse.de>
17245
17246         PR tree-optimization/61320
17247         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
17248         handle misaligned loads.
17249
17250 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
17251
17252         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
17253         (aarch64_expand_vec_perm_const): Check for dup before zip.
17254
17255 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17256
17257         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
17258         CONST_INT_P instead of GET_CODE and compare.
17259         (aarch64_select_cc_mode): Likewise.
17260         (aarch64_print_operand): Likewise.
17261         (aarch64_rtx_costs): Likewise.
17262         (aarch64_simd_valid_immediate): Likewise.
17263         (aarch64_simd_check_vect_par_cnst_half): Likewise.
17264         (aarch64_simd_emit_pair_result_insn): Likewise.
17265
17266 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
17267
17268         * gdbhooks.py (find_gcc_source_dir): New helper function.
17269         (class PassNames): New class, locating and parsing passes.def.
17270         (class BreakOnPass): New command "break-on-pass".
17271
17272 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
17273
17274         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
17275         getting olde.
17276
17277 2014-08-05  Richard Biener  <rguenther@suse.de>
17278
17279         PR rtl-optimization/61672
17280         * emit-rtl.h (mem_attrs_eq_p): Declare.
17281         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
17282         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
17283         * cfgcleanup.c (merge_memattrs): Likewise.
17284         Include emit-rtl.h.
17285
17286 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17287
17288         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
17289         rather than singleton vectors.
17290         (vqdmlsls_lane_s32): Likewise.
17291
17292 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17293
17294         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
17295         Use VSDQ_HSI mode iterator.
17296         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17297         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
17298         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
17299         Use BUILTIN_VDQHS macro.
17300         (sqrdmulh_laneq): Likewise.
17301         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
17302         (vqdmlals_laneq_s32): Likewise.
17303         (vqdmlslh_laneq_s16): Likewise.
17304         (vqdmlsls_laneq_s32): Likewise.
17305         (vqdmulhh_laneq_s16): Likewise.
17306         (vqdmulhs_laneq_s32): Likewise.
17307         (vqrdmulhh_laneq_s16): Likewise.
17308         (vqrdmulhs_laneq_s32): Likewise.
17309
17310 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17311
17312         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
17313         (vmuld_laneq_f64): Likewise.
17314         (vmuls_laneq_f32): Likewise.
17315         (vmul_n_f64): Likewise.
17316         (vmuld_lane_f64): Reimplement in C.
17317         (vmuls_lane_f32): Likewise.
17318
17319 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17320
17321         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
17322         to reservation.
17323         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
17324
17325 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17326
17327         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
17328         (rbitsi2): Likewise.
17329         (*arm_rev): Set predicable and predicable_short_it attributes.
17330
17331 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17332
17333         * convert.c (convert_to_integer): Guard transformation to lrint by
17334         -fno-math-errno.
17335
17336 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
17337
17338         * config/aarch64/aarch64-builtins.c
17339         (aarch64_simd_builtin_type_mode): Delete.
17340         (v8qi_UP): Remap to V8QImode.
17341         (v4hi_UP): Remap to V4HImode.
17342         (v2si_UP): Remap to V2SImode.
17343         (v2sf_UP): Remap to V2SFmode.
17344         (v1df_UP): Remap to V1DFmode.
17345         (di_UP): Remap to DImode.
17346         (df_UP): Remap to DFmode.
17347         (v16qi_UP):V16QImode.
17348         (v8hi_UP): Remap to V8HImode.
17349         (v4si_UP): Remap to V4SImode.
17350         (v4sf_UP): Remap to V4SFmode.
17351         (v2di_UP): Remap to V2DImode.
17352         (v2df_UP): Remap to V2DFmode.
17353         (ti_UP): Remap to TImode.
17354         (ei_UP): Remap to EImode.
17355         (oi_UP): Remap to OImode.
17356         (ci_UP): Map to CImode.
17357         (xi_UP): Remap to XImode.
17358         (si_UP): Remap to SImode.
17359         (sf_UP): Remap to SFmode.
17360         (hi_UP): Remap to HImode.
17361         (qi_UP): Remap to QImode.
17362         (aarch64_simd_builtin_datum): Make mode a machine_mode.
17363         (VAR1): Build builtin name.
17364         (aarch64_init_simd_builtins): Remove dead code.
17365
17366 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17367
17368         * graphite-isl-ast-to-gimple.c:
17369         (set_options): New function.
17370         (scop_to_isl_ast): Add calling of set_options.
17371
17372 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
17373
17374         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
17375         (analyze_iv_to_split_insn): Don't initialize them.
17376         (get_ivts_expr): Removed.
17377         (allocate_basic_variable, insert_base_initialization): Use
17378         SET_SRC instead of *get_ivts_expr.
17379         (split_iv): Use &SET_SRC instead of get_ivts_expr.
17380
17381 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17382
17383         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
17384         (translate_isl_ast_for_loop): Add checking of the
17385         flag_loop_parallelize_all.
17386         (ast_build_before_for): New function.
17387         (scop_to_isl_ast): Add checking of the
17388         flag_loop_parallelize_all.
17389         * graphite-dependences.c: Move the defenition of the
17390         scop_get_dependences from graphite-optimize-isl.c to this file.
17391         (apply_schedule_on_deps): Add checking of the ux's emptiness.
17392         (carries_deps): Add checking of the x's value.
17393         * graphite-optimize-isl.c: Move the defenition of the
17394         scop_get_dependences to graphite-dependences.c.
17395         * graphite-poly.h: Add declarations of scop_get_dependences
17396         and carries_deps.
17397
17398 2014-08-04  Rohit  <rohitarulraj@freescale.com>
17399
17400         PR target/60102
17401         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
17402         names.
17403         (alt_reg_names): Likewise.
17404         (rs6000_dwarf_register_span): For SPE high registers, replace
17405         dwarf register numbers with GCC hard register numbers.
17406         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
17407         (rs6000_dbx_register_number): For SPE high registers, return dwarf
17408         register number for the corresponding GCC hard register number.
17409         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
17410         newly added GCC hard register numbers for SPE high registers.
17411         (DWARF_FRAME_REGISTERS):  Likewise.
17412         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
17413         (DWARF_FRAME_REGNUM): Likewise.
17414         (FIXED_REGISTERS): Likewise.
17415         (CALL_USED_REGISTERS): Likewise.
17416         (CALL_REALLY_USED_REGISTERS): Likewise.
17417         (REG_ALLOC_ORDER): Likewise.
17418         (enum reg_class): Likewise.
17419         (REG_CLASS_NAMES): Likewise.
17420         (REG_CLASS_CONTENTS): Likewise.
17421         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
17422
17423 2014-08-04  Richard Biener  <rguenther@suse.de>
17424
17425         * gimple-fold.h (gimple_fold_builtin): Remove.
17426         * gimple-fold.c (gimple_fold_builtin): Make static.
17427         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
17428         fold_stmt, not gimple_fold_builtin.
17429
17430 2014-08-04  Martin Liska <mliska@suse.cz>
17431
17432         * cgraph.h (csi_end_p): Removed.
17433         (csi_next): Likewise.
17434         (csi_node): Likewise.
17435         (csi_start): Likewise.
17436         (cgraph_node_in_set_p): Likewise.
17437         (cgraph_node_set_size): Likewise.
17438         (vsi_end_p): Likewise.
17439         (vsi_next): Likewise.
17440         (vsi_node): Likewise.
17441         (vsi_start): Likewise.
17442         (varpool_node_set_size): Likewise.
17443         (cgraph_node_set_nonempty_p): Likewise.
17444         (varpool_node_set_nonempty_p): Likewise.
17445         * cgraphunit.c (cgraph_process_new_functions): vec replaces
17446         cgraph_node_set.
17447         * ipa-inline-transform.c: Likewise.
17448         * ipa-utils.c (cgraph_node_set_new): Removed.
17449         (cgraph_node_set_add): Likewise.
17450         (cgraph_node_set_remove): Likewise.
17451         (cgraph_node_set_find): Likewise.
17452         (dump_cgraph_node_set): Likewise.
17453         (debug_cgraph_node_set): Likewise.
17454         (free_cgraph_node_set): Likewise.
17455         (varpool_node_set_new): Likewise.
17456         (varpool_node_set_add): Likewise.
17457         (varpool_node_set_remove): Likewise.
17458         (varpool_node_set_find): Likewise.
17459         (dump_varpool_node_set): Likewise.
17460         (free_varpool_node_set): Likewise.
17461         (debug_varpool_node_set): Likewise.
17462         * tree-emutls.c (struct tls_var_data):
17463         (emutls_index): Removed.
17464         (emutls_decl): Likewise.
17465         (gen_emutls_addr): Function implementation uses newly added
17466         hash_map<varpool_node *, tls_var_data>.
17467         (clear_access_vars): Likewise.
17468         (create_emultls_var): Likewise.
17469         (ipa_lower_emutls): Likewise.
17470         (reset_access): New function.
17471
17472 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17473
17474         * config/i386/i386.c (ix86_option_override_internal): Add
17475         PTA_RDRND and PTA_MOVBE for bdver4.
17476
17477 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17478             James Greenhalgh  <james.greenhalgh@arm.com>
17479
17480         * doc/md.texi (clrsb): Document.
17481         (clz): Change reference to x into operand 1.
17482         (ctz): Likewise.
17483         (popcount): Likewise.
17484
17485 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17486
17487         PR target/61713
17488         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
17489         move to subtarget in serial version if result is ignored.
17490
17491 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17492             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17493
17494         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
17495         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
17496         (sched_analyze_insn): Update use of try_group_insn to
17497         sched_macro_fuse_insns.
17498         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
17499         arguments that are not conditional jumps.
17500
17501 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17502
17503         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
17504         family information. Handle BTVER2 cpu with cpuid family value.
17505
17506 2014-08-04  Tom de Vries  <tom@codesourcery.com>
17507
17508         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17509         (glibc_2_11_or_earlier): Document effective-target keywords.
17510
17511 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17512
17513         * ipa-devirt.c (odr_type_warn_count): Add type.
17514         (possible_polymorphic_call_targets): Set it.
17515         (ipa_devirt): Use it.
17516
17517 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17518
17519         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
17520         Document.
17521         * ipa-devirt.c: Include hash-map.h
17522         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
17523         (clear_speculation): Break out of ...
17524         (get_class_context): ... here; speed up handling obviously useless
17525         speculations.
17526         (odr_type_warn_count, decl_warn_count): New structures.
17527         (final_warning_record): New structure.
17528         (final_warning_records): New static variable.
17529         (possible_polymorphic_call_targets): Cleanup handling of
17530         speculative info; do not build speculation when user do not care;
17531         record info about warnings when asked for.
17532         (add_decl_warning): New function.
17533         (type_warning_cmp): New function.
17534         (decl_warning_cmp): New function.
17535         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
17536         (gate): Enable pass when warnings are requested.
17537         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
17538         options.
17539
17540 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17541
17542         * hash-map.h (default_hashmap_traits::mark_key_deleted):
17543         Fix cast.
17544         (hash_map::remove): New method.
17545         (hash_map::traverse): New method.
17546         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
17547         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
17548         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
17549         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
17550         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
17551         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
17552         pointer_map.
17553
17554 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17555
17556         * hash-set.h: new File.
17557         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
17558         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
17559         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
17560         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
17561         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
17562         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
17563         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
17564         varpool.c: Use hash_set instead of pointer_set.
17565
17566 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
17567
17568         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
17569
17570 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17571
17572         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
17573         for frame access when strict_p is false.
17574
17575 2014-08-01  Renlin Li <renlin.li@arm.com>
17576 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17577
17578         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
17579         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
17580         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
17581         Declaration.
17582         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
17583         predicate.
17584         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
17585         aarch64_mem_pair_offset.
17586
17587 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17588
17589         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
17590         offset.
17591         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
17592         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
17593
17594 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
17595
17596         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
17597
17598 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
17599
17600         PR regression/61510
17601         * cgraphunit.c (analyze_functions): Use get_create rather than get
17602         for decls which are clones of abstract functions.
17603
17604 2014-08-01  Martin Liska  <mliska@suse.cz>
17605
17606         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
17607         * ipa-prop.h (count_formal_params): Global function created from static.
17608         * ipa-prop.c (count_formal_params): Likewise.
17609         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
17610         profiles for semantically equivalent functions.
17611         * passes.c (do_per_function): If we load body of a function
17612         during WPA, this condition should behave same.
17613         * varpool.c (ctor_for_folding): More tolerant assert for variable
17614         aliases created during WPA.
17615
17616 2014-08-01  Martin Liska  <mliska@suse.cz>
17617
17618         * doc/invoke.texi (Options That Control Optimization): Documentation
17619         for -foptimize-strlen introduced. Optimization levels default options
17620         fixed.
17621
17622 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
17623
17624         * opts.c (common_handle_option): Handle -fsanitize=alignment.
17625         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
17626         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
17627         type to bool.
17628         * stor-layout.h (min_align_of_type): New prototype.
17629         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
17630         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
17631         check.
17632         * ubsan.c: Include builtins.h.
17633         (ubsan_expand_bounds_ifn): Change return type to bool,
17634         always return true.
17635         (ubsan_expand_null_ifn): Change return type to bool, change
17636         argument to gimple_stmt_iterator *.  Handle both null and alignment
17637         sanitization, take type from ckind argument's type rather than
17638         first argument.
17639         (instrument_member_call): Removed.
17640         (instrument_mem_ref): Remove t argument, add mem and base arguments.
17641         Handle both null and alignment sanitization, don't say whole
17642         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
17643         call instead of 2 argument.
17644         (instrument_null): Adjust instrument_mem_ref caller.  Don't
17645         instrument calls here.
17646         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
17647         like SANITIZE_NULL.
17648         * stor-layout.c (min_align_of_type): New function.
17649         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
17650         Or it into SANITIZE_UNDEFINED.
17651         * doc/invoke.texi (-fsanitize=alignment): Document.
17652
17653 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17654
17655         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17656
17657 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17658
17659         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17660         inchash.
17661         (vn_reference_compute_hash): Dito.
17662         (vn_nary_op_compute_hash): Dito.
17663         (vn_phi_compute_hash): Dito.
17664         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17665
17666 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17667
17668         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17669         Rename to inchash:add_expr_commutative. Convert to inchash.
17670         (iterative_hash_hashable_expr): Rename to
17671         inchash:add_hashable_expr. Convert to inchash.
17672         (avail_expr_hash): Dito.
17673
17674 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17675
17676         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17677         Convert to inchash.
17678
17679 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17680
17681         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17682
17683 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17684
17685         * Makefile.in (OBJS): Add rtlhash.o
17686         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17687         (loc_checksum): Dito.
17688         (loc_checksum_ordered): Dito.
17689         (hash_loc_operands): Dito.
17690         (hash_locs): Dito.
17691         (hash_loc_list): Dito.
17692         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17693         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17694         * rtlhash.c: New file.
17695         * rtlhash.h: New file.
17696
17697 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17698
17699         * inchash.h (inchash): Change inchash class to namespace.
17700         (class hash): ... Rename from inchash.
17701         (add_object): Move from macro to class template.
17702         * lto-streamer-out.c (hash_tree): Change inchash
17703         to inchash::hash.
17704         * tree.c (build_type_attribute_qual_variant): Dito.
17705         (type_hash_list): Dito.
17706         (attribute_hash_list): Dito.
17707         (iterative_hstate_expr): Rename to inchash::add_expr
17708         (build_range_type_1): Change inchash to inchash::hash
17709         and use hash::add_expr.
17710         (build_array_type_1): Dito.
17711         (build_function_type): Dito
17712         (build_method_type_directly): Dito.
17713         (build_offset_type): Dito.
17714         (build_complex_type): Dito.
17715         (make_vector_type): Dito.
17716         * tree.h (iterative_hash_expr): Dito.
17717
17718 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
17719
17720         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17721
17722 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17723
17724         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17725         correct alphabetical position.
17726         (vpaddd_f64): Rewrite using builtins.
17727         (vpaddd_s64): Move to correct alphabetical position.
17728         (vpaddd_u64): New.
17729
17730 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
17731
17732         PR target/61844
17733         * config/sh/sh.c (sh_legitimate_address_p,
17734         sh_legitimize_reload_address): Handle reg+reg address modes when
17735         ALLOW_INDEXED_ADDRESS is false.
17736         * config/sh/predicates.md (general_movsrc_operand,
17737         general_movdst_operand): Likewise.
17738
17739 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17740
17741         * config/aarch64/aarch64-builtins.c
17742         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17743         BYTES_BIG_ENDIAN.
17744
17745 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17746
17747         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17748         the generated mask based on BYTES_BIG_ENDIAN.
17749         (aarch64_simd_check_vect_par_cnst_half): New.
17750         * config/aarch64/aarch64-protos.h
17751         (aarch64_simd_check_vect_par_cnst_half): New.
17752         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17753         the check out to aarch64_simd_check_vect_par_cnst_half.
17754         (vect_par_cnst_lo_half): Likewise.
17755         * config/aarch64/aarch64-simd.md
17756         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17757         (move_hi_quad_<mode>): Always generate a low mask.
17758
17759 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17760
17761         * doc/invoke.texi (AVR Options): Add documentation about
17762         __AVR_DEVICE_NAME__ built-in macro.
17763
17764 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
17765
17766         PR target/61948
17767         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17768         constraints are satisfied.
17769         (<shift>di3_neon): Likewise.
17770
17771 2014-07-31  Richard Biener  <rguenther@suse.de>
17772
17773         PR tree-optimization/61964
17774         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17775         by structural equality.
17776
17777 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
17778
17779         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17780         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17781         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17782         New enums.
17783         * gcc.c (sanitize_spec_function): Support new option.
17784         (SANITIZER_SPEC): Remove now redundant check.
17785         * opts.c (common_handle_option): Support new option.
17786         (finish_options): Check for incompatibilities.
17787         * toplev.c (process_options): Split userspace-specific checks.
17788
17789 2014-07-31  Richard Biener  <rguenther@suse.de>
17790
17791         * lto-streamer.h (struct output_block): Remove global.
17792         (struct data_in): Remove labels, num_named_labels and
17793         num_unnamed_labels.
17794         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17795         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17796
17797 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
17798
17799         PR c++/60517
17800         * common.opt (-Wreturn-local-addr): Moved from c.opt.
17801         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17802         (isolate_path): New argument to avoid inserting a trap.
17803         (find_implicit_erroneous_behaviour): Handle returning the address
17804         of a local variable.
17805         (find_explicit_erroneous_behaviour): Likewise.
17806
17807 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
17808
17809         PR lto/61868
17810         * toplev.c (init_random_seed): Move piece of code never called to
17811         set_random_seed.
17812         (set_random_seed): see above.
17813
17814 2014-07-31  Tom de Vries  <tom@codesourcery.com>
17815
17816         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17817
17818 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17819
17820         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17821         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17822
17823 2014-07-31  Richard Biener  <rguenther@suse.de>
17824
17825         * data-streamer.h (streamer_write_data_stream): Declare here,
17826         renamed from ...
17827         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
17828         * lto-cgraph.c (lto_output_node): Adjust.
17829         (lto_output_varpool_node): Likewise.
17830         * data-streamer-out.c (streamer_string_index): Likewise.
17831         (streamer_write_data_stream, lto_append_block): Move from ...
17832         * lto-section-out.c (lto_output_data_stream,
17833         lto_append_block): ... here.
17834
17835 2014-07-30  Mike Stump  <mikestump@comcast.net>
17836
17837         * configure.ac: Also check for popen.
17838         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17839         * configure: Regenerate.
17840         * config.in:  Regenerate.
17841
17842 2014-07-30  Martin Jambor  <mjambor@suse.cz>
17843
17844         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17845         parameter to gimple.
17846
17847 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17848
17849         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17850         address as second parameter to __tpf_eh_return routine.
17851
17852 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
17853
17854         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17855         Thumb2.
17856
17857 2014-07-30  Tom Tromey  <tromey@redhat.com>
17858
17859         PR c/59855
17860         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17861         * doc/extend.texi (Type Attributes): Document designated_init
17862         attribute.
17863
17864 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
17865
17866         * graphite-isl-ast-to-gimple.c:
17867         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17868         (gcc_expression_from_isl_expression): Pass type to
17869         gcc_expression_from_isl_ast_expr_id.
17870
17871 2014-07-30  Richard Biener  <rguenther@suse.de>
17872
17873         * lto-streamer.h (lto_write_data): New function.
17874         * langhooks.c (lhd_append_data): Do not free block.
17875         * lto-section-out.c (lto_write_data): New function writing
17876         raw data to the current section.
17877         (lto_write_stream): Adjust for langhook semantic change.
17878         (lto_destroy_simple_output_block): Write header directly.
17879         * lto-opts.c (lto_write_options): Write options directly.
17880         * lto-streamer-out.c (produce_asm): Write heaeder directly.
17881         (lto_output_toplevel_asms): Likewise.
17882         (copy_function_or_variable): Copy data directly.
17883         (write_global_references): Output index table directly.
17884         (lto_output_decl_state_refs): Likewise.
17885         (write_symbol): Write data directly.
17886         (produce_symtab): Adjust.
17887         (produce_asm_for_decls): Output header and refs directly.
17888
17889 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17890
17891         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17892         to speculative_targets
17893         (get_class_context): Fix handling of contextes without outer type;
17894         avoid matching non-polymorphic types in LTO.
17895         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17896         parameter to speculative_targetsp; handle speculation.
17897         (dump_possible_polymorphic_call_targets): Update dumping.
17898
17899 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17900
17901         * common.opt (Wodr): Enable by default.
17902
17903 2014-07-29  Olivier Hainque  <hainque@adacore.com>
17904
17905         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17906
17907 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17908
17909         PR bootstrap/61914
17910         * gengtype.c (strtoken): New function.
17911         (create_user_defined_type): Replace strtok with strtoken.
17912
17913 2014-07-29  Nathan Sidwell  <nathan@acm.org>
17914
17915         * gcov-io.c (gcov_var): Make hidden.
17916         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17917         (gcov_do_dump): Declare.
17918         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17919
17920 2014-07-29  Martin Jambor  <mjambor@suse.cz>
17921
17922         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17923         parameter to gimple.
17924         (sra_modify_assign): Likewise.
17925
17926 2014-07-29  Richard Biener  <rguenther@suse.de>
17927
17928         PR middle-end/52478
17929         * expr.c (expand_expr_real_2): Revert last change.
17930
17931 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17932
17933         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17934         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17935         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17936         call.
17937         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17938         (contains_type_p): Forward declare.
17939         (polymorphic_call_target_hasher::hash): Hash speculative info.
17940         (polymorphic_call_target_hasher::equal): Compare speculative info.
17941         (get_class_context): Handle speuclation.
17942         (contains_type_p): Update.
17943         (get_polymorphic_call_info_for_decl): Update.
17944         (walk_ssa_copies): Break out from ...
17945         (get_polymorphic_call_info): ... here; set speculative context
17946         before giving up.
17947         * ipa-prop.c (ipa_write_indirect_edge_info,
17948         ipa_read_indirect_edge_info): Stream speculative context.
17949         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17950         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17951         SPECULATIVE_MAYBE_DERIVED_TYPE).
17952         (possible_polymorphic_call_targets overriders): Update.
17953         (dump_possible_polymorphic_call_targets overriders): Update.
17954         (dump_possible_polymorphic_call_target_p overriders): Update.
17955
17956 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17957
17958         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17959         ipa-devirt path; fix thinko there.
17960
17961 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
17962
17963         * config/i386/i386.c (ix86_return_in_memory): Replace one
17964         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17965
17966 2014-07-28  Marek Polacek  <polacek@redhat.com>
17967
17968         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
17969
17970 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
17971
17972         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17973         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17974         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17975         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17976         (USE_LD_AS_NEEDED): Likewise.
17977         (ASM_APP_ON): Likewise.
17978         (ASM_APP_OFF): Likewise.
17979         (TARGET_POSIX_IO): Likewise.
17980         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17981         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17982         (USE_LD_AS_NEEDED): Likewise.
17983         (ASM_APP_ON): Likewise.
17984         (ASM_APP_OFF): Likewise.
17985         (TARGET_POSIX_IO): Likewise.
17986
17987 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17988
17989         PR middle-end/61734
17990         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17991         operators other than the equality operators.
17992
17993 2014-07-28  Richard Biener  <rguenther@suse.de>
17994
17995         PR middle-end/52478
17996         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17997         sure to register SImode ones, not only >= word_mode ones.
17998         * expr.c (expand_expr_real_2): When expanding -ftrapv
17999         binops do not use OPTAB_LIB_WIDEN.
18000
18001 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
18002
18003         PR middle-end/61919
18004         * tree-outof-ssa.c (insert_partition_copy_on_edge)
18005         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
18006         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
18007         inserting them in the insn stream.
18008
18009 2014-07-28  Marek Polacek  <polacek@redhat.com>
18010
18011         PR middle-end/61913
18012         * common.opt (Wodr): Add Var.
18013
18014 2014-07-28  Richard Biener  <rguenther@suse.de>
18015
18016         PR tree-optimization/61921
18017         * tree-ssa-structalias.c (create_variable_info_for_1): Check
18018         if there is a varpool node before dereferencing it.
18019
18020 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
18021
18022         * graphite-sese-to-poly.c:
18023         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
18024         id of the pbb), which contains pointer to the pbb1.
18025
18026         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
18027
18028 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
18029
18030         * graphite-isl-ast-to-gimple.c:
18031         (graphite_create_new_guard): New function.
18032         (translate_isl_ast_node_if): New function.
18033         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
18034
18035         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
18036
18037 2014-07-27  Anthony Green  <green@moxielogic.com>
18038
18039         * config.gcc: Add moxie-*-moxiebox* configuration.
18040         * config/moxie/moxiebox.h: New file.
18041
18042 2014-07-26  Andrew Pinski  <apinski@cavium.com>
18043
18044         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
18045         from the read only register.
18046
18047 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
18048
18049         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
18050         as the allocation class if it isn't likely to be spilled.
18051
18052 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
18053
18054         * rtl.h (tls_referenced_p): Declare.
18055         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
18056         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
18057         (mips_cannot_force_const_mem): Use tls_referenced_p.
18058         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
18059         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
18060         instead of pa_tls_referenced_p.
18061         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
18062         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
18063         (pa_legitimate_constant_p): Likewise.
18064         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
18065         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
18066         (rs6000_cannot_force_const_mem, rs6000_emit_move)
18067         (rs6000_address_for_altivec): Use tls_referenced_p instead of
18068         rs6000_tls_referenced_p.
18069         (rs6000_tls_symbol_ref_1): Delete.
18070
18071 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
18072
18073         PR target/44551
18074         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
18075         Optimize inverse of a VEC_CONCAT.
18076
18077 2014-07-25  Xinliang David Li  <davidxl@google.com>
18078
18079         * params.def: New parameter.
18080         * coverage.c (get_coverage_counts): Check new flag.
18081         (coverage_compute_profile_id): Check new flag.
18082         (coverage_begin_function): Check new flag.
18083         (coverage_end_function): Check new flag.
18084         * value-prof.c (coverage_node_map_initialized_p): New function.
18085         (init_node_map): Populate map with all functions.
18086         * doc/invoke.texi: Document new parameter.
18087
18088 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
18089             Richard Biener <rguenther@suse.de>
18090
18091         * lto-streamer-out.c (struct sccs): Turn to ...
18092         (class DFS): ... this one; refactor the DFS walk so it can
18093         be re-done on per-SCC basis.
18094         (DFS::DFS): New constructor.
18095         (DFS::~DFS): New destructor.
18096         (hash_tree): Add new MAP argument holding in-SCC hash values;
18097         remove POINTER_TYPE hashing hack.
18098         (scc_entry_compare): Rename to ...
18099         (DFS::scc_entry_compare): ... this one.
18100         (hash_scc): Rename to ...
18101         (DFS::hash_scc): ... this one; pass output_block instead
18102         of streamer_cache; work harder to get unique and stable SCC
18103         hashes.
18104         (DFS_write_tree): Rename to ...
18105         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
18106         (lto_output_tree): Update.
18107
18108 2014-07-25  Andi Kleen  <ak@linux.intel.com>
18109
18110         * lto-streamer-out.c (hash_tree): Convert to inchash.
18111
18112 2014-07-25  Andi Kleen  <ak@linux.intel.com>
18113
18114         * tree.c (build_type_attribute_qual_variant): Use inchash.
18115         (type_hash_list): Dito.
18116         (attribute_hash_list): Dito
18117         (iterative_hstate_expr): Dito.
18118         (iterative_hash_expr): Dito.
18119         (build_range_type_1): Dito.
18120         (build_array_type_1): Dito.
18121         (build_function_type): Dito.
18122         (build_method_type_directly): Dito.
18123         (build_offset_type): Dito.
18124         (build_complex_type): Dito.
18125         (make_vector_type): Dito.
18126         * tree.h (iterative_hash_expr): Add compat wrapper.
18127         (iterative_hstate_expr): Add.
18128
18129 2014-07-25  Andi Kleen  <ak@linux.intel.com>
18130
18131         * Makefile.in (OBJS): Add inchash.o.
18132         (PLUGIN_HEADERS): Add inchash.h.
18133         * ipa-devirt.c: Include inchash.h.
18134         * lto-streamer-out.c: Dito.
18135         * tree-ssa-dom.c: Dito.
18136         * tree-ssa-pre.c: Dito.
18137         * tree-ssa-sccvn.c: Dito.
18138         * tree-ssa-tail-merge.c: Dito.
18139         * asan.c: Dito.
18140         * tree.c (iterative_hash_hashval_t): Move to ...
18141         (iterative_hash_host_wide_int): Move to ...
18142         * inchash.c: Here. New file.
18143         * tree.h (iterative_hash_hashval_t): Move to ...
18144         (iterative_hash_host_wide_int): Move to ...
18145         * inchash.h: Here. New file.
18146
18147 2014-07-25  Richard Biener  <rguenther@suse.de>
18148
18149         PR middle-end/61762
18150         PR middle-end/61894
18151         * fold-const.c (native_encode_int): Add and handle offset
18152         parameter to do partial encodings of expr.
18153         (native_encode_fixed): Likewise.
18154         (native_encode_real): Likewise.
18155         (native_encode_complex): Likewise.
18156         (native_encode_vector): Likewise.
18157         (native_encode_string): Likewise.
18158         (native_encode_expr): Likewise.
18159         * fold-const.c (native_encode_expr): Add offset parameter
18160         defaulting to -1.
18161         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
18162         (fold_ctor_reference): Handle all reads from tcc_constant
18163         ctors.
18164
18165 2014-07-25  Richard Biener  <rguenther@suse.de>
18166
18167         * tree-inline.c (estimate_move_cost): Mark speed_p argument
18168         as possibly unused.
18169
18170 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18171
18172         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
18173
18174 2014-07-24  Kyle McMartin  <kyle@redhat.com>
18175
18176         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
18177
18178 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18179
18180         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
18181         Add prototype.
18182         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
18183         function.
18184         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
18185         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
18186         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
18187
18188 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18189
18190         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
18191         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
18192         aggregate types.  Instead, *all* aggregate types, except for single-
18193         element or homogeneous float/vector aggregates, are quadword-aligned
18194         if required by their type alignment.  Issue -Wpsabi note when a type
18195         is now treated differently than before.
18196
18197 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18198
18199         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
18200         does not fit fully into floating-point registers, and there is still
18201         space in the register parameter area, use GPRs to pass those parts
18202         of the argument.  Issue -Wpsabi note if any parameter is now treated
18203         differently than before.
18204         (rs6000_arg_partial_bytes): Update.
18205
18206 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
18207
18208         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
18209
18210 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18211
18212         * rtl.h (target_rtl): Remove lang_dependent_initialized.
18213         * toplev.c (initialize_rtl): Don't use it.  Move previously
18214         "language-dependent" calls to...
18215         (backend_init): ...here.
18216         (lang_dependent_init_target): Don't set lang_dependent_initialized.
18217         Assert that RTL initialization hasn't happend yet.
18218
18219 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18220
18221         PR rtl-optimization/61629
18222         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
18223         they have already been initialized.
18224
18225 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18226
18227         PR middle-end/61268
18228         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
18229         DECL_INCOMING_RTL and entry_parm.
18230         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
18231         * calls.c (load_register_parameters): Likewise argument values.
18232         (emit_library_call_value_1, store_one_arg): Likewise argument
18233         save areas.
18234         * config/i386/i386.c (assign_386_stack_local): Likewise the local
18235         stack slot.
18236         * explow.c (validize_mem): Modify the argument in-place.
18237
18238 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18239
18240         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
18241         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
18242
18243 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18244
18245         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
18246         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
18247
18248 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18249
18250         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
18251         (aarch64_save_callee_saves): New parameter "skip_wb".
18252         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
18253
18254 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18255
18256         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
18257         "wb_candidate2".
18258         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
18259
18260 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18261
18262         * graphite-isl-ast-to-gimple.c:
18263         (graphite_create_new_loop): Add calling of isl_id_free to properly
18264         decrement reference counts.
18265
18266         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
18267
18268 2014-07-24  Martin Liska  <mliska@suse.cz>
18269         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
18270         function used.
18271         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
18272         (rs6000_code_end): Likewise.
18273
18274 2014-07-24  Martin Liska  <mliska@suse.cz>
18275
18276         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
18277         symtab_node funtion used.
18278         (rs6000_xcoff_declare_object_name): Likewise.
18279
18280 2014-07-24  Martin Liska  <mliska@suse.cz>
18281
18282         * cgraphunit.c (compile): Correct function used.
18283
18284 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18285
18286         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
18287         as non-indexable.
18288
18289 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18290
18291         PR lto/61802
18292         * varasm.c (bss_initializer_p): Handle offlined ctors.
18293         (align_variable, get_variable_align): Likewise.
18294         (make_decl_one_only): Likewise.
18295         (default_binds_local_p_1): Likewise.
18296         (decl_binds_to_current_def_p): Likewise.
18297         (get_variable_section): Get constructor if it is offlined.
18298         (assemble_variable_contents): Sanity check that the caller
18299         streamed in the ctor in LTO.
18300
18301 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18302
18303         * graphite-isl-ast-to-gimple.c:
18304         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
18305         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
18306         isl_ast_op_pdiv_r to the different case.
18307
18308         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
18309
18310 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18311
18312         PR middle-end/61876
18313         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
18314         when flag_errno_math is on.
18315
18316 2014-07-24  Martin Liska  <mliska@suse.cz>
18317
18318         * cgraph.h (varpool_node):
18319         (availability get_availability (void)):
18320         created from cgraph_variable_initializer_availability
18321         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
18322         created from: cgraph_variable_initializer_availability
18323         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
18324         (void finalize_named_section_flags (void)):
18325         created from varpool_finalize_named_section_flags
18326         (bool assemble_decl (void)): created from varpool_assemble_decl
18327         (void analyze (void)): created from varpool_analyze_node
18328         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
18329         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
18330         (void remove_initializer (void)): created from varpool_remove_initializer
18331         (tree get_constructor (void)): created from varpool_get_constructor
18332         (bool externally_visible_p (void)): created from varpool_externally_visible_p
18333         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
18334         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
18335         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
18336         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
18337         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
18338         (static bool output_variables (void)): created from varpool_output_variables
18339         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
18340         created from varpool_extra_name_alias
18341         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
18342         (static void dump_varpool (FILE *f)): created from dump_varpool
18343         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
18344         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
18345         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
18346         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
18347         (void assemble_aliases (void)): created from assemble_aliases
18348
18349 2014-07-24  Martin Liska  <mliska@suse.cz>
18350
18351         * cgraph.h (symtab_node):
18352         (void register_symbol (void)): created from symtab_register_node
18353         (void remove (void)): created from symtab_remove_node
18354         (void dump (FILE *f)): created from dump_symtab_node
18355         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
18356         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
18357         (struct ipa_ref *add_reference (symtab_node *referred_node,
18358         enum ipa_ref_use use_type)): created from add_reference
18359         (struct ipa_ref *add_reference (symtab_node *referred_node,
18360         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
18361         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
18362         gimple stmt)): created from maybe_add_reference
18363         (bool semantically_equivalent_p (symtab_node *target)): created from
18364         symtab_semantically_equivalent_p
18365         (void remove_from_same_comdat_group (void)): created from
18366         remove_from_same_comdat_group
18367         (void add_to_same_comdat_group (symtab_node *old_node)): created from
18368         symtab_add_to_same_comdat_group
18369         (void dissolve_same_comdat_group_list (void)): created from
18370         symtab_dissolve_same_comdat_group_list
18371         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
18372         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
18373         created from symtab_alias_ultimate_target
18374         (inline symtab_node *next_defined_symbol (void)): created from
18375         symtab_next_defined_symbol
18376         (bool resolve_alias (symtab_node *target)): created from
18377         symtab_resolve_alias
18378         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
18379         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
18380         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
18381         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
18382         (void set_section (const char *section)): created from set_section_1
18383         (enum availability get_availability (void)): created from symtab_node_availability
18384         (void make_decl_local (void)): created from symtab_make_decl_local
18385         (bool real_symbol_p (void)): created from symtab_read_node
18386         (can_be_discarded_p (void)): created from symtab_can_be_discarded
18387         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
18388         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
18389         symtab_in_same_comdat_p;
18390         (bool address_taken_from_non_vtable_p (void)): created from
18391         address_taken_from_non_vtable_p
18392         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
18393         (static void dump_table (FILE *)): created from dump_symtab
18394         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
18395         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
18396         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
18397         symtab_used_from_object_file_p
18398         (void dump_base (FILE *)): created from dump_symtab_base
18399         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
18400         (void unregister (void)): created from symtab_unregister_node
18401         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
18402         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
18403         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
18404         symtab_nonoverwritable_alias_1
18405         * cgraph.h (cgraph_node):
18406         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
18407         created from cgraph_remove_node_and_inline_clones
18408         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
18409         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
18410         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
18411         (cgraph_node *function_symbol (enum availability *avail = NULL)):
18412         created from cgraph_function_node
18413         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
18414         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
18415         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
18416         created from cgraph_create_clone
18417         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
18418         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
18419         created from cgraph_create_virtual_clone
18420         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
18421         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
18422         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
18423         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
18424         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
18425         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
18426         created from cgraph_function_version_info
18427         (struct cgraph_function_version_info *insert_new_function_version (void)):
18428         created from insert_new_cgraph_node_version
18429         (struct cgraph_function_version_info *function_version (void)): created from
18430         get_cgraph_node_version
18431         (void analyze (void)): created from analyze_function
18432         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
18433         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
18434         tree real_alias) cgraph_add_thunk
18435         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
18436         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
18437         created from cgraph_function_or_thunk_node
18438         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
18439         created from expand_thunk
18440         (void reset (void)): created from cgraph_reset_node
18441         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
18442         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
18443         (void remove (void)): created from cgraph_remove_node
18444         (void dump (FILE *f)): created from dump_cgraph_node
18445         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
18446         (bool get_body (void)): created from cgraph_get_body
18447         (void release_body (void)): created from cgraph_release_function_body
18448         (void unnest (void)): created from cgraph_unnest_node
18449         (void make_local (void)): created from cgraph_make_node_local
18450         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
18451         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
18452         gcov_type count, int freq)): created from cgraph_create_edge
18453         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
18454         gcov_type count, int freq)): created from cgraph_create_indirect_edge
18455         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
18456         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
18457         created from cgraph_create_edge_including_clones
18458         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
18459         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
18460         (void remove_callers (void)): created from cgraph_node_remove_callers
18461         (void remove_callees (void)): created from cgraph_node_remove_callees
18462         (enum availability get_availability (void)): created from cgraph_function_body_availability
18463         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
18464         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
18465         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
18466         (void call_duplication_hooks (cgraph_node *node2)): created from
18467         cgraph_call_node_duplication_hooks
18468         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
18469         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
18470         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
18471         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
18472         (void call_function_insertion_hooks (void)):
18473         created from cgraph_call_function_insertion_hooks
18474         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
18475         (bool local_p (void)): created from cgraph_local_node
18476         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
18477         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
18478         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
18479         (inline bool only_called_directly_or_aliased_p (void)):
18480         created from cgraph_only_called_directly_or_aliased_p
18481         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
18482         created from cgraph_will_be_removed_from_program_if_no_direct_calls
18483         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
18484         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
18485         (bool can_remove_if_no_direct_calls_p (void)):
18486         created from cgraph_can_remove_if_no_direct_calls_p
18487         (inline bool has_gimple_body_p (void)):
18488         created from cgraph_function_with_gimple_body_p
18489         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
18490         (static void dump_cgraph (FILE *f)): created from dump_cgraph
18491         (static inline void debug_cgraph (void)): created from debug_cgraph
18492         (static void record_function_versions (tree decl1, tree decl2)):
18493         created from record_function_versions
18494         (static void delete_function_version (tree decl)):
18495         created from delete_function_version
18496         (static void add_new_function (tree fndecl, bool lowered)):
18497         created from cgraph_add_new_function
18498         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
18499         (static cgraph_node * create (tree decl)): created from cgraph_create_node
18500         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
18501         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
18502         (static cgraph_node *get_for_asmname (tree asmname)):
18503         created from cgraph_node_for_asm
18504         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
18505         created from cgraph_same_body_alias
18506         (static bool used_from_object_file_p_worker (cgraph_node *node,
18507         void *): new function
18508         (static bool non_local_p (cgraph_node *node, void *)):
18509         created from cgraph_non_local_node_p_1
18510         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
18511         created from verify_cgraph
18512         (static bool make_local (cgraph_node *node, void *)):
18513         created from cgraph_make_node_local
18514         (static cgraph_node *create_alias (tree alias, tree target)):
18515         created from cgraph_create_function_alias
18516         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
18517         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
18518         created from cgraph_create_edge_1
18519         * cgraph.h (varpool_node):
18520         (void remove (void)): created from varpool_remove_node
18521         (void dump (FILE *f)): created from dump_varpool_node
18522
18523 2014-07-24  Richard Biener  <rguenther@suse.de>
18524
18525         PR ipa/61823
18526         * tree-ssa-structalias.c (create_variable_info_for_1):
18527         Use varpool_get_constructor.
18528         (create_variable_info_for): Likewise.
18529
18530 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18531
18532         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
18533         subtract outgoing area size when restoring stack_pointer_rtx.
18534
18535 2014-07-24  Nick Clifton  <nickc@redhat.com>
18536
18537         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
18538         that operations are taking place in parallel.
18539         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
18540
18541 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
18542
18543         * omp-low.c (extract_omp_for_data): Add missing break statement.
18544
18545 2014-07-24  Richard Biener  <rguenther@suse.de>
18546
18547         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
18548         * tree-inline.c (estimate_move_cost): Add speed_p parameter
18549         and adjust MOVE_RATIO query accordingly.
18550         (estimate_num_insns): Adjust callers.
18551         * ipa-prop.c (ipa_populate_param_decls): Likewise.
18552         * ipa-cp.c (gather_context_independent_values,
18553         estimate_local_effects): Likewise.
18554         * ipa-split.c (consider_split): Likewise.
18555
18556 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
18557
18558         * config/i386/driver-i386.c: Remove names of unused arguments and
18559         unnecessary unused attributes.
18560         * config/i386/host-mingw32.c: Likewise.
18561         * config/i386/i386.c: Likewise.
18562         * config/i386/winnt-stubs.c: Likewise.
18563         * config/i386/winnt.c: Likewise.
18564
18565 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18566
18567         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
18568         (aarch64_gen_loadwb_pair): New helper function.
18569         (aarch64_expand_epilogue): Simplify code using new helper functions.
18570         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
18571
18572 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18573
18574         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
18575         (aarch64_gen_storewb_pair): New helper function.
18576         (aarch64_expand_prologue): Simplify code using new helper functions.
18577         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
18578
18579 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18580
18581         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
18582         Rename to aarch64_save_callee_saves, remove restore code.
18583         (aarch64_restore_callee_saves): New function.
18584
18585 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18586
18587         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
18588         (aarch64_save_callee_saves): New function to handle reg save
18589         for both core and vectore regs.
18590
18591 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18592
18593         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
18594         (aarch64_gen_store_pair): New helper function.
18595         (aarch64_save_or_restore_callee_save_registers)
18596         (aarch64_save_or_restore_fprs): Use new helper functions.
18597
18598 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18599
18600         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
18601         (aarch64_save_or_restore_callee_save_registers)
18602         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
18603
18604 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18605
18606         * config/aarch64/aarch64.c
18607         (aarch64_save_or_restore_callee_save_registers)
18608         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
18609
18610 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18611
18612         * config/aarch64/aarch64.c
18613         (aarch64_save_or_restore_callee_save_registers)
18614         (aarch64_save_or_restore_fprs): Remove 'increment'.
18615
18616 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18617
18618         * config/aarch64/aarch64.c
18619         (aarch64_save_or_restore_callee_save_registers)
18620         (aarch64_save_or_restore_fprs): Use register offset in
18621         cfun->machine->frame.reg_offset.
18622
18623 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18624
18625         * config/aarch64/aarch64.c
18626         (aarch64_save_or_restore_callee_save_registers)
18627         (aarch64_save_or_restore_fprs): Remove base_rtx.
18628
18629 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18630
18631         * config/aarch64/aarch64.c
18632         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
18633         to 'start_offset'.  Remove local variable 'start_offset'.
18634
18635 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18636
18637         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
18638         type to HOST_WIDE_INT.
18639
18640 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18641
18642         * config/aarch64/aarch64.c (aarch64_expand_prologue)
18643         (aarch64_save_or_restore_fprs)
18644         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
18645
18646 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18647
18648         * config/arm/t-rtems-eabi: Add
18649         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
18650         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
18651         mbig-endian/mthumb/march=armv7-r, and
18652         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18653         multilibs.
18654
18655 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18656             Chris Johns <chrisj@rtems.org>
18657             Joel Sherrill <joel.sherrill@oarcorp.com>
18658
18659         * config.gcc: Add nios2-*-rtems*.
18660         * config/nios2/rtems.h: New file.
18661         * gcc/config/nios2/t-rtems: New file.
18662
18663 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18664
18665         PR target/61396
18666         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18667         constant numbers, not general constants.
18668         (rs6000_expand_vector_init): Ditto.
18669
18670 2014-07-23  Nathan Sidwell  <nathan@acm.org>
18671
18672         * gcov-tool.c (gcov_list): Declare here.
18673         (set_gcov_list): Remove.
18674         (gcov_output_files): Set gcov_list directly.
18675
18676 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
18677
18678         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18679
18680 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18681
18682         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18683         callee-saved registers are available for padding purpose
18684         and r3 is not mandatory, then prefer use those callee-saved
18685         instead of r3.
18686
18687 2014-07-23  Richard Biener  <rguenther@suse.de>
18688
18689         * params.def (PARAM_MAX_COMBINE_INSNS): New.
18690         * combine.c: Include statistics.h and params.h.
18691         (combine_instructions): Guard three and four insn combines
18692         with max-combine-insns value.  Record statistics for combines
18693         performed.
18694         * doc/invoke.texi (max-combine-insns): Document new param.
18695
18696 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18697
18698         * graphite-isl-ast-to-gimple.c:
18699         (translate_isl_ast_node_block): New function.
18700         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18701
18702         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18703         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18704
18705 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18706
18707         * graphite-isl-ast-to-gimple.c:
18708         (get_max_schedule_dimensions): New function.
18709         (extend_schedule): Likewise.
18710         (generate_isl_schedule): Add calling of extend_schedule and
18711         get_max_schedule_dimensions.
18712
18713 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18714
18715         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18716         (case UNSPEC): Handle UNSPEC_RBIT.
18717
18718 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18719
18720         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18721         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18722
18723 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18724
18725         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18726
18727 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
18728
18729         * graphite-isl-ast-to-gimple.c:
18730         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18731         (ivs_params_clear):
18732         (build_iv_mapping): New function.
18733         (translate_isl_ast_node_user): Likewise.
18734         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18735
18736         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18737         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18738         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18739
18740 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18741
18742         PR target/55701
18743         * config/arm/arm.md (setmem): New pattern.
18744         * config/arm/arm-protos.h (struct tune_params): New fields.
18745         (arm_gen_setmem): New prototype.
18746         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18747         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18748         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18749         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18750         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18751         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18752         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18753         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18754         (arm_const_inline_cost): New function.
18755         (arm_block_set_max_insns): New function.
18756         (arm_block_set_non_vect_profit_p): New function.
18757         (arm_block_set_vect_profit_p): New function.
18758         (arm_block_set_unaligned_vect): New function.
18759         (arm_block_set_aligned_vect): New function.
18760         (arm_block_set_unaligned_non_vect): New function.
18761         (arm_block_set_aligned_non_vect): New function.
18762         (arm_block_set_vect, arm_gen_setmem): New functions.
18763
18764 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18765
18766         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18767
18768 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
18769
18770         PR target/61855
18771         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18772         out of #ifdef __OPTIMIZE__.
18773
18774 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18775
18776         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18777         different trapping status if -fnon-call-exceptions is enabled.
18778
18779 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18780
18781         * expr.c (store_field): Handle VOIDmode for calls that return values
18782         in multiple locations.
18783
18784 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18785
18786         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
18787         (altivec_vsldoi_<mode>): Likewise.
18788
18789 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18790
18791         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18792         to the number of characters in the line.
18793
18794 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18795
18796         * graphite-isl-ast-to-gimple.c: Add using of
18797         build_nonstandard_integer_type instead of int128_integer_type_node.
18798
18799 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
18800
18801         * toplev.c (output_stack_usage): Adjust the location of the warning.
18802
18803 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
18804
18805         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18806         (*membar_storeload): Disable for LEON3.
18807
18808 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18809
18810         PR rtl-optimization/61461
18811         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18812
18813 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
18814
18815         PR target/61794
18816         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18817         Fix instruction constraint.
18818         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18819
18820 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
18821
18822         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18823
18824 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
18825
18826         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18827         GNU coding standards.
18828         (nds32_register_move_cost): Likewise.
18829         (nds32_memory_move_cost): Likewise.
18830         (nds32_address_cost): Likewise.
18831
18832 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18833
18834         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18835
18836 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
18837
18838         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18839         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18840         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18841         (HAVE_sync_compare_and_swapqi): Define.
18842         (HAVE_sync_compare_and_swaphi): Likewise.
18843         (HAVE_sync_compare_and_swapsi): Likewise.
18844
18845 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
18846
18847         * config/mips/p5600.md: Add missing cpu tests.
18848
18849 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18850
18851         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18852         (vmla_f64): Likewise.
18853         (vfms_f64): Likewise.
18854         (vmls_f64): Likewise.
18855
18856 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18857
18858         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18859         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18860
18861 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18862
18863         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18864         (vmlal_high_lane_s32): Likewise.
18865         (vmlal_high_lane_u16): Likewise.
18866         (vmlal_high_lane_u32): Likewise.
18867         (vmlsl_high_lane_s16): Likewise.
18868         (vmlsl_high_lane_s32): Likewise.
18869         (vmlsl_high_lane_u16): Likewise.
18870         (vmlsl_high_lane_u32): Likewise.
18871
18872 2014-07-17  Terry Guo  <terry.guo@arm.com>
18873
18874         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18875         (alus_reg): Renamed to alus_sreg.
18876         * config/arm/arm-fixed.md: Change type of non-dsp instructions
18877         from alu_reg to alu_sreg.  Change type of dsp instructions from
18878         alu_reg to alu_dsp_reg.
18879         * config/arm/thumb1.md: Likewise.
18880         * config/arm/thumb2.md: Likewise.
18881         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18882         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18883         with alu_sreg and alus_sreg.
18884         * config/arm/arm1026ejs.md (alu_op): Likewise.
18885         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18886         * config/arm/arm926ejs.md (9_alu_op): Likewise.
18887         * config/arm/fa526.md (526_alu_op): Likewise.
18888         * config/arm/fa606te.md (606te_alu_op): Likewise.
18889         * config/arm/fa626te.md (626te_alu_op): Likewise.
18890         * config/arm/fa726te.md (726te_alu_op): Likewise.
18891         * config/arm/fmp626.md (mp626_alu_op): Likewise.
18892         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18893         alu_sreg, alu_dsp_reg and alus_sreg.
18894         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18895         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18896         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18897         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18898         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18899         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18900         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18901         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18902         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18903         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18904         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18905         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18906         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18907         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18908         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18909         alus_reg to alus_sreg.
18910
18911 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
18912
18913         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18914         infinity format.
18915
18916 2014-07-17  Richard Biener  <rguenther@suse.de>
18917
18918         PR rtl-optimization/61801
18919         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18920         don't set reg_pending_barrier if it appears in a debug-insn.
18921
18922 2014-07-16  DJ Delorie  <dj@redhat.com>
18923
18924         * config/rx/rx.c (rx_option_override): Fix alignment values.
18925         (rx_align_for_label): Likewise.
18926
18927 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
18928
18929         PR target/61737.
18930         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18931         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18932         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18933         functions.
18934         (cris_print_index, cris_print_operand, cris_constant_index_p)
18935         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18936         (cris_address_cost): Ditto last CONSTANT_P.
18937         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
18938         callers changed.  Yield cris_offsettable_symbol for non-PIC
18939         constant symbolic expressions including labels.  Yield cris_unspec
18940         for all unspecs.
18941         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
18942         target to pic_offset_table_rtx for calls that will likely go
18943         through PLT, const0_rtx when they can't.  All callers changed.
18944         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18945         symbolic expressions to be PICified.  Remove second, redundant,
18946         assert on can_create_pseudo_p returning non-zero.  Use
18947         replace_equiv_address_nv, not replace_equiv_address, for final
18948         operand update.
18949         * config/cris/cris.md ("movsi"): Move variable t to pattern
18950         toplevel. Adjust assert for new cris_symbol_type member.  Use
18951         CONSTANT_P instead of CONSTANT_ADDRESS_P.
18952         ("*movsi_internal") <case 9>: Make check for valid unspec operands
18953         for lapc stricter.
18954         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18955         ("call", "call_value"): Use second incoming operand as a marker
18956         for pic-offset-table-register being used.
18957         ("*expanded_call_non_v32", "*expanded_call_v32")
18958         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18959         second incoming operand to CALL, match cris_call_type_marker.
18960         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
18961         ("*expanded_call_side"): Ditto.  Fix typo in comment.
18962         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18963         CONSTANT_P.
18964         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18965         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18966         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
18967         users changed.  Add members cris_offsettable_symbol and cris_unspec.
18968         (cris_symbol_type): Rename from cris_pic_symbol_type.
18969         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18970         just CONSTANT_P.
18971         * config/cris/cris-protos.h (cris_symbol_type_of,
18972         cris_expand_pic_call_address): Adjust prototypes.
18973         (cris_legitimate_constant_p): New prototype.
18974
18975         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18976         an existing tmake_file.  Don't add t-slibgcc and t-linux.
18977
18978 2014-07-17  Jason Merrill  <jason@redhat.com>
18979
18980         PR c++/61623
18981         * symtab.c (symtab_remove_from_same_comdat_group): Also
18982         set_comdat_group to NULL_TREE.
18983         (verify_symtab): Fix diagnostic.
18984
18985 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
18986
18987         PR target/61662
18988         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18989
18990 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
18991
18992         Support location tracking for built-in macro tokens
18993         * input.h (is_location_from_builtin_token): New function declaration.
18994         * input.c (is_location_from_builtin_token): New function definition.
18995         * toplev.c (general_init): Tell libcpp what the pre-defined
18996         spelling location for built-in tokens is.
18997
18998 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
18999
19000         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
19001         on the FUNCTION_DECL.
19002
19003 2014-07-16  Richard Biener  <rguenther@suse.de>
19004
19005         PR other/61782
19006         * doc/extend.texi (always_inline): Clarify.
19007
19008 2014-07-15  Eric Christopher  <echristo@gmail.com>
19009
19010         * doc/invoke.texi (Link Options): Document -z option.
19011
19012 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
19013
19014         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
19015         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
19016
19017 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
19018
19019         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
19020
19021 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
19022
19023         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
19024         varpool_assemble_decl.
19025         * varpool.c (varpool_assemble_decl): Assert that node->definition is
19026         true.
19027
19028 2014-07-15  Michael Matz  <matz@suse.de>
19029
19030         PR rtl-optimization/61772
19031         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
19032
19033 2014-07-15  Richard Biener  <rguenther@suse.de>
19034
19035         * opts.c (default_options_table): Disable bit-ccp at -Og.
19036
19037 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
19038
19039         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
19040
19041 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
19042
19043         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
19044         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
19045         call langhook for unknown declaration.
19046         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
19047         * tree.h (DECL_ARGUMENTS): Update.
19048         * print-tree.c (print_node): Update.
19049         * tree-core.h (tree_decl_non_common): Remove arguments.
19050         (tree_function_decl): Add arguments.
19051
19052 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
19053
19054         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
19055
19056 2014-07-14  Richard Biener  <rguenther@suse.de>
19057
19058         PR tree-optimization/61779
19059         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
19060         simplifying a condition.
19061
19062 2014-07-14  Richard Biener  <rguenther@suse.de>
19063
19064         * builtins.c (c_strlen): Make only_value == 2 really only
19065         affect warning generation.
19066
19067 2014-07-14  Richard Biener  <rguenther@suse.de>
19068
19069         PR tree-optimization/61757
19070         PR tree-optimization/61783
19071         PR tree-optimization/61787
19072         * tree-ssa-dom.c (record_equality): Revert canonicalization
19073         change and add comment.
19074         (propagate_rhs_into_lhs): Revert previous fix, removing
19075         loop depth restriction again.
19076
19077 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19078
19079         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
19080         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
19081         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
19082         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
19083         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
19084         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
19085         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
19086
19087 2014-07-14  Richard Biener  <rguenther@suse.de>
19088
19089         * cgraph.h (decl_in_symtab_p): Make inline.
19090
19091 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
19092
19093         PR middle-end/61294
19094         * doc/invoke.texi (-Wmemset-transposed-args): Document.
19095
19096         PR target/61656
19097         * config/i386/i386.c (classify_argument): Don't merge classes above
19098         number of words.
19099
19100 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
19101
19102         * cgraph.h (symtab_node): Add nonzero_address.
19103         (decl_in_symtab_p): Break out from ...
19104         (symtab_get_node): ... here.
19105         * fold-const.c: Include cgraph.h
19106         (tree_single_nonzero_warnv_p): Use symtab to determine
19107         if symbol is non-zero.
19108         * symtab.c (symtab_node::nonzero_address): New method.
19109
19110 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
19111
19112         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
19113         forgotten in previous commit.
19114
19115 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
19116
19117         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
19118         on builtin types.
19119         * ipa-devirt.c: Include stor-layout.h and intl.h
19120         (odr_subtypes_equivalent_p): New function.
19121         (warn_odr): New function.
19122         (warn_type_mismatch): New function.
19123         (odr_types_equivalent_p): New function.
19124         (add_type_duplicate): Use it.
19125         * common.opt (Wodr): New flag.
19126         * doc/invoke.texi (Wodr): Document new warning.
19127
19128 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
19129
19130         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
19131         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
19132         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
19133         (varpool_get_constructor): Push CTORS_IN timevar.
19134         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
19135
19136 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
19137
19138         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
19139         Remove VOID_FTYPE_PUSHORT.
19140         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
19141         Change code to USHORT_FTYPE_VOID.
19142         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
19143         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
19144         (ix86_atomic_assign_expand_fenv): Update for
19145         __builtin_ia32_fnstsw changes.
19146         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
19147         (fnstsw): Change operand 0 to nonimmediate operand.
19148
19149 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19150
19151         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
19152         (varpool_get_constructor): New function.
19153         (varpool_ctor_useable_for_folding_p): Break out from ...
19154         (ctor_for_folding): ... here; use varpool_get_constructor.
19155         (varpool_assemble_decl): Likewise.
19156         * lto-streamer.h (struct output_block): Turn cgraph_node
19157         to symbol filed.
19158         (lto_input_variable_constructor): Declare.
19159         * ipa-visibility.c (function_and_variable_visibility): Use
19160         varpool_get_constructor.
19161         * cgraph.h (varpool_get_constructor): Declare.
19162         (varpool_ctor_useable_for_folding_p): New function.
19163         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
19164         parameter; return error_mark_node for non-trivial constructors.
19165         (lto_write_tree_1, DFS_write_tree): Update use of
19166         get_symbol_initial_value.
19167         (output_function): Update initialization of symbol.
19168         (output_constructor): New function.
19169         (copy_function): Rename to ..
19170         (copy_function_or_variable): ... this one; handle vars too.
19171         (lto_output): Output variable sections.
19172         * lto-streamer-in.c (input_constructor): New function.
19173         (lto_read_body): Rename from ...
19174         (lto_read_body_or_constructor): ... this one; handle vars too.
19175         (lto_input_variable_constructor): New function.
19176         * ipa-prop.c (ipa_prop_write_jump_functions,
19177         ipa_prop_write_all_agg_replacement): Update.
19178         * lto-cgraph.c (compute_ltrans_boundary): Use it.
19179         (output_cgraph_opt_summary): Set symbol to NULL.
19180
19181 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19182
19183         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
19184         non-polymorphic types.
19185         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
19186         * ipa-devirt.c (types_same_for_odr): Do not explode when one
19187         of types is not polymorphic.
19188
19189 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
19190
19191         * lra-constraints.c (remove_inheritance_pseudos): Process
19192         destination pseudo too.
19193
19194 2014-07-11  Rong Xu  <xur@google.com>
19195
19196         * gcov-tool.c (gcov_output_files): Fix build error introduced in
19197         commit r212448.
19198
19199 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19200
19201         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
19202         * config/avr/avr-devices.c (AVR_MCU): Same.
19203         (avr_mcu_types): add text start value to end of device list.
19204         * config/avr/avr-mcus.def: Add text section start for all devices.
19205         (ata5782): Add new avr5 device.
19206         (ata5831): Same.
19207         * config/avr/avr-tables.opt: Regenerate.
19208         * config/avr/avr.h: Add declaration for text section start handler.
19209         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
19210         SPEC functions.
19211         (LINK_SPEC): Include text section start handler to linker spec.
19212         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
19213         pass -Ttext option to linker if the text section start for the device
19214         is not zero.
19215         * config/avr/t-multilib: Regenerate.
19216         * doc/avr-mmcu.texi: Regenerate.
19217
19218 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
19219
19220         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
19221         * config/rs6000/aix52.h (LINK_SPEC): Same.
19222         * config/rs6000/aix53.h (LINK_SPEC): Same.
19223         * config/rs6000/aix61.h (LINK_SPEC): Same.
19224         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
19225
19226 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
19227
19228         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
19229         (graphite_verify): New function.
19230         (ivs_params_clear): New function.
19231         (gcc_expression_from_isl_ast_expr_id): New function.
19232         (gcc_expression_from_isl_expr_int): New function.
19233         (binary_op_to_tree): New function.
19234         (ternary_op_to_tree): New function.
19235         (unary_op_to_tree): New function.
19236         (nary_op_to_tree): New function.
19237         (gcc_expression_from_isl_expr_op): New function.
19238         (gcc_expression_from_isl_expression): New function.
19239         (graphite_create_new_loop): New function.
19240         (translate_isl_ast_for_loop): New function.
19241         (get_upper_bound): New function.
19242         (graphite_create_new_loop_guard): New function.
19243         (translate_isl_ast_node_for): New function.
19244         (translate_isl_ast): New function.
19245         (add_parameters_to_ivs_params): New function.
19246         (scop_to_isl_ast): New parameter ip.
19247         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
19248
19249 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19250
19251         * config/xtensa/predicates.md (call expander): Update for
19252         DECL_SECTION_NAME being string.
19253
19254 2014-07-11  Richard Biener  <rguenther@suse.de>
19255
19256         PR middle-end/61473
19257         * builtins.c (fold_builtin_memory_op): Inline memory moves that
19258         can be implemented with a single load followed by a single store.
19259         (c_strlen): Only warn when only_value is not 2.
19260
19261 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
19262
19263         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
19264
19265 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
19266
19267         PR target/61561
19268         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
19269         (*movhi_bytes): Likewise.
19270         (*arm_movqi_insn): Likewise.
19271
19272 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
19273
19274         PR target/56858
19275         * config/alpha/alpha.c: Include tree-pass.h, context.h
19276         and pass_manager.h.
19277         (pass_data_handle_trap_shadows): New pass.
19278         (pass_handle_trap_shadows::gate): New pass gate function.
19279         (make_pass_handle_trap_shadows): New function.
19280         (rest_of_handle_trap_shadows): Ditto.
19281
19282         (alpha_align_insns_1): Rename from alpha_align_insns.
19283         (pass_data_align_insns): New pass.
19284         (pass_align_insns::gate): New pass gate function.
19285         (make_pass_aling_insns): New function.
19286         (rest_of_align_insns): Ditto.
19287         (alpha_align_insns): Ditto.
19288
19289         (alpha_option_override): Declare handle_trap_shadows info
19290         and align_insns_info.  Register handle_trap_shadows and align_insns
19291         passes here.
19292         (alpha_reorg): Do not call alpha_trap_shadows and
19293         alpha_align_insn from here.
19294
19295         (alpha_pad_function_end): Do not skip BARRIERs.
19296
19297 2014-07-10  Rong Xu  <xur@google.com>
19298
19299         Add gcov-tool: an offline gcda profile processing tool support.
19300         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
19301         (gcov_is_error): Ditto.
19302         (gcov_read_string): Ditto.
19303         (gcov_read_sync): Ditto.
19304         * gcov-io.h: Move counter defines to gcov-counter.def.
19305         * gcov-dump.c (tag_counters): Use gcov-counter.def.
19306         * coverage.c: Ditto.
19307         * gcov-tool.c: Offline gcda profile processing tool.
19308         (unlink_gcda_file): Remove one gcda file.
19309         (unlink_profile_dir): Remove gcda files from the profile path.
19310         (gcov_output_files): Output gcda files to an output dir.
19311         (profile_merge): Merge two profiles in directory.
19312         (print_merge_usage_message): Print merge usage.
19313         (merge_usage): Print merge usage and exit.
19314         (do_merge): Driver for profile merge sub-command.
19315         (profile_rewrite): Rewrite profile.
19316         (print_rewrite_usage_message): Print rewrite usage.
19317         (rewrite_usage): Print rewrite usage and exit.
19318         (do_rewrite): Driver for profile rewrite sub-command.
19319         (print_usage): Print gcov-info usage and exit.
19320         (print_version): Print gcov-info version.
19321         (process_args): Process arguments.
19322         (main): Main routine for gcov-tool.
19323         * Makefile.in: Build and install gcov-tool.
19324         * gcov-counter.def: New file split from gcov-io.h.
19325         * doc/gcc.texi: Include gcov-tool.texi.
19326         * doc/gcov-tool.texi: Document for gcov-tool.
19327
19328 2014-07-10  Richard Biener  <rguenther@suse.de>
19329
19330         PR tree-optimization/61757
19331         * tree-ssa-dom.c (loop_depth_of_name): Restore.
19332         (propagate_rhs_into_lhs): Revert part of last change.
19333
19334 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
19335
19336         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
19337         FUNCTION_DECLs.
19338
19339 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
19340
19341         PR middle-end/53590
19342         * function.c (allocate_struct_function): Revert r188667 change.
19343
19344         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
19345
19346 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
19347
19348         * doc/install.texi: Remove links to defunct package providers for
19349         Solaris.
19350
19351 2014-07-09  Tom de Vries  <tom@codesourcery.com>
19352
19353         * final.c (get_call_fndecl): Declare.
19354         (self_recursive_call_p): New function.
19355         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
19356
19357 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19358
19359         * ipa-devirt.c (record_node): Walk through aliases.
19360
19361 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19362
19363         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
19364
19365 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19366
19367         Revert:
19368         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19369
19370 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19371
19372         * ipa-visibility.c (function_and_variable_visibility): Remove
19373         temporary hack disabling local aliases on AIX.
19374
19375 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19376
19377         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
19378         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
19379
19380 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19381
19382         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
19383         * rs6000/rs6000.c: Inline output of .set instruction.
19384         (declare_alias_data): New struct.
19385         (rs6000_declare_alias): New function.
19386         (rs6000_xcoff_declare_function_name): Use it.
19387         (rs6000_xcoff_declare_object_name): New function.
19388         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
19389         (ASM_OUTPUT_DEF): Turn to empty definition.
19390
19391 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19392
19393         PR bootstrap/61679
19394         * hash-table.h: use hash_table::value_type instead of
19395         Descriptor::value_type in the return types of several methods.
19396
19397 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19398
19399         * tree-pass.h (pass_data): Remove has_execute member.
19400         * passes.c (execute_one_pass): Don't check pass->has_execute.
19401         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19402         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19403         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19404         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19405         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19406         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19407         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19408         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19409         gimple-low.c, gimple-ssa-isolate-paths.c,
19410         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19411         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
19412         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
19413         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
19414         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
19415         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19416         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
19417         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
19418         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
19419         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
19420         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
19421         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19422         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19423         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19424         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19425         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19426         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19427         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19428         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19429         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19430         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19431         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19432         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
19433         web.c: Remove initializer for pass_data::has_execute.
19434
19435 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19436
19437         * graphite-htab.h: Use hash_map instead of hash_table.
19438         * graphite-clast-to-gimple.c: Adjust.
19439         * passes.c: Use hash_map instead of hash_table.
19440         * sese.c: Likewise.
19441         * sese.h: Remove now unused code.
19442
19443 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
19444
19445         PR target/61599
19446         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
19447         than zero.
19448
19449 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19450
19451         PR rtl-optimization/61673
19452         * combine.c (simplify_comparison): Test just mode's sign bit
19453         in tmode rather than the sign bit and any bits above it.
19454
19455 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
19456
19457         * graphite-isl-ast-to-gimple.c (generate_isl_context):
19458         Add __isl_give to the declaration.
19459         (generate_isl_schedule): Likewise.
19460         (scop_to_isl_ast): Likewise.
19461
19462 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19463
19464         * config/arm/arm.c (cortexa5_extra_costs): New table.
19465         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
19466
19467 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19468
19469         PR tree-optimization/61725
19470         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
19471         range, use range_includes_zerop_p instead of integer_zerop on
19472         vr0->min, only use log2 of max if min is not negative.
19473
19474 2014-07-08  Richard Biener  <rguenther@suse.de>
19475
19476         * tree-ssa-dom.h (loop_depth_of_name): Remove.
19477         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
19478         restriction on loop depth difference.
19479         (record_equality): Likewise.
19480         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
19481         (loop_depth_of_name): Remove.
19482         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
19483         restriction on loop depth difference.
19484         (init_copy_prop): Likewise.
19485
19486 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19487
19488         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
19489         parameter.
19490         (walk_aliased_vdefs): Likewise.
19491         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
19492         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
19493         (detect_type_change_from_memory_writes): Check if entry was reached.
19494
19495 2014-07-08  Richard Biener  <rguenther@suse.de>
19496
19497         PR tree-optimization/61681
19498         * tree-ssa-structalias.c (find_what_var_points_to): Expand
19499         NONLOCAL inside ESCAPED.
19500
19501 2014-07-08  Richard Biener  <rguenther@suse.de>
19502
19503         PR tree-optimization/61680
19504         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19505         Handle properly all read-write dependences with group accesses.
19506
19507 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
19508
19509         PR tree-optimization/61576
19510         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
19511         block containing reduction statement is predecessor of phi basi block.
19512
19513 2014-07-08  Marek Polacek  <polacek@redhat.com>
19514
19515         PR c/60226
19516         * fold-const.c (round_up_loc): Change the parameter type.
19517         Remove assert.
19518         * fold-const.h (round_up_loc): Adjust declaration.
19519         * stor-layout.c (finalize_record_size): Check for too large types.
19520
19521 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
19522
19523         * symtab.c: Include calls.h.
19524         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
19525
19526 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
19527
19528         * config/rs6000/rs6000.c (output_vec_const_move): Handle
19529         little-endian code generation.
19530         * config/rs6000/spe.md (spe_evmergehi): Rename to...
19531         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
19532         (spe_evmergehilo): Rename to...
19533         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
19534         (spe_evmergelo): Rename to...
19535         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
19536         (spe_evmergelohi): Rename to...
19537         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
19538         (spe_evmergehi, spe_evmergehilo): New expanders.
19539         (spe_evmergelo, spe_evmergelohi): Likewise.
19540         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
19541         (*frob_tf_ti): Likewise.
19542         (*frob_<mode>_di_2): Likewise.
19543         (*frob_tf_di_8_2): Likewise.
19544         (*frob_di_<mode>): Likewise.
19545         (*frob_ti_tf): Likewise.
19546         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
19547         (*frob_ti_<mode>_8_2): Likewise.
19548         (*frob_ti_tf_2): Likewise.
19549         (mov_si<mode>_e500_subreg0): Rename to...
19550         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
19551         endianness only.
19552         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
19553         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
19554         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
19555         the big endianness only.
19556         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
19557         (*mov_si<mode>_e500_subreg0_2): Rename to...
19558         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
19559         big big endianness only.
19560         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
19561         (*mov_si<mode>_e500_subreg4): Rename to...
19562         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
19563         endianness only.
19564         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
19565         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
19566         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
19567         the big endianness only.
19568         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
19569         pattern.
19570         (*mov_si<mode>_e500_subreg4_2): Rename to...
19571         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
19572         endianness only.
19573         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
19574         (*mov_sitf_e500_subreg8): Rename to...
19575         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
19576         endianness only.
19577         (*mov_sitf_e500_subreg8_le): New instruction pattern.
19578         (*mov_sitf_e500_subreg8_2): Rename to...
19579         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
19580         endianness only.
19581         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
19582         (*mov_sitf_e500_subreg12): Rename to...
19583         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
19584         endianness only.
19585         (*mov_sitf_e500_subreg12_le): New instruction pattern.
19586         (*mov_sitf_e500_subreg12_2): Rename to...
19587         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
19588         endianness only.
19589         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
19590
19591 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19592
19593         * asan.c (instrument_strlen_call): Do not instrument first byte
19594         in strlen if already instrumented.
19595
19596 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19597
19598         * config/arm/arm.opt (mwords-little-endian): Delete.
19599         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
19600         of TARGET_LITTLE_WORDS.
19601         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
19602         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
19603         warning.
19604         * doc/invoke.texi: Remove references to -mwords-little-endian.
19605
19606 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
19607
19608         * expmed.c (struct init_expmed_rtl): Change all fields but
19609         pow2 and cint from struct rtx_def to rtx.
19610         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
19611         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
19612         at the end again.
19613
19614 2014-07-06  Marek Polacek  <polacek@redhat.com>
19615
19616         PR c/6940
19617         * doc/invoke.texi: Document -Wsizeof-array-argument.
19618
19619 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
19620
19621         * wide-int.h (wide_int_storage): Change declaration from struct
19622         to class.
19623
19624 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
19625
19626         * cgraph.c (cgraph_create_indirect_edge): Update call of
19627         get_polymorphic_call_info.
19628         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
19629         (possible_polymorphic_call_targets): Add parameter call.
19630         (decl_maybe_in_construction_p): New predicate.
19631         (get_polymorphic_call_info): Add parameter call;
19632         use decl_maybe_in_construction_p.
19633         * gimple-fold.c (fold_gimple_assign): Update use of
19634         possible_polymorphic_call_targets.
19635         (gimple_fold_call): Likewise.
19636         * ipa-prop.c: Inlcude calls.h
19637         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
19638         (param_type_may_change_p): New predicate.
19639         (detect_type_change_from_memory_writes): Break out from ...
19640         (detect_type_change): ... this one; use param_type_may_change_p.
19641         (detect_type_change_ssa): Use param_type_may_change_p.
19642         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
19643
19644 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
19645
19646         PR target/49423
19647         * config/arm/arm-protos.h (arm_legitimate_address_p,
19648         arm_is_constant_pool_ref): Add prototypes.
19649         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
19650         (arm_is_constant_pool_ref) New function.
19651         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19652         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19653         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19654         operand. Remove pool_range and neg_pool_range attributes.
19655         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19656         pool_range and neg_pool_range attributes.
19657         * config/arm/constraints.md (Uh): New constraint.
19658         (Uq): Don't allow constant pool references.
19659
19660 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
19661
19662         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19663         (move_lo_quad_internal_be_<mode>): Likewise.
19664         (move_lo_quad_<mode>): Convert to define_expand.
19665         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19666         (aarch64_simd_move_hi_quad_be_<mode>): New.
19667         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19668         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19669         (aarch64_combinez_be<mode>): New.
19670         (aarch64_combine<mode>): Convert to define_expand.
19671         (aarch64_combine_internal<mode>): New.
19672         (aarch64_simd_combine<mode>): Remove bogus RTL description.
19673
19674 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19675
19676         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19677         combination of earlyclobber and read/write modifiers.
19678
19679 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19680
19681         * config/aarch64/aarch64-simd.md
19682         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19683
19684 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
19685
19686         PR target/61714
19687         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19688
19689 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
19690
19691         PR middle-end/61654
19692         * cgraphunit.c (expand_thunk): Call free_dominance_info.
19693
19694         PR tree-optimization/61684
19695         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19696         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19697
19698 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19699             Kito Cheng  <kito@0xlab.org>
19700             Monk Chiang  <sh.chiang04@gmail.com>
19701
19702         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19703         (nds32_symbol_load_store_p): Move to ...
19704         (nds32_fp_as_gp_check_available): Move to ...
19705         * config/nds32/nds32-fp-as-gp.c: ... here.
19706         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19707         extern declaration.
19708
19709 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19710             Kito Cheng  <kito@0xlab.org>
19711             Monk Chiang  <sh.chiang04@gmail.com>
19712
19713         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19714         (nds32_expand_store_multiple): Move to ...
19715         (nds32_expand_movmemqi): Move to ...
19716         * config/nds32/nds32-memory-manipulation.c: ... here.
19717
19718 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19719             Kito Cheng  <kito@0xlab.org>
19720             Monk Chiang  <sh.chiang04@gmail.com>
19721
19722         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19723         (nds32_output_casesi_pc_relative): Move to ...
19724         (nds32_output_casesi): Move to ...
19725         (nds32_mem_format): Move to ...
19726         (nds32_output_16bit_store): Move to ...
19727         (nds32_output_16bit_load): Move to ...
19728         (nds32_output_32bit_store): Move to ...
19729         (nds32_output_32bit_load): Move to ...
19730         (nds32_output_32bit_load_s): Move to ...
19731         (nds32_output_stack_push): Move to ...
19732         (nds32_output_stack_pop): Move to ...
19733         * config/nds32/nds32-md-auxiliary.c: ... here.
19734
19735 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19736             Ling-Hua Tseng  <uranus@tinlans.org>
19737
19738         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19739         the purpose of this file.
19740
19741 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19742             Kito Cheng  <kito@0xlab.org>
19743             Monk Chiang  <sh.chiang04@gmail.com>
19744
19745         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19746         (nds32_address_cost): Move implementation to ...
19747         * config/nds32/nds32-cost.c: ... here.
19748         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19749         (nds32_address_cost_impl): Declare.
19750
19751 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19752             Kito Cheng  <kito@0xlab.org>
19753             Monk Chiang  <sh.chiang04@gmail.com>
19754
19755         * config/nds32/nds32.c
19756         (nds32_consecutive_registers_load_store_p): Move to ...
19757         (nds32_valid_multiple_load_store): Move to ...
19758         (nds32_valid_stack_push_pop): Move to ...
19759         (nds32_can_use_bclr_p): Move to ...
19760         (nds32_can_use_bset_p): Move to ...
19761         (nds32_can_use_btgl_p): Move to ...
19762         (nds32_can_use_bitci_p): Move to ...
19763         * config/nds32/nds32-predicates.c: ... here.
19764
19765 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19766             Kito Cheng  <kito@0xlab.org>
19767             Monk Chiang  <sh.chiang04@gmail.com>
19768
19769         * config/nds32/nds32.c
19770         (nds32_expand_builtin_null_ftype_reg): Move to ...
19771         (nds32_expand_builtin_reg_ftype_imm): Move to ...
19772         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19773         (nds32_init_builtins): Move implementation to ...
19774         (nds32_expand_builtin): Move implementation to ...
19775         * config/nds32/nds32-intrinsic.c: ... here.
19776         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19777         (nds32_expand_builtin_impl): Declare.
19778
19779 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19780             Kito Cheng  <kito@0xlab.org>
19781             Monk Chiang  <sh.chiang04@gmail.com>
19782
19783         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19784         (nds32_emit_section_tail_template): Move to ...
19785         (nds32_emit_isr_jmptbl_section): Move to ...
19786         (nds32_emit_isr_vector_section): Move to ...
19787         (nds32_emit_isr_reset_conten): Move to ...
19788         (nds32_check_isr_attrs_conflict): Move to ...
19789         (nds32_construct_isr_vectors_information): Move to ...
19790         (nds32_asm_file_start): Move implementation to ...
19791         (nds32_asm_file_end): Move implementation to ...
19792         * config/nds32/nds32-isr.c: ... here.
19793         * config/nds32/nds32-protos.h
19794         (nds32_check_isr_attrs_conflict): Declare.
19795         (nds32_construct_isr_vectors_information): Declare.
19796         (nds32_asm_file_start_for_isr): Declare.
19797         (nds32_asm_file_end_for_isr): Declare.
19798
19799 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19800             Kito Cheng  <kito@0xlab.org>
19801             Monk Chiang  <sh.chiang04@gmail.com>
19802
19803         * config.gcc (nds32*): Add new modules to extra_objs.
19804         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19805         (nds32be-*-*): Likewise.
19806         * config/nds32/nds32-cost.c: New file.
19807         * config/nds32/nds32-fp-as-gp.c: New file.
19808         * config/nds32/nds32-intrinsic.c: New file.
19809         * config/nds32/nds32-isr.c: New file.
19810         * config/nds32/nds32-md-auxiliary.c: New file.
19811         * config/nds32/nds32-memory-manipulation.c: New file.
19812         * config/nds32/nds32-pipelines-auxiliary.c: New file.
19813         * config/nds32/nds32-predicates.c: New file.
19814         * config/nds32/t-nds32: New file.
19815
19816 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19817
19818         PR tree-optimization/61682
19819         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19820         using cases and when one of the operands is equal to 1.
19821
19822 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
19823
19824         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19825         ashr<mode>3): Correct mode of operands[2].
19826         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19827         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19828         Correct mode of operands[2].  Fix split condition.
19829
19830 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
19831
19832         * arm.md (arch): Add armv6_or_vfpv3.
19833         (arch_enabled): Add test for the above.
19834         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19835         on VFP9.
19836         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19837
19838 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19839
19840         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19841         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19842         HWI 1 and negate the unsigned value.
19843         * expmed.c (expand_sdiv_pow2): For modes wider than word always
19844         use AND instead of shift.
19845         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19846
19847 2014-07-03  Marek Polacek  <polacek@redhat.com>
19848
19849         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19850         (-fsanitize=float-divide-by-zero): Move to the table with
19851         -fsanitize=undefined suboptions.
19852         (-fsanitize=float-cast-overflow): Likewise.
19853
19854 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
19855
19856         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19857         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19858         endianness.
19859
19860 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19861
19862         * loop-invariant.c (struct invariant): Add a new member: eqno;
19863         (find_identical_invariants): Update eqno;
19864         (create_new_invariant): Init eqno;
19865         (get_inv_cost): Compute comp_cost with eqno;
19866
19867 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19868
19869         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19870         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19871         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19872         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19873         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19874
19875 2014-07-02  Christian Bruel  <christian.bruel@st.com>
19876
19877         PR target/29349
19878         PR target/53513
19879         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19880         (make_preds_opaque): Delete.
19881         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19882         (commit_mode_sets): New function.
19883         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19884         Process all modes at once.
19885         * basic-block.h (pre_edge_lcm_avs): Declare.
19886         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19887         Call clear_aux_for_edges. Fix comments.
19888         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19889         (pre_edge_rev_lcm): Idem.
19890         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19891         parameter.
19892         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19893         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19894         Idem.
19895         * config/i386/i386.c (x96_emit_mode_set): Idem.
19896         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19897         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
19898         (fpscr_toggle) Disallow from delay slot.
19899         * target.def (emit_mode_set): Add prev_mode parameter.
19900         * doc/tm.texi: Regenerate.
19901
19902 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19903
19904         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19905         variable i.
19906
19907 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19908
19909         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19910         vtable_pointer_value_to_vtable): Constify.
19911         (contains_polymorphic_type_p): Declare.
19912         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19913         vtable_pointer_value_to_vtable): Constify.
19914         (contains_polymorphic_type_p): New predicate.
19915         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19916         polymorphic types.
19917         (ipa_set_ancestor_jf): Likewise.
19918         (detect_type_change): Return false in easy cases.
19919         (compute_complex_assign_jump_func): Require type to contain
19920         polymorphic type.
19921         (compute_known_type_jump_func): Likewise.
19922
19923 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19924
19925         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19926         Remove.
19927         (type_in_anonymous_namespace_p): Constify argument.
19928         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19929         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19930         (main_odr_variant): New function.
19931         (hash_type_name): Make static; update assert; do not ICE on
19932         non-records.
19933         (types_same_for_odr): Bring here from tree.c; simplify and remove
19934         old structural comparing code that doesn't work for templates.
19935         (odr_hasher::equal): Update assert.
19936         (add_type_duplicate): Return true when bases should be computed;
19937         replace incomplete loader by complete; do not output duplicated
19938         warnings; do not ICE on non-records; set odr_violated flag.
19939         (get_odr_type): Be ready to replace incomplete type by complete
19940         one; work on ODR variants instead of main variants; reorder item
19941         in array so bases have still smaller indexes.
19942         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19943         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19944
19945 2014-07-01  Cary Coutant  <ccoutant@google.com>
19946
19947         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19948         lookup.
19949         (resolve_addr_in_expr): When replacing the rtx in a location list
19950         entry, get a new address table entry.
19951         (dwarf2out_finish): Call index_location_lists even if there are no
19952         addr_index_table entries yet.
19953
19954 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19955
19956         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19957         change for not being obvious.
19958
19959 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19960
19961         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19962         unused argument.
19963
19964 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19965
19966         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19967         (vcagt_f64): Likewise.
19968         (vcale_f64): Likewise.
19969         (vcaled_f64): Likewise.
19970         (vcales_f32): Likewise.
19971         (vcalt_f64): Likewise.
19972         (vcaltd_f64): Likewise.
19973         (vcalts_f32): Likewise.
19974
19975 2014-07-01  Marek Polacek  <polacek@redhat.com>
19976
19977         * doc/invoke.texi: Document -Wint-conversion.
19978
19979 2014-07-01  Marek Polacek  <polacek@redhat.com>
19980
19981         PR c/58286
19982         * doc/invoke.texi: Document -Wincompatible-pointer-types.
19983
19984 2014-07-01  Martin Liska  <mliska@suse.cz>
19985
19986         IPA REF alias refactoring
19987         * cgraph.h (iterate_direct_aliases): New function.
19988         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19989         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19990         FOR_EACH_ALIAS added.
19991         (cgraph_for_node_and_aliases): Likewise.
19992         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19993         * ipa-inline.c (reset_edge_caches): Likewise.
19994         (update_caller_keys): Likewise.
19995         * trans-mem.c (ipa_tm_execute): Likewise.
19996         *varpool.c (varpool_analyze_node): Likewise.
19997         (varpool_for_node_and_aliases): Likewise.
19998         * ipa-ref.h (first_alias): New function.
19999         (last_alias): Likewise.
20000         (has_aliases_p): Likewise.
20001         * ipa-ref.c (ipa_ref::remove_reference): Removal function
20002         is sensitive to IPA_REF_ALIASes.
20003         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
20004         are put at the beginning of the list.
20005         (symtab_node::iterate_direct_aliases): New function.
20006
20007 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20008
20009         Revert:
20010         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
20011         type is complete.
20012         (write_ts_type_common_tree_pointers): Do not stream fields not set
20013         for incomplete types; do not stream duplicated fields for variants;
20014         sanity check that variant and type match.
20015         (write_ts_type_non_common_tree_pointers): Likewise.
20016         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
20017         TYPE_SIZE whether type is complete.
20018         (lto_input_ts_type_common_tree_pointers): Do same changes as in
20019         write_ts_type_common_tree_pointers
20020         (lto_input_ts_type_non_common_tree_pointers): Likewise.
20021
20022 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
20023
20024         * var-tracking.c (add_stores): Return instead of asserting if old
20025         and new values for conditional store are the same.
20026
20027 2014-06-30  Richard Henderson  <rth@redhat.com>
20028
20029         PR rtl-opt/61608
20030         PR target/39284
20031         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
20032         the cfg if there were any changes.
20033         * passes.def: Revert move of peephole2 after reorder_blocks;
20034         move duplicate_computed_gotos before peephole2.
20035
20036 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
20037
20038         * except.c (emit_note_eh_region_end): New helper function.
20039         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
20040         emit EH_REGION_END note.
20041         * jump.c (cleanup_barriers): Do not split a call and its
20042         corresponding CALL_ARG_LOCATION note.
20043
20044 2014-06-30  Jeff Law  <law@redhat.com>
20045
20046         PR tree-optimization/61607
20047         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
20048         deeper into the SSA_NAME_VALUE chain.
20049
20050 2014-06-30  Marek Polacek  <polacek@redhat.com>
20051
20052         * convert.c (convert_to_integer): Don't instrument conversions if the
20053         function has no_sanitize_undefined attribute.
20054         * ubsan.c: Don't run the ubsan pass if the function has
20055         no_sanitize_undefined attribute.
20056
20057 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
20058
20059         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
20060         -fsanitize=undefined suboptions.
20061
20062 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
20063
20064         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
20065         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
20066         against bigendian and adjust indices.
20067
20068 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
20069
20070         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
20071
20072 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20073
20074         PR target/61633
20075         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
20076         Add alternative; make early clobber.  Adjust both split patterns
20077         to use operand 0 as the working register.
20078
20079 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
20080
20081         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
20082         as ira_object_id_map might be NULL, or 1.
20083
20084 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20085
20086         * loop-invariant.c (get_inv_cost): Handle register class.
20087         (gain_for_invariant): Check the register pressure of the inv
20088         and its overlapped register class, other than all.
20089
20090 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
20091
20092         * doc/invoke.texi (Optimize Options): Fix descriptions of
20093         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
20094
20095 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
20096
20097         * doc/extend.texi (Function Attributes): Update 'naked' attribute
20098         documentation.
20099
20100 2014-06-29  Tobias Grosser <tobias@grosser.es>
20101
20102         PR bootstrap/61650
20103         * graphite-isl-ast-to-gimple.c: Add missing guards.
20104
20105 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
20106
20107         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
20108         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
20109         * flag-types.h: Add new enum fgraphite_generator.
20110         * graphite-isl-ast-to-gimple.c: New.
20111         * graphite-isl-ast-to-gimple.h: New.
20112         * graphite.c (graphite_transform_loops): Add choice of Graphite
20113         code generator, which depends on flag_graphite_code_gen.
20114
20115 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
20116
20117         * graphite-dependences.c (subtract_commutative_associative_deps):
20118         Add NULL checking of the following variables: must_raw_no_source,
20119         may_raw_no_source, must_war_no_source, may_war_no_source,
20120         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
20121         must_war, may_war, must_waw, may_waw.
20122
20123 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
20124
20125         * graphite-clast-to-gimple.c: gloog is renamed to
20126         graphite_regenerate_ast_cloog.  gloog_error is renamed to
20127         graphite_regenerate_error.
20128         * graphite-clast-to-gimple.h: The definition of the struct
20129         bb_pbb_def is moved to graphite-htab.h.
20130         Add inclusion of the hash-table.h.
20131         * graphite-htab.h: The declaration of the function gloog is moved
20132         to graphite-clast-to-gimple.h and renamed to
20133         graphite_regenerate_ast_cloog.
20134         * graphite.c (graphite_transform_loops): gloog is renamed
20135         to graphite_regenerate_ast_cloog.
20136
20137 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20138
20139         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
20140         type is complete.
20141         (write_ts_type_common_tree_pointers): Do not stream fields not set
20142         for incomplete types; do not stream duplicated fields for variants;
20143         sanity check that variant and type match.
20144         (write_ts_type_non_common_tree_pointers): Likewise.
20145         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
20146         TYPE_SIZE whether type is complete.
20147         (lto_input_ts_type_common_tree_pointers): Do same changes as in
20148         write_ts_type_common_tree_pointers
20149         (lto_input_ts_type_non_common_tree_pointers): Likewise.
20150
20151 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20152
20153         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
20154
20155 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20156
20157         * tree-inline.c (remap_type_1): Do not duplicate fields
20158         that are shared in between type and its main variant.
20159
20160 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20161
20162         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
20163         of the type.
20164         (ipa_set_ancestor_jf) Likewise.
20165         (check_stmt_for_type_change): Check that we work on main variant.
20166         (detect_type_change): Look into main variant.
20167         (compute_known_type_jump_func): Check that main variant has BINFO.
20168
20169 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20170
20171         * ipa-devirt.c (set_type_binfo): New function.
20172         (add_type_duplicate): Use it.
20173         (get_odr_type): Sanity check that binfos points to main variants.
20174         (get_class_context): Be sure the context's outer_type is main variant.
20175         (contains_type_p): Walk main variant.
20176         (get_polymorphic_call_info_for_decl): Set outer_type to be
20177         main variant.
20178         (get_polymorphic_call_info): Likewise.
20179         (possible_polymorphic_call_targets): Sanity check that we operate
20180         on main variant.
20181
20182 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20183
20184         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
20185
20186 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20187
20188         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
20189         accidental change due to wide-int branch merge.
20190
20191 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20192
20193         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
20194         compressed debug support.
20195         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
20196         * configure: Regenerate.
20197         * config.in: Regenerate.
20198         * common.opt (compressed_debug_sections): New enum.
20199         (gz, gz=): New options.
20200         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
20201         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
20202         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
20203         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
20204         LINK_COMPRESS_DEBUG_SPEC.
20205         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
20206         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
20207         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
20208         (Debugging Options): Document -gz[=type].
20209
20210 2014-06-27  Martin Jambor  <mjambor@suse.cz>
20211
20212         PR ipa/61160
20213         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
20214         args_to_skip, use those from node instead.  Copy args_to_skip and
20215         combined_args_to_skip from node to the new thunk.
20216         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
20217         (cgraph_create_virtual_clone): Moved computation of
20218         combined_args_to_skip...
20219         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
20220
20221 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
20222
20223         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
20224         redundant diagnostic machinary.
20225
20226 2014-06-27  Richard Biener  <rguenther@suse.de>
20227
20228         * tree-ssa-math-opts.c (bswap_replace): Fix
20229         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
20230
20231 2014-06-27  Martin Liska  <mliska@suse.cz>
20232
20233         * gimple.h (gimple_location_safe): New function introduced.
20234         * cgraphunit.c (walk_polymorphic_call_targets): Usage
20235         of gimple_location_safe replaces gimple_location.
20236         (gimple_fold_call): Likewise.
20237         * ipa-devirt.c (ipa_devirt): Likewise.
20238         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20239         * ipa.c (walk_polymorphic_call_targets): Likewise.
20240         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20241
20242 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
20243
20244         PR tree-optimization/57233
20245         PR tree-optimization/61299
20246         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
20247         functions.
20248         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
20249         would be lowered to scalar shifts, check if corresponding
20250         shifts and vector BIT_IOR_EXPR are supported and don't lower
20251         or lower just to narrower vector type in that case.
20252         * expmed.c (expand_shift_1): Fix up handling of vector
20253         shifts and rotates.
20254
20255 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
20256
20257         PR target/61586
20258         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
20259
20260 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
20261
20262         * doc/invoke.texi (-fsemantic-interposition): Document.
20263         * common.opt (fsemantic-interposition): New flag.
20264         * varasm.c (decl_replaceable_p): Use it.
20265
20266 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20267
20268         PR target/61542
20269         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
20270         extraction other than index 3.
20271
20272 2014-06-26  Teresa Johnson  <tejohnson@google.com>
20273
20274         * doc/invoke.texi: Fix typo.
20275         * dumpfile.c: Add support for documented -fdump-* options
20276         optimized/missed/note/optall.
20277
20278 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20279
20280         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
20281         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
20282         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
20283         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
20284         * opts.c (default_options_optimization): Set
20285         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
20286         * doc/invoke.texi (allow-load-data-races)
20287         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
20288         (allow-store-data-races): Document the new default.
20289
20290 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20291
20292         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
20293         renamed to ipa_impossible_devirt_target.  Fix typo.
20294         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
20295         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
20296         ipa_impossible_devirt_target.
20297
20298 2014-06-26  Richard Biener  <rguenther@suse.de>
20299
20300         PR tree-optimization/61607
20301         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
20302         explaining why we restrict copies on loop depth.
20303         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20304         on loop depth.
20305         (record_equivalences_from_phis): Instead add it here.
20306
20307 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
20308
20309         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
20310         (LTO_WRAPPER_OBJS): New variable.
20311         (lto-wrapper$(exeext)): Use it.
20312         * collect2.c: Include "collect-utils.h".
20313         (verbose, debug): Remove variables.
20314         (at_file_supplied): No longer static.
20315         (tool_name): New variable.
20316         (do_wait, fork_execute, maybe_unlink): Don't declare.
20317         (tool_cleanup): No longer static.
20318         (notice): Remove function.
20319         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
20320         fork_execute calls.
20321         (collect_wait, do_wait, collect_execute): Remove functions.
20322         (maybe_unlink): No longer static.
20323         * collect2.h (verbose, debug): Don't declare.
20324         (at_file_supplied): Declare.
20325         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
20326         changed.
20327         (collect_execute): Replace with implementation from collect2, plus a
20328         new arg use_atfile.  All callers changed.
20329         (collect_wait): Replace with implementation from collect2.
20330         (maybe_unlink_file): Remove function.
20331         (fork_execute): Replace with implementation from collect2, plus a
20332         new arg use_atfile.  All callers changed.
20333         (do_wait): Add call to utils_cleanup to the error path.
20334         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
20335         (tool_cleanup): Adjust declarations.
20336         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
20337         * tlink.c: Include "collect-utils.h".
20338         (tlink_execute): New arg use_atfile.  All callers changed.
20339         (tlink_init, tlink_execute): Remove declarations.
20340
20341         * collect-utils.c (save_temps): New variable.
20342         (do_wait): Use it instead of debug.  Use fatal_error.
20343         * collect-utils.h (save_temps): Declare.
20344         * collect2.c (verbose): Rename from vflag.  All uses changed.
20345         (tool_cleanup): New function, copied from collect_atexit.
20346         (collect_atexit, handler): Just call it.
20347         * collect2.h (verbose): Declaration renamed from vflag.
20348         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
20349         debug.
20350
20351         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
20352         (lto-wrapper$(exeext)): Link with collect-utils.o.
20353         * collect-utils.c: New file.
20354         * collect-utils.h: New file.
20355         * lto-wrapper.c: Include "collect-utils.h".
20356         (args_name): Delete variable.
20357         (tool_name): New variable.
20358         (tool_cleanup): New function.
20359         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
20360         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
20361         (fork_execute): Remove functions.
20362
20363 2014-06-26  Nick Clifton  <nickc@redhat.com>
20364
20365         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
20366
20367         * doc/extend.texi (Function Attributes): Fix typo in description
20368         of RX vector attribute.
20369
20370 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20371
20372         * config.gcc (supported_defaults): Error when passing either
20373         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
20374
20375 2014-06-26  Richard Biener  <rguenther@suse.de>
20376
20377         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20378         propagating volatile pointers.
20379
20380 2014-06-26  Richard Biener  <rguenther@suse.de>
20381
20382         PR tree-optimization/61607
20383         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
20384         loop if we redirected its latch edge.
20385         (thread_block_1): Do not cancel loops prematurely.
20386
20387 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
20388
20389         * toplev.c (backend_init_target): Move init_emit_regs and
20390         init_regs to...
20391         (backend_init) ... here; skip ira_init_once and backend_init_target.
20392         (target_reinit) ... and here; clear
20393         this_target_rtl->lang_dependent_initialized.
20394         (lang_dependent_init_target): Clear
20395         this_target_rtl->lang_dependent_initialized;
20396         break out rtl initialization to ...
20397         (initialize_rtl): ... here; call also backend_init_target
20398         and ira_init_once.
20399         * toplev.h (initialize_rtl): New function.
20400         * function.c: Include toplev.h
20401         (init_function_start): Call initialize_rtl.
20402         * rtl.h (target_rtl): Add target_specific_initialized,
20403         lang_dependent_initialized.
20404
20405 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
20406             Jakub Jelinek  <jakub@redhat.com>
20407
20408         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
20409
20410 2014-06-25  Tom de Vries  <tom@codesourcery.com>
20411
20412         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
20413
20414 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20415
20416         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
20417         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
20418         Issue a strict overflow warning if appropriate.
20419
20420 2014-06-25  Martin Liska  <mliska@suse.cz>
20421
20422         IPA REF refactoring
20423         * Makefile.in: Removed header file (ipa-ref-inline.h).
20424         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
20425         called.
20426         (cgraph_speculative_call_info): Likewise.
20427         (cgraph_for_node_thunks_and_aliases): Likewise.
20428         (cgraph_for_node_and_aliases): Likewise.
20429         (verify_cgraph_node): Likewise.
20430         * cgraph.h: Batch of IPA REF functions become member functions of
20431         symtab_node: add_reference, maybe_add_reference, clone_references,
20432         clone_referring, clone_reference, find_reference,
20433         remove_stmt_references, remove_all_references,
20434         remove_all_referring, dump_references, dump_referring,
20435         has_alias_p, iterate_reference, iterate_referring.
20436         * cgraphbuild.c (record_reference): New IPA REF function used.
20437         (record_type_list): Likewise.
20438         (record_eh_tables): Likewise.
20439         (mark_address): Likewise.
20440         (mark_load): Likewise.
20441         (mark_store): Likewise.
20442         (pass_build_cgraph_edges): Likewise.
20443         (rebuild_cgraph_edge): Likewise.
20444         (cgraph_rebuild_references): Likewise.
20445         (pass_remove_cgraph_callee_edges): Likewise.
20446         * cgraphclones.c (cgraph_clone_node): Likewise.
20447         (cgraph_create_virtual_clone): Likewise.
20448         (cgraph_materialize_clone): Likewise.
20449         (cgraph_materialize_all_clones): Likewise.
20450         * cgraphunit.c (cgraph_reset_node): Likewise.
20451         (cgraph_reset_node): Likewise.
20452         (analyze_function): Likewise.
20453         (assemble_thunks_and_aliases): Likewise.
20454         (expand_function): Likewise.
20455         * ipa-comdats.c (propagate_comdat_group): Likewise.
20456         (enqueue_references): Likewise.
20457         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
20458         (create_specialized_node): Likewise.
20459         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
20460         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
20461         * ipa-inline.c (reset_edge_caches): Likewise.
20462         (update_caller_keys): Likewise.
20463         (execute): Likewise.
20464         * ipa-prop.c (remove_described_reference): Likewise.
20465         (propagate_controlled_uses): Likewise.
20466         (ipa_edge_duplication_hook): Likewise.
20467         (ipa_modify_call_arguments): Likewise.
20468         * ipa-pure-const.c (propagate_pure_const): Likewise.
20469         * ipa-ref-inline.h: Header file removed, functions moved
20470         to symtab_node class.
20471         * ipa-ref.c (remove_reference): New class member function.
20472         (cannot_lead_to_return): New class member function.
20473         (referring_ref_list): Likewise.
20474         (referred_ref_list): Likewise.
20475         Rest of functions moved to symtab_node class.
20476         * ipa-ref.h: New member functions remove_reference,
20477         cannot_lead_to_return, referring_ref_list, referred_ref_list added
20478         to ipa_ref class.
20479         ipa_ref_list class has new member functions: first_reference,
20480         first_referring, clear, nreferences.
20481         * ipa-reference.c (analyze_function): New IPA REF function used.
20482         (write_node_summary_p): Likewise.
20483         (ipa_reference_write_optimization_summary): Likewise.
20484         * ipa-split.c (split_function): Likewise.
20485         * ipa-utils.c (ipa_reverse_postorder): Likewise.
20486         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
20487         (function_and_variable_visibility): Likewise.
20488         * ipa.c (has_addr_references_p): Likewise.
20489         (process_references): Argument type changed.
20490         (symtab_remove_unreachable_nodes): New IPA REF function used.
20491         (process_references): Likewise.
20492         (set_writeonly_bit): Likewise.
20493         * lto-cgraph.c: Implementation of new symtab_node member functions
20494         that uses new IPA REF functions.
20495         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
20496         function used.
20497         * lto-streamer-out.c (output_symbol_p): Likewise.
20498         * lto-streamer.h (referenced_from_this_partition_p): Argument type
20499         changed.
20500         * symtab.c: Implementation of new IPA REF API.
20501         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
20502         (ipa_tm_create_version): Likewise.
20503         (ipa_tm_execute): Likewise.
20504         * tree-emutls.c (gen_emutls_addr): Likewise.
20505         * tree-inline.c (copy_bb): Likewise.
20506         (delete_unreachable_blocks_update_callgraph): Likewise.
20507         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
20508         (varpool_for_node_and_aliases): Likewise.
20509
20510 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20511
20512         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
20513
20514 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20515
20516         PR bootstrap/61598
20517         * fold-const.c (fold_checksum_tree): Use a hash_table of const
20518         tree_node * instead of tree_node *.
20519         (fold): Adjust.
20520         (print_fold_checksum): Likewise.
20521         (fold_check_failed): Likewise.
20522         (debug_fold_checksum): Likewise.
20523         (fold_build1_stat_loc): Likewise.
20524         (fold_build2_stat_loc): Likewise.
20525         (fold_build3_stat_loc): Likewise.
20526         (fold_build_call_array_loc): Likewise.
20527
20528 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
20529
20530         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
20531         implementation with call to...
20532         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
20533         function.
20534         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
20535         Declare.
20536
20537 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
20538
20539         PR tree-optimization/57742
20540         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
20541         after replacing the statement.
20542
20543 2014-06-25  Nick Clifton  <nickc@redhat.com>
20544
20545         * config/v850/v850.c (GHS_default_section_names): Change to const
20546         char * type.
20547         (GHS_current_section_names): Likewise.
20548         (v850_insert_attributes): Do not build strings, just assign the
20549         names directly.  Change the type of 'chosen_section' to const
20550         char*.
20551         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
20552         directly to the array entry.
20553         * config/v850/v850.h (GHS_default_section_names): Change to const
20554         char * type.
20555         (GHS_current_section_names): Likewise.
20556
20557 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
20558
20559         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
20560         (LANG_HOOKS_DECLS): Add it.
20561         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
20562         has correct type.
20563         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
20564         * langhooks.h (struct lang_hooks_for_decls): Add
20565         omp_clause_linear_ctor hook.
20566         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
20567         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
20568         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
20569         combined simd loop use omp_clause_linear_ctor hook.
20570
20571 2014-06-24  Cong Hou  <congh@google.com>
20572
20573         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
20574         pattern recognition.
20575         (type_conversion_p): PROMOTION is true if it's a type promotion
20576         conversion, and false otherwise.  Return true if the given expression
20577         is a type conversion one.
20578         * tree-vectorizer.h: Adjust the number of patterns.
20579         * tree.def: Add SAD_EXPR.
20580         * optabs.def: Add sad_optab.
20581         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
20582         * expr.c (expand_expr_real_2): Likewise.
20583         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20584         * gimple.c (get_gimple_rhs_num_ops): Likewise.
20585         * optabs.c (optab_for_tree_code): Likewise.
20586         * tree-cfg.c (estimate_operator_cost): Likewise.
20587         * tree-ssa-operands.c (get_expr_operands): Likewise.
20588         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
20589         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
20590         * doc/generic.texi: Add document for SAD_EXPR.
20591         * doc/md.texi: Add document for ssad and usad.
20592
20593 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20594
20595         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
20596         qualification in cast.
20597
20598 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
20599
20600         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
20601         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
20602         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
20603         (tree_function_decl): ... here.
20604         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
20605         streaming of vindex to ...
20606         (write_ts_function_decl_tree_pointers): ... here.
20607         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20608         Do not stream DECL_VINDEX.
20609         (lto_input_ts_function_decl_tree_pointers): Stream it here.
20610
20611 2014-06-24  Catherine Moore  <clm@codesourcery.com>
20612             Sandra Loosemore  <sandra@codesourcery.com>
20613
20614         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
20615         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
20616         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
20617
20618 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20619
20620         * doc/invoke.texi (Warning Options): Remove duplicated
20621         -Wmaybe-uninitialized.
20622
20623 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20624
20625         PR tree-optimization/57742
20626         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
20627         (handle_builtin_malloc, handle_builtin_memset): New functions.
20628         (strlen_optimize_stmt): Call them.
20629         * passes.def: Move strlen after loop+dom but before vrp.
20630
20631 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20632
20633         PR target/61570
20634         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
20635         model family 6 CPU with has_longmode never use a CPU without
20636         64-bit support.
20637
20638 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
20639
20640         PR target/61570
20641         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
20642         the last change.
20643
20644 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20645
20646         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
20647         * dominance.c (iterate_fix_dominators): Use hash_map instead of
20648         pointer_map.
20649         * hash-map.h: New file.
20650         * ipa-comdats.c: Use hash_map instead of pointer_map.
20651         * ipa.c: Likewise.
20652         * lto-section-out.c: Adjust.
20653         * lto-streamer.h: Replace pointer_map with hash_map.
20654         * symtab.c (verify_symtab): Likewise.
20655         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20656         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20657         * tree-streamer.h: Likewise.
20658         * tree-streamer.c: Adjust.
20659         * pointer-set.h: Remove pointer_map.
20660
20661 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20662
20663         * hash-table.h: Add a template arg to choose between storing values
20664         and storing pointers to values, and then provide partial
20665         specializations for both.
20666         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20667         should store, not the type values should point to.
20668         * tree-into-ssa.c (var_info_hasher): Likewise.
20669         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20670         * tree-complex.c: Adjust.
20671         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20672         table instead of int_tree_map *.
20673         * tree-parloops.c: Adjust.
20674         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20675         type is being stored.
20676         * tree-vectorizer.c: Adjust.
20677
20678 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20679
20680         * hash-table.h: Remove a layer of indirection from hash_table so that
20681         it contains the hash table's data instead of a pointer to the data.
20682         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20683         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20684         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20685         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20686         fold-const.c, gcse.c, ggc-common.c,
20687         gimple-ssa-strength-reduction.c, gimplify.c,
20688         graphite-clast-to-gimple.c, graphite-dependences.c,
20689         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20690         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20691         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20692         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20693         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20694         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20695         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20696         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20697         tree-ssa-live.c, tree-ssa-loop-im.c,
20698         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20699         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20700         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20701         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20702         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20703         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20704         vtable-verify.c, vtable-verify.h: Adjust.
20705
20706 2014-06-24  Richard Biener  <rguenther@suse.de>
20707
20708         PR tree-optimization/61572
20709         * tree-ssa-sink.c (statement_sink_location): Do not sink
20710         loads from hard registers.
20711
20712 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20713
20714         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20715         not mentioned in clauses use private clause if the iterator is
20716         declared in #pragma omp for simd, and when adding lastprivate
20717         instead, add it to the outer #pragma omp for too.  Diagnose
20718         if the variable is private in outer context.  For simd collapse > 1
20719         loops, replace all iterators with temporaries.
20720         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20721         same even in collapse > 1 loops.
20722
20723         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20724         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20725         non-NULL.
20726         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20727         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20728         non-NULL.
20729         (gimplify_adjust_omp_clauses): Likewise.
20730         * omp-low.c (lower_rec_simd_input_clauses,
20731         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20732         safelen the same as safelen(1).
20733         * tree-nested.c (convert_nonlocal_omp_clauses,
20734         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
20735         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20736         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20737         Fixup handling of GIMPLE_OMP_TARGET.
20738         (convert_tramp_reference_stmt, convert_gimple_call): Handle
20739         GIMPLE_OMP_TARGET.
20740
20741 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
20742
20743         PR tree-optimization/61554
20744         * tree-ssa-propagate.c: Include "bitmap.h".
20745         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20746         properly update constructor/destructor.
20747         (substitute_and_fold_dom_walker::before_dom_children):
20748         Remove call to gimple_purge_dead_eh_edges, add bb->index to
20749         need_eh_cleaup instead.
20750         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20751         need_eh_cleanup.
20752
20753 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20754
20755         * varpool.c (dump_varpool_node): Dump used_by_single_function.
20756         * tree-pass.h (make_pass_ipa_single_use): New pass.
20757         * cgraph.h (used_by_single_function): New flag.
20758         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20759         Stream it.
20760         * passes.def (pass_ipa_single_use): Scedule.
20761         * ipa.c (BOTTOM): New macro.
20762         (meet): New function
20763         (propagate_single_user): New function.
20764         (ipa_single_use): New function.
20765         (pass_data_ipa_single_use): New pass.
20766         (pass_ipa_single_use): New pass.
20767         (pass_ipa_single_use::gate): New gate.
20768         (make_pass_ipa_single_use): New function.
20769
20770 2014-06-23  Kai Tietz  <ktietz@redhat.com>
20771
20772         PR target/39284
20773         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20774         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20775
20776 2014-06-23  Richard Biener  <rguenther@suse.de>
20777
20778         * tree-ssa-loop.c (gate_loop): New function.
20779         (pass_tree_loop::gate): Call it.
20780         (pass_data_tree_no_loop, pass_tree_no_loop,
20781         make_pass_tree_no_loop): New.
20782         * tree-vectorizer.c: Include tree-scalar-evolution.c
20783         (pass_slp_vectorize::execute): Initialize loops and SCEV if
20784         required.
20785         (pass_slp_vectorize::clone): New method.
20786         * timevar.def (TV_TREE_NOLOOP): New.
20787         * tree-pass.h (make_pass_tree_no_loop): Declare.
20788         * passes.def (pass_tree_no_loop): New pass group with
20789         SLP vectorizer.
20790
20791 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20792
20793         PR target/61570
20794         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20795         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20796
20797 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20798
20799         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20800         "yes" where needed.
20801
20802 2014-06-23  Alan Modra  <amodra@gmail.com>
20803
20804         PR bootstrap/61583
20805         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20806         to zero on debug statements.
20807
20808 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20809
20810         PR target/60825
20811         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20812         Ignore third operand if present by marking qualifier_internal.
20813
20814         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20815
20816         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20817         vector extension.
20818         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20819         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20820         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20821         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20822         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20823         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20824         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20825         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20826         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20827         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20828         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20829         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20830         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20831         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20832         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20833         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20834         logic in GCC vector extensions
20835
20836         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20837         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20838         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20839         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20840         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20841         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20842         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20843         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20844         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20845         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20846
20847         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20848
20849         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20850         extensions.
20851
20852         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20853         (vget_low_s64): Use __GET_LOW macro.
20854         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20855         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20856         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20857         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20858         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20859
20860         (vcombine_s64): Use GCC vector extensions; remove cast.
20861         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20862         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20863         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20864         Fix type signature; remove cast.
20865
20866 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20867
20868         PR target/60825
20869         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20870         V1DFmode.
20871         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20872         add V1DFmode
20873         (BUILTIN_VD1): New.
20874         (BUILTIN_VD_RE): Remove.
20875         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20876         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20877         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20878         variant but not df.
20879         (vreinterpretv1df*, vreinterpret*v1df): New.
20880         (vreinterpretdf*, vreinterpret*df): Remove.
20881         * config/aarch64/aarch64-simd.md (aarch64_create,
20882         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20883         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20884         (VD1): New.
20885         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20886         (vcreate_f64): Remove cast, use v1df builtin.
20887         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20888         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20889         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20890         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20891         vmov_n_f64, vst1_f64): Use gcc vector extensions.
20892         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20893         add range check using __builtin_aarch64_im_lane_boundsi.
20894         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20895         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20896         type signature, use gcc vector extensions.
20897         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20898         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20899         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20900         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20901         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20902         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20903         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20904         vreinterpret_u64_f64): Use v1df builtin not df.
20905
20906 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20907
20908         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20909         vector registers.
20910
20911 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20912
20913         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20914         priority directly.
20915
20916 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20917
20918         * loop-invariant.c (pre_check_invariant_p): New function.
20919         (find_invariant_insn): Call pre_check_invariant_p.
20920
20921 2014-06-22  Richard Henderson  <rth@redhat.com>
20922
20923         PR target/61565
20924         * compare-elim.c (struct comparison): Add eh_note.
20925         (find_comparison_dom_walker::before_dom_children): Don't eliminate
20926         a redundant comparison in a different EH region.  Purge EH edges if
20927         necessary.
20928
20929 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20930
20931         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20932         (var_shift): Use it.
20933         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20934         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20935         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20936         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20937         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20938         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20939         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20940         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20941         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20942         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20943         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20944         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20945         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20946         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20947         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20948         *rotldi3_internal15be): Use the new attribute.  Merge register and
20949         integer alternatives.
20950
20951 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20952
20953         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20954         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20955         split, *ashrdi3_internal3 and split): Delete, merge into...
20956         (ashr<mode>3): New expander.
20957         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20958         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
20959
20960 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20961
20962         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20963         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20964         *rotldi3_internal3 and split): Delete, merge into...
20965         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20966         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
20967         Use "rotlw" extended mnemonic.
20968
20969 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20970
20971         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20972         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20973         and split, *ashldi3_internal3 and split): Delete, merge into...
20974         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20975         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
20976
20977 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20978
20979         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20980         (lshrsi3, two anonymous define_insns and define_splits,
20981         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20982         *lshrdi3_internal3 and split): Delete, merge into...
20983         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20984         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
20985
20986 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20987
20988         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20989         Remove "O" alternative.
20990
20991 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
20992
20993         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20994         (mips_move_from_gpr_cost): Likewise.
20995         (mips_register_move_cost): Update accordingly.
20996         (mips_secondary_reload_class): Remove name of in_p.
20997
20998 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
20999
21000         PR target/61503
21001         * config/i386/i386.md (x86_64_shrd, x86_shrd,
21002         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
21003
21004 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21005
21006         * config/nios2/nios2.c: Include "builtins.h".
21007
21008 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
21009
21010         * cgraph.h (tls_model_names): New variable.
21011         * print-tree.c (print_node): Simplify.
21012         * varpool.c (tls_model_names): New variable.
21013         (dump_varpool_node): Output tls model.
21014
21015 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
21016
21017         * ipa-visibility.c (function_and_variable_visibility): Disable
21018         temporarily local aliases for some targets.
21019
21020 2014-06-20  Marek Polacek  <polacek@redhat.com>
21021
21022         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
21023         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
21024         into SANITIZE_UNDEFINED.
21025         * doc/invoke.texi: Describe -fsanitize=bounds.
21026         * gimplify.c (gimplify_call_expr): Add gimplification of internal
21027         functions created in the FEs.
21028         * internal-fn.c: Move "internal-fn.h" after "tree.h".
21029         (expand_UBSAN_BOUNDS): New function.
21030         * internal-fn.def (UBSAN_BOUNDS): New internal function.
21031         * internal-fn.h: Don't define internal functions here.
21032         * opts.c (common_handle_option): Add -fsanitize=bounds.
21033         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
21034         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
21035         * tree-core.h: Define internal functions here.
21036         (struct tree_base): Add ifn field.
21037         * tree-pretty-print.c: Include "internal-fn.h".
21038         (dump_generic_node): Handle functions without CALL_EXPR_FN.
21039         * tree.c (get_callee_fndecl): Likewise.
21040         (build_call_expr_internal_loc): New function.
21041         * tree.def (CALL_EXPR): Update description.
21042         * tree.h (CALL_EXPR_IFN): Define.
21043         (build_call_expr_internal_loc): Declare.
21044         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
21045         types.
21046         (ubsan_type_descriptor): Change bool parameter to enum
21047         ubsan_print_style.  Adjust the code.  Add handling of
21048         UBSAN_PRINT_ARRAY.
21049         (ubsan_expand_bounds_ifn): New function.
21050         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
21051         (ubsan_build_overflow_builtin): Likewise.
21052         (instrument_bool_enum_load): Likewise.
21053         (ubsan_instrument_float_cast): Likewise.
21054         * ubsan.h (enum ubsan_print_style): New enum.
21055         (ubsan_expand_bounds_ifn): Declare.
21056         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
21057
21058 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
21059
21060         * config/rs6000/rs6000.md: Append `DONE' to preparation
21061         statements of `bswap' pattern splitters.
21062
21063 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21064
21065         * target.def (call_fusage_contains_non_callee_clobbers): Update
21066         definition.
21067         * doc/tm.texi: Regenerate.
21068
21069 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
21070             Max Ostapenko  <m.ostapenko@partner.samsung.com>
21071
21072         PR sanitizer/61547
21073         * asan.c (instrument_strlen_call): Fixed instrumentation of
21074         trailing byte.
21075
21076 2014-06-20  Martin Jambor  <mjambor@suse.cz>
21077
21078         PR ipa/61540
21079         * ipa-prop.c (impossible_devirt_target): New function.
21080         (try_make_edge_direct_virtual_call): Use it, also instead of
21081         asserting.
21082
21083 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
21084             Max Ostapenko  <m.ostapenko@partner.samsung.com>
21085
21086         PR sanitizer/61530
21087         * asan.c (build_check_stmt): Add condition.
21088
21089 2014-06-20  Martin Jambor  <mjambor@suse.cz>
21090
21091         PR ipa/61211
21092         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
21093         expanded clones.
21094
21095 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21096
21097         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
21098         Update comments.
21099         (VCONQ): Make comment more helpful.
21100         (VCON): Delete.
21101         * config/aarch64/aarch64-simd.md
21102         (aarch64_sqdmulh_lane<mode>):
21103         Use VCOND for operands 2.  Update lane checking and flipping logic.
21104         (aarch64_sqrdmulh_lane<mode>): Likewise.
21105         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
21106         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
21107         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
21108         attribute of operand 3 to VCOND.
21109         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
21110         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
21111         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
21112         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
21113         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
21114         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
21115         define_insn.
21116         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
21117         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
21118         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
21119         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
21120         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
21121         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
21122         operand to VCOND.  Update lane flipping and bounds checking logic.
21123         (aarch64_sqdmlal2_lane<mode>): Likewise.
21124         (aarch64_sqdmlsl_lane<mode>): Likewise.
21125         (aarch64_sqdmull_lane<mode>): Likewise.
21126         (aarch64_sqdmull2_lane<mode>): Likewise.
21127         (aarch64_sqdmlal_laneq<mode>):
21128         Replace VCON usage with VCONQ.
21129         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
21130         (aarch64_sqdmlal2_laneq<mode>): Emit
21131         aarch64_sqdmlal2_laneq<mode>_internal insn.
21132         Replace VCON with VCONQ.
21133         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
21134         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21135         (aarch64_sqdmull_laneq<mode>): Emit
21136         aarch64_sqdmull_laneq<mode>_internal insn.
21137         Replace VCON with VCONQ.
21138         (aarch64_sqdmull2_laneq<mode>): Emit
21139         aarch64_sqdmull2_laneq<mode>_internal insn.
21140         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
21141         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
21142         of 3rd argument to int16x4_t.
21143         (vqdmlalh_lane_s16): Likewise.
21144         (vqdmlslh_lane_s16): Likewise.
21145         (vqdmull_high_lane_s16): Likewise.
21146         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
21147         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
21148         (vqdmlsl_lane_s16): Likewise.
21149         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
21150         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
21151         (vqdmlals_lane_s32): Likewise.
21152         (vqdmlsls_lane_s32): Likewise.
21153         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
21154         (vqdmulls_lane_s32): Likewise.
21155         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
21156         (vqdmlsl_lane_s32): Likewise.
21157         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
21158         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
21159         (vqrdmulhh_lane_s16): Likewise.
21160         (vqdmlsl_high_lane_s16): Likewise.
21161         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
21162         (vqdmlsl_high_lane_s32): Likewise.
21163         (vqrdmulhs_lane_s32): Likewise.
21164
21165 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21166
21167         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
21168         get_call_reg_set_usage.
21169
21170 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21171
21172         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
21173         it contains all call_used_regs.
21174
21175 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21176
21177         * final.c (collect_fn_hard_reg_usage): Add and use variable
21178         function_used_regs.
21179
21180 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
21181
21182         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
21183         (set_init_priority, get_init_priority, set_fini_priority,
21184         get_fini_priority): New methods.
21185         * tree.c (init_priority_for_decl): Remove.
21186         (init_ttree): Do not initialize init priority.
21187         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
21188         (decl_priority_info): Remove.
21189         (decl_init_priority_insert): Rewrite.
21190         (decl_fini_priority_insert): Rewrite.
21191         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
21192         tree_priority_map_marked_p): Remove.
21193         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
21194         * lto-streamer-out.c (hash_tree): Do not hash priorities.
21195         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
21196         not output priorities.
21197         (pack_ts_function_decl_value_fields): Likewise.
21198         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21199         not input priorities.
21200         (unpack_ts_function_decl_value_fields): Likewise.
21201         * symtab.c (symbol_priority_map): Declare.
21202         (init_priority_hash): Declare.
21203         (symtab_unregister_node): Unregister from priority hash, too.
21204         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
21205         New methods.
21206         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
21207         (symbol_priority_info): New function.
21208         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
21209         New methods.
21210         * tree-core.h (tree_priority_map): Remove.
21211
21212 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
21213
21214         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
21215         0xff to uint64_t before shifting it up.
21216
21217 2014-06-20  Julian Brown  <julian@codesourcery.com>
21218             Chung-Lin Tang  <cltang@codesourcery.com>
21219
21220         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
21221         TARGET_THUMB1_ONLY. Add comments.
21222
21223 2014-06-19  Tom de Vries  <tom@codesourcery.com>
21224
21225         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
21226         return type to void.
21227         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
21228
21229 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21230
21231         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
21232         as "move", from depends_on.
21233
21234 2014-06-19  Terry Guo  <terry.guo@arm.com>
21235
21236         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
21237         stage.
21238
21239 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
21240
21241         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
21242         Remove cr5.
21243         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
21244
21245 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21246
21247         PR target/61550
21248         * config/sh/sh.c (prepare_move_operands): Don't process TLS
21249         addresses here if reload in progress or completed.
21250
21251 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21252
21253         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
21254         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
21255         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
21256         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
21257         (mips_register_priority): New function that implements the target
21258         hook TARGET_REGISTER_PRIORITY.
21259         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
21260         (mips_lra_p): Likewise for TARGET_LRA_P.
21261         (TARGET_REGISTER_PRIORITY): Define macro.
21262         (TARGET_SPILL_CLASS): Likewise.
21263         (TARGET_LRA_P): Likewise.
21264         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
21265         classes.
21266         (REG_CLASS_NAMES): Likewise.
21267         (REG_CLASS_CONTENTS): Likewise.
21268         (BASE_REG_CLASS): Use M16_SP_REGS.
21269         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
21270         New set attribute to enable alternatives depending on the register
21271         allocator used.
21272         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
21273         (*lea64): Disable pattern for MIPS16.
21274         * config/mips/mips.opt (mlra): New option.
21275
21276 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21277
21278         * lra-constraints.c (base_to_reg): New function.
21279         (process_address): Use new function.
21280
21281 2014-06-18  Tom de Vries  <tom@codesourcery.com>
21282
21283         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
21284         * config/aarch64/aarch64.c
21285         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
21286         (aarch64_emit_call_insn): New function.
21287         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
21288         of emit_call_insn.
21289         * config/aarch64/aarch64.md (define_expand "call_internal")
21290         (define_expand "call_value_internal", define_expand "sibcall_internal")
21291         (define_expand "sibcall_value_internal"): New.
21292         (define_expand "call", define_expand "call_value")
21293         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
21294         expand variant and aarch64_emit_call_insn.
21295
21296 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
21297             Tom de Vries  <tom@codesourcery.com>
21298
21299         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
21300         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21301         Redefine to true.
21302         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
21303         clobbers to CALL_INSN_FUNCTION_USAGE.
21304         (define_expand "sibcall_internal")
21305         (define_expand "sibcall_value_internal"): New.
21306         (define_expand "call", define_expand "call_value"): Add argument to
21307         arm_emit_call_insn.
21308         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
21309         (define_expand "sibcall_value"): Use sibcall_value_internal and
21310         arm_emit_call_insn.
21311
21312 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21313
21314         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
21315
21316 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21317
21318         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
21319         __udivmoddi4.
21320
21321 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21322
21323         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
21324         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
21325         annotations. Fix DWARF information.
21326
21327 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21328
21329         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
21330         __udivmoddi4, and fixups for negative operands.
21331
21332 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21333
21334         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
21335
21336 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21337
21338         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
21339         to __udivmoddi4.
21340
21341 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21342
21343         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
21344         manipulation.
21345
21346 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21347
21348         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
21349         describing register usage on function entry and exit.
21350
21351 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21352
21353         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
21354         (__aeabi_ldivmod): Fix whitespace.
21355
21356 2014-06-18  Andreas Schwab  <schwab@suse.de>
21357
21358         * doc/md.texi (Standard Names): Use @itemx for grouped items.
21359         Remove blank line after @item.
21360
21361 2014-06-18  Richard Henderson  <rth@redhat.com>
21362
21363         PR target/61545
21364         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
21365
21366 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21367
21368         * config/arm/arm.c (neon_vector_mem_operand): Allow register
21369         POST_MODIFY for neon loads and stores.
21370         (arm_print_operand): Output post-index register for neon loads and
21371         stores.
21372
21373 2014-06-18  Richard Biener  <rguenther@suse.de>
21374
21375         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
21376
21377 2014-06-18  Richard Biener  <rguenther@suse.de>
21378
21379         * tree-pass.h (make_pass_dce_loop): Remove.
21380         * passes.def: Replace pass_dce_loop with pass_dce.
21381         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
21382         changed free niter estimates and reset the scev cache.
21383         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
21384         make_pass_dce_loop): Remove.
21385         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
21386         (fini_copy_prop): Return whether something changed.  Always
21387         let substitute_and_fold perform DCE and free niter estimates
21388         and reset the scev cache if so.
21389         (execute_copy_prop): If sth changed schedule cleanup-cfg.
21390         (pass_data_copy_prop): Do not unconditionally schedule
21391         cleanup-cfg or update-ssa.
21392
21393 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
21394
21395         PR tree-optimization/61518
21396         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21397         reduction var is used in reduction stmt or phi-function only.
21398
21399 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21400
21401         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
21402
21403 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21404
21405         PR tree-optimization/61517
21406         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
21407         whose rhs's first tree is the source expression instead of the
21408         expression itself.
21409         (find_bswap_or_nop): Likewise.
21410         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
21411         gimple stmt whose rhs's first tree is the source. In the memory source
21412         case, move the stmt to be replaced close to one of the original load to
21413         avoid the problem of a store between the load and the stmt's original
21414         location.
21415         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
21416         signature.
21417
21418 2014-06-18  Andreas Schwab  <schwab@suse.de>
21419
21420         PR rtl-optimization/54555
21421         * postreload.c (move2add_use_add2_insn): Substitute
21422         STRICT_LOW_PART only if it is cheaper.
21423
21424 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
21425
21426         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
21427         Do not use unspec as call operand.  Use memory_operand instead of
21428         memory_nox32_operand and add "m" operand constraint.  Disable
21429         pattern for TARGET_X32.
21430         (*sibcall_pop_memory): Ditto.
21431         (*sibcall_value_memory): Ditto.
21432         (*sibcall_value_pop_memory): Ditto.
21433         (sibcall peepholes): Merge SImode and DImode patterns using
21434         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
21435         Disable pattern for TARGET_X32.  Check if eliminated register is
21436         really dead after call insn.  Generate call RTX without unspec operand.
21437         (sibcall_value peepholes): Ditto.
21438         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
21439         instead of memory_nox32_operand.  Check if eliminated register is
21440         really dead after call insn. Generate call RTX without unspec operand.
21441         (sibcall_value_pop peepholes): Ditto.
21442         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
21443
21444 2014-06-18  Terry Guo  <terry.guo@arm.com>
21445
21446         PR target/61544
21447         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
21448         reach the head.
21449
21450 2014-06-18  Olivier Hainque  <hainque@adacore.com>
21451
21452         * tree-core.h (tree_block): Add an "end_locus" field, allowing
21453         memorization of the end of block source location.
21454         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
21455         * gimplify.c (gimplify_bind_expr): Propagate the block start and
21456         end source location info we have on the block entry/exit code we
21457         generate.
21458
21459 2014-06-18  Richard Biener  <rguenther@suse.de>
21460
21461         * common.opt (fssa-phiopt): New option.
21462         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
21463         but not with -Og.
21464         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
21465         * doc/invoke.texi (-fssa-phiopt): Document.
21466
21467 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21468
21469         * genattrtab.c (n_bypassed): New variable.
21470         (process_bypasses): Initialise n_bypassed.
21471         Count number of bypassed reservations.
21472         (make_automaton_attrs): Allocate space for bypassed reservations
21473         rather than number of bypasses.
21474
21475 2014-06-18  Richard Biener  <rguenther@suse.de>
21476
21477         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
21478         we propagated anything.
21479         (substitute_and_fold_dom_walker::before_dom_children): Something
21480         changed if we propagated into PHI arguments.
21481         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
21482         we removed a stmt.
21483
21484 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
21485
21486         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
21487         vector case.
21488         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
21489         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
21490         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
21491         Introduces alternative way of loads group permutaions.
21492         (vect_transform_grouped_load): Try alternative way of permutations.
21493
21494 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21495
21496         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
21497         changed in ORT_TARGET region, don't jump to do_outer.
21498         (struct gimplify_adjust_omp_clauses_data): New type.
21499         (gimplify_adjust_omp_clauses_1): Adjust for data being
21500         a struct gimplify_adjust_omp_clauses_data pointer instead
21501         of tree *.  Pass pre_p as a new argument to
21502         lang_hooks.decls.omp_finish_clause hook.
21503         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
21504         splay_tree_foreach to pass both list_p and pre_p.
21505         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
21506         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
21507         gimplify_adjust_omp_clauses callers.
21508         * langhooks.c (lhd_omp_finish_clause): New function.
21509         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
21510         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
21511         * langhooks.h (struct lang_hooks_for_decls): Add a new
21512         gimple_seq * argument to omp_finish_clause hook.
21513         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
21514         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
21515         (scan_omp_parallel, lower_omp_for): When adding
21516         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
21517         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
21518         * tree-nested.c (convert_nonlocal_omp_clauses,
21519         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
21520         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
21521
21522 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
21523
21524         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
21525         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
21526
21527 2014-06-17  Xinliang David Li  <davidxl@google.com>
21528
21529         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
21530         * passes.c (pass_init_dump_file): Do not set initialize
21531         flag to false unconditionally.
21532
21533 2014-06-17  Richard Biener  <rguenther@suse.de>
21534
21535         * genopinit.c (main): Use vec<>::qsort method.
21536         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
21537         Likewise.
21538         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
21539
21540 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
21541
21542         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
21543         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
21544         (mips_move_to_gpr_cost): Remove ST_REGS case.
21545         (mips_move_from_gpr_cost): Likewise.
21546         (mips_register_move_cost): Likewise.
21547         (mips_secondary_reload_class): Likewise.
21548
21549 2014-06-17  Richard Biener  <rguenther@suse.de>
21550
21551         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
21552         (pass_all_optimizations): Move 3rd copy-prop pass from after
21553         fre to before ifcombine/phiopt.
21554
21555 2014-06-17  Richard Biener  <rguenther@suse.de>
21556
21557         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
21558         and allow all blocks to be forwarders.
21559
21560 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
21561
21562         PR target/61483
21563         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
21564         variable 'size'; calculate 'size' right in the front; use
21565         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
21566         pcum->aapcs_stack_words.
21567
21568 2014-06-17  Nick Clifton  <nickc@redhat.com>
21569
21570         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
21571         (umulhi3, mulsidi3, umulsidi3): Likewise.
21572
21573 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
21574
21575         PR middle-end/61508
21576         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
21577         check for section name.
21578
21579 2014-06-17  Richard Biener  <rguenther@suse.de>
21580
21581         * tree-ssa-propagate.c: Include domwalk.h.
21582         (substitute_and_fold): Outline main worker into a domwalker ...
21583         (substitute_and_fold_dom_walker::before_dom_children): ... here.
21584         Schedule stmts we can fully propagate for removal.  Remove
21585         poor-mans DCE.
21586         (substitute_and_fold): Apply a dominator walk to perform
21587         substitution.  Process stmts scheduled for removal here.
21588
21589 2014-06-17  Richard Biener  <rguenther@suse.de>
21590
21591         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
21592         of PHI node moving.
21593
21594 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
21595
21596         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
21597         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
21598         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21599         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
21600         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
21601         TARGET_HARD_FLOAT.
21602         (get_fpscr) : Likewise.
21603
21604 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21605
21606         PR rtl-optimization/61325
21607         * lra-constraints.c (valid_address_p): Add forward declaration.
21608         (simplify_operand_subreg): Check address validity before and after
21609         alter_reg of memory subreg.
21610
21611 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
21612
21613         * config/i386/i386.c (decide_alg): Correctly handle
21614         maximum size of stringop algorithm.
21615
21616 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21617
21618         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
21619
21620 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21621
21622         PR rtl-optimization/61522
21623         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
21624
21625 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
21626
21627         Revert:
21628         * symtab.c (symtab_node::reset_section): New method.
21629         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21630         for localization.
21631         * cgraph.h (reset_section): Declare.
21632         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21633         do not consider comdat locals.
21634         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21635         for new symbol.
21636         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21637         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21638         reset sections of symbols dragged out of the comdats.
21639         (function_and_variable_visibility): Reset sections of
21640         localized symbols.
21641
21642 2014-06-16  Richard Biener  <rguenther@suse.de>
21643
21644         PR tree-optimization/61482
21645         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
21646         [-INF(OVF), +INF(OVF)] range.
21647
21648 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21649
21650         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
21651         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21652         handling 32-bit multiplication.
21653
21654 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
21655
21656         PR middle-end/61430
21657         * lra-lives.c (process_bb_lives): Skip creating copy during
21658         insn scan when src/dest has constrained to same regno.
21659
21660 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21661
21662         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21663         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21664
21665 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21666
21667         * asan.c (check_func): New function.
21668         (maybe_create_ssa_name): Likewise.
21669         (build_check_stmt_with_calls): Likewise.
21670         (use_calls_p): Likewise.
21671         (report_error_func): Change interface.
21672         (build_check_stmt): Allow non-integer lengths; add support
21673         for new parameter.
21674         (asan_instrument): Likewise.
21675         (instrument_mem_region_access): Moved code to build_check_stmt.
21676         (instrument_derefs): Likewise.
21677         (instrument_strlen_call): Likewise.
21678         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21679         * doc/invoke.texi: Describe new parameter.
21680         * params.def: Define new parameter.
21681         * params.h: Likewise.
21682         * sanitizer.def: Describe new builtins.
21683
21684 2014-06-16  Richard Biener  <rguenther@suse.de>
21685
21686         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21687         Make all defs available at the end.
21688         (eliminate): If we remove a PHI node schedule cfg-cleanup.
21689
21690 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21691
21692         PR plugins/45078
21693         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21694
21695 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
21696
21697         PR bootstrap/61516
21698         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21699         initialization.  Replace remaining use of uid.
21700
21701 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21702
21703         * c-family/c-common.c (handle_tls_model_attribute): Use
21704         set_decl_tls_model.
21705         * c-family/c-common.c (handle_tls_model_attribute): Use
21706         set_decl_tls_model.
21707         * cgraph.h (struct varpool_node): Add tls_model.
21708         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21709         * tree.h (DECL_TLS_MODEL): Update.
21710         (DECL_THREAD_LOCAL_P): Check that variable is static.
21711         (decl_tls_model): Declare.
21712         (set_decl_tls_model): Declare.
21713         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21714         set symbol prorperties.
21715         (get_emutls_init_templ_addr): Cleanup.
21716         (new_emutls_decl): Update.
21717         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21718         (lto_input_varpool_node): Likewise.
21719         * lto-streamer-out.c (hash_tree): Likewise.
21720         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21721         not stream DECL_TLS_MODEL.
21722         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21723         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21724
21725 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21726
21727         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21728
21729 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21730
21731         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21732         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21733         lists.
21734         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21735         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21736         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21737         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21738         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21739         (df_get_artificial_defs, df_get_artificial_uses)
21740         (df_single_def, df_single_use): Update accordingly.
21741         (df_refs_chain_dump): Take the first element in a linked list as
21742         parameter, rather than a pointer to an array of pointers.
21743         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21744         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21745         (df_chain_create_bb_process_use): Likewise.
21746         (df_md_bb_local_compute_process_def): Likewise.
21747         * fwprop.c (process_defs, process_uses): Likewise.
21748         (register_active_defs, update_uses): Likewise.
21749         (forward_propagate_asm): Update for new df_ref linking.
21750         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21751         (df_null_ref_rec, df_null_mw_rec): Likewise.
21752         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21753         explicitly.
21754         (df_scan_free_bb_info): Remove check for null artificial_defs.
21755         (df_install_ref_incremental): Adjust for new df_ref linking.
21756         Use a single-element insertion rather than a full sort.
21757         (df_ref_chain_delete_du_chain): Take the first element
21758         in a linked list as parameter, rather than a pointer to an array of
21759         pointers.
21760         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21761         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21762         (df_insn_info_delete): Remove check for null defs and call to
21763         df_scan_free_mws_vec.
21764         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21765         null rather than df_null_*_rec.
21766         (df_insn_rescan_debug_internal): Likewise, and update null
21767         checks in the same way.  Remove check for null defs.
21768         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21769         Move a single element rather doing a full sort.
21770         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21771         linking.
21772         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
21773         Initialize df_ref and df_mw_hardreg lists to null rather than
21774         df_null_*_rec.
21775         (df_ref_compare): Take df_refs as parameter, transferring the
21776         old interface to...
21777         (df_ref_ptr_compare): ...this new function.
21778         (df_sort_and_compress_refs): Update accordingly.
21779         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21780         old interface to...
21781         (df_mw_ptr_compare): ...this new function.
21782         (df_sort_and_compress_mws): Update accordingly.
21783         (df_install_refs, df_install_mws): Return a linked list rather than
21784         an array of pointers.
21785         (df_refs_add_to_chains): Assert that old lists are empty rather
21786         than freeing them.
21787         (df_insn_refs_verify): Don't handle null defs speciailly.
21788         * web.c (union_match_dups): Update for new df_ref linking.
21789
21790 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21791
21792         * df.h (df_ref_create, df_ref_remove): Delete.
21793         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21794         (df_ref_remove): Likewise.
21795
21796 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21797
21798         * df.h (df_single_def, df_single_use): New functions.
21799         * ira.c (find_moveable_pseudos): Use them.
21800
21801 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21802
21803         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21804         * df-problems.c (df_note_bb_compute): Use it.
21805         * regstat.c (regstat_bb_compute_ri): Likewise.
21806
21807 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21808
21809         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21810         * cse.c (cse_extended_basic_block): Use them.
21811         * dce.c (mark_artificial_use): Likewise.
21812         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21813         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21814         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21815         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21816         (df_simulate_initialize_backwards): Likewise.
21817         (df_simulate_finalize_backwards): Likewise.
21818         (df_simulate_initialize_forwards): Likewise.
21819         (df_md_simulate_artificial_defs_at_top): Likewise.
21820         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21821         * regrename.c (init_rename_info): Likewise.
21822         * regstat.c (regstat_bb_compute_ri): Likewise.
21823         (regstat_bb_compute_calls_crossed): Likewise.
21824
21825 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21826
21827         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21828         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21829         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21830         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21831         * combine.c (create_log_links): Likewise.
21832         * compare-elim.c (find_flags_uses_in_insn): Likewise.
21833         (try_eliminate_compare): Likewise.
21834         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21835         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21836         (remove_reg_equal_equiv_notes_for_defs): Likewise.
21837         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21838         (word_dce_process_block, dce_process_block): Likewise.
21839         * ddg.c (def_has_ccmode_p): Likewise.
21840         * df-core.c (df_bb_regno_first_def_find): Likewise.
21841         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21842         * df-problems.c (df_rd_simulate_one_insn): Likewise.
21843         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21844         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21845         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21846         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21847         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21848         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21849         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21850         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21851         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21852         * fwprop.c (local_ref_killed_between_p): Likewise.
21853         (all_uses_available_at, free_load_extend): Likewise.
21854         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21855         * hw-doloop.c (scan_loop): Likewise.
21856         * ifcvt.c (dead_or_predicable): Likewise.
21857         * init-regs.c (initialize_uninitialized_regs): Likewise.
21858         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21859         (process_bb_node_lives): Likewise.
21860         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21861         (find_moveable_pseudos): Likewise.
21862         * loop-invariant.c (check_dependencies, record_uses): Likewise.
21863         * recog.c (peep2_find_free_register): Likewise.
21864         * ree.c (get_defs): Likewise.
21865         * regstat.c (regstat_bb_compute_ri): Likewise.
21866         (regstat_bb_compute_calls_crossed): Likewise.
21867         * sched-deps.c (find_inc, find_mem): Likewise.
21868         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21869         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21870         * shrink-wrap.c (requires_stack_frame_p): Likewise.
21871         (prepare_shrink_wrap): Likewise.
21872         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21873         * web.c (union_defs, pass_web::execute): Likewise.
21874         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21875         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21876
21877 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
21878
21879         * lra-assign.c (assign_by_spills): Add code to assign vector regs
21880         to inheritance pseudos.
21881         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21882
21883 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
21884
21885         PR target/61415
21886         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21887         (BU_MISC_2): Rename to ...
21888         (BU_LDBL128_2): ... this.
21889         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21890         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21891         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21892         RS6000_BTM_LDBL128.
21893         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21894         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21895         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21896         (unpacktf_1): Likewise.
21897         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21898         (__builtin_longdouble_dw1): Likewise.
21899         * doc/sourcebuild.texi (longdouble128): Document.
21900
21901 2014-06-13  Jeff Law  <law@redhat.com>
21902
21903         PR rtl-optimization/61094
21904         PR rtl-optimization/61446
21905         * ree.c (combine_reaching_defs): Get the mode for the copy from
21906         the extension insn rather than the defining insn.
21907
21908 2014-06-13  Dehao Chen  <dehao@google.com>
21909
21910         * dwarf2out.c (add_linkage_name): Emit more linkage name.
21911
21912 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
21913
21914         * doc/install.texi (--enable-linker-plugin-configure-flags)
21915         (--enable-linker-plugin-flags): Document new flags.
21916
21917 2014-06-13  Martin Jambor  <mjambor@suse.cz>
21918
21919         PR ipa/61186
21920         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21921         cache_token if returning early.
21922
21923 2014-06-13  Nick Clifton  <nickc@redhat.com>
21924
21925         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21926         requested alignment is active.
21927         (LABEL_ALIGN): Likewise.
21928         (LOOP_ALIGN): Likewise.
21929
21930 2014-06-13  Richard Biener  <rguenther@suse.de>
21931
21932         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21933         Rewrite to propagate the VN result into all uses where
21934         possible and to remove stmts becoming dead because of that.
21935         (eliminate): Generalize stmt removal handling, remove in
21936         reverse dominator order to support proper debug stmt
21937         generation.  Update stmts before removing stmts.
21938         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21939
21940 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21941
21942         PR tree-optimization/61375
21943         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21944         symbolic number cannot be represented in an uint64_t.
21945         (find_bswap_or_nop_1): Likewise.
21946
21947 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21948
21949         * symtab.c (symtab_node::reset_section): New method.
21950         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21951         for localization.
21952         * cgraph.h (reset_section): Declare.
21953         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21954         do not consider comdat locals.
21955         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21956         for new symbol.
21957         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21958         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21959         reset sections of symbols dragged out of the comdats.
21960         (function_and_variable_visibility): Reset sections of
21961         localized symbols.
21962
21963 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21964
21965         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21966         to use symtab and decl_binds_to_current_def_p
21967         * tree-vectorizer.c (increase_alignment): Increase alignment
21968         of alias target, too.
21969
21970 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
21971
21972         PR middle-end/61486
21973         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21974         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21975         if outer combined construct is distribute.
21976         (gimplify_omp_for): For OMP_DISTRIBUTE set
21977         gimplify_omp_ctxp->distribute.
21978         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21979         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21980         mapping into decl map.
21981
21982 2014-06-12  Jason Merrill  <jason@redhat.com>
21983
21984         * common.opt (fabi-version): Change default to 0.
21985
21986 2014-06-12  Jason Merrill  <jason@redhat.com>
21987
21988         * toplev.c (process_options): Reject -fabi-version=1.
21989
21990 2014-06-12  Jeff Law  <law@redhat.com>
21991
21992         PR tree-optimization/61009
21993         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21994         value when we stop processing a block due to problematic PHIs.
21995
21996 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
21997
21998         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21999         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
22000         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
22001         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
22002         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
22003         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
22004         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
22005         are not in the spec.
22006
22007 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
22008
22009         PR target/59843
22010         * config/aarch64/aarch64-modes.def: Add V1DFmode.
22011         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
22012         Support V1DFmode.
22013
22014 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
22015
22016         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
22017
22018 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
22019
22020         PR target/61443
22021         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
22022         loading from address spaces.
22023
22024 2014-06-12  Martin Liska  <mliska@suse.cz>
22025
22026         PR ipa/61462
22027         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
22028         statement is reachable.
22029
22030 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
22031
22032         * symtab.c (section_hash): New hash.
22033         (symtab_unregister_node): Clear section before freeing.
22034         (hash_section_hash_entry): New haser.
22035         (eq_sections): New function.
22036         (symtab_node::set_section_for_node): New method.
22037         (set_section_1): Update.
22038         (symtab_node::set_section): Take string instead of tree as parameter.
22039         (symtab_resolve_alias): Update.
22040         * cgraph.h (section_hash_entry_d): New structure.
22041         (section_hash_entry): New typedef.
22042         (cgraph_node): Change comdat_group_ to x_comdat_group,
22043         change section_ to x_section and turn into section_hash_entry;
22044         update accestors; put set_section_for_node offline.
22045         * tree.c (decl_section_name): Turn into string.
22046         (set_decl_section_name): Change parameter to be string.
22047         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
22048         * sdbout.c (sdbout_one_type): Update.
22049         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
22050         * varasm.c (IN_NAMED_SECTION, get_named_section,
22051         resolve_unique_section, hot_function_section, get_named_text_section,
22052         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
22053         make_decl_rtl, default_unique_section): Update.
22054         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
22055         (c6x_elf_unique_section): Update.
22056         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
22057         * config/pa/pa.c (pa_function_section): Update.
22058         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
22059         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
22060         * config/arc/arc.c (arc_in_small_data_p): Update.
22061         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
22062         * config/mcore/mcore.c (mcore_unique_section): Update.
22063         * config/mips/mips.c (mips16_build_function_stub): Update.
22064         (mips16_build_call_stub): Update.
22065         (mips_function_rodata_section): Update.
22066         (mips_in_small_data_p): Update.
22067         * config/score/score.c (score_in_small_data_p): Update.
22068         * config/rx/rx.c (rx_in_small_data): Update.
22069         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
22070         (rs6000_xcoff_asm_named_section): Update.
22071         (rs6000_xcoff_unique_section): Update.
22072         * config/frv/frv.c (frv_string_begins_with): Update.
22073         (frv_in_small_data_p): Update.
22074         * config/v850/v850.c (v850_encode_data_area): Update.
22075         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
22076         (bfin_handle_l1_data_attribute): Update.
22077         (bfin_handle_l2_attribute): Update.
22078         * config/mep/mep.c (mep_unique_section): Update.
22079         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
22080         Update.
22081         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
22082         (h8300_handle_tiny_data_attribute): Update.
22083         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
22084         (m32r_in_small_data_p): Update.
22085         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
22086         * config/i386/i386.c (ix86_in_large_data_p): Update.
22087         * config/i386/winnt.c (i386_pe_unique_section): Update.
22088         * config/darwin.c (darwin_function_section): Update.
22089         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
22090         * tree-emutls.c (get_emutls_init_templ_addr): Update.
22091         (new_emutls_decl): Update.
22092         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
22093         input_varpool_node): Update.
22094         (ead_string_cst): Turn to ...
22095         (read_string): ... this one.
22096         * dwarf2out.c (secname_for_decl): Update.
22097         * asan.c (asan_protect_global): Update.
22098
22099 2014-06-11  DJ Delorie  <dj@redhat.com>
22100
22101         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
22102         cache lines.
22103         * config/rx/rx.c (rx_option_override): Likewise.
22104         (rx_align_for_label): Likewise.
22105
22106         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
22107
22108 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
22109
22110         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
22111         prototype.
22112
22113 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22114
22115         * common.md: New file.
22116         * doc/md.texi: Update description of generic, machine-independent
22117         constraints.
22118         * config/s390/constraints.md (e): Delete.
22119         * Makefile.in (md_file): Include common.md.
22120         * config/m32c/t-m32c (md_file): Likewise.
22121         * genpreds.c (general_mem): New array.
22122         (generic_constraint_letters): Remove constraints now defined by
22123         common.md.
22124         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22125         Allow the first character to be '<' or '>' as well.
22126         * genoutput.c (general_mem): New array.
22127         (indep_constraints): Remove constraints now defined by common.md.
22128         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22129         Remove special handling of 'm'.
22130         * ira-costs.c (record_reg_classes): Remove special handling of
22131         constraints now defined by common.md.
22132         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22133         * ira-lives.c (single_reg_class): Likewise.
22134         (ira_implicitly_set_insn_hard_regs): Likewise.
22135         * lra-constraints.c (reg_class_from_constraints): Likewise.
22136         (process_alt_operands, process_address, curr_insn_transform): Likewise.
22137         * postreload.c (reload_cse_simplify_operands): Likewise.
22138         * reload.c (push_secondary_reload, scratch_reload_class)
22139         (find_reloads, alternative_allows_const_pool_ref): Likewise.
22140         * reload1.c (maybe_fix_stack_asms): Likewise.
22141         * targhooks.c (default_secondary_reload): Likewise.
22142         * stmt.c (parse_output_constraint): Likewise.
22143         * recog.c (preprocess_constraints): Likewise.
22144         (constrain_operands, peep2_find_free_register): Likewise.
22145         (asm_operand_ok): Likewise, but add a comment saying why 'o'
22146         must be handled specially.
22147
22148 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22149
22150         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
22151         * genpreds.c (have_const_dbl_constraints): Delete.
22152         (add_constraint): Don't set it.
22153         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
22154         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
22155         constraints using the lookup_constraint logic.
22156         * ira-lives.c (single_reg_class): Likewise.
22157         * ira.c (ira_setup_alts): Likewise.
22158         * lra-constraints.c (process_alt_operands): Likewise.
22159         * recog.c (asm_operand_ok, constrain_operands): Likewise.
22160         * reload.c (find_reloads): Likewise.
22161
22162 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22163
22164         * genpreds.c (const_int_start, const_int_end): New variables.
22165         (choose_enum_order): Output CONST_INT constraints before memory
22166         constraints.
22167         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
22168         Add CT_CONST_INT.
22169         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
22170         * ira.c (ira_setup_alts): Likewise.
22171         * lra-constraints.c (process_alt_operands): Likewise.
22172         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22173         * reload.c (find_reloads): Likewise.
22174
22175 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22176
22177         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
22178         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
22179         * recog.c (preprocess_constraints): Update accordingly.
22180
22181 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22182
22183         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
22184         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
22185         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
22186         * genpreds.c (print_type_tree): New function.
22187         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
22188         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
22189         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
22190         Write out enum constraint_type and get_constraint_type.
22191         * lra-constraints.c (satisfies_memory_constraint_p): Take a
22192         constraint_num rather than a constraint string.
22193         (satisfies_address_constraint_p): Likewise.
22194         (reg_class_from_constraints): Avoid old constraint macros.
22195         (process_alt_operands, process_address_1): Likewise.
22196         (curr_insn_transform): Likewise.
22197         * ira-costs.c (record_reg_classes): Likewise.
22198         (record_operand_costs): Likewise.
22199         * ira-lives.c (single_reg_class): Likewise.
22200         (ira_implicitly_set_insn_hard_regs): Likewise.
22201         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22202         * postreload.c (reload_cse_simplify_operands): Likewise.
22203         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22204         (constrain_operands, peep2_find_free_register): Likewise.
22205         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
22206         (find_reloads, alternative_allows_const_pool_ref): Likewise.
22207         * reload1.c (maybe_fix_stack_asms): Likewise.
22208         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
22209         * targhooks.c (default_secondary_reload): Likewise.
22210         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
22211         to EXTRA_CONSTRAINT_STR.
22212         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
22213
22214 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22215
22216         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
22217         (write_constraint_satisfied_p_array): ...this new function.
22218         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
22219         an array.
22220         (write_insn_preds_c): Update accordingly.
22221
22222 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22223
22224         * genpreds.c (write_lookup_constraint): Rename to...
22225         (write_lookup_constraint_1): ...this.
22226         (write_lookup_constraint_array): New function.
22227         (write_tm_preds_h): Define lookup_constraint as an inline function
22228         that uses write_lookup_constraint_array where possible.
22229         (write_insn_preds_c): Update for the changes above.
22230
22231 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22232
22233         * doc/md.texi (regclass_for_constraint): Rename to...
22234         (reg_class_for_constraint): ...this.
22235         * genpreds.c (num_constraints, enum_order, register_start)
22236         (register_end, satisfied_start, memory_start, memory_end)
22237         (address_start, address_end): New variables.
22238         (add_constraint): Count the number of constraints.
22239         (choose_enum_order): New function.
22240         (write_enum_constraint_num): Iterate over enum_order.
22241         (write_regclass_for_constraint): Rename to...
22242         (write_reg_class_for_constraint_1): ...this and update output
22243         accordingly.
22244         (write_constraint_satisfied_p): Rename to...
22245         (write_constraint_satisfied_p_1): ...this and update output
22246         accordingly.  Do nothing if all extra constraints are register
22247         constraints.
22248         (write_insn_extra_memory_constraint): Delete.
22249         (write_insn_extra_address_constraint): Delete.
22250         (write_range_function): New function.
22251         (write_tm_preds_h): Define constraint_satisfied_p and
22252         reg_class_for_constraint as inline functions that do a range check
22253         before calling the out-of-line function.  Use write_range_function
22254         to implement insn_extra_{register,memory,address}_constraint,
22255         the first of which is new.
22256         (write_insn_preds_c): Update after above changes to write_* functions.
22257         (main): Call choose_enum_order.
22258
22259 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22260
22261         PR tree-optimization/61306
22262         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
22263         expression instead of its size.
22264         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
22265         false to prevent optimization when the result is unpredictable due to
22266         arithmetic right shift of signed type with highest byte is set.
22267         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
22268         (init_symbolic_number): Likewise.
22269         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
22270         when the result is unpredictable due to sign extension.
22271
22272 2014-06-11  Terry Guo  <terry.guo@arm.com>
22273
22274         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
22275         (*thumb1_addsi3): Ditto.
22276         (*thumb_subdi3): Ditto.
22277         (thumb1_subsi3_insn): Ditto.
22278         (*thumb_mulsi3): Ditto.
22279         (*thumb_mulsi3_v6): Ditto.
22280         (*thumb1_andsi3_insn): Ditto.
22281         (thumb1_bicsi3): Ditto.
22282         (*thumb1_iorsi3_insn): Ditto.
22283         (*thumb1_xorsi3_insn): Ditto.
22284         (*thumb1_ashlsi3): Ditto.
22285         (*thumb1_ashrsi3): Ditto.
22286         (*thumb1_lshrsi3): Ditto.
22287         (*thumb1_rotrsi3): Ditto.
22288         (*thumb1_negdi2): Ditto.
22289         (*thumb1_negsi2): Ditto.
22290         (*thumb1_abssi2): Ditto.
22291         (*thumb1_neg_abssi2): Ditto.
22292         (*thumb1_one_cmplsi2): Ditto.
22293         (*thumb1_zero_extendhisi2): Ditto.
22294         (*thumb1_zero_extendqisi2): Ditto.
22295         (*thumb1_zero_extendqisi2_v6): Ditto.
22296         (thumb1_extendhisi2): Ditto.
22297         (thumb1_extendqisi2): Ditto.
22298         (*thumb1_movdi_insn): Ditto.
22299         (*thumb1_movsi_insn): Ditto.
22300         (*thumb1_movhi_insn): Ditto.
22301         (thumb_movhi_clobber): Ditto.
22302         (*thumb1_movqi_insn): Ditto.
22303         (*thumb1_movhf): Ditto.
22304         (*thumb1_movsf_insn): Ditto.
22305         (*thumb_movdf_insn): Ditto.
22306         (movmem12b): Ditto.
22307         (movmem8b): Ditto.
22308         (cbranchqi4): Ditto.
22309         (cbranchsi4_insn): Ditto.
22310         (cbranchsi4_scratch): Ditto.
22311         (*negated_cbranchsi4): Ditto.
22312         (*tbit_cbranch): Ditto.
22313         (*tlobits_cbranch): Ditto.
22314         (*tstsi3_cbranch): Ditto.
22315         (*cbranchne_decr1): Ditto.
22316         (*addsi3_cbranch): Ditto.
22317         (*addsi3_cbranch_scratch): Ditto.
22318         (*thumb_cmpdi_zero): Ditto.
22319         (cstoresi_eq0_thumb1): Ditto.
22320         (cstoresi_ne0_thumb1): Ditto.
22321         (*cstoresi_eq0_thumb1_insn): Ditto.
22322         (*cstoresi_ne0_thumb1_insn): Ditto.
22323         (cstoresi_nltu_thumb1): Ditto.
22324         (cstoresi_ltu_thumb1): Ditto.
22325         (thumb1_addsi3_addgeu): Ditto.
22326         (*thumb_jump): Ditto.
22327         (*call_reg_thumb1_v5): Ditto.
22328         (*call_reg_thumb1): Ditto.
22329         (*call_value_reg_thumb1_v5): Ditto.
22330         (*call_value_reg_thumb1): Ditto.
22331         (*call_insn): Ditto.
22332         (*call_value_insn): Ditto.
22333         (thumb1_casesi_internal_pic): Ditto.
22334         (thumb1_casesi_dispatch): Ditto.
22335         (*thumb1_indirect_jump): Ditto.
22336         (prologue_thumb1_interwork): Ditto.
22337         (*epilogue_insns): Ditto.
22338         (consttable_1): Ditto.
22339         (consttable_2): Ditto.
22340         (tablejump): Ditto.
22341         (*thumb1_tablejump): Ditto.
22342         (thumb_eh_return): Ditto.
22343         (define_peephole2): Two of them are thumb1 only and got moved into
22344         new file thumb1.md.
22345         (define_split): Six of them are thumb1 only and got moved into new
22346         file thumb1.md.
22347         * config/arm/thumb1.md: New file comprised of above thumb1 only
22348         patterns.
22349
22350 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22351
22352         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
22353         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
22354         dependencies.
22355         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
22356         (aarch64_crc_builtin_datum): New struct.
22357         (aarch64_crc_builtin_data): New.
22358         (aarch64_init_crc32_builtins): New function.
22359         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
22360         (aarch64_crc32_expand_builtin): New.
22361         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
22362         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
22363         __ARM_FEATURE_CRC32 when appropriate.
22364         (TARGET_CRC32): Define.
22365         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
22366         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
22367         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
22368         (aarch64_<crc_variant>): New pattern.
22369         * config/aarch64/arm_acle.h: New file.
22370         * config/aarch64/iterators.md (CRC): New int iterator.
22371         (crc_variant, crc_mode): New int attributes.
22372         * doc/aarch64-acle-intrinsics.texi: New file.
22373         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
22374         Include aarch64-acle-intrinsics.texi.
22375
22376 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
22377
22378         * tree-vect-data-refs.c (vect_grouped_store_supported): New
22379         check for stores group of length 3.
22380         (vect_permute_store_chain): New permutations for stores group of
22381         length 3.
22382         * tree-vect-stmts.c (vect_model_store_cost): Change cost
22383         of vec_perm_shuffle for the new permutations.
22384
22385 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
22386
22387         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
22388         table rewriting temporarily on targets not supporting ONE_ONLY.
22389
22390 2014-06-11  Richard Biener  <rguenther@suse.de>
22391
22392         PR middle-end/61437
22393         Revert
22394         2014-06-04  Richard Biener  <rguenther@suse.de>
22395
22396         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22397         TREE_PUBLIC and DECL_EXTERNAL decls.
22398
22399 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22400
22401         * varasm.c (set_implicit_section): New function.
22402         (resolve_unique_section): Use it to set implicit section
22403         for aliases, too.
22404         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
22405         (default_function_section): Likewise.
22406         (decl_binds_to_current_def_p): Constify argument.
22407         * varasm.h (decl_binds_to_current_def_p): Update prototype.
22408         * asan.c (asan_protect_global): Use
22409         symtab_get_node (decl)->implicit_section.
22410         * symtab.c (dump_symtab_base): Dump implicit sections.
22411         (verify_symtab_base): Verify sanity of sectoins and comdats.
22412         (symtab_resolve_alias): Alias share the section of its target.
22413         (set_section_1): New function.
22414         (symtab_node::set_section): Move here, recurse to aliases.
22415         (verify_symtab): Check for duplicated symtab lists.
22416         * tree-core.h (implicit_section_name_p): Remove.
22417         * tree-vect-data-refs.c: Include varasm.h.
22418         (vect_can_force_dr_alignment_p): Fix conditional on when
22419         decl bints to current definition; use
22420         symtab_get_node (decl)->implicit_section.
22421         * cgraph.c (cgraph_make_node_local_1): Fix section set.
22422         * cgraph.h (struct symtab_node): Add implicit_section.
22423         (set_section): Rename to ...
22424         (set_section_for_node): ... this one.
22425         (set_section): Declare.
22426         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
22427         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22428         input_overwrite_node, input_varpool_node): Stream implicit_section.
22429         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
22430         removal; it will fail in LTO.
22431
22432 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22433
22434         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
22435         Change second alternative type to f_mcr.
22436         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
22437         and 12th alternatives' types to f_mcr and f_mrc.
22438         (*movdi_aarch64): Same for 12th and 13th alternatives.
22439         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
22440         (aarch64_movtilow_tilow): Change type to fmov.
22441
22442 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
22443
22444         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
22445         (aarch64_save_or_restore_callee_save_registers): Fix layout.
22446
22447 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22448
22449         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
22450         New expander.
22451         (aarch64_sqrdmulh_lane<mode>): Likewise.
22452         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22453         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22454         (aarch64_sqdmulh_laneq<mode>): New expander.
22455         (aarch64_sqrdmulh_laneq<mode>): Likewise.
22456         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
22457         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
22458         (aarch64_sqdmulh_lane<mode>): New expander.
22459         (aarch64_sqrdmulh_lane<mode>): Likewise.
22460         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22461         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22462         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
22463         (aarch64_sqdmlal_laneq<mode>): Likewise.
22464         (aarch64_sqdmlsl_lane<mode>): Likewise.
22465         (aarch64_sqdmlsl_laneq<mode>): Likewise.
22466         (aarch64_sqdmlal2_lane<mode>): Likewise.
22467         (aarch64_sqdmlal2_laneq<mode>): Likewise.
22468         (aarch64_sqdmlsl2_lane<mode>): Likewise.
22469         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
22470         (aarch64_sqdmull_lane<mode>): Likewise.
22471         (aarch64_sqdmull_laneq<mode>): Likewise.
22472         (aarch64_sqdmull2_lane<mode>): Likewise.
22473         (aarch64_sqdmull2_laneq<mode>): Likewise.
22474
22475 2014-06-10  Richard Biener  <rguenther@suse.de>
22476
22477         PR tree-optimization/61438
22478         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
22479         (eliminate_dom_walker::before_dom_children): Only try to inhibit
22480         insertion of IVs if running PRE.
22481         (eliminate): Adjust.
22482         (pass_pre::execute): Likewise.
22483         (pass_fre::execute): Likewise.
22484
22485 2014-06-10  Richard Biener  <rguenther@suse.de>
22486
22487         PR middle-end/61456
22488         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22489         Do not use the main variant for the type comparison.
22490         (ncr_compar): Likewise.
22491         (nonoverlapping_component_refs_p): Likewise.
22492
22493 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22494
22495         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
22496         REG_CFA_RESTORE mode.
22497
22498 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
22499
22500         * config/i386/i386.c (expand_vec_perm_pblendv): New.
22501         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
22502         expand_vec_perm_pblendv.
22503
22504 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22505
22506         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
22507         available.
22508         Simplify description of __crc32d and __crc32cd intrinsics.
22509         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
22510         availability.
22511
22512 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
22513
22514         PR lto/61334
22515         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
22516         * config.in: Regenerate.
22517         * configure: Likewise.
22518
22519 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22520
22521         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
22522         and public vars.
22523         (intersect_static_var_sets): Remove.
22524         (propagate): Do not prune local statics.
22525
22526 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
22527
22528         PR fortran/60928
22529         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
22530         Set lastprivate_firstprivate even if omp_private_outer_ref
22531         langhook returns true.
22532         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
22533         langhook, call unshare_expr on new_var and call
22534         build_outer_var_ref to get the last argument.
22535
22536 2014-06-10  Marek Polacek  <polacek@redhat.com>
22537
22538         PR c/60988
22539         * doc/extend.texi: Add cindex for transparent_union.
22540
22541 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22542
22543         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
22544         init_symbolic_number ().
22545
22546 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
22547
22548         PR middle-end/61141
22549         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
22550         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
22551         (verify_rtl_sharing): Likewise.
22552
22553 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
22554
22555         PR c++/54442
22556         * tree.c (build_qualified_type): Use a canonical type for
22557         TYPE_CANONICAL.
22558
22559 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22560
22561         * config/arm/arm-modes.def: Remove XFmode.
22562
22563 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
22564
22565         PR target/61062
22566         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
22567         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
22568         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
22569         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
22570         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
22571         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
22572         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
22573         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
22574         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
22575
22576 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
22577
22578         * tree-core.h (tree_decl_with_vis): Remove section_name.
22579
22580 2014-06-09  Kito Cheng  <kito@0xlab.org>
22581
22582         * ira.c (ira): Don't call init_caller_save if LRA enabled
22583         since LRA use its own infrastructure to handle that.
22584
22585 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22586
22587         * symtab.c (dump_symtab_base): Update dumping.
22588         (symtab_make_decl_local): Clear only DECL_COMDAT.
22589         * tree-vect-data-refs.c (Check that variable is static before
22590         tampering with sections.
22591         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
22592         (cgraph_create_virtual_clone): Likewise.
22593         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
22594         (decl_section_name, set_decl_section_name): New accessors.
22595         (find_decls_types_r): Do not walk section name
22596         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
22597         (decl_comdat_group, decl_comdat_group_id): Constify.
22598         (decl_section_name, set_decl_section_name): Update.
22599         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
22600         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
22601         (cgraph_make_node_local_1): Clear section and comdat group.
22602         * cgraph.h (set_comdat_group): Sanity check.
22603         (get_section, set_section): New.
22604         * ipa-comdats.c (ipa_comdats): Use get_section.
22605         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
22606         * lto-streamer-out.c: Do not follow section names.
22607         * c-family/c-common.c (handle_section_attribute): Update.
22608         * lto-cgraph.c (lto_output_node): Output section.
22609         (lto_output_varpool_node): Likewise.
22610         (read_comdat_group): Rename to ...
22611         (read_identifier): ... this one.
22612         (read_string_cst): New function.
22613         (input_node, input_varpool_node): Input section names.
22614         * tree-emutls.c (get_emutls_init_templ_addr): Update.
22615         (new_emutls_decl): Update.
22616         (secname_for_decl): Check section names only of static vars.
22617         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
22618         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
22619         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22620         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22621         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
22622         * config/mcore/mcore.c (mcore_unique_section): Likewise.
22623         * config/mips/mips.c (mips16_build_function_stub): Likewise.
22624         * config/v850/v850.c (v850_insert_attributes): Likewise.
22625         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
22626         Likewise.
22627         (h8300_handle_tiny_data_attribute): Likewise.
22628         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
22629         (bfin_handle_l2_attribute): Likewise.
22630
22631 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22632
22633         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
22634         remove static initializer.
22635
22636 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22637
22638         * varasm.c (use_blocks_for_decl_p): Check symbol table
22639         instead of alias attribute.
22640         (place_block_symbol): Recurse on aliases.
22641
22642 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22643
22644         * ipa-visibility.c: Include varasm.h
22645         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
22646
22647 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22648
22649         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
22650         outputting aliases.
22651
22652 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
22653
22654         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22655         from test_insn into GGC space escape via SET_SRC.
22656
22657 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
22658
22659         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22660         call statement, if any.
22661         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22662         statements, if any.  Tidy up.
22663
22664 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22665
22666         PR target/61431
22667         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22668         iterators, VSX_D that handles 64-bit types, and VSX_LE that
22669         handles swapping the two 64-bit double words on little endian
22670         systems.  Include V1TImode and optionally TImode in VSX_LE so that
22671         these types are properly swapped.  Change all of the insns and
22672         splits that do the 64-bit swaps to use VSX_LE.
22673         (vsx_le_perm_load_<mode>): Likewise.
22674         (vsx_le_perm_store_<mode>): Likewise.
22675         (splitters for little endian memory operations): Likewise.
22676         (vsx_xxpermdi2_le_<mode>): Likewise.
22677         (vsx_lxvd2x2_le_<mode>): Likewise.
22678         (vsx_stxvd2x2_le_<mode>): Likewise.
22679
22680 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
22681
22682         PR target/61423
22683         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22684         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22685         and corresponding splitters.  Zero extend general register
22686         or memory input operand to XMM temporary.  Enable for
22687         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22688         (floatunssi<mode>2): Update expander predicate.
22689
22690 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22691
22692         PR rtl-optimization/61325
22693         * lra-constraints.c (process_address_1): Check scale equal to one
22694         to prevent transformation: base + scale * index => base + new_reg.
22695
22696 2014-06-06  Richard Biener  <rguenther@suse.de>
22697
22698         PR tree-optimization/59299
22699         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22700         a def operand.
22701         (nearest_common_dominator_of_uses): Likewise.
22702         (statement_sink_location): Adjust.  Support sinking loads.
22703
22704 2014-06-06  Martin Jambor  <mjambor@suse.cz>
22705
22706         * ipa-prop.c (get_place_in_agg_contents_list): New function.
22707         (build_agg_jump_func_from_list): Likewise.
22708         (determine_known_aggregate_parts): Renamed to
22709         determine_locally_known_aggregate_parts.  Moved some functionality
22710         to the two functions above, removed bound checks.
22711
22712 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
22713
22714         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22715         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22716         (aarch64_progress_pointer): Likewise.
22717         (aarch64_copy_one_part_and_move_pointers): Likewise.
22718         (aarch64_expand_movmen): Likewise.
22719         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22720         * config/aarch64/aarch64.md (movmem<mode>): New.
22721
22722 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
22723
22724         * targhooks.c (default_add_stmt_cost): Call target specific
22725         hook instead of default one.
22726
22727 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22728
22729         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22730         endianness instead of host endianness.
22731         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22732         comments.
22733
22734 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22735
22736         PR debug/53927
22737         * function.c (instantiate_decls): Process the saved static chain.
22738         (expand_function_start): If not optimizing, save the static chain
22739         onto the stack.
22740         * tree-nested.c (convert_all_function_calls): Always create the static
22741         chain for nested functions if not optimizing.
22742
22743 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22744
22745         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22746
22747 2014-06-06  Richard Biener  <rguenther@suse.de>
22748
22749         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22750         (construct_init_block): Likewise.
22751         (construct_exit_block): Likewise.
22752         (pass_expand::execute): Likewise.
22753         * graphite.c (graphite_transforms): Replace check for current_loops
22754         with a check for > 1 loops.
22755         (pass_graphite_transforms::execute): Adjust.
22756         * ipa-split.c (split_function): Remove check for current_loops.
22757         * omp-low.c (expand_parallel_call): Likewise.
22758         (expand_omp_for_init_counts): Likewise.
22759         (extract_omp_for_update_vars): Likewise.
22760         (expand_omp_for_generic): Likewise.
22761         (expand_omp_sections): Likewise.
22762         (expand_omp_target): Likewise.
22763         * tracer.c (tail_duplicate): Likewise.
22764         (pass_tracer::execute): Likewise.
22765         * trans-mem.c (expand_transaction): Likewise.
22766         * tree-complex.c (expand_complex_div_wide): Likewise.
22767         * tree-eh.c (lower_resx): Likewise.
22768         (cleanup_empty_eh_merge_phis): Likewise.
22769         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22770         current_loops with a check for > 1 loops.
22771         (pass_predcom::execute): Adjust.
22772         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22773         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22774         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22775         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22776         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22777         * tree-switch-conversion.c (process_switch): Likewise.
22778         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22779         * tree-vrp.c (vrp_visit_phi_node): Likewise.
22780         (execute_vrp): Likewise.
22781         * ubsan.c (ubsan_expand_null_ifn): Likewise.
22782
22783 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22784
22785         * rtl.h (insn_location): Declare.
22786         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22787         with UNKNOWN_LOCATION.
22788         * emit-rtl.c (insn_location): New function.
22789         * final.c (notice_source_line): Check that the instruction has a
22790         location before retrieving it and use insn_location.
22791         * modulo-sched.c (loop_single_full_bb_p): Likewise.
22792         * print-rtl.c (print_rtx): Likewise.
22793
22794 2014-06-06  Richard Biener  <rguenther@suse.de>
22795
22796         * passes.def: Move 2nd VRP pass before phi-only-cprop.
22797
22798 2014-06-06  Christian Bruel  <christian.bruel@st.com>
22799
22800         PR tree-optimization/43934
22801         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22802         cost.
22803
22804 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
22805
22806         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
22807         return NO_REGS for extra address and memory constraints.  Handle
22808         operands that match (or are equivalent to something that matches)
22809         extra constant constraints.  Ignore other non-register operands.
22810
22811 2014-06-06  Alan Modra  <amodra@gmail.com>
22812
22813         PR target/61300
22814         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22815         * doc/tm.texi: Regenerate.
22816         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22817         Use throughout in place of REG_PARM_STACK_SPACE.
22818         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22819         "incoming" param.  Pass to rs6000_function_parms_need_stack.
22820         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22821         prototype_p when incoming.  Use function decl when incoming
22822         to handle K&R style functions.
22823         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22824         (INCOMING_REG_PARM_STACK_SPACE): Define.
22825
22826 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22827
22828         PR target/52472
22829         * cfgexpand.c (expand_debug_expr): Use address space of nested
22830         TREE_TYPE for ADDR_EXPR and MEM_REF.
22831
22832 2014-06-05  Jeff Law  <law@redhat.com>
22833
22834         PR tree-optimization/61289
22835         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22836         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
22837         looking for those which match LHS.  All callers changed.
22838         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22839         parameters and code which manipulated them.  All callers changed.
22840         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22841         and DST_MAP parameters.  Simplify invalidation code by just calling
22842         invalidate_equivalences.  All callers changed.
22843         (thread_across_edge): Simplify now that we don't need to maintain
22844         the map of equivalences to invalidate.
22845
22846 2014-06-05  Kai Tietz  <ktietz@redhat.com>
22847             Richard Henderson  <rth@redhat.com>
22848
22849         PR target/46219
22850         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22851         checking for !TARGET_X32.
22852         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22853         (sibcall_intern): New define_insn, plus required peepholes.
22854         (sibcall_pop_intern): Likewise.
22855         (sibcall_value_intern): Likewise.
22856         (sibcall_value_pop_intern): Likewise.
22857
22858 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
22859
22860         * tree-inline.c (tree_function_versioning): Check DF info existence
22861         before accessing it.
22862
22863 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22864
22865         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22866         frame_size.
22867         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22868         aarch64_frame hard_fp_offset and frame_size.
22869         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22870         frame_size; remove original_frame_size.
22871         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22872         (aarch64_initial_elimination_offset): Remove frame_size and
22873         offset.  Use aarch64_frame frame_size.
22874
22875 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22876             Jiong Wang  <jiong.wang@arm.com>
22877             Renlin  <renlin.li@arm.com>
22878
22879         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22880         initialization of R30 offset.  Update offset.  Iterate core
22881         regisers upto X30.  Remove X29, X30 specific code.
22882
22883 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22884             Jiong Wang  <jiong.wang@arm.com>
22885
22886         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22887         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22888         (aarch64_register_saved_on_entry): Adjust test.
22889
22890 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22891
22892         * config/aarch64/aarch64.h (machine_function): Move
22893         saved_varargs_size from here...
22894         (aarch64_frame): ... to here.
22895
22896         * config/aarch64/aarch64.c (aarch64_expand_prologue)
22897         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22898         (aarch64_initial_elimination_offset)
22899         (aarch64_setup_incoming_varargs): Adjust location of
22900         saved_varargs_size.
22901
22902 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22903
22904         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22905         layout comment.
22906
22907 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
22908             Prachi Godbole  <Prachi.Godbole@imgtec.com>
22909
22910         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
22911         mips32r5 entry to use PROCESSOR_P5600.
22912         * config/mips/mips-tables.opt: Regenerate.
22913         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22914         * config/mips/mips.c (mips_fmadd_bypass): New function.
22915         (mips_rtx_cost_data): Add costs for p5600.
22916         (mips_issue_rate): Add support for p5600.
22917         (mips_multipass_dfa_lookahead): Likewise.
22918         * config/mips/mips.h (TUNE_P5600): New define.
22919         (TUNE_MACC_CHAINS): Add TUNE_P5600.
22920         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22921         * config/mips/mips.md: Include p5600.md.
22922         (processor): Add p5600.
22923         * config/mips/p5600.md: New file.
22924
22925 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
22926
22927         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22928         * config/i386/predicates.md (palignr_operand): New.
22929         Indicates if permutation is suitable for palignr instruction.
22930
22931 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
22932
22933         PR tree-optimization/61319
22934         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22935         stmt belongs to loop.
22936
22937 2014-06-05  Richard Biener  <rguenther@suse.de>
22938
22939         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22940         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22941         (lookup_tmp_var): Adjust.
22942         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22943
22944 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22945
22946         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22947
22948 2014-06-05  Marek Polacek  <polacek@redhat.com>
22949
22950         PR c/49706
22951         * doc/invoke.texi: Document -Wlogical-not-parentheses.
22952
22953 2014-06-04  Tom de Vries  <tom@codesourcery.com>
22954
22955         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22956         CONST_INT.
22957
22958 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
22959
22960         PR tree-optimization/61385
22961         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22962
22963 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22964
22965         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
22966         changed to use fatal_error.
22967         (main): Ensure lto_wrapper_cleanup is run atexit.
22968
22969 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22970
22971         * lra-constraints.c (valid_address_p): Move earlier in file.
22972         (address_eliminator): New structure.
22973         (satisfies_memory_constraint_p): New function.
22974         (satisfies_address_constraint_p): Likewise.
22975         (process_alt_operands, process_address, curr_insn_transform): Use them.
22976
22977 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22978
22979         * lra-int.h (lra_static_insn_data): Make operand_alternative a
22980         const pointer.
22981         (target_lra_int, default_target_lra_int, this_target_lra_int)
22982         (op_alt_data): Delete.
22983         * lra.h (lra_init): Delete.
22984         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22985         (init_insn_code_data_once): Remove op_alt_data handling.
22986         (finish_insn_code_data_once): Likewise.
22987         (init_op_alt_data): Delete.
22988         (get_static_insn_data): Initialize operand_alternative to null.
22989         (free_insn_recog_data): Cast operand_alternative before freeing it.
22990         (setup_operand_alternative): Take the operand_alternative as
22991         parameter and assume it isn't already cached in the static
22992         insn data.
22993         (lra_set_insn_recog_data): Update accordingly.
22994         (lra_init): Delete.
22995         * ira.c (ira_init): Don't call lra_init.
22996         * target-globals.h (this_target_lra_int): Declare.
22997         (target_globals): Remove lra_int.
22998         (restore_target_globals): Update accordingly.
22999         * target-globals.c: Don't include lra-int.h.
23000         (default_target_globals, save_target_globals): Remove lra_int.
23001
23002 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
23003
23004         * recog.h (operand_alternative): Convert reg_class, reject,
23005         matched and matches into bitfields.
23006         (preprocess_constraints): New overload.
23007         (preprocess_insn_constraints): New function.
23008         (preprocess_constraints): Take the insn as parameter.
23009         (recog_op_alt): Change into a pointer.
23010         (target_recog): Add x_op_alt.
23011         * recog.c (asm_op_alt): New variable.
23012         (recog_op_alt): Change into a pointer.
23013         (preprocess_constraints): New overload, replacing the old function
23014         definition with one that doesn't use global state.
23015         (preprocess_insn_constraints): New function.
23016         (preprocess_constraints): Use them.  Take the insn as parameter.
23017         Use asm_op_alt for asms.
23018         (recog_init): Free existing x_op_alt entries.
23019         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
23020         pointer const.
23021         (make_early_clobber_and_input_conflicts): Likewise.
23022         (process_bb_node_lives): Pass the insn to process_constraints.
23023         * reg-stack.c (check_asm_stack_operands): Likewise.
23024         (subst_asm_stack_regs): Likewise.
23025         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
23026         * regrename.c (build_def_use): Likewise.
23027         * sched-deps.c (sched_analyze_insn): Likewise.
23028         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
23029         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
23030         (note_invalid_constants): Likewise.
23031         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
23032         (ix86_legitimate_combined_insn): Make operand_alternative pointer
23033         const.
23034
23035 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
23036
23037         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
23038         * ira-lives.c (check_and_make_def_conflict): Check for disabled
23039         alternatives.
23040         (make_early_clobber_and_input_conflicts): Likewise.
23041         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
23042
23043 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
23044
23045         * recog.h (alternative_class): New function.
23046         (which_op_alt): Return a const recog_op_alt.
23047         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
23048         (subst_asm_stack_regs): Likewise.
23049         * config/arm/arm.c (note_invalid_constants): Likewise.
23050         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
23051         the operand_alternative; use alternative class instead.
23052         * sel-sched.c (get_reg_class): Likewise.
23053         * regrename.c (build_def_use): Likewise.
23054         (hide_operands, restore_operands, record_out_operands): Update type
23055         accordingly.
23056
23057 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
23058
23059         * recog.h (recog_op_alt): Convert to a flat array.
23060         (which_op_alt): New function.
23061         * recog.c (recog_op_alt): Convert to a flat array.
23062         (preprocess_constraints): Update accordingly, grouping all
23063         operands of the same alternative together, rather than the
23064         other way around.
23065         * ira-lives.c (check_and_make_def_conflict): Likewise.
23066         (make_early_clobber_and_input_conflicts): Likewise.
23067         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
23068         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
23069         (subst_asm_stack_regs): Likewise.
23070         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
23071         * regrename.c (hide_operands, record_out_operands): Likewise.
23072         (build_def_use): Likewise.
23073         * sel-sched.c (get_reg_class): Likewise.
23074         * config/arm/arm.c (note_invalid_constants): Likewise.
23075
23076 2014-06-04  Jason Merrill  <jason@redhat.com>
23077
23078         PR c++/51253
23079         PR c++/61382
23080         * gimplify.c (gimplify_arg): Non-static.
23081         * gimplify.h: Declare it.
23082
23083 2014-06-04  Richard Biener  <rguenther@suse.de>
23084
23085         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
23086         TREE_PUBLIC and DECL_EXTERNAL decls.
23087
23088 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
23089
23090         * regcprop.c (copyprop_hardreg_forward_1): Account for
23091         HARD_REGNO_CALL_PART_CLOBBERED.
23092
23093 2014-06-04  Richard Biener  <rguenther@suse.de>
23094
23095         * configure.ac: Check whether the underlying type of int64_t
23096         is long or long long.
23097         * configure: Regenerate.
23098         * config.in: Likewise.
23099         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
23100         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23101
23102 2014-06-04  Richard Biener  <rguenther@suse.de>
23103
23104         PR tree-optimization/60098
23105         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
23106         we hit a kill.
23107         (dse_optimize_stmt): Simplify, now that we found a kill
23108         earlier.
23109
23110 2014-06-04  Richard Biener  <rguenther@suse.de>
23111
23112         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
23113         of accesses with non-invariant address.
23114
23115 2014-06-04  Martin Liska  <mliska@suse.cz>
23116
23117         * cgraph.h (cgraph_make_wrapper): New function introduced.
23118         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
23119         * ipa-inline.h (inline_analyze_function): The function is global.
23120         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
23121
23122 2014-06-04  Martin Liska  <mliska@suse.cz>
23123
23124         * tree.h (private_lookup_attribute_starting): New function.
23125         (lookup_attribute_starting): Likewise.
23126         * tree.c (private_lookup_attribute_starting): Likewise.
23127
23128 2014-06-04  Martin Liska  <mliska@suse.cz>
23129
23130         * cgraph.h (expand_thunk): New argument added.
23131         (address_taken_from_non_vtable_p): New global function.
23132         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
23133         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
23134         * cgraphunit.c (analyze_function): Likewise.
23135         (assemble_thunks_and_aliases): Argument added to call.
23136         (expand_thunk): New argument forces to produce GIMPLE thunk.
23137
23138 2014-06-04  Martin Liska  <mliska@suse.cz>
23139
23140         * coverage.h (coverage_compute_cfg_checksum): Argument added.
23141         * coverage.c (coverage_compute_cfg_checksum): Likewise.
23142         * profile.c (branch_prob): Likewise.
23143
23144 2014-06-04  Martin Jambor  <mjambor@suse.cz>
23145
23146         PR ipa/61340
23147         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
23148         handler for switch on an ipa_ref_use enum.
23149         * ipa-reference.c (analyze_function): Likewise.
23150
23151 2014-06-04  Kai Tietz  <ktietz@redhat.com>
23152
23153         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
23154         from old call-instruction.
23155
23156 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
23157
23158         * config/aarch64/aarch64.c (aarch64_classify_address)
23159         (aarch64_legitimize_reload_address): Support full addressing modes
23160         for vector modes.
23161         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
23162         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
23163
23164 2014-06-03  Andrew Pinski  <apinski@cavium.com>
23165
23166         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
23167         for OP0.
23168
23169 2014-06-03  Andrew Pinski  <apinski@cavium.com>
23170
23171         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
23172         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
23173
23174 2014-06-03  Kai Tietz  <ktietz@redhat.com>
23175
23176         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
23177         for 64-bit ms-abi.
23178
23179 2014-06-03  Dehao Chen  <dehao@google.com>
23180
23181         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
23182         the same loop.
23183
23184 2014-06-03  Marek Polacek  <polacek@redhat.com>
23185
23186         PR c/60439
23187         * doc/invoke.texi: Document -Wswitch-bool.
23188         * function.c (stack_protect_epilogue): Cast controlling expression of
23189         the switch to int.
23190         * gengtype.c (walk_type): Generate switch expression with its
23191         controlling expression cast to int.
23192
23193 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
23194
23195         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
23196         and attiny841.
23197         * config/avr/avr-tables.opt: Regenerate.
23198         * config/avr/t-multilib: Regenerate.
23199         * doc/avr-mmcu.texi: Regenerate.
23200
23201 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
23202             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
23203
23204         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
23205         (ata6617c, ata664251): Add new avr35 devices.
23206         (ata6612c): Add new avr4 device.
23207         (ata6613c, ata6614q): Add new avr5 devices.
23208         * config/avr/avr-tables.opt: Regenerate.
23209         * config/avr/t-multilib: Regenerate.
23210         * doc/avr-mmcu.texi: Regenerate.
23211
23212 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23213
23214         * gcc/config/aarch64/aarch64-builtins.c
23215         (aarch64_types_binop_ssu_qualifiers): New static data.
23216         (TYPES_BINOP_SSU): Define.
23217         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
23218         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
23219         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
23220         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
23221         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
23222         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
23223         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
23224         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
23225         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
23226         suffix to builtin function name, remove cast.
23227         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
23228         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
23229         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
23230
23231 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23232
23233         * gcc/config/aarch64/aarch64-builtins.c
23234         (aarch64_types_binop_uus_qualifiers,
23235         aarch64_types_shift_to_unsigned_qualifiers,
23236         aarch64_types_unsigned_shiftacc_qualifiers): Define.
23237         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
23238         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
23239         sqshlu_n, uqshl_n): Update qualifiers.
23240         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
23241         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
23242         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
23243         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
23244         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
23245         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
23246         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
23247         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
23248         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
23249         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
23250         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
23251         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
23252         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
23253         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
23254         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
23255         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
23256         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
23257         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
23258         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
23259         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
23260         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
23261         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
23262         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
23263         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
23264         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
23265         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
23266         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
23267
23268 2014-06-03  Teresa Johnson  <tejohnson@google.com>
23269
23270         * tree-sra.c (modify_function): Record caller nodes after rebuild.
23271
23272 2014-06-02  Jason Merrill  <jason@redhat.com>
23273
23274         PR c++/61020
23275         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
23276
23277 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23278
23279         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
23280         location == 0.
23281
23282 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23283
23284         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
23285         New pattern.
23286         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
23287         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
23288         * config/aarch64/iterators.md (REVERSE): New iterator.
23289         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
23290         (rev_op): New int_attribute.
23291         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
23292         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
23293         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
23294         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
23295         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
23296         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
23297         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
23298         Replace temporary __asm__ with __builtin_shuffle.
23299
23300 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23301
23302         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
23303         mips64r5.
23304         * config/mips/mips-tables.opt: Regenerate.
23305         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
23306         to use mips_isa_rev rather than ISA_MIPS32R2.
23307         * config/mips/mips.h (ISA_MIPS32R3): New define.
23308         (ISA_MIPS32R5): New define.
23309         (ISA_MIPS64R3): New define.
23310         (ISA_MIPS64R5): New define.
23311         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
23312         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
23313         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
23314         and mips64r5.
23315         (MIPS_ISA_SYNCI_SPEC): Likewise.
23316         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
23317         (LINK_SPEC): Added mips32r3 and mips32r5.
23318         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
23319         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
23320         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
23321         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
23322         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
23323         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
23324         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
23325
23326 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23327
23328         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
23329         options.
23330         * config/mips/mips.opt (mxpa): New option.
23331         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
23332         assembler.
23333
23334 2014-06-03  Martin Jambor  <mjambor@suse.cz>
23335
23336         PR ipa/61160
23337         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
23338         thunks.
23339
23340 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23341
23342         PR tree-optimization/61328
23343         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
23344         initialization from find_bswap_or_nop_1.
23345         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
23346         in source_expr2 before using the size value the function sets. Also
23347         make use of init_symbolic_number () in both the old place and
23348         find_bswap_or_nop_load () to avoid reading uninitialized memory when
23349         doing recursion in the GIMPLE_BINARY_RHS case.
23350
23351 2014-06-03  Richard Biener  <rguenther@suse.de>
23352
23353         PR tree-optimization/61383
23354         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
23355         stmts can't trap.
23356
23357 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23358
23359         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
23360         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
23361         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
23362         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
23363         in this file.
23364         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
23365         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
23366         * system.h: ...here and make it unconditional.
23367         * target.def (conditional_register_usage): Mention
23368         define_register_constraint instead of old-style constraint macros.
23369         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
23370         * doc/tm.texi: Regenerate.
23371         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
23372         protected by !USE_MD_CONSTRAINTS.
23373         * config/frv/frv.md: Remove quote from old version of documentation.
23374         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
23375         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
23376         CONST_DOUBLE_OK_FOR_LETTER.
23377         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
23378
23379 2014-06-02  Andrew Pinski  <apinski@cavium.com>
23380
23381         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
23382         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
23383         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
23384         file whose name depends on -mabi= and -mbig-endian.
23385         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
23386         Handle LP64 better and handle ilp32 too.
23387         (MULTILIB_OPTIONS): Delete.
23388         (MULTILIB_DIRNAMES): Delete.
23389
23390 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
23391
23392         * expr.h: Remove prototypes of functions defined in builtins.c.
23393         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
23394         Remove prototypes of functions defined in builtins.c.
23395         * builtins.h: Update prototype list to include all exported functions.
23396         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
23397         no_c99_libc_has_function): Move to targhooks.c
23398         (build_string_literal, build_call_expr_loc_array,
23399         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
23400         to tree.c.
23401         (expand_builtin_object_size, fold_builtin_object_size): Make static.
23402         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
23403         no_c99_libc_has_function): Relocate from builtins.c.
23404         * tree.c: Include builtins.h.
23405         (build_call_expr_loc_array, build_call_expr_loc_vec,
23406         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
23407         from builtins.c.
23408         * fold-const.h (fold_fma): Move prototype to builtins.h.
23409         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
23410         * asan.c: Include builtins.h.
23411         * cfgexpand.c: Likewise.
23412         * convert.c: Likewise.
23413         * emit-rtl.c: Likewise.
23414         * except.c: Likewise.
23415         * expr.c: Likewise.
23416         * fold-const.c: Likewise.
23417         * gimple-fold.c: Likewise.
23418         * gimple-ssa-strength-reduction.c: Likewise.
23419         * gimplify.c: Likewise.
23420         * ipa-inline.c: Likewise.
23421         * ipa-prop.c: Likewise.
23422         * lto-streamer-out.c: Likewise.
23423         * stmt.c: Likewise.
23424         * tree-inline.c: Likewise.
23425         * tree-object-size.c: Likewise.
23426         * tree-sra.c: Likewise.
23427         * tree-ssa-ccp.c: Likewise.
23428         * tree-ssa-forwprop.c: Likewise.
23429         * tree-ssa-loop-ivcanon.c: Likewise.
23430         * tree-ssa-loop-ivopts.c: Likewise.
23431         * tree-ssa-math-opts.c: Likewise.
23432         * tree-ssa-reassoc.c: Likewise.
23433         * tree-ssa-threadedge.c: Likewise.
23434         * tree-streamer-in.c: Likewise.
23435         * tree-vect-data-refs.c: Likewise.
23436         * tree-vect-patterns.c: Likewise.
23437         * tree-vect-stmts.c: Likewise.
23438         * config/aarch64/aarch64.c: Likewise.
23439         * config/alpha/alpha.c: Likewise.
23440         * config/arc/arc.c: Likewise.
23441         * config/arm/arm.c: Likewise.
23442         * config/avr/avr.c: Likewise.
23443         * config/bfin/bfin.c: Likewise.
23444         * config/c6x/c6x.c: Likewise.
23445         * config/cr16/cr16.c: Likewise.
23446         * config/cris/cris.c: Likewise.
23447         * config/epiphany/epiphany.c: Likewise.
23448         * config/fr30/fr30.c: Likewise.
23449         * config/frv/frv.c: Likewise.
23450         * config/h8300/h8300.c: Likewise.
23451         * config/i386/i386.c: Likewise.
23452         * config/i386/winnt.c: Likewise.
23453         * config/ia64/ia64.c: Likewise.
23454         * config/iq2000/iq2000.c: Likewise.
23455         * config/lm32/lm32.c: Likewise.
23456         * config/m32c/m32c.c: Likewise.
23457         * config/m32r/m32r.c: Likewise.
23458         * config/m68k/m68k.c: Likewise.
23459         * config/mcore/mcore.c: Likewise.
23460         * config/mep/mep.c: Likewise.
23461         * config/microblaze/microblaze.c: Likewise.
23462         * config/mips/mips.c: Likewise.
23463         * config/mmix/mmix.c: Likewise.
23464         * config/mn10300/mn10300.c: Likewise.
23465         * config/moxie/moxie.c: Likewise.
23466         * config/msp430/msp430.c: Likewise.
23467         * config/nds32/nds32.c: Likewise.
23468         * config/pa/pa.c: Likewise.
23469         * config/pdp11/pdp11.c: Likewise.
23470         * config/picochip/picochip.c: Likewise.
23471         * config/rl78/rl78.c: Likewise.
23472         * config/rs6000/rs6000.c: Likewise.
23473         * config/rx/rx.c: Likewise.
23474         * config/s390/s390.c: Likewise.
23475         * config/score/score.c: Likewise.
23476         * config/sh/sh.c: Likewise.
23477         * config/sparc/sparc.c: Likewise.
23478         * config/spu/spu.c: Likewise.
23479         * config/stormy16/stormy16.c: Likewise.
23480         * config/tilegx/tilegx.c: Likewise.
23481         * config/tilepro/tilepro.c: Likewise.
23482         * config/v850/v850.c: Likewise.
23483         * config/vax/vax.c: Likewise.
23484         * config/xtensa/xtensa.c: Likewise.
23485
23486 2014-06-02  Jeff Law  <law@redhat.com>
23487
23488         PR rtl-optimization/61094
23489         * ree.c (combine_reaching_defs): Do not reextend an insn if it
23490         was marked as do_no_reextend.  If a copy is needed to eliminate
23491         an extension, then mark it as do_not_reextend.
23492
23493 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23494
23495         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
23496
23497 2014-06-02  Richard Henderson  <rth@redhat.com>
23498
23499         PR target/61336
23500         * config/alpha/alpha.c (print_operand_address): Allow symbolic
23501         addresses inside asms.  Use output_operand_lossage instead of
23502         gcc_unreachable.
23503
23504 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
23505
23506         PR target/61239
23507         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
23508         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
23509
23510 2014-06-02  Tom de Vries  <tom@codesourcery.com>
23511
23512         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
23513         case that x has VOIDmode.
23514
23515 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
23516
23517         * varasm.c (copy_constant): Delete function.
23518         (build_constant_desc): Don't call it.
23519
23520 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23521
23522         PR target/61154
23523         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
23524         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
23525         with immediate_operand.
23526
23527 2014-06-02  Andreas Schwab  <schwab@suse.de>
23528
23529         * config/ia64/ia64.c
23530         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
23531         pending_data_specs first.
23532
23533 2014-06-02  Richard Biener  <rguenther@suse.de>
23534
23535         PR tree-optimization/61378
23536         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
23537         valueized_anything.
23538
23539 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
23540
23541         * config/i386/constraints.md (Bw): Rename from 'w'.
23542         (Bz): Rename from 'z'.
23543         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
23544
23545 2014-06-01  Kai Tietz  <ktietz@redhat.com>
23546
23547         PR target/61377
23548         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
23549         * config/i386/i386.md (sibcall_insn_operand): Use Bs
23550         instead of m constraint.
23551
23552 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
23553
23554         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
23555         a separate alternative where the scratch operand 2 is marked as
23556         early clobber.
23557
23558 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
23559
23560         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
23561         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
23562         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
23563         and __builtins_arm_get_fpscr.
23564         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
23565         __builtins_arm_get_fpscr.
23566         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
23567         __builtins_arm_ldfpscr.
23568         (arm_atomic_assign_expand_fenv): New function.
23569         * config/arm/vfp.md (set_fpscr): New pattern.
23570         (get_fpscr) : Likewise.
23571         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
23572         VUNSPEC_SET_FPSCR.
23573         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23574         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
23575
23576 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
23577
23578         * asan.c (report_error_func): Add SLOW_P argument, use
23579         BUILT_IN_ASAN_*_N if set.
23580         (build_check_stmt): Likewise.
23581         (instrument_derefs): If T has insufficient alignment,
23582         force same handling as for odd sizes.
23583
23584         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
23585         BUILT_IN_ASAN_REPORT_STORE_N): New.
23586         * asan.c (struct asan_mem_ref): Change access_size type to
23587         HOST_WIDE_INT.
23588         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
23589         update_mem_ref_hash_table): Likewise.
23590         (asan_mem_ref_hasher::hash): Hash in a HWI.
23591         (report_error_func): Change size_in_bytes argument to HWI.
23592         Use *_N builtins if size_in_bytes is larger than 16 or not power of
23593         two.
23594         (build_shadow_mem_access): New function.
23595         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
23596         Handle size_in_bytes not power of two or larger than 16.
23597         (instrument_derefs): Don't give up if size_in_bytes is not
23598         power of two or is larger than 16.
23599
23600 2014-05-30  Kai Tietz  <ktietz@redhat.com>
23601
23602         PR target/60104
23603         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
23604         for sibling-tail-calls.
23605         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
23606         to its use.
23607         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
23608         (sibcall_insn_operand): Add check for sibcall_memory_operand.
23609
23610 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23611
23612         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
23613         * config/avr/avr-tables.opt: Regenerate.
23614         * config/avr/t-multilib: Regenerate.
23615         * doc/avr-mmcu.texi: Regenerate.
23616
23617 2014-05-30  Ian Lance Taylor  <iant@google.com>
23618
23619         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
23620         target("sse").
23621
23622 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23623
23624         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23625         Redefine as true.
23626
23627 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23628
23629         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23630         * lra.c (initialize_lra_reg_info_element): Add init of
23631         actual_call_used_reg_set field.
23632         (lra): Call lra_create_live_ranges before lra_inheritance for
23633         -fuse-caller-save.
23634         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23635         -fuse-caller-save.
23636         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
23637         instead of call_used_reg_set for -fuse-caller-save.
23638         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23639
23640 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23641
23642         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
23643         to mov_imm.
23644         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
23645
23646 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
23647
23648         * ira.c (ira_get_dup_out_num): Check for output operands at
23649         the start of the loop.  Handle cases where an included alternative
23650         follows an excluded one.
23651
23652 2014-05-29  Mike Stump  <mikestump@comcast.net>
23653
23654         PR debug/61352
23655         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23656         post ld passes when lto is used.
23657
23658 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
23659
23660         PR rtl-optimization/61325
23661         * lra-constraints.c (process_address): Rename to process_address_1.
23662         (process_address): New function.
23663
23664 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
23665
23666         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23667         TYPES_BINOPV): New static data.
23668         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23669         New builtin.
23670         * config/aarch64/aarch64-simd.md (aarch64_ext,
23671         aarch64_im_lane_boundsi): New patterns.
23672         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23673         patterns for EXT.
23674         (aarch64_evpc_ext): New function.
23675
23676         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23677
23678         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23679         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23680         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23681         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23682         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23683
23684 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23685
23686         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23687
23688 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
23689             Richard Sandiford  <rdsandiford@googlemail.com>
23690
23691         * arm/iterators.md (shiftable_ops): New code iterator.
23692         (t2_binop0, arith_shift_insn): New code attributes.
23693         * arm/predicates.md (shift_nomul_operator): New predicate.
23694         * arm/arm.md (insn_enabled): Delete.
23695         (enabled): Remove insn_enabled test.
23696         (*arith_shiftsi): Delete.  Replace with ...
23697         (*<arith_shift_insn>_multsi): ... new pattern.
23698         (*<arith_shift_insn>_shiftsi): ... new pattern.
23699         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23700
23701 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
23702             Tom de Vries  <tom@codesourcery.com>
23703
23704         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23705         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23706         clobber.
23707         (mips_split_call): Use POST_CALL_TMP_REG.
23708         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23709
23710 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23711
23712         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23713         with #ifdef STACK_REGS.
23714
23715 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
23716
23717         * varasm.c (get_variable_section): Walk aliases.
23718         (place_block_symbol): Walk aliases.
23719
23720 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23721
23722         Revert:
23723         2014-05-28  Tom de Vries  <tom@codesourcery.com>
23724
23725         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23726         * lra.c (initialize_lra_reg_info_element): Add init of
23727         actual_call_used_reg_set field.
23728         (lra): Call lra_create_live_ranges before lra_inheritance for
23729         -fuse-caller-save.
23730         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23731         -fuse-caller-save.
23732         * lra-constraints.c (need_for_call_save_p): Use
23733         actual_call_used_reg_set instead of call_used_reg_set for
23734         -fuse-caller-save.
23735         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23736
23737 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23738
23739         * doc/md.texi: Document that the % constraint character must
23740         be at the beginning of the string.
23741         * genoutput.c (validate_insn_alternatives): Check that '=',
23742         '+' and '%' only appear at the beginning of a constraint.
23743         * ira.c (commutative_constraint_p): Delete.
23744         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23745         at the start of the string.
23746         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23747         duplicate '='s.
23748         * config/arm/neon.md (bicdi3_neon): Likewise.
23749         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23750         (slt_si, sltu_si): Likewise.
23751         * config/vax/vax.md (sbcdi3): Likewise.
23752         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23753         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23754         (mul64): Move '%' to beginning of constraint.
23755         * config/arm/arm.md (*xordi3_insn): Likewise.
23756         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23757         (xorsi3): Likewise.
23758
23759 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23760
23761         * doc/md.texi: Document the restrictions on the "enabled" attribute.
23762
23763 2014-05-28  Jason Merrill  <jason@redhat.com>
23764
23765         PR c++/47202
23766         * cgraph.h (symtab_node::get_comdat_group_id): New.
23767         * cgraphunit.c (analyze_functions): Call it.
23768         * symtab.c (dump_symtab_node): Likewise.
23769         * tree.c (decl_comdat_group_id): New.
23770         * tree.h: Declare it.
23771         * lto-streamer-out.c (write_symbol): Use it.
23772         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23773
23774 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23775
23776         PR bootstrap/PR61146
23777         * wide-int.cc: Do not include longlong.h when compiling with clang.
23778
23779 2014-05-28  Richard Biener  <rguenther@suse.de>
23780
23781         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23782         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23783         (vrp_visit_assignment_or_call): Print less vertical space.
23784         (vrp_visit_stmt): Likewise.
23785         (vrp_visit_phi_node): Likewise.  For a PHI argument with
23786         VR_VARYING range consider recording it as copy.
23787
23788 2014-05-28  Richard Biener  <rguenther@suse.de>
23789
23790         Revert
23791         2014-05-28  Richard Biener  <rguenther@suse.de>
23792
23793         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23794
23795 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23796
23797         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23798         sufficiently aligned and an offset is used at the same time.
23799         (expand_expr_real_1): Likewise.
23800
23801 2014-05-28  Richard Biener  <rguenther@suse.de>
23802
23803         PR middle-end/61045
23804         * fold-const.c (fold_comparison): When folding
23805         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23806         the sign of the remaining constant operand stays the same.
23807
23808 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
23809
23810         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23811         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23812         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23813         to the assembler.
23814         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23815         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23816         (m32bit-doubles) Likewise.
23817         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23818         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23819         option for RL78.
23820
23821 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23822
23823         * configure.ac ($gcc_cv_ld_clearcap): New test.
23824         * configure: Regenerate.
23825         * config.in: Regenerate.
23826         * config/sol2.opt (mclear-hwcap): New option.
23827         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23828         * config/sol2-clearcap.map: Moved here from
23829         testsuite/gcc.target/i386/clearcap.map.
23830         * config/sol2-clearcapv2.map: Move here from
23831         gcc.target/i386/clearcapv2.map.
23832         * config/t-sol2 (install): Depend on install-clearcap-map.
23833         (install-clearcap-map): New target.
23834         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23835         -mclear-hwcap.
23836
23837 2014-05-28  Richard Biener  <rguenther@suse.de>
23838
23839         * hwint.h (*_HALF_WIDE_INT*): Move to ...
23840         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23841         ... here and remove the rest.
23842         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23843
23844 2014-05-28  Richard Biener  <rguenther@suse.de>
23845
23846         PR tree-optimization/61335
23847         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23848         new range fails, drop to varying.
23849
23850 2014-05-28  Olivier Hainque  <hainque@adacore.com>
23851
23852         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23853         (CPP_SPEC): Add entry for -mcpu=8548.
23854         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23855         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23856
23857 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23858
23859         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23860         * lra.c (initialize_lra_reg_info_element): Add init of
23861         actual_call_used_reg_set field.
23862         (lra): Call lra_create_live_ranges before lra_inheritance for
23863         -fuse-caller-save.
23864         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23865         -fuse-caller-save.
23866         * lra-constraints.c (need_for_call_save_p): Use
23867         actual_call_used_reg_set instead of call_used_reg_set for
23868         -fuse-caller-save.
23869         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23870
23871 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23872             Tom de Vries  <tom@codesourcery.com>
23873
23874         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23875         to gccoptlist.
23876         (@item -fuse-caller-save): New item.
23877
23878 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23879             Tom de Vries  <tom@codesourcery.com>
23880
23881         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23882         OPT_fuse_caller_save.
23883
23884 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23885             Tom de Vries  <tom@codesourcery.com>
23886
23887         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23888         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23889         get_call_reg_set_usage.
23890         * resource.c (mark_set_resources, mark_target_live_regs): Use
23891         get_call_reg_set_usage.
23892         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23893         field.
23894         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23895         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23896         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23897         * ira-build.c (ira_create_allocno): Init
23898         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23899         (create_cap_allocno, propagate_allocno_info)
23900         (propagate_some_info_from_allocno)
23901         (copy_info_to_removed_store_destinations): Handle
23902         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23903         * ira-costs.c (ira_tune_allocno_costs): Use
23904         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23905
23906 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23907             Tom de Vries  <tom@codesourcery.com>
23908
23909         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23910         and function_used_regs_valid fields.
23911         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23912         find_all_hard_reg_sets.
23913         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23914         (get_call_reg_set_usage): New function.
23915         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23916         * regs.h (get_call_reg_set_usage): Declare.
23917
23918 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23919
23920         PR libgcc/61152
23921         * config/dbx.h (License): Add Runtime Library Exception.
23922         * config/newlib-stdint.h (License): Same.
23923         * config/rtems.h (License): Same
23924         * config/initfini-array.h (License): Same
23925         * config/v850/v850.h (License): Same.
23926         * config/v850/v850-opts.h (License): Same
23927         * config/v850/rtems.h (License): Same.
23928
23929 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23930
23931         PR target/61044
23932         * doc/extend.texi (Local Labels): Note that label differences are
23933         not supported for AVR.
23934
23935 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23936             Olivier Hainque  <hainque@adacore.com>
23937
23938         * rtl.h (set_for_reg_notes): Declare.
23939         * emit-rtl.c (set_for_reg_notes): New function.
23940         (set_unique_reg_note): Use it.
23941         * optabs.c (add_equal_note): Likewise
23942
23943 2014-05-27  Andrew Pinski  <apinski@cavium.com>
23944
23945         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23946         Use <w> for the register in assembly template.
23947         (stack_protect_test): Use the mode of operands[0] for the result.
23948         (stack_protect_test_<mode>): Use <w> for the register
23949         in assembly template.
23950
23951 2014-05-27  DJ Delorie  <dj@redhat.com>
23952
23953         * config/rx/rx.c (add_vector_labels): New.
23954         (rx_output_function_prologue): Call it.
23955         (rx_handle_func_attribute): Don't require empty arguments.
23956         (rx_handle_vector_attribute): New.
23957         (rx_attribute_table): Add "vector" attribute.
23958         * doc/extend.texi (interrupt, vector): Document new/changed
23959         RX-specific attributes.
23960
23961         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23962
23963 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23964
23965         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23966         predicate to detect a negative quotient.
23967
23968 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23969
23970         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23971         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23972         Add X - Y CMP 0 to X CMP Y transformation.
23973         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23974
23975 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
23976
23977         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23978         before printing.
23979
23980 2014-05-27  Steve Ellcey  <sellcey@mips.com>
23981
23982         * config/mips/mips.c: Add include of cgraph.h.
23983
23984 2014-05-27  Richard Biener  <rguenther@suse.de>
23985
23986         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23987
23988 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23989
23990         PR libgcc/61152
23991         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23992         * config/arm/arm-cores.def (License): Same.
23993         * config/arm/arm-opts.h (License): Same.
23994         * config/arm/aout.h (License): Same.
23995         * config/arm/bpabi.h (License): Same.
23996         * config/arm/elf.h (License): Same.
23997         * config/arm/linux-elf.h (License): Same.
23998         * config/arm/linux-gas.h (License): Same.
23999         * config/arm/netbsd-elf.h (License): Same.
24000         * config/arm/uclinux-eabi.h (License): Same.
24001         * config/arm/uclinux-elf.h (License): Same.
24002         * config/arm/vxworks.h (License): Same.
24003
24004 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24005
24006         * config/arm/neon.md (neon_bswap<mode>): New pattern.
24007         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
24008         (arm_init_neon_builtins): Handle NEON_BSWAP.
24009         Define required type nodes.
24010         (arm_expand_neon_builtin): Handle NEON_BSWAP.
24011         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
24012         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
24013         * config/arm/iterators.md (VDQHSD): New mode iterator.
24014
24015 2014-05-27  Richard Biener  <rguenther@suse.de>
24016
24017         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
24018         Try using literal operands when comparing value-ranges failed.
24019
24020 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
24021
24022         * ira.c (commutative_operand): Adjust for change to recog_data.
24023         [Missing from previous commit.]
24024
24025 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
24026
24027         * system.h (TEST_BIT): New macro.
24028         * recog.h (alternative_mask): New type.
24029         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
24030         (recog_data_d): Replace alternative_enabled_p array with
24031         enabled_alternatives.
24032         (target_recog): New structure.
24033         (default_target_recog, this_target_recog): Declare.
24034         (get_enabled_alternatives, recog_init): Likewise.
24035         * recog.c (default_target_recog, this_target_recog): New variables.
24036         (get_enabled_alternatives): New function.
24037         (extract_insn): Use it.
24038         (recog_init): New function.
24039         (preprocess_constraints, constrain_operands): Adjust for change to
24040         recog_data.
24041         * postreload.c (reload_cse_simplify_operands): Likewise.
24042         * reload.c (find_reloads): Likewise.
24043         * ira-costs.c (record_reg_classes): Likewise.
24044         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
24045         all alternatives after a disabled one would be skipped.
24046         (ira_implicitly_set_insn_hard_regs): Likewise.
24047         * ira.c (ira_setup_alts): Adjust for change to recog_data.
24048         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
24049         with enabled_alternatives.
24050         * lra.c (free_insn_recog_data): Update accordingly.
24051         (lra_update_insn_recog_data): Likewise.
24052         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
24053         * lra-constraints.c (process_alt_operands): Likewise.  Handle
24054         only_alternative as part of the enabled mask.
24055         * target-globals.h (this_target_recog): Declare.
24056         (target_globals): Add a recog field.
24057         (restore_target_globals): Restore this_target_recog.
24058         * target-globals.c: Include recog.h.
24059         (default_target_globals): Initialize recog field.
24060         (save_target_globals): Likewise.
24061         * reginfo.c (reinit_regs): Call recog_init.
24062         * toplev.c (backend_init_target): Likewise.
24063
24064 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
24065
24066         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
24067         rather than any named insn's code.
24068
24069 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
24070
24071         PR libgcc/61152
24072         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
24073         * config/arm/arm-cores.def (License): Same.
24074
24075 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
24076
24077         * tree.h (decl_comdat_group): Declare.
24078         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
24079         * tree.c (decl_comdat_group): Here.
24080
24081 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
24082
24083         PR rtl-optimization/61222
24084         * combine.c (simplify_shift_const_1): When moving a PLUS outside
24085         the shift, truncate the PLUS operand to the result mode.
24086
24087 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
24088
24089         PR target/61271
24090         * config/i386/i386.c (ix86_rtx_costs)
24091         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
24092         Fix condition.
24093
24094 2014-05-26  Martin Jambor  <mjambor@suse.cz>
24095
24096         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
24097         subreg uses.
24098
24099 2014-05-26  Richard Biener  <rguenther@suse.de>
24100
24101         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
24102         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
24103         Provide specializations.
24104         (wi::int_traits <HOST_WIDE_INT>,
24105         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
24106
24107 2014-05-26  Alan Modra  <amodra@gmail.com>
24108
24109         PR target/61098
24110         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
24111         params and return a bool.  Remove dead code.  Update comment.
24112         Assert we have a const_int source.  Remove bogus code from
24113         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
24114         handling of constants > 2G and reg_equal note, from..
24115         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
24116         return value.  Update comment.  If we can, use a new pseudo
24117         for intermediate calculations.
24118         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
24119         prototype.
24120         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
24121         call to rs6000_emit_set_const in splitter.
24122         (movdi_internal64+2, +3): Likewise.
24123
24124 2014-05-26  Richard Biener  <rguenther@suse.de>
24125
24126         * system.h: Define __STDC_FORMAT_MACROS before
24127         including inttypes.h.
24128         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
24129         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
24130         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
24131         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
24132         HOST_WIDEST_INT_C): Remove.
24133         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
24134         if C99 inttypes.h is not available.
24135         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
24136         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
24137         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
24138         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
24139         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
24140         (struct output_info): Likewise.
24141         (print_statistics): Adjust.
24142         (dump_bitmap_statistics): Likewise.
24143         * bt-load.c (migrate_btr_defs): Print with PRId64.
24144         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
24145         (MAX_SAFE_MULTIPLIER): Adjust.
24146         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
24147         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
24148         dump_cgraph_node): Likewise.
24149         * final.c (dump_basic_block_info): Likewise.
24150         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
24151         * gcov.c (format_gcov): Likewise.
24152         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
24153         for calculation.
24154         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
24155         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
24156         (inline_small_functions, dump_overall_stats, dump_inline_stats):
24157         Use PRId64 for dumping.
24158         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
24159         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
24160         (add_allocno_hard_regs): Adjust.
24161         * loop-doloop.c (doloop_modify): Print using PRId64.
24162         * loop-iv.c (inverse): Compute in uint64_t.
24163         (determine_max_iter, iv_number_of_iterations): Likewise.
24164         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
24165         Print using PRId64.
24166         * lto-streamer-out.c (write_symbol): Use uint64_t.
24167         * mcf.c (CAP_INFINITY): Use int64_t maximum.
24168         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
24169         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
24170         * modulo-sched.c (const_iteration_count): Use int64_t.
24171         (sms_schedule): Dump using PRId64.
24172         * predict.c (dump_prediction): Likewise.
24173         * pretty-print.h (pp_widest_integer): Remove.
24174         * profile.c (get_working_sets, is_edge_inconsistent,
24175         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
24176         * tree-pretty-print.c (pp_double_int): Remove case handling
24177         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
24178         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
24179         and adjust users.
24180         (pass_optimize_bswap::execute): Remove restriction on hosts.
24181         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
24182         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
24183         * tree.c (widest_int_cst_value): Remove.
24184         * tree.h (widest_int_cst_value): Likewise.
24185         * value-prof.c (dump_histogram_value): Print using PRId64.
24186         * gengtype.c (main): Also inject int64_t.
24187         * ggc-page.c (struct max_alignment): Use int64_t.
24188         * alloc-pool.c (struct allocation_object_def): Likewise.
24189         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
24190         for computation.
24191         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
24192         * doc/tm.texi: Regenerated.
24193         * gengtype-lex.l (IWORD): Handle [u]int64_t.
24194         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
24195         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
24196         mmix_output_register_setting): Use [u]int64_t in prototypes.
24197         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
24198         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
24199         mmix_output_octa, mmix_output_shifted_value): Adjust.
24200         (mmix_intval): Adjust.  Remove unreachable case.
24201         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
24202
24203 2014-05-26  Richard Biener  <rguenther@suse.de>
24204
24205         * configure.ac: Drop __int64 type check.  Insist that we
24206         found uint64_t and int64_t.
24207         * hwint.h (HOST_BITS_PER___INT64): Remove.
24208         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
24209         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
24210         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
24211         (HOST_WIDEST_FAST_INT): Remove __int64 case.
24212         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
24213         for dst_q_src_df_rms_cdt.
24214         * configure: Regenerate.
24215         * config.in: Likewise.
24216
24217 2014-05-26  Michael Tautschnig  <mt@debian.org>
24218
24219         PR target/61249
24220         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
24221         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
24222
24223 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24224
24225         PR rtl-optimization/61278
24226         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
24227
24228 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24229
24230         PR rtl-optimization/61220
24231         Part of PR rtl-optimization/61225
24232         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
24233         insn; skip split_edge for a block with only one successor.
24234
24235 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24236
24237         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
24238         for variables.
24239
24240 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24241
24242         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
24243         (update_vtable_references): New function.
24244         (function_and_variable_visibility): Rewrite also vtable initializers.
24245         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
24246
24247 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24248
24249         * ggc.h (ggc_grow): New function.
24250         * ggc-none.c (ggc_grow): New function.
24251         * ggc-page.c (ggc_grow): Likewise.
24252
24253 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24254
24255         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24256         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
24257         comdat_can_be_unshared_p, cgraph_externally_visible_p,
24258         varpool_externally_visible_p, can_replace_by_local_alias,
24259         update_visibility_by_resolution_info, function_and_variable_visibility,
24260         pass_data_ipa_function_and_variable_visibility,
24261         make_pass_ipa_function_and_variable_visibility,
24262         whole_program_function_and_variable_visibility,
24263         pass_data_ipa_whole_program_visibility,
24264         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
24265         * cgraph.h (cgraph_local_node_p): Declare.
24266         * ipa-visibility.c: New file.
24267         * Makefile.in (OBJS): Add ipa-visiblity.o
24268
24269 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24270
24271         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
24272         that var decl is available.
24273
24274 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24275
24276         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
24277         symtab_node pointer.
24278         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
24279         (find_decls_types_r): Do not walk COMDAT_GROUP.
24280         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
24281         * varasm.c (make_decl_one_only): Use set_comdat_group;
24282         create node if needed.
24283         * ipa-inline-transform.c (save_inline_function_body): Update
24284         way we decl->symtab mapping.
24285         * symtab.c (symtab_hash, hash_node, eq_node
24286         symtab_insert_node_to_hashtable): Remove.
24287         (symtab_register_node): Update.
24288         (symtab_unregister_node): Update.
24289         (symtab_get_node): Reimplement as inline function.
24290         (symtab_add_to_same_comdat_group): Update.
24291         (symtab_dissolve_same_comdat_group_list): Update.
24292         (dump_symtab_base): Update.
24293         (verify_symtab_base): Update.
24294         (symtab_make_decl_local): Update.
24295         (fixup_same_cpp_alias_visibility): Update.
24296         (symtab_nonoverwritable_alias): Update.
24297         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
24298         * ipa.c (update_visibility_by_resolution_info): UPdate.
24299         * bb-reorder.c: Include cgraph.h
24300         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
24301         with comdat groups.
24302         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
24303         * cgraph.c (cgraph_get_create_node): Update.
24304         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
24305         and comdat_group_.
24306         (symtab_get_node): Make inline.
24307         (symtab_insert_node_to_hashtable): Remove.
24308         (symtab_can_be_discarded): Update.
24309         (decl_comdat_group): New function.
24310         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
24311         Update.
24312         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
24313         comdat group name.
24314         (read_comdat_group): New function.
24315         (input_node, input_varpool_node): Use it.
24316         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
24317         comdat groups.
24318         * mips.c (mips_start_unique_function): Likewise.
24319         (ix86_code_end): Likewise.
24320         (rs6000_code_end): Likweise.
24321         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
24322
24323 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24324
24325         * gengtype-state.c (fatal_reading_state): Bring offline.
24326         * optabs.c (widening_optab_handler): Bring offline.
24327         * optabs.h (widening_optab_handler): Likewise.
24328         * final.c (get_attr_length_1): Likewise.
24329
24330 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24331
24332         * sched-int.h (sd_iterator_cond): Manually tail recurse.
24333
24334 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24335
24336         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
24337         (ppc440-compare): Include shift with dot.
24338         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
24339         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
24340         without dot.
24341         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
24342         without dot.
24343         (e6500_sfx2): Include it.
24344         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
24345         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
24346         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
24347         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
24348         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
24349         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
24350         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
24351         *lshiftrt_internal1le, *lshiftrt_internal1be,
24352         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
24353         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
24354         *rotldi3_internal10le, *rotldi3_internal10be,
24355         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
24356         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
24357         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
24358         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
24359         define_insns): Use type "shift" in the appropriate alternatives.
24360
24361 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24362
24363         * config/rs6000/rs6000.md (type): Add "logical".  Delete
24364         "fast_compare".
24365         (dot): Adjust comment.
24366         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
24367         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
24368         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
24369         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
24370         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
24371         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
24372         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
24373         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24374
24375         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24376         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24377         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24378         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24379         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24380         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24381         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24382         * config/rs6000/8540.md (ppc8540_su): Adjust.
24383         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24384         cell-cmp-microcoded): Adjust.
24385         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24386         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24387         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24388         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24389         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24390         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24391         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24392         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24393         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24394         Adjust.
24395         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24396         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
24397         Adjust.  Adjust comment.
24398         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24399         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24400
24401 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24402
24403         * config/rs6000/rs6000.md (type): Add "add".
24404         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
24405         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
24406         define_insns): Use it.
24407         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24408
24409         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24410         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24411         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24412         * config/rs6000/601.md (ppc601-integer): Adjust.
24413         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24414         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24415         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24416         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24417         * config/rs6000/8540.md (ppc8540_su): Adjust.
24418         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24419         cell-cmp-microcoded): Adjust.
24420         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24421         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24422         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24423         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24424         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24425         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24426         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24427         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24428         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24429         Adjust.
24430         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24431         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
24432         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24433         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24434
24435 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24436
24437         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
24438         "delayed_compare", "var_delayed_compare".
24439         (var_shift): New attribute.
24440         (cell_micro): Adjust.
24441         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
24442         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
24443         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
24444         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
24445         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
24446         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
24447         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
24448         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
24449         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
24450         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24451         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
24452         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
24453         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
24454         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
24455         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
24456         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
24457         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
24458         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
24459         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
24460         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
24461         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
24462         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
24463         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
24464         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24465         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24466
24467         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24468         * config/rs6000/440.md (ppc440-integer): Adjust.
24469         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24470         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
24471         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24472         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24473         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24474         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24475         * config/rs6000/8540.md (ppc8540_su): Adjust.
24476         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24477         cell-cmp-microcoded): Adjust.
24478         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
24479         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24480         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
24481         e500mc64_delayed): Adjust.
24482         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
24483         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
24484         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24485         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
24486         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
24487         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
24488         power6-delayed-compare, power6-var-delayed-compare): Adjust.
24489         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
24490         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
24491         Adjust comment.
24492         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24493         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24494
24495 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24496
24497         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
24498         (bits): New mode_attr.
24499         (idiv_ldiv): Delete mode_attr.
24500         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
24501         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24502         rs6000_adjust_priority, is_nonpipeline_insn,
24503         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24504
24505         * config/rs6000/40x.md (ppc403-idiv): Adjust.
24506         * config/rs6000/440.md (ppc440-idiv): Adjust.
24507         * config/rs6000/476.md (ppc476-idiv): Adjust.
24508         * config/rs6000/601.md (ppc601-idiv): Adjust.
24509         * config/rs6000/603.md (ppc603-idiv): Adjust.
24510         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
24511         ppc620-ldiv): Adjust.
24512         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
24513         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
24514         * config/rs6000/8540.md (ppc8540_divide): Adjust.
24515         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
24516         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
24517         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
24518         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
24519         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
24520         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
24521         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
24522         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
24523         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
24524         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
24525         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
24526         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
24527         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
24528         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
24529         * config/rs6000/titan.md (titan_fxu_div): Adjust.
24530
24531 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24532
24533         * config/rs6000/rs6000.md (type): Delete "insert_word",
24534         "insert_dword".  Add "insert".
24535         (size): Update comment.
24536         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24537         insn_must_be_first_in_group): Adjust.
24538         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
24539         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
24540         *insvsi_internal6, insvdi_internal): Adjust.
24541
24542         * config/rs6000/40x.md (ppc403-integer): Adjust.
24543         * config/rs6000/440.md (ppc440-integer): Adjust.
24544         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
24545         * config/rs6000/601.md (ppc601-integer): Adjust.
24546         * config/rs6000/603.md (ppc603-integer): Adjust.
24547         * config/rs6000/6xx.md (ppc604-integer): Adjust.
24548         * config/rs6000/7450.md (ppc7450-integer): Adjust.
24549         * config/rs6000/7xx.md (ppc750-integer): Adjust.
24550         * config/rs6000/8540.md (ppc8540_su): Adjust.
24551         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
24552         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
24553         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24554         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
24555         * config/rs6000/e5500.md (e5500_sfx): Adjust.
24556         * config/rs6000/e6500.md (e6500_sfx): Adjust.
24557         * config/rs6000/mpc.md (mpccore-integer): Adjust.
24558         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
24559         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
24560         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
24561         * config/rs6000/power7.md (power7-integer): Adjust.
24562         * config/rs6000/power8.md (power8-1cyc): Adjust.
24563         * config/rs6000/rs64.md (rs64a-integer): Adjust.
24564         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24565
24566 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24567
24568         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
24569         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
24570         (size): New attribute.
24571         (dot): New attribute.
24572         (cell_micro): Adjust.
24573         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
24574         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
24575         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
24576         umuldi3_highpart): Adjust.
24577         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24578         rs6000_adjust_priority, is_nonpipeline_insn,
24579         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24580
24581         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
24582         ppc405-imul3): Adjust.
24583         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
24584         * config/rs6000/476.md (ppc476-imul): Adjust.
24585         * config/rs6000/601.md (ppc601-imul): Adjust.
24586         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
24587         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
24588         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
24589         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
24590         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
24591         Adjust.
24592         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
24593         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
24594         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
24595         cell-imul): Adjust.
24596         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
24597         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
24598         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
24599         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
24600         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
24601         * config/rs6000/mpc.md (mpccore-imul): Adjust.
24602         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
24603         power4-lmul, power4-imul, power4-imul3): Adjust.
24604         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
24605         power5-lmul, power5-imul, power5-imul3): Adjust.
24606         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
24607         power6-lmul, power6-imul, power6-imul3): Adjust.
24608         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
24609         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
24610
24611         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
24612         rs64a-lmul): Adjust.
24613         * config/rs6000/titan.md (titan_imul): Adjust.
24614
24615 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24616
24617         * config/rs6000/rs6000.md (type): Add new value "halfmul".
24618         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
24619         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
24620         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
24621         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
24622         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
24623         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
24624         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
24625         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
24626         * config/rs6000/titan.md: Delete nonsensical comment.
24627         (titan_imul): Add type imul3.
24628         (titan_mulhw): Remove type imul3; add type halfmul.
24629
24630 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24631
24632         * config/rs6000/rs6000.md (type): Reorder, reformat.
24633
24634 2014-05-23  Martin Jambor  <mjambor@suse.cz>
24635
24636         PR tree-optimization/53787
24637         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
24638         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
24639         analysis_done, update all uses.
24640         * ipa-prop.c: Include domwalk.h
24641         (param_analysis_info): Removed.
24642         (param_aa_status): New type.
24643         (ipa_bb_info): Likewise.
24644         (func_body_info): Likewise.
24645         (ipa_get_bb_info): New function.
24646         (aa_overwalked): Likewise.
24647         (find_dominating_aa_status): Likewise.
24648         (parm_bb_aa_status_for_bb): Likewise.
24649         (parm_preserved_before_stmt_p): Changed to use new param AA info.
24650         (load_from_unmodified_param): Accept func_body_info as a parameter
24651         instead of parms_ainfo.
24652         (parm_ref_data_preserved_p): Changed to use new param AA info.
24653         (parm_ref_data_pass_through_p): Likewise.
24654         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
24655         (compute_complex_assign_jump_func): Changed to use new param AA info.
24656         (compute_complex_ancestor_jump_func): Likewise.
24657         (ipa_compute_jump_functions_for_edge): Likewise.
24658         (ipa_compute_jump_functions): Removed.
24659         (ipa_compute_jump_functions_for_bb): New function.
24660         (ipa_analyze_indirect_call_uses): Likewise, moved variable
24661         declarations down.
24662         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24663         and info, moved variable declarations down.
24664         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24665         node and info.
24666         (ipa_analyze_stmt_uses): Likewise.
24667         (ipa_analyze_params_uses): Removed.
24668         (ipa_analyze_params_uses_in_bb): New function.
24669         (ipa_analyze_controlled_uses): Likewise.
24670         (free_ipa_bb_info): Likewise.
24671         (analysis_dom_walker): New class.
24672         (ipa_analyze_node): Handle node-specific forbidden analysis,
24673         initialize and free func_body_info, use dominator walker.
24674         (ipcp_modif_dom_walker): New class.
24675         (ipcp_transform_function): Create and free func_body_info, use
24676         ipcp_modif_dom_walker, moved a lot of functionality there.
24677
24678 2014-05-23  Marek Polacek  <polacek@redhat.com>
24679             Jakub Jelinek  <jakub@redhat.com>
24680
24681         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24682         * gcc.c (sanitize_spec_function): Likewise.
24683         * convert.c (convert_to_integer): Include "ubsan.h".  Add
24684         floating-point to integer instrumentation.
24685         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24686         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24687         SANITIZE_NONDEFAULT.
24688         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24689         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24690         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24691         * ubsan.c: Include "realmpfr.h" and "dfp.h".
24692         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24693         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24694         float/double/long double.
24695         (ubsan_instrument_float_cast): New function.
24696         * ubsan.h (ubsan_instrument_float_cast): Declare.
24697
24698 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
24699
24700         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24701         predicate.
24702         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
24703         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24704         Adjust for tailcalling through registers.
24705         * config/aarch64/aarch64.h (enum reg_class): New caller save
24706         register class.
24707         (REG_CLASS_NAMES): Likewise.
24708         (REG_CLASS_CONTENTS): Likewise.
24709         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24710         Allow tailcalling without decls.
24711
24712 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24713
24714         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24715         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24716
24717         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24718         gsi, and variables v_* to v*.
24719
24720 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
24721
24722         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24723
24724 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24725
24726         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24727         * omp-low.c: Update accordingly.
24728
24729         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24730         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24731         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24732         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24733         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24734         GF_OMP_TARGET_KIND_UPDATE.
24735
24736         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24737         Explicitly enumerate the expected region types.
24738
24739 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
24740
24741         PR other/56955
24742         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
24743         documentation; the old documentation didn't clearly state the
24744         constraints on the contents of the pointed-to storage.
24745
24746 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24747
24748         Fix bootstrap error on ia64
24749         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24750         Return default value.
24751
24752 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24753
24754         PR tree-optimization/54733
24755         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24756         (CMPNOP): Define.
24757         (find_bswap_or_nop_load): New.
24758         (find_bswap_1): Renamed to ...
24759         (find_bswap_or_nop_1): This. Also add support for memory source.
24760         (find_bswap): Renamed to ...
24761         (find_bswap_or_nop): This. Also add support for memory source and
24762         detection of bitwise operations equivalent to load in target
24763         endianness.
24764         (execute_optimize_bswap): Likewise. Also move its leading comment back
24765         in place and split statement transformation into ...
24766         (bswap_replace): This.
24767
24768 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24769
24770         PR rtl-optimization/61215
24771         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24772         simplify_gen_subreg until final substitution.
24773
24774 2014-05-23  Alan Modra  <amodra@gmail.com>
24775
24776         PR target/61231
24777         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24778         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24779         Use "Y" constraint rather than "m".
24780
24781 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24782
24783         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24784         define.
24785         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24786         New function declaration.
24787         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24788         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24789         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24790         (aarch64_init_builtins) : Initialize builtins
24791         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24792         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24793         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24794         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24795         and __builtins_aarch64_set_fpsr.
24796         (aarch64_atomic_assign_expand_fenv): New function.
24797         * config/aarch64/aarch64.md (set_fpcr): New pattern.
24798         (get_fpcr) : Likewise.
24799         (set_fpsr) : Likewise.
24800         (get_fpsr) : Likewise.
24801         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24802         and UNSPECV_SET_FPSR.
24803         * doc/extend.texi (AARCH64 Built-in Functions) : Document
24804         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24805         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24806
24807 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24808
24809         PR rtl-optimization/60969
24810         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24811         constraints.  Set up mem cost for NO_REGS case.
24812
24813 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
24814
24815         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24816
24817 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
24818
24819         * config/darwin.c: Include "lto-section-names.h".
24820         (LTO_SEGMENT_NAME): Don't define.
24821         * config/i386/winnt.c: Include "lto-section-names.h".
24822         * lto-streamer.c: Include "lto-section-names.h".
24823         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24824         * lto-wrapper.c: Include "lto-section-names.h".
24825         (LTO_SECTION_NAME_PREFIX): Don't define.
24826         * lto-section-names.h: New file.
24827         * cgraphunit.c: Include "lto-section-names.h".
24828
24829 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
24830
24831         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24832
24833 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
24834
24835         PR target/61208
24836         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24837
24838 2014-05-22  Nick Clifton  <nickc@redhat.com>
24839
24840         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24841
24842 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24843
24844         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24845         -> (T)A transformation to integer types.
24846
24847 2014-05-22  Teresa Johnson  <tejohnson@google.com>
24848
24849         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24850         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24851         (gcov_rewrite): Use gcov_nonruntime_assert.
24852         (gcov_open): Ditto.
24853         (gcov_write_words): Ditto.
24854         (gcov_write_length): Ditto.
24855         (gcov_read_words): Use gcov_nonruntime_assert, and remove
24856         gcc_assert from IN_LIBGCOV code.
24857         (gcov_read_summary): Use gcov_error to flag profile corruption.
24858         (gcov_sync): Use gcov_nonruntime_assert.
24859         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24860         (gcov_histo_index): Use gcov_nonruntime_assert.
24861         (static void gcov_histogram_merge): Ditto.
24862         (compute_working_sets): Ditto.
24863         * gcov-io.h (gcov_nonruntime_assert): Define.
24864         (gcov_error): Define for !IN_LIBGCOV
24865
24866 2014-05-22  Richard Biener  <rguenther@suse.de>
24867
24868         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24869         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24870         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24871         and deallocation site.
24872         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24873         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24874         passing through the incoming points-to set.
24875         (handle_lhs_call): Use flags argument instead of recomputing it.
24876         (find_func_aliases_for_call): Call handle_lhs_call with proper
24877         call return flags.
24878
24879 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
24880
24881         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24882         all padding bits in REAL_VALUE_TYPE are cleared.
24883
24884 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24885
24886         Cleanup and improve multipass_dfa_lookahead_guard
24887         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24888         (core2i7_first_cycle_multipass_begin,)
24889         (core2i7_first_cycle_multipass_issue,)
24890         (core2i7_first_cycle_multipass_backtrack): Update signature.
24891         * config/ia64/ia64.c
24892         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24893         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24894         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24895         hook definition.
24896         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24897         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
24898         values.
24899         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24900         return values.
24901         * doc/tm.texi: Regenerate.
24902         * doc/tm.texi.in
24903         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24904         * haifa-sched.c (ready_try): Make signed to allow negative values.
24905         (rebug_ready_list_1): Update.
24906         (choose_ready): Simplify.
24907         (sched_extend_ready_list): Update.
24908
24909 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24910
24911         Remove IA64 speculation tweaking flags
24912         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24913         speculation tuning flags.
24914         (msched-prefer-non-data-spec-insns,)
24915         (msched-prefer-non-control-spec-insns): Obsolete options.
24916         * haifa-sched.c (choose_ready): Remove handling of
24917         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24918         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24919         and PREFER_NON_DATA_SPEC.
24920         * sel-sched.c (process_spec_exprs): Remove handling of
24921         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24922
24923 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24924
24925         Improve scheduling debug output
24926         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24927         (advance_one_cycle): Update.
24928         (schedule_insn, queue_to_ready): Add debug printouts.
24929         (debug_ready_list_1): New static function.
24930         (debug_ready_list): Update.
24931         (max_issue): Add debug printouts.
24932         (dump_insn_stream): New static function.
24933         (schedule_block): Use it.  Also better indent printouts.
24934
24935 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24936
24937         Fix sched_insn debug counter
24938         * haifa-sched.c (schedule_insn): Update.
24939         (struct haifa_saved_data): Add nonscheduled_insns_begin.
24940         (save_backtrack_point, restore_backtrack_point): Update.
24941         (first_nonscheduled_insn): New static function.
24942         (queue_to_ready, choose_ready): Use it.
24943         (schedule_block): Init nonscheduled_insns_begin.
24944         (sched_emit_insn): Update.
24945
24946
24947 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24948
24949         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24950         to GENERAL_REGS.
24951         (aarch64_secondary_reload) : LikeWise.
24952         (aarch64_class_max_nregs) : Remove CORE_REGS.
24953         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24954         (REG_CLASS_NAMES) : Likewise.
24955         (REG_CLASS_CONTENTS) : LikeWise.
24956         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24957
24958 2014-05-21  Guozhi Wei  <carrot@google.com>
24959
24960         PR target/61202
24961         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24962         constraint.
24963         (vqdmulhq_n_s16): Likewise.
24964
24965 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
24966
24967         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24968
24969 2014-05-21  Marek Polacek  <polacek@redhat.com>
24970
24971         PR sanitizer/61272
24972         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24973
24974 2014-05-21  Martin Jambor  <mjambor@suse.cz>
24975
24976         * doc/invoke.texi (Optimize Options): Document parameters
24977         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24978         ipa-cp-array-index-hint-bonus.
24979
24980 2014-05-21  Mark Wielaard  <mjw@redhat.com>
24981
24982         PR debug/16063
24983         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24984         version >= 3 or not strict DWARF.
24985         * langhooks.h (struct lang_hooks_for_types): Add
24986         enum_underlying_base_type.
24987         * langhooks.c (lhd_enum_underlying_base_type): New function.
24988         * gcc/langhooks.h (struct lang_hooks_for_types): Add
24989         enum_underlying_base_type.
24990         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24991         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24992         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24993
24994 2014-05-21  Richard Biener  <rguenther@suse.de>
24995
24996         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24997
24998 2014-05-21  John Marino  <gnugcc@marino.st>
24999
25000         * config.gcc (*-*-dragonfly*): New target.
25001         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
25002         * configure: Regenerate.
25003         * config/dragonfly-stdint.h: New.
25004         * config/dragonfly.h: New.
25005         * config/dragonfly.opt: New.
25006         * config/i386/dragonfly.h: New.
25007         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
25008
25009 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25010
25011         * tree.def (VOID_CST): New.
25012         * tree-core.h (TI_VOID): New.
25013         * tree.h (void_node): New.
25014         * tree.c (tree_node_structure_for_code, tree_code_size)
25015         (iterative_hash_expr): Handle VOID_CST.
25016         (build_common_tree_nodes): Initialize void_node.
25017
25018 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
25019
25020         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
25021         functions.
25022         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
25023
25024         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
25025         more places.
25026
25027         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
25028         flag_reorder_blocks_and_partition.
25029         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
25030
25031 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
25032
25033         PR target/54236
25034         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
25035         constraints.
25036         (*addc_r_t): Add new insn_and_split.
25037
25038 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
25039
25040         PR middle-end/61252
25041         * omp-low.c (handle_simd_reference): New function.
25042         (lower_rec_input_clauses): Use it.  Defer adding reference
25043         initialization even for reduction without placeholder if in simd,
25044         handle it properly later on.
25045
25046 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
25047
25048         PR tree-optimization/60899
25049         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
25050         assume all static symbols will have definition wile parsing and
25051         check the do have definition later in compilation; check that
25052         variable referring symbol will be output before concluding that
25053         reference is safe; be conservative for referring local statics;
25054         be more precise about when comdat is output in other partition.
25055
25056 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
25057
25058         PR bootstrap/60984
25059         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
25060         parameter.
25061         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
25062         (ipa_inline): Loop inline_to_all_callers until no more aliases
25063         are removed.
25064
25065 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
25066
25067         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
25068         set writeonly flag only for vars actually written to.
25069
25070 2014-05-20  Dehao Chen  <dehao@google.com>
25071
25072         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
25073         and callee count to get clone count.
25074         * tree-inline.c (expand_call_inline): Use callee count instead of bb
25075         count in copy_body.
25076
25077 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
25078
25079         PR rtl-optimization/61243
25080         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
25081
25082 2014-05-20  Xinliang David Li  <davidxl@google.com>
25083
25084         * cgraphunit.c (walk_polymorphic_call_targets): Add
25085         dbgcnt and fopt-info support.
25086         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
25087         * ipa-devirt.c (ipa_devirt): Ditto.
25088         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
25089         * ipa.c (walk_polymorphic_call_targets): Ditto.
25090         * gimple-fold.c (fold_gimple_assign): Ditto.
25091         (gimple_fold_call): Ditto.
25092         * dbgcnt.def: New counter.
25093
25094 2014-05-20  DJ Delorie  <dj@redhat.com>
25095
25096         * config/msp430/msp430.md (split): Don't allow subregs when
25097         splitting SImode adds.
25098         (andneghi): Fix subtraction logic.
25099         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
25100
25101 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
25102
25103         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
25104         symbols.
25105         * except.c (switch_to_exception_section, resolve_unique_section,
25106         get_named_text_section, default_function_rodata_section,
25107         align_variable, get_block_for_decl, default_section_type_flags):
25108         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
25109         * symtab.c (symtab_add_to_same_comdat_group,
25110         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
25111         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
25112         Likewise.
25113         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
25114         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
25115         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
25116         (c6x_function_in_section_p): Likewise.
25117         * config/darwin.c (machopic_select_section): Likewise.
25118         * config/arm/arm.c (arm_function_in_section_p): Likewise.
25119         * config/mips/mips.c (mips_function_rodata_section): Likewise.
25120         * config/mep/mep.c (mep_select_section): LIkewise.
25121         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
25122
25123 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
25124
25125         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
25126         EH region of calls to pure functions that can throw an exception.
25127         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
25128         (copy_reference_ops_from_call): Also copy the EH region of the call if
25129         it can throw an exception.
25130
25131 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25132
25133         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
25134         nested VEC_SELECTs that are inverses of each other.
25135
25136 2014-05-20  Richard Biener  <rguenther@suse.de>
25137
25138         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
25139         (extract_and_process_scc_for_name): not here.
25140         (cond_dom_walker::before_dom_children): Only process
25141         stmts that end the BB in interesting ways.
25142         (run_scc_vn): Mark param uses as visited.
25143
25144 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25145
25146         * config/arm/arm.md (arith_shiftsi): Do not predicate for
25147         arm_restrict_it.
25148
25149 2014-05-20  Nick Clifton  <nickc@redhat.com>
25150
25151         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
25152         (msp430_gimplify_va_arg_expr): New function.
25153         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
25154
25155         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
25156         operand 0 in order to prevent confusion about the number of
25157         registers involved.
25158
25159 2014-05-20  Richard Biener  <rguenther@suse.de>
25160
25161         PR tree-optimization/61221
25162         * tree-ssa-pre.c (el_to_update): Remove.
25163         (eliminate_dom_walker::before_dom_children): Handle released
25164         VDEFs by value-numbering them to the associated VUSE.  Update
25165         stmt immediately for substituted call address.
25166         (eliminate): Remove delayed stmt updating code.
25167         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
25168         possibly late re-numbered vuses.
25169         (vn_reference_lookup_2): Adjust.
25170         (vn_reference_lookup_pieces): Likewise.
25171         (vn_reference_lookup): Likewise.
25172
25173 2014-05-20  Richard Biener  <rguenther@suse.de>
25174
25175         * config.gcc: Remove need_64bit_hwint.
25176         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
25177         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
25178         it to be true.
25179         * config.in: Regenerate.
25180         * configure: Likewise.
25181
25182 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
25183
25184         * doc/extend.texi: Create Label Attributes section,
25185         move all label attributes into it and reference it.
25186
25187 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
25188
25189         * arm.c (thumb1_reorg): When scanning backwards skip anything
25190         that's not a proper insn.
25191
25192 2014-05-19  Richard Biener  <rguenther@suse.de>
25193
25194         PR tree-optimization/61221
25195         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25196         Do nothing for unreachable blocks.
25197         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
25198         Improve unreachability detection.
25199
25200 2014-05-19  Richard Biener  <rguenther@suse.de>
25201
25202         PR tree-optimization/61209
25203         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
25204
25205 2014-05-19  Nick Clifton  <nickc@redhat.com>
25206
25207         * except.c (init_eh): Fix computation of builtin setjmp buffer
25208         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
25209
25210 2014-05-19  Richard Biener  <rguenther@suse.de>
25211
25212         PR tree-optimization/61184
25213         * tree-vrp.c (is_negative_overflow_infinity): Use
25214         TREE_OVERFLOW_P and do that check first.
25215         (is_positive_overflow_infinity): Likewise.
25216         (is_overflow_infinity): Likewise.
25217         (vrp_operand_equal_p): Properly treat operands with
25218         differing overflow as not equal.
25219
25220 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
25221
25222         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
25223         shift simplification where it was intended.
25224
25225 2014-05-19  Christian Bruel  <christian.bruel@st.com>
25226
25227         PR target/61195
25228         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
25229
25230 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
25231
25232         PR target/61084
25233         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
25234         than wide_int.
25235
25236 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25237
25238         * reg-notes.def (CROSSING_JUMP): Likewise.
25239         * rtl.h (rtx_def): Update comment for jump flag.
25240         (CROSSING_JUMP_P): Define.
25241         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
25242         of a REG_CROSSING_JUMP note.
25243         * cfghooks.c (tidy_fallthru_edges): Likewise.
25244         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
25245         * emit-rtl.c (try_split): Likewise.
25246         * haifa-sched.c (sched_create_recovery_edges): Likewise.
25247         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
25248         * jump.c (redirect_jump_2): Likewise.
25249         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
25250         (relax_delay_slots): Likewise.
25251         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
25252         (bbit_di): Likewise.
25253         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
25254         * config/sh/sh.md (jump_compact): Likewise.
25255         * bb-reorder.c (rotate_loop): Likewise.
25256         (pass_duplicate_computed_gotos::execute): Likewise.
25257         (add_reg_crossing_jump_notes): Rename to...
25258         (update_crossing_jump_flags): ...this.
25259         (pass_partition_blocks::execute): Update accordingly.
25260
25261 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25262
25263         * tree.h: Remove extraneous template <>.
25264
25265 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25266
25267         * ipa.c (symtab_remove_unreachable_nodes): Remove
25268         symbol from comdat group if its body was eliminated.
25269         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
25270         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
25271         (symtab_unregister_node): ... this one.
25272         (verify_symtab_base): More strict checking of comdats.
25273         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
25274
25275 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25276
25277         * tree-pass.h (make_pass_ipa_comdats): New pass.
25278         * timevar.def (TV_IPA_COMDATS): New timevar.
25279         * passes.def (pass_ipa_comdats): Add.
25280         * Makefile.in (OBJS): Add ipa-comdats.o
25281         * ipa-comdats.c: New file.
25282
25283 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25284
25285         * ipa.c (update_visibility_by_resolution_info): New function.
25286         (function_and_variable_visibility): Use it.
25287
25288 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25289
25290         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
25291         New functions.
25292         (FOR_EACH_DEFINED_SYMBOL): New macro.
25293         (varpool_first_static_initializer, varpool_next_static_initializer,
25294         varpool_first_defined_variable, varpool_next_defined_variable):
25295         Fix comments.
25296         (symtab_in_same_comdat_p): Correctly deal with inline functions.
25297
25298 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25299
25300         * ggc-page.c (ggc_handle_finalizers): Add comment.
25301
25302 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25303
25304         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
25305         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
25306         (ggc_internal_cleared_alloc): Likewise.
25307         * ggc-page.c (finalizer): New class.
25308         (vec_finalizer): Likewise.
25309         (globals::finalizers): New member.
25310         (globals::vec_finalizers): Likewise.
25311         (ggc_internal_alloc): Record the finalizer if any for the block being
25312         allocated.
25313         (ggc_handle_finalizers): New function.
25314         (ggc_collect): Call ggc_handle_finalizers.
25315         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
25316         finalizer.
25317         (ggc_internal_cleared_alloc): Likewise.
25318         (finalize): New function.
25319         (need_finalization_p): Likewise.
25320         (ggc_alloc): Install the type's destructor as the finalizer if it
25321         might do something.
25322         (ggc_cleared_alloc): Likewise.
25323         (ggc_vec_alloc): Likewise.
25324         (ggc_cleared_vec_alloc): Likewise.
25325
25326 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25327
25328         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
25329
25330 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25331
25332         * alias.c (record_alias_subset): Adjust.
25333         * bitmap.c (bitmap_element_allocate): Likewise.
25334         (bitmap_gc_alloc_stat): Likewise.
25335         * cfg.c (init_flow): Likewise.
25336         (alloc_block): Likewise.
25337         (unchecked_make_edge): Likewise.
25338         * cfgloop.c (alloc_loop): Likewise.
25339         (flow_loops_find): Likewise.
25340         (rescan_loop_exit): Likewise.
25341         * cfgrtl.c (init_rtl_bb_info): Likewise.
25342         * cgraph.c (insert_new_cgraph_node_version): Likewise.
25343         (cgraph_allocate_node): Likewise.
25344         (cgraph_create_edge_1): Likewise.
25345         (cgraph_allocate_init_indirect_info): Likewise.
25346         * cgraphclones.c (cgraph_clone_edge): Likewise.
25347         * cgraphunit.c (add_asm_node): Likewise.
25348         (init_lowered_empty_function): Likewise.
25349         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
25350         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25351         (alpha_use_linkage): Likewise.
25352         * config/arc/arc.c (arc_init_machine_status): Likewise.
25353         * config/arm/arm.c (arm_init_machine_status): Likewise.
25354         * config/avr/avr.c (avr_init_machine_status): Likewise.
25355         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25356         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
25357         * config/cris/cris.c (cris_init_machine_status): Likewise.
25358         * config/darwin.c (machopic_indirection_name): Likewise.
25359         (darwin_build_constant_cfstring): Likewise.
25360         (darwin_enter_string_into_cfstring_table): Likewise.
25361         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
25362         * config/frv/frv.c (frv_init_machine_status): Likewise.
25363         * config/i386/i386.c (get_dllimport_decl): Likewise.
25364         (ix86_init_machine_status): Likewise.
25365         (assign_386_stack_local): Likewise.
25366         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25367         (i386_pe_maybe_record_exported_symbol): Likewise.
25368         (i386_pe_record_stub): Likewise.
25369         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25370         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25371         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25372         (m32c_note_pragma_address): Likewise.
25373         * config/mep/mep.c (mep_init_machine_status): Likewise.
25374         (mep_note_pragma_flag): Likewise.
25375         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25376         (mips16_local_alias): Likewise.
25377         (mips_init_machine_status): Likewise.
25378         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25379         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25380         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
25381         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
25382         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
25383         * config/pa/pa.c (pa_init_machine_status): Likewise.
25384         (pa_get_deferred_plabel): Likewise.
25385         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
25386         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25387         (rs6000_init_machine_status): Likewise.
25388         (output_toc): Likewise.
25389         * config/s390/s390.c (s390_init_machine_status): Likewise.
25390         * config/score/score.c (score_output_external): Likewise.
25391         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25392         * config/spu/spu.c (spu_init_machine_status): Likewise.
25393         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
25394         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
25395         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25396         * coverage.c (coverage_end_function): Likewise.
25397         * dbxout.c (dbxout_init): Likewise.
25398         * doc/gty.texi: Don't mention variable_size attribute.
25399         * dwarf2cfi.c (new_cfi): Adjust.
25400         (new_cfi_row): Likewise.
25401         (copy_cfi_row): Likewise.
25402         (create_cie_data): Likewise.
25403         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
25404         (new_loc_descr): Likewise.
25405         (find_AT_string_in_table): Likewise.
25406         (add_addr_table_entry): Likewise.
25407         (new_die): Likewise.
25408         (add_var_loc_to_decl): Likewise.
25409         (clone_die): Likewise.
25410         (clone_as_declaration): Likewise.
25411         (break_out_comdat_types): Likewise.
25412         (new_loc_list): Likewise.
25413         (add_loc_descr_to_each): Likewise.
25414         (add_location_or_const_value_attribute): Likewise.
25415         (add_linkage_name): Likewise.
25416         (lookup_filename): Likewise.
25417         (dwarf2out_var_location): Likewise.
25418         (new_line_info_table): Likewise.
25419         (dwarf2out_init): Likewise.
25420         (mem_loc_descriptor): Likewise.
25421         (loc_descriptor): Likewise.
25422         (add_const_value_attribute): Likewise.
25423         (tree_add_const_value_attribute): Likewise.
25424         (comp_dir_string): Likewise.
25425         (dwarf2out_vms_debug_main_pointer): Likewise.
25426         (string_cst_pool_decl): Likewise.
25427         * emit-rtl.c (set_mem_attrs): Likewise.
25428         (get_reg_attrs): Likewise.
25429         (start_sequence): Likewise.
25430         (init_emit): Likewise.
25431         (init_emit_regs): Likewise.
25432         * except.c (init_eh_for_function): Likewise.
25433         (gen_eh_region): Likewise.
25434         (gen_eh_region_catch): Likewise.
25435         (gen_eh_landing_pad): Likewise.
25436         (add_call_site): Likewise.
25437         * function.c (add_frame_space): Likewise.
25438         (insert_temp_slot_address): Likewise.
25439         (assign_stack_temp_for_type): Likewise.
25440         (get_hard_reg_initial_val): Likewise.
25441         (allocate_struct_function): Likewise.
25442         (prepare_function_start): Likewise.
25443         (types_used_by_var_decl_insert): Likewise.
25444         * gengtype.c (variable_size_p): Remove function.
25445         (enum alloc_quantity): Remove enum.
25446         (write_typed_alloc_def): Remove function.
25447         (write_typed_struct_alloc_def): Likewise.
25448         (write_typed_typedef_alloc_def): Likewise.
25449         (write_typed_alloc_defns): Likewise.
25450         (main): Adjust.
25451         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
25452         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
25453         * ggc.h (ggc_alloc): new function.
25454         (ggc_cleared_alloc): Likewise.
25455         (ggc_vec_alloc): Template on type of vector element, and remove
25456         element size argument.
25457         (ggc_cleared_vec_alloc): Likewise.
25458         * gimple.c (gimple_build_omp_for): Adjust.
25459         (gimple_copy): Likewise.
25460         * ipa-cp.c (get_replacement_map): Likewise.
25461         (find_aggregate_values_for_callers_subset): Likewise.
25462         (known_aggs_to_agg_replacement_list): Likewise.
25463         * ipa-devirt.c (get_odr_type): Likewise.
25464         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
25465         (read_agg_replacement_chain): Likewise.
25466         * loop-iv.c (get_simple_loop_desc): Likewise.
25467         * lto-cgraph.c (input_node_opt_summary): Likewise.
25468         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25469         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25470         (input_eh_region): Likewise.
25471         (input_eh_lp): Likewise.
25472         (input_cfg): Likewise.
25473         * optabs.c (set_optab_libfunc): Likewise.
25474         (init_tree_optimization_optabs): Likewise.
25475         (set_conv_libfunc): Likewise.
25476         * passes.c (do_per_function_toporder): Likewise.
25477         * rtl.h: Don't use variable_size gty attribute.
25478         * sese.c (if_region_set_false_region): Adjust.
25479         * stringpool.c (gt_pch_save_stringpool): Likewise.
25480         * target-globals.c (save_target_globals): Likewise.
25481         * toplev.c (general_init): Likewise.
25482         * trans-mem.c (record_tm_replacement): Likewise.
25483         (split_bb_make_tm_edge): Likewise.
25484         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25485         * tree-data-ref.h (lambda_vector_new): Likewise.
25486         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25487         * tree-iterator.c (tsi_link_before): Likewise.
25488         (tsi_link_after): Likewise.
25489         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25490         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25491         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25492         * tree-ssa-operands.h: Don't use variable_size gty attribute.
25493         * tree-ssa.c (init_tree_ssa): Adjust.
25494         * tree-ssanames.c (set_range_info): Likewise.
25495         (get_ptr_info): Likewise.
25496         (duplicate_ssa_name_ptr_info): Likewise.
25497         (duplicate_ssa_name_range_info): Likewise.
25498         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
25499         (unpack_ts_fixed_cst_value_fields): Likewise.
25500         * tree.c (build_fixed): Likewise.
25501         (build_real): Likewise.
25502         (build_string): Likewise.
25503         (decl_priority_info): Likewise.
25504         (decl_debug_expr_insert): Likewise.
25505         (decl_value_expr_insert): Likewise.
25506         (decl_debug_args_insert): Likewise.
25507         (type_hash_add): Likewise.
25508         (build_omp_clause): Likewise.
25509         * ubsan.c (decl_for_type_insert): Likewise.
25510         * varasm.c (get_unnamed_section): Likewise.
25511         (get_noswitch_section): Likewise.
25512         (get_section): Likewise.
25513         (get_block_for_section): Likewise.
25514         (create_block_symbol): Likewise.
25515         (build_constant_desc): Likewise.
25516         (create_constant_pool): Likewise.
25517         (force_const_mem): Likewise.
25518         (record_tm_clone_pair): Likewise.
25519         * varpool.c (varpool_create_empty_node): Likewise.
25520
25521 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25522
25523         * dwarf2out.c (tree_add_const_value_attribute): Call
25524         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
25525         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
25526         instead of ggc_internal_<x>alloc_stat.
25527         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
25528         (ggc_realloc): Likewise.
25529         * ggc-none.c (ggc_internal_alloc): Likewise.
25530         (ggc_internal_cleared_alloc): Likewise.
25531         * ggc-page.c: Likewise.
25532         * ggc.h (ggc_internal_alloc_stat): Likewise.
25533         (ggc_internal_alloc): Remove macro.
25534         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
25535         (ggc_internal_cleared_alloc): Remove macro.
25536         (GGC_RESIZEVEC): Adjust.
25537         (ggc_resizevar): Remove macro.
25538         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
25539         (ggc_internal_cleared_vec_alloc_stat): Likewise.
25540         (ggc_internal_vec_cleared_alloc): Remove macro.
25541         (ggc_alloc_atomic_stat): Drop _stat suffix.
25542         (ggc_alloc_atomic): Remove macro.
25543         (ggc_alloc_cleared_atomic): Remove macro.
25544         (ggc_alloc_string_stat): Drop _stat suffix.
25545         (ggc_alloc_string): Remove macro.
25546         (ggc_alloc_rtx_def_stat): Adjust.
25547         (ggc_alloc_tree_node_stat): Likewise.
25548         (ggc_alloc_cleared_tree_node_stat): Likewise.
25549         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
25550         (ggc_alloc_cleared_simd_clone_stat): Likewise.
25551         * gimple.c (gimple_build_omp_for): Likewise.
25552         (gimple_copy): Likewise.
25553         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
25554         * toplev.c (realloc_for_line_map): Adjust.
25555         * tree-data-ref.h (lambda_vector_new): Likewise.
25556         * tree-phinodes.c (allocate_phi_node): Likewise.
25557         * tree.c (grow_tree_vec_stat): Likewise.
25558         * vec.h (va_gc::reserve): Adjust.
25559
25560 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
25561
25562         * config/microblaze/microblaze.c (break_handler): New Declaration.
25563         (microblaze_break_function_p,microblaze_is_break_handler): New.
25564         (compute_frame_size): Use microblaze_break_function_p.
25565         Add the test of break_handler.
25566         (microblaze_function_prologue) : Add the test of variable
25567         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
25568         (microblaze_function_epilogue) : Add the test of break_handler.
25569         (microblaze_globalize_label) : Add the test of break_handler.
25570         Check the name by BREAK_HANDLER_NAME.
25571
25572         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
25573
25574         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
25575         microblaze_is_break_handler test.
25576         (call_internal1,call_value_intern): Use microblaze_break_function_p.
25577         Use SYMBOL_REF_DECL.
25578
25579         * config/microblaze/microblaze-protos.h
25580         (microblaze_break_function_p,microblaze_is_break_handler):
25581         New Declaration.
25582
25583         * doc/extend.texi (MicroBlaze break_handler Functions): Document
25584         new MicroBlaze break_handler functions.
25585
25586 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25587
25588         * doc/extend.texi (Size of an asm): Move node text according
25589         to its @menu entry position.
25590
25591 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
25592
25593         PR tree-optimization/61140
25594         PR tree-optimization/61150
25595         PR tree-optimization/61197
25596         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
25597
25598 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25599
25600         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
25601
25602 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
25603
25604         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
25605         __SIZEOF_INT128__ is defined.
25606
25607 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25608
25609         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
25610         (rs6000_delegitimize_address): Use it.
25611
25612 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25613
25614         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
25615         inplace argument.  Store the new address in the original MEM when true.
25616         * emit-rtl.c (change_address_1): Likewise.
25617         (adjust_address_1, adjust_automodify_address_1, offset_address):
25618         Update accordingly.
25619         * rtl.h (plus_constant): Add an inplace argument.
25620         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
25621         when true.  Avoid generating (plus X (const_int 0)).
25622         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
25623         in-place.  Pass true to plus_constant.
25624         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
25625
25626 2014-05-16  Dehao Chen  <dehao@google.com>
25627
25628         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
25629
25630 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25631
25632         PR target/54089
25633         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
25634         patterns.
25635         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
25636
25637 2014-05-16  Dehao Chen  <dehao@google.com>
25638
25639         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
25640         optimize_function_for_size_p.
25641         * regs.h (REG_FREQ_FROM_BB): Likewise.
25642
25643 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25644
25645         PR target/51244
25646         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
25647         negt_reg_operand cases.
25648         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
25649         predicate.
25650         * config/sh/predicates.md (cbranch_treg_value): Simplify.
25651
25652 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25653
25654         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25655         target variants.
25656
25657 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
25658
25659         Revert:
25660         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25661
25662         * tree-cfg.c (dump_function_to_file): Dump the return type of
25663         functions, in a line to itself before the function body, mimicking
25664         the layout of a C function.
25665
25666 2014-05-16  Dehao Chen  <dehao@google.com>
25667
25668         * cfghooks.c (make_forwarder_block): Use direct computation to
25669         get fall-through edge's count and frequency.
25670
25671 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
25672
25673         * config/arc/arc.c (arc_init): Fix typo in error message.
25674         * config/i386/i386.c (ix86_expand_builtin): Likewise.
25675         (split_stack_prologue_scratch_regno): Likewise.
25676         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25677         word from error message.
25678
25679 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25680
25681         * ira-costs.c: Fix typo in comment.
25682
25683 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
25684
25685         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25686
25687 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
25688
25689         * varpool.c (dump_varpool_node): Dump write-only flag.
25690         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25691         write-only flag.
25692         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25693         write-only variables.
25694         * ipa.c (process_references): New function.
25695         (set_readonly_bit): New function.
25696         (set_writeonly_bit): New function.
25697         (clear_addressable_bit): New function.
25698         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25699         fix handling of aliases.
25700         * cgraph.h (struct varpool_node): Add writeonly flag.
25701
25702 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
25703
25704         PR rtl-optimization/60969
25705         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25706         Calculate costs for this case.
25707
25708 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25709
25710         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25711         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25712
25713 2014-05-16  Richard Biener  <rguenther@suse.de>
25714
25715         PR tree-optimization/61194
25716         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25717         bool patterns ending in a COND_EXPR.
25718
25719 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25720
25721         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25722
25723 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25724
25725         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25726         where we were unable to cost an RTX.
25727
25728 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25729
25730         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25731         HIGH, LO_SUM.
25732
25733 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25734             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25735
25736         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25737
25738 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25739             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25740
25741         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25742         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25743
25744 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25745             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25746
25747         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25748         operators.
25749
25750 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25751             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25752
25753         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25754         DIV/MOD.
25755
25756 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25757             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25758
25759         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25760         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25761
25762 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25763             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25764
25765         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25766         rotates and shifts.
25767
25768 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25769             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25770
25771         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25772         ZERO_EXTEND and SIGN_EXTEND better.
25773
25774 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25775             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25776
25777         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25778         logical operations.
25779
25780 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25781             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25782
25783         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25784         costs when costing loads and stores to memory.
25785
25786 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25787             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
25788
25789         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25790         for SET RTX.
25791
25792 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25793
25794         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25795
25796 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25797             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25798
25799         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25800         to...
25801         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25802         well formed.
25803         (aarch64_rtx_mult_cost): New.
25804         (aarch64_rtx_costs): Use it, refactor as appropriate.
25805
25806 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25807             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25808
25809         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25810         emit instructions, return number of instructions which would
25811         be emitted.
25812         (aarch64_add_constant): Update call to aarch64_build_constant.
25813         (aarch64_output_mi_thunk): Likewise.
25814         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25815         a CONST_DOUBLE.
25816
25817 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25818
25819         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25820         (TARGET_RTX_COSTS): Call it.
25821
25822 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25823
25824         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25825         (cortexa57_vector_cost): Likewise.
25826         (cortexa57_tunings): Use them.
25827
25828 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25829
25830         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25831         (cpu_addrcost_table): Use it.
25832         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25833         (aarch64_address_cost): Rewrite using aarch64_classify_address,
25834         move it.
25835
25836 2014-05-16  Richard Biener  <rguenther@suse.de>
25837
25838         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25839         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25840         (visit_phi): Ignore edges marked as not executable.
25841         (class cond_dom_walker): New.
25842         (cond_dom_walker::before_dom_children): Value-number
25843         control statements and mark successor edges as not
25844         executable if possible.
25845         (run_scc_vn): First walk all control statements in
25846         dominator order, marking edges as not executable.
25847         * tree-inline.c (copy_edges_for_bb): Be not confused
25848         about random edge flags.
25849
25850 2014-05-16  Richard Biener  <rguenther@suse.de>
25851
25852         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25853
25854 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
25855
25856         PR target/61193
25857         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25858         (__TM_simple_begin): Use it.
25859         (__TM_begin): Likewise.
25860
25861 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25862
25863         PR ipa/61085
25864         * ipa-prop.c (update_indirect_edges_after_inlining): Check
25865         type_preserved flag when the indirect edge is polymorphic.
25866
25867 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25868
25869         PR tree-optimization/61090
25870         * tree-sra.c (sra_modify_expr): Pass the current gsi to
25871         build_ref_for_model.
25872
25873 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25874
25875         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25876         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25877
25878 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
25879
25880         PR tree-optimization/61158
25881         * fold-const.c (fold_binary_loc): If X is zero-extended and
25882         shiftc >= prec, make sure zerobits is all ones instead of
25883         invoking undefined behavior.
25884
25885 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25886
25887         * regcprop.h: New file.
25888         * regcprop.c (skip_debug_insn_p): New decl.
25889         (replace_oldest_value_reg): Check skip_debug_insn_p.
25890         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25891         * shrink-wrap.c: Include regcprop.h.
25892         (prepare_shrink_wrap): Call
25893         copyprop_hardreg_forward_bb_without_debug_insn.
25894
25895 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25896
25897         * shrink-wrap.h: Update comment.
25898         * shrink-wrap.c: Update comment.
25899         (next_block_for_reg): Rename to live_edge_for_reg.
25900         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25901         (move_insn_for_shrink_wrap): Split live_edge.
25902         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25903
25904 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25905
25906         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25907         Delete.
25908         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25909         * config/sparc/sparc.md (fptype_ut699): New attribute.
25910         (in_branch_delay): Return false if -mfix-ut699 is specified and
25911         fptype_ut699 is set to single.
25912         (truncdfsf2): Add fptype_ut699 attribute.
25913         (fix_truncdfsi2): Likewise.
25914         (floatsisf2): Change fptype attribute.
25915         (fix_truncsfsi2): Likewise.
25916         (negtf2_notv9): Delete.
25917         (negtf2_v9): Likewise.
25918         (negtf2_hq): New instruction.
25919         (negtf2): New instruction and splitter.
25920         (negdf2_notv9): Rewrite.
25921         (abstf2_notv9): Delete.
25922         (abstf2_hq_v9): Likewise.
25923         (abstf2_v9): Likewise.
25924         (abstf2_hq): New instruction.
25925         (abstf2): New instruction and splitter.
25926         (absdf2_notv9): Rewrite.
25927
25928 2014-05-14  Cary Coutant  <ccoutant@google.com>
25929
25930         PR debug/61013
25931         * opts.c (common_handle_option): Don't special-case "-g".
25932         (set_debug_level): Default to at least level 2 with "-g".
25933
25934 2014-05-14  DJ Delorie  <dj@redhat.com>
25935
25936         * config/msp430/msp430.c (msp430_builtin): Add
25937         MSP430_BUILTIN_DELAY_CYCLES.
25938         (msp430_init_builtins): Register void __delay_cycles(long long).
25939         (msp430_builtin_decl): Add it.
25940         (cg_magic_constant): New.
25941         (msp430_expand_delay_cycles): New.
25942         (msp430_expand_builtin): Call it.
25943         (msp430_print_operand_raw): Change integer printing from "int" to
25944         HOST_WIDE_INT.
25945         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25946         (delay_cycles_start): New.
25947         (delay_cycles_end): New.
25948         (delay_cycles_32): New.
25949         (delay_cycles_32x): New.
25950         (delay_cycles_16): New.
25951         (delay_cycles_16x): New.
25952         (delay_cycles_2): New.
25953         (delay_cycles_1): New.
25954         * doc/extend.texi: Document __delay_cycles().
25955
25956 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
25957
25958         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25959         length attribute computation.
25960
25961 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
25962
25963         PR debug/61188
25964         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25965
25966 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
25967
25968         PR target/61084
25969         * config/sparc/sparc.md: Fix types of low and high in DI constant
25970         splitter.  Use gen_int_mode in some other splitters.
25971
25972 2014-05-14  Martin Jambor  <mjambor@suse.cz>
25973
25974         PR ipa/60897
25975         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25976
25977 2014-05-14  James Norris  <jnorris@codesourcery.com>
25978
25979         * omp-low.c (expand_parallel_call): Remove shadow variable.
25980         (expand_omp_taskreg): Likewise.
25981
25982 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
25983
25984         * common/config/i386/i386-common.c
25985         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25986         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25987         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25988         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25989         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25990         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25991         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25992         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25993         xsavecintrin.h, xsavesintrin.h.
25994         (x86_64-*-*): Ditto.
25995         * config/i386/clflushoptintrin.h: New.
25996         * config/i386/xsavecintrin.h: Ditto.
25997         * config/i386/xsavesintrin.h: Ditto.
25998         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25999         (bit_XSAVES): Ditto.
26000         (bit_XSAVES): Ditto.
26001         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
26002         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
26003         -mno-clflushopt.
26004         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26005         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
26006         OPTION_MASK_ISA_XSAVES.
26007         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
26008         -mxsavec, -mxsaves.
26009         (PTA_CLFLUSHOPT) Define.
26010         (PTA_XSAVEC): Ditto.
26011         (PTA_XSAVES): Ditto.
26012         (ix86_option_override_internal): Handle new options.
26013         (ix86_valid_target_attribute_inner_p): Ditto.
26014         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
26015         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
26016         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
26017         (bdesc_special_args): Add __builtin_ia32_xsaves,
26018         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
26019         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
26020         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
26021         (ix86_expand_builtin): Handle new builtins.
26022         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
26023         (TARGET_CLFLUSHOPT_P): Ditto.
26024         (TARGET_XSAVEC): Ditto.
26025         (TARGET_XSAVEC_P): Ditto.
26026         (TARGET_XSAVES): Ditto.
26027         (TARGET_XSAVES_P): Ditto.
26028         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
26029         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
26030         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
26031         (ANY_XRSTOR): New.
26032         (ANY_XRSTOR64): Ditto.
26033         (xrstor): Ditto.
26034         (xrstor): Change into <xrstor>.
26035         (xrstor_rex64): Change into <xrstor>_rex64.
26036         (xrstor64): Change into <xrstor>64
26037         (clflushopt): New.
26038         * config/i386/i386.opt (mclflushopt): New.
26039         (mxsavec): Ditto.
26040         (mxsaves): Ditto.
26041         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
26042         xsavecintrin.h.
26043         * doc/invoke.texi: Document new options.
26044
26045 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
26046
26047         PR rtl-optimization/60866
26048         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
26049         Default it to -1.  Pass it down to init_simplejump_data.
26050         (init_simplejump_data): New parameter old_seqno.  Pass it down
26051         to get_seqno_for_a_jump.
26052         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
26053         initializing new jump seqno as a last resort.  Add comment.
26054         (sel_redirect_edge_and_branch): Save old seqno of the conditional
26055         jump and pass it down to sel_init_new_insn.
26056         (sel_redirect_edge_and_branch_force): Likewise.
26057
26058 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
26059
26060         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
26061         shifted values to avoid build warning.
26062
26063 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26064
26065         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
26066         * cfgrtl.c (rtl_merge_blocks): Fix comment.
26067         (cfg_layout_merge_blocks): Likewise.
26068         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
26069
26070 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
26071
26072         PR rtl-optimization/60901
26073         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
26074         bb predecessor belongs to the same scheduling region.  Adjust comment.
26075
26076 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
26077
26078         * doc/sourcebuild.texi: (dfp_hw): Document.
26079         (p8vector_hw): Likewise.
26080         (powerpc_eabi_ok): Likewise.
26081         (powerpc_elfv2): Likewise.
26082         (powerpc_htm_ok): Likewise.
26083         (ppc_recip_hw): Likewise.
26084         (vsx_hw): Likewise.
26085
26086 2014-05-13  Cary Coutant  <ccoutant@google.com>
26087
26088         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
26089
26090 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
26091
26092         * gengtype-parse.c (require3): Eliminate in favor of...
26093         (require4): New.
26094         (require_template_declaration): Update to support optional single *
26095         on a type.
26096
26097         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
26098         (create_user_defined_type): Handle a single level of explicit
26099         pointerness within template arguments.
26100         (struct write_types_data): Add field "kind".
26101         (filter_type_name): Handle "*" character.
26102         (write_user_func_for_structure_ptr): Require a write_types_data
26103         rather than just a prefix string, so that we can look up the kind
26104         of the wtd and use it as an index into wrote_user_func_for_ptr,
26105         ensuring that such functions are written at most once.  Support
26106         subclasses by invoking the marking function of the ultimate base class.
26107         (write_user_func_for_structure_body): Require a write_types_data
26108         rather than just a prefix string, so that we can pass this to
26109         write_user_func_for_structure_ptr.
26110         (write_func_for_structure): Likewise.
26111         (ggc_wtd): Add initializer of new "kind" field.
26112         (pch_wtd): Likewise.
26113
26114         * gengtype.h (enum write_types_kinds): New.
26115         (struct type): Add field wrote_user_func_for_ptr to the "s"
26116         union member.
26117
26118 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
26119
26120         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
26121         instead of const_binop.
26122         (fold_binary_loc): Likewise.
26123
26124 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
26125
26126         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
26127         calculation to match get_ref_base_and_extent.
26128
26129 2014-05-13  Catherine Moore  <clm@codesourcery.com>
26130             Sandra Loosemore  <sandra@codesourcery.com>
26131
26132         * configure.ac: Fix assembly for explicit JALR relocation check.
26133         * configure: Regenerate.
26134
26135 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26136
26137         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
26138         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
26139         Remove associated type declarations and initialisations.
26140         (arm_expand_neon_builtin): Likewise.
26141         (neon_emit_pair_result_insn): Delete.
26142         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
26143         * config/arm/neon.md (neon_vtrn<mode>): Delete.
26144         (neon_vzip<mode>): Likewise.
26145         (neon_vuzp<mode>): Likewise.
26146
26147 2014-05-13  Richard Biener  <rguenther@suse.de>
26148
26149         PR ipa/60973
26150         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
26151         it needs revisiting whether the call still may be tail-called.
26152
26153 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26154
26155         * rtl.def (SYMBOL_REF): Remove middle "0" field.
26156         * rtl.h (block_symbol): Reduce number of fields to 2.
26157         (rtx_def): Add u2.symbol_ref_flags.
26158         (SYMBOL_REF_FLAGS): Use it.
26159         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
26160         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
26161         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
26162         Lower index of SYMBOL_REF_DATA.
26163         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
26164         Print SYMBOL_REF_FLAGS at the same time.
26165         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
26166
26167 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26168
26169         * rtl.def (VAR_LOCATION): Remove "i" field.
26170         * rtl.h (rtx_def): Add u2.var_location_status.
26171         (PAT_VAR_LOCATION_STATUS): Use it.
26172         (gen_rtx_VAR_LOCATION): Declare.
26173         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
26174         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
26175         * var-tracking.c (emit_note_insn_var_location): Remove casts.
26176
26177 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26178
26179         * rtl.def (scratch): Fix outdated comment and remove "0" field.
26180         * gengtype.c (adjust_field_rtx_def): Update accordingly.
26181
26182 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26183
26184         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
26185         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
26186         * rtl.h (rtx_def): Add insn_uid to u2 field.
26187         (RTX_FLAG_CHECK8): Delete in favor of...
26188         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
26189         (INSN_DELETED_P): Update accordingly.
26190         (INSN_UID): Use u2.insn_uid.
26191         (INSN_CHAIN_CODE_P): Define.
26192         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
26193         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
26194         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
26195         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
26196         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
26197         indices accordingly.
26198         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
26199         Update indices for insn-chain rtxes.
26200         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
26201         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
26202         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
26203         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
26204         * combine.c (try_combine): Likewise.
26205         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26206
26207 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26208
26209         * rtl.def (REG): Remove middle field.
26210         * rtl.h (rtx_def): Add orignal_regno to u2.
26211         (ORIGINAL_REGNO): Use it instead of field 1.
26212         (REG_ATTRS): Lower field index accordingly.
26213         * gengtype.c (adjust_field_rtx_def): Remove handling of
26214         ORIGINAL_REGNO.  Move REG_ATTRS index down.
26215         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
26216         code that prints the REGNO.
26217
26218 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26219
26220         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
26221         GENERATOR_FILE.
26222
26223 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26224
26225         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
26226
26227 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
26228
26229         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
26230         (alloc_iv): Lower base expressions containing ADDR_EXPR.
26231
26232 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
26233
26234         * config/aarch64/aarch64-protos.h
26235         (aarch64_hard_regno_caller_save_mode): New prototype.
26236         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
26237         New function.
26238         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
26239
26240 2014-05-13  Christian Bruel  <christian.bruel@st.com>
26241
26242         * target.def (mode_switching): New hook vector.
26243         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
26244         (mode_exit, modepriority_to_mode): Likewise.
26245         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
26246         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26247         * target.h: Include tm.h and hard-reg-set.h.
26248         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
26249         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
26250         * doc/tm.texi Regenerate.
26251         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26252         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26253         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
26254         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
26255         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26256         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26257         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
26258         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
26259         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
26260         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
26261         (ix86_emit_mode_set): Hookify.
26262         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
26263         Delete.
26264         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26265         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
26266         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
26267         (epiphany_mode_priority_to_mode): Remove declaration.
26268         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
26269         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
26270         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
26271         Likewise.
26272         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
26273         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
26274         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
26275
26276 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
26277
26278         PR target/61060
26279         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
26280         is const0_rtx, return immediately.  Don't test count == 0 when
26281         it is always true.
26282
26283 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26284
26285         * Makefile.in: add shrink-wrap.o.
26286         * config/i386/i386.c: include "shrink-wrap.h"
26287         * function.c: Likewise.
26288         (requires_stack_frame_p, next_block_for_reg,
26289         move_insn_for_shrink_wrap, prepare_shrink_wrap,
26290         dup_block_and_redirect): Move to shrink-wrap.c
26291         (thread_prologue_and_epilogue_insns): Extract three code segments
26292         as functions in shrink-wrap.c
26293         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
26294         shrink-wrap.h
26295         * shrink-wrap.c: New file.
26296         * shrink-wrap.h: New file.
26297
26298 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26299
26300         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
26301         reference to Solaris.
26302
26303 2014-05-12  Mike Stump  <mikestump@comcast.net>
26304
26305         PR other/31778
26306         * genattrtab.c (filename): Add.
26307         (convert_set_attr_alternative): Improve error message.
26308         (check_defs): Restore read_md_filename for error messages.
26309         (gen_insn): Save filename.
26310
26311 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
26312
26313         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
26314         -fno-local-ivars and -fivar-visibility.
26315         * c-family/c.opt: Make -Wshadow also implicitly enable
26316         -Wshadow-ivar.
26317
26318 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26319
26320         * doc/tm.texi: Remove reference to deleted macro.
26321         * doc/tm.texi.in: Likewise.
26322
26323 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26324
26325         PR target/60991
26326         * config/avr/avr.c (avr_out_store_psi): Use correct constant
26327         to restore Y.
26328
26329 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
26330
26331         PR libgcc/61152
26332         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
26333         * config/arm/aout.h (License): Same.
26334         * config/arm/bpabi.h (License): Same.
26335         * config/arm/elf.h (License): Same.
26336         * config/arm/linux-elf.h (License): Same.
26337         * config/arm/linux-gas.h (License): Same.
26338         * config/arm/netbsd-elf.h (License): Same.
26339         * config/arm/uclinux-eabi.h (License): Same.
26340         * config/arm/uclinux-elf.h (License): Same.
26341         * config/arm/vxworks.h (License): Same.
26342
26343 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
26344
26345         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
26346         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
26347         number of operands to 3.
26348         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
26349         * tree-nested.c (convert_nonlocal_omp_clauses,
26350         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
26351         * gimplify.c (gimplify_scan_omp_clauses): Handle
26352         OMP_CLAUSE_LINEAR_STMT.
26353         * omp-low.c (lower_rec_input_clauses): Fix typo.
26354         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
26355         cast between Fortran boolean_type_node and C _Bool if
26356         needed.
26357
26358 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
26359
26360         PR tree-optimization/61136
26361         * wide-int.h (multiple_of_p): Define a version that doesn't return
26362         the quotient.
26363         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
26364         integer_zerop/const_binop pair.
26365         (multiple_of_p): Likewise, converting both operands to widest_int
26366         precision.
26367
26368 2014-05-09  Teresa Johnson  <tejohnson@google.com>
26369
26370         * cgraphunit.c (analyze_functions): Use correct dump file.
26371
26372 2014-05-09  Florian Weimer  <fweimer@redhat.com>
26373
26374         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
26375         expand_used_vars.
26376         (stack_protect_return_slot_p): New function.
26377         (expand_used_vars): Call stack_protect_decl_p and
26378         stack_protect_return_slot_p for -fstack-protector-strong.
26379
26380 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
26381         Andrew Haley <aph@redhat.com>
26382         Richard Sandiford <rdsandiford@googlemail.com>
26383
26384         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
26385         pages.
26386
26387 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
26388
26389         PR middle-end/61111
26390         * fold-const.c (fold_binary_loc): Changed width of mask.
26391
26392 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26393
26394         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
26395         unsigned int initializers for regno_in, regno_out.
26396
26397 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26398
26399         PR target/61055
26400         * config/avr/avr.md (cc): Add new attribute set_vzn.
26401         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
26402         Set cc insn attribute to set_vzn instead of set_zn for alternatives
26403         with INC, DEC or NEG.
26404         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
26405         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
26406         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
26407
26408 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26409
26410         Revert:
26411         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26412
26413         * wide-int.cc (UTItype): Define.
26414         (UDWtype): Define for appropriate W_TYPE_SIZE.
26415
26416 2014-05-09  Richard Biener  <rguenther@suse.de>
26417
26418         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
26419         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
26420         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
26421         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
26422         ssa_propagate): Adjust.
26423
26424 2014-05-08  Jeff Law  <law@redhat.com>
26425
26426         PR tree-optimization/61009
26427         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
26428         tri-state rather than a boolean.  When a block is too big to
26429         thread through, inform caller via negative return value.
26430         (thread_across_edge): If a block was too big for normal threading,
26431         then it's too big for a joiner too, so remove temporary equivalences
26432         and return immediately.
26433
26434 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26435             Matthias Klose  <doko@ubuntu.com>
26436
26437         PR driver/61106
26438         * optc-gen.awk: Fix option handling for -Wunused-parameter.
26439
26440 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26441
26442         PR target/59952
26443         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
26444
26445 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26446
26447         PR target/61092
26448         * config/alpha/alpha.c: Include gimple-iterator.h.
26449         (alpha_gimple_fold_builtin): New function.  Move
26450         ALPHA_BUILTIN_UMULH folding from ...
26451         (alpha_fold_builtin): ... here.
26452         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
26453
26454 2014-05-08  Wei Mi  <wmi@google.com>
26455
26456         PR target/58066
26457         * config/i386/i386.c (ix86_compute_frame_layout): Update
26458         preferred_stack_boundary for call, expanded from tls descriptor.
26459         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
26460         to depend on SP register.
26461         (*tls_local_dynamic_base_32_gnu): Ditto.
26462         (*tls_local_dynamic_32_once): Ditto.
26463         (tls_global_dynamic_64_<mode>): Set
26464         ix86_tls_descriptor_calls_expanded_in_cfun.
26465         (tls_local_dynamic_base_64_<mode>): Ditto.
26466         (tls_global_dynamic_32): Set
26467         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
26468         to depend on SP register.
26469         (tls_local_dynamic_base_32): Ditto.
26470
26471 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26472
26473         * config/arm/arm_neon.h: Update comment.
26474         * config/arm/neon-docgen.ml: Delete.
26475         * config/arm/neon-gen.ml: Delete.
26476         * doc/arm-neon-intrinsics.texi: Update comment.
26477
26478 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26479
26480         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
26481         and v4sf versions.
26482         (vand, vorr, veor, vorn, vbic): Remove.
26483         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
26484         iterator.
26485         (neon_vsub_unspec): Likewise.
26486         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
26487
26488 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26489
26490         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
26491         (vadd_s16): Likewise.
26492         (vadd_s32): Likewise.
26493         (vadd_f32): Likewise.
26494         (vadd_u8): Likewise.
26495         (vadd_u16): Likewise.
26496         (vadd_u32): Likewise.
26497         (vadd_s64): Likewise.
26498         (vadd_u64): Likewise.
26499         (vaddq_s8): Likewise.
26500         (vaddq_s16): Likewise.
26501         (vaddq_s32): Likewise.
26502         (vaddq_s64): Likewise.
26503         (vaddq_f32): Likewise.
26504         (vaddq_u8): Likewise.
26505         (vaddq_u16): Likewise.
26506         (vaddq_u32): Likewise.
26507         (vaddq_u64): Likewise.
26508         (vmul_s8): Likewise.
26509         (vmul_s16): Likewise.
26510         (vmul_s32): Likewise.
26511         (vmul_f32): Likewise.
26512         (vmul_u8): Likewise.
26513         (vmul_u16): Likewise.
26514         (vmul_u32): Likewise.
26515         (vmul_p8): Likewise.
26516         (vmulq_s8): Likewise.
26517         (vmulq_s16): Likewise.
26518         (vmulq_s32): Likewise.
26519         (vmulq_f32): Likewise.
26520         (vmulq_u8): Likewise.
26521         (vmulq_u16): Likewise.
26522         (vmulq_u32): Likewise.
26523         (vsub_s8): Likewise.
26524         (vsub_s16): Likewise.
26525         (vsub_s32): Likewise.
26526         (vsub_f32): Likewise.
26527         (vsub_u8): Likewise.
26528         (vsub_u16): Likewise.
26529         (vsub_u32): Likewise.
26530         (vsub_s64): Likewise.
26531         (vsub_u64): Likewise.
26532         (vsubq_s8): Likewise.
26533         (vsubq_s16): Likewise.
26534         (vsubq_s32): Likewise.
26535         (vsubq_s64): Likewise.
26536         (vsubq_f32): Likewise.
26537         (vsubq_u8): Likewise.
26538         (vsubq_u16): Likewise.
26539         (vsubq_u32): Likewise.
26540         (vsubq_u64): Likewise.
26541         (vand_s8): Likewise.
26542         (vand_s16): Likewise.
26543         (vand_s32): Likewise.
26544         (vand_u8): Likewise.
26545         (vand_u16): Likewise.
26546         (vand_u32): Likewise.
26547         (vand_s64): Likewise.
26548         (vand_u64): Likewise.
26549         (vandq_s8): Likewise.
26550         (vandq_s16): Likewise.
26551         (vandq_s32): Likewise.
26552         (vandq_s64): Likewise.
26553         (vandq_u8): Likewise.
26554         (vandq_u16): Likewise.
26555         (vandq_u32): Likewise.
26556         (vandq_u64): Likewise.
26557         (vorr_s8): Likewise.
26558         (vorr_s16): Likewise.
26559         (vorr_s32): Likewise.
26560         (vorr_u8): Likewise.
26561         (vorr_u16): Likewise.
26562         (vorr_u32): Likewise.
26563         (vorr_s64): Likewise.
26564         (vorr_u64): Likewise.
26565         (vorrq_s8): Likewise.
26566         (vorrq_s16): Likewise.
26567         (vorrq_s32): Likewise.
26568         (vorrq_s64): Likewise.
26569         (vorrq_u8): Likewise.
26570         (vorrq_u16): Likewise.
26571         (vorrq_u32): Likewise.
26572         (vorrq_u64): Likewise.
26573         (veor_s8): Likewise.
26574         (veor_s16): Likewise.
26575         (veor_s32): Likewise.
26576         (veor_u8): Likewise.
26577         (veor_u16): Likewise.
26578         (veor_u32): Likewise.
26579         (veor_s64): Likewise.
26580         (veor_u64): Likewise.
26581         (veorq_s8): Likewise.
26582         (veorq_s16): Likewise.
26583         (veorq_s32): Likewise.
26584         (veorq_s64): Likewise.
26585         (veorq_u8): Likewise.
26586         (veorq_u16): Likewise.
26587         (veorq_u32): Likewise.
26588         (veorq_u64): Likewise.
26589         (vbic_s8): Likewise.
26590         (vbic_s16): Likewise.
26591         (vbic_s32): Likewise.
26592         (vbic_u8): Likewise.
26593         (vbic_u16): Likewise.
26594         (vbic_u32): Likewise.
26595         (vbic_s64): Likewise.
26596         (vbic_u64): Likewise.
26597         (vbicq_s8): Likewise.
26598         (vbicq_s16): Likewise.
26599         (vbicq_s32): Likewise.
26600         (vbicq_s64): Likewise.
26601         (vbicq_u8): Likewise.
26602         (vbicq_u16): Likewise.
26603         (vbicq_u32): Likewise.
26604         (vbicq_u64): Likewise.
26605         (vorn_s8): Likewise.
26606         (vorn_s16): Likewise.
26607         (vorn_s32): Likewise.
26608         (vorn_u8): Likewise.
26609         (vorn_u16): Likewise.
26610         (vorn_u32): Likewise.
26611         (vorn_s64): Likewise.
26612         (vorn_u64): Likewise.
26613         (vornq_s8): Likewise.
26614         (vornq_s16): Likewise.
26615         (vornq_s32): Likewise.
26616         (vornq_s64): Likewise.
26617         (vornq_u8): Likewise.
26618         (vornq_u16): Likewise.
26619         (vornq_u32): Likewise.
26620         (vornq_u64): Likewise.
26621
26622 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26623
26624         * wide-int.cc (UTItype): Define.
26625         (UDWtype): Define for appropriate W_TYPE_SIZE.
26626
26627 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
26628
26629         PR tree-optimization/59100
26630         * tree-ssa-phiopt.c: Include tree-inline.h.
26631         (neutral_element_p, absorbing_element_p): New functions.
26632         (value_replacement): Handle conditional binary operations with a
26633         neutral or absorbing element.
26634
26635 2014-05-08  Richard Biener  <rguenther@suse.de>
26636
26637         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
26638         folding the expression.
26639         (valueize_expr): Remove.
26640         (visit_reference_op_load): Do not valueize the result of
26641         vn_get_expr_for.
26642         (simplify_binary_expression): Likewise.
26643         (simplify_unary_expression): Likewise.
26644
26645 2014-05-08  Richard Biener  <rguenther@suse.de>
26646
26647         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
26648         looking at TYPE_ARG_TYPES.
26649
26650 2014-05-08  Richard Biener  <rguenther@suse.de>
26651
26652         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26653         pointer propagation special-case.
26654
26655 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
26656
26657         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26658         core part of address expressions.
26659
26660 2014-05-08  Alan Modra  <amodra@gmail.com>
26661
26662         PR target/60737
26663         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26664         loads and stores when -mno-strict-align at any alignment.
26665         (expand_block_clear): Similarly.  Also correct calculation of
26666         instruction count.
26667
26668 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26669
26670         PR middle-end/39246
26671         * tree-complex.c (expand_complex_move): Keep line info when expanding
26672         complex move.
26673         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26674         of complex expression. Use new argument to display correct location
26675         for values coming from phi statement.
26676         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26677         (warn_uninitialized_phi): Pass location of phi argument to
26678         warn_uninit.
26679         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26680         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26681
26682 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
26683
26684         * config/rs6000/predicates.md (indexed_address_mem): New.
26685         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26686         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26687         fpstore_ux, fpstore_u.
26688         (sign_extend, indexed, update): New.
26689         (cell_micro): Adjust.
26690         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26691         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26692         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26693         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26694         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26695         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26696         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26697         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26698         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26699         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26700         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26701         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26702         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26703         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26704         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26705
26706         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26707         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26708         *vsx_extract_<mode>_store): Adjust.
26709         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26710         is_cracked_insn, insn_must_be_first_in_group,
26711         insn_must_be_last_in_group): Adjust.
26712
26713         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26714         Adjust.
26715         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26716         ppc440-fpstore): Adjust.
26717         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26718         ppc476-fpstore): Adjust.
26719         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26720         ppc601-fpstore): Adjust.
26721         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26722         Adjust.
26723         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26724         Adjust.
26725         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26726         ppc7450-fpstore): Adjust.
26727         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26728         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26729         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26730         Adjust.
26731         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26732         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26733         cell-fpstore, cell-fpstore-update): Adjust.
26734         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26735         ppce300c3_store, ppce300c3_fpstore): Adjust.
26736         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26737         e500mc_fpstore): Adjust.
26738         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26739         e500mc64_store, e500mc64_fpstore): Adjust.
26740         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26741         e5500_fpstore): Adjust.
26742         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26743         e6500_fpstore): Adjust.
26744         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26745         Adjust.
26746         * config/rs6000/power4.md (power4-load, power4-load-ext,
26747         power4-load-ext-update, power4-load-ext-update-indexed,
26748         power4-load-update-indexed, power4-load-update, power4-fpload,
26749         power4-fpload-update, power4-store, power4-store-update,
26750         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26751         Adjust.
26752         * config/rs6000/power5.md (power5-load, power5-load-ext,
26753         power5-load-ext-update, power5-load-ext-update-indexed,
26754         power5-load-update-indexed, power5-load-update, power5-fpload,
26755         power5-fpload-update, power5-store, power5-store-update,
26756         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26757         Adjust.
26758         * config/rs6000/power6.md (power6-load, power6-load-ext,
26759         power6-load-update, power6-load-update-indexed,
26760         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26761         power6-fpload-update, power6-store, power6-store-update,
26762         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26763         Adjust.
26764         * config/rs6000/power7.md (power7-load, power7-load-ext,
26765         power7-load-update, power7-load-update-indexed,
26766         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26767         power7-fpload-update, power7-store, power7-store-update,
26768         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26769         Adjust.
26770         * config/rs6000/power8.md (power8-load, power8-load-update,
26771         power8-load-ext, power8-load-ext-update, power8-fpload,
26772         power8-fpload-update, power8-store, power8-store-update-indexed,
26773         power8-fpstore, power8-fpstore-update): Adjust.
26774         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26775         Adjust.
26776         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26777         titan_lsu_store, titan_lsu_fpstore): Adjust.
26778         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26779
26780 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
26781
26782         PR target/60884
26783         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26784         unrolled byte insns.  Emit address increments after move insns.
26785
26786 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
26787
26788         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26789         const_gimple, rather than a gimple.
26790         (gimple_call_builtin_p): Likewise, for the three variants.
26791
26792         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26793         (gimple_call_builtin_p): Likewise, for the three variants.
26794
26795 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26796
26797         PR tree-optimization/61095
26798         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26799
26800 2014-05-07  Richard Biener  <rguenther@suse.de>
26801
26802         PR tree-optimization/61034
26803         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26804         (maybe_skip_until): Use translate to take into account
26805         lattices when trying to do disambiguations.
26806         (get_continuation_for_phi_1): Likewise.
26807         (get_continuation_for_phi): Adjust for added translate arguments.
26808         (walk_non_aliased_vuses): Likewise.
26809         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26810         (walk_non_aliased_vuses): Likewise.
26811         (call_may_clobber_ref_p_1): Declare.
26812         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26813         calls.  Stop early if we are only supposed to disambiguate.
26814         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26815
26816 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
26817
26818         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26819         Emit an error when the function has arguments.
26820
26821 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26822
26823         * cfgloop.h (unswitch_loops): Remove.
26824         * doc/passes.texi: Remove references to loop-unswitch.c
26825         * timevar.def (TV_LOOP_UNSWITCH): Remove.
26826
26827 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
26828
26829         * tree-vect-data-refs.c (vect_grouped_load_supported): New
26830         check for loads group of length 3.
26831         (vect_permute_load_chain): New permutations for loads group of
26832         length 3.
26833         * tree-vect-stmts.c (vect_model_load_cost): Change cost
26834         of vec_perm_shuffle for the new permutations.
26835
26836 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
26837
26838         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26839         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26840         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26841         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26842         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26843         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26844         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26845         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26846
26847 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26848
26849         * loop-unswitch.c: Delete.
26850
26851 2014-05-07  Richard Biener  <rguenther@suse.de>
26852
26853         * config.gcc: Always set need_64bit_hwint to yes.
26854
26855 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
26856
26857         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26858         of using optimize_size.
26859
26860 2014-05-06  Mike Stump  <mikestump@comcast.net>
26861
26862         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26863
26864 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
26865
26866         * config/i386/sse.md (*mov<mode>_internal)
26867         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26868         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26869         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26870         (*<code><mode>3, *andnot<mode>3<mask_name>)
26871         (<mask_codefor><code><mode>3<mask_name>): Only consider
26872         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26873
26874 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26875
26876         Revert:
26877         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26878
26879         * lra-constraints.c (valid_address_p): Move earlier in file.
26880         Add a constraint argument to the address_info version.
26881         (satisfies_memory_constraint_p): New function.
26882         (satisfies_address_constraint_p): Likewise.
26883         (process_alt_operands, curr_insn_transform): Use them.
26884         (process_address): Pass the constraint to valid_address_p when
26885         checking address operands.
26886
26887 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
26888
26889         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26890         to their respective blocks.  Fix inadvertent use of "node".
26891
26892 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26893
26894         * emit-rtl.c (init_derived_machine_modes): New functionm, split
26895         out from...
26896         (init_emit_once): ...here.
26897         * rtl.h (init_derived_machine_modes): Declare.
26898         * toplev.c (do_compile): Call it even if no_backend.
26899
26900 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
26901             Mike Stump  <mikestump@comcast.net>
26902             Richard Sandiford  <rdsandiford@googlemail.com>
26903             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26904
26905         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26906         (rtx_equal_for_memref_p): Update comment.
26907         (adjust_offset_for_component_ref): Use wide-int interfaces.
26908         * builtins.c (get_object_alignment_2): Likewise.
26909         (c_readstr): Likewise.
26910         (target_char_cast): Add comment.
26911         (determine_block_size): Use wide-int interfaces.
26912         (expand_builtin_signbit): Likewise.
26913         (fold_builtin_int_roundingfn): Likewise.
26914         (fold_builtin_bitop): Likewise.
26915         (fold_builtin_bswap): Likewise.
26916         (fold_builtin_logarithm): Use signop.
26917         (fold_builtin_pow): Likewise.
26918         (fold_builtin_memory_op): Use wide-int interfaces.
26919         (fold_builtin_object_size): Likewise.
26920         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26921         nb_iterations_estimate.
26922         (record_niter_bound): Use wide-int interfaces.
26923         (get_estimated_loop_iterations_int): Likewise.
26924         (get_estimated_loop_iterations): Likewise.
26925         (get_max_loop_iterations): Likewise.
26926         * cfgloop.h: Include wide-int.h.
26927         (struct nb_iter_bound): Change bound to widest_int.
26928         (struct loop): Change nb_iterations_upper_bound and
26929         nb_iterations_estimate to widest_int.
26930         (record_niter_bound): Switch to use widest_int.
26931         (get_estimated_loop_iterations): Likewise.
26932         (get_max_loop_iterations): Likewise.
26933         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26934         update for wide-int.
26935         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26936         * combine.c (try_combine): Likewise.
26937         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26938         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26939         interfaces.
26940         (aarch64_float_const_representable_p): Likewise.
26941         * config/arc/arc.c: Include wide-int.h.
26942         (arc_can_use_doloop_p): Use wide-int interfaces.
26943         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26944         (vfp3_const_double_index): Likewise.
26945         * config/avr/avr.c (avr_out_round): Likewise.
26946         (avr_fold_builtin): Likewise.
26947         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26948         (bfin_can_use_doloop_p): Likewise.
26949         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26950         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26951         * config/i386/i386.c: Include wide-int.h.
26952         (ix86_data_alignment): Use wide-int interfaces.
26953         (ix86_local_alignment): Likewise.
26954         (ix86_emit_swsqrtsf): Update real_from_integer.
26955         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26956         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26957         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26958         (zero_constant): Likewise.
26959         (input_operand): Likewise.
26960         (splat_input_operand): Likewise.
26961         (non_logical_cint_operand): Change const_double to const_wide_int.
26962         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26963         (easy_altivec_constant): Remove comment.
26964         (paired_expand_vector_init): Use CONSTANT_P.
26965         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26966         (rs6000_emit_move): Update checks.
26967         (rs6000_aggregate_candidate): Use wide-int interfaces.
26968         (rs6000_expand_ternop_builtin): Likewise.
26969         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26970         (rs6000_assemble_integer): Likewise.
26971         (rs6000_hash_constant): Likewise.
26972         (output_toc): Likewise.
26973         (rs6000_rtx_costs): Likewise.
26974         (rs6000_emit_swrsqrt); Update call to real_from_integer.
26975         * config/rs6000/rs6000-c.c: Include wide-int.h.
26976         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26977         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26978         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26979         Handle CONST_WIDE_INT.
26980         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26981         Use tree_fits_uhwi_p.
26982         * config/sparc/sparc.c: Include wide-int.h.
26983         (sparc_fold_builtin): Use wide-int interfaces.
26984         * config/vax/vax.c: Include wide-int.h.
26985         (vax_float_literal): Use real_from_integer.
26986         * coretypes.h (struct hwivec_def): New.
26987         (hwivec): New.
26988         (const_hwivec): New.
26989         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26990         (equiv_constant): Handle CONST_WIDE_INT.
26991         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26992         (cselib_hash_rtx): Handle CONST_WIDE_INT.
26993         * dbxout.c (stabstr_U): Use wide-int interfaces.
26994         (dbxout_type): Update to use cst_fits_shwi_p.
26995         * defaults.h (LOG2_BITS_PER_UNIT): Define.
26996         (TARGET_SUPPORTS_WIDE_INT): Add default.
26997         * dfp.c: Include wide-int.h.
26998         (decimal_real_to_integer2): Use wide-int interfaces and rename to
26999         decimal_real_to_integer.
27000         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
27001         decimal_real_to_integer.
27002         * doc/generic.texi (Constant expressions): Update for wide_int.
27003         * doc/rtl.texi (const_double): Likewise.
27004         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
27005         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
27006         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
27007         (REAL_VALUE_FROM_INT): Remove.
27008         (TARGET_SUPPORTS_WIDE_INT): New.
27009         * doc/tm.texi: Regenerate.
27010         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
27011         * double-int.h: Include wide-int.h.
27012         (struct wi::int_traits): New.
27013         * dwarf2out.c (get_full_len): New.
27014         (dw_val_equal_p): Add case dw_val_class_wide_int.
27015         (size_of_loc_descr): Likewise.
27016         (output_loc_operands): Likewise.
27017         (insert_double): Remove.
27018         (insert_wide_int): New.
27019         (add_AT_wide): New.
27020         (print_die): Add case dw_val_class_wide_int.
27021         (attr_checksum): Likewise.
27022         (attr_checksum_ordered): Likewise.
27023         (same_dw_val_p): Likewise.
27024         (size_of_die): Likewise.
27025         (value_format): Likewise.
27026         (output_die): Likewise.
27027         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
27028         Use wide-int.
27029         (clz_loc_descriptor): Use wide-int interfaces.
27030         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
27031         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
27032         (round_up_to_align): Use wide-int interfaces.
27033         (field_byte_offset): Likewise.
27034         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
27035         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
27036         CONST_DOUBLE handling.  Use wide-int interfaces.
27037         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
27038         (gen_enumeration_type_die): Use add_AT_wide.
27039         (hash_loc_operands): Add case dw_val_class_wide_int.
27040         (compare_loc_operands): Likewise.
27041         * dwarf2out.h: Include wide-int.h.
27042         (wide_int_ptr): New.
27043         (enum dw_val_class): Add dw_val_class_wide_int.
27044         (struct dw_val_struct): Add val_wide.
27045         * emit-rtl.c (const_wide_int_htab): New.
27046         (const_wide_int_htab_hash): New.
27047         (const_wide_int_htab_eq): New.
27048         (lookup_const_wide_int): New.
27049         (const_double_htab_hash): Use wide-int interfaces.
27050         (const_double_htab_eq): Likewise.
27051         (rtx_to_double_int): Conditionally compile for wide-int.
27052         (immed_double_int_const): Rename to immed_wide_int_const and
27053         update for wide-int.
27054         (immed_double_const): Conditionally compile for wide-int.
27055         (init_emit_once): Use wide-int interfaces.
27056         * explow.c (plus_constant): Likewise.
27057         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
27058         (lshift_value): Use wide-int interfaces.
27059         (expand_mult): Likewise.
27060         (choose_multiplier): Likewise.
27061         (expand_smod_pow2): Likewise.
27062         (make_tree): Likewise.
27063         * expr.c (convert_modes): Consolidate handling of constants.
27064         Use wide-int interfaces.
27065         (emit_group_load_1): Add note.
27066         (store_expr): Update comment.
27067         (get_inner_reference): Use wide-int interfaces.
27068         (expand_constructor): Update comment.
27069         (expand_expr_real_2): Use wide-int interfaces.
27070         (expand_expr_real_1): Likewise.
27071         (reduce_to_bit_field_precision): Likewise.
27072         (const_vector_from_tree): Likewise.
27073         * final.c: Include wide-int-print.h.
27074         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
27075         * fixed-value.c: Include wide-int.h.
27076         (fixed_from_string): Use wide-int interfaces.
27077         (fixed_to_decimal): Likewise.
27078         (fixed_convert_from_real): Likewise.
27079         (real_convert_from_fixed): Likewise.
27080         * fold-const.h (mem_ref_offset): Return an offset_int.
27081         (div_if_zero_remainder): Remove code parameter.
27082         * fold-const.c (div_if_zero_remainder): Remove code parameter.
27083         Use wide-int interfaces.
27084         (may_negate_without_overflow_p): Use wide-int interfaces.
27085         (negate_expr_p): Likewise.
27086         (fold_negate_expr): Likewise.
27087         (int_const_binop_1): Likewise.
27088         (const_binop): Likewise.
27089         (fold_convert_const_int_from_int): Likewise.
27090         (fold_convert_const_int_from_real): Likewise.
27091         (fold_convert_const_int_from_fixed): Likewise.
27092         (fold_convert_const_fixed_from_int): Likewise.
27093         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
27094         (sign_bit_p): Use wide-int interfaces.
27095         (make_range_step): Likewise.
27096         (build_range_check): Likewise.  Pass an integer of the correct type
27097         instead of using integer_one_node.
27098         (range_predecessor): Pass an integer of the correct type instead
27099         of using integer_one_node.
27100         (range_successor): Likewise.
27101         (merge_ranges): Likewise.
27102         (unextend): Use wide-int interfaces.
27103         (extract_muldiv_1): Likewise.
27104         (fold_div_compare): Likewise.
27105         (fold_single_bit_test): Likewise.
27106         (fold_sign_changed_comparison): Likewise.
27107         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
27108         (fold_plusminus_mult_expr): Use wide-int interfaces.
27109         (native_encode_int): Likewise.
27110         (native_interpret_int): Likewise.
27111         (fold_unary_loc): Likewise.
27112         (pointer_may_wrap_p): Likewise.
27113         (size_low_cst): Likewise.
27114         (mask_with_tz): Likewise.
27115         (fold_binary_loc): Likewise.
27116         (fold_ternary_loc): Likewise.
27117         (multiple_of_p): Likewise.
27118         (tree_call_nonnegative_warnv_p): Update calls to
27119         tree_int_cst_min_precision and real_from_integer.
27120         (fold_negate_const): Use wide-int interfaces.
27121         (fold_abs_const): Likewise.
27122         (fold_relational_const): Use tree_int_cst_lt.
27123         (round_up_loc): Use wide-int interfaces.
27124         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
27125         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
27126         * gengtype.c: Remove include of double-int.h.
27127         (do_typedef): Use wide-int interfaces.
27128         (open_base_files): Add wide-int.h.
27129         (main): Add offset_int and widest_int typedefs.
27130         * gengtype-lex.l: Handle "^".
27131         (CXX_KEYWORD): Add "static".
27132         * gengtype-parse.c (require3): New.
27133         (require_template_declaration): Handle constant template arguments
27134         and nested templates.
27135         * gengtype-state.c: Don't include "double-int.h".
27136         * genpreds.c (write_one_predicate_function): Update comment.
27137         (write_tm_constrs_h): Add check for hval and lval use in
27138         CONST_WIDE_INT.
27139         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
27140         (add_to_sequence): Likewise.
27141         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
27142         and const_double_operand.
27143         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
27144         interfaces.
27145         * gimple-fold.c (get_base_constructor): Likewise.
27146         (fold_array_ctor_reference): Likewise.
27147         (fold_nonarray_ctor_reference): Likewise.
27148         (fold_const_aggregate_ref_1): Likewise.
27149         (gimple_val_nonnegative_real_p): Likewise.
27150         (gimple_fold_indirect_ref): Likewise.
27151         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
27152         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
27153         (struct slsr_cand_d): Change index to be widest_int.
27154         (struct incr_info_d): Change incr to be widest_int.
27155         (alloc_cand_and_find_basis): Use wide-int interfaces.
27156         (slsr_process_phi): Likewise.
27157         (backtrace_base_for_ref): Likewise.  Return a widest_int.
27158         (restructure_reference): Take a widest_int instead of a double_int.
27159         (slsr_process_ref): Use wide-int interfaces.
27160         (create_mul_ssa_cand): Likewise.
27161         (create_mul_imm_cand): Likewise.
27162         (create_add_ssa_cand): Likewise.
27163         (create_add_imm_cand): Take a widest_int instead of a double_int.
27164         (slsr_process_add): Use wide-int interfaces.
27165         (slsr_process_cast): Likewise.
27166         (slsr_process_copy): Likewise.
27167         (dump_candidate): Likewise.
27168         (dump_incr_vec): Likewise.
27169         (replace_ref): Likewise.
27170         (cand_increment): Likewise.  Return a widest_int.
27171         (cand_abs_increment): Likewise.
27172         (replace_mult_candidate): Take a widest_int instead of a double_int.
27173         (replace_unconditional_candidate): Use wide-int interfaces.
27174         (incr_vec_index): Take a widest_int instead of a double_int.
27175         (create_add_on_incoming_edge): Likewise.
27176         (create_phi_basis): Use wide-int interfaces.
27177         (replace_conditional_candidate): Likewise.
27178         (record_increment): Take a widest_int instead of a double_int.
27179         (record_phi_increments): Use wide-int interfaces.
27180         (phi_incr_cost): Take a widest_int instead of a double_int.
27181         (lowest_cost_path): Likewise.
27182         (total_savings): Likewise.
27183         (analyze_increments): Use wide-int interfaces.
27184         (ncd_with_phi): Take a widest_int instead of a double_int.
27185         (ncd_of_cand_and_phis): Likewise.
27186         (nearest_common_dominator_for_cands): Likewise.
27187         (insert_initializers): Use wide-int interfaces.
27188         (all_phi_incrs_profitable): Likewise.
27189         (replace_one_candidate): Likewise.
27190         (replace_profitable_candidates): Likewise.
27191         * godump.c: Include wide-int-print.h.
27192         (go_output_typedef): Use wide-int interfaces.
27193         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
27194         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
27195         (build_loop_iteration_domains): Likewise.
27196         * hooks.h: Include wide-int.h rather than double-int.h.
27197         (hook_bool_dint_dint_uint_bool_true): Delete.
27198         (hook_bool_wint_wint_uint_bool_true): Declare.
27199         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
27200         (hook_bool_wint_wint_uint_bool_true): New.
27201         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
27202         interfaces.
27203         (ubsan_expand_si_overflow_mul_check): Likewise.
27204         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
27205         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
27206         (get_ancestor_addr_info): Likewise.
27207         (ipa_modify_call_arguments): Likewise.
27208         * loop-doloop.c (doloop_modify): Likewise.
27209         (doloop_optimize): Likewise.
27210         * loop-iv.c (iv_number_of_iterations): Likewise.
27211         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
27212         (unroll_loop_constant_iterations): Likewise.
27213         (decide_unroll_runtime_iterations): Likewise.
27214         (unroll_loop_runtime_iterations): Likewise.
27215         (decide_peel_simple): Likewise.
27216         (decide_unroll_stupid): Likewise.
27217         * lto-streamer-in.c (streamer_read_wi): Add.
27218         (input_cfg): Use wide-int interfaces.
27219         (lto_input_tree_1): Likewise.
27220         * lto-streamer-out.c (streamer_write_wi): Add.
27221         (hash_tree): Use wide-int interfaces.
27222         (output_cfg): Likewise.
27223         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
27224         (GTFILES): Add wide-int.h and signop.h.
27225         (TAGS): Look for .cc files too.
27226         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
27227         * optabs.c (expand_subword_shift): Likewise.
27228         (expand_doubleword_shift): Likewise.
27229         (expand_absneg_bit): Likewise.
27230         (expand_copysign_absneg): Likewise.
27231         (expand_copysign_bit): Likewise.
27232         * postreload.c (reload_cse_simplify_set): Likewise.
27233         * predict.c (predict_iv_comparison): Likewise.
27234         * pretty-print.h: Include wide-int-print.h.
27235         (pp_wide_int) New.
27236         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
27237         * print-tree.c: Include wide-int-print.h.
27238         (print_node_brief): Use wide-int interfaces.
27239         (print_node): Likewise.
27240         * read-rtl.c (validate_const_wide_int): New.
27241         (read_rtx_code): Add CONST_WIDE_INT case.
27242         * real.c: Include wide-int.h.
27243         (real_to_integer2): Delete.
27244         (real_to_integer): New function, returning a wide_int.
27245         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27246         (ten_to_ptwo): Update call to real_from_integer.
27247         (real_digit): Likewise.
27248         * real.h: Include signop.h, wide-int.h and insn-modes.h.
27249         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
27250         (REAL_VALUE_TO_INT): Delete.
27251         (real_to_integer): Declare a wide-int form.
27252         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27253         * recog.c (const_int_operand): Improve comment.
27254         (const_scalar_int_operand): New.
27255         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
27256         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
27257         (split_double): Likewise.
27258         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
27259         (rtx_size): Likewise.
27260         (rtx_alloc_stat_v): New.
27261         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
27262         (cwi_output_hex): New.
27263         (iterative_hash_rtx): Handle CONST_WIDE_INT.
27264         (cwi_check_failed_bounds): New.
27265         * rtl.def (CONST_WIDE_INT): New.
27266         * rtl.h: Include <utility> and wide-int.h.
27267         (struct hwivec_def): New.
27268         (CWI_GET_NUM_ELEM): New.
27269         (CWI_PUT_NUM_ELEM): New.
27270         (struct rtx_def): Add num_elem and hwiv.
27271         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
27272         (CASE_CONST_UNIQUE): Likewise.
27273         (CASE_CONST_ANY): Likewise.
27274         (CONST_SCALAR_INT_P): Likewise.
27275         (CONST_WIDE_INT_P): New.
27276         (CWI_ELT): New.
27277         (HWIVEC_CHECK): New.
27278         (cwi_check_failed_bounds): New.
27279         (CWI_ELT): New.
27280         (HWIVEC_CHECK): New.
27281         (CONST_WIDE_INT_VEC) New.
27282         (CONST_WIDE_INT_NUNITS) New.
27283         (CONST_WIDE_INT_ELT) New.
27284         (rtx_mode_t): New type.
27285         (wi::int_traits <rtx_mode_t>): New.
27286         (wi::shwi): New.
27287         (wi::min_value): New.
27288         (wi::max_value): New.
27289         (rtx_alloc_v) New.
27290         (const_wide_int_alloc): New.
27291         (immed_wide_int_const): New.
27292         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
27293         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
27294         * signop.h: New file.
27295         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
27296         (simplify_const_unary_operation): Use wide-int interfaces.
27297         (simplify_binary_operation_1): Likewise.
27298         (simplify_const_binary_operation): Likewise.
27299         (simplify_const_relational_operation): Likewise.
27300         (simplify_immed_subreg): Likewise.
27301         * stmt.c (expand_case): Likewise.
27302         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
27303         signop rather than a bool.
27304         * stor-layout.c (layout_type): Use wide-int interfaces.
27305         (initialize_sizetypes): Update calls to
27306         set_min_and_max_values_for_integral_type.
27307         (set_min_and_max_values_for_integral_type): Take a signop rather
27308         than a bool.  Use wide-int interfaces.
27309         (fixup_signed_type): Update accordingly.  Remove
27310         HOST_BITS_PER_DOUBLE_INT limit.
27311         (fixup_unsigned_type): Likewise.
27312         * system.h (STATIC_CONSTANT_P): New.
27313         (STATIC_ASSERT): New.
27314         * target.def (can_use_doloop_p): Take widest_ints rather than
27315         double_ints.
27316         * target.h: Include wide-int.h rather than double-int.h.
27317         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
27318         than double_ints.
27319         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
27320         rather than INT_CST_LT_UNSIGNED.
27321         (can_use_doloop_if_innermost): Take widest_ints rather than
27322         double_ints.
27323         * tree-affine.c: Include wide-int-print.h.
27324         (double_int_ext_for_comb): Delete.
27325         (wide_int_ext_for_comb): New.
27326         (aff_combination_zero): Use wide-int interfaces.
27327         (aff_combination_const): Take a widest_int instead of a double_int.
27328         (aff_combination_elt): Use wide-int interfaces.
27329         (aff_combination_scale): Take a widest_int instead of a double_int.
27330         (aff_combination_add_elt): Likewise.
27331         (aff_combination_add_cst): Likewise.
27332         (aff_combination_add): Use wide-int interfaces.
27333         (aff_combination_convert): Likewise.
27334         (tree_to_aff_combination): Likewise.
27335         (add_elt_to_tree): Take a widest_int instead of a double_int.
27336         (aff_combination_to_tree): Use wide-int interfaces.
27337         (aff_combination_remove_elt): Likewise.
27338         (aff_combination_add_product): Take a widest_int instead of
27339         a double_int.
27340         (aff_combination_mult): Use wide-int interfaces.
27341         (aff_combination_expand): Likewise.
27342         (double_int_constant_multiple_p): Delete.
27343         (wide_int_constant_multiple_p): New.
27344         (aff_combination_constant_multiple_p): Take a widest_int pointer
27345         instead of a double_int pointer.
27346         (print_aff): Use wide-int interfaces.
27347         (get_inner_reference_aff): Take a widest_int pointer
27348         instead of a double_int pointer.
27349         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
27350         * tree-affine.h: Include wide-int.h.
27351         (struct aff_comb_elt): Change type of coef to widest_int.
27352         (struct affine_tree_combination): Change type of offset to widest_int.
27353         (double_int_ext_for_comb): Delete.
27354         (wide_int_ext_for_comb): New.
27355         (aff_combination_const): Use widest_int instead of double_int.
27356         (aff_combination_scale): Likewise.
27357         (aff_combination_add_elt): Likewise.
27358         (aff_combination_constant_multiple_p): Likewise.
27359         (get_inner_reference_aff): Likewise.
27360         (aff_comb_cannot_overlap_p): Likewise.
27361         (aff_combination_zero_p): Use wide-int interfaces.
27362         * tree.c: Include tree.h.
27363         (init_ttree): Use make_int_cst.
27364         (tree_code_size): Removed code for INTEGER_CST case.
27365         (tree_size): Add INTEGER_CST case.
27366         (make_node_stat): Update comment.
27367         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
27368         (build_int_cst_type): Use wide-int interfaces.
27369         (double_int_to_tree): Likewise.
27370         (double_int_fits_to_tree_p): Delete.
27371         (force_fit_type_double): Delete.
27372         (force_fit_type): New.
27373         (int_cst_hash_hash): Use wide-int interfaces.
27374         (int_cst_hash_eq): Likewise.
27375         (build_int_cst_wide): Delete.
27376         (wide_int_to_tree): New.
27377         (cache_integer_cst): Use wide-int interfaces.
27378         (build_low_bits_mask): Likewise.
27379         (cst_and_fits_in_hwi): Likewise.
27380         (real_value_from_int_cst): Likewise.
27381         (make_int_cst_stat): New.
27382         (integer_zerop): Use wide_int interfaces.
27383         (integer_onep): Likewise.
27384         (integer_all_onesp): Likewise.
27385         (integer_pow2p): Likewise.
27386         (integer_nonzerop): Likewise.
27387         (tree_log2): Likewise.
27388         (tree_floor_log2): Likewise.
27389         (tree_ctz): Likewise.
27390         (int_size_in_bytes): Likewise.
27391         (mem_ref_offset): Return an offset_int rather than a double_int.
27392         (build_type_attribute_qual_variant): Use wide_int interfaces.
27393         (type_hash_eq): Likewise
27394         (tree_int_cst_equal): Likewise.
27395         (tree_int_cst_lt): Delete.
27396         (tree_int_cst_compare): Likewise.
27397         (tree_fits_shwi_p): Use wide_int interfaces.
27398         (tree_fits_uhwi_p): Likewise.
27399         (tree_int_cst_sign_bit): Likewise.
27400         (tree_int_cst_sgn): Likewise.
27401         (tree_int_cst_min_precision): Take a signop rather than a bool.
27402         (simple_cst_equal): Use wide_int interfaces.
27403         (compare_tree_int): Likewise.
27404         (iterative_hash_expr): Likewise.
27405         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
27406         INT_CST_LT.
27407         (get_type_static_bounds): Use wide_int interfaces.
27408         (tree_int_cst_elt_check_failed): New.
27409         (build_common_tree_nodes): Reordered to set prec before filling in
27410         value.
27411         (int_cst_value): Check cst_and_fits_in_hwi.
27412         (widest_int_cst_value): Use wide_int interfaces.
27413         (upper_bound_in_type): Likewise.
27414         (lower_bound_in_type): Likewise.
27415         (num_ending_zeros): Likewise.
27416         (drop_tree_overflow): Likewise.
27417         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
27418         (gen_conditions_for_pow_cst_base): Likewise.
27419         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
27420         (group_case_labels_stmt): Use wide-int interfaces.
27421         (verify_gimple_assign_binary): Likewise.
27422         (print_loop): Likewise.
27423         * tree-chrec.c (tree_fold_binomial): Likewise.
27424         * tree-core.h (struct tree_base): Add int_length.
27425         (struct tree_int_cst): Change rep of value.
27426         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
27427         (dr_may_alias_p): Likewise.
27428         (max_stmt_executions_tree): Likewise.
27429         * tree.def (INTEGER_CST): Update comment.
27430         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
27431         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
27432         * tree-dump.c: Include wide-int.h and wide-int-print.h.
27433         (dequeue_and_dump): Use wide-int interfaces.
27434         * tree.h: Include wide-int.h.
27435         (NULL_TREE): Moved to earlier loc in file.
27436         (TREE_INT_CST_ELT_CHECK): New.
27437         (tree_int_cst_elt_check_failed): New.
27438         (TYPE_SIGN): New.
27439         (TREE_INT_CST): Delete.
27440         (TREE_INT_CST_LOW): Use wide-int interfaces.
27441         (TREE_INT_CST_HIGH): Delete.
27442         (TREE_INT_CST_NUNITS): New.
27443         (TREE_INT_CST_EXT_NUNITS): Likewise.
27444         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
27445         (TREE_INT_CST_ELT): Likewise.
27446         (INT_CST_LT): Delete.
27447         (tree_int_cst_elt_check): New (two forms).
27448         (type_code_size): Update comment.
27449         (make_int_cst_stat, make_int_cst): New.
27450         (tree_to_double_int): Delete.
27451         (double_int_fits_to_tree_p): Delete.
27452         (force_fit_type_double): Delete.
27453         (build_int_cstu): Replace with out-of-line function.
27454         (build_int_cst_wide): Delete.
27455         (tree_int_cst_lt): Define inline.
27456         (tree_int_cst_le): New.
27457         (tree_int_cst_compare): Define inline.
27458         (tree_int_cst_min_precision): Take a signop rather than a bool.
27459         (wi::int_traits <const_tree>): New.
27460         (wi::int_traits <tree>): New.
27461         (wi::extended_tree): New.
27462         (wi::int_traits <wi::extended_tree>): New.
27463         (wi::to_widest): New.
27464         (wi::to_offset): New.
27465         (wi::fits_to_tree_p): New.
27466         (wi::min_value): New.
27467         (wi::max_value): New.
27468         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
27469         (copy_tree_body_r): Likewise.
27470         * tree-object-size.c (compute_object_offset): Likewise.
27471         (addr_object_size): Likewise.
27472         * tree-predcom.c: Include wide-int-print.h.
27473         (struct dref_d): Change type of offset to widest_int.
27474         (dump_dref): Call wide-int printer.
27475         (aff_combination_dr_offset): Use wide-int interfaces.
27476         (determine_offset): Take a widest_int pointer rather than a
27477         double_int pointer.
27478         (split_data_refs_to_components): Use wide-int interfaces.
27479         (suitable_component_p): Likewise.
27480         (order_drefs): Likewise.
27481         (add_ref_to_chain): Likewise.
27482         (valid_initializer_p): Likewise.
27483         (determine_roots_comp): Likewise.
27484         * tree-pretty-print.c: Include wide-int-print.h.
27485         (dump_generic_node): Use wide-int interfaces.
27486         * tree-sra.c (sra_ipa_modify_expr): Likewise.
27487         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
27488         (move_fixed_address_to_symbol): Likewise.
27489         (move_hint_to_base): Likewise.
27490         (move_pointer_to_base): Likewise.
27491         (move_variant_to_index): Likewise.
27492         (most_expensive_mult_to_index): Likewise.
27493         (addr_to_parts): Likewise.
27494         (copy_ref_info): Likewise.
27495         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27496         (indirect_refs_may_alias_p): Likewise.
27497         (stmt_kills_ref_p_1): Likewise.
27498         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
27499         * tree-ssa-ccp.c: Update comment at top of file.  Include
27500         wide-int-print.h.
27501         (struct prop_value_d): Change type of mask to widest_int.
27502         (extend_mask): New function.
27503         (dump_lattice_value): Use wide-int interfaces.
27504         (get_default_value): Likewise.
27505         (set_constant_value): Likewise.
27506         (set_value_varying): Likewise.
27507         (valid_lattice_transition): Likewise.
27508         (set_lattice_value): Likewise.
27509         (value_to_double_int): Delete.
27510         (value_to_wide_int): New.
27511         (get_value_from_alignment): Use wide-int interfaces.
27512         (get_value_for_expr): Likewise.
27513         (do_dbg_cnt): Likewise.
27514         (ccp_finalize): Likewise.
27515         (ccp_lattice_meet): Likewise.
27516         (bit_value_unop_1): Use widest_ints rather than double_ints.
27517         (bit_value_binop_1): Likewise.
27518         (bit_value_unop): Use wide-int interfaces.
27519         (bit_value_binop): Likewise.
27520         (bit_value_assume_aligned): Likewise.
27521         (evaluate_stmt): Likewise.
27522         (ccp_fold_stmt): Likewise.
27523         (visit_cond_stmt): Likewise.
27524         (ccp_visit_stmt): Likewise.
27525         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27526         (constant_pointer_difference): Likewise.
27527         (associate_pointerplus): Likewise.
27528         (combine_conversions): Likewise.
27529         * tree-ssa-loop.h: Include wide-int.h.
27530         (struct tree_niter_desc): Change type of max to widest_int.
27531         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
27532         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
27533         (remove_redundant_iv_tests): Likewise.
27534         (canonicalize_loop_induction_variables): Likewise.
27535         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
27536         (constant_multiple_of): Take a widest_int pointer instead of
27537         a double_int pointer.
27538         (get_computation_aff): Use wide-int interfaces.
27539         (ptr_difference_cost): Likewise.
27540         (difference_cost): Likewise.
27541         (get_loop_invariant_expr_id): Likewise.
27542         (get_computation_cost_at): Likewise.
27543         (iv_elimination_compare_lt): Likewise.
27544         (may_eliminate_iv): Likewise.
27545         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
27546         instead of double_int.
27547         (max_loop_iterations): Likewise.
27548         (max_stmt_executions): Likewise.
27549         (estimated_stmt_executions): Likewise.
27550         * tree-ssa-loop-niter.c: Include wide-int-print.h.
27551         (split_to_var_and_offset): Use wide-int interfaces.
27552         (determine_value_range): Likewise.
27553         (bound_difference_of_offsetted_base): Likewise.
27554         (bounds_add): Take a widest_int instead of a double_int.
27555         (number_of_iterations_ne_max): Use wide-int interfaces.
27556         (number_of_iterations_ne): Likewise.
27557         (number_of_iterations_lt_to_ne): Likewise.
27558         (assert_loop_rolls_lt): Likewise.
27559         (number_of_iterations_lt): Likewise.
27560         (number_of_iterations_le): Likewise.
27561         (number_of_iterations_cond): Likewise.
27562         (number_of_iterations_exit): Likewise.
27563         (finite_loop_p): Likewise.
27564         (derive_constant_upper_bound_assign): Likewise.
27565         (derive_constant_upper_bound): Return a widest_int.
27566         (derive_constant_upper_bound_ops): Likewise.
27567         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
27568         (record_estimate): Take a widest_int rather than a double_int.
27569         (record_nonwrapping_iv): Use wide-int interfaces.
27570         (double_int_cmp): Delete.
27571         (wide_int_cmp): New.
27572         (bound_index): Take a widest_int rather than a double_int.
27573         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
27574         (maybe_lower_iteration_bound): Likewise.
27575         (estimate_numbers_of_iterations_loop): Likewise.
27576         (estimated_loop_iterations): Take a widest_int pointer than than
27577         a double_int pointer.
27578         (estimated_loop_iterations_int): Use wide-int interfaces.
27579         (max_loop_iterations): Take a widest_int pointer than than
27580         a double_int pointer.
27581         (max_loop_iterations_int): Use wide-int interfaces.
27582         (max_stmt_executions): Take a widest_int pointer than than
27583         a double_int pointer.
27584         (estimated_stmt_executions): Likewise.
27585         (n_of_executions_at_most): Use wide-int interfaces.
27586         (scev_probably_wraps_p): Likewise.
27587         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
27588         to real_to_integer.
27589         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
27590         interfaces.
27591         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
27592         double_ints.  Adjust for trailing_wide_ints <3> representation.
27593         (set_nonzero_bits): Likewise.
27594         (get_range_info): Return wide_ints rather than double_ints.
27595         Adjust for trailing_wide_ints <3> representation.
27596         (get_nonzero_bits): Likewise.
27597         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
27598         representation.
27599         * tree-ssanames.h (struct range_info_def): Replace min, max and
27600         nonzero_bits with a trailing_wide_ints <3>.
27601         (set_range_info): Use wide_int_refs rather than double_ints.
27602         (set_nonzero_bits): Likewise.
27603         (get_range_info): Return wide_ints rather than double_ints.
27604         (get_nonzero_bits): Likewise.
27605         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
27606         * tree-ssa-pre.c (phi_translate_1): Likewise.
27607         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
27608         (acceptable_pow_call): Likewise.
27609         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
27610         interfaces.
27611         (vn_reference_fold_indirect): Likewise.
27612         (vn_reference_maybe_forwprop_address): Likewise.
27613         (valueize_refs_1): Likewise.
27614         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
27615         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
27616         tree_int_cst_lt and tree_int_cst_le.
27617         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
27618         interfaces.
27619         (streamer_alloc_tree): Likewise.
27620         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
27621         (streamer_write_tree_header): Likewise.
27622         (streamer_write_integer_cst): Likewise.
27623         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
27624         (build_constructors): Likewise.
27625         (array_value_type): Likewise.
27626         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
27627         (vect_check_gather): Likewise.
27628         * tree-vect-generic.c (build_replicated_const): Likewise.
27629         (expand_vector_divmod): Likewise.
27630         * tree-vect-loop.c (vect_transform_loop): Likewise.
27631         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27632         (vect_do_peeling_for_alignment): Likewise.
27633         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
27634         * tree-vrp.c: Include wide-int.h.
27635         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
27636         (extract_range_from_assert): Use wide-int interfaces.
27637         (vrp_int_const_binop): Likewise.
27638         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
27639         double_int pointers.
27640         (ranges_from_anti_range): Use wide-int interfaces.
27641         (quad_int_cmp): Delete.
27642         (quad_int_pair_sort): Likewise.
27643         (extract_range_from_binary_expr_1): Use wide-int interfaces.
27644         (extract_range_from_unary_expr_1): Likewise.
27645         (adjust_range_with_scev): Likewise.
27646         (masked_increment): Take and return wide_ints rather than double_ints.
27647         (register_edge_assert_for_2): Use wide-int interfaces.
27648         (check_array_ref): Likewise.
27649         (search_for_addr_array): Likewise.
27650         (maybe_set_nonzero_bits): Likewise.
27651         (union_ranges): Pass an integer of the correct type instead of
27652         using integer_one_node.
27653         (intersect_ranges): Likewise.
27654         (simplify_truth_ops_using_ranges): Likewise.
27655         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27656         (range_fits_type_p): Likewise.
27657         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
27658         a bool.
27659         (simplify_conversion_using_ranges): Use wide-int interfaces.
27660         (simplify_float_conversion_using_ranges): Likewise.
27661         (vrp_finalize): Likewise.
27662         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27663         (gimple_stringops_transform): Likewise.
27664         * varasm.c (decode_addr_const): Likewise.
27665         (const_hash_1): Likewise.
27666         (const_rtx_hash_1): Likewise
27667         (output_constant): Likewise.
27668         (array_size_for_constructor): Likewise.
27669         (output_constructor_regular_field): Likewise.
27670         (output_constructor_bitfield): Likewise.
27671         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27672         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27673         GENERATOR_FILEs.
27674         * gencheck.c: Define BITS_PER_UNIT.
27675         * wide-int.cc: New.
27676         * wide-int.h: New.
27677         * wide-int-print.cc: New.
27678         * wide-int-print.h: New.
27679
27680 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27681
27682         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27683
27684 2014-05-06  Richard Biener  <rguenther@suse.de>
27685
27686         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27687         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27688         (TODO_verify_all): Adjust.
27689         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27690         TODO_verify_stmts and TODO_verify_rtl_sharing.
27691         * bb-reorder.c: Likewise.
27692         * cfgexpand.c: Likewise.
27693         * cprop.c: Likewise.
27694         * cse.c: Likewise.
27695         * function.c: Likewise.
27696         * fwprop.c: Likewise.
27697         * gcse.c: Likewise.
27698         * gimple-ssa-isolate-paths.c: Likewise.
27699         * gimple-ssa-strength-reduction.c: Likewise.
27700         * ipa-split.c: Likewise.
27701         * loop-init.c: Likewise.
27702         * loop-unroll.c: Likewise.
27703         * lower-subreg.c: Likewise.
27704         * modulo-sched.c: Likewise.
27705         * postreload-gcse.c: Likewise.
27706         * predict.c: Likewise.
27707         * recog.c: Likewise.
27708         * sched-rgn.c: Likewise.
27709         * store-motion.c: Likewise.
27710         * tracer.c: Likewise.
27711         * trans-mem.c: Likewise.
27712         * tree-call-cdce.c: Likewise.
27713         * tree-cfg.c: Likewise.
27714         * tree-cfgcleanup.c: Likewise.
27715         * tree-complex.c: Likewise.
27716         * tree-eh.c: Likewise.
27717         * tree-emutls.c: Likewise.
27718         * tree-if-conv.c: Likewise.
27719         * tree-into-ssa.c: Likewise.
27720         * tree-loop-distribution.c: Likewise.
27721         * tree-object-size.c: Likewise.
27722         * tree-parloops.c: Likewise.
27723         * tree-pass.h: Likewise.
27724         * tree-sra.c: Likewise.
27725         * tree-ssa-ccp.c: Likewise.
27726         * tree-ssa-copy.c: Likewise.
27727         * tree-ssa-copyrename.c: Likewise.
27728         * tree-ssa-dce.c: Likewise.
27729         * tree-ssa-dom.c: Likewise.
27730         * tree-ssa-dse.c: Likewise.
27731         * tree-ssa-forwprop.c: Likewise.
27732         * tree-ssa-ifcombine.c: Likewise.
27733         * tree-ssa-loop-ch.c: Likewise.
27734         * tree-ssa-loop-ivcanon.c: Likewise.
27735         * tree-ssa-loop.c: Likewise.
27736         * tree-ssa-math-opts.c: Likewise.
27737         * tree-ssa-phiopt.c: Likewise.
27738         * tree-ssa-phiprop.c: Likewise.
27739         * tree-ssa-pre.c: Likewise.
27740         * tree-ssa-reassoc.c: Likewise.
27741         * tree-ssa-sink.c: Likewise.
27742         * tree-ssa-strlen.c: Likewise.
27743         * tree-ssa-tail-merge.c: Likewise.
27744         * tree-ssa-uncprop.c: Likewise.
27745         * tree-switch-conversion.c: Likewise.
27746         * tree-tailcall.c: Likewise.
27747         * tree-vect-generic.c: Likewise.
27748         * tree-vectorizer.c: Likewise.
27749         * tree-vrp.c: Likewise.
27750         * tsan.c: Likewise.
27751         * var-tracking.c: Likewise.
27752         * bt-load.c: Likewise.
27753         * cfgcleanup.c: Likewise.
27754         * combine-stack-adj.c: Likewise.
27755         * combine.c: Likewise.
27756         * compare-elim.c: Likewise.
27757         * config/epiphany/resolve-sw-modes.c: Likewise.
27758         * config/i386/i386.c: Likewise.
27759         * config/mips/mips.c: Likewise.
27760         * config/s390/s390.c: Likewise.
27761         * config/sh/sh_treg_combine.cc: Likewise.
27762         * config/sparc/sparc.c: Likewise.
27763         * dce.c: Likewise.
27764         * dse.c: Likewise.
27765         * final.c: Likewise.
27766         * ifcvt.c: Likewise.
27767         * mode-switching.c: Likewise.
27768         * passes.c: Likewise.
27769         * postreload.c: Likewise.
27770         * ree.c: Likewise.
27771         * reg-stack.c: Likewise.
27772         * regcprop.c: Likewise.
27773         * regrename.c: Likewise.
27774         * web.c: Likewise.
27775
27776 2014-05-06  Richard Biener  <rguenther@suse.de>
27777
27778         PR middle-end/61070
27779         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27780         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27781
27782 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
27783
27784         PR ipa/60965
27785         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27786
27787 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
27788             Tom de Vries  <tom@codesourcery.com>
27789
27790         * target.def (call_fusage_contains_non_callee_clobbers): New
27791         DEFHOOKPOD.
27792         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27793         Hooks to @menu.
27794         (@node Miscellaneous Register Hooks): New node.
27795         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27796         * doc/tm.texi: Regenerate.
27797
27798 2014-05-05  Marek Polacek  <polacek@redhat.com>
27799
27800         PR driver/61065
27801         * opts.c (common_handle_option): Call error_at instead of warning_at.
27802
27803 2014-05-05  Richard Biener  <rguenther@suse.de>
27804
27805         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27806         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
27807         under the TODO_verify_il umbrella.
27808
27809 2014-05-05  Richard Biener  <rguenther@suse.de>
27810
27811         * passes.c (execute_function_todo): Move TODO_verify_flow under
27812         the TODO_verify_ul umbrella.
27813
27814 2014-05-05  Richard Biener  <rguenther@suse.de>
27815
27816         PR middle-end/61010
27817         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27818         X & CST away from a CST that is the mask of a mode.
27819
27820 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27821
27822         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27823         int argument to enum machine_mode.
27824         (picochip_class_max_nregs): Ditto.
27825         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27826         (picochip_class_max_nregs): Ditto.
27827
27828 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27829
27830         * target.def: Add new target hook.
27831         * doc/tm.texi: Regenerate.
27832         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27833         * targhooks.c (default_keep_leaf_when_profiled): New function.
27834
27835         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27836         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27837
27838 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
27839
27840         PR tree-optimization/60363
27841         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27842         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
27843         (update_destination_phis): New parameter.
27844         (create_edge_and_update_destination_phis): Ditto.
27845         (ssa_fix_duplicate_block_edges): Pass new arguments.
27846         (thread_single_edge): Ditto.
27847
27848 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
27849
27850         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27851         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27852         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27853         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27854         Use RS6000_BTM_HARD_FLOAT.
27855         (BU_MISC_2): Likewise.
27856         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27857         RS6000_BTM_HARD_FLOAT.
27858         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27859         is explicitly used.
27860         (rs6000_invalid_builtin): Add hard floating builtin support.
27861         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27862         hard float builtins.
27863         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27864
27865 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27866
27867         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27868         Add missing function* argument.
27869
27870 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27871
27872         * lra-constraints.c (valid_address_p): Move earlier in file.
27873         Add a constraint argument to the address_info version.
27874         (satisfies_memory_constraint_p): New function.
27875         (satisfies_address_constraint_p): Likewise.
27876         (process_alt_operands, curr_insn_transform): Use them.
27877         (process_address): Pass the constraint to valid_address_p when
27878         checking address operands.
27879
27880 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27881
27882         * config/mips/mips.c (mips_isa_rev): New variable.
27883         (mips_set_architecture): Set it.
27884         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27885         from mips_isa_rev.
27886         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27887         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27888         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27889         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27890         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27891         conditions in terms of mips_isa_rev.
27892         (mips_isa_rev): Declare.
27893
27894 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27895
27896         * config/sh/sh-mem.cc: Use tabs instead of spaces.
27897         (prob_unlikely, prob_likely): Make variables const.
27898
27899 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
27900
27901         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27902
27903 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27904
27905         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27906
27907 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27908
27909         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27910         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27911         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27912         functions.
27913         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27914         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27915         sh_pass_in_reg_p.
27916         Replace usage of ROUND_REG with sh_round_reg.
27917         Use CEIL instead of ROUND_ADVANCE.
27918
27919 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27920
27921         PR target/61026
27922         * config/sh/sh.c: Include stdlib headers before everything else.
27923
27924 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
27925
27926         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27927         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27928         (gimplify_adjust_omp_clauses): Simd region is never
27929         directly nested in combined parallel.  Instead, for linear
27930         with copyin/copyout, if in combined for simd loop, make decl
27931         firstprivate/lastprivate on OMP_FOR.
27932         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27933         expand_omp_for_static_chunk): When setting endvar, also set
27934         fd->loop.v to the same value.
27935
27936 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27937
27938         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27939
27940 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
27941
27942         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27943         expression.
27944
27945 2014-05-02  Marek Polacek  <polacek@redhat.com>
27946
27947         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27948
27949 2014-05-02  Kito Cheng  <kito@0xlab.org>
27950
27951         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27952         to a C expression marco.
27953         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27954         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27955         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27956         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27957         HONOR_REG_ALLOC_ORDER.
27958         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27959
27960 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27961
27962         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27963
27964 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27965
27966         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27967
27968 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27969
27970         * tree-if-conv.c (is_cond_scalar_reduction): New function.
27971         (convert_scalar_cond_reduction): Likewise.
27972         (predicate_scalar_phi): Add recognition and transformation
27973         of simple conditioanl reduction to be vectorizable.
27974
27975 2014-05-01  Marek Polacek  <polacek@redhat.com>
27976
27977         PR c/43245
27978         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27979
27980 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
27981
27982         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27983         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27984         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27985         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27986         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27987         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27988         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27989         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27990
27991 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
27992
27993         * config/arc/arc.opt (mlra): Move comment above option name
27994         to avoid mis-parsing as language options.
27995
27996 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27997
27998         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27999         * config/sol2.h: ... here.
28000         * config/sol2-10.h: Remove.
28001
28002         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
28003         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
28004         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
28005         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
28006         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
28007         * config/sol2.h: ... here.
28008         (SECTION_NAME_FORMAT): Don't redefine.
28009         (STARTFILE_ARCH32_SPEC): Rename to ...
28010         (STARTFILE_ARCH_SPEC): ... this.
28011         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
28012         * config/sparc/sol2.h: ... here.
28013         (SECTION_NAME_FORMAT): Don't undef.
28014         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
28015         (SUBTARGET_EXTRA_SPECS): Remove.
28016         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
28017
28018         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
28019         (MD_STARTFILE_PREFIX): Remove.
28020         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
28021         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
28022         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
28023         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
28024         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
28025         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
28026         * config/i386/sol2.h: ... here.
28027         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
28028         * config/i386/sol2-bi.h: Remove.
28029         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
28030         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
28031
28032         * config/i386/t-sol2-64: Rename to ...
28033         * config/i386/t-sol2: ... this.
28034         * config/sparc/t-sol2-64: Rename to ...
28035         * config/sparc/t-sol2: ... this.
28036
28037         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
28038         sol2_tm_file_head, sol2_tm_file_tail.
28039         Include ${cpu_type}/sol2.h before sol2.h.
28040         Remove sol2-10.h.
28041         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
28042         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
28043         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
28044         Reflect i386/t-sol2-64 renaming.
28045         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
28046         Reflect sparc/t-sol2-64 renaming.
28047
28048 2014-04-30  Richard Biener  <rguenther@suse.de>
28049
28050         * passes.c (execute_function_todo): Move TODO_verify_stmts
28051         and TODO_verify_ssa under the TODO_verify_il umbrella.
28052         * tree-ssa.h (verify_ssa): Adjust prototype.
28053         * tree-ssa.c (verify_ssa): Add parameter to tell whether
28054         we should verify SSA operands.
28055         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
28056         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
28057         whether we should verify whether not throwing stmts have EH info.
28058         * graphite-scop-detection.c (create_sese_edges): Adjust.
28059         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
28060         * tree-eh.c (lower_try_finally_switch): Do not add the
28061         default case label twice.
28062
28063 2014-04-30  Marek Polacek  <polacek@redhat.com>
28064
28065         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
28066         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
28067         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
28068         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
28069
28070 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28071
28072         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
28073         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
28074         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
28075         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
28076         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
28077         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
28078         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
28079         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
28080
28081 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
28082
28083         * tree-cfg.c (dump_function_to_file): Dump the return type of
28084         functions, in a line to itself before the function body, mimicking
28085         the layout of a C function.
28086
28087 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
28088
28089         PR tree-optimization/60971
28090         * tree-tailcall.c (process_assignment): Reject conversions which
28091         reduce precision.
28092
28093 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28094
28095         * calls.c (initialize_argument_information): Always treat
28096         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
28097         (expand_call): Likewise.
28098         (emit_library_call_calue_1): Likewise.
28099         * expr.c (PUSH_ARGS_REVERSED): Do not define.
28100         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
28101         code accordingly.
28102
28103 2014-04-29  Nick Clifton  <nickc@redhat.com>
28104
28105         * config/msp430/msp430.md (umulsidi): Fix typo.
28106         (mulhisi3): Enable even inside interrupt handlers.
28107         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
28108         bigger return address pushed in large mode.
28109
28110 2014-04-29  Nick Clifton  <nickc@redhat.com>
28111
28112         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
28113         (arc_init_reg_tables): Use a machine_mode enum to iterate over
28114         available modes.
28115         * config/m32r/m32r.c (init_reg_tables): Likewise.
28116         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
28117         enum to hold the modes.
28118
28119 2014-04-29  Richard Biener  <rguenther@suse.de>
28120
28121         * dominance.c (free_dominance_info): Add overload with
28122         function parameter.
28123         (dom_info_state): Likewise.
28124         (dom_info_available_p): Likewise.
28125         * basic-block.h (free_dominance_info, dom_info_state,
28126         dom_info_available_p): Declare overloads.
28127         * passes.c (execute_function_todo): Verify that verifiers
28128         don't change dominator info state.  Drop dominator info
28129         for IPA pass invocations.
28130         * cgraph.c (release_function_body): Restore asserts that
28131         dominator information is released.
28132
28133 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
28134
28135         * doc/invoke.texi: Fix typo.
28136         * tree-vrp.c: Fix typos.
28137         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
28138
28139 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28140
28141         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
28142
28143 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
28144
28145         * config/aarch64/aarch64-builtins.c
28146         (aarch64_types_storestruct_lane_qualifiers): New.
28147         (TYPES_STORESTRUCT_LANE): Likewise.
28148         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
28149         (st3_lane): Likewise.
28150         (st4_lane): Likewise.
28151         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
28152         (vec_store_lanesci_lane<mode>): Likewise.
28153         (vec_store_lanesxi_lane<mode>): Likewise.
28154         (aarch64_st2_lane<VQ:mode>): Likewise.
28155         (aarch64_st3_lane<VQ:mode>): Likewise.
28156         (aarch64_st4_lane<VQ:mode>): Likewise.
28157         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
28158         * config/aarch64/arm_neon.h
28159         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
28160         use new macro arguments.
28161         (__ST3_LANE_FUNC): Likewise.
28162         (__ST4_LANE_FUNC): Likewise.
28163         * config/aarch64/iterators.md (V_TWO_ELEM): New.
28164         (V_THREE_ELEM): Likewise.
28165         (V_FOUR_ELEM): Likewise.
28166
28167 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
28168
28169         * doc/gimple.texi: Replace the description of the now-defunct
28170         union gimple_statement_d with a diagram showing the
28171         gimple_statement_base class hierarchy and its relationships to
28172         the GSS_ and GIMPLE_ enums.
28173
28174 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
28175
28176         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
28177         * config/aarch64/aarch64.c
28178         (aarch64_cannot_change_mode_class): Weaken conditions.
28179         (aarch64_modes_tieable_p): New.
28180         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
28181
28182 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
28183
28184         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28185         (loadsync_<mode>): Change mode.
28186         (load_quadpti, store_quadpti): New.
28187         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28188         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28189
28190 2014-04-28  Martin Jambor  <mjambor@suse.cz>
28191
28192         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
28193         same alias type as the original statement.
28194         (subreplacement_assignment_data): New type.
28195         (handle_unscalarized_data_in_subtree): New type of parameter,
28196         generate new memory accesses with same alias type as the original
28197         statement.
28198         (load_assign_lhs_subreplacements): Likewise.
28199         (sra_modify_constructor_assign): Generate new memory accesses with
28200         same alias type as the original statement.
28201
28202 2014-04-28  Richard Biener  <rguenther@suse.de>
28203
28204         * tree-pass.h (TODO_verify_il): Define.
28205         (TODO_verify_all): Complete properly.
28206         * passes.c (execute_function_todo): Move existing loop-closed
28207         SSA verification under TODO_verify_il.
28208         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
28209         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
28210         Fix tree sharing issue.
28211
28212 2014-04-28  Richard Biener  <rguenther@suse.de>
28213
28214         PR middle-end/60092
28215         * builtins.def (DEF_C11_BUILTIN): Add.
28216         (BUILT_IN_ALIGNED_ALLOC): Likewise.
28217         * coretypes.h (enum function_class): Add function_c11_misc.
28218         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
28219         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
28220         (call_may_clobber_ref_p_1): Likewise.
28221         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
28222         (mark_all_reaching_defs_necessary_1): Likewise.
28223         (propagate_necessity): Likewise.
28224         (eliminate_unnecessary_stmts): Likewise.
28225         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
28226
28227 2014-04-28  Richard Biener  <rguenther@suse.de>
28228
28229         * tree-vrp.c (vrp_var_may_overflow): Remove.
28230         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
28231         with overflow immediately bump to one before that value and
28232         let iteration figure out overflow status.
28233
28234 2014-04-28  Richard Biener  <rguenther@suse.de>
28235
28236         * configure.ac: Do valgrind header checks unconditionally.
28237         Add --enable-valgrind-annotations.
28238         * system.h: Guard valgrind header inclusion with
28239         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
28240         * alloc-pool.c (pool_alloc, pool_free): Use
28241         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
28242         to guard possibly dead code.
28243         * config.in: Regenerated.
28244         * configure: Likewise.
28245
28246 2014-04-28  Jeff Law  <law@redhat.com>
28247
28248         PR tree-optimization/60902
28249         * tree-ssa-threadedge.c
28250         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
28251         over real defs when invalidating outputs from statements that do not
28252         produce useful outputs for threading.
28253
28254 2014-04-28  Richard Biener  <rguenther@suse.de>
28255
28256         PR tree-optimization/60979
28257         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
28258         SCOPs that end in a block with a successor with abnormal
28259         predecessors.
28260
28261 2014-04-28  Richard Biener  <rguenther@suse.de>
28262
28263         * tree-pass.h (execute_pass_list): Adjust prototype.
28264         * passes.c (pass_manager::execute_early_local_passes): Adjust.
28265         (do_per_function): Change callback signature, push all actual
28266         work to the callbals.
28267         (do_per_function_toporder): Likewise.
28268         (execute_function_dump): Adjust.
28269         (execute_function_todo): Likewise.
28270         (clear_last_verified): Likewise.
28271         (verify_curr_properties): Likewise.
28272         (update_properties_after_pass): Likewise.
28273         (execute_pass_list_1): Split out from ...
28274         (execute_pass_list): ... here.  Adjust.
28275         (execute_ipa_pass_list): Likewise.
28276         * cgraphunit.c (cgraph_add_new_function): Adjust.
28277         (analyze_function): Likewise.
28278         (expand_function): Likewise.
28279         * cgraph.c (release_function_body): Free dominance info
28280         here instead of asserting it was magically freed elsewhere.
28281
28282 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28283
28284         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
28285         * configure: Regenerate.
28286         * config/sparc/sparc.opt (muser-mode): New option.
28287         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
28288         for LEON3.
28289         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
28290         * doc/invoke.texi (SPARC options): Document -muser-mode.
28291
28292 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
28293
28294         * cselib.c (find_slot_memmode): Delete.
28295         (cselib_hasher): Change compare_type to a struct.
28296         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
28297         constants.
28298         (preserve_constants_and_equivs): Adjust for new compare_type.
28299         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
28300         (wrap_constant): Delete.
28301         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
28302
28303 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
28304
28305         * doc/install.texi (Building with profile feedback): Remove
28306         outdated sentence.
28307
28308 2014-04-26  Tom de Vries  <tom@codesourcery.com>
28309
28310         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
28311         array accesses.
28312
28313 2014-04-25  Cary Coutant  <ccoutant@google.com>
28314
28315         PR debug/60929
28316         * dwarf2out.c (should_move_die_to_comdat): A type definition
28317         can contain a subprogram definition, but don't move it to a
28318         comdat unit.
28319         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
28320         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
28321         from original DIE.
28322         (clone_tree_hash): Rename to...
28323         (clone_tree_partial): ...this; change callers.  Copy
28324         DW_TAG_subprogram DIEs as declarations.
28325         (copy_decls_walk): Don't copy children of a declaration into a
28326         type unit.
28327
28328 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
28329
28330         PR target/60969
28331         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
28332         alternative 12.
28333
28334 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
28335
28336         * config/arm/predicates.md (call_insn_operand): Add long_call check.
28337         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
28338         reg for long_call.
28339         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
28340         restriction.
28341
28342 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28343
28344         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
28345
28346 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28347
28348         PR tree-optimization/60930
28349         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
28350         creating a multiply candidate by folding two constant
28351         multiplicands when the result overflows.
28352
28353 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
28354
28355         PR tree-optimization/60960
28356         * tree-vect-generic.c (expand_vector_operation): Only call
28357         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
28358
28359 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28360
28361         * expr.c (clobber_reg_mode): New function.
28362         * expr.h (clobber_reg): New function.
28363
28364 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28365
28366         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
28367         clobbers.
28368
28369 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
28370             Tom de Vries  <tom@codesourcery.com>
28371
28372         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
28373         handle.
28374         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
28375         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
28376         new argument to find_all_hard_reg_sets call.
28377
28378 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28379
28380         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
28381         Use HOST_WIDE_INT_C for mask literal.
28382         (aarch_rev16_shleft_mask_imm_p): Likewise.
28383
28384 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
28385
28386         PR target/60941
28387         * config/sparc/sparc.md (ashlsi3_extend): Delete.
28388
28389 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
28390
28391         PR preprocessor/56540
28392         * config/i386/i386-c.c (ix86_target_macros): Define
28393         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
28394
28395 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28396
28397         * configure.ac (tga_func): Remove.
28398         (LIB_TLS_SPEC): Remove.
28399         * configure: Regenerate.
28400         * config.in: Regenerate.
28401         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
28402
28403 2014-04-25  Richard Biener  <rguenther@suse.de>
28404
28405         PR ipa/60912
28406         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
28407         call stmt use/clobber sets during stmt walk instead of
28408         walking the possibly incomplete set of caller edges.
28409
28410 2014-04-25  Richard Biener  <rguenther@suse.de>
28411
28412         PR ipa/60911
28413         * passes.c (apply_ipa_transforms): Inline into only caller ...
28414         (execute_one_pass): ... here.  Properly bring in function
28415         bodies for nodes we want to apply IPA transforms to.
28416
28417 2014-04-24  Cong Hou  <congh@google.com>
28418
28419         PR tree-optimization/60896
28420         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
28421         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
28422         (vect_mark_pattern_stmts): Set the def type of all statements in
28423         PATTERN_DEF_SEQ as vect_internal_def.
28424
28425 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28426
28427         * doc/extend.texi (PowerPC Built-in Functions): Document new
28428         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
28429         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
28430
28431         * config/rs6000/predicates.md (const_0_to_3_operand): New
28432         predicate to match 0..3 integer constants.
28433
28434         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
28435         to support adding miscellaneous builtin functions.
28436         (BU_DFP_MISC_2): Likewise.
28437         (BU_P7_MISC_1): Likewise.
28438         (BU_P7_MISC_2): Likewise.
28439         (BU_P8V_MISC_3): Likewise.
28440         (BU_MISC_1): Likewise.
28441         (BU_MISC_2): Likewise.
28442         (DIVWE): Add extended divide builtin functions.
28443         (DIVWEO): Likewise.
28444         (DIVWEU): Likewise.
28445         (DIVWEUO): Likewise.
28446         (DIVDE): Likewise.
28447         (DIVDEO): Likewise.
28448         (DIVDEU): Likewise.
28449         (DIVDEUO): Likewise.
28450         (DXEX): Add decimal floating-point builtin functions.
28451         (DXEXQ): Likewise.
28452         (DDEDPD): Likewise.
28453         (DDEDPDQ): Likewise.
28454         (DENBCD): Likewise.
28455         (DENBCDQ): Likewise.
28456         (DIEX): Likewise.
28457         (DIEXQ): Likewise.
28458         (DSCLI): Likewise.
28459         (DSCLIQ): Likewise.
28460         (DSCRI): Likewise.
28461         (DSCRIQ): Likewise.
28462         (CDTBCD): Add new BCD builtin functions.
28463         (CBCDTD): Likewise.
28464         (ADDG6S): Likewise.
28465         (BCDADD): Likewise.
28466         (BCDADD_LT): Likewise.
28467         (BCDADD_EQ): Likewise.
28468         (BCDADD_GT): Likewise.
28469         (BCDADD_OV): Likewise.
28470         (BCDSUB): Likewise.
28471         (BCDSUB_LT): Likewise.
28472         (BCDSUB_EQ): Likewise.
28473         (BCDSUB_GT): Likewise.
28474         (BCDSUB_OV): Likewise.
28475         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
28476         (UNPACK_TD): Likewise.
28477         (PACK_TF): Likewise.
28478         (UNPACK_TF): Likewise.
28479         (UNPACK_TF_0): Likewise.
28480         (UNPACK_TF_1): Likewise.
28481         (PACK_V1TI): Likewise.
28482         (UNPACK_V1TI): Likewise.
28483
28484         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28485         support for decimal floating point builtin functions.
28486         (rs6000_expand_ternop_builtin): Add checks for the new builtin
28487         functions that take constant arguments.
28488         (rs6000_invalid_builtin): Add decimal floating point builtin support.
28489         (rs6000_init_builtins): Setup long double, _Decimal64, and
28490         _Decimal128 types for new builtin functions.
28491         (builtin_function_type): Set the unsigned flags appropriately for
28492         the new builtin functions.
28493         (rs6000_opt_masks): Add support for decimal floating point builtin
28494         functions.
28495
28496         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
28497         floating point builtin functions.
28498         (RS6000_BTM_COMMON): Likewise.
28499         (RS6000_BTI_long_double): Likewise.
28500         (RS6000_BTI_dfloat64): Likewise.
28501         (RS6000_BTI_dfloat128): Likewise.
28502         (long_double_type_internal_node): Likewise.
28503         (dfloat64_type_internal_node): Likewise.
28504         (dfloat128_type_internal_node): Likewise.
28505
28506         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
28507         2.07 bcd arithmetic instructions.
28508         (UNSPEC_BCDSUB): Likewise.
28509         (UNSPEC_BCD_OVERFLOW): Likewise.
28510         (UNSPEC_BCD_ADD_SUB): Likewise.
28511         (bcd_add_sub): Likewise.
28512         (BCD_TEST): Likewise.
28513         (bcd<bcd_add_sub>): Likewise.
28514         (bcd<bcd_add_sub>_test): Likewise.
28515         (bcd<bcd_add_sub>_test2): Likewise.
28516         (bcd<bcd_add_sub>_<code>): Likewise.
28517         (peephole2 for combined bcd ops): Likewise.
28518
28519         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
28520         decimal floating point builtin functions.
28521         (UNSPEC_DENBCD): Likewise.
28522         (UNSPEC_DXEX): Likewise.
28523         (UNSPEC_DIEX): Likewise.
28524         (UNSPEC_DSCLI): Likewise.
28525         (UNSPEC_DSCRI): Likewise.
28526         (D64_D128): Likewise.
28527         (dfp_suffix): Likewise.
28528         (dfp_ddedpd_<mode>): Likewise.
28529         (dfp_denbcd_<mode>): Likewise.
28530         (dfp_dxex_<mode>): Likewise.
28531         (dfp_diex_<mode>): Likewise.
28532         (dfp_dscli_<mode>): Likewise.
28533         (dfp_dscri_<mode>): Likewise.
28534
28535         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
28536         builtin functions.
28537         (UNSPEC_CDTBCD): Likewise.
28538         (UNSPEC_CBCDTD): Likewise.
28539         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
28540         (UNSPEC_DIVEO): Likewise.
28541         (UNSPEC_DIVEU): Likewise.
28542         (UNSPEC_DIVEUO): Likewise.
28543         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
28544         pack/unpack 128-bit types.
28545         (UNSPEC_PACK_128BIT): Likewise.
28546         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
28547         (udiv<mode>3): Use idiv_ldiv mode attribute.
28548         (div<mode>3): Likewise.
28549         (addg6s): Add new BCD builtin functions.
28550         (cdtbcd): Likewise.
28551         (cbcdtd): Likewise.
28552         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
28553         (div_extend): Likewise.
28554         (div<div_extend>_<mode>"): Likewise.
28555         (FP128_64): Add support for new builtin functions to pack/unpack
28556         128-bit types.
28557         (unpack<mode>): Likewise.
28558         (unpacktf_0): Likewise.
28559         (unpacktf_1): Likewise.
28560         (unpack<mode>_dm): Likewise.
28561         (unpack<mode>_nodm): Likewise.
28562         (pack<mode>): Likewise.
28563         (unpackv1ti): Likewise.
28564         (packv1ti): Likewise.
28565
28566 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
28567
28568         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
28569         is disabled.
28570
28571 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
28572
28573         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
28574         * gimplify.c (omp_is_private): Change last argument's type to int.
28575         Only diagnose lastprivate if the simd argument is 1, only diagnose
28576         linear if the simd argument is 2.
28577         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
28578         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
28579         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
28580         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
28581         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
28582         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28583         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
28584         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28585         * tree-nested.c (convert_nonlocal_omp_clauses,
28586         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
28587
28588 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
28589
28590         PR target/60822
28591         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
28592         operand 1.
28593
28594 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
28595
28596         * flag-types.h (enum ivar_visibility): Add.
28597
28598 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
28599
28600         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
28601         function * argument.
28602
28603 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
28604
28605         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
28606
28607 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28608             Tom de Vries  <tom@codesourcery.com>
28609
28610         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
28611         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
28612         reg-note.
28613         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
28614         * emit-rtl.c (try_split): Same.
28615
28616 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28617             Tom de Vries  <tom@codesourcery.com>
28618
28619         * common.opt (fuse-caller-save): New option.
28620
28621 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
28622
28623         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
28624         elements for big-endian.
28625
28626 2014-04-24  Richard Biener  <rguenther@suse.de>
28627
28628         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
28629         during TER and instead use the sepops interface for expanding
28630         non-GIMPLE_SINGLE_RHS.
28631
28632 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28633
28634         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
28635         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
28636
28637 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28638
28639         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
28640         assembler 64-bit option.
28641         * configure: Regenerate.
28642
28643 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28644
28645         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
28646         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
28647         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
28648         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
28649         (TARGET_CRYPTO): Take TARGET_SIMD into account.
28650
28651 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28652
28653         * config/aarch64/aarch64-builtins.c
28654         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28655         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28656         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28657         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28658         builtins.
28659         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28660         (Vrevsuff): New mode attribute.
28661
28662 2014-04-24  Terry Guo  <terry.guo@arm.com>
28663
28664         * config/arm/arm.h (machine_function): Define variable
28665         after_arm_reorg here.
28666         * config/arm/arm.c (after_arm_reorg): Remove the definition.
28667         (arm_split_constant): Update the way to access variable
28668         after_arm_reorg.
28669         (arm_reorg): Ditto.
28670         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28671
28672 2014-04-23  Tom de Vries  <tom@codesourcery.com>
28673
28674         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28675
28676 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
28677
28678         * is-a.h: Update comments to reflect the following changes to the
28679         "pointerness" of the API, making the template parameter match the
28680         return type, allowing use of is-a.h with typedefs of pointers.
28681         (is_a_helper::cast): Return a T rather then a pointer to a T, so
28682         that the return type matches the parameter to the is_a_helper.
28683         (as_a): Likewise.
28684         (dyn_cast): Likewise.
28685
28686         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28687         pointer from the is-a.h API.
28688
28689         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28690         (is_a_helper <cgraph_node *>::test): ...this, matching change to
28691         is-a.h API.
28692         (is_a_helper <varpool_node>::test): Likewise, convert to...
28693         (is_a_helper <varpool_node *>::test): ...this.
28694
28695         (varpool_first_variable): Update for removal of implicit pointer
28696         from the is-a.h API.
28697         (varpool_next_variable): Likewise.
28698         (varpool_first_static_initializer): Likewise.
28699         (varpool_next_static_initializer): Likewise.
28700         (varpool_first_defined_variable): Likewise.
28701         (varpool_next_defined_variable): Likewise.
28702         (cgraph_first_defined_function): Likewise.
28703         (cgraph_next_defined_function): Likewise.
28704         (cgraph_first_function): Likewise.
28705         (cgraph_next_function): Likewise.
28706         (cgraph_first_function_with_gimple_body): Likewise.
28707         (cgraph_next_function_with_gimple_body): Likewise.
28708         (cgraph_alias_target): Likewise.
28709         (varpool_alias_target): Likewise.
28710         (cgraph_function_or_thunk_node): Likewise.
28711         (varpool_variable_node): Likewise.
28712         (symtab_real_symbol_p): Likewise.
28713         * cgraphunit.c (referred_to_p): Likewise.
28714         (analyze_functions): Likewise.
28715         (handle_alias_pairs): Likewise.
28716         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28717         * gimple-ssa.h (gimple_vuse_op): Likewise.
28718         (gimple_vdef_op): Likewise.
28719         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28720         * gimple.c (gimple_build_asm_1): Likewise.
28721         (gimple_build_try): Likewise.
28722         (gimple_build_resx): Likewise.
28723         (gimple_build_eh_dispatch): Likewise.
28724         (gimple_build_omp_for): Likewise.
28725         (gimple_omp_for_set_clauses): Likewise.
28726
28727         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28728         (is_a_helper <gimple_statement_asm *>::test): ...this.
28729         (is_a_helper <gimple_statement_bind>::test): Convert to...
28730         (is_a_helper <gimple_statement_bind *>::test): ...this.
28731         (is_a_helper <gimple_statement_call>::test): Convert to...
28732         (is_a_helper <gimple_statement_call *>::test): ...this.
28733         (is_a_helper <gimple_statement_catch>::test): Convert to...
28734         (is_a_helper <gimple_statement_catch *>::test): ...this.
28735         (is_a_helper <gimple_statement_resx>::test): Convert to...
28736         (is_a_helper <gimple_statement_resx *>::test): ...this.
28737         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28738         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28739         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28740         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28741         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28742         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28743         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28744         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28745         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28746         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28747         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28748         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28749         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28750         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28751         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28752         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28753         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28754         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28755         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28756         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28757         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28758         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28759         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28760         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28761         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28762         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28763         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28764         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28765         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28766         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28767         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28768         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28769         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28770         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28771         (is_a_helper <gimple_statement_phi>::test): Convert to...
28772         (is_a_helper <gimple_statement_phi *>::test): ...this.
28773         (is_a_helper <gimple_statement_transaction>::test): Convert to...
28774         (is_a_helper <gimple_statement_transaction *>::test): ...this.
28775         (is_a_helper <gimple_statement_try>::test): Convert to...
28776         (is_a_helper <gimple_statement_try *>::test): ...this.
28777         (is_a_helper <gimple_statement_wce>::test): Convert to...
28778         (is_a_helper <gimple_statement_wce *>::test): ...this.
28779         (is_a_helper <const gimple_statement_asm>::test): Convert to...
28780         (is_a_helper <const gimple_statement_asm *>::test): ...this.
28781         (is_a_helper <const gimple_statement_bind>::test): Convert to...
28782         (is_a_helper <const gimple_statement_bind *>::test): ...this.
28783         (is_a_helper <const gimple_statement_call>::test): Convert to...
28784         (is_a_helper <const gimple_statement_call *>::test): ...this.
28785         (is_a_helper <const gimple_statement_catch>::test): Convert to...
28786         (is_a_helper <const gimple_statement_catch *>::test): ...this.
28787         (is_a_helper <const gimple_statement_resx>::test): Convert to...
28788         (is_a_helper <const gimple_statement_resx *>::test): ...this.
28789         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28790         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28791         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28792         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28793         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28794         Convert to...
28795         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28796         ...this.
28797         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28798         Convert to...
28799         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28800         ...this.
28801         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28802         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28803         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28804         to...
28805         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28806         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28807         to...
28808         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28809         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28810         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28811         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28812         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28813         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28814         to...
28815         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28816         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28817         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28818         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28819         to...
28820         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28821         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28822         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28823         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28824         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28825         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28826         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28827         (is_a_helper <const gimple_statement_phi>::test): Convert to...
28828         (is_a_helper <const gimple_statement_phi *>::test): ...this.
28829         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28830         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28831         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28832         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28833         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28834         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28835         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28836         to...
28837         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28838         ...this.
28839         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28840         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28841
28842         (gimple_use_ops): Update for removal of implicit pointer from the
28843         is-a.h API.
28844         (gimple_set_use_ops): Likewise.
28845         (gimple_vuse): Likewise.
28846         (gimple_vdef): Likewise.
28847         (gimple_vuse_ptr): Likewise.
28848         (gimple_vdef_ptr): Likewise.
28849         (gimple_set_vuse): Likewise.
28850         (gimple_set_vdef): Likewise.
28851         (gimple_omp_return_set_lhs): Likewise.
28852         (gimple_omp_return_lhs): Likewise.
28853         (gimple_omp_return_lhs_ptr): Likewise.
28854         (gimple_call_fntype): Likewise.
28855         (gimple_call_set_fntype): Likewise.
28856         (gimple_call_set_internal_fn): Likewise.
28857         (gimple_call_use_set): Likewise.
28858         (gimple_call_clobber_set): Likewise.
28859         (gimple_bind_vars): Likewise.
28860         (gimple_bind_set_vars): Likewise.
28861         (gimple_bind_body_ptr): Likewise.
28862         (gimple_bind_set_body): Likewise.
28863         (gimple_bind_add_stmt): Likewise.
28864         (gimple_bind_block): Likewise.
28865         (gimple_bind_set_block): Likewise.
28866         (gimple_asm_ninputs): Likewise.
28867         (gimple_asm_noutputs): Likewise.
28868         (gimple_asm_nclobbers): Likewise.
28869         (gimple_asm_nlabels): Likewise.
28870         (gimple_asm_input_op): Likewise.
28871         (gimple_asm_input_op_ptr): Likewise.
28872         (gimple_asm_output_op): Likewise.
28873         (gimple_asm_output_op_ptr): Likewise.
28874         (gimple_asm_set_output_op): Likewise.
28875         (gimple_asm_clobber_op): Likewise.
28876         (gimple_asm_set_clobber_op): Likewise.
28877         (gimple_asm_label_op): Likewise.
28878         (gimple_asm_set_label_op): Likewise.
28879         (gimple_asm_string): Likewise.
28880         (gimple_catch_types): Likewise.
28881         (gimple_catch_types_ptr): Likewise.
28882         (gimple_catch_handler_ptr): Likewise.
28883         (gimple_catch_set_types): Likewise.
28884         (gimple_catch_set_handler): Likewise.
28885         (gimple_eh_filter_types): Likewise.
28886         (gimple_eh_filter_types_ptr): Likewise.
28887         (gimple_eh_filter_failure_ptr): Likewise.
28888         (gimple_eh_filter_set_types): Likewise.
28889         (gimple_eh_filter_set_failure): Likewise.
28890         (gimple_eh_must_not_throw_fndecl): Likewise.
28891         (gimple_eh_must_not_throw_set_fndecl): Likewise.
28892         (gimple_eh_else_n_body_ptr): Likewise.
28893         (gimple_eh_else_e_body_ptr): Likewise.
28894         (gimple_eh_else_set_n_body): Likewise.
28895         (gimple_eh_else_set_e_body): Likewise.
28896         (gimple_try_eval_ptr): Likewise.
28897         (gimple_try_cleanup_ptr): Likewise.
28898         (gimple_try_set_eval): Likewise.
28899         (gimple_try_set_cleanup): Likewise.
28900         (gimple_wce_cleanup_ptr): Likewise.
28901         (gimple_wce_set_cleanup): Likewise.
28902         (gimple_phi_capacity): Likewise.
28903         (gimple_phi_num_args): Likewise.
28904         (gimple_phi_result): Likewise.
28905         (gimple_phi_result_ptr): Likewise.
28906         (gimple_phi_set_result): Likewise.
28907         (gimple_phi_arg): Likewise.
28908         (gimple_phi_set_arg): Likewise.
28909         (gimple_resx_region): Likewise.
28910         (gimple_resx_set_region): Likewise.
28911         (gimple_eh_dispatch_region): Likewise.
28912         (gimple_eh_dispatch_set_region): Likewise.
28913         (gimple_omp_critical_name): Likewise.
28914         (gimple_omp_critical_name_ptr): Likewise.
28915         (gimple_omp_critical_set_name): Likewise.
28916         (gimple_omp_for_clauses): Likewise.
28917         (gimple_omp_for_clauses_ptr): Likewise.
28918         (gimple_omp_for_set_clauses): Likewise.
28919         (gimple_omp_for_collapse): Likewise.
28920         (gimple_omp_for_index): Likewise.
28921         (gimple_omp_for_index_ptr): Likewise.
28922         (gimple_omp_for_set_index): Likewise.
28923         (gimple_omp_for_initial): Likewise.
28924         (gimple_omp_for_initial_ptr): Likewise.
28925         (gimple_omp_for_set_initial): Likewise.
28926         (gimple_omp_for_final): Likewise.
28927         (gimple_omp_for_final_ptr): Likewise.
28928         (gimple_omp_for_set_final): Likewise.
28929         (gimple_omp_for_incr): Likewise.
28930         (gimple_omp_for_incr_ptr): Likewise.
28931         (gimple_omp_for_set_incr): Likewise.
28932         (gimple_omp_for_pre_body_ptr): Likewise.
28933         (gimple_omp_for_set_pre_body): Likewise.
28934         (gimple_omp_parallel_clauses): Likewise.
28935         (gimple_omp_parallel_clauses_ptr): Likewise.
28936         (gimple_omp_parallel_set_clauses): Likewise.
28937         (gimple_omp_parallel_child_fn): Likewise.
28938         (gimple_omp_parallel_child_fn_ptr): Likewise.
28939         (gimple_omp_parallel_set_child_fn): Likewise.
28940         (gimple_omp_parallel_data_arg): Likewise.
28941         (gimple_omp_parallel_data_arg_ptr): Likewise.
28942         (gimple_omp_parallel_set_data_arg): Likewise.
28943         (gimple_omp_task_clauses): Likewise.
28944         (gimple_omp_task_clauses_ptr): Likewise.
28945         (gimple_omp_task_set_clauses): Likewise.
28946         (gimple_omp_task_child_fn): Likewise.
28947         (gimple_omp_task_child_fn_ptr): Likewise.
28948         (gimple_omp_task_set_child_fn): Likewise.
28949         (gimple_omp_task_data_arg): Likewise.
28950         (gimple_omp_task_data_arg_ptr): Likewise.
28951         (gimple_omp_task_set_data_arg): Likewise.
28952         (gimple_omp_taskreg_clauses): Likewise.
28953         (gimple_omp_taskreg_clauses_ptr): Likewise.
28954         (gimple_omp_taskreg_set_clauses): Likewise.
28955         (gimple_omp_taskreg_child_fn): Likewise.
28956         (gimple_omp_taskreg_child_fn_ptr): Likewise.
28957         (gimple_omp_taskreg_set_child_fn): Likewise.
28958         (gimple_omp_taskreg_data_arg): Likewise.
28959         (gimple_omp_taskreg_data_arg_ptr): Likewise.
28960         (gimple_omp_taskreg_set_data_arg): Likewise.
28961         (gimple_omp_task_copy_fn): Likewise.
28962         (gimple_omp_task_copy_fn_ptr): Likewise.
28963         (gimple_omp_task_set_copy_fn): Likewise.
28964         (gimple_omp_task_arg_size): Likewise.
28965         (gimple_omp_task_arg_size_ptr): Likewise.
28966         (gimple_omp_task_set_arg_size): Likewise.
28967         (gimple_omp_task_arg_align): Likewise.
28968         (gimple_omp_task_arg_align_ptr): Likewise.
28969         (gimple_omp_task_set_arg_align): Likewise.
28970         (gimple_omp_single_clauses): Likewise.
28971         (gimple_omp_single_clauses_ptr): Likewise.
28972         (gimple_omp_single_set_clauses): Likewise.
28973         (gimple_omp_target_clauses): Likewise.
28974         (gimple_omp_target_clauses_ptr): Likewise.
28975         (gimple_omp_target_set_clauses): Likewise.
28976         (gimple_omp_target_child_fn): Likewise.
28977         (gimple_omp_target_child_fn_ptr): Likewise.
28978         (gimple_omp_target_set_child_fn): Likewise.
28979         (gimple_omp_target_data_arg): Likewise.
28980         (gimple_omp_target_data_arg_ptr): Likewise.
28981         (gimple_omp_target_set_data_arg): Likewise.
28982         (gimple_omp_teams_clauses): Likewise.
28983         (gimple_omp_teams_clauses_ptr): Likewise.
28984         (gimple_omp_teams_set_clauses): Likewise.
28985         (gimple_omp_sections_clauses): Likewise.
28986         (gimple_omp_sections_clauses_ptr): Likewise.
28987         (gimple_omp_sections_set_clauses): Likewise.
28988         (gimple_omp_sections_control): Likewise.
28989         (gimple_omp_sections_control_ptr): Likewise.
28990         (gimple_omp_sections_set_control): Likewise.
28991         (gimple_omp_for_set_cond): Likewise.
28992         (gimple_omp_for_cond): Likewise.
28993         (gimple_omp_atomic_store_set_val): Likewise.
28994         (gimple_omp_atomic_store_val): Likewise.
28995         (gimple_omp_atomic_store_val_ptr): Likewise.
28996         (gimple_omp_atomic_load_set_lhs): Likewise.
28997         (gimple_omp_atomic_load_lhs): Likewise.
28998         (gimple_omp_atomic_load_lhs_ptr): Likewise.
28999         (gimple_omp_atomic_load_set_rhs): Likewise.
29000         (gimple_omp_atomic_load_rhs): Likewise.
29001         (gimple_omp_atomic_load_rhs_ptr): Likewise.
29002         (gimple_omp_continue_control_def): Likewise.
29003         (gimple_omp_continue_control_def_ptr): Likewise.
29004         (gimple_omp_continue_set_control_def): Likewise.
29005         (gimple_omp_continue_control_use): Likewise.
29006         (gimple_omp_continue_control_use_ptr): Likewise.
29007         (gimple_omp_continue_set_control_use): Likewise.
29008         (gimple_transaction_body_ptr): Likewise.
29009         (gimple_transaction_label): Likewise.
29010         (gimple_transaction_label_ptr): Likewise.
29011         (gimple_transaction_set_body): Likewise.
29012         (gimple_transaction_set_label): Likewise.
29013
29014         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
29015         * ipa-inline-analysis.c (inline_write_summary): Likewise.
29016         * ipa-ref.c (ipa_record_reference): Likewise.
29017         * ipa-reference.c (analyze_function): Likewise.
29018         (ipa_reference_write_optimization_summary): Likewise.
29019         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
29020         (address_taken_from_non_vtable_p): Likewise.
29021         (comdat_can_be_unshared_p_1): Likewise.
29022         * lto-cgraph.c (lto_output_ref): Likewise.
29023         (add_references): Likewise.
29024         (compute_ltrans_boundary): Likewise.
29025         (output_symtab): Likewise.
29026         (input_ref): Likewise.
29027         (input_cgraph_1): Likewise.
29028         (output_cgraph_opt_summary): Likewise.
29029         * lto-streamer-out.c (lto_output): Likewise.
29030         (output_symbol_p): Likewise.
29031         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
29032         (lsei_start_function_in_partition): Likewise.
29033         (lsei_next_variable_in_partition): Likewise.
29034         (lsei_start_variable_in_partition): Likewise.
29035         * symtab.c (insert_to_assembler_name_hash): Likewise.
29036         (unlink_from_assembler_name_hash): Likewise.
29037         (symtab_unregister_node): Likewise.
29038         (symtab_remove_node): Likewise.
29039         (dump_symtab_node): Likewise.
29040         (verify_symtab_base): Likewise.
29041         (verify_symtab_node): Likewise.
29042         (symtab_make_decl_local): Likewise.
29043         (symtab_alias_ultimate_target): Likewise.
29044         (symtab_resolve_alias): Likewise.
29045         (symtab_get_symbol_partitioning_class): Likewise.
29046         * tree-phinodes.c (allocate_phi_node): Likewise.
29047         (reserve_phi_args_for_new_edge): Likewise.
29048         (remove_phi_args): Likewise.
29049         * varpool.c (varpool_node_for_asm): Likewise.
29050         (varpool_remove_unreferenced_decls): Likewise.
29051
29052 2014-04-23  Jeff Law  <law@redhat.com>
29053
29054         PR tree-optimization/60902
29055         * tree-ssa-threadedge.c
29056         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
29057         invalidate outputs from statements that do not produce useful
29058         outputs for threading.
29059
29060 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
29061
29062         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
29063         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
29064         machine descriptions for Stack Smashing Protector.
29065
29066 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
29067
29068         * aarch64.md (<optab>_rol<mode>3): New pattern.
29069         (<optab>_rolsi3_uxtw): Likewise.
29070         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
29071
29072 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
29073
29074         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
29075         (arm_cortex_a12_tune): Likewise.
29076
29077 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29078
29079         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
29080
29081 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29082
29083         * config/arm/arm.md (arm_rev16si2): New pattern.
29084         (arm_rev16si2_alt): Likewise.
29085         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
29086
29087 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29088
29089         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
29090         (rev16<mode>2_alt): Likewise.
29091         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
29092         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
29093         (aarch_rev16_shleft_mask_imm_p): Likewise.
29094         (aarch_rev16_p_1): Likewise.
29095         (aarch_rev16_p): Likewise.
29096         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
29097         (aarch_rev16_shright_mask_imm_p): Likewise.
29098         (aarch_rev16_shleft_mask_imm_p): Likewise.
29099
29100 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29101
29102         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
29103         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
29104         rev cost.
29105         (cortex_a53_extra_costs): Likewise.
29106         (cortex_a57_extra_costs): Likewise.
29107         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
29108         (cortexa7_extra_costs): Likewise.
29109         (cortexa8_extra_costs): Likewise.
29110         (cortexa12_extra_costs): Likewise.
29111         (cortexa15_extra_costs): Likewise.
29112         (v7m_extra_costs): Likewise.
29113         (arm_new_rtx_costs): Handle BSWAP.
29114
29115 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29116
29117         * config/arm/arm.c (cortexa8_extra_costs): New table.
29118         (arm_cortex_a8_tune): New tuning struct.
29119         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
29120
29121 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29122
29123         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
29124
29125 2014-04-23  Richard Biener  <rguenther@suse.de>
29126
29127         * Makefile.in (OBJS): Remove loop-unswitch.o.
29128         * tree-pass.h (make_pass_rtl_unswitch): Remove.
29129         * passes.def (pass_rtl_unswitch): Likewise.
29130         * loop-init.c (gate_rtl_unswitch): Likewise.
29131         (rtl_unswitch): Likewise.
29132         (pass_data_rtl_unswitch): Likewise.
29133         (pass_rtl_unswitch): Likewise.
29134         (make_pass_rtl_unswitch): Likewise.
29135         * rtl.h (reversed_condition): Likewise.
29136         (compare_and_jump_seq): Likewise.
29137         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
29138         and make static.
29139         * loop-unroll.c (compare_and_jump_seq): Likewise.
29140
29141 2014-04-23  Richard Biener  <rguenther@suse.de>
29142
29143         PR tree-optimization/60903
29144         * tree-ssa-loop-im.c (analyze_memory_references): Remove
29145         commented code block.
29146         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
29147         loop flags to newly created BBs and edges.
29148
29149 2014-04-23  Nick Clifton  <nickc@redhat.com>
29150
29151         * config/msp430/msp430.c (msp430_handle_option): Move function
29152         to msp430-common.c
29153         (msp430_option_override): Simplify mcu and mcpu option handling.
29154         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
29155         support for -mhwmult command line option.
29156         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
29157         -mhwmult command line option.
29158         (msp430_hwmult_enabled): Delete.
29159         (msp43o_output_labelref): Add support for -mhwmult command line option.
29160         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
29161         (umulsidi3): Likewise.
29162         * config/msp430/msp430.opt (mmcu): Add Report attribute.
29163         (mcpu, mlarge, msmall): Likewise.
29164         (mhwmult): New option.
29165         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
29166         prototype.
29167         (msp430_is_f5_mcu): Remove prototype.
29168         (msp430_use_f5_series_hwmult): Add prototype.
29169         * config/msp430/msp430-opts.h: New file.
29170         * common/config/msp430: New directory.
29171         * common/config/msp430/msp430-common.c: New file.
29172         * config.gcc (msp430): Remove target_has_targetm_common.
29173         * doc/invoke.texi: Document -mhwmult command line option.
29174
29175 2014-04-23  Nick Clifton  <nickc@redhat.com>
29176
29177         * config/i386/cygwin.h (ENDFILE_SPEC): Include
29178         default-manifest.o if it can be found in the search path.
29179         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29180
29181 2014-04-23  Terry Guo  <terry.guo@arm.com>
29182
29183         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
29184
29185 2014-04-23  Richard Biener  <rguenther@suse.de>
29186
29187         PR middle-end/60895
29188         * tree-inline.c (declare_return_variable): Use mark_addressable.
29189
29190 2014-04-23  Richard Biener  <rguenther@suse.de>
29191
29192         PR middle-end/60891
29193         * loop-init.c (loop_optimizer_init): Make sure to apply
29194         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
29195
29196 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29197
29198         PR sanitizer/60275
29199         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
29200         New options.
29201         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
29202         if flag_sanitize_undefined_trap_on_error.
29203         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
29204         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
29205         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
29206         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
29207         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
29208         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
29209         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
29210         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
29211         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
29212         * ubsan.c (ubsan_instrument_unreachable): Return
29213         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
29214         (ubsan_expand_null_ifn): Emit __builtin_trap ()
29215         if flag_sanitize_undefined_trap_on_error and
29216         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
29217         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
29218         instrument_bool_enum_load): Emit __builtin_trap () if
29219         flag_sanitize_undefined_trap_on_error and
29220         __builtin_handle_*_abort () if !flag_sanitize_recover.
29221         * doc/invoke.texi (-fsanitize-recover,
29222         -fsanitize-undefined-trap-on-error): Document.
29223
29224 2014-04-22  Christian Bruel  <christian.bruel@st.com>
29225
29226         * config/sh/sh.md (mov<mode>): Replace movQIHI.
29227         Force immediates to SImode.
29228
29229 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
29230
29231         * config/nios2/nios2.md (UNSPEC_ROUND): New.
29232         (lroundsfsi2): New.
29233         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
29234         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
29235         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
29236         (nios2_fpu_insn): Add entry for round.
29237         (N2FPU_NO_ERRNO_P): Define.
29238         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
29239         flag_errno_math.
29240         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
29241
29242 2014-04-22  Richard Henderson  <rth@redhat.com>
29243
29244         * config/aarch64/aarch64 (addti3, subti3): New expanders.
29245         (add<GPI>3_compare0): Remove leading * from name.
29246         (add<GPI>3_carryin): Likewise.
29247         (sub<GPI>3_compare0): Likewise.
29248         (sub<GPI>3_carryin): Likewise.
29249         (<su_optab>mulditi3): New expander.
29250         (multi3): New expander.
29251         (madd<GPI>): Remove leading * from name.
29252
29253 2014-04-22  Martin Jambor  <mjambor@suse.cz>
29254
29255         * cgraphclones.c (cgraph_function_versioning): Copy
29256         ipa_transforms_to_apply instead of asserting it is empty.
29257
29258 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
29259
29260         PR target/60868
29261         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
29262         on count_exp to get mode.
29263
29264 2014-04-22  Andrew Pinski  <apinski@cavium.com>
29265
29266         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
29267         Handle TLS for ILP32.
29268         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
29269         (tlsie_small_<mode>): this and handle PTR.
29270         (tlsie_small_sidi): New pattern.
29271         (tlsle_small): Change to an expand to handle ILP32.
29272         (tlsle_small_<mode>): New pattern.
29273         (tlsdesc_small): Rename to ...
29274         (tlsdesc_small_<mode>): this and handle PTR.
29275
29276 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29277
29278         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
29279
29280 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29281
29282         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29283         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
29284         (aarch64_types_signed_poly_qualifiers): Likewise.
29285         (aarch64_types_unsigned_signed_qualifiers): Likewise.
29286         (aarch64_types_poly_signed_qualifiers): Likewise.
29287         (TYPES_REINTERP_SS): Type macro added.
29288         (TYPES_REINTERP_SU): Likewise.
29289         (TYPES_REINTERP_SP): Likewise.
29290         (TYPES_REINTERP_US): Likewise.
29291         (TYPES_REINTERP_PS): Likewise.
29292         (aarch64_fold_builtin): New expression folding added.
29293         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
29294         Declarations removed.
29295         (REINTERP_SS): Declarations added.
29296         (REINTERP_US): Likewise.
29297         (REINTERP_PS): Likewise.
29298         (REINTERP_SU): Likewise.
29299         (REINTERP_SP): Likewise.
29300         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
29301         (vreinterpretq_p8_f64): Likewise.
29302         (vreinterpret_p16_f64): Likewise.
29303         (vreinterpretq_p16_f64): Likewise.
29304         (vreinterpret_f32_f64): Likewise.
29305         (vreinterpretq_f32_f64): Likewise.
29306         (vreinterpret_f64_f32): Likewise.
29307         (vreinterpret_f64_p8): Likewise.
29308         (vreinterpret_f64_p16): Likewise.
29309         (vreinterpret_f64_s8): Likewise.
29310         (vreinterpret_f64_s16): Likewise.
29311         (vreinterpret_f64_s32): Likewise.
29312         (vreinterpret_f64_s64): Likewise.
29313         (vreinterpret_f64_u8): Likewise.
29314         (vreinterpret_f64_u16): Likewise.
29315         (vreinterpret_f64_u32): Likewise.
29316         (vreinterpret_f64_u64): Likewise.
29317         (vreinterpretq_f64_f32): Likewise.
29318         (vreinterpretq_f64_p8): Likewise.
29319         (vreinterpretq_f64_p16): Likewise.
29320         (vreinterpretq_f64_s8): Likewise.
29321         (vreinterpretq_f64_s16): Likewise.
29322         (vreinterpretq_f64_s32): Likewise.
29323         (vreinterpretq_f64_s64): Likewise.
29324         (vreinterpretq_f64_u8): Likewise.
29325         (vreinterpretq_f64_u16): Likewise.
29326         (vreinterpretq_f64_u32): Likewise.
29327         (vreinterpretq_f64_u64): Likewise.
29328         (vreinterpret_s64_f64): Likewise.
29329         (vreinterpretq_s64_f64): Likewise.
29330         (vreinterpret_u64_f64): Likewise.
29331         (vreinterpretq_u64_f64): Likewise.
29332         (vreinterpret_s8_f64): Likewise.
29333         (vreinterpretq_s8_f64): Likewise.
29334         (vreinterpret_s16_f64): Likewise.
29335         (vreinterpretq_s16_f64): Likewise.
29336         (vreinterpret_s32_f64): Likewise.
29337         (vreinterpretq_s32_f64): Likewise.
29338         (vreinterpret_u8_f64): Likewise.
29339         (vreinterpretq_u8_f64): Likewise.
29340         (vreinterpret_u16_f64): Likewise.
29341         (vreinterpretq_u16_f64): Likewise.
29342         (vreinterpret_u32_f64): Likewise.
29343         (vreinterpretq_u32_f64): Likewise.
29344
29345 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29346
29347         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29348         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
29349         (vreinterpret_p8_s8): Likewise.
29350         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
29351         (vreinterpret_p8_s16): Likewise.
29352         (vreinterpret_p8_s32): Likewise.
29353         (vreinterpret_p8_s64): Likewise.
29354         (vreinterpret_p8_f32): Likewise.
29355         (vreinterpret_p8_u8): Likewise.
29356         (vreinterpret_p8_u16): Likewise.
29357         (vreinterpret_p8_u32): Likewise.
29358         (vreinterpret_p8_u64): Likewise.
29359         (vreinterpret_p8_p16): Likewise.
29360         (vreinterpretq_p8_s8): Likewise.
29361         (vreinterpretq_p8_s16): Likewise.
29362         (vreinterpretq_p8_s32): Likewise.
29363         (vreinterpretq_p8_s64): Likewise.
29364         (vreinterpretq_p8_f32): Likewise.
29365         (vreinterpretq_p8_u8): Likewise.
29366         (vreinterpretq_p8_u16): Likewise.
29367         (vreinterpretq_p8_u32): Likewise.
29368         (vreinterpretq_p8_u64): Likewise.
29369         (vreinterpretq_p8_p16): Likewise.
29370         (vreinterpret_p16_s8): Likewise.
29371         (vreinterpret_p16_s16): Likewise.
29372         (vreinterpret_p16_s32): Likewise.
29373         (vreinterpret_p16_s64): Likewise.
29374         (vreinterpret_p16_f32): Likewise.
29375         (vreinterpret_p16_u8): Likewise.
29376         (vreinterpret_p16_u16): Likewise.
29377         (vreinterpret_p16_u32): Likewise.
29378         (vreinterpret_p16_u64): Likewise.
29379         (vreinterpret_p16_p8): Likewise.
29380         (vreinterpretq_p16_s8): Likewise.
29381         (vreinterpretq_p16_s16): Likewise.
29382         (vreinterpretq_p16_s32): Likewise.
29383         (vreinterpretq_p16_s64): Likewise.
29384         (vreinterpretq_p16_f32): Likewise.
29385         (vreinterpretq_p16_u8): Likewise.
29386         (vreinterpretq_p16_u16): Likewise.
29387         (vreinterpretq_p16_u32): Likewise.
29388         (vreinterpretq_p16_u64): Likewise.
29389         (vreinterpretq_p16_p8): Likewise.
29390         (vreinterpret_f32_s8): Likewise.
29391         (vreinterpret_f32_s16): Likewise.
29392         (vreinterpret_f32_s32): Likewise.
29393         (vreinterpret_f32_s64): Likewise.
29394         (vreinterpret_f32_u8): Likewise.
29395         (vreinterpret_f32_u16): Likewise.
29396         (vreinterpret_f32_u32): Likewise.
29397         (vreinterpret_f32_u64): Likewise.
29398         (vreinterpret_f32_p8): Likewise.
29399         (vreinterpret_f32_p16): Likewise.
29400         (vreinterpretq_f32_s8): Likewise.
29401         (vreinterpretq_f32_s16): Likewise.
29402         (vreinterpretq_f32_s32): Likewise.
29403         (vreinterpretq_f32_s64): Likewise.
29404         (vreinterpretq_f32_u8): Likewise.
29405         (vreinterpretq_f32_u16): Likewise.
29406         (vreinterpretq_f32_u32): Likewise.
29407         (vreinterpretq_f32_u64): Likewise.
29408         (vreinterpretq_f32_p8): Likewise.
29409         (vreinterpretq_f32_p16): Likewise.
29410         (vreinterpret_s64_s8): Likewise.
29411         (vreinterpret_s64_s16): Likewise.
29412         (vreinterpret_s64_s32): Likewise.
29413         (vreinterpret_s64_f32): Likewise.
29414         (vreinterpret_s64_u8): Likewise.
29415         (vreinterpret_s64_u16): Likewise.
29416         (vreinterpret_s64_u32): Likewise.
29417         (vreinterpret_s64_u64): Likewise.
29418         (vreinterpret_s64_p8): Likewise.
29419         (vreinterpret_s64_p16): Likewise.
29420         (vreinterpretq_s64_s8): Likewise.
29421         (vreinterpretq_s64_s16): Likewise.
29422         (vreinterpretq_s64_s32): Likewise.
29423         (vreinterpretq_s64_f32): Likewise.
29424         (vreinterpretq_s64_u8): Likewise.
29425         (vreinterpretq_s64_u16): Likewise.
29426         (vreinterpretq_s64_u32): Likewise.
29427         (vreinterpretq_s64_u64): Likewise.
29428         (vreinterpretq_s64_p8): Likewise.
29429         (vreinterpretq_s64_p16): Likewise.
29430         (vreinterpret_u64_s8): Likewise.
29431         (vreinterpret_u64_s16): Likewise.
29432         (vreinterpret_u64_s32): Likewise.
29433         (vreinterpret_u64_s64): Likewise.
29434         (vreinterpret_u64_f32): Likewise.
29435         (vreinterpret_u64_u8): Likewise.
29436         (vreinterpret_u64_u16): Likewise.
29437         (vreinterpret_u64_u32): Likewise.
29438         (vreinterpret_u64_p8): Likewise.
29439         (vreinterpret_u64_p16): Likewise.
29440         (vreinterpretq_u64_s8): Likewise.
29441         (vreinterpretq_u64_s16): Likewise.
29442         (vreinterpretq_u64_s32): Likewise.
29443         (vreinterpretq_u64_s64): Likewise.
29444         (vreinterpretq_u64_f32): Likewise.
29445         (vreinterpretq_u64_u8): Likewise.
29446         (vreinterpretq_u64_u16): Likewise.
29447         (vreinterpretq_u64_u32): Likewise.
29448         (vreinterpretq_u64_p8): Likewise.
29449         (vreinterpretq_u64_p16): Likewise.
29450         (vreinterpret_s8_s16): Likewise.
29451         (vreinterpret_s8_s32): Likewise.
29452         (vreinterpret_s8_s64): Likewise.
29453         (vreinterpret_s8_f32): Likewise.
29454         (vreinterpret_s8_u8): Likewise.
29455         (vreinterpret_s8_u16): Likewise.
29456         (vreinterpret_s8_u32): Likewise.
29457         (vreinterpret_s8_u64): Likewise.
29458         (vreinterpret_s8_p8): Likewise.
29459         (vreinterpret_s8_p16): Likewise.
29460         (vreinterpretq_s8_s16): Likewise.
29461         (vreinterpretq_s8_s32): Likewise.
29462         (vreinterpretq_s8_s64): Likewise.
29463         (vreinterpretq_s8_f32): Likewise.
29464         (vreinterpretq_s8_u8): Likewise.
29465         (vreinterpretq_s8_u16): Likewise.
29466         (vreinterpretq_s8_u32): Likewise.
29467         (vreinterpretq_s8_u64): Likewise.
29468         (vreinterpretq_s8_p8): Likewise.
29469         (vreinterpretq_s8_p16): Likewise.
29470         (vreinterpret_s16_s8): Likewise.
29471         (vreinterpret_s16_s32): Likewise.
29472         (vreinterpret_s16_s64): Likewise.
29473         (vreinterpret_s16_f32): Likewise.
29474         (vreinterpret_s16_u8): Likewise.
29475         (vreinterpret_s16_u16): Likewise.
29476         (vreinterpret_s16_u32): Likewise.
29477         (vreinterpret_s16_u64): Likewise.
29478         (vreinterpret_s16_p8): Likewise.
29479         (vreinterpret_s16_p16): Likewise.
29480         (vreinterpretq_s16_s8): Likewise.
29481         (vreinterpretq_s16_s32): Likewise.
29482         (vreinterpretq_s16_s64): Likewise.
29483         (vreinterpretq_s16_f32): Likewise.
29484         (vreinterpretq_s16_u8): Likewise.
29485         (vreinterpretq_s16_u16): Likewise.
29486         (vreinterpretq_s16_u32): Likewise.
29487         (vreinterpretq_s16_u64): Likewise.
29488         (vreinterpretq_s16_p8): Likewise.
29489         (vreinterpretq_s16_p16): Likewise.
29490         (vreinterpret_s32_s8): Likewise.
29491         (vreinterpret_s32_s16): Likewise.
29492         (vreinterpret_s32_s64): Likewise.
29493         (vreinterpret_s32_f32): Likewise.
29494         (vreinterpret_s32_u8): Likewise.
29495         (vreinterpret_s32_u16): Likewise.
29496         (vreinterpret_s32_u32): Likewise.
29497         (vreinterpret_s32_u64): Likewise.
29498         (vreinterpret_s32_p8): Likewise.
29499         (vreinterpret_s32_p16): Likewise.
29500         (vreinterpretq_s32_s8): Likewise.
29501         (vreinterpretq_s32_s16): Likewise.
29502         (vreinterpretq_s32_s64): Likewise.
29503         (vreinterpretq_s32_f32): Likewise.
29504         (vreinterpretq_s32_u8): Likewise.
29505         (vreinterpretq_s32_u16): Likewise.
29506         (vreinterpretq_s32_u32): Likewise.
29507         (vreinterpretq_s32_u64): Likewise.
29508         (vreinterpretq_s32_p8): Likewise.
29509         (vreinterpretq_s32_p16): Likewise.
29510         (vreinterpret_u8_s8): Likewise.
29511         (vreinterpret_u8_s16): Likewise.
29512         (vreinterpret_u8_s32): Likewise.
29513         (vreinterpret_u8_s64): Likewise.
29514         (vreinterpret_u8_f32): Likewise.
29515         (vreinterpret_u8_u16): Likewise.
29516         (vreinterpret_u8_u32): Likewise.
29517         (vreinterpret_u8_u64): Likewise.
29518         (vreinterpret_u8_p8): Likewise.
29519         (vreinterpret_u8_p16): Likewise.
29520         (vreinterpretq_u8_s8): Likewise.
29521         (vreinterpretq_u8_s16): Likewise.
29522         (vreinterpretq_u8_s32): Likewise.
29523         (vreinterpretq_u8_s64): Likewise.
29524         (vreinterpretq_u8_f32): Likewise.
29525         (vreinterpretq_u8_u16): Likewise.
29526         (vreinterpretq_u8_u32): Likewise.
29527         (vreinterpretq_u8_u64): Likewise.
29528         (vreinterpretq_u8_p8): Likewise.
29529         (vreinterpretq_u8_p16): Likewise.
29530         (vreinterpret_u16_s8): Likewise.
29531         (vreinterpret_u16_s16): Likewise.
29532         (vreinterpret_u16_s32): Likewise.
29533         (vreinterpret_u16_s64): Likewise.
29534         (vreinterpret_u16_f32): Likewise.
29535         (vreinterpret_u16_u8): Likewise.
29536         (vreinterpret_u16_u32): Likewise.
29537         (vreinterpret_u16_u64): Likewise.
29538         (vreinterpret_u16_p8): Likewise.
29539         (vreinterpret_u16_p16): Likewise.
29540         (vreinterpretq_u16_s8): Likewise.
29541         (vreinterpretq_u16_s16): Likewise.
29542         (vreinterpretq_u16_s32): Likewise.
29543         (vreinterpretq_u16_s64): Likewise.
29544         (vreinterpretq_u16_f32): Likewise.
29545         (vreinterpretq_u16_u8): Likewise.
29546         (vreinterpretq_u16_u32): Likewise.
29547         (vreinterpretq_u16_u64): Likewise.
29548         (vreinterpretq_u16_p8): Likewise.
29549         (vreinterpretq_u16_p16): Likewise.
29550         (vreinterpret_u32_s8): Likewise.
29551         (vreinterpret_u32_s16): Likewise.
29552         (vreinterpret_u32_s32): Likewise.
29553         (vreinterpret_u32_s64): Likewise.
29554         (vreinterpret_u32_f32): Likewise.
29555         (vreinterpret_u32_u8): Likewise.
29556         (vreinterpret_u32_u16): Likewise.
29557         (vreinterpret_u32_u64): Likewise.
29558         (vreinterpret_u32_p8): Likewise.
29559         (vreinterpret_u32_p16): Likewise.
29560         (vreinterpretq_u32_s8): Likewise.
29561         (vreinterpretq_u32_s16): Likewise.
29562         (vreinterpretq_u32_s32): Likewise.
29563         (vreinterpretq_u32_s64): Likewise.
29564         (vreinterpretq_u32_f32): Likewise.
29565         (vreinterpretq_u32_u8): Likewise.
29566         (vreinterpretq_u32_u16): Likewise.
29567         (vreinterpretq_u32_u64): Likewise.
29568         (vreinterpretq_u32_p8): Likewise.
29569         (vreinterpretq_u32_p16): Likewise.
29570
29571 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29572
29573         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
29574         Pattern extended.
29575         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
29576         (sqabs): Likewise.
29577         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
29578         (vqnegd_s64): Likewise.
29579         (vqabs_s64): Likewise.
29580         (vqabsd_s64): Likewise.
29581
29582 2014-04-22  Richard Henderson  <rth@redhat.com>
29583
29584         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
29585         computation to the top of the loop.
29586
29587 2014-04-22  Renlin  <renlin.li@arm.com>
29588             Jiong Wang  <jiong.wang@arm.com>
29589
29590         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
29591         * config/aarch64/aarch64.c (aarch64_layout_frame)
29592         (aarch64_initial_elimination_offset): Likewise.
29593
29594 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29595
29596         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
29597         Fix indentation.
29598
29599 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
29600
29601         * machmode.h (bitwise_mode_for_mode): Declare.
29602         * stor-layout.h (bitwise_type_for_mode): Likewise.
29603         * stor-layout.c (bitwise_mode_for_mode): New function.
29604         (bitwise_type_for_mode): Likewise.
29605         * builtins.c (fold_builtin_memory_op): Use it instead of
29606         int_mode_for_mode and build_nonstandard_integer_type.
29607
29608 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29609
29610         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
29611         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
29612         (*-*-solaris2*): Simplify.
29613         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
29614         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
29615         *-*-solaris2.9* handling.
29616
29617         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
29618         as bug.
29619         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
29620         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
29621         handling, simplify.
29622         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
29623         * configure: Regenerate.
29624
29625         * config/i386/sol2-9.h: Remove.
29626
29627         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
29628         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
29629         Remove Solaris 9 references.
29630
29631 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
29632
29633         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
29634         (floatuns<GPI:mode><GPF:mode>2): Remove.
29635         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
29636         and floatuns conversions.
29637         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
29638         and floatuns conversions.
29639         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
29640         (w1,w2): New mode attributes for inequal width conversions.
29641
29642 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
29643
29644         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
29645         the output asm format.
29646
29647 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29648
29649         * config/aarch64/aarch64-simd.md
29650         (aarch64_cm<optab>di): Always split.
29651         (*aarch64_cm<optab>di): New.
29652         (aarch64_cmtstdi): Always split.
29653         (*aarch64_cmtstdi): New.
29654
29655 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29656
29657         PR tree-optimization/60823
29658         * omp-low.c (ipa_simd_modify_function_body): Go through
29659         all SSA_NAMEs and for those refering to vector arguments
29660         which are going to be replaced adjust SSA_NAME_VAR and,
29661         if it is a default definition, change it into a non-default
29662         definition assigned at the beginning of function from new_decl.
29663         (ipa_simd_modify_stmt_ops): Rewritten.
29664         * tree-dfa.c (set_ssa_default_def): When removing default def,
29665         check for NULL loc instead of NULL *loc.
29666
29667 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29668
29669         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29670         restrictions on core registers for DImode values in Thumb2.
29671
29672 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29673
29674         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29675         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29676
29677 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29678
29679         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29680         (*iordi_notzesidi_di): Likewise.
29681         (*iordi_notsesidi_di): Likewise.
29682
29683 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29684
29685         * config/arm/arm-protos.h (tune_params): New struct members.
29686         * config/arm/arm.c: Initialise tune_params per processor.
29687         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29688         for speed, based on new tune_params.
29689
29690 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29691
29692         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29693         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29694         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29695         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29696         * config/aarch64/arm_neon.h (vrnd_f64): Added.
29697         (vrnda_f64): Likewise.
29698         (vrndi_f64): Likewise.
29699         (vrndm_f64): Likewise.
29700         (vrndn_f64): Likewise.
29701         (vrndp_f64): Likewise.
29702         (vrndx_f64): Likewise.
29703
29704 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29705
29706         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29707         GET_MODE_SIZE argument is enum machine_mode.
29708
29709 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29710
29711         PR target/60910
29712         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29713         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29714
29715 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
29716
29717         PR middle-end/60281
29718         * asan.c (asan_emit_stack_protection): Force the base to align to
29719         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
29720         appropriate bits if STRICT_ALIGNMENT.
29721         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29722         when asan is on.
29723         (expand_used_vars): Leave a space in the stack frame for alignment
29724         if STRICT_ALIGNMENT.
29725
29726 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
29727
29728         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29729         than a gimple.
29730         (gimple_store_p): Likewise.
29731         (gimple_assign_load_p): Likewise.
29732         (gimple_assign_cast_p): Likewise.
29733         (gimple_clobber_p): Likewise.
29734
29735         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29736         rather than a gimple.
29737         (gimple_assign_cast_p): Likewise.
29738
29739 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29740
29741         PR target/60735
29742         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29743         If mode is DDmode and TARGET_E500_DOUBLE allow move.
29744
29745         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29746         more debug information for E500 if -mdebug=reg.
29747
29748 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
29749
29750         PR target/60909
29751         * config/i386/i386.c (ix86_expand_builtin)
29752         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29753         register for target RTX.
29754         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29755
29756 2014-04-18  Cong Hou  <congh@google.com>
29757
29758         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29759         the widen-mult pattern by handling two operands with different sizes,
29760         and operands whose size is smaller than half of the result type.
29761
29762 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29763
29764         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29765         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29766         (do_estimate_edge_time): Compute it.
29767         * ipa-inline.c (want_inline_small_function_p): Bypass
29768         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29769
29770 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29771
29772         * ipa-inline.c (spec_rem): New static variable.
29773         (dump_overall_stats): New function.
29774         (dump_inline_stats): New function.
29775
29776 2014-04-18  Richard Henderson  <rth@redhat.com>
29777
29778         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29779         to GET_MODE_SIZE, not a reg_class_t.
29780
29781 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29782
29783         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29784         (vsx_xxmrglw_<mode>): Likewise.
29785
29786 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
29787
29788         PR target/60876
29789         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29790         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29791         (rs6000_init_hard_regno_mode_ok): Likewise.
29792
29793 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
29794
29795         * ipa-inline.c (inline_small_functions): Account only non-cold
29796         functions.
29797         * doc/invoke.texi (inline-unit-growth): Update documentation.
29798
29799 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
29800
29801         * config/rs6000/rs6000.md (addti3, subti3): New.
29802
29803 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29804
29805         PR target/60863
29806         * config/i386/i386.c (ix86_expand_clear): Remove outdated
29807         comment.  Check optimize_insn_for_size_p instead of
29808         optimize_insn_for_speed_p.
29809
29810 2014-04-17  Martin Jambor  <mjambor@suse.cz>
29811
29812         * gimple-iterator.c (gsi_start_edge): New function.
29813         * gimple-iterator.h (gsi_start_edge): Declare.
29814         * tree-sra.c (single_non_eh_succ): New function.
29815         (disqualify_ops_if_throwing_stmt): Renamed to
29816         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
29817         having one non-EH successor BB.
29818         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29819         generate loads into replacements.
29820         (sra_modify_assign): Likewise and and also use the simple path for
29821         such statements.
29822         (sra_modify_function_body): Commit statements on edges.
29823
29824 2014-04-17  Richard Biener  <rguenther@suse.de>
29825
29826         PR middle-end/60849
29827         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29828         comparison results and add clarifying comment.
29829
29830 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29831
29832         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29833         (blank_mode): Initialize it.
29834         (emit_mode_size_inline, emit_mode_nunits_inline,
29835         emit_mode_inner_inline): New functions.
29836         (emit_insn_modes_h): Call them and surround their output with
29837         #if GCC_VERSION >= 4001 ... #endif.
29838         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29839         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29840         mode_* arrays if the argument is __builtin_constant_p.
29841         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29842         is enum machine_mode.
29843
29844 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29845
29846         * passes.c (opt_pass::execute): Adjust.
29847         (pass_manager::execute_pass_mode_switching): Likewise.
29848         (early_local_passes::execute): Likewise.
29849         (execute_one_pass): Pass cfun to the pass's execute method.
29850         * tree-pass.h (opt_pass::execute): Add function * argument.
29851         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29852         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29853         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29854         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29855         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29856         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29857         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29858         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29859         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29860         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29861         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29862         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29863         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29864         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29865         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29866         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29867         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29868         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29869         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29870         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29871         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29872         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29873         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29874         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29875         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29876         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29877         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29878         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29879         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29880         Adjust.
29881
29882 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29883
29884         * passes.c (opt_pass::gate): Take function * argument.
29885         (gate_all_early_local_passes): Merge into
29886         (early_local_passes::gate): this.
29887         (gate_all_early_optimizations): Merge into
29888         (all_early_optimizations::gate): this.
29889         (gate_all_optimizations): Mege into
29890         (all_optimizations::gate): this.
29891         (gate_all_optimizations_g): Merge into
29892         (all_optimizations_g::gate): this.
29893         (gate_rest_of_compilation): Mege into
29894         (rest_of_compilation::gate): this.
29895         (gate_postreload): Merge into
29896         (postreload::gate): this.
29897         (dump_one_pass): Pass cfun to the pass's gate method.
29898         (execute_ipa_summary_passes): Likewise.
29899         (execute_one_pass): Likewise.
29900         (ipa_write_summaries_2): Likewise.
29901         (ipa_write_optimization_summaries_1): Likewise.
29902         (ipa_read_summaries_1): Likewise.
29903         (ipa_read_optimization_summaries_1): Likewise.
29904         (execute_ipa_stmt_fixups): Likewise.
29905         * tree-pass.h (opt_pass::gate): Add function * argument.
29906         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29907         combine-stack-adj.c, combine.c, compare-elim.c,
29908         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29909         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29910         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29911         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
29912         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29913         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29914         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29915         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29916         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29917         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29918         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29919         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29920         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29921         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29922         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29923         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29924         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29925         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29926         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29927         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29928         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29929         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29930         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29931         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29932         var-tracking.c, vtable-verify.c, web.c: Adjust.
29933
29934 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29935
29936         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29937         * configure: Regenerate.
29938
29939 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29940
29941         * passes.c (dump_one_pass): don't check pass->has_gate.
29942         (execute_ipa_summary_passes): Likewise.
29943         (execute_one_pass): Likewise.
29944         (ipa_write_summaries_2): Likewise.
29945         (ipa_write_optimization_summaries_1): Likewise.
29946         (ipa_read_optimization_summaries_1): Likewise.
29947         (execute_ipa_stmt_fixups): Likewise.
29948         * tree-pass.h (pass_data::has_gate): Remove.
29949         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29950         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29951         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29952         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29953         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29954         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29955         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29956         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29957         gimple-low.c, gimple-ssa-isolate-paths.c,
29958         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29959         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29960         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29961         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29962         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29963         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29964         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29965         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29966         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29967         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29968         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29969         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29970         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29971         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29972         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29973         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29974         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29975         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29976         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29977         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29978         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29979         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29980         Adjust.
29981
29982 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29983
29984         * pass_manager.h (pass_manager::register_dump_files_1): Remove
29985         declaration.
29986         * passes.c (pass_manager::register_dump_files_1): Merge into
29987         (pass_manager::register_dump_files): this, and remove its handling of
29988         properties since the pass always has the properties anyway.
29989         (pass_manager::pass_manager): Adjust.
29990
29991 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29992
29993         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29994         * passes.c (pass_manager::register_dump_files_1): Remove dead code
29995         dealing with properties.
29996         (pass_manager::register_dump_files): Adjust.
29997
29998 2014-03-20  Mark Wielaard  <mjw@redhat.com>
29999
30000         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
30001         then represent the bound as normal constant value.
30002
30003 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
30004
30005         PR target/60847
30006         Forward port from 4.8 branch
30007         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
30008
30009         * config/i386/bmiintrin.h (_blsi_u32): New.
30010         (_blsi_u64): Ditto.
30011         (_blsr_u32): Ditto.
30012         (_blsr_u64): Ditto.
30013         (_blsmsk_u32): Ditto.
30014         (_blsmsk_u64): Ditto.
30015         (_tzcnt_u32): Ditto.
30016         (_tzcnt_u64): Ditto.
30017
30018 2014-04-17  Kito Cheng  <kito@0xlab.org>
30019
30020         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
30021
30022 2014-04-17  Richard Biener  <rguenther@suse.de>
30023
30024         PR middle-end/60849
30025         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
30026         boolean results for comparisons.
30027
30028 2014-04-17  Richard Biener  <rguenther@suse.de>
30029
30030         PR tree-optimization/60836
30031         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
30032         initial PHI args to be gimple values.
30033
30034 2014-04-17  Richard Biener  <rguenther@suse.de>
30035
30036         PR tree-optimization/60841
30037         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
30038         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
30039         of stmts to SLP build.
30040         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
30041         (vect_analyze_slp): Likewise.
30042         (vect_analyze_slp_instance): Likewise.
30043         (vect_build_slp_tree): Limit overall SLP tree growth.
30044         * tree-vectorizer.h (vect_analyze_data_refs,
30045         vect_analyze_slp): Adjust prototypes.
30046
30047 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
30048
30049         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
30050         Silvermont.
30051
30052 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
30053
30054         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
30055         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
30056         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
30057         for TARGET_SLOW_PSHUFB
30058
30059 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
30060
30061         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
30062         * config/i386/i386.c (intel_cost): Ditto.
30063
30064 2014-04-17  Joey Ye  <joey.ye@arm.com>
30065
30066         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
30067
30068 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
30069
30070         * opts.c (common_handle_option): Disable -fipa-reference coorectly
30071         with -fuse-profile.
30072
30073 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
30074
30075         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
30076         (type_all_derivations_known_p): New predicate.
30077         (type_all_ctors_visible_p): New predicate.
30078         (type_possibly_instantiated_p): New predicate.
30079         (get_odr_type): Compute all_derivations_known.
30080         (dump_odr_type): Dump the flag.
30081         (maybe_record_type): Cleanup.
30082         (record_target_from_binfo): Add bases_to_consider array;
30083         record bases for types w/o instances and skip CXX destructor.
30084         (possible_polymorphic_call_targets_1): Add bases_to_consider
30085         and consider_construction parameters; check if type may have instance.
30086         (get_polymorphic_call_info): Set maybe_in_construction to true
30087         when we know nothing.
30088         (record_targets_from_bases): Skip CXX destructors; they are
30089         never called for types in construction.
30090         (possible_polymorphic_call_targets): Do not record target when
30091         type may not have instance.
30092
30093 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
30094
30095         PR ipa/60854
30096         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
30097         external aliases alive, too.
30098
30099 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
30100
30101         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
30102         definition.
30103
30104 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
30105
30106         * final.c (compute_alignments): Do not apply loop alignment to a block
30107         falling through to the exit.
30108
30109 2014-04-16  Catherine Moore  <clm@codesourcery.com>
30110
30111         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
30112         Adjust constraints for microMIPS store patterns.
30113
30114 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
30115
30116         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
30117
30118 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
30119
30120         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
30121         (append_use): Run at -O0.
30122         (append_vdef): Likewise.
30123         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
30124         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
30125
30126 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
30127
30128         PR tree-optimization/60844
30129         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
30130         (propagate_op_to_single_use, remove_visited_stmt_chain,
30131         linearize_expr, repropagate_negates, reassociate_bb): Use it
30132         instead of gsi_remove.
30133
30134 2014-04-16  Martin Jambor  <mjambor@suse.cz>
30135
30136         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
30137         ipa_transforms_to_apply.
30138         (cgraph_function_versioning): Assert that old_node has empty
30139         ipa_transforms_to_apply.
30140         * trans-mem.c (ipa_tm_create_version): Likewise.
30141         * tree-inline.c (tree_function_versioning): Do not duplicate
30142         ipa_transforms_to_apply.
30143
30144 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30145
30146         PR target/60817
30147         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
30148         x86_64-*-* cases.
30149         Pass necessary as flags on 64-bit Solaris/x86.
30150         Use lowercase relocs for x86_64-*-*.
30151         * configure: Regenerate.
30152
30153 2014-04-15  Jan Hubicka  <jh@suse.cz>
30154
30155         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
30156         (maybe_record_node, likely_target_p): Use it.
30157
30158 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30159
30160         PR target/60839
30161         Revert following patch
30162
30163         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30164
30165         PR target/60735
30166         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30167         software floating point or no floating point registers, do not
30168         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30169         in GPRs that occurs after we tested for GPRs that would never be
30170         true.
30171
30172         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30173         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30174         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30175         specifically allow DDmode, since that does not use the SPE SIMD
30176         instructions.
30177
30178 2014-03-21  Mark Wielaard  <mjw@redhat.com>
30179
30180         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
30181         as unsigned or int depending on type and value used.
30182
30183 2014-04-15  Richard Biener  <rguenther@suse.de>
30184
30185         PR rtl-optimization/56965
30186         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
30187         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
30188         ... here.
30189         * alias.c (true_dependence_1): Do not call
30190         nonoverlapping_component_refs_p.
30191         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
30192         nonoverlapping_component_refs_p.
30193         (indirect_refs_may_alias_p): Likewise.
30194
30195 2014-04-15  Teresa Johnson  <tejohnson@google.com>
30196
30197         * cfg.c (dump_bb_info): Fix flags check.
30198         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
30199
30200 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30201
30202         PR rtl-optimization/60663
30203         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
30204         avoid 0 cost.
30205
30206 2014-04-15  Richard Biener  <rguenther@suse.de>
30207
30208         * lto-streamer.h (LTO_major_version): Bump to 4.
30209
30210 2014-04-15  Richard Biener  <rguenther@suse.de>
30211
30212         * common.opt (lto_partition_model): New enum.
30213         (flto-partition=): Merge separate options with a single with argument,
30214         add -flto-partition=one support.
30215         * flag-types.h (enum lto_partition_model): Declare.
30216         * opts.c (finish_options): Remove duplicate -flto-partition=
30217         option check.
30218         * lto-wrapper.c (run_gcc): Adjust.
30219
30220 2014-04-15  Richard Biener  <rguenther@suse.de>
30221
30222         * alias.c (ncr_compar): New function.
30223         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
30224
30225 2014-04-15  Richard Biener  <rguenther@suse.de>
30226
30227         * alias.c (record_component_aliases): Do not walk BINFOs.
30228
30229 2014-04-15  Richard Biener  <rguenther@suse.de>
30230
30231         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30232         Add struct function argument and adjust.
30233         (find_func_aliases_for_call): Likewise.
30234         (find_func_aliases): Likewise.
30235         (find_func_clobbers): Likewise.
30236         (intra_create_variable_infos): Likewise.
30237         (compute_points_to_sets): Likewise.
30238         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
30239
30240 2014-04-15  Richard Biener  <rguenther@suse.de>
30241
30242         * tree.c (iterative_hash_expr): Use enum tree_code_class
30243         to store TREE_CODE_CLASS.
30244         (tree_block): Likewise.
30245         (tree_set_block): Likewise.
30246         * tree.h (fold_build_pointer_plus_loc): Use
30247         convert_to_ptrofftype_loc.
30248
30249 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
30250
30251         PR plugins/59335
30252         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
30253         added in 4.9.
30254
30255 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
30256
30257         * cfgloop.h (struct loop): Move force_vectorize down.
30258         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
30259         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
30260         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
30261         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
30262         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
30263         * tree-core.h (enum annot_expr_kind): Add new kind values.
30264         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
30265         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
30266         kinds.
30267         * tree.def (ANNOTATE_EXPR): Tweak comment.
30268
30269 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30270
30271         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
30272         cxa_pure_virtual).
30273
30274 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
30275
30276         * tree.h (TYPE_IDENTIFIER): Declare.
30277         * tree.c (subrange_type_for_debug_p): Use it.
30278         * godump.c (go_format_type): Likewise.
30279         * dwarf2out.c (is_cxx_auto, modified_type_die,
30280         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
30281         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
30282
30283 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30284
30285         PR lto/60820
30286         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
30287
30288 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
30289
30290         * config/i386/i386.c (examine_argument): Return bool.  Return true if
30291         parameter should be passed in memory.
30292         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
30293         (construct_container): Update calls to examine_argument.
30294         (function_arg_advance_64): Ditto.
30295         (return_in_memory_32): Merge with ix86_return_in_memory.
30296         (return_in_memory_64): Ditto.
30297         (return_in_memory_ms_64): Ditto.
30298
30299 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30300
30301         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
30302         * coverage.c (coverage_compute_profile_id): Handle externally visible
30303         symbols.
30304
30305 2014-04-14  Martin Jambor  <mjambor@suse.cz>
30306
30307         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
30308         DECL_DISREGARD_INLINE_LIMITS functions.
30309
30310 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30311
30312         PR target/60827
30313         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
30314
30315 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30316
30317         PR target/60827
30318         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
30319         optimize_insn_for_speed_p instead of
30320         optimize_function_for_speed_p.
30321
30322 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
30323
30324         * doc/invoke.texi (free): Document AArch64.
30325
30326 2014-04-14  Richard Biener  <rguenther@suse.de>
30327
30328         PR tree-optimization/60042
30329         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
30330         (insert_into_preds_of_block): Do not prevent PHI insertion
30331         for REFERENCE exprs here ...
30332         (eliminate_dom_walker::before_dom_children): ... but prevent
30333         their use here under similar conditions when applied to the
30334         IL after PRE optimizations.
30335
30336 2014-04-14  Richard Biener  <rguenther@suse.de>
30337
30338         * passes.def: Move early points-to after early SRA.
30339
30340 2014-04-14  Richard Biener  <rguenther@suse.de>
30341
30342         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
30343         check for which sign-changes we allow when forwarding
30344         a converted value into a switch.
30345
30346 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30347
30348         * stor-layout.c (place_field): Finalize non-constant offset for the
30349         field, if any.
30350
30351 2014-04-14  Richard Biener  <rguenther@suse.de>
30352
30353         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
30354         as argument.
30355         (expand_switch_using_bit_tests_p): Likewise.
30356         (process_switch): Compute and pass on speed_p based on the
30357         switch stmt.
30358         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
30359         optimize_bb_for_speed_p.
30360
30361 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30362
30363         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
30364         * function.h (struct function): Rename has_force_vect_loops into
30365         has_force_vectorize_loops.
30366         * lto-streamer-in.c (input_cfg): Adjust for renaming.
30367         (input_struct_function_base): Likewise.
30368         * lto-streamer-out.c (output_cfg): Likewise.
30369         (output_struct_function_base): Likewise.
30370         * omp-low.c (expand_omp_simd): Likewise.
30371         * tree-cfg.c (move_sese_region_to_fn): Likewise.
30372         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
30373         (version_loop_for_if_conversion): Likewise.
30374         (tree_if_conversion): Likewise.
30375         (main_tree_if_conversion): Likewise.
30376         (gate_tree_if_conversion): Likewise.
30377         * tree-inline.c (copy_loops): Likewise.
30378         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
30379         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
30380         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
30381         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
30382         * tree-vectorizer.c (vectorize_loops): Likewise.
30383         * tree-vectorizer.h (unlimited_cost_model): Likewise.
30384
30385 2014-04-14  Richard Biener  <rguenther@suse.de>
30386
30387         PR lto/60720
30388         * lto-streamer-out.c (wrap_refs): New function.
30389         (lto_output): Wrap symbol references in global initializes in
30390         type-preserving MEM_REFs.
30391
30392 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30393
30394         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
30395
30396 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30397
30398         * config/sh/sh.md (setmemqi): New expand pattern.
30399         * config/sh/sh.h (CLEAR_RATIO): Define.
30400         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
30401         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
30402
30403 2014-04-14  Richard Biener  <rguenther@suse.de>
30404
30405         PR middle-end/55022
30406         * fold-const.c (negate_expr_p): Don't negate directional rounding
30407         division.
30408         (fold_negate_expr): Likewise.
30409
30410 2014-04-14  Richard Biener  <rguenther@suse.de>
30411
30412         PR tree-optimization/59817
30413         PR tree-optimization/60453
30414         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
30415         recursion to catch all CHRECs in the scalar evolution and restrict
30416         the predicate for the remains appropriately.
30417
30418 2014-04-12  Catherine Moore  <clm@codesourcery.com>
30419
30420         * config/mips/constraints.md: Add new register constraint "kb".
30421         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
30422         (*movhi_internal): Likewise.
30423         (*movqi_internal): Likewise.
30424         * config/mips/mips.h (M16_STORE_REGS): New register class.
30425         (REG_CLASS_NAMES): Add M16_STORE_REGS.
30426         (REG_CLASS_CONTENTS): Likewise.
30427         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
30428
30429 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30430
30431         PR c/60194
30432         * doc/invoke.texi (-Wformat-signedness): Document it.
30433         (Wformat=2): Mention that this enables -Wformat-signedness.
30434
30435 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30436
30437         * common/config/epiphany/epiphany-common.c
30438         (epiphany_option_optimization_table): Enable section anchors by
30439         default at -O1 or higher.
30440         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
30441         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
30442         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
30443         carries no extra cost.
30444         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
30445         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
30446         * config/epiphany/predicates.md (memclob_operand): New predicate.
30447         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
30448         Use memclob_operand predicate and X constraint for operand 3.
30449
30450 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30451
30452         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
30453         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
30454         its operands.
30455
30456 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30457
30458         PR rtl-optimization/60651
30459         * mode-switching.c (optimize_mode_switching): Make sure to emit
30460         sets of a lower numbered entity before sets of a higher numbered
30461         entity to a mode of the same or lower priority.
30462         When creating a seginfo for a basic block that starts with a code
30463         label, move the insertion point past the code label.
30464         (new_seginfo): Document and enforce requirement that
30465         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
30466         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
30467         * doc/tm.texi: Regenerate.
30468
30469 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30470
30471         PR target/60811
30472         * config/arc/arc.c (arc_save_restore): Fix assert typo.
30473
30474 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30475
30476         * BASE-VER: Set to 4.10.0.
30477
30478 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30479
30480         PR other/59055
30481         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
30482         * doc/gcc.texi (Service): Update description in the @menu
30483         * doc/invoke.texi (Option Summary): Remove misplaced and
30484         duplicated @menu.
30485
30486 2014-04-11  Steve Ellcey  <sellcey@mips.com>
30487             Jakub Jelinek  <jakub@redhat.com>
30488
30489         PR middle-end/60556
30490         * expr.c (convert_move): Use emit_store_flag_force instead of
30491         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
30492         argument to it.
30493
30494 2014-04-11  Richard Biener  <rguenther@suse.de>
30495
30496         PR middle-end/60797
30497         * varasm.c (assemble_alias): Avoid endless error reporting
30498         recursion by setting TREE_ASM_WRITTEN.
30499
30500 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30501
30502         * config/s390/s390.md: Add a splitter for NOT rtx.
30503
30504 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
30505
30506         PR rtl-optimization/60663
30507         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
30508
30509 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
30510             Jakub Jelinek  <jakub@redhat.com>
30511
30512         PR lto/60567
30513         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
30514         flag from decl_node to node.
30515
30516 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30517
30518         PR debug/60655
30519         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
30520         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
30521         ameliorating the cases where it can be.
30522
30523 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
30524
30525         Revert
30526         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30527
30528         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30529         (loadsync_<mode>): Change mode.
30530         (load_quadpti, store_quadpti): New.
30531         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30532         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30533         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
30534
30535 2014-04-09  Cong Hou  <congh@google.com>
30536
30537         PR testsuite/60773
30538         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
30539         documentation.
30540
30541 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30542
30543         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
30544         instead of vnor to exploit possible fusion opportunity in the
30545         future.
30546         (altivec_expand_vec_perm_const_le): Likewise.
30547
30548 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30549
30550         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30551         (loadsync_<mode>): Change mode.
30552         (load_quadpti, store_quadpti): New.
30553         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30554         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30555
30556 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
30557
30558         PR target/60763
30559         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
30560         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
30561         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
30562
30563 2014-04-08  Richard Biener  <rguenther@suse.de>
30564
30565         PR middle-end/60706
30566         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
30567         a 64bit widest int print double-int similar to on HWI64 hosts.
30568
30569 2014-04-08  Richard Biener  <rguenther@suse.de>
30570
30571         PR tree-optimization/60785
30572         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
30573         default defs properly.
30574
30575 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
30576
30577         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
30578         (Weffc++): Likewise.
30579
30580 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
30581
30582         * ipa-devirt.c (maybe_record_node): When node is not recorded,
30583         set completep to false rather than true.
30584
30585 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
30586
30587         PR target/60504
30588         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
30589         ARM_TARGET2_DWARF_FORMAT.
30590
30591 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
30592
30593         PR target/60609
30594         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
30595         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
30596         ADDR_DIFF_VEC.
30597
30598 2014-04-07  Richard Biener  <rguenther@suse.de>
30599
30600         PR tree-optimization/60766
30601         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
30602         (may_eliminate_iv): Convert cand_value_at result to desired type.
30603
30604 2014-04-07  Jason Merrill  <jason@redhat.com>
30605
30606         PR c++/60731
30607         * common.opt (-fno-gnu-unique): Add.
30608         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
30609
30610 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30611
30612         * haifa-sched.c: Fix outdated function reference and minor
30613         grammar errors in introductory comment.
30614
30615 2014-04-07  Richard Biener  <rguenther@suse.de>
30616
30617         PR middle-end/60750
30618         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
30619         for noreturn calls.
30620         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
30621
30622 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
30623
30624         PR debug/55794
30625         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
30626         size accounting for thunks.
30627         (pa_asm_output_mi_thunk): Use final_start_function() and
30628         final_end_function() to output function start and end directives.
30629
30630 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
30631
30632         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
30633         device specific ISA/ feature information. Remove short_sp and
30634         errata_skip ds.  Add avr_device_specific_features enum to have device
30635         specific info.
30636         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
30637         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
30638         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
30639         updated device specific info.
30640         * config/avr/avr-mcus.def: Merge device specific details to
30641         dev_attribute field.
30642         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
30643         errata_skip.
30644         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
30645         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
30646         assembler if RMW isa supported by current device.
30647         * config/avr/genmultilib.awk: Update as device info structure changed.
30648         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
30649
30650 2014-04-04  Cong Hou  <congh@google.com>
30651
30652         PR tree-optimization/60656
30653         * tree-vect-stmts.c (supportable_widening_operation):
30654         Fix a bug that elements in a vector with vect_used_by_reduction
30655         property are incorrectly reordered when the operation on it is not
30656         consistant with the one in reduction operation.
30657
30658 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
30659
30660         PR rtl-optimization/60155
30661         * gcse.c (record_set_data): New function.
30662         (single_set_gcse): New function.
30663         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30664         (hoist_code): Likewise.
30665         (get_pressure_class_and_nregs): Likewise.
30666
30667 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
30668
30669         * explow.c (probe_stack_range): Emit a final optimization blockage.
30670
30671 2014-04-04  Anthony Green  <green@moxielogic.com>
30672
30673         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30674         typos.
30675
30676 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
30677
30678         PR ipa/59626
30679         * lto-cgraph.c (input_overwrite_node): Check that partitioning
30680         flags are set only during streaming.
30681         * ipa.c (process_references, walk_polymorphic_call_targets,
30682         symtab_remove_unreachable_nodes): Drop bodies of always inline
30683         after early inlining.
30684         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30685
30686 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
30687         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30688
30689         PR debug/60655
30690         * dwarf2out.c (const_ok_for_output_1): Reject expressions
30691         containing a NOT.
30692
30693 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30694
30695         PR bootstrap/60743
30696         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30697         duration.
30698         (cortex_a53_fdivd): Likewise.
30699
30700 2014-04-04  Martin Jambor  <mjambor@suse.cz>
30701
30702         PR ipa/60640
30703         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30704         Adjust all callers.
30705         * cgraph.c (clone_of_p): Also return true if thunks match.
30706         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30707         cgraph_function_or_thunk_node and an obsolete comment.
30708         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30709         file.
30710         (build_function_decl_skip_args): Likewise.
30711         (set_new_clone_decl_and_node_flags): New function.
30712         (duplicate_thunk_for_node): Likewise.
30713         (redirect_edge_duplicating_thunks): Likewise.
30714         (cgraph_clone_node): New parameter args_to_skip, pass it to
30715         redirect_edge_duplicating_thunks which is called instead of
30716         cgraph_redirect_edge_callee.
30717         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30718         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30719
30720 2014-04-04  Jeff Law  <law@redhat.com>
30721
30722         PR target/60657
30723         * config/arm/predicates.md (const_int_I_operand): New predicate.
30724         (const_int_M_operand): Similarly.
30725         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30726         const_int_operand.
30727         (insv_t2, extv_reg, extzv_t2): Likewise.
30728         (load_multiple_with_writeback): Similarly for const_int_I_operand.
30729         (pop_multiple_with_writeback_and_return): Likewise.
30730         (vfp_pop_multiple_with_writeback): Likewise
30731
30732 2014-04-04  Richard Biener  <rguenther@suse.de>
30733
30734         PR ipa/60746
30735         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30736         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30737         non-GIMPLE_LABELs.
30738         * gimplify.h (gimple_add_tmp_var_fn): Declare.
30739         * gimplify.c (gimple_add_tmp_var_fn): New function.
30740         * gimple-expr.h (create_tmp_reg_fn): Declare.
30741         * gimple-expr.c (create_tmp_reg_fn): New function.
30742         * gimple-low.c (record_vars_into): Don't change cfun.
30743         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30744         code generation without cfun.
30745
30746 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
30747
30748         PR bootstrap/60719
30749         * Makefile.in (install-driver): Fix shell scripting.
30750
30751 2014-04-03  Cong Hou  <congh@google.com>
30752
30753         PR tree-optimization/60505
30754         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30755         threshold of number of iterations below which no vectorization
30756         will be done.
30757         * tree-vect-loop.c (new_loop_vec_info):
30758         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30759         * tree-vect-loop.c (vect_analyze_loop_operations):
30760         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30761         * tree-vect-loop.c (vect_transform_loop):
30762         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30763         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30764         of iterations of the loop and see if we should build the epilogue.
30765
30766 2014-04-03  Richard Biener  <rguenther@suse.de>
30767
30768         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30769         (streamer_tree_cache_create): Adjust.
30770         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30771         to allow optional nodes array.
30772         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30773         (streamer_tree_cache_append): Likewise.
30774         (streamer_tree_cache_create): Create nodes array optionally
30775         as specified by parameter.
30776         * lto-streamer-out.c (create_output_block): Avoid maintaining
30777         the node array in the writer cache.
30778         (DFS_write_tree): Remove assertion.
30779         (produce_asm_for_decls): Free the out decl state hash table early.
30780         * lto-streamer-in.c (lto_data_in_create): Adjust for
30781         streamer_tree_cache_create prototype change.
30782
30783 2014-04-03  Richard Biener  <rguenther@suse.de>
30784
30785         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30786         set TREE_CHAIN to NULL_TREE.
30787
30788 2014-04-03  Richard Biener  <rguenther@suse.de>
30789
30790         PR tree-optimization/60740
30791         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30792         over all GIMPLE_COND operands.
30793
30794 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
30795
30796         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30797         (Weffc++): Remove Scott's numbering, merge lists and reference
30798         Wnon-virtual-dtor.
30799
30800 2014-04-03  Nick Clifton  <nickc@redhat.com>
30801
30802         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30803         properly.
30804
30805 2014-04-03  Martin Jambor  <mjambor@suse.cz>
30806
30807         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30808         mention gcc_unreachable before failing.
30809         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30810         removed symbols.
30811
30812 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
30813
30814         PR ipa/60659
30815         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30816         inconsistent code and instead mark the context inconsistent.
30817         (possible_polymorphic_call_targets): For inconsistent contexts
30818         return empty complete list.
30819
30820 2014-04-02  Anthony Green  <green@moxielogic.com>
30821
30822         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30823         (extendqisi2, extendhisi2): Define.
30824         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30825         (WCHAR_TYPE): Change to unsigned int.
30826
30827 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30828
30829         PR tree-optimization/60733
30830         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30831         insertion point for PHI candidates to be the end of the feeding
30832         block for the PHI argument.
30833
30834 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
30835
30836         PR rtl-optimization/60650
30837         * lra-constraints.c (process_alt_operands): Decrease reject for
30838         earlyclobber matching.
30839
30840 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30841
30842         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30843
30844 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30845
30846         * config/spu/spu.c (pad_bb): Do not crash when the last
30847         insn is CODE_FOR_blockage.
30848
30849 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30850
30851         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30852         lies outside the target mode.
30853
30854 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30855
30856         PR target/60735
30857         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30858         software floating point or no floating point registers, do not
30859         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30860         in GPRs that occurs after we tested for GPRs that would never be
30861         true.
30862
30863         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30864         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30865         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30866         specifically allow DDmode, since that does not use the SPE SIMD
30867         instructions.
30868
30869 2014-04-02  Richard Biener  <rguenther@suse.de>
30870
30871         PR middle-end/60729
30872         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30873         MODE_INTs.  Properly use negv_optab.
30874         (expand_abs): Likewise.
30875
30876 2014-04-02  Richard Biener  <rguenther@suse.de>
30877
30878         PR bootstrap/60719
30879         * Makefile.in (install-driver): Guard extra installs with special
30880         names properly.
30881
30882 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
30883
30884         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30885         Document vec_vgbbd.
30886
30887 2014-04-01  Richard Henderson  <rth@redhat.com>
30888
30889         PR target/60704
30890         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30891         alternative enabled before register allocation.
30892
30893 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
30894
30895         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30896         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30897         typo.
30898         (nios2_large_got_address): Remove unneeded 'sym' parameter.
30899         (nios2_got_address): Update nios2_large_got_address call site.
30900         (nios2_delegitimize_address): New function.
30901         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30902         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30903         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30904
30905 2014-04-01  Martin Husemann  <martin@duskware.de>
30906
30907         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30908         for -mabi=32.
30909
30910 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
30911
30912         PR rtl-optimization/60604
30913         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30914         check from register_operand.
30915         (register_operand): Redefine in terms of general_operand.
30916         (nonmemory_operand): Use register_operand for the non-constant cases.
30917
30918 2014-04-01  Richard Biener  <rguenther@suse.de>
30919
30920         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30921
30922 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30923
30924         * doc/invoke.texi (mapp-regs): Clarify.
30925
30926 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
30927
30928         * config/i386/avx512fintrin.h (__v32hi): Define type.
30929         (__v64qi): Likewise.
30930         (_mm512_set1_epi8): Define.
30931         (_mm512_set1_epi16): Define.
30932         (_mm512_set4_epi32): Define.
30933         (_mm512_set4_epi64): Define.
30934         (_mm512_set4_pd): Define.
30935         (_mm512_set4_ps): Define.
30936         (_mm512_setr4_epi64): Define.
30937         (_mm512_setr4_epi32): Define.
30938         (_mm512_setr4_pd): Define.
30939         (_mm512_setr4_ps): Define.
30940         (_mm512_setzero_epi32): Define.
30941
30942 2014-03-31  Martin Jambor  <mjambor@suse.cz>
30943
30944         PR middle-end/60647
30945         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30946         callsite_arguments_match_p.  Updated all callers.  Also check types of
30947         corresponding formal parameters and actual arguments.
30948         (not_all_callers_have_enough_arguments_p) Renamed to
30949         some_callers_have_mismatched_arguments_p.
30950
30951 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
30952
30953         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30954
30955 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
30956
30957         PR target/60034
30958         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30959         section anchor.
30960
30961 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
30962
30963         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30964         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30965         Split out
30966         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30967         Use FMAMODE_NOVF512 mode iterator.
30968         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30969         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30970         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30971         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30972         Split out
30973         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30974         Use VF_128_256 mode iterator.
30975         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30976         Ditto.
30977
30978 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30979
30980         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30981         static chain if needed.
30982
30983 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30984
30985         PR target/60697
30986         * lra-constraints.c (index_part_to_reg): New.
30987         (process_address): Use it.
30988
30989 2014-03-27  Jeff Law  <law@redhat.com>
30990             Jakub Jelinek  <jakub@redhat.com>
30991
30992         PR target/60648
30993         * expr.c (do_tablejump): Use simplify_gen_binary rather than
30994         gen_rtx_{PLUS,MULT} to build up the address expression.
30995
30996         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30997         creating non-canonical RTL.
30998
30999 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
31000
31001         PR ipa/60243
31002         * ipa-inline.c (want_inline_small_function_p): Short circuit large
31003         functions; reorganize to make cheap checks first.
31004         (inline_small_functions): Do not estimate growth when dumping;
31005         it is expensive.
31006         * ipa-inline.h (inline_summary): Add min_size.
31007         (growth_likely_positive): New function.
31008         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
31009         (set_cond_stmt_execution_predicate): Cleanup.
31010         (estimate_edge_size_and_time): Compute min_size.
31011         (estimate_calls_size_and_time): Likewise.
31012         (estimate_node_size_and_time): Likewise.
31013         (inline_update_overall_summary): Update min_size.
31014         (do_estimate_edge_time): Likewise.
31015         (do_estimate_edge_size): Update.
31016         (do_estimate_edge_hints): Update.
31017         (growth_likely_positive): New function.
31018
31019 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
31020
31021         PR target/60693
31022         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
31023         also if addr has VOIDmode.
31024
31025 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31026
31027         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
31028         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
31029         Declare extern.
31030         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
31031         instructions as well as AdvancedSIMD loads.
31032
31033 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31034
31035         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
31036         Use crypto_aese type.
31037         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
31038         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
31039         crypto_aese, crypto_aesmc.  Move to types.md.
31040         * config/arm/types.md (crypto_aes): Split into crypto_aese,
31041         crypto_aesmc.
31042         * config/arm/iterators.md (crypto_type): Likewise.
31043
31044 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
31045
31046         * cgraph.c: Include expr.h and tree-dfa.h.
31047         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
31048         remove LHS.
31049
31050 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
31051
31052         PR target/60675
31053         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
31054         regs from checking multi-reg pseudos.
31055
31056 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31057
31058         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
31059
31060 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31061
31062         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
31063         if it would clobber the stack pointer, even temporarily.
31064
31065 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31066
31067         * mode-switching.c: Make small adjustments to the top comment.
31068
31069 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
31070
31071         * config/rs6000/constraints.md (wD constraint): New constraint to
31072         match the constant integer to get the top DImode/DFmode out of a
31073         vector in a VSX register.
31074
31075         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
31076         match the constant integer to get the top DImode/DFmode out of a
31077         vector in a VSX register.
31078
31079         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
31080         for ISA 2.07.
31081
31082         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31083         vbpermq builtins.
31084
31085         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31086         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
31087
31088         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
31089         Optimize vec_extract of 64-bit values, where the value being
31090         extracted is in the top word, where we can use scalar
31091         instructions.  Add direct move and store support.  Combine the big
31092         endian/little endian vector select load support into a single insn.
31093         (vsx_extract_<mode>_internal1): Likewise.
31094         (vsx_extract_<mode>_internal2): Likewise.
31095         (vsx_extract_<mode>_load): Likewise.
31096         (vsx_extract_<mode>_store): Likewise.
31097         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
31098         combined into vsx_extract_<mode>_load.
31099         (vsx_extract_<mode>_one_le): Likewise.
31100
31101         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
31102         define the top 64-bit vector element.
31103
31104         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
31105         constraint.
31106
31107         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31108         Document vec_vbpermq builtin.
31109
31110         PR target/60672
31111         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
31112         enable use of xxsldwi and xxpermdi builtin functions.
31113         (vec_xxpermdi): Likewise.
31114
31115         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31116         Document use of vec_xxsldwi and vec_xxpermdi builtins.
31117
31118 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
31119
31120         PR rtl-optimization/60650
31121         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
31122         first_p.  Use it.
31123         (find_spills_for): New.
31124         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
31125         Spill all pseudos on the second iteration.
31126
31127 2014-03-27  Marek Polacek  <polacek@redhat.com>
31128
31129         PR c/50347
31130         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
31131         types.
31132
31133 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31134
31135         * config/s390/s390.c (s390_can_use_return_insn): Check for
31136         call-saved FPRs on 31 bit.
31137
31138 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
31139
31140         PR middle-end/60682
31141         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
31142         if they need regimplification, just drop them instead of
31143         calling gimple_regimplify_operands on them.
31144
31145 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31146
31147         PR target/60580
31148         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
31149         (aarch64_frame_pointer_required): Adjust logic.
31150         (aarch64_can_eliminate): Adjust logic.
31151         (aarch64_override_options_after_change): Adjust logic.
31152
31153 2014-03-27  Dehao Chen  <dehao@google.com>
31154
31155         * ipa-inline.c (early_inliner): Update node's inline info.
31156
31157 2014-03-26  Dehao Chen  <dehao@google.com>
31158
31159         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
31160         compiler inserted conditional jumps for NAN float check.
31161
31162 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
31163
31164         * ubsan.h (ubsan_create_data): Change second argument's type
31165         to const location_t *.
31166         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
31167         _("<unknown>").
31168         (ubsan_create_data): Change second argument to const location_t *PLOC.
31169         Create Loc field whenever PLOC is non-NULL.
31170         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
31171         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
31172         callers.
31173
31174         PR other/59545
31175         * real.c (real_to_integer2): Change type of low to UHWI.
31176
31177 2014-03-26  Tobias Burnus  <burnus@net-b.de>
31178
31179         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
31180         (CILK_SELF_SPECS): New define.
31181         (driver_self_specs): Use it.
31182
31183 2014-03-26  Richard Biener  <rguenther@suse.de>
31184
31185         * tree-pretty-print.c (percent_K_format): Implement special
31186         case for LTO and its stripped down BLOCK tree.
31187
31188 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
31189
31190         PR sanitizer/60636
31191         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
31192
31193         * tree-vrp.c (simplify_internal_call_using_ranges): If only
31194         one range is range_int_cst_p, but not both, at least optimize
31195         addition/subtraction of 0 and multiplication by 0 or 1.
31196         * gimple-fold.c (gimple_fold_call): Fold
31197         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
31198         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
31199         INTEGER_CSTs, try to fold at least x * 0 and y - y.
31200
31201 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31202
31203         PR rtl-optimization/60452
31204         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
31205         <case REG>: Return 1 for invalid offsets from the frame pointer.
31206
31207 2014-03-26  Marek Polacek  <polacek@redhat.com>
31208
31209         PR c/37428
31210         * doc/extend.texi (C Extensions): Mention variable-length arrays in
31211         a structure/union.
31212
31213 2014-03-26  Marek Polacek  <polacek@redhat.com>
31214
31215         PR c/39525
31216         * doc/extend.texi (Designated Inits): Describe what happens to omitted
31217         field members.
31218
31219 2014-03-26  Marek Polacek  <polacek@redhat.com>
31220
31221         PR other/59545
31222         * ira-color.c (update_conflict_hard_regno_costs): Perform the
31223         multiplication in unsigned type.
31224
31225 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
31226
31227         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
31228
31229 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
31230
31231         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
31232
31233 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
31234
31235         PR ipa/60315
31236         * cif-code.def (UNREACHABLE) New code.
31237         * ipa-inline.c (inline_small_functions): Skip edges to
31238         __builtlin_unreachable.
31239         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
31240         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
31241         predicate to __bulitin_unreachable.
31242         (set_cond_stmt_execution_predicate): Fix issue when
31243         invert_tree_comparison returns ERROR_MARK.
31244         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
31245         propagate to inline clones.
31246         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
31247         to unreachable.
31248         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
31249         * cgraphclones.c (cgraph_clone_node): If call destination is already
31250         ureachable, do not redirect it back.
31251         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
31252         unreachable.
31253
31254 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
31255
31256         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
31257         Do not modify inline clones.
31258
31259 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31260
31261         * config/i386/i386.md (general_sext_operand): New mode attr.
31262         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
31263         don't generate (sign_extend (const_int)).
31264         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
31265         operands[2].  Use We constraint instead of <i> and
31266         <general_sext_operand> predicate instead of <general_operand>.
31267         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
31268         * config/i386/constraints.md (We): New constraint.
31269         * config/i386/predicates.md (x86_64_sext_operand,
31270         sext_operand): New predicates.
31271
31272 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31273
31274         PR ipa/60600
31275         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
31276         inconsistent devirtualizations to __builtin_unreachable.
31277
31278 2014-03-25  Marek Polacek  <polacek@redhat.com>
31279
31280         PR c/35449
31281         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
31282
31283 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
31284
31285         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
31286         order of elements for big-endian.
31287
31288 2014-03-25  Richard Biener  <rguenther@suse.de>
31289
31290         PR middle-end/60635
31291         * gimplify-me.c (gimple_regimplify_operands): Update the
31292         re-gimplifed stmt.
31293
31294 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31295
31296         PR ipa/59176
31297         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
31298         (lto_output_varpool_node): Likewise.
31299         (input_overwrite_node): Likewise.
31300         (input_varpool_node): Likewise.
31301
31302 2014-03-25  Richard Biener  <rguenther@suse.de>
31303
31304         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
31305         (run_gcc): Likewise.
31306
31307 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31308
31309         * combine.c (simplify_compare_const): Add MODE argument.
31310         Handle mode_width 0 as very large mode_width.
31311         (try_combine, simplify_comparison): Adjust callers.
31312
31313         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
31314         type to avoid signed integer overflow.
31315         * explow.c (plus_constant): Likewise.
31316
31317 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31318
31319         * doc/generic.texi: Correct typos.
31320
31321 2014-03-24  Tobias Burnus  <burnus@net-b.de>
31322
31323         * doc/invoke.texi (-flto): Expand section about
31324         using static libraries with LTO.
31325
31326 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31327
31328         PR rtl-optimization/60501
31329         * optabs.def (addptr3_optab): New optab.
31330         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
31331         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
31332         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
31333
31334         * lra.c (emit_add3_insn): Use the addptr pattern if available.
31335
31336         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
31337
31338 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
31339
31340         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
31341         _mm512_set1_pd.
31342
31343         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
31344         (_mm256_undefined_ps): Define.
31345         (_mm256_undefined_pd): Define.
31346         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
31347         (_mm_undefined_pd): Define.
31348         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
31349         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
31350         (_mm512_undefined_ps): Define.
31351         (_mm512_undefined_pd): Define.
31352         Use _mm*_undefined_*.
31353         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
31354
31355 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
31356
31357         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
31358         (lshr_simd): DI mode added.
31359         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
31360         (aarch64_ushr_simddi): Likewise.
31361         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
31362         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
31363         (vshrd_n_u64): Likewise.
31364
31365 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31366
31367         * Makefile.in (s-macro_list): Depend on cc1.
31368
31369 2014-03-23  Teresa Johnson  <tejohnson@google.com>
31370
31371         * ipa-utils.c (ipa_print_order): Use specified dump file.
31372
31373 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31374
31375         PR rtl-optimization/60601
31376         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
31377
31378         * gcc.c (eval_spec_function): Initialize save_growing_value.
31379
31380 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
31381
31382         PR sanitizer/60613
31383         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
31384         code == MINUS_EXPR, never swap op0 with op1.
31385
31386         * toplev.c (init_local_tick): Avoid signed integer multiplication
31387         overflow.
31388         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
31389         shift by first operand's bitsize.
31390
31391 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
31392
31393         PR target/60610
31394         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
31395         redefine to 1 or 0.
31396         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
31397         TARGET_ISA_64BIT_P(x).
31398
31399 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31400
31401         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
31402         pattern for vector nor instead of subtract from splat(-1).
31403         (altivec_expand_vec_perm_const_le): Likewise.
31404
31405 2014-03-21  Richard Henderson  <rth@twiddle.net>
31406
31407         PR target/60598
31408         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
31409         related insns after epilogue_completed.
31410
31411 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31412
31413         PR ipa/59176
31414         * cgraph.h (symtab_node): New flag body_removed.
31415         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
31416         when removing bodies.
31417         * symtab.c (dump_symtab_base): Dump body_removed flag.
31418         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
31419         had their bodies removed.
31420
31421 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31422
31423         PR ipa/60419
31424         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
31425         in the border.
31426
31427 2014-03-21  Richard Biener  <rguenther@suse.de>
31428
31429         PR tree-optimization/60577
31430         * tree-core.h (struct tree_base): Document nothrow_flag use
31431         in DECL_NONALIASED.
31432         * tree.h (DECL_NONALIASED): New.
31433         (may_be_aliased): Adjust.
31434         * coverage.c (build_var): Set DECL_NONALIASED.
31435
31436 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31437
31438         * expr.c (expand_expr_real_1): Remove outdated comment.
31439
31440 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
31441
31442         PR middle-end/60597
31443         * ira.c (adjust_cleared_regs): Call copy_rtx on
31444         *reg_equiv[REGNO (loc)].src_p before passing it to
31445         simplify_replace_fn_rtx.
31446
31447         PR target/60568
31448         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
31449         into CONST, put pic register as first operand of PLUS.  Use
31450         gen_const_mem for both 32-bit and 64-bit PIC got loads.
31451
31452 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31453
31454         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
31455
31456 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31457
31458         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
31459         around for store forwarding issue in the FPU on the UT699.
31460         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
31461         loads and operations if -mfix-ut699 is specified.
31462         (divtf3_hq): Tweak attribute.
31463         (sqrttf2_hq): Likewise.
31464
31465 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31466
31467         * calls.c (store_one_arg): Remove incorrect const qualification on the
31468         type of the temporary.
31469         * cfgexpand.c (expand_return): Likewise.
31470         * expr.c (expand_constructor): Likewise.
31471         (expand_expr_real_1): Likewise.
31472
31473 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31474
31475         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
31476         of parts.
31477
31478 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
31479
31480         PR target/60039
31481         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
31482
31483 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
31484
31485         * config/arm/aarch-common-protos.h
31486         (alu_cost_table): Fix spelling of "extend".
31487         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
31488
31489 2014-03-19  Richard Biener  <rguenther@suse.de>
31490
31491         PR middle-end/60553
31492         * tree-core.h (tree_type_common): Re-order pointer members
31493         to reduce recursion depth during GC walks.
31494
31495 2014-03-19  Marek Polacek  <polacek@redhat.com>
31496
31497         PR sanitizer/60569
31498         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
31499         before accessing it.
31500
31501 2014-03-19  Richard Biener  <rguenther@suse.de>
31502
31503         PR lto/59543
31504         * lto-streamer-in.c (input_function): In WPA stage do not drop
31505         debug stmts.
31506
31507 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
31508
31509         PR tree-optimization/60559
31510         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
31511         with build_zero_cst assignment.
31512
31513 2014-03-18  Kai Tietz  <ktietz@redhat.com>
31514
31515         PR rtl-optimization/56356
31516         * sdbout.c (sdbout_parms): Verify that parms'
31517         incoming argument is valid.
31518         (sdbout_reg_parms): Likewise.
31519
31520 2014-03-18  Richard Henderson  <rth@redhat.com>
31521
31522         PR target/60562
31523         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
31524         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
31525         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
31526
31527 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
31528
31529         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
31530         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
31531         Italicize plugin event names in description.  Explain that
31532         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
31533         Remind that no GCC functions should be called after PLUGIN_FINISH.
31534         Explain what pragmas with expansion are.
31535
31536 2014-03-18  Martin Liska  <mliska@suse.cz>
31537
31538         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
31539         gimple call statement is update.
31540         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
31541         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
31542
31543 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31544
31545         PR sanitizer/60557
31546         * ubsan.c (ubsan_instrument_unreachable): Call
31547         initialize_sanitizer_builtins.
31548         (ubsan_pass): Likewise.
31549
31550         PR sanitizer/60535
31551         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
31552         varpool_finalize_decl instead of rest_of_decl_compilation.
31553
31554 2014-03-18  Richard Biener  <rguenther@suse.de>
31555
31556         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
31557         by using bitmap_and_compl instead of bitmap_and_compl_into.
31558         (df_rd_transfer_function): Likewise.
31559
31560 2014-03-18  Richard Biener  <rguenther@suse.de>
31561
31562         * doc/lto.texi (fresolution): Fix typo.
31563
31564 2014-03-18  Richard Biener  <rguenther@suse.de>
31565
31566         * doc/invoke.texi (flto): Update for changes in 4.9.
31567
31568 2014-03-18  Richard Biener  <rguenther@suse.de>
31569
31570         * doc/loop.texi: Remove section on the removed lambda framework.
31571         Update loop docs with recent changes in preserving loop structure.
31572
31573 2014-03-18  Richard Biener  <rguenther@suse.de>
31574
31575         * doc/lto.texi (-fresolution): Document.
31576
31577 2014-03-18  Richard Biener  <rguenther@suse.de>
31578
31579         * doc/contrib.texi: Adjust my name.
31580
31581 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31582
31583         PR ipa/58721
31584         * internal-fn.c: Include diagnostic-core.h.
31585         (expand_BUILTIN_EXPECT): New function.
31586         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
31587         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
31588         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
31589         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
31590         IFN_BUILTIN_EXPECT.
31591         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
31592         Revert 3 argument __builtin_expect code.
31593         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
31594         * gimple-fold.c (gimple_fold_call): Likewise.
31595         * tree.h (fold_builtin_expect): New prototype.
31596         * builtins.c (build_builtin_expect_predicate): Add predictor
31597         argument, if non-NULL, create 3 argument __builtin_expect.
31598         (fold_builtin_expect): No longer static.  Add ARG2 argument,
31599         pass it through to build_builtin_expect_predicate.
31600         (fold_builtin_2): Adjust caller.
31601         (fold_builtin_3): Handle BUILT_IN_EXPECT.
31602         * internal-fn.def (BUILTIN_EXPECT): New.
31603
31604 2014-03-18  Tobias Burnus  <burnus@net-b.de>
31605
31606         PR ipa/58721
31607         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
31608         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
31609         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
31610
31611 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
31612
31613         PR ipa/58721
31614         * predict.c (combine_predictions_for_bb): Fix up formatting.
31615         (expr_expected_value_1, expr_expected_value): Add predictor argument,
31616         fill what it points to if non-NULL.
31617         (tree_predict_by_opcode): Adjust caller, use the predictor.
31618         * predict.def (PRED_COMPARE_AND_SWAP): Add.
31619
31620 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
31621
31622         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
31623         proper constant for the store mode.
31624
31625 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
31626
31627         * symtab.c (change_decl_assembler_name): Fix transparent alias
31628         chain construction.
31629
31630 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
31631
31632         * config/aarch64/aarch64.c: Correct the comments about the
31633         aarch64 stack layout.
31634
31635 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
31636
31637         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
31638         check for GF_OMP_FOR_KIND_FOR.
31639
31640 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
31641
31642         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
31643         ymm and zmm register names.
31644
31645 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
31646
31647         PR target/60516
31648         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
31649         note creation for the 2010-08-31 changes.
31650
31651 2014-03-17  Marek Polacek  <polacek@redhat.com>
31652
31653         PR middle-end/60534
31654         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31655         as -fno-tree-loop-vectorize.
31656         (expand_omp_simd): Likewise.
31657
31658 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
31659
31660         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31661         (eligible_for_call_delay): New prototype.
31662         * config/sparc/sparc.c (tls_call_delay): Rename into...
31663         (eligible_for_call_delay): ...this.  Return false if the instruction
31664         cannot be put in the delay slot of a branch.
31665         (eligible_for_restore_insn): Simplify.
31666         (eligible_for_return_delay): Return false if the instruction cannot be
31667         put in the delay slot of a branch and simplify.
31668         (eligible_for_sibcall_delay): Return false if the instruction cannot be
31669         put in the delay slot of a branch.
31670         * config/sparc/sparc.md (fix_ut699): New attribute.
31671         (tls_call_delay): Delete.
31672         (in_call_delay): Reimplement.
31673         (eligible_for_sibcall_delay): Rename into...
31674         (in_sibcall_delay): ...this.
31675         (eligible_for_return_delay): Rename into...
31676         (in_return_delay): ...this.
31677         (in_branch_delay): Reimplement.
31678         (in_uncond_branch_delay): Delete.
31679         (in_annul_branch_delay): Delete.
31680
31681 2014-03-14  Richard Henderson  <rth@redhat.com>
31682
31683         PR target/60525
31684         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31685         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31686         (*floathi<X87MODEF>2_i387_with_temp): Remove.
31687         (floathi splitters): Remove.
31688         (float<SWI48x>xf2): New pattern.
31689         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
31690         code that tried to handle DImode for 32-bit, but which was excluded
31691         by the pattern's condition.  Drop allocation of stack temporary.
31692         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31693         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31694         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31695         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31696         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31697         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31698         (*float<SWI48><MODEF>2_sse_interunit): Remove.
31699         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31700         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31701         (*float<SWI48x><X87MODEF>2_i387): Remove.
31702         (all float _with_temp splitters): Remove.
31703         (*float<SWI48x><MODEF>2_i387): New pattern.
31704         (*float<SWI48><MODEF>2_sse): New pattern.
31705         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31706         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31707
31708 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
31709             Marek Polacek  <polacek@redhat.com>
31710
31711         PR middle-end/60484
31712         * common.opt (dump_base_name_prefixed): New Variable.
31713         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31714         if x_dump_base_name_prefixed is already set, set it at the end.
31715
31716 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
31717
31718         PR rtl-optimization/60508
31719         * lra-constraints.c (get_reload_reg): Add new parameter
31720         in_subreg_p.
31721         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31722         Pass the new parameter values.
31723
31724 2014-03-14  Richard Biener  <rguenther@suse.de>
31725
31726         * common.opt: Revert unintented changes from r205065.
31727         * opts.c: Likewise.
31728
31729 2014-03-14  Richard Biener  <rguenther@suse.de>
31730
31731         PR middle-end/60518
31732         * cfghooks.c (split_block): Properly adjust all loops the
31733         block was a latch of.
31734
31735 2014-03-14  Martin Jambor  <mjambor@suse.cz>
31736
31737         PR lto/60461
31738         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31739         and simplify it.
31740
31741 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
31742
31743         PR target/59396
31744         * config/avr/avr.c (avr_set_current_function): Pass function name
31745         through default_strip_name_encoding before sanity checking instead
31746         of skipping the first char of the assembler name.
31747
31748 2014-03-13  Richard Henderson  <rth@redhat.com>
31749
31750         PR debug/60438
31751         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31752         (ix86_force_to_memory, ix86_free_from_memory): Remove.
31753         * config/i386/i386-protos.h: Likewise.
31754         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31755         in the expander instead of a splitter.
31756         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31757         any possibility of requiring a memory.
31758         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31759         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31760         (fp branch splitters): Update for ix86_split_fp_branch.
31761         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31762         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31763         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31764         (*fop_<MODEF>_2_i387): Remove f/r alternative.
31765         (*fop_<MODEF>_3_i387): Likewise.
31766         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31767         (splitters for the fop_* register patterns): Remove.
31768         (fscalexf4_i387): Rename from *fscalexf4_i387.
31769         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31770
31771 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31772
31773         PR tree-optimization/59779
31774         * tree-dfa.c (get_ref_base_and_extent): Use double_int
31775         type for bitsize and maxsize instead of HOST_WIDE_INT.
31776
31777 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
31778
31779         PR rtl-optimization/57320
31780         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31781         the CFG after thread_prologue_and_epilogue_insns.
31782
31783 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31784
31785         PR rtl-optimization/57189
31786         * lra-constraints.c (process_alt_operands): Disfavor spilling
31787         vector pseudos.
31788
31789 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
31790
31791         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31792
31793 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31794
31795         PR tree-optimization/59025
31796         PR middle-end/60418
31797         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31798         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31799
31800 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
31801
31802         PR target/60486
31803         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31804         calls of avr_out_plus_1.
31805
31806 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
31807
31808         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31809         BB's single pred and update the father loop's latch info later.
31810
31811 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31812
31813         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31814         (VEC_M): Likewise.
31815         (VEC_N): Likewise.
31816         (VEC_R): Likewise.
31817         (VEC_base): Likewise.
31818         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31819         registers, we need to swap double words in little endian mode.
31820
31821         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31822         to be a container mode for 128-bit integer operations added in ISA
31823         2.07.  Unlike TImode and PTImode, the preferred register set is
31824         the Altivec/VMX registers for the 128-bit operations.
31825
31826         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31827         declarations.
31828         (rs6000_split_128bit_ok_p): Likewise.
31829
31830         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31831         macros for creating ISA 2.07 normal and overloaded builtin
31832         functions with 3 arguments.
31833         (BU_P8V_OVERLOAD_3): Likewise.
31834         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31835         for use as overloaded functions.
31836         (VPERM_1TI_UNS): Likewise.
31837         (VSEL_1TI): Likewise.
31838         (VSEL_1TI_UNS): Likewise.
31839         (ST_INTERNAL_1ti): Likewise.
31840         (LD_INTERNAL_1ti): Likewise.
31841         (XXSEL_1TI): Likewise.
31842         (XXSEL_1TI_UNS): Likewise.
31843         (VPERM_1TI): Likewise.
31844         (VPERM_1TI_UNS): Likewise.
31845         (XXPERMDI_1TI): Likewise.
31846         (SET_1TI): Likewise.
31847         (LXVD2X_V1TI): Likewise.
31848         (STXVD2X_V1TI): Likewise.
31849         (VEC_INIT_V1TI): Likewise.
31850         (VEC_SET_V1TI): Likewise.
31851         (VEC_EXT_V1TI): Likewise.
31852         (EQV_V1TI): Likewise.
31853         (NAND_V1TI): Likewise.
31854         (ORC_V1TI): Likewise.
31855         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31856         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
31857         overloaded builtin.
31858         (VADDUQM): Likewise.
31859         (VSUBCUQ): Likewise.
31860         (VADDEUQM): Likewise.
31861         (VADDECUQ): Likewise.
31862         (VSUBEUQM): Likewise.
31863         (VSUBECUQ): Likewise.
31864
31865         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31866         __int128_t and __uint128_t types.
31867         (__uint128_type): Likewise.
31868         (altivec_categorize_keyword): Add support for vector __int128_t,
31869         vector __uint128_t, vector __int128, and vector unsigned __int128
31870         as a container type for TImode operations that need to be done in
31871         VSX/Altivec registers.
31872         (rs6000_macro_to_expand): Likewise.
31873         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31874         to support 128-bit integer instructions vaddcuq, vadduqm,
31875         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31876         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31877
31878         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31879         for V1TImode, and set up preferences to use VSX/Altivec registers.
31880         Setup VSX reload handlers.
31881         (rs6000_debug_reg_global): Likewise.
31882         (rs6000_init_hard_regno_mode_ok): Likewise.
31883         (rs6000_preferred_simd_mode): Likewise.
31884         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31885         (easy_altivec_constant): Likewise.
31886         (output_vec_const_move): Likewise.
31887         (rs6000_expand_vector_set): Convert V1TImode set and extract to
31888         simple move.
31889         (rs6000_expand_vector_extract): Likewise.
31890         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31891         addressing.
31892         (rs6000_const_vec): Add support for V1TImode.
31893         (rs6000_emit_le_vsx_load): Swap double words when loading or
31894         storing TImode/V1TImode.
31895         (rs6000_emit_le_vsx_store): Likewise.
31896         (rs6000_emit_le_vsx_move): Likewise.
31897         (rs6000_emit_move): Add support for V1TImode.
31898         (altivec_expand_ld_builtin): Likewise.
31899         (altivec_expand_st_builtin): Likewise.
31900         (altivec_expand_vec_init_builtin): Likewise.
31901         (altivec_expand_builtin): Likewise.
31902         (rs6000_init_builtins): Add support for V1TImode type.  Add
31903         support for ISA 2.07 128-bit integer builtins.  Define type names
31904         for the VSX/Altivec vector types.
31905         (altivec_init_builtins): Add support for overloaded vector
31906         functions with V1TImode type.
31907         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31908         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31909         external function.
31910         (rs6000_split_128bit_ok_p): Likewise.
31911         (rs6000_handle_altivec_attribute): Create V1TImode from vector
31912         __int128_t and vector __uint128_t.
31913
31914         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31915         and mode attributes.
31916         (VSX_M): Likewise.
31917         (VSX_M2): Likewise.
31918         (VSm): Likewise.
31919         (VSs): Likewise.
31920         (VSr): Likewise.
31921         (VSv): Likewise.
31922         (VS_scalar): Likewise.
31923         (VS_double): Likewise.
31924         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31925
31926         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31927         we support the ISA 2.07 128-bit integer arithmetic instructions.
31928         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31929         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31930         and TImode types for use with the builtin functions.
31931         (V1TI_type_node): Likewise.
31932         (unsigned_V1TI_type_node): Likewise.
31933         (intTI_type_internal_node): Likewise.
31934         (uintTI_type_internal_node): Likewise.
31935
31936         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31937         128-bit builtin functions.
31938         (UNSPEC_VADDEUQM): Likewise.
31939         (UNSPEC_VADDECUQ): Likewise.
31940         (UNSPEC_VSUBCUQ): Likewise.
31941         (UNSPEC_VSUBEUQM): Likewise.
31942         (UNSPEC_VSUBECUQ): Likewise.
31943         (VM): Add V1TImode to vector mode iterators.
31944         (VM2): Likewise.
31945         (VI_unit): Likewise.
31946         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31947         (altivec_vaddcuq): Likewise.
31948         (altivec_vsubuqm): Likewise.
31949         (altivec_vsubcuq): Likewise.
31950         (altivec_vaddeuqm): Likewise.
31951         (altivec_vaddecuq): Likewise.
31952         (altivec_vsubeuqm): Likewise.
31953         (altivec_vsubecuq): Likewise.
31954
31955         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31956         mode iterators.
31957         (BOOL_128): Likewise.
31958         (BOOL_REGS_OUTPUT): Likewise.
31959         (BOOL_REGS_OP1): Likewise.
31960         (BOOL_REGS_OP2): Likewise.
31961         (BOOL_REGS_UNARY): Likewise.
31962         (BOOL_REGS_AND_CR0): Likewise.
31963
31964         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31965         128-bit integer builtin support.
31966         (vec_vadduqm): Likewise.
31967         (vec_vaddecuq): Likewise.
31968         (vec_vaddeuqm): Likewise.
31969         (vec_vsubecuq): Likewise.
31970         (vec_vsubeuqm): Likewise.
31971         (vec_vsubcuq): Likewise.
31972         (vec_vsubuqm): Likewise.
31973
31974         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31975         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31976         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31977         128-bit integer add/subtract to ISA 2.07.
31978
31979 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
31980
31981         * config/arc/arc.c (arc_predicate_delay_insns):
31982         Fix third argument passed to conditionalize_nonjump.
31983
31984 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
31985
31986         * config/aarch64/aarch64-builtins.c
31987         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31988         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31989         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31990         instead of __builtin_lfloor.
31991         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31992
31993 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31994
31995         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31996         (tree_ssa_ifcombine_bb_1): New function.
31997         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
31998         is an empty forwarder block to then_bb or vice versa and then_bb
31999         and else_bb are effectively swapped.
32000
32001 2014-03-12  Christian Bruel  <christian.bruel@st.com>
32002
32003         PR target/60264
32004         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
32005         REG_CFA_DEF_CFA note.
32006         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
32007         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
32008
32009 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32010
32011         PR tree-optimization/60454
32012         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
32013
32014 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32015
32016         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
32017         Do not define target_cpu_default2 to generic.
32018         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
32019         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
32020         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
32021
32022 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
32023             Marc Glisse  <marc.glisse@inria.fr>
32024
32025         PR tree-optimization/60502
32026         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
32027         instead of build_low_bits_mask.
32028
32029 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
32030
32031         PR middle-end/60482
32032         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
32033         if there are multiple uses, but op doesn't live on E edge.
32034         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
32035         clobber stmts before __builtin_unreachable.
32036
32037 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
32038
32039         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
32040         hard_frame_pointer_rtx.
32041         * cse.c (cse_insn): Remove volatile check.
32042         * cselib.c (cselib_process_insn): Likewise.
32043         * dse.c (scan_insn): Likewise.
32044
32045 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32046
32047         * config/arc/arc.c (conditionalize_nonjump): New function,
32048         broken out of ...
32049         (arc_ifcvt): ... this.
32050         (arc_predicate_delay_insns): Use it.
32051
32052 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32053
32054         * config/arc/predicates.md (extend_operand): During/after reload,
32055         allow const_int_operand.
32056         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
32057         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
32058         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
32059         to "i".
32060         (umulsi3_highpart_i): Likewise.
32061
32062 2014-03-11  Richard Biener  <rguenther@suse.de>
32063
32064         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
32065         Add asserts to guard possible wrong-code bugs.
32066
32067 2014-03-11  Richard Biener  <rguenther@suse.de>
32068
32069         PR tree-optimization/60429
32070         PR tree-optimization/60485
32071         * tree-ssa-structalias.c (set_union_with_increment): Properly
32072         take into account all fields that overlap the shifted vars.
32073         (do_sd_constraint): Likewise.
32074         (do_ds_constraint): Likewise.
32075         (get_constraint_for_ptr_offset): Likewise.
32076
32077 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
32078
32079         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
32080         (nios2_compute_frame_layout):
32081         Add calculation of cfun->machine->fp_save_offset.
32082         (nios2_expand_prologue): Correct setting of frame pointer register
32083         in prologue.
32084         (nios2_expand_epilogue): Update recovery of stack pointer from
32085         frame pointer accordingly.
32086         (nios2_initial_elimination_offset): Update calculation of offset
32087         for eliminating to HARD_FRAME_POINTER_REGNUM.
32088
32089 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
32090
32091         PR ipa/60457
32092         * ipa.c (symtab_remove_unreachable_nodes): Don't call
32093         cgraph_get_create_node on VAR_DECLs.
32094
32095 2014-03-10  Richard Biener  <rguenther@suse.de>
32096
32097         PR middle-end/60474
32098         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
32099
32100 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
32101
32102         * config/vms/vms.opt (vms_float_format): New variable.
32103
32104 2014-03-08  Tobias Burnus  <burnus@net-b.de>
32105
32106         * doc/invoke.texi (-fcilkplus): Update implementation status.
32107
32108 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
32109             Richard Biener  <rguenther@suse.de>
32110
32111         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
32112         consistently accross all TUs.
32113         (run_gcc): Enable -fshort-double automatically at link at link-time
32114         and disallow override.
32115
32116 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
32117
32118         PR target/58271
32119         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
32120         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
32121         if they can't be used.
32122
32123 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32124
32125         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
32126         for Solaris 11/x86 ld.
32127         * configure: Regenerate.
32128
32129 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32130
32131         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
32132         (LIB_TLS_SPEC): Save as ld_tls_libs.
32133         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
32134         (HAVE_AS_IX86_TLSLDM): New test.
32135         * configure, config.in: Regenerate.
32136         * config/i386/i386.c (legitimize_tls_address): Fall back to
32137         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
32138         cannot support TLS_MODEL_LOCAL_DYNAMIC.
32139         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
32140         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
32141
32142 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
32143
32144         * common.opt (fira-loop-pressure): Mark as optimization.
32145
32146 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
32147
32148         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
32149         an OpenMP mappable type.
32150
32151 2014-03-06  Matthias Klose  <doko@ubuntu.com>
32152
32153         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
32154         MULTILIB_OSDIRNAMES is not defined.
32155
32156 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
32157             Meador Inge  <meadori@codesourcery.com>
32158
32159         PR target/58595
32160         * config/arm/arm.c (arm_tls_symbol_p): Remove.
32161         (arm_legitimize_address): Call legitimize_tls_address for any
32162         arm_tls_referenced_p expression, handle constant addend.  Call it
32163         before testing for !TARGET_ARM.
32164         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
32165
32166 2014-03-06  Richard Biener  <rguenther@suse.de>
32167
32168         PR middle-end/60445
32169         PR lto/60424
32170         PR lto/60427
32171         Revert
32172         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
32173
32174         * tree-streamer.c (record_common_node): Assert we don't record
32175         nodes with type double.
32176         (preload_common_node): Skip type double, complex double and double
32177         pointer since it is now frontend dependent due to fshort-double option.
32178
32179 2014-03-06  Richard Biener  <rguenther@suse.de>
32180
32181         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
32182         or -fno-lto is specified and the linker has full plugin support.
32183         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
32184         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
32185         * lto-wrapper.c (merge_and_complain): Merge compile-time
32186         optimization levels.
32187         (run_gcc): And pass it through to the link options.
32188
32189 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
32190
32191         PR debug/60381
32192         Revert:
32193         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32194         PR debug/59992
32195         * cselib.c (remove_useless_values): Skip to avoid quadratic
32196         behavior if the condition moved from...
32197         (cselib_process_insn): ... here holds.
32198
32199 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
32200
32201         PR plugins/59335
32202         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
32203         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
32204
32205         PR plugins/59335
32206         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
32207         (TM_H): Add x86-tune.def.
32208
32209 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32210
32211         * config/aarch64/aarch64.c (generic_tunings):
32212         Use cortexa57_extra_costs.
32213
32214 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
32215
32216         PR lto/60404
32217         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
32218         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
32219         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
32220         cost for in_lto_p.
32221
32222 2014-03-04  Heiher  <r@hev.cc>
32223
32224         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
32225         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
32226
32227 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
32228
32229         * config/i386/predicates.md (const2356_operand): Change to ...
32230         (const2367_operand): ... this.
32231         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
32232         const2367_operand.
32233         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32234         (*avx512pf_scatterpf<mode>sf): Ditto.
32235         (avx512pf_scatterpf<mode>df): Ditto.
32236         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32237         (*avx512pf_scatterpf<mode>df): Ditto.
32238         * config/i386/i386.c (ix86_expand_builtin): Update
32239         incorrect hint operand error message.
32240
32241 2014-03-04  Richard Biener  <rguenther@suse.de>
32242
32243         * lto-section-in.c (lto_get_section_data): Fix const cast.
32244
32245 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
32246
32247         * tree-streamer.c (record_common_node): Assert we don't record
32248         nodes with type double.
32249         (preload_common_node): Skip type double, complex double and double
32250         pointer since it is now frontend dependent due to fshort-double option.
32251
32252 2014-03-04  Richard Biener  <rguenther@suse.de>
32253
32254         PR lto/60405
32255         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
32256         (lto_input_toplevel_asms): Likewise.
32257         * lto-section-in.c (lto_get_section_data): Instead do it here
32258         for every section.
32259
32260 2014-03-04  Richard Biener  <rguenther@suse.de>
32261
32262         PR tree-optimization/60382
32263         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
32264         dead PHIs a reduction.
32265
32266 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
32267
32268         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
32269         hint value.
32270         (_mm_prefetch): Move out of GCC target("sse") pragma.
32271         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
32272         GCC target("prfchw") pragma.
32273         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
32274         for locality <= 2.
32275         * config/i386/i386.c (ix86_option_override_internal): Enable
32276         -mprfchw with -mprefetchwt1.
32277
32278 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32279
32280         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
32281         Mark as varying.
32282
32283 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32284
32285         * opts.h (CL_PCH_IGNORE): Define.
32286         * targhooks.c (option_affects_pch_p):
32287         Return false for options that have CL_PCH_IGNORE set.
32288         * opt-functions.awk: Process PchIgnore.
32289         * doc/options.texi: Document PchIgnore.
32290
32291         * config/arc/arc.opt (misize): Add PchIgnore property.
32292
32293 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32294
32295         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
32296         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
32297         constraint on constants to permit them being loaded into
32298         GENERAL_REGS or BASE_REGS.
32299
32300 2014-03-03  Nick Clifton  <nickc@redhat.com>
32301
32302         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
32303         anti-cacnonical alternatives.
32304         (negandhi3_real): New pattern.
32305         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
32306
32307 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32308
32309         * config/avr/avr-mcus.def: Remove atxmega16x1.
32310         * config/avr/avr-tables.opt: Regenerate.
32311         * config/avr/t-multilib: Regenerate.
32312         * doc/avr-mmcu.texi: Regenerate.
32313
32314 2014-03-03  Tobias Grosser  <tobias@grosser.es>
32315             Mircea Namolaru  <mircea.namolaru@inria.fr>
32316
32317         PR tree-optimization/58028
32318         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
32319         scalar dimensions.
32320
32321 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32322
32323         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
32324         not handled by recognizers.
32325
32326 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
32327
32328         PR middle-end/60175
32329         * function.c (expand_function_end): Don't emit
32330         clobber_return_register sequence if clobber_after is a BARRIER.
32331         * cfgexpand.c (construct_exit_block): Append instructions before
32332         return_label to prev_bb.
32333
32334 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32335
32336         * config/rs6000/constraints.md: Document reserved use of "wc".
32337
32338 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32339
32340         PR ipa/60150
32341         * ipa.c (function_and_variable_visibility): When dissolving comdat
32342         group, also set all symbols to local.
32343
32344 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32345
32346         PR ipa/60306
32347
32348         Revert:
32349         2013-12-14  Jan Hubicka  <jh@suse.cz>
32350         PR middle-end/58477
32351         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
32352
32353 2014-03-02  Jon Beniston  <jon@beniston.com>
32354
32355         PR bootstrap/48230
32356         PR bootstrap/50927
32357         PR bootstrap/52466
32358         PR target/46898
32359         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
32360         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
32361         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
32362         (simple_return, *simple_return): New patterns
32363         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
32364         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
32365
32366 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
32367
32368         * dwarf2out.c (gen_subprogram_die): Tidy.
32369
32370 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
32371
32372         PR target/60071
32373         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
32374         (*mov_t_msb_neg_negc): ... this new insn.
32375
32376 2014-02-28  Jason Merrill  <jason@redhat.com>
32377
32378         PR c++/58678
32379         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
32380         function.
32381
32382 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32383
32384         PR c++/60314
32385         * dwarf2out.c (decltype_auto_die): New static.
32386         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
32387         (gen_type_die_with_usage): Handle 'decltype(auto)'.
32388         (is_cxx_auto): Likewise.
32389
32390 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
32391
32392         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
32393         we are not using general regs only.
32394
32395 2014-02-28  Richard Biener  <rguenther@suse.de>
32396
32397         PR target/60280
32398         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
32399         previous fix and only allow to remove trivial pre-headers
32400         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
32401         (remove_forwarder_block): Properly update the latch of a loop.
32402
32403 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32404
32405         PR debug/59992
32406         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
32407         (cselib_preserved_hash_table): New.
32408         (preserve_constants_and_equivs): Move preserved vals to it.
32409         (cselib_find_slot): Look it up first.
32410         (cselib_init): Initialize it.
32411         (cselib_finish): Release it.
32412         (dump_cselib_table): Dump it.
32413
32414 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32415
32416         PR debug/59992
32417         * cselib.c (remove_useless_values): Skip to avoid quadratic
32418         behavior if the condition moved from...
32419         (cselib_process_insn): ... here holds.
32420
32421 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32422
32423         PR debug/57232
32424         * var-tracking.c (vt_initialize): Apply the same condition to
32425         preserve the CFA base value.
32426
32427 2014-02-28  Joey Ye  <joey.ye@arm.com>
32428
32429         PR target/PR60169
32430         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
32431         if reload in progress or completed.
32432
32433 2014-02-28  Tobias Burnus  <burnus@net-b.de>
32434
32435         PR middle-end/60147
32436         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
32437         NAMELIST_DECL.
32438
32439 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32440
32441         * doc/tm.texi.in (Condition Code Status): Update documention for
32442         relative locations of cc0-setter and cc0-user.
32443
32444 2014-02-27  Jeff Law  <law@redhat.com>
32445
32446         PR rtl-optimization/52714
32447         * combine.c (try_combine): When splitting an unrecognized PARALLEL
32448         into two independent simple sets, if I3 is a jump, ensure the
32449         pattern we place into I3 is a (set (pc) ...).
32450
32451 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
32452             Jeff Law  <law@redhat.com>
32453
32454         PR rtl-optimization/49847
32455         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
32456         are in different blocks.
32457         * doc/tm.texi (Condition Code Status): Update documention for
32458         relative locations of cc0-setter and cc0-user.
32459
32460 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32461
32462         PR target/59222
32463         * lra.c (lra_emit_add): Check SUBREG too.
32464
32465 2014-02-27  Andreas Schwab  <schwab@suse.de>
32466
32467         * config/m68k/m68k.c (m68k_option_override): Disable
32468         -flive-range-shrinkage for classic m68k.
32469         (m68k_override_options_after_change): Likewise.
32470
32471 2014-02-27  Marek Polacek  <polacek@redhat.com>
32472
32473         PR middle-end/59223
32474         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
32475         -Wmaybe-uninitialized.
32476
32477 2014-02-27  Alan Modra  <amodra@gmail.com>
32478
32479         PR target/57936
32480         * reload1.c (emit_input_reload_insns): When reload_override_in,
32481         set old to rl->in_reg when rl->in_reg is a subreg.
32482
32483 2014-02-26  Richard Biener  <rguenther@suse.de>
32484
32485         PR bootstrap/60343
32486         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
32487
32488 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32489
32490         * common/config/i386/predicates.md (const1256_operand): Remove.
32491         (const2356_operand): New.
32492         (const_1_to_2_operand): Remove.
32493         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32494         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32495         (*avx512pf_gatherpf<mode>sf): Ditto.
32496         (avx512pf_gatherpf<mode>df): Ditto.
32497         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32498         (*avx512pf_gatherpf<mode>df): Ditto.
32499         (avx512pf_scatterpf<mode>sf): Ditto.
32500         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32501         (*avx512pf_scatterpf<mode>sf): Ditto.
32502         (avx512pf_scatterpf<mode>df): Ditto.
32503         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32504         (*avx512pf_scatterpf<mode>df): Ditto.
32505         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
32506
32507 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
32508
32509         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
32510         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
32511         (_mm512_mask_testn_epi64_mask): Move to ...
32512         * config/i386/avx512cdintrin.h: Here.
32513         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
32514         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
32515         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
32516         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
32517         TARGET_AVX512F from TARGET_AVX512CD.
32518
32519 2014-02-26  Richard Biener  <rguenther@suse.de>
32520
32521         PR ipa/60327
32522         * ipa.c (walk_polymorphic_call_targets): Properly guard
32523         call to inline_update_overall_summary.
32524
32525 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
32526
32527         PR target/60280
32528         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
32529         and latches only if requested.  Fix latch if it is removed.
32530         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
32531         LOOPS_HAVE_PREHEADERS.
32532
32533 2014-02-25  Andrew Pinski  <apinski@cavium.com>
32534
32535         * builtins.c (expand_builtin_thread_pointer): Create a new target
32536         when the target is NULL.
32537
32538 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
32539
32540         PR rtl-optimization/60317
32541         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32542         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32543         * lra-assigns.c: Include params.h.
32544         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
32545         other reload pseudos considerations.
32546
32547 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32548
32549         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
32550         to use canonical form for nor<mode>3.
32551
32552 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32553
32554         PR target/55426
32555         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
32556         conversions.
32557
32558 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32559
32560         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
32561         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
32562         (ix86_handle_option): Handle OPT_mprefetchwt1.
32563         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
32564         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
32565         PREFETCHWT1 CPUID.
32566         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32567         OPTION_MASK_ISA_PREFETCHWT1.
32568         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
32569         (PTA_PREFETCHWT1): New.
32570         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
32571         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
32572         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
32573         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
32574         (*prefetch_avx512pf_<mode>_: Change into ...
32575         (*prefetch_prefetchwt1_<mode>: This.
32576         * config/i386/i386.opt (mprefetchwt1): New.
32577         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
32578         (_mm_prefetch): Handle intent to write.
32579         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
32580
32581 2014-02-25  Richard Biener  <rguenther@suse.de>
32582
32583         PR middle-end/60291
32584         * emit-rtl.c (mem_attrs_htab): Remove.
32585         (mem_attrs_htab_hash): Likewise.
32586         (mem_attrs_htab_eq): Likewise.
32587         (set_mem_attrs): Always allocate new mem-attrs when something changed.
32588         (init_emit_once): Do not allocate mem_attrs_htab.
32589
32590 2014-02-25  Richard Biener  <rguenther@suse.de>
32591
32592         PR lto/60319
32593         * lto-opts.c (lto_write_options): Output non-explicit conservative
32594         -fwrapv, -fno-trapv and -fno-strict-overflow.
32595         * lto-wrapper.c (merge_and_complain): Handle merging those options.
32596         (run_gcc): And pass them through.
32597
32598 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32599
32600         * sel-sched.c (calculate_new_fences): New parameter ptime.
32601         Calculate it as a maximum over all fence cycles.
32602         (sel_sched_region_2): Adjust the call to calculate_new_fences.
32603         Print the final schedule timing when sched_verbose.
32604
32605 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32606
32607         PR rtl-optimization/60292
32608         * sel-sched.c (fill_vec_av_set): Do not reset target availability
32609         bit fot the fence instruction.
32610
32611 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
32612
32613         * calls.h: Fix typo in comment.
32614
32615 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
32616
32617         * config/pa/pa.c (pa_output_move_double): Don't valididate when
32618         adjusting offsetable addresses.
32619
32620 2014-02-24  Guozhi Wei  <carrot@google.com>
32621
32622         * sparseset.h (sparseset_pop): Fix the wrong index.
32623
32624 2014-02-24  Walter Lee  <walt@tilera.com>
32625
32626         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
32627         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
32628         triplet.
32629         * common/config/tilegx/tilegx-common.c
32630         (TARGET_DEFAULT_TARGET_FLAGS): Define.
32631         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
32632         (LINK_SPEC): Ditto.
32633         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
32634         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
32635         (tilegx_gimplify_va_arg_expr): Handle big endian.
32636         (tilegx_expand_unaligned_load): Ditto.
32637         (tilegx_expand_unaligned_store): Ditto.
32638         (TARGET_RETURN_IN_MSB): New.
32639         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
32640         (TARGET_ENDIAN_DEFAULT): New.
32641         (TARGET_BIG_ENDIAN): Handle big endian.
32642         (BYTES_BIG_ENDIAN): Ditto.
32643         (WORDS_BIG_ENDIAN): Ditto.
32644         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
32645         (ENDIAN_SPEC): New.
32646         (EXTRA_SPECS): New.
32647         * config/tilegx/tilegx.md (extv): Handle big endian.
32648         (extzv): Ditto.
32649         (insn_st<n>): Ditto.
32650         (insn_st<n>_add<bitsuffix>): Ditto.
32651         (insn_stnt<n>): Ditto.
32652         (insn_stnt<n>_add<bitsuffix>):Ditto.
32653         (vec_interleave_highv8qi): Handle big endian.
32654         (vec_interleave_highv8qi_be): New.
32655         (vec_interleave_highv8qi_le): New.
32656         (insn_v1int_h): Handle big endian.
32657         (vec_interleave_lowv8qi): Handle big endian.
32658         (vec_interleave_lowv8qi_be): New.
32659         (vec_interleave_lowv8qi_le): New.
32660         (insn_v1int_l): Handle big endian.
32661         (vec_interleave_highv4hi): Handle big endian.
32662         (vec_interleave_highv4hi_be): New.
32663         (vec_interleave_highv4hi_le): New.
32664         (insn_v2int_h): Handle big endian.
32665         (vec_interleave_lowv4hi): Handle big endian.
32666         (vec_interleave_lowv4hi_be): New.
32667         (vec_interleave_lowv4hi_le): New.
32668         (insn_v2int_l): Handle big endian.
32669         (vec_interleave_highv2si): Handle big endian.
32670         (vec_interleave_highv2si_be): New.
32671         (vec_interleave_highv2si_le): New.
32672         (insn_v4int_h): Handle big endian.
32673         (vec_interleave_lowv2si): Handle big endian.
32674         (vec_interleave_lowv2si_be): New.
32675         (vec_interleave_lowv2si_le): New.
32676         (insn_v4int_l): Handle big endian.
32677         * config/tilegx/tilegx.opt (mbig-endian): New option.
32678         (mlittle-endian): New option.
32679         * doc/install.texi: Document tilegxbe-linux.
32680         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32681
32682 2014-02-24  Martin Jambor  <mjambor@suse.cz>
32683
32684         PR ipa/60266
32685         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32686         there are no parameter descriptors.
32687
32688 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
32689
32690         PR rtl-optimization/60268
32691         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32692         initialization to ...
32693         (sched_rgn_init): ... here.
32694         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32695
32696 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32697
32698         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32699         names.
32700
32701 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32702
32703         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32704         definition.
32705
32706 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32707
32708         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32709         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32710
32711 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32712
32713         * config/microblaze/predicates.md: Add cmp_op predicate.
32714         * config/microblaze/microblaze.md: Add branch_compare instruction
32715         which uses cmp_op predicate and emits cmp insn before branch.
32716         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32717         to microblaze_expand_conditional_branch and consolidate logic.
32718         (microblaze_expand_conditional_branch): emit branch_compare
32719         insn instead of handling cmp op separate from branch insn.
32720
32721 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32722
32723         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32724         to permit subregs.
32725
32726 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32727
32728         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32729         define_insn with define_expand and new define_insn
32730         *altivec_lve<VI_char>x_internal.
32731         (altivec_stve<VI_char>x): Replace define_insn with define_expand
32732         and new define_insn *altivec_stve<VI_char>x_internal.
32733         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32734         prototype.
32735         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32736         lve*x built-ins.
32737         (altivec_expand_stvex_be): New function.
32738
32739 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
32740
32741         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32742         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32743         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32744         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32745
32746 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
32747
32748         PR target/60298
32749         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32750         instead of emit_move_insn.
32751
32752 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32753
32754         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32755         vspltw with vsldoi.
32756         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32757         gen_altivec_vsumsws.
32758
32759 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32760
32761         * config/rs6000/altivec.md (altivec_lvxl): Rename as
32762         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32763         (altivec_lvxl_<mode>): New define_expand incorporating
32764         -maltivec=be semantics where needed.
32765         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32766         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32767         semantics where needed.
32768         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32769         (altivec_stvx_<mode>): New define_expand incorporating
32770         -maltivec=be semantics where needed.
32771         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32772         VM2 iterator instead of V4SI.
32773         (altivec_stvxl_<mode>): New define_expand incorporating
32774         -maltivec=be semantics where needed.
32775         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32776         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32777         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32778         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32779         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32780         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32781         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32782         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32783         ALTIVEC_BUILTIN_STVXL.
32784         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32785         (altivec_expand_stvx_be): Likewise.
32786         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32787         (altivec_expand_lvx_be): Likewise.
32788         (altivec_expand_stvx_be): Likewise.
32789         (altivec_expand_builtin): Add cases for
32790         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32791         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32792         (altivec_init_builtins): Add definitions for
32793         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32794         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32795
32796 2014-02-21  Catherine Moore  <clm@codesourcery.com>
32797
32798         * doc/invoke.texi (mvirt, mno-virt): Document.
32799         * config/mips/mips.opt (mvirt): New option.
32800         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32801
32802 2014-02-21  Richard Biener  <rguenther@suse.de>
32803
32804         PR tree-optimization/60276
32805         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32806         (STMT_VINFO_MIN_NEG_DIST): New macro.
32807         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32808         STMT_VINFO_MIN_NEG_DIST.
32809         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32810         made for negative dependence distances still hold.
32811
32812 2014-02-21  Richard Biener  <rguenther@suse.de>
32813
32814         PR middle-end/60291
32815         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32816         DECL_INITIAL for globals not in the current function context.
32817
32818 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32819
32820         PR tree-optimization/56490
32821         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32822         * tree-ssa-uninit.c: Include params.h.
32823         (compute_control_dep_chain): Add num_calls argument, return false
32824         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32825         num_calls to recursive call.
32826         (find_predicates): Change dep_chain into normal array,
32827         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32828         variable and adjust compute_control_dep_chain caller.
32829         (find_def_preds): Likewise.
32830
32831 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
32832
32833         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32834         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32835
32836 2014-02-21  Nick Clifton  <nickc@redhat.com>
32837
32838         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32839         (pushhi1): Likewise.
32840         (popqi1): Add mode to pre_dec.
32841         (pophi1): Likewise.
32842
32843 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32844
32845         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32846         mode for mask of V8SFmode permutation.
32847
32848 2014-02-20  Richard Henderson  <rth@redhat.com>
32849
32850         PR c++/60272
32851         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32852         a new pseudo for OLDVAL.
32853
32854 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
32855
32856         PR target/57896
32857         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32858         gen_reg_rtx if d->testing_p.
32859         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32860         if d->testing_p and we will certainly return true.
32861         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
32862         if d->testing_p.
32863
32864 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
32865
32866         * emit-rtl.c (gen_reg_rtx): Assert that
32867         crtl->emit.regno_pointer_align_length is non-zero.
32868
32869 2014-02-20  Richard Henderson  <rth@redhat.com>
32870
32871         PR c++/60272
32872         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32873         on failure the store back into EXPECT.
32874
32875 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
32876             Sandra Loosemore  <sandra@codesourcery.com>
32877
32878         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32879         * config/nios2/nios2.c (nios2_function_profiler): Add
32880         -fPIC (flag_pic == 2) support.
32881         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32882         (nios2_large_offset_p): New function.
32883         (nios2_unspec_reloc_p): Move up position, update to use
32884         nios2_large_offset_p.
32885         (nios2_unspec_address): Remove function.
32886         (nios2_unspec_offset): New function.
32887         (nios2_large_got_address): New function.
32888         (nios2_got_address): Add large offset support.
32889         (nios2_legitimize_tls_address): Update usage of removed and new
32890         functions.
32891         (nios2_symbol_binds_local_p): New function.
32892         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32893         (nios2_legitimize_address): Update to use nios2_large_offset_p.
32894         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32895         (nios2_print_operand): Merge H/L processing, add hiadj/lo
32896         processing for (const (unspec ...)).
32897         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32898
32899 2014-02-20  Richard Biener  <rguenther@suse.de>
32900
32901         * tree-cfg.c (replace_uses_by): Mark altered BBs before
32902         doing the substitution.
32903         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32904
32905 2014-02-20  Martin Jambor  <mjambor@suse.cz>
32906
32907         PR ipa/55260
32908         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32909         info when checking whether lattices are bottom.
32910
32911 2014-02-20  Richard Biener  <rguenther@suse.de>
32912
32913         PR middle-end/60221
32914         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32915         regions at -O0.
32916
32917 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
32918
32919         PR ipa/58555
32920         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32921         parameter specifying the scaling.
32922         (inline_call): Update.
32923         (want_inline_recursively): Guard division by zero.
32924         (recursive_inlining): Update.
32925         * ipa-inline.h (clone_inlined_nodes): Update.
32926
32927 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32928
32929         PR target/60204
32930         * config/i386/i386.c (classify_argument): Pass structures of size
32931         64 bytes or less in register.
32932
32933 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32934             Kirill Yukhin  <kirill.yukhin@intel.com>
32935
32936         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32937         (_mm_rcp28_round_ss): Ditto.
32938         (_mm_rsqrt28_round_sd): Ditto.
32939         (_mm_rsqrt28_round_ss): Ditto.
32940         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32941         (_mm_rcp14_round_ss): Ditto.
32942         (_mm_rsqrt14_round_sd): Ditto.
32943         (_mm_rsqrt14_round_ss): Ditto.
32944         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32945         the first input operand, get rid of match_dup.
32946         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32947         attribute to sse.
32948         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32949         Ditto.
32950         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32951         operand as the first input operand, set type attribute.
32952         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32953         Set type attribute.
32954         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32955         operand as the first input operand, set type attribute.
32956
32957 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32958
32959         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32960         bit of zero.
32961
32962 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32963
32964         PR target/60207
32965         * config/i386/i386.c (construct_container): Remove TFmode check
32966         for X86_64_INTEGER_CLASS.
32967
32968 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
32969
32970         PR target/59794
32971         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32972         only when -Wpsabi is enabled.
32973
32974 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
32975
32976         PR target/59799
32977         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32978         passing arrays in registers are the same as for structs, so remove the
32979         special case for them.
32980
32981 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32982
32983         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32984         destination type, extract only the valid bits if the source type is not
32985         integral and has a different mode.
32986
32987 2014-02-19  Richard Biener  <rguenther@suse.de>
32988
32989         PR ipa/60243
32990         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32991         for all calls.
32992
32993 2014-02-19  Richard Biener  <rguenther@suse.de>
32994
32995         PR ipa/60243
32996         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32997         (ipa_modify_call_arguments): Emit an argument load explicitely and
32998         preserve virtual SSA form there and for the replacement call.
32999         Do not update SSA form nor free dominance info.
33000
33001 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
33002
33003         * ipa.c (function_and_variable_visibility): Also clear WEAK
33004         flag when disolving COMDAT_GROUP.
33005
33006 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
33007
33008         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
33009         * ipa-prop.c (ipa_set_jf_known_type): Return early when
33010         not devirtualizing.
33011         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
33012         do more sanity checks.
33013         (detect_type_change): Return true when giving up early.
33014         (compute_complex_assign_jump_func): Fix type parameter of
33015         ipa_set_ancestor_jf.
33016         (compute_complex_ancestor_jump_func): Likewise.
33017         (update_jump_functions_after_inlining): Fix updating of
33018         ancestor function.
33019         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
33020
33021 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
33022
33023         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
33024         inline clones when edge disappears.
33025
33026 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
33027
33028         PR target/60203
33029         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
33030         Split 64-bit moves into 2 patterns.  Do not allow the use of
33031         direct move for TDmode in little endian, since the decimal value
33032         has little endian bytes within a word, but the 64-bit pieces are
33033         ordered in a big endian fashion, and normal subreg's of TDmode are
33034         not allowed.
33035         (mov<mode>_64bit_dm): Likewise.
33036         (movtd_64bit_nodm): Likewise.
33037
33038 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
33039
33040         PR tree-optimization/60174
33041         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
33042         statement of an SSA_NAME that occurs in an abnormal PHI node.
33043
33044 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
33045
33046         PR sanitizer/60142
33047         * final.c (SEEN_BB): Remove.
33048         (SEEN_NOTE, SEEN_EMITTED): Renumber.
33049         (final_scan_insn): Don't force_source_line on second
33050         NOTE_INSN_BASIC_BLOCK.
33051
33052 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
33053
33054         PR target/60205
33055         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
33056         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
33057         (type_natural_mode): Warn ABI change when %zmm register is not
33058         available for AVX512F vector value passing.
33059
33060 2014-02-18  Kai Tietz  <ktietz@redhat.com>
33061
33062         PR target/60193
33063         * config/i386/i386.c (ix86_expand_prologue): Use value in
33064         rax register as displacement when restoring %r10 or %rax.
33065         Fix wrong offset when restoring both registers.
33066
33067 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
33068
33069         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
33070         assertion with conditional return.
33071
33072 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
33073             Uros Bizjak  <ubizjak@gmail.com>
33074
33075         PR driver/60233
33076         * config/i386/driver-i386.c (host_detect_local_cpu): If
33077         YMM state is not saved by the OS, also clear has_f16c.  Move
33078         CPUID 0x80000001 handling before YMM state saving checking.
33079
33080 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
33081
33082         PR rtl-optimization/58960
33083         * haifa-sched.c (alloc_global_sched_pressure_data): New,
33084         factored out from ...
33085         (sched_init): ... here.
33086         (free_global_sched_pressure_data): New, factored out from ...
33087         (sched_finish): ... here.
33088         * sched-int.h (free_global_sched_pressure_data): Declare.
33089         * sched-rgn.c (nr_regions_initial): New static global.
33090         (haifa_find_rgns): Initialize it.
33091         (schedule_region): Disable sched-pressure for the newly
33092         generated regions.
33093
33094 2014-02-17  Richard Biener  <rguenther@suse.de>
33095
33096         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
33097         release SSA defs of pattern stmts.
33098
33099 2014-02-17  Richard Biener  <rguenther@suse.de>
33100
33101         * tree-inline.c (expand_call_inline): Release the virtual
33102         operand defined by the call we are about to inline.
33103
33104 2014-02-17  Richard Biener  <rguenther@suse.de>
33105
33106         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
33107
33108 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
33109             Ilya Tocar  <ilya.tocar@intel.com>
33110
33111         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
33112         arguments order in builtin.
33113         (_mm512_permutexvar_epi64): Ditto.
33114         (_mm512_mask_permutexvar_epi64): Ditto
33115         (_mm512_maskz_permutexvar_epi32): Ditto
33116         (_mm512_permutexvar_epi32): Ditto
33117         (_mm512_mask_permutexvar_epi32): Ditto
33118
33119 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33120
33121         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
33122         (p8_vmrgow): Likewise.
33123
33124 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33125
33126         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
33127         endian targets.
33128
33129 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
33130
33131         PR target/60203
33132         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
33133         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
33134         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
33135         using direct move instructions on ISA 2.07.  Also adjust
33136         instruction length for 64-bit.
33137         (mov<mode>_64bit, TFmode/TDmode): Likewise.
33138         (mov<mode>_32bit, TFmode/TDmode): Likewise.
33139
33140 2014-02-15  Alan Modra  <amodra@gmail.com>
33141
33142         PR target/58675
33143         PR target/57935
33144         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
33145         find_replacement on parts of insn rtl that might be reloaded.
33146
33147 2014-02-15  Richard Biener  <rguenther@suse.de>
33148
33149         PR tree-optimization/60183
33150         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
33151         (tree_ssa_phiprop): Calculate and free post-dominators.
33152
33153 2014-02-14  Jeff Law  <law@redhat.com>
33154
33155         PR rtl-optimization/60131
33156         * ree.c (get_extended_src_reg): New function.
33157         (combine_reaching_defs): Use it rather than assuming location of REG.
33158         (find_and_remove_re): Verify first operand of extension is
33159         a REG before adding the insns to the copy list.
33160
33161 2014-02-14  Roland McGrath  <mcgrathr@google.com>
33162
33163         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
33164         * configure: Regenerated.
33165         * config.in: Regenerated.
33166         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
33167         instead of ASM_SHORT.
33168
33169 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
33170             Richard Earnshaw  <rearnsha@arm.com>
33171
33172         PR rtl-optimization/59535
33173         * lra-constraints.c (process_alt_operands): Encourage alternative
33174         when unassigned pseudo class is superset of the alternative class.
33175         (inherit_reload_reg): Don't inherit when optimizing for code size.
33176         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
33177         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
33178         modes not less than 4 for Thumb1.
33179
33180 2014-02-14  Kyle McMartin  <kyle@redhat.com>
33181
33182         PR pch/60010
33183         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
33184
33185 2014-02-14  Richard Biener  <rguenther@suse.de>
33186
33187         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
33188         (get_frame_arg): Drop the assert with langhook types_compatible_p.
33189         Do not strip INDIRECT_REFs.
33190
33191 2014-02-14  Richard Biener  <rguenther@suse.de>
33192
33193         PR lto/60179
33194         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
33195         DECL_FUNCTION_SPECIFIC_TARGET.
33196         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
33197         * tree-streamer-out.c (pack_ts_target_option): Remove.
33198         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
33199         (write_ts_function_decl_tree_pointers): Do not stream
33200         DECL_FUNCTION_SPECIFIC_TARGET.
33201         * tree-streamer-in.c (unpack_ts_target_option): Remove.
33202         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
33203         (lto_input_ts_function_decl_tree_pointers): Do not stream
33204         DECL_FUNCTION_SPECIFIC_TARGET.
33205
33206 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
33207
33208         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
33209         (get_initial_def_for_induction, vectorizable_induction): Ignore
33210         debug stmts when looking for exit_phi.
33211         (vectorizable_live_operation): Fix up condition.
33212
33213 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33214
33215         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
33216         nreverse() because it changes the content of original tree list.
33217
33218 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33219
33220         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
33221         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
33222
33223 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33224
33225         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
33226         GNU coding standards.
33227
33228 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
33229
33230         PR debug/60152
33231         * dwarf2out.c (gen_subprogram_die): Don't call
33232         add_calling_convention_attribute if subr_die is old_die.
33233
33234 2014-02-13  Sharad Singhai  <singhai@google.com>
33235
33236         * doc/optinfo.texi: Fix order of nodes.
33237
33238 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
33239
33240         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
33241         operands[2], not operands[3].
33242
33243 2014-02-13  Richard Biener  <rguenther@suse.de>
33244
33245         PR bootstrap/59878
33246         * doc/install.texi (ISL): Update recommended version to 0.12.2,
33247         mention the possibility of an in-tree build.
33248         (CLooG): Update recommended version to 0.18.1, mention the
33249         possibility of an in-tree build and clarify that the ISL
33250         bundled with CLooG does not work.
33251
33252 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
33253
33254         PR target/43546
33255         * expr.c (compress_float_constant): If x is a hard register,
33256         extend into a pseudo and then move to x.
33257
33258 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33259
33260         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
33261         caused by bad second argument to warning_at() with -mhotpatch and
33262         nested functions (e.g. with gfortran).
33263
33264 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
33265
33266         * opts.c (option_name): Remove "enabled by default" rider.
33267
33268 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
33269
33270         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
33271
33272 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
33273             Uros Bizjak  <ubizjak@gmail.com>
33274
33275         PR target/60151
33276         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
33277         * configure: Regenerated.
33278
33279 2014-02-12  Richard Biener  <rguenther@suse.de>
33280
33281         * vec.c (vec_prefix::calculate_allocation): Move as
33282         inline variant to vec.h.
33283         (vec_prefix::calculate_allocation_1): New out-of-line version.
33284         * vec.h (vec_prefix::calculate_allocation_1): Declare.
33285         (vec_prefix::m_has_auto_buf): Rename to ...
33286         (vec_prefix::m_using_auto_storage): ... this.
33287         (vec_prefix::calculate_allocation): Inline the easy cases
33288         and dispatch to calculate_allocation_1 which doesn't need the
33289         prefix address.
33290         (va_heap::reserve): Use gcc_checking_assert.
33291         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
33292         m_using_auto_storage.
33293         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
33294         member and adjust.
33295         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
33296         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
33297         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
33298
33299 2014-02-12  Richard Biener  <rguenther@suse.de>
33300
33301         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
33302         when we found a dependence.
33303
33304 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
33305
33306         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
33307         common code...
33308         (maybe_fold_stmt): ... into this new function.
33309         * omp-low.c (lower_omp): Update comment.
33310
33311         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
33312         last use.
33313
33314         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
33315         dereference.
33316
33317 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
33318
33319         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
33320         identifiers in comments.
33321         (cortexa53_extra_costs): Likewise.
33322         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
33323         (cortexa7_extra_costs): Likewise.
33324         (cortexa12_extra_costs): Likewise.
33325         (cortexa15_extra_costs): Likewise.
33326         (v7m_extra_costs): Likewise.
33327
33328 2014-02-12  Richard Biener  <rguenther@suse.de>
33329
33330         PR middle-end/60092
33331         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
33332         of posix_memalign being successful.
33333         (lower_stmt): Restrict lowering of posix_memalign to when
33334         -ftree-bit-ccp is enabled.
33335
33336 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
33337
33338         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
33339         arg_loc.
33340         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
33341
33342 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
33343
33344         PR rtl-optimization/60116
33345         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
33346         other_insn once the combination has been validated.
33347
33348 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
33349
33350         PR lto/59468
33351         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
33352         and wrapper.
33353         * ipa-devirt.c: Include demangle.h
33354         (odr_violation_reported): New static variable.
33355         (add_type_duplicate): Update odr_violations.
33356         (maybe_record_node): Add completep parameter; update it.
33357         (record_target_from_binfo): Add COMPLETEP parameter;
33358         update it as needed.
33359         (possible_polymorphic_call_targets_1): Likewise.
33360         (struct polymorphic_call_target_d): Add nonconstruction_targets;
33361         rename FINAL to COMPLETE.
33362         (record_targets_from_bases): Sanity check we found the binfo;
33363         fix COMPLETEP updating.
33364         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
33365         parameter, fix computing of COMPLETEP.
33366         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
33367         at LTO time do demangling.
33368         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
33369         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
33370         parameter.
33371         (gimple_get_virt_method_for_binfo): Likewise.
33372         * gimple-fold.h (gimple_get_virt_method_for_binfo,
33373         gimple_get_virt_method_for_vtable): Update prototypes.
33374
33375 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
33376
33377         PR target/49008
33378         * genautomata.c (add_presence_absence): Fix typo with
33379         {final_}presence_list.
33380
33381 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
33382
33383         PR target/60137
33384         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
33385         for VSX/Altivec vectors that land in GPR registers.
33386
33387 2014-02-11  Richard Henderson  <rth@redhat.com>
33388             Jakub Jelinek  <jakub@redhat.com>
33389
33390         PR debug/59776
33391         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
33392         around drhs if type conversion to lacc->type is not useless.
33393
33394 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33395
33396         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
33397         tuning struct.
33398         (cortex-a57.cortex-a53): Likewise.
33399         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
33400
33401 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33402
33403         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
33404         arm_restrict_it.
33405
33406 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
33407
33408         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
33409         add_options_for_arm_vfp3.
33410
33411 2014-02-11  Jeff Law  <law@redhat.com>
33412
33413         PR middle-end/54041
33414         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
33415         object with an undesirable mode.
33416
33417 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33418
33419         PR libgomp/60107
33420         * config/i386/sol2-9.h: New file.
33421         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
33422         *-*-solaris2.9*): Use it.
33423
33424 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33425
33426         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
33427         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
33428
33429 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33430
33431         * config/microblaze/microblaze.c: Extend mcpu version format
33432
33433 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
33434
33435         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
33436
33437 2014-02-10  Richard Henderson  <rth@redhat.com>
33438
33439         PR target/59927
33440         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
33441         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
33442         ms-abi vs -mno-accumulate-outgoing-args.
33443         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
33444         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
33445         respect to ms-abi.
33446
33447 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33448
33449         PR middle-end/60080
33450         * cfgexpand.c (expand_asm_operands): Attach source location to
33451         ASM_INPUT rtx objects.
33452         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
33453
33454 2014-02-10  Nick Clifton  <nickc@redhat.com>
33455
33456         * config/mn10300/mn10300.c (popcount): New function.
33457         (mn10300_expand_prologue): Include saved registers in stack usage
33458         count.
33459
33460 2014-02-10  Jeff Law  <law@redhat.com>
33461
33462         PR middle-end/52306
33463         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
33464         when changing the SET_DEST of a prior insn to avoid an input reload.
33465
33466 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33467
33468         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
33469         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
33470         -mcall-openbsd, or -mcall-linux.
33471         (CC1_ENDIAN_BIG_SPEC): Remove.
33472         (CC1_ENDIAN_LITTLE_SPEC): Remove.
33473         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33474         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
33475         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
33476         and %cc1_endian_default.
33477         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33478
33479 2014-02-10  Richard Biener  <rguenther@suse.de>
33480
33481         PR tree-optimization/60115
33482         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
33483         MEM_REF handling.  Properly verify that the accesses are not
33484         out of the objects bound.
33485
33486 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33487
33488         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
33489         coretex to cortex.
33490
33491 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
33492
33493         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
33494         proper constants and fix formatting.
33495         (possible_polymorphic_call_targets): Fix formatting.
33496
33497 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
33498             Ilya Tocar  <ilya.tocar@intel.com>
33499
33500         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
33501         (_mm512_loadu_epi32): Renamed into...
33502         (_mm512_loadu_si512): This.
33503         (_mm512_storeu_epi32): Renamed into...
33504         (_mm512_storeu_si512): This.
33505         (_mm512_maskz_ceil_ps): Removed.
33506         (_mm512_maskz_ceil_pd): Ditto.
33507         (_mm512_maskz_floor_ps): Ditto.
33508         (_mm512_maskz_floor_pd): Ditto.
33509         (_mm512_floor_round_ps): Ditto.
33510         (_mm512_floor_round_pd): Ditto.
33511         (_mm512_ceil_round_ps): Ditto.
33512         (_mm512_ceil_round_pd): Ditto.
33513         (_mm512_mask_floor_round_ps): Ditto.
33514         (_mm512_mask_floor_round_pd): Ditto.
33515         (_mm512_mask_ceil_round_ps): Ditto.
33516         (_mm512_mask_ceil_round_pd): Ditto.
33517         (_mm512_maskz_floor_round_ps): Ditto.
33518         (_mm512_maskz_floor_round_pd): Ditto.
33519         (_mm512_maskz_ceil_round_ps): Ditto.
33520         (_mm512_maskz_ceil_round_pd): Ditto.
33521         (_mm512_expand_pd): Ditto.
33522         (_mm512_expand_ps): Ditto.
33523         * config/i386/i386.c (ix86_builtins): Remove
33524         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
33525         (bdesc_args): Ditto.
33526         * config/i386/predicates.md (const1256_operand): New.
33527         (const_1_to_2_operand): Ditto.
33528         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
33529         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33530         (*avx512pf_gatherpf<mode>sf): Ditto.
33531         (avx512pf_gatherpf<mode>df): Ditto.
33532         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33533         (*avx512pf_gatherpf<mode>df): Ditto.
33534         (avx512pf_scatterpf<mode>sf): Ditto.
33535         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33536         (*avx512pf_scatterpf<mode>sf): Ditto.
33537         (avx512pf_scatterpf<mode>df): Ditto.
33538         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33539         (*avx512pf_scatterpf<mode>df): Ditto.
33540         (avx512f_expand<mode>): Removed.
33541         (<shift_insn><mode>3<mask_name>): Change predicate type.
33542
33543 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33544
33545         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
33546         not at the end of datarefs vector use ordered_remove to avoid
33547         reordering datarefs vector.
33548
33549         PR c/59984
33550         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
33551         mark local addressable non-static vars as GOVD_PRIVATE
33552         instead of GOVD_LOCAL.
33553         * omp-low.c (lower_omp_for): Move gimple_bind_vars
33554         and BLOCK_VARS of gimple_bind_block to new_stmt rather
33555         than copying them.
33556
33557         PR middle-end/60092
33558         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
33559         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
33560         assume_aligned or alloc_align attributes.
33561         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
33562         arguments.  Handle also assume_aligned and alloc_align attributes.
33563         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
33564         calls to functions with assume_aligned or alloc_align attributes.
33565         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
33566
33567 2014-02-08  Terry Guo  <terry.guo@arm.com>
33568
33569         * doc/invoke.texi: Document ARM -march=armv7e-m.
33570
33571 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33572
33573         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
33574         flag on __cilkrts_rethrow builtin.
33575
33576         PR ipa/60026
33577         * ipa-cp.c (determine_versionability): Fail at -O0
33578         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
33579         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
33580
33581         Revert:
33582         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33583
33584         PR ipa/60026
33585         * tree-inline.c (copy_forbidden): Fail for
33586         __attribute__((optimize (0))) functions.
33587
33588 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33589
33590         * varpool.c: Include pointer-set.h.
33591         (varpool_remove_unreferenced_decls): Variables in other partitions
33592         will not be output; be however careful to not lose information
33593         about partitioning.
33594
33595 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33596
33597         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
33598         lookup in the vtable constructor.
33599
33600 2014-02-07  Jeff Law  <law@redhat.com>
33601
33602         PR target/40977
33603         * config/m68k/m68k.md (ashldi_extsi): Turn into a
33604         define_insn_and_split.
33605
33606         * ipa-inline.c (inline_small_functions): Fix typos.
33607
33608 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33609
33610         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
33611         (s390_can_use_return_insn): Declare.
33612         * config/s390/s390.h (EPILOGUE_USES): Define.
33613         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
33614         instructions.
33615         (s390_chunkify_start): Handle return JUMP_LABELs.
33616         (s390_early_mach): Emit a main_pool instruction on the entry edge.
33617         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
33618         (s390_can_use_return_insn): New functions.
33619         (s390_fix_long_loop_prediction): Handle conditional returns.
33620         (TARGET_SET_UP_BY_PROLOGUE): Define.
33621         * config/s390/s390.md (ANY_RETURN): New code iterator.
33622         (*creturn, *csimple_return, return, simple_return): New patterns.
33623
33624 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33625
33626         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
33627         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
33628         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
33629         REG_CFA_RESTORE list when deciding not to restore a register.
33630
33631 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33632
33633         * config/s390/s390.c: Include tree-pass.h and context.h.
33634         (s390_early_mach): New function, split out from...
33635         (s390_emit_prologue): ...here.
33636         (pass_data_s390_early_mach): New pass structure.
33637         (pass_s390_early_mach): New class.
33638         (s390_option_override): Create and register early_mach pass.
33639         Move to end of file.
33640
33641 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33642
33643         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
33644         to match for the exit block.
33645
33646 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33647
33648         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
33649         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
33650         Reject misaligned operands.
33651
33652 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33653
33654         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33655
33656 2014-02-07  Richard Biener  <rguenther@suse.de>
33657
33658         PR middle-end/60092
33659         * gimple-low.c (lower_builtin_posix_memalign): New function.
33660         (lower_stmt): Call it to lower posix_memalign in a way
33661         to make alignment info accessible.
33662
33663 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
33664
33665         PR c++/60082
33666         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33667         __builtin_setjmp_receiver.
33668
33669 2014-02-07  Richard Biener  <rguenther@suse.de>
33670
33671         PR middle-end/60092
33672         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33673         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33674         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33675         Handle BUILT_IN_POSIX_MEMALIGN.
33676         (find_func_clobbers): Likewise.
33677         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33678         (call_may_clobber_ref_p_1): Likewise.
33679
33680 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33681
33682         PR ipa/59918
33683         * ipa-devirt.c (record_target_from_binfo): Remove overactive
33684         sanity check.
33685
33686 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33687
33688         PR ipa/59469
33689         * lto-cgraph.c (lto_output_node): Use
33690         symtab_get_symbol_partitioning_class.
33691         (lto_output_varpool_node): likewise.
33692         (symtab_get_symbol_partitioning_class): Move here from
33693         lto/lto-partition.c
33694         * cgraph.h (symbol_partitioning_class): Likewise.
33695         (symtab_get_symbol_partitioning_class): Declare.
33696
33697 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33698
33699         * ggc.h (ggc_internal_cleared_alloc): New macro.
33700         * vec.h (vec_safe_copy): Handle memory stats.
33701         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33702         * target-globals.c (save_target_globals): Likewise.
33703
33704 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33705
33706         PR target/60077
33707         * expr.c (emit_move_resolve_push): Export; be bit more selective
33708         on when to clear alias set.
33709         * expr.h (emit_move_resolve_push): Declare.
33710         * function.h (struct function): Add tail_call_marked.
33711         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33712         * config/i386/i386-protos.h (ix86_expand_push): Remove.
33713         * config/i386/i386.md (TImode move expander): De not call
33714         ix86_expand_push.
33715         (FP push expanders): Preserve memory attributes.
33716         * config/i386/sse.md (push<mode>1): Remove.
33717         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33718         (ix86_expand_push): Remove.
33719         * config/i386/mmx.md (push<mode>1): Remove.
33720
33721 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33722
33723         PR rtl-optimization/60030
33724         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33725         lopart with paradoxical subreg before shifting it up by hprec.
33726
33727 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33728
33729         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33730         Remove extra newline at end of file.
33731         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33732         (arm_issue_rate): Handle cortexa57.
33733         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33734         (cortex-a57.cortex-a53): Likewise.
33735
33736 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33737
33738         PR target/59575
33739         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33740         don't record in REG_FRAME_RELATED_EXPR registers not set in that
33741         bitmask.
33742         (arm_expand_prologue): Adjust all callers.
33743         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33744         info, registers also at the lowest numbered registers side.  Use
33745         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33746         XEXP.
33747
33748         PR debug/59992
33749         * var-tracking.c (adjust_mems): Before adding a SET to
33750         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33751
33752 2014-02-06  Alan Modra  <amodra@gmail.com>
33753
33754         PR target/60032
33755         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33756         change SDmode to DDmode when lra_in_progress.
33757
33758 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33759
33760         PR middle-end/59150
33761         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33762         free_data_ref on the dr first, and before goto again also set dr
33763         to the next dr.  For simd_lane_access, free old datarefs[i] before
33764         overwriting it.  For get_vectype_for_scalar_type failure, don't
33765         free_data_ref if simd_lane_access.
33766
33767         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33768
33769         PR target/60062
33770         * tree.h (opts_for_fn): New inline function.
33771         (opt_for_fn): Define.
33772         * config/i386/i386.c (ix86_function_regparm): Use
33773         opt_for_fn (decl, optimize) instead of optimize.
33774
33775 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33776
33777         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33778         for SYMBOL_REF in large memory model.
33779
33780 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33781
33782         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33783         and crypto support.
33784         (cortex-a57): Likewise.
33785         (cortex-a57.cortex-a53): Likewise.
33786
33787 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
33788             Kugan Vivekanandarajah  <kuganv@linaro.org>
33789
33790         * config/arm/arm.c (arm_vector_alignment_reachable): Check
33791         unaligned_access.
33792         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33793
33794 2014-02-06  Richard Biener  <rguenther@suse.de>
33795
33796         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33797         set_loop_copy and initialize_original_copy_tables.
33798
33799 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
33800
33801         * config/aarch64/aarch64-simd.md
33802         (aarch64_ashr_simddi): Change QI to SI.
33803
33804 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33805             Jakub Jelinek  <jakub@redhat.com>
33806
33807         PR middle-end/60013
33808         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33809         of the dataflow.
33810
33811 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33812
33813         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33814         CODE_FOR_altivec_vpku[hw]um to
33815         CODE_FOR_altivec_vpku[hw]um_direct.
33816         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33817         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33818         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33819         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33820
33821 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33822
33823         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33824         generation for -maltivec=be.
33825         (altivec_vsumsws): Simplify redundant test.
33826
33827 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33828
33829         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33830         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33831         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33832         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33833         gen_altivec_vpkuwum.
33834         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33835         BYTES_BIG_ENDIAN.
33836         (altivec_vpks<VI_char>ss): Likewise.
33837         (altivec_vpks<VI_char>us): Likewise.
33838         (altivec_vpku<VI_char>us): Likewise.
33839         (altivec_vpku<VI_char>um): Likewise.
33840         (altivec_vpku<VI_char>um_direct): New (copy of
33841         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33842         internal use).
33843         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33844         target is little endian and -maltivec=be is not specified.
33845         (*altivec_vupkhs<VU_char>_direct): New (copy of
33846         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33847         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33848         target is little endian and -maltivec=be is not specified.
33849         (*altivec_vupkls<VU_char>_direct): New (copy of
33850         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33851         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33852         little endian and -maltivec=be is not specified.
33853         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33854         little endian and -maltivec=be is not specified.
33855
33856 2014-02-05  Richard Henderson  <rth@redhat.com>
33857
33858         PR debug/52727
33859         * combine-stack-adj.c: Revert r206943.
33860         * sched-int.h (struct deps_desc): Add last_args_size.
33861         * sched-deps.c (init_deps): Initialize it.
33862         (sched_analyze_insn): Add OUTPUT dependencies between insns that
33863         contain REG_ARGS_SIZE notes.
33864
33865 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33866
33867         * lto-cgraph.c (asm_nodes_output): Make global.
33868         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33869         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33870         (driver_handle_option): Handle OPT_fwpa.
33871
33872 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
33873
33874         PR ipa/59947
33875         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33876         a comment typo and formatting issue.  If odr_hash hasn't been
33877         created, return vNULL and set *completep to false.
33878
33879         PR middle-end/57499
33880         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33881         bb with no successors.
33882
33883 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
33884
33885         PR target/59718
33886         * doc/invoke.texi (-march): Clarify documentation for ARM.
33887         (-mtune): Likewise.
33888         (-mcpu): Likewise.
33889
33890 2014-02-05  Richard Biener  <rguenther@suse.de>
33891
33892         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33893         when not vectorizing because of too many alias checks.
33894         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33895         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33896
33897 2014-02-05  Nick Clifton  <nickc@redhat.com>
33898
33899         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33900         accept extended registers in any mode when compiling for the MN10300.
33901
33902 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
33903
33904         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33905         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33906         sanitization attributes.
33907         (can_inline_edge_p): Likewise.
33908         (sanitize_attrs_match_for_inline_p): New function.
33909
33910 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33911
33912         * ipa-prop.c (detect_type_change): Shor circuit testing of
33913         type changes on THIS pointer.
33914
33915 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
33916
33917         PR target/59777
33918         * config/pa/pa.c (legitimize_tls_address): Return original address
33919         if not passed a SYMBOL_REF rtx.
33920         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33921         addresses.
33922         (pa_emit_move_sequence): Simplify TLS source operands.
33923         (pa_legitimate_constant_p): Reject all TLS constants.
33924         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33925         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33926
33927 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33928
33929         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33930         groups when we know they are controlled by LTO.
33931         * varasm.c (default_binds_local_p_1): If object is in other partition,
33932         it will be resolved locally.
33933
33934 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33935
33936         * config/host-linux.c (linux_gt_pch_use_address): Don't
33937         use SSIZE_MAX because it is not always defined.
33938
33939 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
33940
33941         PR bootstrap/59913
33942         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33943         threshold for pseudo splitting.
33944         (update_ebb_live_info): Process call argument hard registers and
33945         hard registers from insn definition too.
33946         (max_small_class_regs_num): New constant.
33947         (inherit_in_ebb): Update live hard regs through EBBs.  Update
33948         reloads_num only for small register classes.  Don't split for
33949         outputs of jumps.
33950
33951 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
33952
33953         PR ipa/60058
33954         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33955         is non-null.
33956
33957 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33958
33959         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33960         visibility is safe.
33961
33962 2014-02-04  Marek Polacek  <polacek@redhat.com>
33963
33964         * gdbinit.in (pel): Define.
33965
33966 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33967
33968         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33969         behavior.
33970
33971 2014-02-04  Richard Biener  <rguenther@suse.de>
33972
33973         PR lto/59723
33974         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33975         in function context local.
33976         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33977         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33978         similar to LTO_imported_decl_ref.
33979
33980 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33981
33982         PR tree-optimization/60002
33983         * cgraphclones.c (build_function_decl_skip_args): Clear
33984         DECL_LANG_SPECIFIC.
33985
33986         PR tree-optimization/60023
33987         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33988         false to gsi_replace.
33989         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33990         has been in some EH region and vec_stmt could throw, add
33991         vec_stmt into the same EH region.
33992         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33993         has no lhs, ignore it.
33994         * internal-fn.c (expand_MASK_LOAD): Likewise.
33995
33996         PR ipa/60026
33997         * tree-inline.c (copy_forbidden): Fail for
33998         __attribute__((optimize (0))) functions.
33999
34000         PR other/58712
34001         * omp-low.c (simd_clone_struct_copy): If from->inbranch
34002         is set, copy one less argument.
34003         (expand_simd_clones): Don't subtract clone_info->inbranch
34004         from simd_clone_struct_alloc argument.
34005
34006         PR rtl-optimization/57915
34007         * recog.c (simplify_while_replacing): If all unary/binary/relational
34008         operation arguments are constant, attempt to simplify those.
34009
34010         PR middle-end/59261
34011         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
34012         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
34013
34014 2014-02-04  Richard Biener  <rguenther@suse.de>
34015
34016         PR tree-optimization/60012
34017         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
34018         TBAA disambiguation to all DDRs.
34019
34020 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34021
34022         PR target/59788
34023         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
34024         (LINK_SPEC): Use it for -shared, -shared-libgcc.
34025
34026 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34027
34028         PR ipa/59882
34029         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
34030
34031 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34032
34033         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
34034         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
34035
34036 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34037
34038         PR ipa/59831
34039         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
34040         to figure out targets of polymorphic calls with known decl.
34041         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
34042         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
34043         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
34044         (get_polymorphic_call_info): ... here.
34045         (get_polymorphic_call_info_from_invariant): New function.
34046
34047 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34048
34049         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
34050         lookup via vtable pointer; check for type consistency
34051         and turn inconsitent facts into UNREACHABLE.
34052         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
34053         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
34054         type inconsistent querries; return UNREACHABLE instead.
34055
34056 2014-02-03  Richard Henderson  <rth@twiddle.net>
34057
34058         PR tree-opt/59924
34059         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
34060         already processed this node.
34061         (normalize_one_pred_1): Pass along mark_set.
34062         (normalize_one_pred): Create and destroy a pointer_set_t.
34063         (normalize_one_pred_chain): Likewise.
34064
34065 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
34066
34067         PR gcov-profile/58602
34068         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
34069
34070 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
34071
34072         PR ipa/59831
34073         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
34074         -fno-devirtualize; try to devirtualize by the knowledge of
34075         virtual table pointer given by aggregate propagation.
34076         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
34077         (ipa_print_node_jump_functions): Dump also offset that
34078         is relevant for polymorphic calls.
34079         (determine_known_aggregate_parts): Add arg_type parameter; use it
34080         instead of determining the type from pointer type.
34081         (ipa_compute_jump_functions_for_edge): Update call of
34082         determine_known_aggregate_parts.
34083         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
34084         (gimple_get_virt_method_for_binfo): ... here; simplify using
34085         vtable_pointer_value_to_vtable.
34086         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
34087         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
34088         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
34089         (vtable_pointer_value_to_vtable): Break out from ...; handle also
34090         POINTER_PLUS_EXPR.
34091         (vtable_pointer_value_to_binfo): ... here.
34092         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
34093
34094 2014-02-03  Teresa Johnson  <tejohnson@google.com>
34095
34096         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
34097         redef of outer loop index variable.
34098
34099 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
34100
34101         PR c++/53017
34102         PR c++/59211
34103         * doc/extend.texi (Function Attributes): Typo.
34104
34105 2014-02-03  Cong Hou  <congh@google.com>
34106
34107         PR tree-optimization/60000
34108         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
34109         if the vectorized statement is a store.  A store statement can only
34110         appear at the end of pattern statements.
34111
34112 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
34113
34114         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
34115         (ix86_option_override_internal): Default long double to 64-bit for
34116         32-bit Bionic and to 128-bit for 64-bit Bionic.
34117
34118         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
34119         TARGET_LONG_DOUBLE_128 is true.
34120         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
34121
34122         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
34123         (mlong-double-64): Negate -mlong-double-128.
34124         (mlong-double-128): New option.
34125
34126         * config/i386/i386-c.c (ix86_target_macros): Define
34127         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
34128
34129         * doc/invoke.texi: Document -mlong-double-128.
34130
34131 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
34132
34133         PR rtl-optimization/60024
34134         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
34135
34136 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
34137
34138         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
34139
34140 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
34141
34142         PR rtl-optimization/57662
34143         * sel-sched.c (code_motion_path_driver): Do not mark already not
34144         existing blocks in the visiting bitmap.
34145
34146 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
34147
34148         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
34149         on the insn being emitted.
34150
34151 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
34152             Will Deacon  <will.deacon@arm.com>
34153
34154         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
34155
34156 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34157
34158         * config/arm/arm-tables.opt: Regenerate.
34159
34160 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34161
34162         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
34163         for vector types other than V16QImode.
34164         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
34165         define_expand, and call altivec_expand_vec_perm_le when producing
34166         code with little endian element order.
34167         (*altivec_vperm_<mode>_internal): New insn having previous
34168         behavior of altivec_vperm_<mode>.
34169         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
34170         altivec_expand_vec_perm_le when producing code with little endian
34171         element order.
34172         (*altivec_vperm_<mode>_uns_internal): New insn having previous
34173         behavior of altivec_vperm_<mode>_uns.
34174
34175 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34176
34177         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
34178         (altivec_vsumsws): Add handling for -maltivec=be with a little
34179         endian target.
34180         (altivec_vsumsws_direct): New.
34181         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
34182         gen_altivec_vsumsws.
34183
34184 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
34185
34186         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
34187         vtable_pointer_value_to_binfo): New functions.
34188         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
34189         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
34190
34191 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
34192
34193         * config/nios2/nios2.md (load_got_register): Initialize GOT
34194         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
34195         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
34196
34197 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
34198
34199         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
34200         preserverd by passthrough, do not propagate the type.
34201
34202 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34203
34204         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
34205         (mips_atomic_assign_expand_fenv): New function.
34206         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
34207
34208 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34209
34210         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
34211         (__builtin_mips_set_fcsr): Likewise.
34212         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
34213         MIPS_USI_FTYPE_VOID.
34214         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
34215         (mips16_expand_set_fcsr): Likewise.
34216         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
34217         (mips16_set_fcsr_stub): Likewise.
34218         (mips16_get_fcsr_one_only_stub): New class.
34219         (mips16_set_fcsr_one_only_stub): Likewise.
34220         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
34221         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
34222         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
34223         (hard_float): New availability predicate.
34224         (mips_builtins): Add get_fcsr and set_fcsr.
34225         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
34226         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
34227         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
34228         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
34229         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
34230         patterns.
34231
34232 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34233
34234         * config/mips/mips.c (mips_one_only_stub): New class.
34235         (mips_need_mips16_rdhwr_p): Replace with...
34236         (mips16_rdhwr_stub): ...this new variable.
34237         (mips16_stub_call_address): New function.
34238         (mips16_rdhwr_one_only_stub): New class.
34239         (mips_expand_thread_pointer): Use mips16_stub_call_address.
34240         (mips_output_mips16_rdhwr): Delete.
34241         (mips_finish_stub): New function.
34242         (mips_code_end): Use it to handle rdhwr stubs.
34243
34244 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
34245
34246         PR target/60017
34247         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
34248         when calculating size of integer atomic types.
34249
34250 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
34251
34252         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
34253
34254 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
34255
34256         PR tree-optimization/60003
34257         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
34258         * profile.c (branch_prob): Use gimple_call_builtin_p
34259         to check for BUILT_IN_SETJMP_RECEIVER.
34260         * tree-inline.c (copy_bb): Call notice_special_calls.
34261
34262 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
34263
34264         PR bootstrap/59985
34265         * lra-constraints.c (process_alt_operands): Update reload_sum only
34266         on the first pass.
34267
34268 2014-01-31  Richard Henderson  <rth@redhat.com>
34269
34270         PR middle-end/60004
34271         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
34272         until after else_eh is processed.
34273
34274 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34275
34276         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
34277         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
34278         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
34279         in smmintrin.h, remove them.
34280         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
34281         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
34282         * config/i386/i386.md (ROUND_SAE): Fix value.
34283         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
34284         (const48_operand): New.
34285         * config/i386/subst.md (round), (round_expand): Use
34286         const_4_or_8_to_11_operand.
34287         (round_saeonly), (round_saeonly_expand): Use const48_operand.
34288
34289 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34290
34291         * config/i386/constraints.md (Yk): Swap meaning with k.
34292         * config/i386/i386.md (movhi_internal): Change Yk to k.
34293         (movqi_internal): Ditto.
34294         (*k<logic><mode>): Ditto.
34295         (*andhi_1): Ditto.
34296         (*andqi_1): Ditto.
34297         (kandn<mode>): Ditto.
34298         (*<code>hi_1): Ditto.
34299         (*<code>qi_1): Ditto.
34300         (kxnor<mode>): Ditto.
34301         (kortestzhi): Ditto.
34302         (kortestchi): Ditto.
34303         (kunpckhi): Ditto.
34304         (*one_cmplhi2_1): Ditto.
34305         (*one_cmplqi2_1): Ditto.
34306         * config/i386/sse.md (): Change k to Yk.
34307         (avx512f_load<mode>_mask): Ditto.
34308         (avx512f_blendm<mode>): Ditto.
34309         (avx512f_store<mode>_mask): Ditto.
34310         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
34311         (avx512f_storedqu<mode>_mask): Ditto.
34312         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
34313         Ditto.
34314         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
34315         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
34316         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
34317         (avx512f_maskcmp<mode>3): Ditto.
34318         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
34319         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
34320         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
34321         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
34322         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
34323         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
34324         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
34325         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
34326         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
34327         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
34328         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
34329         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
34330         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
34331         (vec_extract_lo_<mode>_maskm): Ditto.
34332         (vec_extract_hi_<mode>_maskm): Ditto.
34333         (avx512f_vternlog<mode>_mask): Ditto.
34334         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
34335         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
34336         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
34337         (avx512f_<code>v8div16qi2_mask): Ditto.
34338         (avx512f_<code>v8div16qi2_mask_store): Ditto.
34339         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
34340         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
34341         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
34342         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
34343         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
34344         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34345         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34346         (*avx512pf_scatterpf<mode>df_mask): Ditto.
34347         (avx512cd_maskb_vec_dupv8di): Ditto.
34348         (avx512cd_maskw_vec_dupv16si): Ditto.
34349         (avx512f_vpermi2var<mode>3_maskz): Ditto.
34350         (avx512f_vpermi2var<mode>3_mask): Ditto.
34351         (avx512f_vpermi2var<mode>3_mask): Ditto.
34352         (avx512f_vpermt2var<mode>3_maskz): Ditto.
34353         (*avx512f_gathersi<mode>): Ditto.
34354         (*avx512f_gathersi<mode>_2): Ditto.
34355         (*avx512f_gatherdi<mode>): Ditto.
34356         (*avx512f_gatherdi<mode>_2): Ditto.
34357         (*avx512f_scattersi<mode>): Ditto.
34358         (*avx512f_scatterdi<mode>): Ditto.
34359         (avx512f_compress<mode>_mask): Ditto.
34360         (avx512f_compressstore<mode>_mask): Ditto.
34361         (avx512f_expand<mode>_mask): Ditto.
34362         * config/i386/subst.md (mask): Change k to Yk.
34363         (mask_scalar_merge): Ditto.
34364         (sd): Ditto.
34365
34366 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
34367
34368         * doc/extend.texi (Vector Extensions): Document ?: in C++.
34369
34370 2014-01-31  Richard Biener  <rguenther@suse.de>
34371
34372         PR middle-end/59990
34373         * builtins.c (fold_builtin_memory_op): Make sure to not
34374         use a floating-point mode or a boolean or enumeral type for
34375         the copy operation.
34376
34377 2014-01-30  DJ Delorie  <dj@redhat.com>
34378
34379         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
34380         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
34381         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
34382         whenever main() has an epilogue.
34383
34384 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34385
34386         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
34387         unused variable "field".
34388         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
34389         (vsx_mergeh_<mode>): Likewise.
34390         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
34391         (altivec_vmrghh): Likewise.
34392         (altivec_vmrghw): Likewise.
34393         (altivec_vmrglb): Likewise.
34394         (altivec_vmrglh): Likewise.
34395         (altivec_vmrglw): Likewise.
34396         (altivec_vspltb): Add missing uses.
34397         (altivec_vsplth): Likewise.
34398         (altivec_vspltw): Likewise.
34399         (altivec_vspltsf): Likewise.
34400
34401 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34402
34403         PR target/59923
34404         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
34405         frame related instructions.
34406
34407 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34408
34409         PR rtl-optimization/59959
34410         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
34411         any reload of register whose subreg is invalid.
34412
34413 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34414
34415         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
34416         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
34417         Add missing return type - void.
34418
34419 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34420
34421         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
34422         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
34423         remove element index adjustment for endian (now handled in vsx.md
34424         and altivec.md).
34425         (altivec_expand_vec_perm_const): Use
34426         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
34427         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
34428         (vsx_xxspltw_<mode>): Adjust element index for little endian.
34429         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
34430         define_expand and a new define_insn *altivec_vspltb_internal;
34431         adjust for -maltivec=be on a little endian target.
34432         (altivec_vspltb_direct): New.
34433         (altivec_vsplth): Divide into a define_expand and a new
34434         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
34435         little endian target.
34436         (altivec_vsplth_direct): New.
34437         (altivec_vspltw): Divide into a define_expand and a new
34438         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
34439         little endian target.
34440         (altivec_vspltw_direct): New.
34441         (altivec_vspltsf): Divide into a define_expand and a new
34442         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
34443         a little endian target.
34444
34445 2014-01-30  Richard Biener  <rguenther@suse.de>
34446
34447         PR tree-optimization/59993
34448         * tree-ssa-forwprop.c (associate_pointerplus): Check we
34449         can propagate form the earlier stmt and avoid the transform
34450         when the intermediate result is needed.
34451
34452 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
34453
34454         * README.Portability: Fix typo.
34455
34456 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
34457
34458         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
34459         comparison_operator with ordered_comparison_operator.
34460
34461 2014-01-30  Nick Clifton  <nickc@redhat.com>
34462
34463         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
34464         Rename to mn10300_store_multiple_regs.
34465         * config/mn10300/mn10300.c: Likewise.
34466         * config/mn10300/mn10300.md (store_movm): Fix typo: call
34467         store_multiple_regs.
34468         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
34469         Call mn10300_store_multiple_regs.
34470
34471 2014-01-30  Nick Clifton  <nickc@redhat.com>
34472             DJ Delorie  <dj@redhat.com>
34473
34474         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
34475         %fp 2 to keep registers after it properly word-aligned.
34476         (rl78_alloc_physical_registers_umul): Handle the case where both
34477         input operands are the same.
34478
34479 2014-01-30  Richard Biener  <rguenther@suse.de>
34480
34481         PR tree-optimization/59903
34482         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
34483         check properly.
34484
34485 2014-01-30  Jason Merrill  <jason@redhat.com>
34486
34487         PR c++/59633
34488         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
34489
34490         PR c++/59645
34491         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
34492
34493 2014-01-30  Richard Biener  <rguenther@suse.de>
34494
34495         PR tree-optimization/59951
34496         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
34497
34498 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
34499
34500         PR target/59784
34501         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
34502         SFmode to DFmode case.
34503
34504 2014-01-29  DJ Delorie  <dj@redhat.com>
34505
34506         * config/msp430/msp430.opt (-minrt): New.
34507         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
34508         if -minrt given.
34509         (ENDFILE_SPEC): Likewise.
34510
34511 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
34512
34513         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
34514         (estimate_function_body_sizes): Use it.
34515
34516 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
34517
34518         PR c++/58561
34519         * dwarf2out.c (is_cxx_auto): New.
34520         (is_base_type): Use it.
34521         (gen_type_die_with_usage): Likewise.
34522
34523 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34524
34525         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
34526         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
34527         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
34528         -maltivec=be with LE targets.
34529         (vsx_mergeh_<mode>): Likewise.
34530         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
34531         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
34532         (altivec_vmrghb): Replace with define_expand and new
34533         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
34534         (altivec_vmrghb_direct): New define_insn.
34535         (altivec_vmrghh): Replace with define_expand and new
34536         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
34537         (altivec_vmrghh_direct): New define_insn.
34538         (altivec_vmrghw): Replace with define_expand and new
34539         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
34540         (altivec_vmrghw_direct): New define_insn.
34541         (*altivec_vmrghsf): Adjust for endianness.
34542         (altivec_vmrglb): Replace with define_expand and new
34543         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
34544         (altivec_vmrglb_direct): New define_insn.
34545         (altivec_vmrglh): Replace with define_expand and new
34546         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
34547         (altivec_vmrglh_direct): New define_insn.
34548         (altivec_vmrglw): Replace with define_expand and new
34549         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
34550         (altivec_vmrglw_direct): New define_insn.
34551         (*altivec_vmrglsf): Adjust for endianness.
34552         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34553         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34554         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34555         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34556         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34557         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34558         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34559         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34560
34561 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34562
34563         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
34564         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
34565         whitespace.
34566
34567 2014-01-29  Richard Biener  <rguenther@suse.de>
34568
34569         PR tree-optimization/58742
34570         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
34571         associate_pointerplus_align.
34572         (associate_pointerplus_diff): New function.
34573         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
34574         and associate_pointerplus_diff.
34575
34576 2014-01-29  Richard Biener  <rguenther@suse.de>
34577
34578         * lto-streamer.h (LTO_major_version): Bump to 3.
34579         (LTO_minor_version): Reset to 0.
34580
34581 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
34582
34583         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
34584         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
34585         (arm_file_start): Generate correct asm header for armv7ve.
34586         * config/arm/bpabi.h: Add multilib support for armv7ve.
34587         * config/arm/driver-arm.c: Change the architectures of cortex-a7
34588         and cortex-a15 to armv7ve.
34589         * config/arm/t-aprofile: Add multilib support for armv7ve.
34590         * doc/invoke.texi: Document -march=armv7ve.
34591
34592 2014-01-29  Richard Biener  <rguenther@suse.de>
34593
34594         PR tree-optimization/58742
34595         * tree-ssa-forwprop.c (associate_plusminus): Return true
34596         if we changed sth, defer EH cleanup to ...
34597         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
34598         (simplify_mult): New function.
34599
34600 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34601
34602         PR middle-end/59917
34603         PR tree-optimization/59920
34604         * tree.c (build_common_builtin_nodes): Remove
34605         __builtin_setjmp_dispatcher initialization.
34606         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
34607         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
34608         instead of gsi_after_labels + manually skipping debug stmts.
34609         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
34610         ignore bbs with IFN_ABNORMAL_DISPATCHER.
34611         * tree-inline.c (copy_edges_for_bb): Remove
34612         can_make_abnormal_goto argument, instead add abnormal_goto_dest
34613         argument.  Ignore computed_goto_p stmts.  Don't call
34614         make_abnormal_goto_edges.  If a call might need abnormal edges
34615         for non-local gotos, see if it already has an edge to
34616         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
34617         with true argument, don't do anything then, otherwise add
34618         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
34619         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
34620         caller.
34621         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
34622         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
34623         (lower_stmt): Don't set data->calls_builtin_setjmp.
34624         (lower_builtin_setjmp): Adjust comment.
34625         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
34626         * tree-cfg.c (found_computed_goto): Remove.
34627         (factor_computed_gotos): Remove.
34628         (make_goto_expr_edges): Return bool, true for computed gotos.
34629         Don't call make_abnormal_goto_edges.
34630         (build_gimple_cfg): Don't set found_computed_goto, don't call
34631         factor_computed_gotos.
34632         (computed_goto_p): No longer static.
34633         (make_blocks): Don't set found_computed_goto.
34634         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
34635         (make_edges): If make_goto_expr_edges returns true, push bb
34636         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
34637         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
34638         vector.  Record mapping between bbs and OpenMP regions if there
34639         are any, adjust make_gimple_omp_edges caller.  Call
34640         handle_abnormal_edges.
34641         (make_abnormal_goto_edges): Remove.
34642         * tree-cfg.h (make_abnormal_goto_edges): Remove.
34643         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
34644         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
34645         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
34646         * internal-fn.def (ABNORMAL_DISPATCHER): New.
34647         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
34648         filling *region also set *region_idx to (*region)->entry->index.
34649
34650         PR other/58712
34651         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34652         For REGs set ORIGINAL_REGNO.
34653
34654 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
34655
34656         * doc/md.texi: Mention that a target shouldn't implement
34657         vec_widen_(s|u)mul_even/odd pair if it is less efficient
34658         than hi/lo pair.
34659
34660 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34661
34662         PR tree-optimization/59594
34663         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34664         a copy of the datarefs vector rather than the vector itself.
34665
34666 2014-01-28  Jason Merrill  <jason@redhat.com>
34667
34668         PR c++/53756
34669         * dwarf2out.c (auto_die): New static.
34670         (gen_type_die_with_usage): Handle C++1y 'auto'.
34671         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34672         on definition.
34673
34674 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
34675
34676         PR target/59672
34677         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34678         (SPEC_X32): Likewise.
34679         (SPEC_64): Likewise.
34680         * config/i386/i386.c (ix86_option_override_internal): Turn off
34681         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34682         for TARGET_16BIT.
34683         (x86_file_start): Output .code16gcc for TARGET_16BIT.
34684         * config/i386/i386.h (TARGET_16BIT): New macro.
34685         (TARGET_16BIT_P): Likewise.
34686         * config/i386/i386.opt: Add m16.
34687         * doc/invoke.texi: Document -m16.
34688
34689 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
34690
34691         PR preprocessor/59935
34692         * input.c (location_get_source_line): Bail out on when line number
34693         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34694
34695 2014-01-28  Richard Biener  <rguenther@suse.de>
34696
34697         PR tree-optimization/58742
34698         * tree-ssa-forwprop.c (associate_plusminus): Handle
34699         pointer subtraction of the form (T)(P + A) - (T)P.
34700
34701 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34702
34703         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34704         at const_int_cost.
34705
34706 2014-01-28  Richard Biener  <rguenther@suse.de>
34707
34708         Revert
34709         2014-01-28  Richard Biener  <rguenther@suse.de>
34710
34711         PR rtl-optimization/45364
34712         PR rtl-optimization/59890
34713         * var-tracking.c (local_get_addr_clear_given_value): Handle
34714         already cleared slot.
34715         (val_reset): Handle not allocated local_get_addr_cache.
34716         (vt_find_locations): Use post-order on the inverted CFG.
34717
34718 2014-01-28  Richard Biener  <rguenther@suse.de>
34719
34720         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34721
34722 2014-01-28  Richard Biener  <rguenther@suse.de>
34723
34724         PR rtl-optimization/45364
34725         PR rtl-optimization/59890
34726         * var-tracking.c (local_get_addr_clear_given_value): Handle
34727         already cleared slot.
34728         (val_reset): Handle not allocated local_get_addr_cache.
34729         (vt_find_locations): Use post-order on the inverted CFG.
34730
34731 2014-01-28  Alan Modra  <amodra@gmail.com>
34732
34733         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34734         * configure.ac <recursive call for build != host>: Define
34735         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34736         and LD_FOR_BUILD too.
34737         * configure: Regenerate.
34738
34739 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
34740
34741         * config/i386/i386.c (get_builtin_code_for_version): Separate
34742         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34743         Broadwell from Haswell.
34744
34745 2014-01-27  Steve Ellcey  <sellcey@mips.com>
34746
34747         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34748         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34749         * config/mips/mips.c (mips_option_override): Change setting
34750         of TARGET_DSP.
34751         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34752         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34753         Change from Mask to Var.
34754
34755 2014-01-27  Jeff Law  <law@redhat.com>
34756
34757         * ipa-inline.c (inline_small_functions): Fix typo.
34758
34759 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
34760
34761         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34762         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34763         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34764         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34765         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34766         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34767         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34768         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34769         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34770         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34771         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34772         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34773         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34774         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34775         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34776         (_mm512_storeu_epi64): Ditto.
34777         (_mm512_cmpge_epi32_mask): Ditto.
34778         (_mm512_cmpge_epu32_mask): Ditto.
34779         (_mm512_cmpge_epi64_mask): Ditto.
34780         (_mm512_cmpge_epu64_mask): Ditto.
34781         (_mm512_cmple_epi32_mask): Ditto.
34782         (_mm512_cmple_epu32_mask): Ditto.
34783         (_mm512_cmple_epi64_mask): Ditto.
34784         (_mm512_cmple_epu64_mask): Ditto.
34785         (_mm512_cmplt_epi32_mask): Ditto.
34786         (_mm512_cmplt_epu32_mask): Ditto.
34787         (_mm512_cmplt_epi64_mask): Ditto.
34788         (_mm512_cmplt_epu64_mask): Ditto.
34789         (_mm512_cmpneq_epi32_mask): Ditto.
34790         (_mm512_cmpneq_epu32_mask): Ditto.
34791         (_mm512_cmpneq_epi64_mask): Ditto.
34792         (_mm512_cmpneq_epu64_mask): Ditto.
34793         (_mm512_expand_pd): Ditto.
34794         (_mm512_expand_ps): Ditto.
34795         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34796         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34797         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34798         * config/i386/i386.c (ix86_builtins): Add
34799         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34800         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34801         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34802         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34803         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34804         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34805         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34806         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34807         IX86_BUILTIN_PMOVUSQW512_MEM.
34808         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34809         __builtin_ia32_pmovsqd512mem_mask,
34810         __builtin_ia32_pmovqd512mem_mask,
34811         __builtin_ia32_pmovusqw512mem_mask,
34812         __builtin_ia32_pmovsqw512mem_mask,
34813         __builtin_ia32_pmovqw512mem_mask,
34814         __builtin_ia32_pmovusdw512mem_mask,
34815         __builtin_ia32_pmovsdw512mem_mask,
34816         __builtin_ia32_pmovdw512mem_mask,
34817         __builtin_ia32_pmovqb512mem_mask,
34818         __builtin_ia32_pmovusqb512mem_mask,
34819         __builtin_ia32_pmovsqb512mem_mask,
34820         __builtin_ia32_pmovusdb512mem_mask,
34821         __builtin_ia32_pmovsdb512mem_mask,
34822         __builtin_ia32_pmovdb512mem_mask.
34823         (bdesc_args): Add __builtin_ia32_expanddf512,
34824         __builtin_ia32_expandsf512.
34825         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34826         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34827         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34828         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34829         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34830         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34831         (avx512f_<code>v8div16qi2_mask_store): This.
34832         (avx512f_expand<mode>): New.
34833
34834 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
34835
34836         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34837         New.
34838         (_mm512_mask_prefetch_i64gather_pd): Ditto.
34839         (_mm512_prefetch_i32scatter_pd): Ditto.
34840         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34841         (_mm512_prefetch_i64scatter_pd): Ditto.
34842         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34843         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34844         (_mm512_mask_prefetch_i64gather_ps): Ditto.
34845         (_mm512_prefetch_i32scatter_ps): Ditto.
34846         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34847         (_mm512_prefetch_i64scatter_ps): Ditto.
34848         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34849         * config/i386/i386-builtin-types.def: Define
34850         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34851         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34852         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34853         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34854         IX86_BUILTIN_SCATTERPFQPD.
34855         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34856         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34857         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34858         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34859         __builtin_ia32_scatterpfqps.
34860         (ix86_expand_builtin): Expand new built-ins.
34861         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34862         fix memory access data type.
34863         (*avx512pf_gatherpf<mode>_mask): Ditto.
34864         (*avx512pf_gatherpf<mode>): Ditto.
34865         (avx512pf_scatterpf<mode>): Ditto.
34866         (*avx512pf_scatterpf<mode>_mask): Ditto.
34867         (*avx512pf_scatterpf<mode>): Ditto.
34868         (GATHER_SCATTER_SF_MEM_MODE): New.
34869         (avx512pf_gatherpf<mode>df): Ditto.
34870         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34871         (*avx512pf_scatterpf<mode>df): Ditto.
34872
34873 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
34874
34875         PR bootstrap/59934
34876         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34877         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34878         reached.
34879
34880 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34881
34882         * common/config/arm/arm-common.c
34883         (arm_rewrite_mcpu): Handle multiple names.
34884         * config/arm/arm.h
34885         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34886
34887 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34888
34889         * gimple-builder.h (create_gimple_tmp): Delete.
34890
34891 2014-01-27  Christian Bruel  <christian.bruel@st.com>
34892
34893         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34894         words comparisons.
34895
34896 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
34897
34898         * config/pa/pa.md (call): Generate indirect long calls to non-local
34899         functions when outputing 32-bit code.
34900         (call_value): Likewise except for special call to buggy powf function.
34901
34902         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34903         portable runtime and PIC indirect calls.
34904         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34905         and PIC call sequences.  Use ldo instead of blr to set return register
34906         in PIC call sequence.
34907
34908 2014-01-25  Walter Lee  <walt@tilera.com>
34909
34910         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34911         avoid clobbering a live register.
34912
34913 2014-01-25  Walter Lee  <walt@tilera.com>
34914
34915         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34916         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34917         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34918         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34919
34920 2014-01-25  Walter Lee  <walt@tilera.com>
34921
34922         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34923         arguments on even registers.
34924         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34925         STACK_BOUNDARY.
34926         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34927         (BIGGEST_ALIGNMENT): Ditto.
34928         (BIGGEST_FIELD_ALIGNMENT): Ditto.
34929
34930 2014-01-25  Walter Lee  <walt@tilera.com>
34931
34932         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34933         insns before bundling.
34934         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34935
34936 2014-01-25  Walter Lee  <walt@tilera.com>
34937
34938         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34939         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34940         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34941
34942 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34943
34944         * config/mips/constraints.md (kl): Delete.
34945         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34946         define expands, using...
34947         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34948         instructions for MIPS16.
34949         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34950         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34951
34952 2014-01-25  Walter Lee  <walt@tilera.com>
34953
34954         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34955         (clzdi2): Ditto.
34956         (ffsdi2): Ditto.
34957
34958 2014-01-25  Walter Lee  <walt@tilera.com>
34959
34960         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34961         (TARGET_EXPAND_TO_RTL_HOOK): Define.
34962
34963 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34964
34965         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34966         Handle XOR.
34967
34968 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
34969
34970         * print-rtl.c (in_call_function_usage): New var.
34971         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34972         EXPR_LIST mode as mode and not as reg note name.
34973
34974         PR middle-end/59561
34975         * cfgloopmanip.c (copy_loop_info): If
34976         loop->warned_aggressive_loop_optimizations, make sure
34977         the flag is set in target loop too.
34978
34979 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
34980
34981         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34982         flag_cilkplus.
34983         * builtins.def: Likewise.
34984         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34985         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34986         * ira.c (ira_setup_eliminable_regset): Likewise.
34987         * omp-low.c (gate_expand_omp): Likewise.
34988         (execute_lower_omp): Likewise.
34989         (diagnose_sb_0): Likewise.
34990         (gate_diagnose_omp_blocks): Likewise.
34991         (simd_clone_clauses_extract): Likewise.
34992         (gate): Likewise.
34993
34994 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34995
34996         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34997         correction for little endian...
34998         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34999         here.
35000
35001 2014-01-24  Jeff Law  <law@redhat.com>
35002
35003         PR tree-optimization/59919
35004         * tree-vrp.c (find_assert_locations_1): Do not register asserts
35005         for non-returning calls.
35006
35007 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
35008
35009         * common/config/aarch64/aarch64-common.c
35010         (aarch64_rewrite_mcpu): Handle multiple names.
35011         * config/aarch64/aarch64.h
35012         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
35013
35014 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
35015
35016         * input.c (add_file_to_cache_tab): Handle the case where fopen
35017         returns NULL.
35018
35019 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
35020
35021         PR target/59929
35022         * config/i386/i386.md (pushsf splitter): Get stack adjustment
35023         from push operand if code of push isn't PRE_DEC.
35024
35025 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
35026
35027         PR target/59909
35028         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
35029         -mquad-memory-atomic.  Update -mquad-memory documentation to say
35030         it is only used for non-atomic loads/stores.
35031
35032         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
35033         -mquad-memory or -mquad-memory-atomic switches.
35034
35035         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
35036         -mquad-memory-atomic to ISA 2.07 support.
35037
35038         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
35039         to separate support of normal quad word memory operations (ldq, stq)
35040         from the atomic quad word memory operations.
35041
35042         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
35043         support to separate non-atomic quad word operations from atomic
35044         quad word operations.  Disable non-atomic quad word operations in
35045         little endian mode so that we don't have to swap words after the
35046         load and before the store.
35047         (quad_load_store_p): Add comment about atomic quad word support.
35048         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
35049         options printed with -mdebug=reg.
35050
35051         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
35052         -mquad-memory-atomic as the test for whether we have quad word
35053         atomic instructions.
35054         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
35055         or -mp8-vector are used, allow byte/half-word atomic operations.
35056
35057         * config/rs6000/sync.md (load_lockedti): Insure that the address
35058         is a proper indexed or indirect address for the lqarx instruction.
35059         On little endian systems, swap the hi/lo registers after the lqarx
35060         instruction.
35061         (load_lockedpti): Use indexed_or_indirect_operand predicate to
35062         insure the address is valid for the lqarx instruction.
35063         (store_conditionalti): Insure that the address is a proper indexed
35064         or indirect address for the stqcrx. instruction.  On little endian
35065         systems, swap the hi/lo registers before doing the stqcrx.
35066         instruction.
35067         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
35068         insure the address is valid for the stqcrx. instruction.
35069
35070         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
35071         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
35072         type of quad memory support is available.
35073
35074 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
35075
35076         PR regression/59915
35077         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
35078         there is a danger of looping.
35079
35080 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
35081
35082         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
35083         force flag_ira_loop_pressure if set via command line.
35084
35085 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35086
35087         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
35088         (ashr_simd): New builtin handling DI mode.
35089         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
35090         (aarch64_sshr_simddi): New match pattern.
35091         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
35092         (vshrd_n_s64): Likewise.
35093         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
35094
35095 2014-01-23  Nick Clifton  <nickc@redhat.com>
35096
35097         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
35098         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
35099         favour of mcu specific scripts.
35100         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
35101         430x multilibs.
35102
35103 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
35104             Alex Velenko  <Alex.Velenko@arm.com>
35105
35106         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
35107         (vaddv_s16): Likewise.
35108         (vaddv_s32): Likewise.
35109         (vaddv_u8): Likewise.
35110         (vaddv_u16): Likewise.
35111         (vaddv_u32): Likewise.
35112         (vaddvq_s8): Likewise.
35113         (vaddvq_s16): Likewise.
35114         (vaddvq_s32): Likewise.
35115         (vaddvq_s64): Likewise.
35116         (vaddvq_u8): Likewise.
35117         (vaddvq_u16): Likewise.
35118         (vaddvq_u32): Likewise.
35119         (vaddvq_u64): Likewise.
35120         (vaddv_f32): Likewise.
35121         (vaddvq_f32): Likewise.
35122         (vaddvq_f64): Likewise.
35123         (vmaxv_f32): Likewise.
35124         (vmaxv_s8): Likewise.
35125         (vmaxv_s16): Likewise.
35126         (vmaxv_s32): Likewise.
35127         (vmaxv_u8): Likewise.
35128         (vmaxv_u16): Likewise.
35129         (vmaxv_u32): Likewise.
35130         (vmaxvq_f32): Likewise.
35131         (vmaxvq_f64): Likewise.
35132         (vmaxvq_s8): Likewise.
35133         (vmaxvq_s16): Likewise.
35134         (vmaxvq_s32): Likewise.
35135         (vmaxvq_u8): Likewise.
35136         (vmaxvq_u16): Likewise.
35137         (vmaxvq_u32): Likewise.
35138         (vmaxnmv_f32): Likewise.
35139         (vmaxnmvq_f32): Likewise.
35140         (vmaxnmvq_f64): Likewise.
35141         (vminv_f32): Likewise.
35142         (vminv_s8): Likewise.
35143         (vminv_s16): Likewise.
35144         (vminv_s32): Likewise.
35145         (vminv_u8): Likewise.
35146         (vminv_u16): Likewise.
35147         (vminv_u32): Likewise.
35148         (vminvq_f32): Likewise.
35149         (vminvq_f64): Likewise.
35150         (vminvq_s8): Likewise.
35151         (vminvq_s16): Likewise.
35152         (vminvq_s32): Likewise.
35153         (vminvq_u8): Likewise.
35154         (vminvq_u16): Likewise.
35155         (vminvq_u32): Likewise.
35156         (vminnmv_f32): Likewise.
35157         (vminnmvq_f32): Likewise.
35158         (vminnmvq_f64): Likewise.
35159
35160 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
35161
35162         * config/aarch64/aarch64-simd.md
35163         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
35164         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
35165         (*aarch64_mul3_elt<mode>): Likewise.
35166         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
35167         (*aarch64_mul3_elt_to_64v2df): Likewise.
35168         (*aarch64_mla_elt<mode>): Likewise.
35169         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
35170         (*aarch64_mls_elt<mode>): Likewise.
35171         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
35172         (*aarch64_fma4_elt<mode>): Likewise.
35173         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
35174         (*aarch64_fma4_elt_to_64v2df): Likewise.
35175         (*aarch64_fnma4_elt<mode>): Likewise.
35176         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
35177         (*aarch64_fnma4_elt_to_64v2df): Likewise.
35178         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
35179         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
35180         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35181         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35182         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
35183         (aarch64_sqdmull_lane<mode>_internal): Likewise.
35184         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
35185
35186 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35187
35188         * config/aarch64/aarch64-simd.md
35189         (aarch64_be_checked_get_lane<mode>): New define_expand.
35190         * config/aarch64/aarch64-simd-builtins.def
35191         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
35192         New builtin definition.
35193         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
35194         Use new safe be builtin.
35195
35196 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35197
35198         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
35199         New define_insn.
35200         (aarch64_be_st1<mode>): Likewise.
35201         (aarch_ld1<VALL:mode>): Define_expand modified.
35202         (aarch_st1<VALL:mode>): Likewise.
35203         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
35204         (UNSPEC_ST1): Likewise.
35205
35206 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
35207
35208         * config/microblaze/microblaze.md: Add trap insn and attribute
35209
35210 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
35211
35212         PR preprocessor/58580
35213         * input.h (location_get_source_line): Take an additional line_size
35214         parameter.
35215         (void diagnostics_file_cache_fini): Declare new function.
35216         * input.c (struct fcache): New type.
35217         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
35218         New static constants.
35219         (diagnostic_file_cache_init, total_lines_num)
35220         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
35221         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
35222         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
35223         (get_next_line, read_next_line, goto_next_line, read_line_num):
35224         New static function definitions.
35225         (diagnostic_file_cache_fini): New function.
35226         (location_get_source_line): Take an additional output line_len
35227         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
35228         read_line_num.
35229         * diagnostic.c (diagnostic_finish): Call
35230         diagnostic_file_cache_fini.
35231         (adjust_line): Take an additional input parameter for the length
35232         of the line, rather than calculating it with strlen.
35233         (diagnostic_show_locus): Adjust the use of
35234         location_get_source_line and adjust_line with respect to their new
35235         signature.  While displaying a line now, do not stop at the first
35236         null byte.  Rather, display the zero byte as a space and keep
35237         going until we reach the size of the line.
35238         * Makefile.in: Add vec.o to OBJS-libcommon
35239
35240 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
35241             Ilya Tocar  <ilya.tocar@intel.com>
35242
35243         * config/i386/avx512fintrin.h (_mm512_kmov): New.
35244         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
35245         (__builtin_ia32_kmov16): Ditto.
35246         * config/i386/i386.md (UNSPEC_KMOV): New.
35247         (kmovw): Ditto.
35248
35249 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
35250
35251         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
35252         (_mm512_storeu_si512): Ditto.
35253
35254 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
35255
35256         PR target/52125
35257         * rtl.h (get_referenced_operands): Declare.
35258         * recog.c (get_referenced_operands): New function.
35259         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
35260         operands have been referenced when recording LO_SUM references.
35261
35262 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
35263
35264         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
35265
35266 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35267
35268         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
35269         Enable for generic and recent AMD targets.
35270
35271 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35272
35273         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
35274         ARG_SIZE note when adjustment was eliminated.
35275
35276 2014-01-22  Jeff Law  <law@redhat.com>
35277
35278         PR tree-optimization/59597
35279         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
35280         in file.  Accept new argument REGISTERING and use it to modify
35281         dump output appropriately.
35282         (register_jump_thread): Corresponding changes.
35283         (mark_threaded_blocks): Reinstate code to cancel unprofitable
35284         thread paths involving joiner blocks.  Add code to dump cancelled
35285         jump threading paths.
35286
35287 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
35288
35289         PR rtl-optimization/59477
35290         * lra-constraints.c (inherit_in_ebb): Process call for living hard
35291         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
35292
35293 2014-01-22  Tom Tromey  <tromey@redhat.com>
35294
35295         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
35296         PARAMS.
35297         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
35298
35299 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35300
35301         PR rtl-optimization/59896
35302         * lra-constraints.c (process_alt_operands): Check unused note for
35303         matched operands of insn with no output reloads.
35304
35305 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
35306
35307         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
35308         (mips_move_from_gpr_cost): Likewise.
35309
35310 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35311
35312         PR rtl-optimization/59858
35313         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
35314         ira_class_hard_regs_num.
35315         (process_alt_operands): Increase reject for dying matched operand.
35316
35317 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
35318
35319         PR target/59003
35320         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
35321         smaller than size, perform several stores or loads and stores
35322         at dst + count - size to store or copy all of size bytes, rather
35323         than just last modesize bytes.
35324
35325 2014-01-20  DJ Delorie  <dj@redhat.com>
35326
35327         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
35328         that CLOBBERs are REGs before propogating their values.
35329
35330 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
35331
35332         PR middle-end/59789
35333         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
35334         (cgraph_inline_failed_type): New function.
35335         * cgraph.h (DEFCIFCODE): Add type.
35336         (cgraph_inline_failed_type_t): New enum.
35337         (cgraph_inline_failed_type): New prototype.
35338         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
35339         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35340         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
35341         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
35342         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
35343         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
35344         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
35345         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
35346         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
35347         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
35348         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
35349         OPTIMIZATION_MISMATCH.
35350         * tree-inline.c (expand_call_inline): Emit errors during
35351         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
35352
35353 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35354
35355         PR target/59685
35356         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
35357         mode attribute in insn output.
35358
35359 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
35360
35361         * output.h (output_constant): Delete.
35362         * varasm.c (output_constant): Make private.
35363
35364 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
35365
35366         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
35367
35368 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35369
35370         PR middle-end/59860
35371         * tree.h (fold_builtin_strcat): New prototype.
35372         * builtins.c (fold_builtin_strcat): No longer static.  Add len
35373         argument, if non-NULL, don't call c_strlen.  Optimize
35374         directly into __builtin_memcpy instead of __builtin_strcpy.
35375         (fold_builtin_2): Adjust fold_builtin_strcat caller.
35376         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
35377
35378 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35379
35380         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35381         for SImode_address_operand operands, having only a REG argument.
35382
35383 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35384
35385         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
35386         loader name using mbig-endian.
35387         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
35388
35389 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35390
35391         * doc/invoke.texi (-march): Clarify documentation for AArch64.
35392         (-mtune): Likewise.
35393         (-mcpu): Likewise.
35394
35395 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
35396
35397         * config/aarch64/aarch64-protos.h
35398         (aarch64_cannot_change_mode_class_ptr): Declare.
35399         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
35400         aarch64_cannot_change_mode_class_ptr): New.
35401         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
35402         backend hook aarch64_cannot_change_mode_class.
35403
35404 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35405
35406         * common/config/aarch64/aarch64-common.c
35407         (aarch64_handle_option): Don't handle any option order logic here.
35408         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
35409         selected_cpu, warn on architecture version mismatch.
35410         (aarch64_override_options): Fix parsing order for option strings.
35411
35412 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35413             Iain Sandoe  <iain@codesourcery.com>
35414
35415         PR bootstrap/59496
35416         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
35417         warning.  Amend comment to reflect current functionality.
35418
35419 2014-01-20  Richard Biener  <rguenther@suse.de>
35420
35421         PR middle-end/59860
35422         * builtins.c (fold_builtin_strcat): Remove case better handled
35423         by tree-ssa-strlen.c.
35424
35425 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
35426
35427         * config/aarch64/aarch64.opt
35428         (mcpu, march, mtune): Make case-insensitive.
35429
35430 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35431
35432         PR target/59880
35433         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35434         if operands[1] is a REG or ZERO_EXTEND of a REG.
35435
35436 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
35437
35438         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
35439
35440 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
35441
35442         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
35443         long non-pic millicode calls.
35444
35445 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35446
35447         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
35448
35449 2014-01-19  Kito Cheng  <kito@0xlab.org>
35450
35451         * builtins.c (expand_movstr): Check movstr expand done or fail.
35452
35453 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35454             H.J. Lu  <hongjiu.lu@intel.com>
35455
35456         PR target/59379
35457         * config/i386/i386.md (*lea<mode>): Zero-extend return register
35458         to DImode for zero-extended addresses.
35459
35460 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
35461
35462         PR rtl-optimization/57763
35463         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
35464         on the new indirect jump_insn and increment LABEL_NUSES (label).
35465
35466 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
35467
35468         PR bootstrap/59580
35469         PR bootstrap/59583
35470         * config.gcc (x86_archs): New variable.
35471         (x86_64_archs): Likewise.
35472         (x86_cpus): Likewise.
35473         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
35474         --with-arch/--with-cpu= options.
35475         Support --with-arch=/--with-cpu={nehalem,westmere,
35476         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
35477
35478 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35479
35480         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
35481         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
35482
35483 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35484
35485         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
35486
35487 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
35488
35489         PR target/58944
35490         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
35491         clear cpp_get_options (parse_in)->warn_unused_macros for
35492         ix86_target_macros_internal with cpp_define.
35493
35494 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
35495
35496         * jump.c (delete_related_insns): Keep (use (insn))s.
35497         * reorg.c (redundant_insn): Check for barriers too.
35498
35499 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35500
35501         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
35502
35503 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
35504
35505         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
35506         call to $$dyncall when TARGET_LONG_CALLS is true.
35507
35508 2014-01-17  Jeff Law  <law@redhat.com>
35509
35510         * ree.c (combine_set_extension): Temporarily disable test for
35511         changing number of hard registers.
35512
35513 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35514
35515         PR middle-end/58125
35516         * ipa-inline-analysis.c (inline_free_summary):
35517         Do not free summary of aliases.
35518
35519 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35520
35521         PR middle-end/59706
35522         * gimplify.c (gimplify_expr): Use create_tmp_var
35523         instead of create_tmp_var_raw.  If cond doesn't have
35524         integral type, don't add the IFN_ANNOTATE builtin at all.
35525
35526 2014-01-17  Martin Jambor  <mjambor@suse.cz>
35527
35528         PR ipa/59736
35529         * ipa-cp.c (prev_edge_clone): New variable.
35530         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
35531         Also resize prev_edge_clone vector.
35532         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
35533         (ipcp_edge_removal_hook): New function.
35534         (ipcp_driver): Register ipcp_edge_removal_hook.
35535
35536 2014-01-17  Andrew Pinski  <apinski@cavium.com>
35537             Steve Ellcey  <sellcey@mips.com>
35538
35539         PR target/59462
35540         * config/mips/mips.c (mips_print_operand): Check operand mode instead
35541         of operator mode.
35542
35543 2014-01-17  Jeff Law  <law@redhat.com>
35544
35545         PR middle-end/57904
35546         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
35547         so that pass_ccp runs first.
35548
35549 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35550
35551         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
35552         (ix86_adjust_cost): Use !TARGET_XXX.
35553         (do_reorder_for_imul): Likewise.
35554         (swap_top_of_ready_list): Likewise.
35555         (ix86_sched_reorder): Likewise.
35556
35557 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35558
35559         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35560         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
35561         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
35562         (intel_memset): New.  Duplicate slm_memset.
35563         (intel_cost): New.  Duplicate slm_cost.
35564         (m_INTEL): New macro.
35565         (processor_target_table): Add "intel".
35566         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
35567         with PROCESSOR_INTEL for "intel".
35568         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
35569         PROCESSOR_SILVERMONT.
35570         (ix86_issue_rate): Likewise.
35571         (ix86_adjust_cost): Likewise.
35572         (ia32_multipass_dfa_lookahead): Likewise.
35573         (swap_top_of_ready_list): Likewise.
35574         (ix86_sched_reorder): Likewise.
35575         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
35576         instead of TARGET_OPT_AGU.
35577         * config/i386/i386.h (TARGET_INTEL): New.
35578         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
35579         (processor_type): Add PROCESSOR_INTEL.
35580         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
35581         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
35582
35583 2014-01-17  Marek Polacek  <polacek@redhat.com>
35584
35585         PR c/58346
35586         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
35587         size is zero.
35588
35589 2014-01-17  Richard Biener  <rguenther@suse.de>
35590
35591         PR tree-optimization/46590
35592         * opts.c (default_options_table): Add entries for
35593         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
35594         all enabled at -O1 but not for -Og.
35595         * common.opt (fbranch-count-reg): Remove Init(1).
35596         (fmove-loop-invariants): Likewise.
35597         (ftree-pta): Likewise.
35598
35599 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35600
35601         * config/i386/i386.c (ix86_data_alignment): For compatibility with
35602         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
35603         decls to at least the GCC 4.8 used alignments.
35604
35605         PR fortran/59440
35606         * tree-nested.c (convert_nonlocal_reference_stmt,
35607         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
35608         of GIMPLE_BIND stmts, adjust associated decls.
35609
35610 2014-01-17  Richard Biener  <rguenther@suse.de>
35611
35612         PR tree-optimization/46590
35613         * vec.h (vec<>::bseach): New member function implementing
35614         binary search according to C89 bsearch.
35615         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
35616         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
35617         bitmap pointer again.  Make accesses_in_loop a flat array.
35618         (mem_ref_obstack): New global.
35619         (outermost_indep_loop): Adjust for mem_ref->stored changes.
35620         (mark_ref_stored): Likewise.
35621         (ref_indep_loop_p_2): Likewise.
35622         (set_ref_stored_in_loop): New helper function.
35623         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
35624         (memref_free): Adjust.
35625         (record_mem_ref_loc): Simplify.
35626         (gather_mem_refs_stmt): Adjust.
35627         (sort_locs_in_loop_postorder_cmp): New function.
35628         (analyze_memory_references): Sort accesses_in_loop after
35629         loop postorder number.
35630         (find_ref_loc_in_loop_cmp): New function.
35631         (for_all_locs_in_loop): Find relevant cluster of locs in
35632         accesses_in_loop and iterate without recursion.
35633         (execute_sm): Avoid uninit warning.
35634         (struct ref_always_accessed): Simplify.
35635         (ref_always_accessed::operator ()): Likewise.
35636         (ref_always_accessed_p): Likewise.
35637         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
35638         loop postorder numbers here.
35639         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
35640         numbers.
35641
35642 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35643
35644         PR c++/57945
35645         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
35646         on decls for which assemble_alias has been called.
35647
35648 2014-01-17  Nick Clifton  <nickc@redhat.com>
35649
35650         * config/msp430/msp430.opt: (mcpu): New option.
35651         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35652         (msp430_option_override): Parse target_cpu.  If the MCU name
35653         matches a generic string, clear target_mcu.
35654         (msp430_attr): Allow numeric interrupt values up to 63.
35655         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35656         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35657         option.
35658         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35659         Add mcpu matches.
35660         * config/msp430/msp430.md (popm): Use %J rather than %I.
35661         (addsi3): Use msp430_nonimmediate_operand for operand 2.
35662         (addhi_cy_i): Use immediate_operand for operand 2.
35663         * doc/invoke.texi: Document -mcpu option.
35664
35665 2014-01-17  Richard Biener  <rguenther@suse.de>
35666
35667         PR rtl-optimization/38518
35668         * df.h (df_analyze_loop): Declare.
35669         * df-core.c: Include cfgloop.h.
35670         (df_analyze_1): Split out main part of df_analyze.
35671         (df_analyze): Adjust.
35672         (loop_inverted_post_order_compute): New function.
35673         (loop_post_order_compute): Likewise.
35674         (df_analyze_loop): New function avoiding whole-function
35675         postorder computes.
35676         * loop-invariant.c (find_defs): Use df_analyze_loop.
35677         (find_invariants): Adjust.
35678         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35679
35680 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
35681
35682         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35683         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35684
35685 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35686
35687         * ipa-ref.c (ipa_remove_stmt_references): Fix references
35688         traversal when removing references.
35689
35690 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
35691
35692         PR ipa/59775
35693         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35694
35695 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
35696
35697         PR middle-end/56791
35698         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35699         pushing a reload for an autoinc when we had previously reloaded an
35700         inner part of the address.
35701
35702 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
35703
35704         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35705         field.
35706         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35707         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35708         when not giving up or versioning for alias only because of
35709         loop->safelen.
35710         (vect_analyze_data_ref_dependences): Set to true.
35711         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35712         is a GIMPLE_PHI.
35713         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35714         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35715         to the condition.
35716
35717         PR middle-end/58344
35718         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35719
35720         PR target/59839
35721         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35722         operand 0 predicate for gathers, use a new pseudo as subtarget.
35723
35724 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35725
35726         PR middle-end/59609
35727         * lra-constraints.c (process_alt_operands): Add printing debug info.
35728         Check absence of input/output reloads for matched operands too.
35729
35730 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35731
35732         PR rtl-optimization/59835
35733         * ira.c (ira_init_register_move_cost): Increase cost for
35734         impossible modes.
35735
35736 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
35737
35738         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35739
35740 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
35741
35742         PR target/59780
35743         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35744         non-register objects.  Use gen_(high/low)part more consistently.
35745         Fix assertions.
35746
35747 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
35748
35749         PR target/59844
35750         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35751         endian support, remove tests for WORDS_BIG_ENDIAN.
35752         (p8_mfvsrd_3_<mode>): Likewise.
35753         (reload_gpr_from_vsx<mode>): Likewise.
35754         (reload_gpr_from_vsxsf): Likewise.
35755         (p8_mfvsrd_4_disf): Likewise.
35756
35757 2014-01-16  Richard Biener  <rguenther@suse.de>
35758
35759         PR rtl-optimization/46590
35760         * lcm.c (compute_antinout_edge): Use postorder iteration.
35761         (compute_laterin): Use inverted postorder iteration.
35762
35763 2014-01-16  Nick Clifton  <nickc@redhat.com>
35764
35765         PR middle-end/28865
35766         * varasm.c (output_constant): Return the number of bytes actually
35767         emitted.
35768         (output_constructor_array_range): Update the field size with the
35769         number of bytes emitted by output_constant.
35770         (output_constructor_regular_field): Likewise.  Also do not
35771         complain if the total number of bytes emitted is now greater
35772         than the expected fieldpos.
35773         * output.h (output_constant): Update prototype and descriptive comment.
35774
35775 2014-01-16  Marek Polacek  <polacek@redhat.com>
35776
35777         PR middle-end/59827
35778         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35779         it is error_mark_node.
35780
35781 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
35782
35783         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35784         VALID_AVX256_REG_OR_OI_MODE.
35785
35786 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
35787
35788         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35789         current procedure should be profiled.
35790
35791 2014-01-15  Andrew Pinski  <apinski@cavium.com>
35792
35793         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35794         of moving from/to the STACK_REG register class.
35795
35796 2014-01-15  Richard Henderson  <rth@redhat.com>
35797
35798         PR debug/54694
35799         * reginfo.c (global_regs_decl): Globalize.
35800         * rtl.h (global_regs_decl): Declare.
35801         * ira.c (do_reload): Diagnose frame_pointer_needed and it
35802         reserved via global_regs.
35803
35804 2014-01-15  Teresa Johnson  <tejohnson@google.com>
35805
35806         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35807
35808 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
35809
35810         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35811         and vmulosh rather than call gen_vec_widen_smult_*.
35812         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35813         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35814         (vec_widen_smult_even_v16qi): Likewise.
35815         (vec_widen_umult_even_v8hi): Likewise.
35816         (vec_widen_smult_even_v8hi): Likewise.
35817         (vec_widen_umult_odd_v16qi): Likewise.
35818         (vec_widen_smult_odd_v16qi): Likewise.
35819         (vec_widen_umult_odd_v8hi): Likewise.
35820         (vec_widen_smult_odd_v8hi): Likewise.
35821         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35822         vmuloub rather than call gen_vec_widen_umult_*.
35823         (vec_widen_umult_lo_v16qi): Likewise.
35824         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35825         vmulosb rather than call gen_vec_widen_smult_*.
35826         (vec_widen_smult_lo_v16qi): Likewise.
35827         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35828         rather than call gen_vec_widen_umult_*.
35829         (vec_widen_umult_lo_v8hi): Likewise.
35830         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35831         rather than call gen_vec_widen_smult_*.
35832         (vec_widen_smult_lo_v8hi): Likewise.
35833
35834 2014-01-15  Jeff Law  <law@redhat.com>
35835
35836         PR tree-optimization/59747
35837         * ree.c (find_and_remove_re): Properly handle case where a second
35838         eliminated extension requires widening a copy created for elimination
35839         of a prior extension.
35840         (combine_set_extension): Ensure that the number of hard regs needed
35841         for a destination register does not change when we widen it.
35842
35843 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35844
35845         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35846         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35847         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35848         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35849         (avr-*-rtems*): Likewise.
35850         (bfin*-rtems*): Likewise.
35851         (moxie-*-rtems*): Likewise.
35852         (h8300-*-rtems*): Likewise.
35853         (i[34567]86-*-rtems*): Likewise.
35854         (lm32-*-rtems*): Likewise.
35855         (m32r-*-rtems*): Likewise.
35856         (m68k-*-rtems*): Likewise.
35857         (microblaze*-*-rtems*): Likewise.
35858         (mips*-*-rtems*): Likewise.
35859         (powerpc-*-rtems*): Likewise.
35860         (sh-*-rtems*): Likewise.
35861         (sparc-*-rtems*): Likewise.
35862         (sparc64-*-rtems*): Likewise.
35863         (v850-*-rtems*): Likewise.
35864         (m32c-*-rtems*): Likewise.
35865
35866 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35867
35868         PR rtl-optimization/59511
35869         * ira.c (ira_init_register_move_cost): Use memory costs for some
35870         cases of register move cost calculations.
35871         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35872         instead of BB frequency.
35873         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35874         * lra-assigns.c (find_hard_regno_for): Ditto.
35875
35876 2014-01-15  Richard Biener  <rguenther@suse.de>
35877
35878         PR tree-optimization/59822
35879         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35880         (vectorizable_load): Use it to hoist defs of uses of invariant
35881         loads out of the loop.
35882
35883 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35884             Kugan Vivekanandarajah  <kuganv@linaro.org>
35885
35886         PR target/59695
35887         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35888         truncation.
35889
35890 2014-01-15  Richard Biener  <rguenther@suse.de>
35891
35892         PR rtl-optimization/59802
35893         * lcm.c (compute_available): Use inverted postorder to seed
35894         the initial worklist.
35895
35896 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35897
35898         PR target/59803
35899         * config/s390/s390.c (s390_preferred_reload_class): Don't return
35900         ADDR_REGS for invalid symrefs in non-PIC code.
35901
35902 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
35903
35904         PR other/58712
35905         * builtins.c (determine_block_size): Initialize *probable_max_size
35906         even if len_rtx is CONST_INT.
35907
35908 2014-01-14  Andrew Pinski  <apinski@cavium.com>
35909
35910         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35911         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35912         (cortexa53_tunings): Likewise.
35913         (aarch64_sched_issue_rate): New function.
35914         (TARGET_SCHED_ISSUE_RATE): Define.
35915
35916 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35917
35918         * ira-costs.c (find_costs_and_classes): Add missed
35919         ira_init_register_move_cost_if_necessary.
35920
35921 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35922
35923         PR target/59787
35924         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35925
35926 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
35927
35928         PR target/59794
35929         * config/i386/i386.c (type_natural_mode): Add a bool parameter
35930         to indicate if type is used for function return value.  Warn ABI
35931         change if the vector mode isn't available for function return value.
35932         (ix86_function_arg_advance): Pass false to type_natural_mode.
35933         (ix86_function_arg): Likewise.
35934         (ix86_gimplify_va_arg): Likewise.
35935         (function_arg_32): Don't warn ABI change.
35936         (ix86_function_value): Pass true to type_natural_mode.
35937         (ix86_return_in_memory): Likewise.
35938         (ix86_struct_value_rtx): Removed.
35939         (TARGET_STRUCT_VALUE_RTX): Likewise.
35940
35941 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35942
35943         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35944         converting a conditional jump into a conditional return.
35945
35946 2014-01-14  Richard Biener  <rguenther@suse.de>
35947
35948         PR tree-optimization/58921
35949         PR tree-optimization/59006
35950         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35951         hoisting invariant stmts.
35952         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35953         invariant loads on the preheader edge if possible.
35954
35955 2014-01-14  Joey Ye  <joey.ye@arm.com>
35956
35957         * doc/plugin.texi (Building GCC plugins): Update to C++.
35958
35959 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
35960
35961         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35962         (_mm_rcp28_round_ss): Ditto.
35963         (_mm_rsqrt28_round_sd): Ditto.
35964         (_mm_rsqrt28_round_ss): Ditto.
35965         (_mm_rcp28_sd): Ditto.
35966         (_mm_rcp28_ss): Ditto.
35967         (_mm_rsqrt28_sd): Ditto.
35968         (_mm_rsqrt28_ss): Ditto.
35969         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35970         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35971         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35972         (IX86_BUILTIN_RCP28SD): Ditto.
35973         (IX86_BUILTIN_RCP28SS): Ditto.
35974         (IX86_BUILTIN_RSQRT28SD): Ditto.
35975         (IX86_BUILTIN_RSQRT28SS): Ditto.
35976         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35977         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35978         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35979         (ix86_expand_special_args_builtin): Expand new FTYPE.
35980         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35981         (srcp14<mode>): Make insn unary.
35982         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35983         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35984         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35985         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35986         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35987         Fix rounding: make it SAE only.
35988         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35989         Ditto.
35990         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35991         Ditto.
35992         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35993         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35994         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35995         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35996         (round_saeonly_mask_scalar_operand4): Ditto.
35997         (round_saeonly_mask_scalar_op3): Ditto.
35998         (round_saeonly_mask_scalar_op4): Ditto.
35999
36000 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36001
36002         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
36003         Implement -maltivec=be for vec_insert and vec_extract.
36004
36005 2014-01-10  DJ Delorie  <dj@redhat.com>
36006
36007         * config/msp430/msp430.md (call_internal): Don't allow memory
36008         references with SP as the base register.
36009         (call_value_internal): Likewise.
36010         * config/msp430/constraints.md (Yc): New.  For memory references
36011         that don't use SP as a base register.
36012
36013         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
36014         "an integer without a # prefix"
36015         * config/msp430/msp430.md (epilogue_helper): Use it.
36016
36017 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
36018
36019         PR target/59617
36020         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
36021         AVX512F gather builtins.
36022         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
36023         on gather decls with INTEGER_TYPE masktype.
36024         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
36025         directly into the builtin rather than hoisting it before loop.
36026
36027         PR tree-optimization/59387
36028         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
36029         (scev_const_prop): If folded_casts and type has undefined overflow,
36030         use force_gimple_operand instead of force_gimple_operand_gsi and
36031         for each added stmt if it is assign with
36032         arith_code_with_undefined_signed_overflow, call
36033         rewrite_to_defined_overflow.
36034         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
36035         gimple-fold.h instead.
36036         (arith_code_with_undefined_signed_overflow,
36037         rewrite_to_defined_overflow): Moved to ...
36038         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
36039         rewrite_to_defined_overflow): ... here.  No longer static.
36040         Include gimplify-me.h.
36041         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
36042         rewrite_to_defined_overflow): New prototypes.
36043
36044 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36045
36046         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
36047
36048 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
36049
36050         * builtins.c (get_object_alignment_2): Minor tweak.
36051         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
36052
36053 2014-01-13  Christian Bruel  <christian.bruel@st.com>
36054
36055         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
36056         optimized non constant lengths.
36057
36058 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
36059
36060         PR libgomp/59194
36061         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
36062         load as __atomic_load_N if possible.
36063
36064 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
36065
36066         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
36067         target parameter.
36068         (rs6000_expand_builtin): Adjust call.
36069
36070 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
36071
36072         PR target/58115
36073         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
36074         * config/rs6000/rs6000.c: Include target-globals.h.
36075         (rs6000_set_current_function): Instead of doing target_reinit
36076         unconditionally, use save_target_globals_default_opts and
36077         restore_target_globals.
36078
36079         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
36080         FPSCR.
36081         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
36082         (rs6000_expand_builtin): Handle mffs and mtfsf.
36083         (rs6000_init_builtins): Define mffs and mtfsf.
36084         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
36085         (rs6000_mffs): New pattern.
36086         (rs6000_mtfsf): New pattern.
36087
36088 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
36089
36090         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
36091         Start narrowing with START.  Apply candidate-use pair
36092         and check overall cost in narrowing.
36093         (iv_ca_prune): Pass new argument.
36094
36095 2014-01-10  Jeff Law  <law@redhat.com>
36096
36097         PR middle-end/59743
36098         * ree.c (combine_reaching_defs): Ensure the defining statement
36099         occurs before the extension when optimizing extensions with
36100         different source and destination hard registers.
36101
36102 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
36103
36104         PR ipa/58585
36105         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
36106         vtables into the type inheritance graph.
36107
36108 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36109
36110         PR rtl-optimization/59754
36111         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
36112         modes in the REGNO != REGNO case.
36113
36114 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36115
36116         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
36117
36118 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36119
36120         PR tree-optimization/59745
36121         * tree-predcom.c (tree_predictive_commoning_loop): Call
36122         free_affine_expand_cache if giving up because components is NULL.
36123
36124         * target-globals.c (save_target_globals): Allocate < 4KB structs using
36125         GC in payload of target_globals struct instead of allocating them on
36126         the heap and the larger structs separately using GC.
36127         * target-globals.h (struct target_globals): Make regs, hard_regs,
36128         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
36129         of GTY((skip)) and change type to void *.
36130         (reset_target_globals): Cast loads from those fields to corresponding
36131         types.
36132
36133 2014-01-10  Steve Ellcey  <sellcey@mips.com>
36134
36135         PR plugins/59335
36136         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
36137         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
36138         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
36139
36140 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
36141
36142         PR target/59744
36143         * aarch64-modes.def (CC_Zmode): New flags mode.
36144         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
36145         represents an equality.
36146         (aarch64_get_condition_code): Handle CC_Zmode.
36147         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
36148
36149 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36150
36151         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
36152         extraction in good case.
36153
36154 2014-01-10  Richard Biener  <rguenther@suse.de>
36155
36156         PR tree-optimization/59374
36157         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
36158         checking after SLP discovery.  Mark stmts not participating
36159         in any SLP instance properly.
36160
36161 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36162
36163         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
36164         when handling a SET rtx.
36165
36166 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36167
36168         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
36169         (cortex-a57): Likewise.
36170         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
36171
36172 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36173
36174         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
36175         non-iwmmxt builtins.
36176
36177 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
36178
36179         PR ipa/58252
36180         PR ipa/59226
36181         * ipa-devirt.c record_target_from_binfo): Take as argument
36182         stack of binfos and lookup matching one for virtual inheritance.
36183         (possible_polymorphic_call_targets_1): Update.
36184
36185 2014-01-10  Huacai Chen  <chenhc@lemote.com>
36186
36187         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
36188         kernel strings for Loongson-2E/2F/3A.
36189
36190 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36191
36192         PR middle-end/59670
36193         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
36194         is_gimple_call before calling gimple_call_internal_p.
36195
36196 2014-01-09  Steve Ellcey  <sellcey@mips.com>
36197
36198         * Makefile.in (TREE_FLOW_H): Remove.
36199         (TREE_SSA_H): Add file names from tree-flow.h.
36200         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
36201         * tree.h: Remove tree-flow.h reference.
36202         * hash-table.h: Remove tree-flow.h reference.
36203         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
36204         reference with tree-ssa-loop.h.
36205
36206 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36207
36208         * doc/invoke.texi: Add -maltivec={be,le} options, and document
36209         default element-order behavior for -maltivec.
36210         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
36211         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
36212         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
36213         when targeting big endian, at least for now.
36214         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
36215
36216 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36217
36218         PR middle-end/47735
36219         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
36220         var satisfies use_register_for_decl, just take into account type
36221         alignment, rather than decl alignment.
36222
36223         PR tree-optimization/59622
36224         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
36225         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
36226         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
36227         Don't devirtualize for inplace at all.  For targets.length () == 1,
36228         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
36229
36230 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
36231
36232         * config/i386/i386.md (cpu): Remove the unused btver1.
36233
36234 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
36235
36236         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
36237
36238 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36239
36240         PR target/58115
36241         * tree-core.h (struct target_globals): New forward declaration.
36242         (struct tree_target_option): Add globals field.
36243         * tree.h (TREE_TARGET_GLOBALS): Define.
36244         (prepare_target_option_nodes_for_pch): New prototype.
36245         * target-globals.h (struct target_globals): Define even if
36246         !SWITCHABLE_TARGET.
36247         * tree.c (prepare_target_option_node_for_pch,
36248         prepare_target_option_nodes_for_pch): New functions.
36249         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
36250         * config/i386/i386.c: Include target-globals.h.
36251         (ix86_set_current_function): Instead of doing target_reinit
36252         unconditionally, use save_target_globals_default_opts and
36253         restore_target_globals.
36254
36255 2014-01-09  Richard Biener  <rguenther@suse.de>
36256
36257         PR tree-optimization/59715
36258         * tree-cfg.h (split_critical_edges): Declare.
36259         * tree-cfg.c (split_critical_edges): Export.
36260         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
36261
36262 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36263
36264         * cfgexpand.c (expand_stack_vars): Optionally disable
36265         asan stack protection.
36266         (expand_used_vars): Likewise.
36267         (partition_stack_vars): Likewise.
36268         * asan.c (asan_emit_stack_protection): Optionally disable
36269         after return stack usage.
36270         (instrument_derefs): Optionally disable memory access instrumentation.
36271         (instrument_builtin_call): Likewise.
36272         (instrument_strlen_call): Likewise.
36273         (asan_protect_global): Optionally disable global variables protection.
36274         * doc/invoke.texi: Added doc for new options.
36275         * params.def: Added new options.
36276         * params.h: Likewise.
36277
36278 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36279
36280         PR rtl-optimization/59724
36281         * ifcvt.c (cond_exec_process_if_block): Don't call
36282         flow_find_head_matching_sequence with 0 longest_match.
36283         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
36284         non-active insns if !stop_after.
36285         (try_head_merge_bb): Revert 2014-01-07 changes.
36286
36287 2014-01-08  Jeff Law  <law@redhat.com>
36288
36289         * ree.c (get_sub_rtx): New function, extracted from...
36290         (merge_def_and_ext): Here.
36291         (combine_reaching_defs): Use get_sub_rtx.
36292
36293 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
36294
36295         * cgraph.h (varpool_variable_node): Do not choke on null node.
36296
36297 2014-01-08  Catherine Moore  <clm@codesourcery.com>
36298
36299         * config/mips/mips.md (simple_return): Attempt to use JRC
36300         for microMIPS.
36301         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
36302
36303 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36304
36305         PR rtl-optimization/59137
36306         * reorg.c (steal_delay_list_from_target): Call update_block for
36307         elided insns.
36308         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
36309
36310 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36311
36312         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
36313         two duplicate entries.
36314
36315 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36316
36317         Revert:
36318         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
36319
36320         * config/mips/mips.c (mips_truncated_op_cost): New function.
36321         (mips_rtx_costs): Adjust test for BADDU.
36322         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
36323
36324         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
36325
36326         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
36327         (*baddu_si): ...this new pattern.
36328
36329 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36330
36331         PR ipa/59722
36332         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
36333
36334 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36335
36336         PR middle-end/57748
36337         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
36338         inner_reference_p.
36339         (expand_expr, expand_normal): Adjust.
36340         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
36341         inner_reference_p. Use inner_reference_p to expand inner references.
36342         (store_expr): Adjust.
36343         * cfgexpand.c (expand_call_stmt): Adjust.
36344
36345 2014-01-08  Rong Xu  <xur@google.com>
36346
36347         * gcov-io.c (gcov_var): Move from gcov-io.h.
36348         (gcov_position): Ditto.
36349         (gcov_is_error): Ditto.
36350         (gcov_rewrite): Ditto.
36351         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
36352         only part to libgcc/libgcov.h.
36353
36354 2014-01-08  Marek Polacek  <polacek@redhat.com>
36355
36356         PR middle-end/59669
36357         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
36358
36359 2014-01-08  Marek Polacek  <polacek@redhat.com>
36360
36361         PR sanitizer/59667
36362         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
36363
36364 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36365
36366         PR rtl-optimization/59649
36367         * stor-layout.c (get_mode_bounds): For BImode return
36368         0 and STORE_FLAG_VALUE.
36369
36370 2014-01-08  Richard Biener  <rguenther@suse.de>
36371
36372         PR middle-end/59630
36373         * gimple.h (is_gimple_builtin_call): Remove.
36374         (gimple_builtin_call_types_compatible_p): New.
36375         (gimple_call_builtin_p): New overload.
36376         * gimple.c (is_gimple_builtin_call): Remove.
36377         (validate_call): Rename to ...
36378         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
36379         check return types.
36380         (validate_type): New static function.
36381         (gimple_call_builtin_p): New overload and adjust.
36382         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
36383         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
36384         (gimple_fold_stmt_to_constant_1): Likewise.
36385         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
36386
36387 2014-01-08  Richard Biener  <rguenther@suse.de>
36388
36389         PR middle-end/59471
36390         * gimplify.c (gimplify_expr): Gimplify register-register type
36391         VIEW_CONVERT_EXPRs to separate stmts.
36392
36393 2014-01-07  Jeff Law  <law@redhat.com>
36394
36395         PR middle-end/53623
36396         * ree.c (combine_set_extension): Handle case where source
36397         and destination registers in an extension insn are different.
36398         (combine_reaching_defs): Allow source and destination registers
36399         in extension to be different under limited circumstances.
36400         (add_removable_extension): Remove restriction that the
36401         source and destination registers in the extension are the same.
36402         (find_and_remove_re): Emit a copy from the extension's
36403         destination to its source after the defining insn if
36404         the source and destination registers are different.
36405
36406         PR middle-end/59285
36407         * ifcvt.c (merge_if_block): If we are merging a block with more than
36408         one successor with a block with no successors, remove any BARRIER
36409         after the second block.
36410
36411 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
36412
36413         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
36414
36415 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
36416
36417         PR target/59652
36418         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
36419         for 14-bit register offsets when INT14_OK_STRICT is false.
36420
36421 2014-01-07  Roland Stigge  <stigge@antcom.de>
36422             Michael Meissner  <meissner@linux.vnet.ibm.com>
36423
36424         PR 57386/target
36425         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
36426         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
36427
36428 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36429
36430         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
36431         -mcpu.
36432
36433 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
36434
36435         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
36436         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
36437         rtx is const0_rtx or not.
36438
36439 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
36440
36441         PR target/58115
36442         * target-globals.c (save_target_globals): Remove this_fn_optab
36443         handling.
36444         * toplev.c: Include optabs.h.
36445         (target_reinit): Temporarily restore the global options if another
36446         set of options are in force.
36447
36448 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
36449
36450         PR rtl-optimization/58668
36451         * cfgcleanup.c (flow_find_cross_jump): Don't count
36452         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
36453         to determine what is counted.
36454         (flow_find_head_matching_sequence): Use active_insn_p to determine
36455         what is counted.
36456         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
36457         counting change.
36458         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
36459         determine what is counted.
36460
36461         PR tree-optimization/59643
36462         * tree-predcom.c (split_data_refs_to_components): If one dr is
36463         read and one write, determine_offset fails and the write isn't
36464         in the bad component, just put the read into the bad component.
36465
36466 2014-01-07  Mike Stump  <mikestump@comcast.net>
36467             Jakub Jelinek  <jakub@redhat.com>
36468
36469         PR pch/59436
36470         * tree-core.h (struct tree_optimization_option): Change optabs
36471         type from unsigned char * to void *.
36472         * optabs.c (init_tree_optimization_optabs): Adjust
36473         TREE_OPTIMIZATION_OPTABS initialization.
36474
36475 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
36476
36477         PR target/59644
36478         * config/i386/i386.h (struct machine_function): Add
36479         no_drap_save_restore field.
36480         * config/i386/i386.c (ix86_save_reg): Use
36481         !cfun->machine->no_drap_save_restore instead of
36482         crtl->stack_realign_needed.
36483         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
36484         this function clears frame_pointer_needed.  Set
36485         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
36486         and DRAP reg is needed.
36487
36488 2014-01-06  Marek Polacek  <polacek@redhat.com>
36489
36490         PR c/57773
36491         * doc/implement-c.texi: Mention that other integer types are
36492         permitted as bit-field types in strictly conforming mode.
36493
36494 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
36495
36496         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
36497         is newly allocated.
36498
36499 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
36500
36501         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
36502
36503 2014-01-06  Martin Jambor  <mjambor@suse.cz>
36504
36505         PR ipa/59008
36506         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
36507         to int.
36508         * ipa-prop.c (ipa_print_node_params): Fix indentation.
36509
36510 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36511
36512         PR debug/59350
36513         PR debug/59510
36514         * var-tracking.c (add_stores): Preserve the value of the source even if
36515         we don't record the store.
36516
36517 2014-01-06  Terry Guo  <terry.guo@arm.com>
36518
36519         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
36520
36521 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
36522
36523         PR bootstrap/59541
36524         * config/darwin.c (darwin_function_section): Adjust return values to
36525         correspond to optimisation changes made in r206070.
36526
36527 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
36528
36529         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
36530         from prefetch_block tune setting.
36531         (nocona_cost): Correct size of prefetch block to 64.
36532
36533 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36534
36535         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
36536         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
36537         used to save the static chain register in the computation of the offset
36538         from which the FP registers need to be restored.
36539
36540 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
36541
36542         PR tree-optimization/59519
36543         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
36544         ICE if get_current_def (current_new_name) is already non-NULL, as long
36545         as it is a phi result of some other phi in *new_exit_bb that has
36546         the same argument.
36547
36548         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
36549         or vmovdqu* for misaligned_operand.
36550         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
36551         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
36552         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
36553         aligned_mem for AVX512F masked aligned load and store builtins and for
36554         non-temporal moves.
36555
36556 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
36557
36558         PR tree-optimization/59651
36559         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36560         Address range for negative step should be added by TYPE_SIZE_UNIT.
36561
36562 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
36563
36564         * config/m68k/m68k.c (handle_move_double): Handle pushes with
36565         overlapping registers also for registers other than the stack pointer.
36566
36567 2014-01-03  Marek Polacek  <polacek@redhat.com>
36568
36569         PR other/59661
36570         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
36571         __builtin_FILE.
36572
36573 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
36574
36575         PR target/59625
36576         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
36577         asm goto as jump.
36578
36579         * config/i386/i386.md (MODE_SIZE): New mode attribute.
36580         (push splitter): Use <P:MODE_SIZE> instead of
36581         GET_MODE_SIZE (<P:MODE>mode).
36582         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
36583         (mov -1, reg peephole2): Likewise.
36584         * config/i386/sse.md (*mov<mode>_internal,
36585         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
36586         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
36587         *<code><mode>3, *andnot<mode>3<mask_name>,
36588         <mask_codefor><code><mode>3<mask_name>): Likewise.
36589         * config/i386/subst.md (mask_mode512bit_condition,
36590         sd_mask_mode512bit_condition): Likewise.
36591
36592 2014-01-02  Xinliang David Li  <davidxl@google.com>
36593
36594         PR tree-optimization/59303
36595         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
36596         (dump_predicates): Better output format.
36597         (pred_equal_p): New function.
36598         (is_neq_relop_p): Ditto.
36599         (is_neq_zero_form_p): Ditto.
36600         (pred_expr_equal_p): Ditto.
36601         (pred_neg_p): Ditto.
36602         (simplify_pred): Ditto.
36603         (simplify_preds_2): Ditto.
36604         (simplify_preds_3): Ditto.
36605         (simplify_preds_4): Ditto.
36606         (simplify_preds): Ditto.
36607         (push_pred): Ditto.
36608         (push_to_worklist): Ditto.
36609         (get_pred_info_from_cmp): Ditto.
36610         (is_degenerated_phi): Ditto.
36611         (normalize_one_pred_1): Ditto.
36612         (normalize_one_pred): Ditto.
36613         (normalize_one_pred_chain): Ditto.
36614         (normalize_preds): Ditto.
36615         (normalize_cond_1): Remove function.
36616         (normalize_cond): Ditto.
36617         (is_gcond_subset_of): Ditto.
36618         (is_subset_of_any): Ditto.
36619         (is_or_set_subset_of): Ditto.
36620         (is_and_set_subset_of): Ditto.
36621         (is_norm_cond_subset_of): Ditto.
36622         (pred_chain_length_cmp): Ditto.
36623         (convert_control_dep_chain_into_preds): Type change.
36624         (find_predicates): Ditto.
36625         (find_def_preds): Ditto.
36626         (destroy_predicates_vecs): Ditto.
36627         (find_matching_predicates_in_rest_chains): Ditto.
36628         (use_pred_not_overlap_with_undef_path_pred): Ditto.
36629         (is_pred_expr_subset): Ditto.
36630         (is_pred_chain_subset_of): Ditto.
36631         (is_included_in): Ditto.
36632         (is_superset_of): Ditto.
36633
36634 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36635
36636         Update copyright years.
36637
36638 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36639
36640         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
36641         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
36642         config/arc/arc.md, config/arc/arc.opt,
36643         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
36644         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
36645         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
36646         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
36647         config/linux-protos.h, config/linux.c, config/winnt-c.c,
36648         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
36649         vtable-verify.c, vtable-verify.h: Use the standard form for the
36650         copyright notice.
36651
36652 2014-01-02  Tobias Burnus  <burnus@net-b.de>
36653
36654         * gcc.c (process_command): Update copyright notice dates.
36655         * gcov-dump.c: Ditto.
36656         * gcov.c: Ditto.
36657         * doc/cpp.texi: Bump @copying's copyright year.
36658         * doc/cppinternals.texi: Ditto.
36659         * doc/gcc.texi: Ditto.
36660         * doc/gccint.texi: Ditto.
36661         * doc/gcov.texi: Ditto.
36662         * doc/install.texi: Ditto.
36663         * doc/invoke.texi: Ditto.
36664
36665 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36666
36667         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36668
36669 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
36670
36671         * config/i386/sse.md (*mov<mode>_internal): Guard
36672         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36673
36674         PR rtl-optimization/59647
36675         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36676         new_rtx into UNSIGNED_FLOAT rtxes.
36677 \f
36678 Copyright (C) 2014 Free Software Foundation, Inc.
36679
36680 Copying and distribution of this file, with or without modification,
36681 are permitted in any medium without royalty provided the copyright
36682 notice and this notice are preserved.