[AArch64]Remove aarch64_get_lanedi, unused
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-12-09  Alan Lawrence  <alan.lawrence@arm.com>
2
3         * config/aarch64/aarch64-simd.md (aarch64_get_lanedi): Remove.
4
5 2014-12-09  Alan Lawrence  <alan.lawrence@arm.com>
6
7         PR target/63870
8         * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane):
9         Delete.
10         * config/aarch64/aarch64-simd.md (aarch64_be_checked_get_lane<mode\>):
11         Delete.
12         * config/aarch64/arm_neon.h (aarch64_vget_lane_any): Use GCC
13         vector extensions, __aarch64_lane, __builtin_aarch64_im_lane_boundsi.
14         (__aarch64_vget_lane_f32, __aarch64_vget_lane_f64,
15         __aarch64_vget_lane_p8, __aarch64_vget_lane_p16,
16         __aarch64_vget_lane_s8, __aarch64_vget_lane_s16,
17         __aarch64_vget_lane_s32, __aarch64_vget_lane_s64,
18         __aarch64_vget_lane_u8, __aarch64_vget_lane_u16,
19         __aarch64_vget_lane_u32, __aarch64_vget_lane_u64,
20         __aarch64_vgetq_lane_f32, __aarch64_vgetq_lane_f64,
21         __aarch64_vgetq_lane_p8, __aarch64_vgetq_lane_p16,
22         __aarch64_vgetq_lane_s8, __aarch64_vgetq_lane_s16,
23         __aarch64_vgetq_lane_s32, __aarch64_vgetq_lane_s64,
24         __aarch64_vgetq_lane_u8, __aarch64_vgetq_lane_u16,
25         __aarch64_vgetq_lane_u32, __aarch64_vgetq_lane_u64): Delete.
26         (__aarch64_vdup_lane_any): Use __aarch64_vget_lane_any, remove
27         'q2' argument.
28         (__aarch64_vdup_lane_f32, __aarch64_vdup_lane_f64,
29         __aarch64_vdup_lane_p8, __aarch64_vdup_lane_p16,
30         __aarch64_vdup_lane_s8, __aarch64_vdup_lane_s16,
31         __aarch64_vdup_lane_s32, __aarch64_vdup_lane_s64,
32         __aarch64_vdup_lane_u8, __aarch64_vdup_lane_u16,
33         __aarch64_vdup_lane_u32, __aarch64_vdup_lane_u64,
34         __aarch64_vdup_laneq_f32, __aarch64_vdup_laneq_f64,
35         __aarch64_vdup_laneq_p8, __aarch64_vdup_laneq_p16,
36         __aarch64_vdup_laneq_s8, __aarch64_vdup_laneq_s16,
37         __aarch64_vdup_laneq_s32, __aarch64_vdup_laneq_s64,
38         __aarch64_vdup_laneq_u8, __aarch64_vdup_laneq_u16,
39         __aarch64_vdup_laneq_u32, __aarch64_vdup_laneq_u64): Remove argument
40         to __aarch64_vdup_lane_any.
41         (vget_lane_f32, vget_lane_f64, vget_lane_p8, vget_lane_p16,
42         vget_lane_s8, vget_lane_s16, vget_lane_s32, vget_lane_s64,
43         vget_lane_u8, vget_lane_u16, vget_lane_u32, vget_lane_u64,
44         vgetq_lane_f32, vgetq_lane_f64, vgetq_lane_p8, vgetq_lane_p16,
45         vgetq_lane_s8, vgetq_lane_s16, vgetq_lane_s32, vgetq_lane_s64,
46         vgetq_lane_u8, vgetq_lane_u16, vgetq_lane_u32, vgetq_lane_u64,
47         vdupb_lane_p8, vdupb_lane_s8, vdupb_lane_u8, vduph_lane_p16,
48         vduph_lane_s16, vduph_lane_u16, vdups_lane_f32, vdups_lane_s32,
49         vdups_lane_u32, vdupb_laneq_p8, vdupb_laneq_s8, vdupb_laneq_u8,
50         vduph_laneq_p16, vduph_laneq_s16, vduph_laneq_u16, vdups_laneq_f32,
51         vdups_laneq_s32, vdups_laneq_u32, vdupd_laneq_f64, vdupd_laneq_s64,
52         vdupd_laneq_u64, vfmas_lane_f32, vfma_laneq_f64, vfmad_laneq_f64,
53         vfmas_laneq_f32, vfmss_lane_f32, vfms_laneq_f64, vfmsd_laneq_f64,
54         vfmss_laneq_f32, vmla_lane_f32, vmla_lane_s16, vmla_lane_s32,
55         vmla_lane_u16, vmla_lane_u32, vmla_laneq_f32, vmla_laneq_s16,
56         vmla_laneq_s32, vmla_laneq_u16, vmla_laneq_u32, vmlaq_lane_f32,
57         vmlaq_lane_s16, vmlaq_lane_s32, vmlaq_lane_u16, vmlaq_lane_u32,
58         vmlaq_laneq_f32, vmlaq_laneq_s16, vmlaq_laneq_s32, vmlaq_laneq_u16,
59         vmlaq_laneq_u32, vmls_lane_f32, vmls_lane_s16, vmls_lane_s32,
60         vmls_lane_u16, vmls_lane_u32, vmls_laneq_f32, vmls_laneq_s16,
61         vmls_laneq_s32, vmls_laneq_u16, vmls_laneq_u32, vmlsq_lane_f32,
62         vmlsq_lane_s16, vmlsq_lane_s32, vmlsq_lane_u16, vmlsq_lane_u32,
63         vmlsq_laneq_f32, vmlsq_laneq_s16, vmlsq_laneq_s32, vmlsq_laneq_u16,
64         vmlsq_laneq_u32, vmul_lane_f32, vmul_lane_s16, vmul_lane_s32,
65         vmul_lane_u16, vmul_lane_u32, vmuld_lane_f64, vmuld_laneq_f64,
66         vmuls_lane_f32, vmuls_laneq_f32, vmul_laneq_f32, vmul_laneq_f64,
67         vmul_laneq_s16, vmul_laneq_s32, vmul_laneq_u16, vmul_laneq_u32,
68         vmulq_lane_f32, vmulq_lane_s16, vmulq_lane_s32, vmulq_lane_u16,
69         vmulq_lane_u32, vmulq_laneq_f32, vmulq_laneq_f64, vmulq_laneq_s16,
70         vmulq_laneq_s32, vmulq_laneq_u16, vmulq_laneq_u32) : Use
71         __aarch64_vget_lane_any.
72
73 2014-12-09  Alan Lawrence  <alan.lawrence@arm.com>
74
75         PR target/63870
76         * gcc/config/aarch64-builtins.c (aarch64_simd_expand_args): Update error
77         message for SIMD_ARG_CONSTANT.
78
79 2014-12-09  Alan Lawrence  <alan.lawrence@arm.com>
80
81         PR target/63870
82         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
83         TYPES_BINOPV): Delete.
84         (enum aarch64_builtins): Add AARCH64_BUILTIN_SIMD_LANE_CHECK and
85         AARCH64_SIMD_PATTERN_START.
86         (aarch64_init_simd_builtins): Register
87         __builtin_aarch64_im_lane_boundsi; use  AARCH64_SIMD_PATTERN_START.
88         (aarch64_simd_expand_builtin): Handle AARCH64_BUILTIN_LANE_CHECK; use
89         AARCH64_SIMD_PATTERN_START.
90
91         * config/aarch64/aarch64-simd.md (aarch64_im_lane_boundsi): Delete.
92         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound): Delete.
93
94         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK): New.
95         (__aarch64_vget_lane_f64, __aarch64_vget_lane_s64,
96         __aarch64_vget_lane_u64, __aarch64_vset_lane_any, vdupd_lane_f64,
97         vdupd_lane_s64, vdupd_lane_u64, vext_f32, vext_f64, vext_p8, vext_p16,
98         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
99         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
100         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
101         vextq_u64, vmulq_lane_f64): Use __AARCH64_LANE_CHECK.
102
103 2014-12-09  Alan Lawrence  <alan.lawrence@arm.com>
104
105         PR target/63950
106         * config/aarch64/arm_neon.h (__AARCH64_NUM_LANES, __aarch64_lane *2):
107         New.
108         (aarch64_vset_lane_any): Redefine using previous, same for BE + LE.
109         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
110         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
111         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64): Remove
112         number of lanes.
113         (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8, vld1_lane_p16,
114         vld1_lane_s8, vld1_lane_s16, vld1_lane_s32, vld1_lane_s64,
115         vld1_lane_u8, vld1_lane_u16, vld1_lane_u32, vld1_lane_u64): Call
116         __aarch64_vset_lane_any rather than vset_lane_xxx.
117
118 2014-12-09  Alan Lawrence  <alan.lawrence@arm.com>
119
120         * config/aarch64/aarch64.md (absdi2): Remove scratch operand by
121         earlyclobbering result operand.
122
123         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
124         Remove final qualifier_internal.
125         (aarch64_fold_builtin): Stop folding abs builtins, except on floats.
126
127 2014-12-09  Wilco Dijkstra  <wilco.dijkstra@arm.com>
128
129         * gcc/config/aarch64/aarch64-protos.h (tune-params): Add reasociation
130         tuning parameters.
131         * gcc/config/aarch64/aarch64.c (TARGET_SCHED_REASSOCIATION_WIDTH):
132         Define.
133         (aarch64_reassociation_width): New function.
134         (generic_tunings): Add reassociation tuning parameters.
135         (cortexa53_tunings): Likewise.
136         (cortexa57_tunings): Likewise.
137         (thunderx_tunings): Likewise.
138
139 2014-12-09  Andrew Pinski  apinski@cavium.com
140             Kyrylo Tkachov  kyrylo.tkachov@arm.com
141
142         * config/aarch64/aarch64.c (AARCH64_FUSE_CMP_BRANCH): New define.
143         (thunderx_tunings): Add AARCH64_FUSE_CMP_BRANCH to fuseable_ops.
144         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_CMP_BRANCH.
145
146 2014-12-09  David Malcolm  <dmalcolm@redhat.com>
147
148         PR jit/64166
149         * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
150         New function.
151         (gcc::dump_manager::get_dump_file_name): Split out bulk of
152         implementation into a new overloaded variant taking a
153         dump_file_info *.
154         * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
155         New function.
156         (gcc::dump_manager::get_dump_file_name): New overloaded variant of
157         this function, taking a dump_file_info *.
158
159 2014-12-09  Uros Bizjak  <ubizjak@gmail.com>
160
161         PR bootstrap/64213
162         Revert:
163         2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
164
165         PR rtl-optimization/64037
166         * combine.c (setup_incoming_promotions): Pass the argument
167         before any promotions happen to promote_function_mode.
168
169 2014-12-09  Richard Biener  <rguenther@suse.de>
170
171         PR tree-optimization/64193
172         * tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
173         and valueize the VUSE before looking up the def stmt.
174         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
175         * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
176         to walk_non_aliased_vuses.
177         (vn_reference_lookup): Likewise.
178         * tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
179         callback to walk_non_aliased_vuses.
180
181 2014-12-09  Richard Biener  <rguenther@suse.de>
182
183         PR middle-end/64199
184         * fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
185
186 2014-12-09  Richard Biener  <rguenther@suse.de>
187
188         PR tree-optimization/64191
189         * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
190         not relevant (nor are their uses).
191
192 2014-12-09  Ilya Enkovich  <ilya.enkovich@intel.com>
193
194         * lto/lto-partition.c (privatize_symbol_name): Correctly
195         privatize instrumentation clones.
196
197 2014-12-09  Ilya Enkovich  <ilya.enkovich@intel.com>
198
199         * lto-cgraph.c (input_cgraph_1): Don't break existing
200         instrumentation clone references.
201         * lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
202         instrumented_version references appropriately.
203
204 2014-12-09  Ilya Enkovich  <ilya.enkovich@intel.com>
205
206         PR bootstrap/63995
207         * tree-chkp.c (chkp_make_static_bounds): Share bounds var
208         between nodes sharing assembler name.
209
210 2014-12-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
211
212         PR target/64204
213         * config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
214         constant moves if -mupper-regs-df.
215
216         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
217         0.0L to TFmode.
218         (movtd_64bit_nodm): Likewise.
219         (mov<mode>_32bit, FMOVE128 case): Likewise.
220
221 2014-12-08  Sandra Loosemore  <sandra@codesourcery.com>
222
223         * simplify-rtx.c (simplify_relational_operation_1): Handle
224         simplification identities for BICS patterns.
225
226 2014-12-08  Trevor Saunders  <tsaunders@mozilla.com>
227
228         * config/nvptx/nvptx.c: Convert htabs to hash_table.
229
230 2014-12-08  David Edelsohn  <dje.gcc@gmail.com>
231
232         PR target/64226
233         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner)
234         [SYMBOL_REF]: Do not explicitly call create_TOC_reference for
235         TARGET_TOC. Always use rs6000_emit_move.
236
237 2014-12-08  Mark Wielaard  <mjw@redhat.com>
238
239         PR debug/60782
240         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_ATOMIC.
241
242 2014-11-15  David Wohlferd <dw@LimeGreenSocks.com>
243
244         PR target/61692
245         * cfgexpand.c (expand_asm_operands): Count all inline asm params.
246
247 2014-12-08  David Malcolm  <dmalcolm@redhat.com>
248
249         PR jit/63854
250         * cgraph.h (xstrdup_for_dump): New function.
251         * cgraph.c (cgraph_node::get_create): Replace use of xstrdup
252         within fprintf with xstrdup_for_dump.
253         (cgraph_edge::make_speculative): Likewise.
254         (cgraph_edge::resolve_speculation): Likewise.
255         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
256         (cgraph_node::dump): Likewise.
257         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
258         * ipa-cp.c (perhaps_add_new_callers): Likewise.
259         * ipa-inline.c (report_inline_failed_reason): Likewise.
260         (want_early_inline_function_p): Likewise.
261         (edge_badness): Likewise.
262         (update_edge_key): Likewise.
263         (flatten_function): Likewise.
264         (inline_always_inline_functions): Likewise.
265         * ipa-profile.c (ipa_profile): Likewise.
266         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
267         (ipa_make_edge_direct_to_target): Likewise.
268         (remove_described_reference): Likewise.
269         (propagate_controlled_uses): Likewise.
270         * ipa-utils.c (ipa_merge_profiles): Likewise.
271
272 2014-12-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
273
274         PR ipa/64049
275         * ipa-polymorphic-call.c
276         (pa_polymorphic_call_context::ipa_polymorphic_call): Allow RESULT_DECL.
277
278 2014-12-08  Alex Velenko  <Alex.Velenko@arm.com>
279
280         * config/aarch64/aarch64.md (and_one_cmpl<mode>3_compare0_no_reuse):
281         New define_insn.
282         * (and_one_cmpl_<SHIFT:optab><mode>3_compare0_no_reuse):
283         Likewise.
284
285 2014-12-08  Felix Yang  <felix.yang@huawei.com>
286             Haijian Zhang  <z.zhanghaijian@huawei.com>
287             Jiji Jiang  <jiangjiji@huawei.com>
288             Pengfei Sui  <suipengfei@huawei.com>
289
290         * config/aarch64/arm_neon.h (vrecpe_u32, vrecpeq_u32): Rewrite using
291         builtin functions.
292         (vfma_f32, vfmaq_f32, vfmaq_f64, vfma_n_f32, vfmaq_n_f32, vfmaq_n_f64,
293         vfms_f32, vfmsq_f32, vfmsq_f64): Likewise.
294         (vhsub_s8, vhsub_u8, vhsub_s16, vhsub_u16, vhsub_s32, vhsub_u32,
295         vhsubq_s8, vhsubq_u8, vhsubq_s16, vhsubq_u16, vhsubq_s32, vhsubq_u32,
296         vsubhn_s16, vsubhn_u16, vsubhn_s32, vsubhn_u32, vsubhn_s64, vsubhn_u66,
297         vrsubhn_s16, vrsubhn_u16, vrsubhn_s32, vrsubhn_u32, vrsubhn_s64,
298         vrsubhn_u64, vsubhn_high_s16, vsubhn_high_u16, vsubhn_high_s32,
299         vsubhn_high_u32, vsubhn_high_s64, vsubhn_high_u64, vrsubhn_high_s16,
300         vrsubhn_high_u16, vrsubhn_high_s32, vrsubhn_high_u32, vrsubhn_high_s64,
301         vrsubhn_high_u64): Likewise.
302         * config/aarch64/iterators.md (VDQ_SI): New mode iterator.
303         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_URECPE.
304         * config/aarch64/aarch64-simd.md (aarch64_urecpe<mode>): New pattern.
305         * config/aarch64/aarch64-simd-builtins.def (shsub, uhsub, subhn, rsubhn,
306         subhn2, rsubhn2, urecpe): New builtins.
307
308 2014-12-08  Ilya Tocar  <ilya.tocar@intel.com>
309
310         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Handle v64qi.
311         * config/i386/sse.md (VEC_PERM_AVX2): Add v64qi.
312
313 2014-12-08  Ilya Tocar  <ilya.tocar@intel.com>
314
315         * config/i386/i386.c (expand_vec_perm_broadcast_1): Handle v64qi.
316         (expand_vec_perm_vpermi2_vpshub2): New.
317         (ix86_expand_vec_perm_const_1): Use it.
318         (ix86_vectorize_vec_perm_const_ok): Handle v64qi.
319         * config/i386/sse.md (VEC_PERM_CONST): Add v64qi.
320
321 2014-12-08  Ilya Enkovich  <ilya.enkovich@intel.com>
322
323         * tree-chkp.c (chkp_build_returned_bound): Don't predict
324         return bounds for strchr calls.
325
326 2014-12-08  Ilya Enkovich  <ilya.enkovich@intel.com>
327
328         * tree-chkp.c (chkp_call_returns_bounds_p): New.
329         (chkp_build_returned_bound): Use zero bounds as
330         returned by calls not returning bounds.
331
332 2014-12-08  Richard Biener  <rguenther@suse.de>
333
334         * builtins.c (fold_builtin_0): Remove unused ignore parameter.
335         (fold_builtin_1): Likewise.
336         (fold_builtin_3): Likewise.
337         (fold_builtin_varargs): Likewise.
338         (fold_builtin_2): Likewise.  Do not fold stpcpy here.
339         (fold_builtin_n): Adjust.
340         (fold_builtin_stpcpy): Move to gimple-fold.c.
341         (gimple_fold_builtin_stpcpy): Moved and gimplified from builtins.c.
342         (gimple_fold_builtin): Fold stpcpy here.
343
344 2014-12-07  Trevor Saunders  <tsaunders@mozilla.com>
345
346         * symtab.c (symtab_node::verify): Check for section attribute before
347         asserting something isn't in a section and a comdat group.
348
349 2014-12-07  Oleg Endo  <olegendo@gcc.gnu.org>
350
351         PR target/50751
352         * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
353
354 2014-12-07  Eric Botcazou  <ebotcazou@adacore.com>
355
356         * compare-elim.c: Fix head comment.
357         (conforming_compare): Remove redundant test.
358         (can_eliminate_compare): New function extracted from...
359         (before_dom_children): ...here.  Use it, replace direct uses of
360         flag_non_call_exceptions and tidy up.
361         (maybe_select_cc_mode): Tidy up.
362
363 2014-12-07  Felix Yang  <felix.yang@huawei.com>
364             Shanyao Chen  <chenshanyao@huawei.com>
365
366         * config/aarch64/aarch64-simd.md (clrsb<mode>2, popcount<mode>2): New
367         patterns.
368         * config/aarch64/aarch64-simd-builtins.def (clrsb, popcount): New
369         builtins.
370         * config/aarch64/arm_neon.h (vcls_s8, vcls_s16, vcls_s32, vclsq_s8,
371         vclsq_s16, vclsq_s32, vcnt_p8, vcnt_s8, vcnt_u8, vcntq_p8, vcntq_s8,
372         vcntq_u8): Rewrite using builtin functions.
373
374 2014-12-07  Jan Hubicka  <hubicka@ucw.cz>
375
376         * symtab.c (symtab_node::equal_address_to): New function.
377         * cgraph.h (symtab_node::equal_address_to): Declare.
378         * fold-const.c (fold_comparison, fold_binary_loc): Use it.
379         * c-family/c-common.c: Refuse weaks for symbols that can not change
380         visibility.
381
382 2014-12-07  Jonathan Wakely  <jwakely@redhat.com>
383
384         * doc/invoke.texi (Warning Options): Fix spelling and grammar.
385
386 2014-12-06  James Greenhalgh  <james.greenhalgh@arm.com>
387             Sebastian Pop  <s.pop@samsung.com>
388             Brian Rzycki  <b.rzycki@samsung.com>
389
390         PR tree-optimization/54742
391         * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
392         max-fsm-thread-paths): New.
393
394         * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
395         max-fsm-thread-paths): Documented.
396
397         * tree-cfg.c (split_edge_bb_loc): Export.
398         * tree-cfg.h (split_edge_bb_loc): Declared extern.
399
400         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
401         original value of cond when simplification fails.
402         (fsm_find_thread_path): New.
403         (fsm_find_control_statement_thread_paths): New.
404         (thread_through_normal_block): Call find_control_statement_thread_paths.
405
406         * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
407         EDGE_FSM_THREAD.
408         (verify_seme): New.
409         (duplicate_seme_region): New.
410         (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
411         calling duplicate_seme_region.
412
413         * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
414
415 2014-12-06  H.J. Lu  <hongjiu.lu@intel.com>
416
417         PR target/64200
418         * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
419         for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
420
421 2014-12-05  Jakub Jelinek  <jakub@redhat.com>
422
423         PR sanitizer/64170
424         * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
425         non-NULL, call maybe_get_dominating_check on it even if g is
426         non-NULL.
427
428 2014-12-05  Jeff Law  <law@redhat.com>
429
430         * doc/md.texi: Note problems using function calls to determine
431         insn lengths and point readers to a potential workaround.
432
433 2014-12-05  Andreas Schwab  <schwab@linux-m68k.org>
434
435         * combine.c (is_parallel_of_n_reg_sets)
436         (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
437
438 2014-12-05  Andrew Pinski  <apinski@cavium.com>
439
440         * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
441         than CF10 so 2 is appended on the code.
442         * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
443         (bswap<mode>2): This so it matches for the optabs.
444
445 2014-12-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
446
447         * regrename.c (find_best_rename_reg): Rename to ...
448         (find_rename_reg): This. Also add a parameter to skip tick check.
449         * regrename.h: Likewise.
450         * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
451
452 2014-12-05  Martin Jambor  <mjambor@suse.cz>
453
454         PR ipa/64192
455         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
456         from bits to bytes after checking they are byte-aligned.
457
458 2014-12-05  Renlin Li  <renlin.li@arm.com>
459
460         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
461         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
462         * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
463         IDENT to SCHED.
464
465 2014-12-05  Bin Cheng  <bin.cheng@arm.com>
466
467         * config/aarch64/aarch64.md (load_pair<mode>): Split to
468         load_pairsi, load_pairdi, load_pairsf and load_pairdf.
469         (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
470         from load_pair<mode>.  New alternative to support int/fp
471         registers in fp/int mode patterns.
472         (store_pair<mode>:): Split to store_pairsi, store_pairdi,
473         store_pairsf and store_pairdi.
474         (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
475         from store_pair<mode>.  New alternative to support int/fp
476         registers in fp/int mode patterns.
477         (*load_pair_extendsidi2_aarch64): New pattern.
478         (*load_pair_zero_extendsidi2_aarch64): New pattern.
479         (aarch64-ldpstp.md): Include.
480         * config/aarch64/aarch64-ldpstp.md: New file.
481         * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
482         New.
483         (extract_base_offset_in_addr): New.
484         (aarch64_operands_ok_for_ldpstp): New.
485         (aarch64_operands_adjust_ok_for_ldpstp): New.
486         * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
487         (TARGET_SCHED_FUSION_PRIORITY): New hook.
488         (fusion_load_store): New functon.
489         (extract_base_offset_in_addr): New function.
490         (aarch64_gen_adjusted_ldpstp): New function.
491         (aarch64_sched_fusion_priority): New function.
492         (aarch64_operands_ok_for_ldpstp): New function.
493         (aarch64_operands_adjust_ok_for_ldpstp): New function.
494
495 2014-12-05  Olivier Hainque  <hainque@adacore.com>
496
497         * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
498         * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
499         DWARF_REG_TO_UNWIND_COLUMN.
500
501 2014-12-05  Olivier Hainque  <hainque@adacore.com>
502
503         * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
504         one particular reg for expand_builtin_init_dwarf_reg_sizes.
505         (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
506         account for dwarf register spans.
507
508 2014-12-05  Ilya Enkovich  <ilya.enkovich@intel.com>
509
510         PR target/64003
511         * config/i386/i386.md (*jcc_1_bnd): New.
512         (*jcc_2_bnd): New.
513         (jump_bnd): New.
514         (*jcc_1): Remove bnd prefix.
515         (*jcc_2): Likewise.
516         (jump): Likewise.
517
518 2014-12-05  Renlin Li  <renlin.li@arm.com>
519
520         * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
521         selected_tune.
522         (aarch64_override_options): Use selected_cpu's tuning.
523
524 2014-12-05  David Edelsohn  <dje.gcc@gmail.com>
525
526         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
527         alignment to section name. Increase default alignment to word.
528
529 2014-12-05  Martin Jambor  <mjambor@suse.cz>
530
531         * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
532         (cgraph_edge): New method redirect_callee_duplicating_thunks.
533         * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
534         created thunks.
535         (redirect_edge_duplicating_thunks): Turned into edge method
536         redirect_callee_duplicating_thunks.
537         (cgraph_node::expand_all_artificial_thunks): New method.
538         (create_clone): Call expand_all_artificial_thunks.
539         * ipa-cp.c (perhaps_add_new_callers): Call
540         redirect_callee_duplicating_thunks instead of redirect_callee.
541         Also call expand_all_artificial_thunks.
542
543 2014-12-05  Ilya Enkovich  <ilya.enkovich@intel.com>
544
545         PR target/64056
546         * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target Keywords.
547
548 2014-12-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
549
550         * diagnostic.h (diagnostic_expand_location): New inline function.
551         * diagnostic.c (diagnostic_build_prefix): Use it.
552         (diagnostic_show_locus): Likewise.
553
554 2014-12-04  H.J. Lu  <hongjiu.lu@intel.com>
555
556         PR bootstrap/64189
557         * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
558         * configure: Regenerated.
559
560 2014-12-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
561
562         * diagnostic.c (diagnostic_color_init): New.
563         * diagnostic.h: Declare.
564         * gcc.c (driver::global_initializations): Use it.
565         (driver_handle_option): Handle -fdiagnostics-color_.
566         * toplev.c: Do not include diagnostic-color.h.
567         (process_options): Do not initialize color diagnostics here.
568         * common.opt (fdiagnostics-color=): Add Driver.
569         * opts-global.c (init_options_once): Initialize color here.
570         * opts.c (common_handle_option): Use diagnostics_color_init.
571         * diagnostic-color.h: Fix comment.
572
573 2014-12-04  David Malcolm  <dmalcolm@redhat.com>
574
575         * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
576         (NIY): Likewise.
577         (buffer): Rename this variable to...
578         (tree_pp): ...this.
579
580         (do_niy): Rename param from "buffer" to "pp".
581         (dump_decl_name): Likewise.
582         (dump_function_name): Likewise.
583         (dump_function_declaration): Likewise.
584         (dump_array_domain): Likewise.
585         (dump_omp_clause): Likewise.
586         (dump_omp_clauses): Likewise.
587         (dump_location): Likewise.
588         (dump_block_node): Likewise.
589         (dump_generic_node): Likewise.
590         (print_declaration): Likewise.
591         (print_struct_decl): Likewise.
592         (print_call_name): Likewise.
593         (pretty_print_string): Likewise.
594         (newline_and_indent): Likewise.
595
596         (print_generic_decl): Update for renaming of "buffer" to
597         "tree_pp".
598         (print_generic_stmt): Likewise.
599         (print_generic_stmt_indented): Likewise.
600         (print_generic_expr): Likewise.
601         (maybe_init_pretty_print): Likewise.
602
603 2014-12-04  David Malcolm  <dmalcolm@redhat.com>
604
605         PR jit/63854
606         * tree-pretty-print.c: Eliminate include of <new>.
607         (buffer): Convert this variable from a pretty_printer to a
608         pretty_printer *.
609         (initialized): Eliminate this variable in favor of the NULL-ness
610         of "buffer".
611         (print_generic_decl): Update for "buffer" becoming a pointer.
612         (print_generic_stmt): Likewise.
613         (print_generic_stmt_indented): Likewise.
614         (print_generic_expr): Likewise.
615         (maybe_init_pretty_print): Likewise, allocating "buffer" on the
616         heap and using its non-NULL-ness to ensure idempotency.
617
618 2014-12-04  David Malcolm  <dmalcolm@redhat.com>
619
620         PR jit/63854
621         * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
622         ipa_add_new_function on function_insertion_hook_holder being
623         non-NULL.
624         * ipa-reference.c (ipa_reference_c_finalize): Remove
625         node_removal_hook_holder and node_duplication_hook_holder if
626         they've been added to symtab.
627         * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
628         before cgraph_c_finalize so that the former can access "symtab".
629
630 2014-12-04  David Malcolm  <dmalcolm@redhat.com>
631
632         * doc/cfg.texi (GIMPLE statement iterators): Add note about
633         gphi_iterator, and use one in the example.
634         * doc/gimple.texi (Tuple specific accessors): Add missing
635         GIMPLE_GOTO section and menu item.
636         (gimple_build_asm, gimple gimple_build_assign_with_ops)
637         gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
638         description of removed functions.
639         (gimple_build_assign, gimple_build_bind, gimple_build_call,
640         gimple_build_call_from_tree, gimple_build_call_vec,
641         gimple_build_catch, gimple_build_cond,
642         gimple_build_cond_from_tree, gimple_build_debug_bind,
643         gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
644         gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
645         gimple_build_omp_continue, gimple_build_omp_critical,
646         gimple_build_omp_for, gimple_build_omp_parallel,
647         gimple_build_omp_sections, gimple_build_omp_single,
648         gimple_build_return, gimple_build_resx, gimple_build_switch,
649         gimple_build_try): Update return type within description to
650         reflect changes in gimple.h to using gimple subclasses.
651         (gimple_build_asm_vec): Update return type, params and
652         description.
653         (gimple_asm_ninputs): Update param.
654         (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
655         gimple_asm_set_input_op, gimple_asm_output_op
656         gimple_asm_set_output_op, gimple_asm_clobber_op,
657         gimple_asm_set_clobber_op, gimple_asm_string,
658         gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
659         gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
660         gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
661         gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
662         gimple_call_return_type, gimple_call_set_chain,
663         gimple_call_set_tail, gimple_call_tail_p,
664         gimple_call_copy_skip_args, gimple_catch_types,
665         gimple_catch_types_ptr, gimple_catch_handler,
666         gimple_catch_set_types, gimple_catch_set_handler,
667         gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
668         gimple_cond_true_label, gimple_cond_set_true_label,
669         gimple_cond_set_false_label, gimple_cond_false_label,
670         gimple_cond_make_false, gimple_cond_make_true,
671         gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
672         gimple_eh_must_not_throw_fndecl,
673         gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
674         gimple_label_set_label, gimple_goto_set_dest,
675         gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
676         gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
677         gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
678         gimple_omp_continue_control_def,
679         gimple_omp_continue_control_def_ptr,
680         gimple_omp_continue_set_control_def,
681         gimple_omp_continue_control_use,
682         gimple_omp_continue_control_use_ptr,
683         gimple_omp_continue_set_control_use, gimple_omp_critical_name,
684         gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
685         gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
686         gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
687         gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
688         gimple_omp_parallel_data_arg_ptr,
689         gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
690         gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
691         gimple_resx_set_region, gimple_return_retval,
692         gimple_return_set_retval, gimple_switch_num_labels,
693         gimple_switch_set_num_labels, gimple_switch_index,
694         gimple_switch_set_index, gimple_switch_label,
695         gimple_switch_set_label, gimple_switch_default_label,
696         gimple_switch_set_default_label, gimple_try_set_eval,
697         gimple_try_set_cleanup): Update initial param within description
698         to reflect changes in gimple.h to using gimple subclasses.
699         (Adding a new GIMPLE statement code): Update to reflect gimple
700         statement subclassing.
701
702 2014-12-04  Sriraman Tallam  <tmsriram@google.com>
703             H.J. Lu  <hongjiu.lu@intel.com>
704
705         * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
706         Linux/x86-64 linker supports PIE with copy reloc.
707         * config.in: Regenerated.
708         * configure: Likewise.
709
710         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
711         pc-relative address for undefined, non-weak, non-function
712         symbol reference in 64-bit PIE if linker supports PIE with
713         copy reloc.
714
715         * doc/sourcebuild.texi: Document pie_copyreloc target.
716
717 2014-12-04  Marek Polacek  <polacek@redhat.com>
718
719         PR middle-end/56917
720         * fold-const.c (fold_unary_loc): Perform the negation in A's type
721         when transforming ~ (A - 1) or ~ (A + -1) to -A.
722
723 2014-12-04  Tobias Burnus  <burnus@net-b.de>
724
725         * Makefile.in: Remove CLOOGLIB and CLOOGINC.
726
727 2014-12-04  Richard Biener  <rguenther@suse.de>
728
729         * doc/match-and-simplify.texi: Update for recent changes.
730
731 2014-12-04  Martin Jambor  <mjambor@suse.cz>
732
733         * ipa-prop.h (ipa_alignment): New type.
734         (ipa_jump_func): New field alignment.
735         (ipcp_transformation_summary) New type.
736         (ipcp_grow_transformations_if_necessary): Declare.
737         (ipa_node_agg_replacements): Removed.
738         (ipcp_transformations): Declare.
739         (ipcp_get_transformation_summary): New function.
740         (ipa_get_agg_replacements_for_node): Use it.
741         * ipa-cp.c (ipcp_param_lattices): New field alignment.
742         (print_all_lattices): Also print alignment.
743         (alignment_bottom_p): New function.
744         (set_alignment_to_bottom): Likewise.
745         (set_all_contains_variable): Also set alignment to bottom.
746         (initialize_node_lattices): Likewise.
747         (propagate_alignment_accross_jump_function): New function.
748         (propagate_constants_accross_call): Call it.
749         (ipcp_store_alignment_results): New function.
750         (ipcp_driver): Call it.
751         * ipa-prop.c (ipa_node_agg_replacements): Removed.
752         (ipcp_transformations): New.
753         (ipa_print_node_jump_functions_for_edge): Also print alignment.
754         (ipa_set_jf_unknown): New function.
755         (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
756         (ipa_compute_jump_functions_for_edge): Also calculate alignment.
757         (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
758         (ipcp_grow_transformations_if_necessary): New function.
759         (ipa_set_node_agg_value_chain): Use ipcp_transformations.
760         (ipa_node_removal_hook): Likewise.
761         (ipa_node_duplication_hook): Also duplicate alignment results.
762         (ipa_write_jump_function): Also stream alignments.
763         (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
764         alignments.
765         (write_agg_replacement_chain): Renamed to
766         write_ipcp_transformation_info, also stream alignments.
767         (read_agg_replacement_chain): Renamed to
768         read_ipcp_transformation_info, also stream alignments.
769         (ipa_prop_write_all_agg_replacement): Renamed to
770         ipcp_write_transformation_summaries. Stream always.
771         (ipa_prop_read_all_agg_replacement): Renamed to
772         ipcp_read_transformation_summaries.
773         (ipcp_update_alignments): New function.
774         (ipcp_transform_function): Call it, free also alignments.
775
776 2014-12-04  Richard Biener  <rguenther@suse.de>
777
778         * gimple-fold.c (replace_stmt_with_simplification): Properly
779         fail when maybe_push_res_to_seq fails.
780
781 2014-12-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
782
783         * config/aarch64/aarch64.md (define_insn "prefetch"): New.
784
785 2014-12-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
786
787         * doc/install.texi: Remove mentions of cloog and ppl.
788         * doc/invoke.texi: Likewise
789
790 2014-12-04  Jakub Jelinek  <jakub@redhat.com>
791
792         PR c++/56493
793         * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
794         Handle COMPOUND_EXPR.
795
796 2014-12-04  Richard Biener  <rguenther@suse.de>
797
798         * builtins.c (target_newline): Export.
799         (target_percent_s_newline): Likewise.
800         (fold_builtin_1): Do not fold printf functions here.
801         (fold_builtin_2): Likewise.
802         (fold_builtin_3): Likewise, do not fold strncat.
803         (fold_builtin_strncat): Move to gimple-fold.c.
804         (fold_builtin_printf): Likewise.
805         * builtins.h (target_newline): Declare.
806         (target_percent_s_newline): Likewise.
807         * gimple-fold.c (gimple_fold_builtin_strncat): Move from
808         builtins.c and gimplify.
809         (gimple_fold_builtin_printf): Likewise.
810         (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
811         vprintf, printf_chk and vprintf_chk here.
812
813 2014-12-03  David Edelsohn  <dje.gcc@gmail.com>
814
815         * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
816         (floatunssidf2_internal): Same.
817         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
818         (rs6000_emit_int_cmove): Same.
819         (rs6000_sched_reorder): Same.
820         (altivec_expand_vec_perm_const): Same.
821         (rs6000_expand_vec_perm_const_1): Same.
822
823 2014-12-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
824
825         PR rtl-optimization/64010
826         * reload.c (push_reload): Before reusing a register contained
827         in an operand as input reload register, ensure that it is not
828         used in CALL_INSN_FUNCTION_USAGE.
829
830 2014-12-03  Ulrich Drepper  <drepper@gmail.com>
831
832         * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
833         if it exists.
834
835 2014-12-03  Jakub Jelinek  <jakub@redhat.com>
836
837         * expmed.c (expand_mult): Use std::swap.
838
839         PR c/59708
840         * expmed.c (expand_widening_mult): Return const0_rtx if
841         coeff is 0.
842
843         * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
844         (gimple_build_assign): Document the new overloads.
845
846 2014-12-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
847
848         PR target/64019
849         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
850         not create LO_SUM address for constant addresses if the type can
851         go in Altivec registers.
852
853 2014-12-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
854
855         PR fortran/44054
856         * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
857         (pp_flush): Flush only if flush_p.
858         (pp_really_flush): New.
859         * pretty-print.h (struct output_buffer): Add flush_p.
860         (pp_really_flush): Declare.
861
862 2014-12-03  Jakub Jelinek  <jakub@redhat.com>
863
864         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
865         gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
866         (GENGTYPE_OBJS): New.
867         (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
868         Remove explicit dependencies.
869         (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
870         CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
871         instead of -DGENERATOR_FILE.
872         (CFLAGS-errors.o): New.
873         * gengtype.c: Instead of testing GENERATOR_FILE define, test
874         HOST_GENERATOR_FILE.  If defined, include config.h and define
875         GENERATOR_FILE afterwards, otherwise include bconfig.h.
876         * gengtype-parse.c: Likewise.
877         * gengtype-state.c: Likewise.
878         * gengtype-lex.l: Likewise.
879         * errors.c: Likewise.
880
881 2014-12-03  Joern Rennecke  <joern.rennecke@embecosm.com>
882
883         * config/epiphany/epiphany.c (epiphany_override_options):
884         If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
885         * config/epiphany/epiphany.md (mov<mode>cc): Don't use
886         reverse_condition_maybe_unordered if flag_finite_math_only is set.
887
888 2014-12-03  Andrew Stubbs  <ams@codesourcery.com>
889
890         Revert:
891
892         2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
893         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
894         when architecture is older than ARMv7.
895
896 2014-12-03  Richard Biener  <rguenther@suse.de>
897
898         * builtins.c (target_percent_c): Export.
899         (fold_builtin_fprintf): Move to gimple-fold.c.
900         (fold_builtin_2): Do not fold fprintf functions.
901         (fold_builtin_3): Likewise.
902         (fold_builtin_4): Remove.
903         (fold_builtin_n): Do not call fold_builtin_4.
904         * builtins.h (target_percent_c): Declare.
905         * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
906         builtins.c and gimplify.
907         (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
908         fprintf_chk and vfprintf_chk here.
909
910 2014-12-03  Martin Jambor  <mjambor@suse.cz>
911
912         PR ipa/64153
913         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
914         type sizes before view_converting.
915
916 2014-12-03  H.J. Lu  <hongjiu.lu@intel.com>
917
918         PR rtl-optimization/64151
919         PR rtl-optimization/64156
920         * ira-costs.c (scan_one_insn): Revert r218266.
921
922 2014-12-03  Richard Biener  <rguenther@suse.de>
923
924         * builtins.c (fold_builtin_fpclassify): Change to take
925         array of arguments instead of CALL_EXPR tree.
926         (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
927         (fold_builtin_n): Dispatch to fold_builtin_varargs.
928         (fold_call_expr): Always use fold_builtin_n.
929         (fold_builtin_call_array): Change to not build the unfolded call,
930         always use fold_builtin_n.
931         (fold_builtin_varargs): Change to take array of arguments instead
932         of CALL_EXPR tree.
933         (fold_call_stmt): Always use fold_builtin_n.
934         * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
935         * fold-const.c (fold_build_call_array_loc): Build the call
936         if fold_builtin_call_array returned NULL_TREE.
937         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
938         a CALL_EXPR and use fold_builtin_call_array instead of
939         fold_call_expr.
940
941 2014-12-03  Alan Lawrence  <alan.lawrence@arm.com>
942
943         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
944         bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
945         ior<mode>3, xor<mode>3, one_cmpl<mode>2,
946         aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
947         aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
948         aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
949         ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
950         reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
951         vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
952         Change VDQ to VDQ_I.
953
954         (mul<mode>3): Change VDQM to VDQ_BHSI.
955         (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
956         aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
957         aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
958         
959         (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
960         aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
961         aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
962         Change VDW to VD_BHSI.
963         (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
964         Change VDIC to VD_BHSI.
965
966         * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
967         saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
968         ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
969
970         * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
971         VDIC, VDQQHS): Remove.
972         (Vwtype): Update comment (changing VDW to VD_BHSI).
973
974 2014-12-03  Richard Biener  <rguenther@suse.de>
975
976         PR middle-end/14541
977         * builtins.c (fold_builtin_logarithm): Implement simplifications ...
978         * match.pd: ... here as patterns.
979
980 2014-12-03  Prachi Godbole  <prachi.godbole@imgtec.com>
981
982         * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
983         p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
984         (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
985         reservation order.
986
987 2014-12-03  Tom de Vries  <tom@codesourcery.com>
988
989         PR rtl-optimization/63957
990         * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
991         * final.c (rest_of_handle_final): Replace flag_use_caller_save with
992         flag_ipa_ra.
993         (get_call_reg_set_usage): Same.
994         * lra-assigns.c (lra_assign): Same.
995         * lra-constraints.c (need_for_call_save_p): Same.
996         * lra-lives.c (process_bb_lives): Same.
997         * lra.c (lra): Same.
998         * calls.c (expand_call): Same.
999         (emit_library_call_value_1): Same.
1000         * config/arm/arm.c (arm_option_override): Same.
1001         * opts.c (default_options_table): Replace OPT_fuse_caller_save with
1002         OPT_fipa_ra.
1003         * target.def (call_fusage_contains_non_callee_clobbers): Replace
1004         fuse-caller-save with fipa-ra.
1005         * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
1006         * common.opt: Same.
1007
1008 2014-12-03  Yury Gribov  <y.gribov@samsung.com>
1009
1010         * sanopt.c (maybe_get_single_definition): New function.
1011         (maybe_get_dominating_check): Ditto.
1012         (can_remove_asan_check): Ditto.
1013         (struct tree_map_traits): New struct.
1014         (struct sanopt_ctx): Use custom traits for asan_check_map.
1015         (maybe_optimize_ubsan_null_ifn): Move code to
1016         maybe_get_dominating_check.
1017         (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
1018         into account when optimizing.
1019         (sanopt_optimize_walker): Optimize ASan checks even when
1020         recovering.
1021
1022 2014-12-03  Ilya Enkovich  <ilya.enkovich@intel.com>
1023
1024         * config/i386/constraints.md (Yr): New.
1025         * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
1026         (REG_CLASS_NAMES): Likewise.
1027         (REG_CLASS_CONTENTS): Likewise.
1028         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
1029         which use only NO_REX_SSE_REGS.
1030         (vec_set<mode>_0): Likewise.
1031         (*vec_setv4sf_sse4_1): Likewise.
1032         (sse4_1_insertps): Likewise.
1033         (*sse4_1_extractps): Likewise.
1034         (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
1035         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
1036         (*sse4_1_<code><mode>3<mask_name>): Likewise.
1037         (*sse4_1_<code><mode>3): Likewise.
1038         (*sse4_1_eqv2di3): Likewise.
1039         (sse4_2_gtv2di3): Likewise.
1040         (*vec_extractv4si): Likewise.
1041         (*vec_concatv2si_sse4_1): Likewise.
1042         (vec_concatv2di): Likewise.
1043         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
1044         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
1045         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
1046         (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
1047         (<sse4_1_avx2>_mpsadbw): Likewise.
1048         (<sse4_1_avx2>packusdw<mask_name>): Likewise.
1049         (<sse4_1_avx2>_pblendvb): Likewise.
1050         (sse4_1_pblendw): Likewise.
1051         (sse4_1_phminposuw): Likewise.
1052         (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
1053         (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
1054         (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
1055         (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
1056         (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
1057         (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
1058         (sse4_1_ptest): Likewise.
1059         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
1060         (sse4_1_round<ssescalarmodesuffix>): Likewise.
1061         * config/i386/subst.md (mask_prefix4): New.
1062         * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
1063
1064 2014-12-03  Segher Boessenkool  <segher@kernel.crashing.org>
1065
1066         PR rtl-optimization/52714
1067         * combine.c (try_combine): Allow combining two insns into two
1068         new insns if at least one of those is a noop.
1069
1070 2014-12-03  Bin Cheng  <bin.cheng@arm.com>
1071
1072         * target.def (fusion_priority): Wrap code with @smallexample.
1073         * doc/tm.texi: Regenerated.
1074
1075 2014-12-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1076
1077         * diagnostic.c (diagnostic_show_locus): Honor override_column when
1078         placing the caret.
1079
1080 2014-12-02  Dmitry Vyukov  <dvyukov@google.com>
1081
1082         * asan.c: (asan_finish_file): Use default priority for constructors
1083         in kernel mode.
1084
1085 2014-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1086
1087         PR target/64115
1088         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
1089         invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
1090
1091 2014-12-02  H.J. Lu  <hongjiu.lu@intel.com>
1092
1093         PR target/64108
1094         * config/i386/i386.c (decide_alg): Stop only if there aren't
1095         any usable algorithms.
1096
1097 2014-12-02  Tom de Vries  <tom@codesourcery.com>
1098
1099         PR rtl-optimization/63718
1100         * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
1101         Thumb1.
1102
1103 2014-12-02  Richard Biener  <rguenther@suse.de>
1104
1105         * match.pd: When combining divisions exclude the degenerate
1106         case involving INT_MIN from overflow handling.
1107
1108 2014-12-02  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1109
1110         * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
1111
1112 2014-12-02  Martin Jambor  <mjambor@suse.cz>
1113
1114         PR ipa/63814
1115         * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
1116         (cgraph_edge_brings_value_p): New parameter dest, use
1117         same_node_or_its_all_contexts_clone_p and check availability.
1118         (cgraph_edge_brings_value_p): Likewise.
1119         (get_info_about_necessary_edges): New parameter dest, pass it to
1120         cgraph_edge_brings_value_p.  Update caller.
1121         (gather_edges_for_value): Likewise.
1122         (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
1123         both the destination and availability.
1124
1125 2014-12-02  Uros Bizjak  <ubizjak@gmail.com>
1126
1127         PR target/64113
1128         * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
1129         using post-reload splitter.  Use peephole2 pass instead.
1130         (call_value_osf_tlsldm): Ditto.
1131         (TLS_CALL): New int iterator.
1132         (tls): New int attribute.
1133         (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
1134         and call_value_tlsldm using TLS_CALL int iterator.
1135
1136 2014-12-02  Richard Biener  <rguenther@suse.de>
1137             Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1138
1139         * genmatch.c: Include hash-set.h.
1140         (fatal_at): Add source_location overload.
1141         (parser::record_operlist): New method.
1142         (parser::push_simplify): Likewise.
1143         (parser::oper_lists_set): New member.
1144         (parser::oper_lists): Likewise.
1145         (parser::parse_operation): Record seen operator list references.
1146         (parser::parse_c_expr): Likewise.
1147         (parser::parse_simplify): Init oper_lists_set and oper_lists
1148         and use push_simplify.
1149         (parser::parser): Init oper_lists_set and oper_lists.
1150
1151 2014-12-02  Richard Biener  <rguenther@suse.de>
1152
1153         * match.pd: Restrict division combining to trunc_div and
1154         exact_div.
1155
1156 2014-12-02  Jakub Jelinek  <jakub@redhat.com>
1157
1158         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
1159         Remove NULL last argument from create_tmp_var calls.
1160         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
1161         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
1162         * config/i386/i386.c (add_condition_to_bb,
1163         ix86_atomic_assign_expand_fenv): Likewise.
1164         * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
1165         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1166         * config/aarch64/aarch64-builtins.c
1167         (aarch64_atomic_assign_expand_fenv): Likewise.
1168         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
1169         Likewise.
1170         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
1171         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
1172         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1173
1174         * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
1175         gimple_build_assign instead of gimple_build_assign_with_ops and swap
1176         the order of first two arguments.
1177         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
1178         Likewise.  Remove last NULL_TREE argument.
1179
1180 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
1181
1182         PR rtl-optimization/59278
1183         * combine (reg_dead_at_p): Consider REG_UNUSED notes.
1184
1185 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
1186
1187         * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
1188
1189 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
1190
1191         * combine.c (is_parallel_of_n_reg_sets): New function.
1192         (can_split_parallel_of_n_reg_sets): New function.
1193         (try_combine): If I2 is a PARALLEL of two SETs, split it into
1194         two insns if possible.
1195
1196 2014-12-01  Tobias Burnus  <burnus@net-b.de>
1197             Jack Howarth  <howarth@bromo.med.uc.edu>
1198
1199         PR middle-end/64017
1200         * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
1201         New check.
1202         * doc/install.texi (ISL): Permit ISL 0.14.
1203         * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
1204         Conditionally use ISL 0.13+ functions.
1205         * graphite-interchange.c: Make 'extern "C"' conditional.
1206         * graphite-isl-ast-to-gimple.c: Ditto.
1207         * graphite-poly.c: Ditto.
1208         * graphite-sese-to-poly.c: Ditto.
1209         * config.in: Regenerate.
1210         * gcc/configure: Regenerate.
1211
1212 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
1213
1214         * combine.c (distribute_links): Handle multiple SETs.
1215
1216 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
1217
1218         * combine.c (struct insn_link): New field `regno'.
1219         (alloc_insn_link): New parameter `regno'.  Use it.
1220         (find_single_use): Check the new field.
1221         (can_combine_def_p, can_combine_use_p): New functions.  Split
1222         off from ...
1223         (create_log_links): ... here.  Correct data type of `regno'.
1224         Adjust call to alloc_insn_link.
1225         (adjust_for_new_dest): Find regno, use it in call to
1226         alloc_insn_link.
1227         (try_combine): Check reg_used_between_p when combining a PARALLEL
1228         as earlier insn.  Adjust call to alloc_insn_link.
1229         (distribute_links): Check the new field.
1230
1231 2014-12-01  David Malcolm  <dmalcolm@redhat.com>
1232
1233         PR jit/63854
1234         * real.c (real_from_string): Add missing mpfr_clear.
1235
1236 2014-12-01  David Malcolm  <dmalcolm@redhat.com>
1237
1238         PR jit/63854
1239         * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
1240         release of stmts by converting it to an auto_vec.
1241
1242 2014-12-01  Richard Biener  <rguenther@suse.de>
1243
1244         * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
1245         -Wno-unused-variable and -Wno-unused-but-set-variable to restore
1246         bootstrap with old GCC.
1247         (generic-match.o-warn): Likewise.
1248
1249 2014-12-01  Richard Biener  <rguenther@suse.de>
1250
1251         * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
1252         Properly handle FIXED_CST shifts by INTEGER_CST.
1253         (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
1254         VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
1255         VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
1256         VEC_WIDEN_MULT_ODD_EXPR handling here from ...
1257         (fold_binary_loc): ... here.  Call const_binop overload
1258         with result type.
1259
1260 2014-12-01  Marek Polacek  <polacek@redhat.com>
1261             Jakub Jelinek  <jakub@redhat.com>
1262
1263         PR sanitizer/64121
1264         * ubsan.c (instrument_object_size): Stop searching if the base
1265         occurs in abnormal phi.
1266
1267 2014-12-01  Marek Polacek  <polacek@redhat.com>
1268
1269         PR sanitizer/63956
1270         * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
1271
1272 2014-12-01  Jakub Jelinek  <jakub@redhat.com>
1273
1274         * gimple.h (gimple_build_assign_stat): Remove prototype.
1275         (gimple_build_assign): Remove define.  Add overload prototypes
1276         with tree lhs and either a tree rhs, or enum tree_code and
1277         1, 2 or 3 tree operands.
1278         * gimple.c (gimple_build_assign_stat): Renamed to...
1279         (gimple_build_assign): ... this.  Add overloads with
1280         enum tree_code and 1, 2 or 3 tree operands.
1281         (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
1282         Rename the 3 operand overload to ...
1283         (gimple_build_assign_1): ... this.  Make it static inline.
1284         * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
1285         instead of gimple_build_assign_with_ops, swap the order of first
1286         two arguments and adjust formatting where necessary.
1287         * tree-vect-slp.c (vect_get_constant_vectors,
1288         vect_create_mask_and_perm): Likewise.
1289         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
1290         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
1291         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
1292         * tsan.c (instrument_builtin_call): Likewise.
1293         * tree-chkp.c (chkp_compute_bounds_for_assignment,
1294         chkp_generate_extern_var_bounds): Likewise.
1295         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
1296         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
1297         * gimple-builder.c (build_assign, build_type_cast): Likewise.
1298         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
1299         * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
1300         gimple_mod_subtract): Likewise.
1301         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
1302         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
1303         vect_recog_sad_pattern, vect_handle_widen_op_by_const,
1304         vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
1305         vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
1306         vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
1307         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
1308         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
1309         adjust_bool_pattern_cast, adjust_bool_pattern,
1310         vect_recog_bool_pattern): Likewise.
1311         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1312         insert_initializers, introduce_cast_before_cand,
1313         replace_one_candidate): Likewise.
1314         * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
1315         powi_as_mults, build_and_insert_binop, build_and_insert_cast,
1316         pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
1317         Likewise.
1318         * tree-tailcall.c (adjust_return_value_with_ops,
1319         update_accumulator_with_ops): Likewise.
1320         * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
1321         * tree-ssa-reassoc.c (build_and_add_sum,
1322         optimize_range_tests_to_bit_test, update_ops,
1323         maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
1324         negate_value, repropagate_negates, attempt_builtin_powi,
1325         reassociate_bb): Likewise.
1326         * tree-vect-loop.c (vect_is_simple_reduction_1,
1327         get_initial_def_for_induction, vect_create_epilog_for_reduction):
1328         Likewise.
1329         * ipa-split.c (split_function): Likewise.
1330         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
1331         abs_replacement, neg_replacement): Likewise.
1332         * tree-profile.c (gimple_gen_edge_profiler): Likewise.
1333         * tree-vrp.c (simplify_truth_ops_using_ranges,
1334         simplify_float_conversion_using_ranges,
1335         simplify_internal_call_using_ranges): Likewise.
1336         * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
1337         * tree-vect-generic.c (expand_vector_divmod,
1338         optimize_vector_constructor): Likewise.
1339         * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
1340         instrument_bool_enum_load): Likewise.
1341         * tree-ssa-loop-manip.c (create_iv): Likewise.
1342         * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
1343         expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
1344         expand_cilk_for, simd_clone_adjust): Likewise.
1345         * trans-mem.c (expand_transaction): Likewise.
1346         * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
1347         vect_setup_realignment, vect_permute_load_chain,
1348         vect_shift_permute_load_chain): Likewise.
1349         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
1350         vectorizable_simd_clone_call, vect_gen_widened_results_half,
1351         vect_create_vectorized_demotion_stmts, vectorizable_conversion,
1352         vectorizable_shift, vectorizable_operation, vectorizable_store,
1353         permute_vec_elements, vectorizable_load): Likewise.
1354
1355 2014-12-01  Richard Biener  <rguenther@suse.de>
1356
1357         PR middle-end/64111
1358         * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
1359         htab_hash_pointer to not break PCH.
1360
1361 2014-12-01  Richard Biener  <rguenther@suse.de>
1362
1363         PR tree-optimization/15346
1364         * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
1365         add -Wno-unused-but-set-variable.
1366         * match.pd: Combine two successive divisions.
1367
1368 2014-12-01  Richard Biener  <rguenther@suse.de>
1369
1370         PR middle-end/64126
1371         * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
1372         and -1 - A -> ~A.
1373         * fold-const.c (fold_binary_loc): Remove transforms here.
1374
1375 2014-12-01  Maciej W. Rozycki  <macro@codesourcery.com>
1376
1377         * config/mips/mips.c (mips16_build_call_stub): Move the save of
1378         the return address in $18 ahead of passing arguments to FPRs.
1379
1380 2014-12-01  Ilya Enkovich  <ilya.enkovich@intel.com>
1381
1382         PR target/64055
1383         * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
1384         values in array domain.
1385
1386 2014-12-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
1387
1388         PR tree-optimization/63941
1389         * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
1390         DOM_BB has non-true predicate, conditionally set non-true predicate
1391         for BB.
1392
1393 2014-12-01  Martin Jambor  <mjambor@suse.cz>
1394
1395         PR ipa/63551
1396         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
1397         value of the argument to the type of the value in the condition.
1398
1399 2014-12-01  Oleg Endo  <olegendo@gcc.gnu.org>
1400
1401         PR target/63986
1402         PR target/51244
1403         * config/sh/sh.c (sh_unspec_insn_p,
1404         sh_insn_operands_modified_between_p): New functions.
1405         (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
1406         are modified or if it has side effects, may trap or is volatile.
1407
1408 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
1409
1410         * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
1411         create_tmp_reg): Add default NULL value to last argument.
1412         * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
1413         * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
1414         last argument from create_tmp_var_raw, create_tmp_var,
1415         create_tmp_reg, make_ssa_name and copy_ssa_name calls.
1416         * tree-ssa-strlen.c (get_string_length): Likewise.
1417         * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
1418         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1419         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1420         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1421         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
1422         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1423         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
1424         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
1425         * tsan.c (instrument_expr, instrument_builtin_call,
1426         instrument_func_entry): Likewise.
1427         * varpool.c (add_new_static_var): Likewise.
1428         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
1429         * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
1430         gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
1431         gimplify_init_ctor_eval_range, gimplify_init_constructor,
1432         gimplify_omp_atomic, gimplify_expr): Likewise.
1433         * gimple-builder.c (build_assign, build_type_cast): Likewise.
1434         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
1435         slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
1436         vect_loop_versioning): Likewise.
1437         * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
1438         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
1439         * tree-vect-patterns.c (vect_handle_widen_op_by_const,
1440         vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
1441         vect_recog_over_widening_pattern): Likewise.
1442         * tree-sra.c (build_ref_for_offset, create_access_replacement):
1443         Likewise.
1444         * tree-cfg.c (make_blocks): Likewise.
1445         * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
1446         Likewise.
1447         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
1448         * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
1449         Likewise.
1450         * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
1451         * tree-tailcall.c (update_accumulator_with_ops): Likewise.
1452         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
1453         execute_load_motion, reassociate_to_the_same_stmt): Likewise.
1454         * tree-ssa-reassoc.c (build_and_add_sum,
1455         optimize_range_tests_to_bit_test, update_ops,
1456         maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
1457         negate_value, repropagate_negates): Likewise.
1458         * tree-vect-loop.c (vect_is_simple_reduction_1,
1459         vect_create_epilog_for_reduction): Likewise.
1460         * ipa-split.c (split_function): Likewise.
1461         * tree-inline.c (remap_ssa_name, setup_one_parameter,
1462         declare_return_variable, tree_function_versioning): Likewise.
1463         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1464         * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
1465         Likewise.
1466         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
1467         neg_replacement): Likewise.
1468         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1469         Likewise.
1470         * tree-vrp.c (simplify_truth_ops_using_ranges,
1471         simplify_float_conversion_using_ranges,
1472         simplify_internal_call_using_ranges): Likewise.
1473         * tree-switch-conversion.c (emit_case_bit_tests,
1474         build_one_array, build_arrays, gen_def_assigns): Likewise.
1475         * gimple-fold.c (gimple_fold_builtin_memory_op,
1476         gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
1477         * tree-vect-generic.c (expand_vector_divmod,
1478         optimize_vector_constructor): Likewise.
1479         * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
1480         ubsan_expand_objsize_ifn, instrument_si_overflow,
1481         instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
1482         * tree-outof-ssa.c (insert_backedge_copies): Likewise.
1483         * tree-ssa-loop-manip.c (create_iv,
1484         tree_transform_and_unroll_loop): Likewise.
1485         * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
1486         lower_rec_input_clauses, lower_lastprivate_clauses,
1487         expand_parallel_call, expand_omp_for_static_chunk,
1488         expand_omp_atomic_pipeline, expand_omp_target,
1489         maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
1490         lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
1491         lower_depend_clauses, lower_omp_target, lower_omp_1,
1492         ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
1493         * tree-parloops.c (take_address_of, create_phi_for_local_result,
1494         create_call_for_reduction_1, separate_decls_in_region,
1495         create_parallel_loop): Likewise.
1496         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
1497         handle_scalar_deps_crossing_scop_limits): Likewise.
1498         * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
1499         expand_assign_tm, expand_call_tm, expand_transaction,
1500         ipa_tm_insert_gettmclone_call): Likewise.
1501         * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
1502         Likewise.
1503         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
1504         vectorizable_call, vectorizable_simd_clone_call,
1505         vectorizable_conversion, vectorizable_store, permute_vec_elements,
1506         vectorizable_load): Likewise.
1507
1508 2014-11-29  Tobias Burnus  <burnus@net-b.de>
1509             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1510
1511         * opt-functions.awk (lang_enabled_by): Support || for
1512         enabled-by.
1513         * optc-gen.awk: Ditto.
1514         * doc/options.texi (LangEnabledBy, EnabledBy): Document the
1515         || syntax.
1516
1517 2014-11-28  Mike Stump  <mikestump@comcast.net>
1518
1519         * bitmap.c (bitmap_ior): Zap current as it could be deleted.
1520         (bitmap_ior_and_compl): Likewise.
1521
1522 2014-11-28  Vladimir Makarov  <vmakarov@redhat.com>
1523
1524         PR target/64061
1525         * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
1526         subreg.
1527
1528 2014-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1529
1530         PR target/64093
1531         * config/rs6000/rs6000.md (and<mode>3): Don't generate
1532         and<mode>3_imm unless rs6000_gen_cell_microcode is true.
1533
1534 2014-11-28  Vladimir Makarov  <vmakarov@redhat.com>
1535
1536         PR rtl-optimization/64087
1537         * lra-lives.c (process_bb_lives): Add debug output.
1538         (lra_create_live_ranges): Don't remove dead insn on the second
1539         call of lra_create_live_ranges_1.
1540
1541 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1542
1543         PR rtl-optimization/64037
1544         * combine.c (setup_incoming_promotions): Pass the argument
1545         before any promotions happen to promote_function_mode.
1546
1547 2014-11-28  Evgeny Stupachenko  <evstupac@gmail.com>
1548
1549         * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
1550         permutations to loads group of size 3.
1551
1552 2014-11-28  Jiong Wang  <jiong.wang@arm.com>
1553
1554         * config/arm/arm.md (copysignsf3): New pattern.
1555         (copysigndf3): Likewise.
1556
1557 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
1558             Ilya Verbin  <ilya.verbin@intel.com>
1559
1560         * omp-low.c (lower_omp_critical): Mark critical sections
1561         inside target functions as offloadable.
1562
1563 2014-11-28  Ilya Verbin  <ilya.verbin@intel.com>
1564
1565         * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
1566         file contains sections with LTO and offload IR, respectively.
1567
1568 2014-11-28  Ilya Verbin  <ilya.verbin@intel.com>
1569
1570         * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
1571         (symbol_table::compile): Set flag_generate_offload if there is something
1572         to offload.
1573         * common.opt (flag_generate_offload): New Variable declaration.
1574         * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
1575         * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
1576         flag_generate_offload is set.
1577         * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
1578         * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
1579         is set.
1580         * toplev.c (compile_file): Emit LTO marker if offload info has been
1581         previously emitted.  Do not emit lto_slim marker if
1582         flag_generate_offload is without flag_generate_lto.
1583         * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
1584
1585 2014-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1586
1587         * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
1588         * config/arm/arm-tables.opt: Regenerate.
1589         * config/arm/arm-tune.md: Regenerate.
1590         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
1591         * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
1592         MULTILIB_MATCHES.
1593
1594 2014-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1595
1596         * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
1597         Include cortex-a17.md.
1598         * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
1599         * config/arm/arm-cores.def (cortex-a17): New entry.
1600         * config/arm/arm-tables.opt: Regenerate.
1601         * config/arm/arm-tune.md: Regenerate.
1602         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
1603         * config/arm/cortex-a17.md: New file.
1604         * config/arm/cortex-a17-neon.md: New file.
1605         * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
1606         * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
1607
1608 2014-11-28  Richard Biener  <rguenther@suse.de>
1609
1610         PR middle-end/64084
1611         * genmatch.c (dt_node::gen_kids_1): New function, split out
1612         from dt_node::gen_kids.
1613         (decision_tree::cmp_node): DT_TRUE are generally not equal.
1614         (decision_tree::find_node): Treat DT_TRUE as barrier for
1615         node CSE on the same level.
1616         (dt_node::append_node): Do not keep DT_TRUE last.
1617         (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
1618
1619 2014-11-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1620
1621         * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
1622         -march=armv8-a+crc.
1623
1624 2014-11-27  Uros Bizjak  <ubizjak@gmail.com>
1625
1626         * config/i386/i386.md (preferred_for_size): New attribute
1627         (*pushxf): Split Yx*r constraints to r,*r.  Use preferred_for_size
1628         attribute to conditionally disable alternative 1.
1629         (*pushdf): Split Yd*r constraints to r,*r.  Use preferred_for_size
1630         and prefered_for_speed attributes to conditionally disable
1631         alternative 1.
1632         (*movxf_internal): Split Yx*r constraints to r,*r.  Use
1633         preferred_for_size attribute to conditionally disable
1634         alternatives 3 and 4.
1635         (*movdf_internal): Split Yd*r constraints to r,*r.  Use
1636         preferred_for_size and prefered_for_speed attributes to conditionally
1637         disable alternatives 3 and 4.
1638         * config/i386/constraints.md (Yd, Yx): Remove register constraints.
1639
1640 2014-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1641
1642         * dwarf2out.c (set_block_origin_self): Skip nested functions.
1643
1644 2014-11-27  H.J. Lu  <hongjiu.lu@intel.com>
1645
1646         PR target/63833
1647         * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
1648         R15_REG for 64-bit.
1649         * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
1650
1651 2014-11-27  Martin Liska  <mliska@suse.cz>
1652             David Malcolm  <dmalcolm@redhat.com>
1653
1654         * ipa-icf.c (sem_function::equals_private): int* is replaced with
1655         auto_vec.
1656         (sem_function::bb_dict_test): Likewise.
1657         * ipa-icf.h: Likewise.
1658
1659 2014-11-27  Richard Biener  <rguenther@suse.de>
1660
1661         PR middle-end/64088
1662         * fold-const.c (const_unop): Re-instantiate missing condition
1663         before calling fold_abs_const.
1664
1665         PR tree-optimization/64088
1666         * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
1667         the stmt break from the loop over use operands.
1668
1669 2014-11-27  Ilya Tocar  <ilya.tocar@intel.com>
1670
1671         * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
1672         Define.
1673         * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
1674         (fold_builtin_cpu): Ditto.
1675         * doc/extend.texi: Documment it.
1676
1677 2014-11-27  Jakub Jelinek  <jakub@redhat.com>
1678
1679         PR middle-end/64067
1680         * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
1681         Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
1682         not only if modifier is EXPAND_INITIALIZER, but whenever
1683         COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
1684
1685         PR tree-optimization/64024
1686         * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
1687         field.  Add simd_clone_info field.
1688         (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
1689         (STMT_VINFO_SIMD_CLONE_INFO): Define.
1690         * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
1691         STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
1692         STMT_VINFO_SIMD_CLONE_INFO vector.  For linear arguments, remember
1693         base and linear_step from analysis phase and use it during transform
1694         phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
1695         multiplied by linear_step.
1696         (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
1697
1698         PR lto/64025
1699         * alias.c (find_base_term): Use std::swap.  Prefer tmp2
1700         if it is CONSTANT_P other than CONST_INT.
1701
1702 2014-11-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1703
1704         PR target/59593
1705         * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
1706         based on mode size.
1707         * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
1708         make it TARGET_EITHER.
1709         (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
1710         and move HFmode handling from consttable_4 to it.
1711         (consttable_4): Move HFmode handling to consttable_2 pattern.
1712         * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
1713         (consttable_2): Ditto.
1714
1715 2014-11-27  Richard Biener  <rguenther@suse.de>
1716
1717         * tree-ssa-sccvn.c (try_to_simplify): Allow
1718         gimple_fold_stmt_to_constant_1 to follow SSA edges.
1719
1720 2014-11-27  Richard Biener  <rguenther@suse.de>
1721
1722         PR tree-optimization/64083
1723         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1724         forcibly mark loop for removal the wrong way.
1725
1726 2014-11-27  Richard Biener  <rguenther@suse.de>
1727
1728         PR middle-end/63704
1729         * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
1730         and instead return false when !fstrict-aliasing.
1731
1732 2014-11-27  Richard Biener  <rguenther@suse.de>
1733
1734         PR tree-optimization/61634
1735         * tree-vect-slp.c: Include gimple-walk.h.
1736         (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
1737         down the SLP tree for one scalar statement.
1738         (vect_detect_hybrid_slp_1): New walker function.
1739         (vect_detect_hybrid_slp_2): Likewise.
1740         (vect_detect_hybrid_slp): Properly handle pattern statements
1741         in a pre-scan over all loop stmts.
1742
1743 2014-11-27  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1744
1745         Revert:
1746         2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1747         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1748         aarch64_convert_mode, aarch64_gen_ccmp_first,
1749         aarch64_gen_ccmp_next): New functions.
1750         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
1751
1752 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
1753
1754         * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
1755         without -pie or -shared, error on -fsanitize=thread -static instead.
1756
1757 2014-11-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1758
1759         PR ipa/61190
1760         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
1761         (cgraph_node::function_or_virtual_thunk_symbol): New function.
1762         (cgraph_node::call_for_symbol_and_aliases): Fix comment.
1763         (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
1764         Add new optional parameter exclude_virtual_thunks.
1765         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
1766         optional parameter exclude_virtual_thunks.
1767         (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
1768         (cgraph_node::set_pure_flag): Likewise.
1769         (cgraph_node::function_symbol): Simplified.
1770         (cgraph_node::function_or_virtual_thunk_symbol): New function.
1771         * ipa-pure-const.c (analyze_function): For virtual thunks set
1772         pure_const_state to IPA_NEITHER.
1773         (propagate_pure_const): Use function_or_virtual_thunk_symbol.
1774
1775 2014-11-26  Richard Biener  <rguenther@suse.de>
1776
1777         PR middle-end/63738
1778         * tree-data-ref.c (split_constant_offset_1): Do not follow
1779         SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1780
1781 2014-11-26  Richard Biener  <rguenther@suse.de>
1782
1783         * fold-const.h (const_unop): Declare.
1784         (const_binop): Likewise.
1785         * fold-const.c (const_binop): Export overload that expects
1786         a type parameter and dispatches to fold_relational_const as well.
1787         Check both operand kinds for guarding the transforms.
1788         (const_unop): New function, with constant folding from fold_unary_loc.
1789         (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
1790         Remove constant folding done there from the simplifications.
1791         (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
1792         (fold_negate_expr): Remove dead code from the REAL_CST case.
1793         Avoid building garbage in the COMPLEX_CST case.
1794         * gimple-match-head.c (gimple_resimplify1): Dispatch to
1795         const_unop.
1796         (gimple_resimplify2): Dispatch to const_binop.
1797         (gimple_simplify): Likewise.
1798
1799 2014-11-26  Ilya Enkovich  <ilya.enkovich@intel.com>
1800
1801         PR bootstrap/63995
1802         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
1803         debug statement when searching for a new position for
1804         bounds load/creation statement.
1805
1806 2014-11-26  Marek Polacek  <polacek@redhat.com>
1807
1808         PR sanitizer/63788
1809         * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
1810         var.  Conditionally build BUILT_IN_OBJECT_SIZE decl.
1811         (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
1812
1813 2014-11-26  Ilya Enkovich  <ilya.enkovich@intel.com>
1814
1815         PR lto/64075
1816         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
1817         proper size for function_code bitfield.
1818         (pack_ts_function_decl_value_fields): Likewise.
1819
1820 2014-11-21  Mark Wielaard  <mjw@redhat.com>
1821
1822         * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
1823         * opts.c (common_handle_option): Accept -gdwarf-5.
1824         * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
1825         DW_LANG_C_plus_plus_14.
1826         (lower_bound_default): Likewise. Plus DW_LANG_C11.
1827         (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
1828         DW_LANG_C_plus_plus_14 or DW_LANG_C11.
1829         (output_compilation_unit_header): Output at most a DWARFv4 header.
1830         (output_skeleton_debug_sections): Likewise.
1831         (output_line_info): Likewise.
1832         (output_aranges): Document header version number.
1833
1834 2014-11-26  Richard Biener  <rguenther@suse.de>
1835
1836         * gimple-fold.c (get_symbol_constant_value): Allow all
1837         GIMPLE register type zero-constants.
1838
1839 2014-11-26  Mark Wielaard  <mjw@redhat.com>
1840
1841         * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
1842         function decl has TREE_THIS_VOLATILE.
1843
1844 2014-11-26  Richard Biener  <rguenther@suse.de>
1845
1846         PR tree-optimization/62238
1847         * tree-predcom.c (ref_at_iteration): Unshare the expression
1848         before gimplifying it.
1849         (prepare_initializers_chain): Discard unused seq.
1850
1851 2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>
1852
1853         * ira-lives.c (process_bb_node_lives): Make code with conditional
1854         REAL_PIC_OFFSET_TABLE_REGNUM.
1855
1856 2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>
1857
1858         PR target/63527
1859         * ira-lives.c (process_bb_node_lives): Check and remove conflict
1860         of pic pseudo with pic hard reg.
1861
1862 2014-11-25  Rohit  <rohitarulraj@freescale.com>
1863
1864         PR bootstrap/63703
1865         * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
1866         added GCC hard register numbers for SPE high registers.
1867
1868 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
1869
1870         * bt-load.c (migrate_btr_defs): Get the key of a heap entry
1871         before removing it, not after.
1872
1873 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
1874
1875         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
1876         PATTERN call.
1877
1878 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
1879
1880         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
1881         of addic.
1882
1883 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
1884
1885         * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
1886         (rest of file): Replace those with code resp. CODE.
1887
1888 2014-11-25  Tom de Vries  <tom@codesourcery.com>
1889
1890         * tree-cfg.c (verify_sese): New function.
1891         (move_sese_region_to_fn): Call verify_sese.
1892         * tree-cfg.h (verify_sese): Declare.
1893
1894 2014-11-25  Richard Biener  <rguenther@suse.de>
1895
1896         PR lto/64065
1897         * lto-streamer-out.c (output_struct_function_base): Stream
1898         last_clique field.
1899         * lto-streamer-in.c (input_struct_function_base): Likewise.
1900
1901 2014-11-25  Martin Liska  <mliska@suse.cz>
1902
1903         PR bootstrap/64050
1904         PR ipa/64060
1905         * sreal.c (sreal::operator+): Addition fixed.
1906         (sreal::signedless_plus): Negative numbers are
1907         handled correctly.
1908         (sreal::operator-): Subtraction is fixed.
1909         (sreal::signedless_minus): Negative numbers are
1910         handled correctly.
1911         * sreal.h (sreal::operator<): Equal negative numbers
1912         are compared correctly.
1913         (sreal::shift): New checking asserts are introduced.
1914         Operation is fixed.
1915
1916 2014-11-25  Richard Biener  <rguenther@suse.de>
1917
1918         PR tree-optimization/61927
1919         * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
1920         of group and pattern analysis to the one in GCC 4.8.
1921
1922 2014-11-25  Ilya Tocar  <ilya.tocar@intel.com>
1923             Jakub Jelinek  <jakub@redhat.com>
1924
1925         * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
1926         strlen, strncpy.
1927         * lto-wrapper.c (append_offload_options): Likewise.
1928
1929 2014-11-25  Eric Botcazou  <ebotcazou@adacore.com>
1930
1931         * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
1932         load the static chain if the call was originally direct.
1933
1934 2014-11-25  Jan Hubicka  <hubicka@ucw.cz>
1935
1936         PR ipa/64059
1937         * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
1938         devirtualization is disabled.
1939
1940 2014-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1941
1942         PR target/63965
1943         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
1944         Altivec & -16 mask if the type is not valid for Altivec registers.
1945         (rs6000_secondary_reload_memory): Add support for ((reg + const) +
1946         reg) that occurs during push_reload processing.
1947
1948         * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
1949         alternative for moving constant vectors which are easy altivec
1950         constants to GPRs.  Set the length attribute each of the
1951         alternatives.
1952
1953         * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
1954         work in progress patch was committed instead of the fixes for
1955         63965.
1956         * config/rs6000/rs6000.c: Likewise.
1957
1958 2014-11-22  Jan Hubicka  <hubicka@ucw.cz>
1959
1960         PR ipa/63671
1961         * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
1962         and -fno-devirtualize more carefully.
1963         (can_remove_node_now_p): Update.
1964
1965 2014-11-24  Andrew Pinski  <apinski@cavium.com>
1966
1967         PR rtl-opt/63972
1968         * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
1969
1970 2014-11-24  Alan Lawrence  <alan.lawrence@arm.com>
1971
1972         * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
1973
1974 2014-11-24  Alan Lawrence  <alan.lawrence@arm.com>
1975
1976         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
1977         Refactor by combining switch statements and make arrays into scalars.
1978
1979 2014-11-24  David Edelsohn  <dje.gcc@gmail.com>
1980
1981         PR c++/58561
1982         * dbxout.c: Include stringpool.h
1983         (dbxout_type) [default]: Ignore auto type.
1984
1985 2014-11-24  Richard Biener  <rguenther@suse.de>
1986
1987         PR tree-optimization/63679
1988         * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
1989         (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
1990         to properly leave off at -1.
1991         (fully_constant_vn_reference_p): Generalize folding from
1992         constant initializers.
1993         (vn_reference_lookup_3): When looking through aggregate copies
1994         handle offsetted reads and try simplifying the result to
1995         a constant.
1996         * gimple-fold.h (fold_ctor_reference): Export.
1997         * gimple-fold.c (fold_ctor_reference): Likewise.
1998
1999 2014-11-24  Petr Murzin  <petr.murzin@intel.com>
2000
2001         * simplify-rtx.c (simplify_ternary_operation): Simplify
2002         vec_merge (vec_duplicate (vec_select)).
2003
2004 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2005
2006         * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
2007         (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
2008         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
2009
2010 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2011
2012         * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
2013         (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
2014         (cortexa57_tunings): Likewise.
2015         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
2016
2017 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2018
2019         * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
2020         in the not conditional jump case.
2021         * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
2022         * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
2023
2024 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2025
2026         * config/aarch64/aarch64.c: Include tm-constrs.h
2027         (AARCH64_FUSE_ADRP_ADD): Define.
2028         (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
2029         (cortexa53_tunings): Likewise.
2030         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
2031
2032 2014-11-24  Martin Liska  <mliska@suse.cz>
2033
2034         * ipa-inline.c (edge_badness): long is replaced by sreal
2035         as fibonacci_heap template type.
2036         (update_edge_key): Likewise.
2037         (inline_small_functions): Likewise.
2038
2039 2014-11-24  Martin Liska  <mliska@suse.cz>
2040
2041         * predict.c (propagate_freq): More elegant sreal API is used.
2042         (estimate_bb_frequencies): Precomputed constants replaced by integer
2043         constants.
2044         * sreal.c (sreal::normalize): New function.
2045         (sreal::to_int): Likewise.
2046         (sreal::operator+): Likewise.
2047         (sreal::operator-): Likewise.
2048         (sreal::signedless_plus): Likewise.
2049         (sreal::signedless_minus): Likewise.
2050         (sreal::operator/): Negative number support is added.
2051         * sreal.h: Definition of new functions added.
2052         (inline sreal operator<<): New function.
2053         (inline sreal operator>>): Likewise.
2054
2055 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2056
2057         * config/aarch64/aarch64-protos.h (struct tune_params): Add
2058         fuseable_ops field.
2059         * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
2060         (cortexa53_tunings): Likewise.
2061         (cortexa57_tunings): Likewise.
2062         (thunderx_tunings): Likewise.
2063         (aarch64_macro_fusion_p): New function.
2064         (aarch_macro_fusion_pair_p): Likewise.
2065         (TARGET_SCHED_MACRO_FUSION_P): Define.
2066         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
2067         (AARCH64_FUSE_MOV_MOVK): Likewise.
2068         (AARCH64_FUSE_NOTHING): Likewise.
2069
2070 2014-11-24  Martin Liska  <mliska@suse.cz>
2071
2072         PR lto/63968
2073         * bb-reorder.c (find_traces_1_round): decreate_key is replaced
2074         with replace_key method.
2075         * fibonacci_heap.h (fibonacci_heap::insert): New argument.
2076         (fibonacci_heap::replace_key_data): Likewise.
2077         (fibonacci_heap::replace_key): New method that can even increment key,
2078         this operation costs O(log N).
2079         (fibonacci_heap::extract_min): New argument.
2080         (fibonacci_heap::delete_node): Likewise.
2081
2082 2014-11-24  Richard Biener  <rguenther@suse.de>
2083
2084         PR tree-optimization/55334
2085         * function.h (struct function): Add last_clique member.
2086         * tree-inline.c (remap_dependence_clique): New function.
2087         (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
2088         (copy_tree_body_r): Likewise.
2089         (copy_cfg_body): Free dependence map.
2090         (copy_gimple_seq_and_replace_locals): Likewise.
2091         * tree-pretty-print.c (dump_generic_node): Dump
2092         dependence info.
2093         * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
2094         to answer alias query.
2095         * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
2096         tree-pretty-print.h and gimple-walk.h.
2097         (struct variable_info): Add is_restrict_var flag and ruid
2098         member.
2099         (new_var_info): Initialize is_restrict_var.
2100         (make_constraint_from_restrict): Likewise.
2101         (create_variable_info_for): Exclude restricts from global vars
2102         from new handling.
2103         (intra_create_variable_infos): But not those from parameters.
2104         (visit_loadstore): New function.
2105         (maybe_set_dependence_info): Likewise.
2106         (compute_dependence_clique): Likewise.
2107         (compute_may_aliases): Call compute_dependence_clique.
2108         * tree-data-ref.c (dr_analyze_indices): Copy dependence info
2109         to fake MEM_REF.
2110         (dr_may_alias_p): Use recorded dependence info to answer
2111         alias query.
2112         * tree-core.h (struct tree_base): Add clique, base struct in
2113         union.
2114         * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
2115         (MR_DEPENDENCE_BASE): Likewise.
2116         * tree-inline.h (dependence_hasher): New hash-map kind.
2117         (struct copy_body_data): Add dependence_map pointer.
2118         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
2119         throwing away dependence info.
2120         * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
2121         * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
2122
2123 2014-11-23  Oleg Endo  <olegendo@gcc.gnu.org>
2124
2125         PR target/53976
2126         * config/sh/sh_optimize_sett_clrt.cc
2127         (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
2128         of void.  Abort at complex edges.
2129         (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
2130         returned false.
2131
2132 2014-11-22  John David Anglin  <danglin@gcc.gnu.org>
2133
2134         PR other/63694
2135         * configure.ac: Check for strtol, strtoul, strtoll and strtoull
2136         declarations.
2137         * configure: Regenerated.
2138         * config.in: Regenerated.
2139
2140 2014-11-22  Jan Hubicka  <hubicka@ucw.cz>
2141
2142         * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
2143         clones as having abstract origin used.
2144         * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
2145         origin check.
2146         (clone_inlined_nodes): Copy abstract originflag.
2147         * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
2148         abstract origin node.
2149
2150 2014-11-22  Uros Bizjak  <ubizjak@gmail.com>
2151
2152         * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
2153         * config/i386/i386.c (ix86_option_override_internal): Do not increase
2154         PARAM_MAX_COMPLETELY_PEELED_INSNS.
2155
2156 2014-11-22  Oleg Endo  <olegendo@gcc.gnu.org>
2157
2158         PR target/63783
2159         PR target/51244
2160         * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
2161         Do not emit bitwise not insn.  Emit logical not insn sequence instead.
2162         Adjust related comments throughout the file.
2163
2164 2014-11-22  Oleg Endo  <olegendo@gcc.gnu.org>
2165
2166         PR target/63986
2167         PR target/51244
2168         * config/sh/sh.c (sh_is_logical_t_store_expr,
2169         sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
2170         (sh_split_movrt_negc_to_movt_xor): New function.
2171         (sh_find_set_of_reg): Move to ...
2172         * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
2173         to template function.
2174         (set_of_reg): Use rtx_insn* for insn member.
2175         (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
2176         rtx_insn* for insn argument.
2177         * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
2178         sequence using new sh_split_movrt_negc_to_movt_xor function.
2179         (movrt_xor): Allow also for SH2A.
2180         (*movt_movrt): Delete insns and splits.
2181
2182 2014-11-22  Marc Glisse  <marc.glisse@inria.fr>
2183
2184         PR tree-optimization/60770
2185         * tree-sra.c (clobber_subtree): New function.
2186         (sra_modify_constructor_assign): Call it.
2187
2188 2014-11-21  Vladimir Makarov  <vmakarov@redhat.com>
2189
2190         PR target/63897
2191         * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
2192         argument.
2193         (process_bb_lives): Rename dead_insn_p on remove_p
2194         and global_live_info_p on dead_insn_p.  Calculate local live info
2195         unconditionally.  Remove last argument in calls mark_regno_live and
2196         mark_regno_dead.  Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
2197         (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
2198         Return bool.  Rename global_live_info_p on dead_insn_p.  Return
2199         flag of live info change.
2200         (lra_create_live_ranges): New.
2201
2202 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
2203
2204         PR target/63848
2205         PR target/63975
2206         * internal-fn.c (expand_arith_overflow_result_store,
2207         expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
2208         do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
2209         adjust arguments to those functions.  Use unsignedp = true for
2210         EQ, NE, GEU, LEU, LTU and GTU comparisons.
2211
2212         PR tree-optimization/64006
2213         * tree-vrp.c (stmt_interesting_for_vrp): Return true
2214         for {ADD,SUB,MUL}_OVERFLOW internal calls.
2215         (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
2216         internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
2217         immediate uses would change their value ranges and return
2218         SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
2219         if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
2220         interesting for vrp.
2221
2222 2014-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2223
2224         PR target/63965
2225         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
2226         Altivec & -16 mask if the type is not valid for Altivec registers.
2227         (rs6000_secondary_reload_memory): Add support for ((reg + const) +
2228         reg) that occurs during push_reload processing.
2229
2230         * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
2231         alternative for moving constant vectors which are easy altivec
2232         constants to GPRs.  Set the length attribute each of the
2233         alternatives.
2234
2235 2014-11-21  Matthew Fortune  <matthew.fortune@imgtec.com>
2236
2237         * configure.ac: When checking for MIPS .module support ensure that
2238         o32 FPXX is supported to avoid a second configure check.
2239         * configure: Regenerate.
2240
2241 2014-11-21  Jiong Wang  <jiong.wang@arm.com>
2242
2243         * config/aarch64/iterators.md (VS): New mode iterator.
2244         (vsi2qi): New mode attribute.
2245         (VSI2QI): Likewise.
2246         * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
2247         * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
2248         * config/aarch64/aarch64-builtins.c
2249         (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
2250
2251 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
2252
2253         PR bootstrap/63784
2254         * configure: Regenerated.
2255
2256 2014-11-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2257
2258         * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
2259
2260 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
2261
2262         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
2263         OPTION_MASK_ISA_PCOMMIT_SET): New.
2264         (ix86_handle_option): Handle OPT_mpcommit.
2265         * config.gcc: Add pcommitintrin.h
2266         * config/i386/pcommitintrin.h: New file.
2267         * config/i386/cpuid.h (bit_PCOMMIT): Define.
2268         * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
2269         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2270         __PCOMMIT__.
2271         * config/i386/i386.c (ix86_target_string): Add -mpcommit.
2272         (PTA_PCOMMIT): Define.
2273         (ix86_option_override_internal): Handle new option.
2274         (ix86_valid_target_attribute_inner_p): Add pcommit.
2275         (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
2276         (bdesc_special_args): Add __builtin_ia32_pcommit.
2277         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
2278         * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
2279         (pcommit): New instruction.
2280         * config/i386/i386.opt: Add mpcommit.
2281         * config/i386/x86intrin.h: Include pcommitintrin.h.
2282
2283 2014-11-20  Mark Wielaard  <mjw@redhat.com>
2284
2285         PR debug/38757
2286         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
2287         * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
2288         (darwin_override_options): Likewise.
2289         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
2290         Likewise.
2291         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2292         Likewise.
2293         * dbxout.c (get_lang_number): Likewise.
2294         (dbxout_type): Likewise.
2295         (dbxout_symbol_location): Likewise.
2296         * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
2297         also for DW_LANG_{C,C99,ObjC}.
2298         (highest_c_language): New function.
2299         (gen_compile_unit_die): Call highest_c_language to merge LTO
2300         TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
2301         determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
2302         * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
2303         * langhooks.h (struct lang_hooks): Add version comment to name.
2304         (lang_GNU_C): New function declaration.
2305         (lang_GNU_CXX): Likewise.
2306         * langhooks.c (lang_GNU_C): New function.
2307         (lang_GNU_CXX): Likewise.
2308         * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
2309
2310 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
2311
2312         * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
2313         OPTION_MASK_ISA_CLWB_SET): New.
2314         (ix86_handle_option): Handle OPT_mclwb.
2315         * config.gcc: Add clwbintrin.h.
2316         * config/i386/clwbintrin.h: New file.
2317         * config/i386/cpuid.h (bit_CLWB): Define.
2318         * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
2319         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2320         __CLWB__.
2321         * config/i386/i386.c (ix86_target_string): Add -mclwb.
2322         (PTA_CLWB): Define.
2323         (ix86_option_override_internal): Handle new option.
2324         (ix86_valid_target_attribute_inner_p): Add clwb.
2325         (ix86_builtins): Add IX86_BUILTIN_CLWB.
2326         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
2327         (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
2328         * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
2329         * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
2330         (clwb): New instruction.
2331         * config/i386/i386.opt: Add mclwb.
2332         * config/i386/x86intrin.h: Include clwbintrin.h.
2333
2334 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
2335
2336         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
2337         OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
2338         (ix86_handle_option): Handle OPT_mavx512vbmi.
2339         * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
2340         * config/i386/avx512vbmiintrin.h: New file.
2341         * config/i386/avx512vbmivlintrin.h: Ditto.
2342         * config/i386/cpuid.h (bit_AVX512VBMI): New.
2343         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
2344         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2345         __AVX512VBMI__.
2346         * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
2347         (PTA_AVX512VBMI): Define.
2348         (ix86_option_override_internal): Handle new options.
2349         (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
2350         (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
2351         IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
2352         IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
2353         IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
2354         IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
2355         IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
2356         IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
2357         IX86_BUILTIN_VPERMI2VARQI128.
2358         (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
2359         __builtin_ia32_vpmultishiftqb256_mask,
2360         __builtin_ia32_vpmultishiftqb128_mask,
2361         __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
2362         __builtin_ia32_vpermt2varqi512_maskz,
2363         __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
2364         __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
2365         __builtin_ia32_vpermt2varqi256_maskz,
2366         __builtin_ia32_vpermt2varqi128_mask,
2367         __builtin_ia32_vpermt2varqi128_maskz,
2368         __builtin_ia32_vpermi2varqi256_mask,
2369         __builtin_ia32_vpermi2varqi128_mask.
2370         (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
2371         * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
2372         * config/i386/i386.opt: Add mavx512vbmi.
2373         * config/i386/immintrin.h: Include avx512vbmiintrin.h,
2374         avx512vbmivlintrin.h.
2375         * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
2376         (VI1_AVX512VL): New iterator.
2377         (<avx512>_permvar<mode><mask_name>): Use it.
2378         (<avx512>_vpermi2var<mode>3_maskz): Ditto.
2379         (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
2380         (<avx512>_vpermi2var<mode>3_mask): Ditto.
2381         (<avx512>_vpermt2var<mode>3_maskz): Ditto.
2382         (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
2383         (<avx512>_vpermt2var<mode>3_mask): Ditto.
2384         (vpmultishiftqb<mode><mask_name>): Ditto.
2385
2386 2014-11-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2387
2388         PR rtl-optimization/63952
2389         * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
2390         * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
2391         Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
2392
2393 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
2394
2395         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
2396         OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
2397         (ix86_handle_option): Handle OPT_mavx512ifma.
2398         * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
2399         * config/i386/avx512ifmaintrin.h: New file.
2400         * config/i386/avx512ifmaivlntrin.h: Ditto.
2401         * config/i386/cpuid.h (bit_AVX512IFMA): New.
2402         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2403         avx512ifma.
2404         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2405         __AVX512IFMA__.
2406         * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
2407         (PTA_AVX512IFMA): Define.
2408         (ix86_option_override_internal): Handle new options.
2409         (ix86_valid_target_attribute_inner_p): Add avx512ifma.
2410         (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
2411         IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
2412         IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
2413         IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
2414         IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
2415         IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
2416         IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
2417         (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
2418         __builtin_ia32_vpmadd52luq512_maskz,
2419         __builtin_ia32_vpmadd52huq512_mask,
2420         __builtin_ia32_vpmadd52huq512_maskx,
2421         __builtin_ia32_vpmadd52luq256_mask,
2422         __builtin_ia32_vpmadd52luq256_maskz,
2423         __builtin_ia32_vpmadd52huq256_mask,
2424         __builtin_ia32_vpmadd52huq256_maskz,
2425         __builtin_ia32_vpmadd52luq128_mask,
2426         __builtin_ia32_vpmadd52luq128_maskz,
2427         __builtin_ia32_vpmadd52huq128_mask,
2428         __builtin_ia32_vpmadd52huq128_maskz,
2429         * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
2430         * config/i386/i386.opt: Add mavx512ifma.
2431         * config/i386/immintrin.h: Include avx512ifmaintrin.h,
2432         avx512ifmavlintrin.h.
2433         * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
2434         UNSPEC_VPMADD52HUQ.
2435         (VPMADD52): New iterator.
2436         (vpmadd52type): New attribute.
2437         (vpamdd52huq<mode>_maskz): New.
2438         (vpamdd52luq<mode>_maskz): Ditto.
2439         (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
2440         (vpamdd52<vpmadd52type><mode>_mask): Ditto.
2441
2442 2014-11-21  Alan Lawrence  <alan.lawrence@arm.com>
2443
2444         Revert:
2445         2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
2446         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
2447
2448 2014-11-21  Andrew Bennett  <andrew.bennett@imgtec.com>
2449
2450         * config/mips/mips.c (mips_process_sync_loop): Place a 
2451         nop in the delay slot of the branch likely instruction.
2452         (mips_output_sync_loop): Ensure mips_branch_likely is 
2453         set before calling mips_output_sync_loop.
2454         (mips_sync_loop_insns): Likewise.
2455
2456 2014-11-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2457
2458         PR/target 63673
2459         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
2460         the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
2461         double.
2462
2463 2014-11-21  Georg-Johann Lay  <avr@gjlay.de>
2464
2465         Forward-port from 2014-10-30 4_9-branch r216934
2466
2467         PR target/63633
2468         * config/avr/avr-protos.h (regmask): New inline function.
2469         (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
2470         * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
2471         (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
2472         * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
2473         (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
2474         (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
2475         * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
2476         (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
2477         (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
2478         * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
2479         (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
2480         (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
2481         (fmul, fmuls, fmulsu): Fix operands.  Turn insn into expander as
2482         needed.
2483
2484 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
2485
2486         PR target/61137
2487         * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
2488         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
2489
2490 2014-11-21  James Greenhalgh  <james.greenhalgh@arm.com>
2491
2492         * config/aarch64/aarch64-simd.md
2493         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
2494         output mnemonic and operands.
2495         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
2496         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
2497
2498 2014-11-21  Evgeny Stupachenko  <evstupac@gmail.com>
2499
2500         * config/i386/i386.c (ix86_option_override_internal): Increase
2501         PARAM_MAX_COMPLETELY_PEELED_INSNS.
2502
2503 2014-11-21  Evgeny Stupachenko  <evstupac@gmail.com>
2504
2505         PR target/60451
2506         * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
2507         (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
2508         replace for V16QI, V16HI and V32QI modes.
2509         (ix86_expand_vec_perm_const_1): Add new expand.
2510
2511 2014-11-21  Nick Clifton  <nickc@redhat.com>
2512
2513         * config/rl78/rl78-real.md (movqi_from_es): New pattern.
2514         * config/rl78/rl78.c (struct machine_function): Add uses_es field.
2515         (rl78_expand_prologue): Save the ES register in interrupt handlers
2516         that use it.
2517         (rl78_expand_epilogue): Restore the ES register if necessary.
2518         (rl78_start_function): Mention if the function uses the ES
2519         register.
2520         (rl78_lo16): Record the use of the ES register.
2521         (transcode_memory_rtx): Likewise.
2522
2523 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
2524
2525         PR tree-optimization/61773
2526         * tree-ssa-strlen.c (get_string_length): Don't assert
2527         stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
2528
2529         PR target/63910
2530         * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
2531         modes wider than MAX_BITSIZE_MODE_ANY_INT.  If not using
2532         CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
2533
2534 2014-11-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
2535
2536         * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
2537         HOST_WIDE_INT_M1U instead of ~0.
2538         (includes_rldicr_lshift_p): Likewise.
2539
2540 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
2541
2542         * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
2543         we need to look into its operand to determine if it is a valid
2544         address.
2545
2546 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
2547
2548         * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
2549         vaarg_p argument and create correct CFI info.
2550         (nds32_expand_prologue): Pass true or false to
2551         nds32_emit_stack_push_multiple function.
2552
2553 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
2554
2555         * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
2556         as RTX_FRAME_RELATED_P rtx.
2557
2558 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
2559
2560         * config/nds32/nds32.opt (march): Add help message.
2561
2562 2014-11-20  Patrick Palka  <ppalka@gcc.gnu.org>
2563
2564         * tree-vrp.c (test_for_singularity): New parameter
2565         strict_overflow_p.  Set *strict_overflow_p to true if signed
2566         overflow must be undefined for the return value to satisfy the
2567         conditional.
2568         (simplify_cond_using_ranges): Don't perform the simplification
2569         if it violates overflow rules.
2570
2571 2014-11-20  Marek Polacek  <polacek@redhat.com>
2572
2573         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
2574
2575 2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
2576
2577         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
2578         condition would be removed due to undefined behaviour.
2579
2580 2014-11-20  Andrew Pinski  <apinski@cavium.com>
2581
2582         PR ipa/63981
2583         PR ipa/63982
2584         * ipa-polymorphic-call.c (possible_placement_new):
2585         Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
2586         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
2587         (extr_type_from_vtbl_ptr_store): Likewise.
2588
2589 2014-11-20  Markus Trippelsdorf  <markus@trippelsdorf.de>
2590
2591         * config/rs6000/constraints.md: Avoid signed integer overflows.
2592         * config/rs6000/predicates.md: Likewise.
2593         * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
2594         (includes_rldic_lshift_p): Likewise.
2595         (includes_rldicr_lshift_p): Likewise. 
2596         * emit-rtl.c (const_wide_int_htab_hash): Likewise.
2597         * loop-iv.c (determine_max_iter): Likewise.
2598         (iv_number_of_iterations): Likewise.
2599         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
2600         * varasm.c (get_section_anchor): Likewise.
2601
2602 2014-11-20  Charles Baylis  <charles.baylis@linaro.org>
2603
2604         PR target/63870
2605         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
2606         expression to aarch64_simd_lane_bounds.
2607         * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
2608         prototype.
2609         * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
2610         call to aarch64_simd_lane_bounds.
2611         (aarch64_get_lanedi): Likewise.
2612         (aarch64_ld2_lane<mode>): Likewise.
2613         (aarch64_ld3_lane<mode>): Likewise.
2614         (aarch64_ld4_lane<mode>): Likewise.
2615         (aarch64_im_lane_boundsi): Likewise.
2616         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
2617         parameter. Report calling function in error message if exp is non-NULL.
2618
2619 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
2620
2621         PR target/60111
2622         * config/sh/sh.c: Use signed char for signed field.
2623
2624 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2625
2626         * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
2627         hash_table.
2628
2629 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2630
2631         * ipa-utils.c, lto-section-in.c, lto-streamer.h,
2632         tree-scalar-evolution.c: Replace htab with hash_table.
2633
2634 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2635
2636         * lto-section-in.c (lto_delete_in_decl_state): Adjust.
2637         (lto_free_function_in_decl_state): Likewise.
2638         * lto-streamer-out.c (copy_function_or_variable): Likewise.
2639         * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
2640         (lto_file_decl_data_num_ ## name ## s): Likewise.
2641         (struct lto_tree_ref_table): Remove.
2642         (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
2643
2644 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2645
2646         * hash-map.h (hash_map::iterator): New class.
2647         (hash_map::begin): New method.
2648         (hash_map::end): Likewise.
2649         * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
2650         replace splay_tree with hash_map.
2651
2652 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2653
2654         * hash-table.h (hash_table::hash_table): Call alloc_entries.
2655         (hash_table::alloc_entries): new method.
2656         (hash_table::expand): Call alloc_entries.
2657         (hash_table::empty): Likewise.
2658
2659 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2660
2661         * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
2662         tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
2663
2664 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2665
2666         * doc/gty.texi: Document the new cache gty attribute.
2667         * gengtype.c (finish_cache_funcs): New function.
2668         (write_roots): Call gt_clear_cache on global variables with the cache
2669         gty attribute.
2670         * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
2671         * ggc.h (gt_clear_caches): New declaration.
2672         * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
2673         memory.
2674         (gt_cleare_cache): New function.
2675         * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
2676
2677 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
2678
2679         * combine.c (try_combine): Prefer to delete dead SETs inside
2680         a PARALLEL over keeping them.
2681
2682 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
2683
2684         * combine.c (combine_validate_cost): Always print the insn costs
2685         to the dump file.
2686
2687 2014-11-20  Richard Henderson <rth@redhat.com>
2688
2689         PR target/63977
2690         * config/i386/i386.c (ix86_static_chain): Reinstate the check
2691         for DECL_STATIC_CHAIN.
2692
2693 2014-11-20  Tejas Belagod  <tejas.belagod@arm.com>
2694
2695         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
2696         Fixup prototype.
2697         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
2698         aarch64_cannot_force_const_mem, aarch64_classify_address,
2699         aarch64_classify_symbolic_expression): Fixup call to
2700         aarch64_classify_symbol.
2701         (aarch64_classify_symbol): Add range-checking for
2702         symbol + offset addressing for tiny and small models.
2703
2704 2014-11-20  Richard Biener  <rguenther@suse.de>
2705
2706         PR middle-end/63962
2707         * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
2708         Guard with single-use operand 0.
2709
2710 2014-11-20   Richard Biener  <rguenther@suse.de>
2711
2712         PR tree-optimization/63677
2713         * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
2714         (avail_exprs_stack): Make a vector of pairs.
2715         (struct hash_expr_elt): Replace stmt member with vop member.
2716         (expr_elt_hasher::equal): Simplify.
2717         (initialize_hash_element): Adjust.
2718         (initialize_hash_element_from_expr): Likewise.
2719         (dom_opt_dom_walker::thread_across_edge): Likewise.
2720         (record_cond): Likewise.
2721         (dom_opt_dom_walker::before_dom_children): Likewise.
2722         (print_expr_hash_elt): Likewise.
2723         (remove_local_expressions_from_table): Restore previous state
2724         if requested.
2725         (record_equivalences_from_stmt): Record &x + CST as constant
2726         &MEM[&x, CST] for further propagation.
2727         (vuse_eq): New function.
2728         (lookup_avail_expr): For loads use the alias oracle to see
2729         whether a candidate from the expr hash is usable.
2730         (avail_expr_hash): Do not hash VUSEs.
2731
2732 2014-11-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2733
2734         PR target/59593
2735         * config/arm/arm.md (*movhi_insn): Use right formatting
2736         for immediate.
2737
2738 2014-11-20  Igor Zamyatin  <igor.zamyatin@intel.com>
2739
2740         PR sanitizer/63845
2741         * function.c (assign_parms): Move init of pic_offset_table_rtx
2742         from here to...
2743         * cfgexpand.c (expand_used_vars): ...here.
2744
2745 2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
2746
2747         * tree.c (free_lang_data_in_type): If BINFO has no important
2748         information in it, set it to NULL.
2749         (get_binfo_at_offset): Do not walk fields, only bases.
2750         * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
2751         to be NULL.
2752         * ipa-polymorphic-call.c (record_known_type): Likewise.
2753
2754 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2755
2756         PR jit/63854
2757         * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
2758         congruence_class_group *.
2759
2760 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
2761
2762         PR target/63947
2763         * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
2764         Output "b" and "nb" suffix for FP mode.
2765
2766 2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
2767
2768         PR bootstrap/63963
2769         * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream out
2770         DECL_FUNCTION_SPECIFIC_TARGET
2771         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream in
2772         DECL_FUNCTION_SPECIFIC_TARGET.
2773
2774 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2775
2776         PR jit/63854
2777         * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
2778
2779 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2780
2781         PR jit/63854
2782         * lra.c (lra): After creating live ranges in preparation for call
2783         to lra_inheritance, set live_p to true.
2784
2785 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2786
2787         PR jit/63854
2788         * tree-ssa-threadedge.c (thread_across_edge): Don't just release
2789         "path", delete it.
2790         * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
2791
2792 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2793
2794         PR jit/63854
2795         * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
2796         vec<> to auto_vec<> to fix a leak.
2797
2798 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2799
2800         PR jit/63854
2801         * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
2802
2803 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2804
2805         PR jit/63854
2806         * ira-costs.c (ira_costs_c_finalize): New function.
2807         * ira.h (ira_costs_c_finalize): New prototype.
2808         * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
2809
2810 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2811
2812         PR jit/63854
2813         * ipa-reference.c (ipa_reference_c_finalize): Release
2814         optimization_summary_obstack.
2815
2816 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2817
2818         PR jit/63854
2819         * toplev.c (toplev::finalize): Free opts_obstack.
2820
2821 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2822
2823         PR jit/63854
2824         * toplev.c (toplev::finalize): Clean up save_decoded_options.
2825
2826 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2827
2828         PR jit/63854
2829         * bb-reorder.c
2830         (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
2831         local bbs_in_hot_partition from vec<> to auto_vec<>.
2832
2833 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2834
2835         PR jit/63854
2836         * config/alpha/alpha.c (alpha_option_override): Remove static from
2837         "handle_trap_shadows_info" and "align_insns_info".
2838         * config/i386/i386.c (ix86_option_override): Likewise for
2839         "insert_vzeroupper_info".
2840         * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
2841         "rl78_devirt_info" and "rl78_move_elim_info".
2842         * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
2843         "analyze_swaps_info".
2844         * context.c (gcc::context::~context): New.
2845         * context.h (gcc::context::~context): New.
2846         * dumpfile.c (dump_files): Add "false" initializers for new field
2847         "owns_strings".
2848         (gcc::dump_manager::~dump_manager): New.
2849         (gcc::dump_manager::dump_register): Add param "take_ownership".
2850         * dumpfile.h (struct dump_file_info): Add field "owns_strings".
2851         (gcc::dump_manager::~dump_manager): New.
2852         (gcc::dump_manager::dump_register): Add param "take_ownership".
2853         * pass_manager.h (gcc::pass_manager::operator delete): New.
2854         (gcc::pass_manager::~pass_manager): New.
2855         * passes.c (pass_manager::register_one_dump_file): Pass "true" to
2856         new "owns_strings" argument to dump_register.
2857         (pass_manager::operator delete): New.
2858         (delete_pass_tree): New function.
2859         (pass_manager::~pass_manager): New.
2860         * statistics.c (statistics_early_init): Pass "false" to
2861         new "owns_strings" argument to dump_register.
2862         * toplev.c (toplev::finalize): Clean up the context and thus the
2863         things it owns.
2864
2865 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2866
2867         PR jit/63854
2868         * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
2869         obstack_free when cleaning up valid_mode_changes_obstack.
2870
2871 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2872
2873         PR jit/63854
2874         * opts.c (finalize_options_struct): New.
2875         * opts.h (finalize_options_struct): New.
2876         * toplev.c (toplev::finalize): Call finalize_options_struct
2877         on global_options and global_options_set.
2878
2879 2014-11-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2880             Jakub Jelinek  <jakub@redhat.com>
2881
2882         PR driver/36312
2883         PR driver/63837
2884         * gcc.c (process_command): Don't check for input/output
2885         filename equality if output is HOST_BIT_BUCKET.
2886         * toplev.c (init_asm_output): Likewise.
2887
2888 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2889
2890         Merger of git branch "gimple-classes-v2-option-3".
2891
2892         * ChangeLog.gimple-classes: New.
2893
2894         * coretypes.h (struct gcond): Add forward decl.
2895         (struct gdebug): Likewise.
2896         (struct ggoto): Likewise.
2897         (struct glabel): Likewise.
2898         (struct gswitch): Likewise.
2899         (struct gassign): Likewise.
2900         (struct gasm): Likewise.
2901         (struct gcall): Likewise.
2902         (struct gtransaction): Likewise.
2903         (struct greturn): Likewise.
2904         (struct gbind): Likewise.
2905         (struct gcatch): Likewise.
2906         (struct geh_filter): Likewise.
2907         (struct geh_mnt): Likewise.
2908         (struct geh_else): Likewise.
2909         (struct gresx): Likewise.
2910         (struct geh_dispatch): Likewise.
2911         (struct gphi): Likewise.
2912         (struct gtry): Likewise.
2913         (struct gomp_atomic_load): Likewise.
2914         (struct gomp_atomic_store): Likewise.
2915         (struct gomp_continue): Likewise.
2916         (struct gomp_critical): Likewise.
2917         (struct gomp_for): Likewise.
2918         (struct gomp_parallel): Likewise.
2919         (struct gomp_task): Likewise.
2920         (struct gomp_sections): Likewise.
2921         (struct gomp_single): Likewise.
2922         (struct gomp_target): Likewise.
2923         (struct gomp_teams): Likewise.
2924
2925         * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
2926         for renaming of gimple subclasses.
2927
2928         * gdbhooks.py: Update.
2929
2930         * gimple-iterator.c (gsi_for_phi): New.
2931         (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
2932         to gphi_iterator.
2933         * gimple-iterator.h (struct gphi_iterator): New subclass of
2934         gimple_stmt_iterator.
2935         (gsi_for_phi): New prototype.
2936         (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
2937         to gphi_iterator.
2938         (gsi_next_nonvirtual_phi): Strengthen param from
2939         gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
2940         gimple to gphi *.
2941
2942         * gsstruct.def: Update for renamings of classes.
2943
2944         * gimple.c (gimple_build_return): Strengthen return type from
2945         gimple to greturn *.
2946         (gimple_call_reset_alias_info): Strengthen param to gcall *.
2947         (gimple_build_call_1): Strengthen return type from gimple to
2948         gcall *.
2949         (gimple_build_call_vec): Likewise.
2950         (gimple_build_call): Likewise.
2951         (gimple_build_call_valist): Likewise.
2952         (gimple_build_call_internal_1): Likewise.
2953         (gimple_build_call_internal): Likewise.
2954         (gimple_build_call_internal_vec): Likewise.
2955         (gimple_build_call_from_tree): Likewise.
2956         (gimple_build_assign_stat): Strengthen return type from gimple to
2957         gassign *.
2958         (gimple_build_assign_with_ops): Likewise.
2959         (gimple_build_assign_with_ops): Likewise.
2960         (gimple_build_cond): Strengthen return type from gimple to
2961         gcond *.
2962         (gimple_build_cond_from_tree): Likewise.
2963         (gimple_cond_set_condition_from_tree): Require a gcond *.
2964         (gimple_build_label): Strengthen return type from gimple to
2965         glabel *.
2966         (gimple_build_goto): Strengthen return type from gimple to
2967         ggoto *.
2968         (gimple_build_bind): Strengthen return type from gimple to
2969         gbind *.
2970         (gimple_build_asm_1): Strengthen return type from gimple to
2971         gasm *.
2972         (gimple_build_asm_vec): Likewise.
2973         (gimple_build_catch): Strengthen return type from gimple to
2974         gcatch *.
2975         (gimple_build_eh_filter): Strengthen return type from gimple to
2976         geh_filter *.
2977         (gimple_build_eh_must_not_throw): Strengthen return type from
2978         gimple to geh_mnt *.
2979         (gimple_build_eh_else): Strengthen return type from gimple to
2980         geh_else *.
2981         (gimple_build_try): Update for renaming of gimple_statement_try to
2982         gtry.
2983         (gimple_build_resx): Strengthen return type from gimple to
2984         gresx *.
2985         (gimple_build_switch_nlabels): Strengthen return type from gimple
2986         to gswitch *.
2987         (gimple_build_switch): Likewise.
2988         (gimple_build_eh_dispatch): Strengthen return type from gimple to
2989         geh_dispatch *.
2990         (gimple_build_debug_bind_stat): Strengthen return type from gimple
2991         to gdebug *.
2992         (gimple_build_debug_source_bind_stat): Strengthen return type from
2993         gimple to gdebug *.
2994         (gimple_build_omp_critical): Strengthen return type from gimple to
2995         gomp_critical *.
2996         (gimple_build_omp_for): Strengthen return type from gimple to
2997         gomp_for *.
2998         (gimple_build_omp_parallel): Strengthen return type from gimple to
2999         gomp_parallel *.
3000         (gimple_build_omp_task): Strengthen return type from gimple to
3001         gomp_task *.
3002         (gimple_build_omp_continue): Strengthen return type from gimple to
3003         gomp_continue *.
3004         (gimple_build_omp_sections): Strengthen return type from gimple to
3005         gomp_sections *.
3006         (gimple_build_omp_single): Strengthen return type from gimple to
3007         gomp_single *.
3008         (gimple_build_omp_target): Strengthen return type from gimple to
3009         gomp_target *.
3010         (gimple_build_omp_teams): Strengthen return type from gimple to
3011         gomp_teams *.
3012         (gimple_build_omp_atomic_load): Strengthen return type from gimple
3013         to gomp_atomic_load *.
3014         (gimple_build_omp_atomic_store): Strengthen return type from gimple
3015         to gomp_atomic_store *.
3016         (gimple_build_transaction): Strengthen return type from gimple
3017         to gtransaction *.
3018         (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
3019         (gimple_call_fnspec): Require a const gcall *.
3020         (gimple_call_arg_flags): Likewise.
3021         (gimple_call_return_flags): Likewise.
3022         (gimple_set_bb): Add a checked cast.
3023         (gimple_copy): Within the cases, add locals of the appropriate
3024         subclass and use in place of "stmt" and "copy" for typesafety.
3025         (gimple_has_side_effects): Add a checked cast.
3026         (gimple_could_trap_p_1): Likewise.
3027         (gimple_call_copy_skip_args): Require a gcall *, and return one.
3028         (gimple_asm_clobbers_memory_p): Require a const gasm *.
3029         (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
3030         dyn_cast, introducing local "return_stmt" and using ti in place
3031         of "stmt".
3032
3033         * gimple.h (gimple_vec): Eliminate this typedef.
3034         (struct gimple_statement_call): Rename to...
3035         (struct gcall): ...this.
3036         (struct gimple_statement_bind): Rename to...
3037         (struct gbind): ...this.
3038         (struct gimple_statement_catch): Rename to...
3039         (struct gcatch): ...this.
3040         (struct gimple_statement_eh_filter): Rename to...
3041         (struct geh_filter): ...this.
3042         (struct gimple_statement_eh_else): Rename to...
3043         (struct geh_else): ...this.
3044         (struct gimple_statement_eh_mnt): Rename to...
3045         (struct geh_mnt): ...this.
3046         (struct gimple_statement_phi): Rename to...
3047         (struct gphi): ...this.
3048         (struct gimple_statement_resx): Rename to...
3049         (struct gresx): ...this.
3050         (struct gimple_statement_eh_dispatch): Rename to...
3051         (struct geh_dispatch): ...this.
3052         (struct gimple_statement_try): Rename to...
3053         (struct gtry): ...this.
3054         (struct gimple_statement_asm): Rename to...
3055         (struct gasm): ...this.
3056         (struct gimple_statement_omp_critical): Rename to...
3057         (struct gomp_critical): ...this.
3058         (struct gimple_statement_omp_for): Rename to...
3059         (struct gomp_for): ...this.
3060         (struct gimple_statement_omp_parallel): Rename to...
3061         (struct gomp_parallel): ...this.
3062         (struct gimple_statement_omp_target): Rename to...
3063         (struct gomp_target): ...this.
3064         (struct gimple_statement_omp_task): Rename to...
3065         (struct gomp_task): ...this.
3066         (struct gimple_statement_omp_sections): Rename to...
3067         (struct gomp_sections): ...this.
3068         (struct gimple_statement_omp_continue): Rename to...
3069         (struct gomp_continue): ...this.
3070         (struct gimple_statement_omp_single): Rename to...
3071         (struct gomp_single): ...this.
3072         (struct gimple_statement_omp_teams): Rename to...
3073         (struct gomp_teams): ...this.
3074         (struct gimple_statement_omp_atomic_load): Rename to...
3075         (struct gomp_atomic_load): ...this.
3076         (struct gimple_statement_omp_atomic_store :): Rename to...
3077         (struct gomp_atomic_store :): ...this.
3078         (struct gimple_statement_transaction): Rename to...
3079         (struct gtransaction): ...this.
3080         (struct gcond): New subclass.
3081         (struct gdebug): New subclass.
3082         (struct ggoto): New subclass.
3083         (struct glabel): New subclass.
3084         (struct gswitch): New subclass.
3085         (struct gassign): New subclass.
3086         (struct greturn): New subclass.
3087         (is_a_helper <gimple_statement_asm *>::test): Rename to...
3088         (is_a_helper <gasm *>::test): ...this.
3089         (is_a_helper <gimple_statement_bind *>::test): Rename to...
3090         (is_a_helper <gbind *>::test): ...this.
3091         (is_a_helper <gassign *>::test): New.
3092         (is_a_helper <gimple_statement_call *>::test): Rename to...
3093         (is_a_helper <gcall *>::test): ...this.
3094         (is_a_helper <gimple_statement_catch *>::test): Rename to...
3095         (is_a_helper <gcatch *>::test): ...this.
3096         (is_a_helper <gimple_statement_resx *>::test): Rename to...
3097         (is_a_helper <gresx *>::test): ...this.
3098         (is_a_helper <gcond *>::test): New.
3099         (is_a_helper <gdebug *>::test): New.
3100         (is_a_helper <ggoto *>::test): New.
3101         (is_a_helper <glabel *>::test): New.
3102         (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
3103         (is_a_helper <geh_dispatch *>::test): ...this.
3104         (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
3105         (is_a_helper <geh_else *>::test): ...this.
3106         (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
3107         (is_a_helper <geh_filter *>::test): ...this.
3108         (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
3109         (is_a_helper <geh_mnt *>::test): ...this.
3110         (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
3111         (is_a_helper <gomp_atomic_load *>::test): ...this.
3112         (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
3113         (is_a_helper <gomp_atomic_store *>::test): ...this.
3114         (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
3115         (is_a_helper <gomp_continue *>::test): ...this.
3116         (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
3117         (is_a_helper <gomp_critical *>::test): ...this.
3118         (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
3119         (is_a_helper <gomp_for *>::test): ...this.
3120         (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
3121         (is_a_helper <gomp_parallel *>::test): ...this.
3122         (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
3123         (is_a_helper <gomp_target *>::test): ...this.
3124         (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
3125         (is_a_helper <gomp_sections *>::test): ...this.
3126         (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
3127         (is_a_helper <gomp_single *>::test): ...this.
3128         (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
3129         (is_a_helper <gomp_teams *>::test): ...this.
3130         (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
3131         (is_a_helper <gomp_task *>::test): ...this.
3132         (is_a_helper <gimple_statement_phi *>::test): Rename to...
3133         (is_a_helper <gphi *>::test): ...this.
3134         (is_a_helper <gimple_statement_transaction *>::test): Rename to...
3135         (is_a_helper <gtransaction *>::test): ...this.
3136         (is_a_helper <greturn *>::test): New.
3137         (is_a_helper <gswitch *>::test): New.
3138         (is_a_helper <gimple_statement_try *>::test): Rename to...
3139         (is_a_helper <gtry *>::test): ...this.
3140         (is_a_helper <const gimple_statement_asm *>::test): Rename to...
3141         (is_a_helper <const gasm *>::test): ...this.
3142         (is_a_helper <const gimple_statement_bind *>::test): Rename to...
3143         (is_a_helper <const gbind *>::test): ...this.
3144         (is_a_helper <const gimple_statement_call *>::test): Rename to...
3145         (is_a_helper <const gcall *>::test): ...this.
3146         (is_a_helper <const gimple_statement_catch *>::test): Rename to...
3147         (is_a_helper <const gcatch *>::test): ...this.
3148         (is_a_helper <const gimple_statement_resx *>::test): Rename to...
3149         (is_a_helper <const gresx *>::test): ...this.
3150         (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
3151         (is_a_helper <const geh_dispatch *>::test): ...this.
3152         (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
3153         (is_a_helper <const geh_filter *>::test): ...this.
3154         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
3155         Rename to...
3156         (is_a_helper <const gomp_atomic_load *>::test): ...this.
3157         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
3158         Rename to...
3159         (is_a_helper <const gomp_atomic_store *>::test): ...this.
3160         (is_a_helper <const gimple_statement_omp_continue *>::test):
3161         Rename to...
3162         (is_a_helper <const gomp_continue *>::test): ...this.
3163         (is_a_helper <const gimple_statement_omp_critical *>::test):
3164         Rename to...
3165         (is_a_helper <const gomp_critical *>::test): ...this.
3166         (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
3167         (is_a_helper <const gomp_for *>::test): ...this.
3168         (is_a_helper <const gimple_statement_omp_parallel *>::test):
3169         Rename to...
3170         (is_a_helper <const gomp_parallel *>::test): ...this.
3171         (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
3172         (is_a_helper <const gomp_target *>::test): ...this.
3173         (is_a_helper <const gimple_statement_omp_sections *>::test):
3174         Rename to...
3175         (is_a_helper <const gomp_sections *>::test): ...this.
3176         (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
3177         (is_a_helper <const gomp_single *>::test): ...this.
3178         (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
3179         (is_a_helper <const gomp_teams *>::test): ...this.
3180         (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
3181         (is_a_helper <const gomp_task *>::test): ...this.
3182         (is_a_helper <const gimple_statement_phi *>::test): Rename to...
3183         (is_a_helper <const gphi *>::test): ...this.
3184         (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
3185         (is_a_helper <const gtransaction *>::test): ...this.
3186         (gimple_build_return): Strengthen return type to greturn *.
3187         (gimple_call_reset_alias_info): Require a gcall *.
3188         (gimple_build_call_vec): Return a gcall *.
3189         (gimple_build_call): Likewise.
3190         (gimple_build_call_valist): Likewise.
3191         (gimple_build_call_internal): Likewise.
3192         (gimple_build_call_internal_vec): Likewise.
3193         (gimple_build_call_from_tree): Likewise.
3194         (gimple_build_assign_stat): Return a gassign *.
3195         (gimple_build_assign_with_ops): Likewise.
3196         (gimple_build_cond): Return a gcond *.
3197         (gimple_build_cond_from_tree): Likewise.
3198         (gimple_cond_set_condition_from_tree): Require a gcond *.
3199         (gimple_build_label): Return a glabel *.
3200         (gimple_build_goto): Return a ggoto *.
3201         (gimple_build_bind): Return a gbind *.
3202         (gimple_build_asm_vec): Return a gasm *.
3203         (gimple_build_catch): Return a gcatch *.
3204         (gimple_build_eh_filter): Return a geh_filter *.
3205         (gimple_build_eh_must_not_throw): Return a geh_mnt *.
3206         (gimple_build_eh_else): Return a geh_else *.
3207         (gimple_build_try): Return a gtry *.
3208         (gimple_build_resx): Return a gresx *.
3209         (gimple_build_switch_nlabels): Return a gswitch *.
3210         (gimple_build_switch): Return a gswitch *.
3211         (gimple_build_eh_dispatch): Return a geh_dispatch *.
3212         (gimple_build_debug_bind_stat): Return a gdebug *.
3213         (gimple_build_debug_source_bind_stat): Return a gdebug *.
3214         (gimple_build_omp_critical): Return a gomp_critical *.
3215         (gimple_build_omp_for): Return a gomp_for *.
3216         (gimple_build_omp_parallel): Return a gomp_parallel *.
3217         (gimple_build_omp_task): Return a gomp_task *.
3218         (gimple_build_omp_continue): Return a gomp_continue *.
3219         (gimple_build_omp_sections): Return a gomp_sections *.
3220         (gimple_build_omp_single): Return a gomp_single *.
3221         (gimple_build_omp_target): Return a gomp_target *.
3222         (gimple_build_omp_teams): Return a gomp_teams *.
3223         (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
3224         (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
3225         (gimple_build_transaction): Return a gtransaction *.
3226         (gimple_call_arg_flags): Require a const gcall *.
3227         (gimple_call_return_flags): Likewise.
3228         (gimple_call_copy_skip_args): Require and return a gcall *.
3229         (gimple_asm_clobbers_memory_p): Require a const gasm *.
3230         (gimple_seq_first_stmt_as_a_bind): New.
3231         (gimple_assign_nontemporal_move_p): Require a const gassign *
3232         rather than a const_gimple.
3233         (gimple_call_internal_fn): Update for renaming to gcall.
3234         (gimple_call_fntype): Likewise.
3235         (gimple_call_set_fntype): Require a gcall * rather than a gimple.
3236         (gimple_call_set_fn): Likewise.
3237         (gimple_call_set_internal_fn): Likewise.
3238         (gimple_call_set_chain): Likewise.
3239         (gimple_call_set_tail): Likewise.
3240         (gimple_call_tail_p): Likewise.
3241         (gimple_call_set_return_slot_opt): Likewise.
3242         (gimple_call_return_slot_opt_p): Likewise.
3243         (gimple_call_set_from_thunk): Likewise.
3244         (gimple_call_from_thunk_p): Likewise.
3245         (gimple_call_set_va_arg_pack): Likewise.
3246         (gimple_call_va_arg_pack_p): Likewise.
3247         (gimple_call_set_nothrow): Likewise.
3248         (gimple_call_nothrow_p): Likewise.
3249         (gimple_call_set_alloca_for_var): Likewise.
3250         (gimple_call_alloca_for_var_p): Likewise.
3251         (gimple_call_use_set): Likewise.
3252         (gimple_call_clobber_set): Likewise.
3253         (gimple_call_return_type): Require a const gcall * rather than a
3254         const_gimple.
3255         (gimple_call_chain_ptr): Likewise.
3256         (gimple_call_copy_flags): Require a pair of gcall *.
3257         (gimple_cond_set_code): Require a gcond * rather than a gimple
3258         (gimple_cond_set_lhs): Likewise.
3259         (gimple_cond_set_rhs): Likewise.
3260         (gimple_cond_set_true_label): Likewise.
3261         (gimple_cond_set_false_label): Likewise.
3262         (gimple_cond_make_false): Likewise.
3263         (gimple_cond_make_true): Likewise.
3264         (gimple_cond_lhs_ptr): Require a const gcond * rather than a
3265         const_gimple.
3266         (gimple_cond_rhs_ptr): Likewise.
3267         (gimple_cond_true_label): Likewise.
3268         (gimple_cond_false_label): Likewise.
3269         (gimple_cond_true_p): Likewise.
3270         (gimple_cond_false_p): Likewise.
3271         (gimple_cond_set_condition): Likewise.
3272         (gimple_label_label): Require a const glabel *.
3273         (gimple_label_set_label): Require a glabel *.
3274         (gimple_goto_set_dest): Require a ggoto *.
3275         (gimple_bind_vars): Require a const gbind *.
3276         (gimple_bind_block): Likewise.
3277         (gimple_bind_set_vars): Require a gbind *.
3278         (gimple_bind_append_vars): Likewise.
3279         (gimple_bind_body_ptr): Likewise.
3280         (gimple_bind_body): Likewise.
3281         (gimple_bind_set_body): Likewise.
3282         (gimple_bind_add_stmt): Likewise.
3283         (gimple_bind_add_seq): Likewise.
3284         (gimple_bind_set_block): Likewise.
3285         (gimple_asm_ninputs): Require a const gasm *.
3286         (gimple_asm_noutputs): Likewise.
3287         (gimple_asm_nclobbers): Likewise.
3288         (gimple_asm_nlabels): Likewise.
3289         (gimple_asm_input_op): Likewise.
3290         (gimple_asm_input_op_ptr): Likewise.
3291         (gimple_asm_output_op): Likewise.
3292         (gimple_asm_output_op_ptr): Likewise.
3293         (gimple_asm_clobber_op): Likewise.
3294         (gimple_asm_label_op): Likewise.
3295         (gimple_asm_string): Likewise.
3296         (gimple_asm_volatile_p): Likewise.
3297         (gimple_asm_input_p): Likewise.
3298         (gimple_asm_set_input_op): Require a gasm *.
3299         (gimple_asm_set_output_op): Likewise.
3300         (gimple_asm_set_clobber_op): Likewise.
3301         (gimple_asm_set_label_op): Likewise.
3302         (gimple_asm_set_volatile): Likewise.
3303         (gimple_asm_set_input): Likewise.
3304         (gimple_catch_types): Require a const gcatch *.
3305         (gimple_catch_types_ptr): Require a gcatch *.
3306         (gimple_catch_handler_ptr): Likewise.
3307         (gimple_catch_handler): Likewise.
3308         (gimple_catch_set_types): Likewise.
3309         (gimple_catch_set_handler): Likewise.
3310         (gimple_eh_filter_types): Update for renaming of subclass to
3311         geh_filter.
3312         (gimple_eh_filter_types_ptr): Likewise.
3313         (gimple_eh_filter_failure_ptr): Likewise.
3314         (gimple_eh_filter_set_types): Require a geh_filter *.
3315         (gimple_eh_filter_set_failure): Likewise.
3316         (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
3317         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3318         (gimple_eh_else_n_body_ptr): Require a geh_else *.
3319         (gimple_eh_else_n_body): Likewise.
3320         (gimple_eh_else_e_body_ptr): Likewise.
3321         (gimple_eh_else_e_body): Likewise.
3322         (gimple_eh_else_set_n_body): Likewise.
3323         (gimple_eh_else_set_e_body): Likewise.
3324         (gimple_try_set_kind): Require a gtry *.
3325         (gimple_try_set_catch_is_cleanup): Likewise.
3326         (gimple_try_set_eval): Likewise.
3327         (gimple_try_set_cleanup): Likewise.
3328         (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
3329         (gimple_try_cleanup_ptr): Likewise.
3330         (gimple_phi_capacity): Update for renaming of subclass to gphi.
3331         (gimple_phi_num_args): Likewise.
3332         (gimple_phi_result): Likewise.
3333         (gimple_phi_result_ptr): Likewise.
3334         (gimple_phi_arg): Likewise.
3335         (gimple_phi_set_result): Require a gphi *.
3336         (gimple_phi_set_arg): Likewise.
3337         (gimple_phi_arg_def_ptr): Likewise.
3338         (gimple_phi_arg_edge): Likewise.
3339         (gimple_phi_arg_location): Likewise.
3340         (gimple_phi_arg_location_from_edge): Likewise.
3341         (gimple_phi_arg_set_location): Likewise.
3342         (gimple_phi_arg_has_location): Likewise.
3343         (gimple_resx_region): Require a const gresx *.
3344         (gimple_resx_set_region): Require a gresx *.
3345         (gimple_eh_dispatch_region): Require a const geh_dispatch *.
3346         (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
3347         (gimple_switch_num_labels): Require a const gswitch *.
3348         (gimple_switch_set_num_labels): Likewise.
3349         (gimple_switch_index): Likewise.
3350         (gimple_switch_index_ptr): Likewise.
3351         (gimple_switch_label): Likewise.
3352         (gimple_switch_default_label): Likewise.
3353         (gimple_switch_set_index): Require a gswitch *.
3354         (gimple_switch_set_label): Likewise.
3355         (gimple_switch_set_default_label): Likewise.
3356         (gimple_omp_critical_name): Require a const gomp_critical *.
3357         (gimple_omp_critical_name_ptr): Require a gomp_critical *.
3358         (gimple_omp_critical_set_name): Likewise.
3359         (gimple_omp_for_set_kind): Require a gomp_for *.
3360         (gimple_omp_for_set_combined_p): Likewise.
3361         (gimple_omp_for_set_combined_into_p): Likewise.
3362         (gimple_omp_for_clauses): Update for renaming of subclass to
3363         gomp_for.
3364         (gimple_omp_for_clauses_ptr): Likewise.
3365         (gimple_omp_for_set_clauses): Likewise.
3366         (gimple_omp_for_collapse): Likewise.
3367         (gimple_omp_for_index): Likewise.
3368         (gimple_omp_for_index_ptr): Likewise.
3369         (gimple_omp_for_set_index): Likewise.
3370         (gimple_omp_for_initial): Likewise.
3371         (gimple_omp_for_initial_ptr): Likewise.
3372         (gimple_omp_for_set_initial): Likewise.
3373         (gimple_omp_for_final): Likewise.
3374         (gimple_omp_for_final_ptr): Likewise.
3375         (gimple_omp_for_set_final): Likewise.
3376         (gimple_omp_for_incr): Likewise.
3377         (gimple_omp_for_incr_ptr): Likewise.
3378         (gimple_omp_for_set_incr): Likewise.
3379         (gimple_omp_for_pre_body): Likewise.
3380         (gimple_omp_for_set_pre_body): Likewise.
3381         (gimple_omp_parallel_clauses): Update for renaming of subclass to
3382         gomp_parallel.
3383         (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
3384         (gimple_omp_parallel_set_clauses): Likewise.
3385         (gimple_omp_parallel_child_fn_ptr): Likewise.
3386         (gimple_omp_parallel_set_child_fn): Likewise.
3387         (gimple_omp_parallel_data_arg_ptr): Likewise.
3388         (gimple_omp_parallel_set_data_arg): Likewise.
3389         (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
3390         (gimple_omp_parallel_data_arg): Likewise.
3391         (gimple_omp_task_clauses): Update for renaming of subclass to
3392         gomp_task.
3393         (gimple_omp_task_clauses_ptr): Likewise.
3394         (gimple_omp_task_set_clauses): Likewise.
3395         (gimple_omp_task_child_fn): Likewise.
3396         (gimple_omp_task_child_fn_ptr): Likewise.
3397         (gimple_omp_task_set_child_fn): Likewise.
3398         (gimple_omp_task_data_arg): Likewise.
3399         (gimple_omp_task_data_arg_ptr): Likewise.
3400         (gimple_omp_task_set_data_arg): Likewise.
3401         (gimple_omp_taskreg_clauses): Whitespace fixes.
3402         (gimple_omp_taskreg_clauses_ptr): Likewise.
3403         (gimple_omp_taskreg_set_clauses): Likewise.
3404         (gimple_omp_taskreg_child_fn): Likewise.
3405         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3406         (gimple_omp_taskreg_set_child_fn): Likewise.
3407         (gimple_omp_taskreg_data_arg): Likewise.
3408         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3409         (gimple_omp_taskreg_set_data_arg): Likewise.
3410         (gimple_omp_task_copy_fn): Update for renaming of subclass to
3411         gomp_task.
3412         (gimple_omp_task_copy_fn_ptr): Likewise.
3413         (gimple_omp_task_set_copy_fn): Likewise.
3414         (gimple_omp_task_arg_size): Likewise.
3415         (gimple_omp_task_arg_size_ptr): Likewise.
3416         (gimple_omp_task_set_arg_size): Likewise.
3417         (gimple_omp_task_arg_align): Likewise.
3418         (gimple_omp_task_arg_align_ptr): Likewise.
3419         (gimple_omp_task_set_arg_align): Likewise.
3420         (gimple_omp_single_clauses): Update for renaming of subclass to
3421         gomp_single.
3422         (gimple_omp_single_clauses_ptr): Likewise.
3423         (gimple_omp_single_set_clauses): Likewise.
3424         (gimple_omp_target_clauses): Update for renaming of subclass to
3425         gomp_target.
3426         (gimple_omp_target_clauses_ptr): Likewise.
3427         (gimple_omp_target_set_clauses): Require a gomp_target *.
3428         (gimple_omp_target_set_kind): Likewise.
3429         (gimple_omp_target_child_fn_ptr): Likewise.
3430         (gimple_omp_target_set_child_fn): Likewise.
3431         (gimple_omp_target_data_arg_ptr): Likewise.
3432         (gimple_omp_target_set_data_arg): Likewise.
3433         (gimple_omp_target_child_fn): Require a const gomp_target *.
3434         (gimple_omp_target_data_arg): Likewise.
3435         (gimple_omp_teams_clauses): Update for renaming of subclass to
3436         gomp_teams.
3437         (gimple_omp_teams_clauses_ptr): Likewise.
3438         (gimple_omp_teams_set_clauses): Require a gomp_teams *.
3439         (gimple_omp_sections_clauses): Update for renaming of subclass to
3440         gomp_sections.
3441         (gimple_omp_sections_clauses_ptr): Likewise.
3442         (gimple_omp_sections_set_clauses): Likewise.
3443         (gimple_omp_sections_control): Likewise.
3444         (gimple_omp_sections_control_ptr): Likewise.
3445         (gimple_omp_sections_set_control): Likewise.
3446         (gimple_omp_for_set_cond): Likewise.
3447         (gimple_omp_for_cond): Likewise.
3448         (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
3449         (gimple_omp_atomic_store_val_ptr): Likewise.
3450         (gimple_omp_atomic_load_set_lhs): Likewise.
3451         (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
3452         (gimple_omp_atomic_load_lhs): Likewise.
3453         (gimple_omp_atomic_load_rhs): Likewise.
3454         (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
3455         (gimple_omp_atomic_load_set_rhs): Likewise.
3456         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3457         (gimple_omp_continue_control_def): Require a const gomp_continue *.
3458         (gimple_omp_continue_control_use): Likewise.
3459         (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
3460         (gimple_omp_continue_set_control_def): Likewise.
3461         (gimple_omp_continue_control_use_ptr): Likewise.
3462         (gimple_omp_continue_set_control_use): Likewise.
3463         (gimple_transaction_body_ptr): Require a gtransaction *.
3464         (gimple_transaction_body): Likewise.
3465         (gimple_transaction_label_ptr): Likewise.
3466         (gimple_transaction_label): Require a const gtransaction *.
3467         (gimple_transaction_subcode): Likewise.
3468         (gimple_transaction_set_body): Require a gtransaction *.
3469         (gimple_transaction_set_label): Likewise.
3470         (gimple_transaction_set_subcode): Likewise.
3471         (gimple_return_retval_ptr): Require a const greturn *.
3472         (gimple_return_retval): Likewise.
3473         (gimple_return_set_retval): Require a greturn *.
3474         (gimple_expr_type): Introduce local "call_stmt" and use in place of
3475         "stmt" for typesafety.
3476
3477         * asan.c: Use gimple subclasses.
3478         * auto-profile.c: Likewise.
3479         * builtins.c: Likewise.
3480         * builtins.h: Likewise.
3481         * cfgexpand.c: Likewise.
3482         * cfgloop.c: Likewise.
3483         * cfgloopmanip.c: Likewise.
3484         * cgraph.c: Likewise.
3485         * cgraph.h: Likewise.
3486         * cgraphbuild.c: Likewise.
3487         * cgraphclones.c: Likewise.
3488         * cgraphunit.c: Likewise.
3489         * expr.h: Likewise.
3490         * gimple-builder.c: Likewise.
3491         * gimple-builder.h: Likewise.
3492         * gimple-fold.c: Likewise.
3493         * gimple-low.c: Likewise.
3494         * gimple-pretty-print.c: Likewise.
3495         * gimple-ssa-isolate-paths.c: Likewise.
3496         * gimple-ssa-strength-reduction.c: Likewise.
3497         * gimple-streamer-in.c: Likewise.
3498         * gimple-streamer-out.c: Likewise.
3499         * gimple-walk.c: Likewise.
3500         * gimplify-me.c: Likewise.
3501         * gimplify.c: Likewise.
3502         * gimplify.h: Likewise.
3503         * graphite-scop-detection.c: Likewise.
3504         * graphite-sese-to-poly.c: Likewise.
3505         * internal-fn.c: Likewise.
3506         * internal-fn.def:: Likewise.
3507         * internal-fn.h: Likewise.
3508         * ipa-icf-gimple.c: Likewise.
3509         * ipa-icf-gimple.h: Likewise.
3510         * ipa-icf.c: Likewise.
3511         * ipa-inline-analysis.c: Likewise.
3512         * ipa-prop.c: Likewise.
3513         * ipa-prop.h: Likewise.
3514         * ipa-pure-const.c: Likewise.
3515         * ipa-split.c: Likewise.
3516         * lto-streamer-in.c: Likewise.
3517         * lto-streamer-out.c: Likewise.
3518         * omp-low.c: Likewise.
3519         * predict.c: Likewise.
3520         * sanopt.c: Likewise.
3521         * sese.c: Likewise.
3522         * ssa-iterators.h: Likewise.
3523         * stmt.c: Likewise.
3524         * trans-mem.c: Likewise.
3525         * tree-call-cdce.c: Likewise.
3526         * tree-cfg.c: Likewise.
3527         * tree-cfg.h: Likewise.
3528         * tree-cfgcleanup.c: Likewise.
3529         * tree-chkp.c: Likewise.
3530         * tree-chkp.h: Likewise.
3531         * tree-complex.c: Likewise.
3532         * tree-data-ref.c: Likewise.
3533         * tree-dfa.c: Likewise.
3534         * tree-eh.c: Likewise.
3535         * tree-eh.h: Likewise.
3536         * tree-emutls.c: Likewise.
3537         * tree-if-conv.c: Likewise.
3538         * tree-inline.c: Likewise.
3539         * tree-inline.h: Likewise.
3540         * tree-into-ssa.c: Likewise.
3541         * tree-into-ssa.h: Likewise.
3542         * tree-loop-distribution.c: Likewise.
3543         * tree-nrv.c: Likewise.
3544         * tree-object-size.c: Likewise.
3545         * tree-outof-ssa.c: Likewise.
3546         * tree-parloops.c: Likewise.
3547         * tree-phinodes.c: Likewise.
3548         * tree-phinodes.h: Likewise.
3549         * tree-predcom.c: Likewise.
3550         * tree-profile.c: Likewise.
3551         * tree-scalar-evolution.c: Likewise.
3552         * tree-scalar-evolution.h
3553         * tree-sra.cn_function):
3554         * tree-ssa-alias.c: Likewise.
3555         * tree-ssa-alias.h: Likewise.
3556         * tree-ssa-ccp.c: Likewise.
3557         * tree-ssa-coalesce.c: Likewise.
3558         * tree-ssa-copy.c: Likewise.
3559         * tree-ssa-copyrename.c: Likewise.
3560         * tree-ssa-dce.c: Likewise.
3561         * tree-ssa-dom.c: Likewise.
3562         * tree-ssa-forwprop.c: Likewise.
3563         * tree-ssa-ifcombine.c: Likewise.
3564         * tree-ssa-live.c: Likewise.
3565         * tree-ssa-loop-im.c: Likewise.
3566         * tree-ssa-loop-ivcanon.c: Likewise.
3567         * tree-ssa-loop-ivopts.c: Likewise.
3568         * tree-ssa-loop-manip.c: Likewise.
3569         * tree-ssa-loop-niter.c: Likewise.
3570         * tree-ssa-loop-prefetch.c: Likewise.
3571         * tree-ssa-loop-unswitch.c: Likewise.
3572         * tree-ssa-math-opts.c: Likewise.
3573         * tree-ssa-operands.c: Likewise.
3574         * tree-ssa-phiopt.c: Likewise.
3575         * tree-ssa-phiprop.c: Likewise.
3576         * tree-ssa-pre.c: Likewise.
3577         * tree-ssa-propagate.c: Likewise.
3578         * tree-ssa-propagate.h: Likewise.
3579         * tree-ssa-reassoc.c: Likewise.
3580         * tree-ssa-sccvn.c: Likewise.
3581         * tree-ssa-sccvn.h: Likewise.
3582         * tree-ssa-sink.c: Likewise.
3583         * tree-ssa-strlen.c
3584         * tree-ssa-structalias.c
3585         * tree-ssa-tail-merge.c: Likewise.
3586         * tree-ssa-ter.c: Likewise.
3587         * tree-ssa-threadedge.c: Likewise.
3588         * tree-ssa-threadedge.h: Likewise.
3589         * tree-ssa-threadupdate.c: Likewise.
3590         * tree-ssa-uncprop.c: Likewise.
3591         * tree-ssa-uninit.c: Likewise.
3592         * tree-ssa.c: Likewise.
3593         * tree-stdarg.c: Likewise.
3594         * tree-switch-conversion.c: Likewise.
3595         * tree-tailcall.c: Likewise.
3596         * tree-vect-data-refs.c: Likewise.
3597         * tree-vect-generic.c: Likewise.
3598         * tree-vect-loop-manip.c: Likewise.
3599         * tree-vect-loop.c: Likewise.
3600         * tree-vect-patterns.c: Likewise.
3601         * tree-vect-slp.c: Likewise.
3602         * tree-vect-stmts.c: Likewise.
3603         * tree-vectorizer.h: Likewise.
3604         * tree-vrp.c: Likewise.
3605         * tree.c: Likewise.
3606         * ubsan.c: Likewise.
3607         * value-prof.c: Likewise.
3608         * value-prof.h: Likewise.
3609         * vtable-verify.c: Likewise.
3610
3611 2014-11-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
3612
3613         * config/rs6000/constraints.md: Avoid signed integer overflows.
3614         * config/rs6000/predicates.md: Likewise.
3615
3616 2014-11-19  Renlin Li  <Renlin.Li@arm.com>
3617
3618         PR target/63424
3619         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
3620
3621 2014-11-19  Renlin Li  <Renlin.Li@arm.com>
3622
3623         PR middle-end/63762
3624         * ira.c (ira): Update preferred class.
3625
3626 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
3627
3628         * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
3629         (gimple_assign_set_rhs_with_ops_1): Renamed to ...
3630         (gimple_assign_set_rhs_with_ops): ... this.  Adjust binary arg
3631         inline overload to use it.  Add unary arg overload.
3632         * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
3633         (gimple_assign_set_rhs_from_tree): Use
3634         gimple_assign_set_rhs_with_ops instead of
3635         gimple_assign_set_rhs_with_ops_1.
3636         (gimple_assign_set_rhs_with_ops_1): Renamed to ...
3637         (gimple_assign_set_rhs_with_ops): ... this.
3638         * ipa-split.c (split_function): Remove last NULL argument
3639         from gimple_build_assign_with_ops call.
3640         * tree-ssa-loop-im.c
3641         (move_computations_dom_walker::before_dom_children): Likewise.
3642         * tsan.c (instrument_builtin_call): Likewise.
3643         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
3644         vectorizable_conversion, vectorizable_load): Likewise.
3645         * tree-vect-loop.c (vect_is_simple_reduction_1,
3646         get_initial_def_for_induction): Likewise.
3647         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
3648         * tree-vect-patterns.c (vect_handle_widen_op_by_const,
3649         vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
3650         vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
3651         vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
3652         vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
3653         adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
3654         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
3655         neg_replacement): Likewise.
3656         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
3657         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
3658         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3659         * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
3660         expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
3661         simd_clone_adjust): Likewise.
3662         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
3663         * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
3664         replace_one_candidate): Likewise.
3665         * gimple-builder.c (build_type_cast): Likewise.
3666         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
3667         (forward_propagate_addr_expr_1): Remove last NULL argument
3668         from gimple_assign_set_rhs_with_ops call.
3669         (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
3670         instead of gimple_assign_set_rhs_with_ops_1.
3671         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
3672         argument from gimple_build_assign_with_ops call.
3673         (repropagate_negates): Remove last NULL argument from
3674         gimple_assign_set_rhs_with_ops call.
3675         * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
3676         last NULL argument from gimple_build_assign_with_ops call.
3677         (instrument_bool_enum_load): Likewise.  Remove last NULL argument
3678         from gimple_assign_set_rhs_with_ops call.
3679         * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
3680         Remove last NULL argument from gimple_build_assign_with_ops call.
3681         (bswap_replace): Likewise.  Use gimple_assign_set_rhs_with_ops instead
3682         of gimple_assign_set_rhs_with_ops_1.
3683         (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
3684         instead of gimple_assign_set_rhs_with_ops_1.
3685         * gimple-fold.c (replace_stmt_with_simplification): Likewise.
3686         (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
3687         from gimple_build_assign_with_ops call.
3688         * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
3689         from gimple_assign_set_rhs_with_ops call.
3690         * tree-vrp.c (simplify_truth_ops_using_ranges,
3691         simplify_bit_ops_using_ranges): Remove last NULL argument from
3692         gimple_assign_set_rhs_with_ops call.
3693         (simplify_float_conversion_using_ranges,
3694         simplify_internal_call_using_ranges): Remove last NULL argument from
3695         gimple_build_assign_with_ops call.
3696
3697 2014-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
3698
3699         PR target/61915
3700         * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
3701         cost.
3702
3703 2014-11-19  Marek Polacek  <polacek@redhat.com>
3704
3705         PR sanitizer/63690
3706         * ubsan.c (instrument_object_size): Check for MEM_REF.
3707
3708 2014-11-19  Ilya Verbin  <ilya.verbin@intel.com>
3709
3710         PR regression/63868
3711         * cgraph.c (cgraph_node::create): Guard g->have_offload with
3712         ifdef ENABLE_OFFLOADING.
3713         * omp-low.c (create_omp_child_function): Likewise.
3714         (expand_omp_target): Guard node->mark_force_output and offload_funcs
3715         with ifdef ENABLE_OFFLOADING.
3716         * varpool.c (varpool_node::get_create): Guard g->have_offload and
3717         offload_vars with ifdef ENABLE_OFFLOADING.
3718
3719 2014-11-19  Felix Yang  <felix.yang@huawei.com>
3720             Shanyao Chen  <chenshanyao@huawei.com>
3721
3722         PR target/59593
3723         * config/arm/arm.md (define_attr "arch"): Add v6t2.
3724         (define_attr "arch_enabled"): Add test for the above.
3725         (*movhi_insn_arch4): Add new alternative.
3726
3727 2014-11-19  Richard Henderson  <rth@redhat.com>
3728
3729         * c-family/c-common.c (c_common_reswords): Add
3730         __builtin_call_with_static_chain.
3731         * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
3732         * c/c-parser.c (c_parser_postfix_expression): Handle it.
3733         * doc/extend.texi (__builtin_call_with_static_chain): Document it.
3734
3735         * calls.c (prepare_call_address): Allow decl or type for first arg.
3736         (expand_call): Pass type to prepare_call_address if no decl.
3737         * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
3738         the function doesn't use it; fold it otherwise.
3739         * gimplify.c (gimplify_call_expr): Gimplify the static chain.
3740         * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
3741         function calls.
3742
3743         * targhooks.c (default_static_chain): Remove check for
3744         DECL_STATIC_CHAIN.
3745         * config/moxie/moxie.c (moxie_static_chain): Likewise.
3746         * config/i386/i386.c (ix86_static_chain): Allow decl or type
3747         as the first argument.
3748         * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
3749         of the unused first parameter.
3750         * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
3751         may be a type.
3752         * target.def (static_chain): Likewise.
3753
3754 2014-11-19  Renlin Li  <renlin.li@arm.com>
3755
3756     * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FP_FAST,
3757         __ARM_FEATURE_FMA, __ARM_FP, __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
3758
3759 2014-11-19  Marek Polacek  <polacek@redhat.com>
3760
3761         PR sanitizer/63879
3762         * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
3763         !TYPE_OVERFLOW_SANITIZED.
3764         (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
3765         does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
3766         is 0.
3767
3768 2014-11-19  Ilya Tocar  <ilya.tocar@intel.com>
3769
3770         * collect2.c (main): Don't call fatal_error before
3771         diagnostic_initialize.
3772         * lto-wrapper.c (main): Likewise.
3773
3774 2014-11-19  Tom de Vries  <tom@codesourcery.com>
3775
3776         PR tree-optimization/62167
3777         * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
3778         conservatively.
3779         (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
3780         assigns.
3781
3782 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
3783
3784         PR tree-optimization/63915
3785         * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
3786         true instead of false as last argument to gsi_replace.
3787
3788         PR sanitizer/63520
3789         * internal-fn.c (expand_ubsan_result_store): New function.
3790         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
3791         Use it instead of just emit_move_insn.
3792
3793 2014-11-19  Richard Biener  <rguenther@suse.de>
3794
3795         PR tree-optimization/63844
3796         * omp-low.c (fixup_child_record_type): Use a restrict qualified
3797         referece type for the receiver parameter.
3798
3799 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
3800
3801         PR sanitizer/63913
3802         * ubsan.c: Include tree-eh.h.
3803         (instrument_bool_enum_load): Handle loads that can throw.
3804
3805         PR rtl-optimization/63843
3806         * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
3807         optimization of ashiftrt of subreg of lshiftrt, check that code
3808         is ASHIFTRT.
3809
3810 2014-11-18  Andrew MacLeod  <amacleod@redhat.com>
3811
3812         * attribs.c (decl_attributes): Remove always true condition,
3813         TREE_TYPE(x) will never compare equal to a TYPE_DECL.
3814
3815 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3816
3817         PR target/63937
3818         * target.def (use_by_pieces_infrastructure_p): Take unsigned
3819         HOST_WIDE_INT as the size parameter.
3820         * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
3821         * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
3822         * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
3823         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
3824         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
3825         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
3826         * config/aarch64/aarch64.c
3827         (aarch64_use_by_pieces_infrastructure_p)): Likewise.
3828         * doc/tm.texi: Regenerate.
3829
3830 2014-11-18  Jan Hubicka  <hubicka@ucw.cz>
3831
3832         * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
3833         (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
3834         (ipa_get_indirect_edge_target_1): Use opt_for_fn.
3835         (good_cloning_opportunity_p): Likewise.
3836         (ipa-cp gate): Enable ipa-cp with LTO.
3837         * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
3838         * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
3839         inheritance.
3840         * ipa-inline-transform.c (inline_transform): Check if there are inlines
3841         to apply even at -O0.
3842         * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
3843         (analyze_functions): Build type inheritance graph.
3844         * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
3845         (want_early_inline_function_p, want_inline_small_function_p):
3846         Likewise.
3847         (check_callers): Likewise.
3848         (edge_badness): Likewise.
3849         (inline_small_functions): Always be ready for indirect inlining
3850         to happend.
3851         (ipa_inline): Always use want_inline_function_to_all_callers_p.
3852         (early_inline_small_functions): Use opt_for_fn.
3853         * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
3854         (estimate_function_body_sizes): Likewise.
3855         (compute_inline_parameters): Likewise.
3856         (estimate_edge_devirt_benefit): Likewise.
3857         (inline_analyze_function): Likewise.
3858         * ipa-devirt.c (ipa_devirt): Likewise.
3859         (gate): Use in_lto_p.
3860         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
3861         (try_make_edge_direct_virtual_call): Likewise.
3862         (update_indirect_edges_after_inlining): Likewise.
3863         (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
3864         * common.opt (findirect-inlining): Turn into optimization.
3865         * ipa-pure-const.c (add_new_function): Use opt_for_fn.
3866         (pure_const_generate_summary): Likewise.
3867         (gate_pure_const): Always enable with in_lto_p.
3868
3869 2014-11-18  Maciej W. Rozycki  <macro@codesourcery.com>
3870
3871         * config/mips/mips.md (compression): Add `micromips32' setting.
3872         (enabled, length): Handle it.
3873         (shift_compression): Replace `micromips' with `micromips32' in
3874         the `compression' attribute.
3875         (*add<mode>3, sub<mode>3): Likewise.
3876
3877 2014-11-18  Maciej W. Rozycki  <macro@codesourcery.com>
3878
3879         * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
3880         range, a jump otherwise.
3881
3882 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3883
3884         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
3885         Split into...
3886         (cortex_a15_gp_to_vfp): ...This.
3887         (cortex_a15_fp_to_gp): ...And this.
3888         Define and comment bypass from vfp operations to fp->gp moves.
3889
3890 2014-11-18  Martin Liska  <mliska@suse.cz>
3891
3892         * var-tracking.c (vt_find_locations): New fibonacci_node is used.
3893
3894 2014-11-18  Martin Liska  <mliska@suse.cz>
3895
3896         * bt-load.c (add_btr_def): New fibonacci_heap is used.
3897         (migrate_btr_defs): Likewise.
3898
3899 2014-11-18  Martin Liska  <mliska@suse.cz>
3900
3901         * tracer.c (tail_duplicate): New fibonacci_heap class is used.
3902
3903 2014-11-18  Martin Liska  <mliska@suse.cz>
3904
3905         * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
3906         (find_traces): Likewise.
3907         (find_traces_1_round): Likewise.
3908
3909 2014-11-18  Martin Liska  <mliska@suse.cz>
3910
3911         * fibonacci_heap.h: New file.
3912         (fibonacci_heap::insert): Created from fibheap_insert.
3913         (fibonacci_heap::empty): Created from fibheap_empty.
3914         (fibonacci_heap::nodes): Created from fibheap_nodes.
3915         (fibonacci_heap::min_key): Created from fibheap_min_key.
3916         (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
3917         (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
3918         (fibonacci_heap::extract_min): Created from fibheap_extract_min.
3919         (fibonacci_heap::min): Created from fibheap_min.
3920         (fibonacci_heap::replace_data): Created from fibheap_replace_data.
3921         (fibonacci_heap::delete_node): Created from fibheap_delete_node.
3922         (fibonacci_heap::union_with): Created from fibheap_union.
3923         * ipa-inline.c (update_edge_key): New heap API is used.
3924         (update_caller_keys): Likewise.
3925         (update_callee_keys): Likewise.
3926         (lookup_recursive_calls): Likewise.
3927         (recursive_inlining): Likewise.
3928         (add_new_edges_to_heap): Likewise.
3929         (heap_edge_removal_hook): Likewise.
3930         (inline_small_functions): Likewise.
3931
3932 2014-11-18  Marek Polacek  <polacek@redhat.com>
3933
3934         PR sanitizer/63866
3935         * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
3936         put it into TYPE_NAME and TYPE_STUB_DECL.
3937         * ubsan.c (ubsan_type_descriptor_type): New variable.
3938         Function renamed to ...
3939         (ubsan_get_type_descriptor_type): ... this.  Cache
3940         return value in ubsan_type_descriptor_type variable.
3941         Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
3942         TYPE_NAME and TYPE_STUB_DECL.
3943         (ubsan_get_source_location_type): Create a TYPE_DECL for
3944         "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
3945         (ubsan_type_descriptor, ubsan_create_data): Call
3946         ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
3947         Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
3948
3949 2014-11-18  Felix Yang  <felix.yang@huawei.com>
3950
3951         * config/aarch64/aarch64.c (doloop_end): New pattern.
3952         * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
3953
3954 2014-11-18  Jason Merrill  <jason@redhat.com>
3955
3956         * tree.c (warn_deprecated_use): Show declaration with inform.
3957
3958 2014-11-18  Richard Biener  <rguenther@suse.de>
3959
3960         PR tree-optimization/63914
3961         * tree-ssa-ccp.c (canonicalize_value): Remove float value
3962         canonicalization.
3963         (valid_lattice_transition): Allow (partial) transition
3964         from NaN to non-NaN if !HONOR_NANS.
3965         (set_lattice_value): Check for valid lattice transitions
3966         only when checking is enabled.
3967
3968 2014-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3969
3970         * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
3971
3972 2014-11-18  Christophe Lyon  <christophe.lyon@linaro.org>
3973
3974         * config/arm/neon-testgen.ml (emit_prologue): Handle new
3975         compile_test_optim argument.
3976         (emit_automatics): Rename to emit_variables. Support variable
3977         indentation of its output.
3978         (compile_test_optim): New function.
3979         (test_intrinsic): Call compile_test_optim.
3980         * config/arm/neon.ml (features): Add Compiler_optim.
3981         (ops): Add Compiler_optim feature to Vbic and Vorn.
3982         (type_in_crypto_only): Replace 'or' by '||'.
3983         (reinterp): Likewise.
3984         (reinterpq): Likewise.
3985
3986 2014-11-18  Alan Lawrence  <alan.lawrence@arm.com>
3987
3988         * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
3989         vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
3990         vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
3991         vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
3992         vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
3993         vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
3994         pointer dereference.
3995
3996 2014-11-18  Marc Glisse  <marc.glisse@inria.fr>
3997
3998         * tree.c (element_mode, integer_truep): New functions.
3999         * tree.h (element_mode, integer_truep): Declare them.
4000         * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
4001         fold_cond_expr_with_comparison, fold_real_zero_addition_p,
4002         fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
4003         fold_strip_sign_ops): Use element_mode.
4004         (fold_binary_loc): Use element_mode and element_precision.
4005         * match.pd: Use integer_truep, element_mode, element_precision,
4006         VECTOR_TYPE_P and build_one_cst. Extend some transformations to
4007         vectors. Simplify A/-A.
4008
4009 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4010
4011         * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
4012         manual swapping implementation.
4013         (movcond_addsi): Likewise.
4014         * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
4015         (arm_select_dominance_cc_mode): Likewise.
4016         (arm_reload_out_hi): Likewise.
4017         (gen_operands_ldrd_strd): Likewise.
4018         (output_move_double): Likewise.
4019         (arm_print_operand_address): Likewise.
4020         (thumb_output_move_mem_multiple): Likewise.
4021         (SWAP_RTX): Delete.
4022
4023 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
4024
4025         * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
4026         (COPYSIGNF_QUALIFIERS): Likewise.
4027         (CREATE_QUALIFIERS): Likewise.
4028         (DUP_QUALIFIERS): Likewise.
4029         (FLOAT_WIDEN_QUALIFIERS): Likewise.
4030         (FLOAT_NARROW_QUALIFIERS): Likewise.
4031         (REINTERP_QUALIFIERS): Likewise.
4032         (RINT_QUALIFIERS): Likewise.
4033         (SPLIT_QUALIFIERS): Likewise.
4034         (FIXCONV_QUALIFIERS): Likewise.
4035         (SCALARMUL_QUALIFIERS): Likewise.
4036         (SCALARMULL_QUALIFIERS): Likewise.
4037         (SCALARMULH_QUALIFIERS): Likewise.
4038         (SELECT_QUALIFIERS): Likewise.
4039         (VTBX_QUALIFIERS): Likewise.
4040         (SHIFTIMM_QUALIFIERS): Likewise.
4041         (SCALARMAC_QUALIFIERS): Likewise.
4042         (LANEMUL_QUALIFIERS): Likewise.
4043         (LANEMULH_QUALIFIERS): Likewise.
4044         (LANEMULL_QUALIFIERS): Likewise.
4045         (SHIFTACC_QUALIFIERS): Likewise.
4046         (SHIFTINSERT_QUALIFIERS): Likewise.
4047         (VTBL_QUALIFIERS): Likewise.
4048         (LOADSTRUCT_QUALIFIERS): Likewise.
4049         (LOADSTRUCTLANE_QUALIFIERS): Likewise.
4050         (STORESTRUCT_QUALIFIERS): Likewise.
4051         (STORESTRUCTLANE_QUALIFIERS): Likewise.
4052         (neon_builtin_type_mode): Delete.
4053         (v8qi_UP): Map to V8QImode.
4054         (v8qi_UP): Map to V8QImode.
4055         (v4hi_UP): Map to V4HImode.
4056         (v4hf_UP): Map to V4HFmode.
4057         (v2si_UP): Map to V2SImode.
4058         (v2sf_UP): Map to V2SFmode.
4059         (di_UP): Map to DImode.
4060         (v16qi_UP): Map to V16QImode.
4061         (v8hi_UP): Map to V8HImode.
4062         (v4si_UP): Map to V4SImode.
4063         (v4sf_UP): Map to V4SFmode.
4064         (v2di_UP): Map to V2DImode.
4065         (ti_UP): Map to TImode.
4066         (ei_UP): Map to EImode.
4067         (oi_UP): Map to OImode.
4068         (neon_itype): Delete.
4069         (neon_builtin_datum): Remove itype, make mode a machine_mode.
4070         (VAR1): Update accordingly.
4071         (arm_init_neon_builtins): Use machine_mode directly.
4072         (neon_dereference_pointer): Likewise.
4073         (arm_expand_neon_args): Use qualifiers to decide operand types.
4074         (arm_expand_neon_builtin): Likewise.
4075         * config/arm/arm_neon_builtins.def: Remap operation type for
4076         many builtins.
4077
4078 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
4079
4080         * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
4081         (enum arm_simd_type): Likewise.
4082         (struct arm_simd_type_info): Likewise
4083         (arm_mangle_builtin_scalar_type): Likewise.
4084         (arm_mangle_builtin_vector_type): Likewise.
4085         (arm_mangle_builtin_type): Likewise.
4086         (arm_simd_builtin_std_type): Likewise.
4087         (arm_lookup_simd_builtin_type): Likewise.
4088         (arm_simd_builtin_type): Likewise.
4089         (arm_init_simd_builtin_types): Likewise.
4090         (arm_init_simd_builtin_scalar_types): Likewise.
4091         (arm_init_neon_builtins): Rewrite using qualifiers.
4092         * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
4093         * config/arm/arm-simd-builtin-types.def: New file.
4094         * config/arm/t-arm (arm-builtins.o): Depend on it.
4095         * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
4096         * config/arm/arm_neon.h (int8x8_t): Use new internal type.
4097         (int16x4_t): Likewise.
4098         (int32x2_t): Likewise.
4099         (float16x4_t): Likewise.
4100         (float32x2_t): Likewise.
4101         (poly8x8_t): Likewise.
4102         (poly16x4_t): Likewise.
4103         (uint8x8_t): Likewise.
4104         (uint16x4_t): Likewise.
4105         (uint32x2_t): Likewise.
4106         (int8x16_t): Likewise.
4107         (int16x8_t): Likewise.
4108         (int32x4_t): Likewise.
4109         (int64x2_t): Likewise.
4110         (float32x4_t): Likewise.
4111         (poly8x16_t): Likewise.
4112         (poly16x8_t): Likewise.
4113         (uint8x16_t): Likewise.
4114         (uint16x8_t): Likewise.
4115         (uint32x4_t): Likewise.
4116         (uint64x2_t): Likewise.
4117
4118 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
4119
4120         * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
4121         (neon_itype): Add new types corresponding to the types used in
4122         qualifiers names.
4123         (arm_unop_qualifiers): New.
4124         (arm_bswap_qualifiers): Likewise.
4125         (arm_binop_qualifiers): Likewise.
4126         (arm_ternop_qualifiers): Likewise.
4127         (arm_getlane_qualifiers): Likewise.
4128         (arm_lanemac_qualifiers): Likewise.
4129         (arm_setlane_qualifiers): Likewise.
4130         (arm_combine_qualifiers): Likewise.
4131         (arm_load1_qualifiers): Likewise.
4132         (arm_load1_lane_qualifiers): Likewise.
4133         (arm_store1_qualifiers): Likewise.
4134         (arm_storestruct_lane_qualifiers): Likewise.
4135         (UNOP_QUALIFIERS): Likewise.
4136         (DUP_QUALIFIERS): Likewise.
4137         (SPLIT_QUALIFIERS): Likewise.
4138         (CONVERT_QUALIFIERS): Likewise.
4139         (FLOAT_WIDEN_QUALIFIERS): Likewise.
4140         (FLOAT_NARROW_QUALIFIERS): Likewise.
4141         (RINT_QUALIFIERS): Likewise.
4142         (COPYSIGNF_QUALIFIERS): Likewise.
4143         (CREATE_QUALIFIERS): Likewise.
4144         (REINTERP_QUALIFIERS): Likewise.
4145         (BSWAP_QUALIFIERS): Likewise.
4146         (BINOP_QUALIFIERS): Likewise.
4147         (FIXCONV_QUALIFIERS): Likewise.
4148         (SCALARMUL_QUALIFIERS): Likewise.
4149         (SCALARMULL_QUALIFIERS): Likewise.
4150         (SCALARMULH_QUALIFIERS): Likewise.
4151         (TERNOP_QUALIFIERS): Likewise.
4152         (SELECT_QUALIFIERS): Likewise.
4153         (VTBX_QUALIFIERS): Likewise.
4154         (GETLANE_QUALIFIERS): Likewise.
4155         (SHIFTIMM_QUALIFIERS): Likewise.
4156         (LANEMAC_QUALIFIERS): Likewise.
4157         (SCALARMAC_QUALIFIERS): Likewise.
4158         (SETLANE_QUALIFIERS): Likewise.
4159         (SHIFTINSERT_QUALIFIERS): Likewise.
4160         (SHIFTACC_QUALIFIERS): Likewise.
4161         (LANEMUL_QUALIFIERS): Likewise.
4162         (LANEMULL_QUALIFIERS): Likewise.
4163         (LANEMULH_QUALIFIERS): Likewise.
4164         (COMBINE_QUALIFIERS): Likewise.
4165         (VTBL_QUALIFIERS): Likewise.
4166         (LOAD1_QUALIFIERS): Likewise.
4167         (LOADSTRUCT_QUALIFIERS): Likewise.
4168         (LOAD1LANE_QUALIFIERS): Likewise.
4169         (LOADSTRUCTLANE_QUALIFIERS): Likewise.
4170         (STORE1_QUALIFIERS): Likewise.
4171         (STORESTRUCT_QUALIFIERS): Likewise.
4172         (STORE1LANE_QUALIFIERS): Likewise.
4173         (STORESTRUCTLANE_QUALIFIERS): Likewise.
4174         (neon_builtin_datum): Keep track of qualifiers.
4175         (VAR1): Likewise.
4176
4177 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
4178
4179         * config/arm/arm-builtins.c (VAR1): Add a comma.
4180         (VAR2): Rewrite in terms of VAR1.
4181         (VAR3-10): Likewise.
4182         (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
4183         * config/arm/arm_neon_builtins.def: Remove trailing commas.
4184
4185 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
4186
4187         * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
4188         (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
4189         * config/arm/arm-builtins.c: New.
4190         * config/arm/t-arm (arm_builtins.o): New.
4191         * config/arm/arm-protos.h (arm_expand_builtin): New.
4192         (arm_builtin_decl): Likewise.
4193         (arm_init_builtins): Likewise.
4194         (arm_atomic_assign_expand_fenv): Likewise.
4195         * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
4196         (arm_init_builtins): Likewise.
4197         (arm_init_iwmmxt_builtins): Likewise
4198         (safe_vector_operand): Likewise
4199         (arm_expand_binop_builtin): Likewise
4200         (arm_expand_unop_builtin): Likewise
4201         (arm_expand_builtin): Likewise
4202         (arm_builtin_decl): Likewise
4203         (insn_flags): Remove static.
4204         (tune_flags): Likewise.
4205         (enum arm_builtins): Move to config/arm/arm-builtins.c.
4206         (arm_init_neon_builtins): Likewise.
4207         (struct builtin_description): Likewise.
4208         (arm_init_iwmmxt_builtins): Likewise.
4209         (arm_init_fp16_builtins): Likewise.
4210         (arm_init_crc32_builtins): Likewise.
4211         (arm_init_builtins): Likewise.
4212         (arm_builtin_decl): Likewise.
4213         (safe_vector_operand): Likewise.
4214         (arm_expand_ternop_builtin): Likewise.
4215         (arm_expand_binop_builtin): Likewise.
4216         (arm_expand_unop_builtin): Likewise.
4217         (neon_dereference_pointer): Likewise.
4218         (arm_expand_neon_args): Likewise.
4219         (arm_expand_neon_builtin): Likewise.
4220         (neon_split_vcombine): Likewise.
4221         (arm_expand_builtin): Likewise.
4222         (arm_builtin_vectorized_function): Likewise.
4223         (arm_atomic_assign_expand_fenv): Likewise.
4224
4225 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
4226
4227         * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
4228         * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
4229         (FL_ARCH3M): Likewise.
4230         (FL_MODE26): Likewise.
4231         (FL_MODE32): Likewise.
4232         (FL_ARCH4): Likewise.
4233         (FL_ARCH5): Likewise.
4234         (FL_THUMB): Likewise.
4235         (FL_LDSCHED): Likewise.
4236         (FL_STRONG): Likewise.
4237         (FL_ARCH5E): Likewise.
4238         (FL_XSCALE): Likewise.
4239         (FL_ARCH6): Likewise.
4240         (FL_VFPV2): Likewise.
4241         (FL_WBUF): Likewise.
4242         (FL_ARCH6K): Likewise.
4243         (FL_THUMB2): Likewise.
4244         (FL_NOTM): Likewise.
4245         (FL_THUMB_DIV): Likewise.
4246         (FL_VFPV3): Likewise.
4247         (FL_NEON): Likewise.
4248         (FL_ARCH7EM): Likewise.
4249         (FL_ARCH7): Likewise.
4250         (FL_ARM_DIV): Likewise.
4251         (FL_ARCH8): Likewise.
4252         (FL_CRC32): Likewise.
4253         (FL_SMALLMUL): Likewise.
4254         (FL_IWMMXT): Likewise.
4255         (FL_IWMMXT2): Likewise.
4256         (FL_TUNE): Likewise.
4257         (FL_FOR_ARCH2): Likewise.
4258         (FL_FOR_ARCH3): Likewise.
4259         (FL_FOR_ARCH3M): Likewise.
4260         (FL_FOR_ARCH4): Likewise.
4261         (FL_FOR_ARCH4T): Likewise.
4262         (FL_FOR_ARCH5): Likewise.
4263         (FL_FOR_ARCH5T): Likewise.
4264         (FL_FOR_ARCH5E): Likewise.
4265         (FL_FOR_ARCH5TE): Likewise.
4266         (FL_FOR_ARCH5TEJ): Likewise.
4267         (FL_FOR_ARCH6): Likewise.
4268         (FL_FOR_ARCH6J): Likewise.
4269         (FL_FOR_ARCH6K): Likewise.
4270         (FL_FOR_ARCH6Z): Likewise.
4271         (FL_FOR_ARCH6ZK): Likewise.
4272         (FL_FOR_ARCH6T2): Likewise.
4273         (FL_FOR_ARCH6M): Likewise.
4274         (FL_FOR_ARCH7): Likewise.
4275         (FL_FOR_ARCH7A): Likewise.
4276         (FL_FOR_ARCH7VE): Likewise.
4277         (FL_FOR_ARCH7R): Likewise.
4278         (FL_FOR_ARCH7M): Likewise.
4279         (FL_FOR_ARCH7EM): Likewise.
4280         (FL_FOR_ARCH8A): Likewise.
4281         * config/arm/arm-protos.h: Take definitions moved from arm.c.
4282
4283 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
4284
4285         * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
4286         parameter, rearrange switch statement accordingly.
4287         (arm_evpc_neon_vrev): Remove "Magic Word".
4288         * config/arm/unspecs.md (unspec): Split many UNSPECs to
4289         rounding, or signed/unsigned variants.
4290         * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
4291         (vcondu<mode><mode>): Likewise.
4292         (neon_vadd): Remove "Magic Word" operand.
4293         (neon_vaddl): Remove "Magic Word" operand, convert to use
4294         signed/unsigned iterator.
4295         (neon_vaddw): Likewise.
4296         (neon_vhadd): Likewise, also iterate over "rounding" forms.
4297         (neon_vqadd): Remove "Magic Word" operand, convert to use
4298         signed/unsigned iterator.
4299         (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
4300         over "rounding" forms.
4301         (neon_vmul): Remove "Magic Word" operand, iterate over
4302         polynomial/float instruction forms.
4303         (neon_vmla): Remove "Magic Word" operand.
4304         (neon_vfma): Likewise.
4305         (neon_vfms): Likewise.
4306         (neon_vmls): Likewise.
4307         (neon_vmlal): Remove "Magic Word" operand, iterate over
4308         signed/unsigned forms.
4309         (neon_vmlsl): Likewise.
4310         (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
4311         forms.
4312         (neon_vqdmlal): Remove "Magic Word" operand, iterate over
4313         signed/unsigned forms.
4314         (neon_vqdmlsl): Likewise.
4315         (neon_vmull): Likewise.
4316         (neon_vqdmull): Remove "Magic Word" operand.
4317         (neon_vsub): Remove "Magic Word" operand.
4318         (neon_vsubl): Remove "Magic Word" operand, convert to use
4319         signed/unsigned iterator.
4320         (neon_vsubw): Likewise.
4321         (neon_vhsub): Likewise.
4322         (neon_vqsub): Likewise.
4323         (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
4324         over "rounding" forms.
4325         (neon_vceq): Remove "Magic Word" operand.
4326         (neon_vcge): Likewise.
4327         (neon_vcgeu): Likewise.
4328         (neon_vcgt): Likewise.
4329         (neon_vcgtu): Likewise.
4330         (neon_vcle): Likewise.
4331         (neon_vclt): Likewise.
4332         (neon_vcage): Likewise.
4333         (neon_vcagt): Likewise.
4334         (neon_vabd): Remove "Magic Word" operand, iterate over
4335         signed/unsigned forms, and split out...
4336         (neon_vabdf): ...this as new.
4337         (neon_vabdl): Remove "Magic Word" operand, iterate over
4338         signed/unsigned forms.
4339         (neon_vaba): Likewise.
4340         (neon_vmax): Remove "Magic Word" operand, iterate over
4341         signed/unsigned and max/min forms, and split out...
4342         (neon_v<maxmin>f): ...this as new.
4343         (neon_vmin): Delete.
4344         (neon_vpadd): Remove "Magic Word" operand.
4345         (neon_vpaddl): Remove "Magic Word" operand, iterate over
4346         signed/unsigned variants.
4347         (neon_vpadal): Likewise.
4348         (neon_vpmax): Remove "Magic Word" operand, iterate over
4349         signed/unsigned and max/min forms, and split out...
4350         (neon_vp<maxmin>f): ...this as new.
4351         (neon_vpmin): Delete.
4352         (neon_vrecps): Remove "Magic Word" operand.
4353         (neon_vrsqrts): Likewise.
4354         (neon_vabs): Likewise.
4355         (neon_vqabs): Likewise.
4356         (neon_vneg): Likewise.
4357         (neon_vqneg): Likewise.
4358         (neon_vcls): Likewise.
4359         (neon_vcnt): Likewise.
4360         (neon_vrecpe): Likewise.
4361         (neon_vrsqrte): Likewise.
4362         (neon_vmvn): Likewise.
4363         (neon_vget_lane): Likewise.
4364         (neon_vget_laneu): New.
4365         (neon_vget_lanedi): Remove "Magic Word" operand.
4366         (neon_vget_lanev2di): Likewise.
4367         (neon_vcvt): Remove "Magic Word" operand, iterate over
4368         signed/unsigned variants.
4369         (neon_vcvt_n): Likewise.
4370         (neon_vmovn): Remove "Magic Word" operand.
4371         (neon_vqmovn): Remove "Magic Word" operand, iterate over
4372         signed/unsigned variants.
4373         (neon_vmovun): Remove "Magic Word" operand.
4374         (neon_vmovl): Remove "Magic Word" operand, iterate over
4375         signed/unsigned variants.
4376         (neon_vmul_lane): Remove "Magic Word" operand.
4377         (neon_vmull_lane): Remove "Magic Word" operand, iterate over
4378         signed/unsigned variants.
4379         (neon_vqdmull_lane): Remove "Magic Word" operand.
4380         (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
4381         rounding variants.
4382         (neon_vmla_lane): Remove "Magic Word" operand.
4383         (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
4384         signed/unsigned variants.
4385         (neon_vqdmlal_lane): Remove "Magic Word" operand.
4386         (neon_vmls_lane): Likewise.
4387         (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
4388         signed/unsigned variants.
4389         (neon_vqdmlsl_lane): Remove "Magic Word" operand.
4390         (neon_vmul_n): Remove "Magic Word" operand.
4391         (neon_vmull_n): Rename to...
4392         (neon_vmulls_n): ...this, remove "Magic Word" operand.
4393         (neon_vmullu_n): New.
4394         (neon_vqdmull_n): Remove "Magic Word" operand.
4395         (neon_vqdmulh_n): Likewise.
4396         (neon_vqrdmulh_n): New.
4397         (neon_vmla_n): Remove "Magic Word" operand.
4398         (neon_vmls_n): Likewise.
4399         (neon_vmlal_n): Rename to...
4400         (neon_vmlals_n): ...this, remove "Magic Word" operand.
4401         (neon_vmlalu_n): New.
4402         (neon_vqdmlal_n): Remove "Magic Word" operand.
4403         (neon_vmlsl_n): Rename to...
4404         (neon_vmlsls_n): ...this, remove "Magic Word" operand.
4405         (neon_vmlslu_n): New.
4406         (neon_vqdmlsl_n): Remove "Magic Word" operand.
4407         (neon_vrev64): Remove "Magic Word" operand.
4408         (neon_vrev32): Likewise.
4409         (neon_vrev16): Likewise.
4410         (neon_vshl): Remove "Magic Word" operand, iterate over
4411         signed/unsigned and "rounding" forms.
4412         (neon_vqshl): Likewise.
4413         (neon_vshr_n): Likewise.
4414         (neon_vshrn_n): Remove "Magic Word" operand, iterate over
4415         "rounding" forms.
4416         (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
4417         signed/unsigned and "rounding" forms.
4418         (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
4419         "rounding" forms.
4420         (neon_vshl_n): Remove "Magic Word" operand.
4421         (neon_vqshl_n): Remove "Magic Word" operand, iterate over
4422         signed/unsigned variants.
4423         (neon_vqshlu_n): Remove "Magic Word" operand.
4424         (neon_vshll_n): Remove "Magic Word" operand, iterate over
4425         signed/unsigned variants.
4426         (neon_vsra_n): Remove "Magic Word" operand, iterate over
4427         signed/unsigned and "rounding" forms.
4428         * config/arm/iterators.md (VPF): New.
4429         (VADDL): Likewise.
4430         (VADDW): Likewise.
4431         (VHADD): Likewise.
4432         (VQADD): Likewise.
4433         (VADDHN): Likewise.
4434         (VMLAL): Likewise.
4435         (VMLAL_LANE): Likewise.
4436         (VLMSL): Likewise.
4437         (VMLSL_LANE): Likewise.
4438         (VQDMULH): Likewise,
4439         (VQDMULH_LANE): Likewise.
4440         (VMULL): Likewise.
4441         (VMULL_LANE): Likewise.
4442         (VSUBL): Likewise.
4443         (VSUBW): Likewise.
4444         (VHSUB): Likewise.
4445         (VQSUB): Likewise.
4446         (VSUBHN): Likewise.
4447         (VABD): Likewise.
4448         (VABDL): Likewise.
4449         (VMAXMIN): Likewise.
4450         (VMAXMINF): Likewise.
4451         (VPADDL): Likewise.
4452         (VPADAL): Likewise.
4453         (VPMAXMIN): Likewise.
4454         (VPMAXMINF): Likewise.
4455         (VCVT_US): Likewise.
4456         (VCVT_US_N): Likewise.
4457         (VQMOVN): Likewise.
4458         (VMOVL): Likewise.
4459         (VSHL): Likewise.
4460         (VQSHL): Likewise.
4461         (VSHR_N): Likewise.
4462         (VSHRN_N): Likewise.
4463         (VQSHRN_N): Likewise.
4464         (VQSHRUN_N): Likewise.
4465         (VQSHL_N): Likewise.
4466         (VSHLL_N): Likewise.
4467         (VSRA_N): Likewise.
4468         (pf): Likewise.
4469         (sup): Likewise.
4470         (r): Liekwise.
4471         (maxmin): Likewise.
4472         (shift_op): Likewise.
4473         * config/arm/arm_neon_builtins.def (vaddl): Split to...
4474         (vaddls): ...this and...
4475         (vaddlu): ...this.
4476         (vaddw): Split to...
4477         (vaddws): ...this and...
4478         (vaddwu): ...this.
4479         (vhadd): Split to...
4480         (vhadds): ...this and...
4481         (vhaddu): ...this and...
4482         (vrhadds): ...this and...
4483         (vrhaddu): ...this.
4484         (vqadd): Split to...
4485         (vqadds): ...this and...
4486         (vqaddu): ...this.
4487         (vaddhn): Split to itself and...
4488         (vraddhn): ...this.
4489         (vmul): Split to...
4490         (vmulf): ...this and...
4491         (vmulp): ...this.
4492         (vmlal): Split to...
4493         (vmlals): ...this and...
4494         (vmlalu): ...this.
4495         (vmlsl): Split to...
4496         (vmlsls): ...this and...
4497         (vmlslu): ...this.
4498         (vqdmulh): Split to itself and...
4499         (vqrdmulh): ...this.
4500         (vmull): Split to...
4501         (vmullp): ...this and...
4502         (vmulls): ...this and...
4503         (vmullu): ...this.
4504         (vmull_n): Split to...
4505         (vmulls_n): ...this and...
4506         (vmullu_n): ...this.
4507         (vmull_lane): Split to...
4508         (vmulls_lane): ...this and...
4509         (vmullu_lane): ...this.
4510         (vqdmulh_n): Split to itself and...
4511         (vqrdmulh_n): ...this.
4512         (vqdmulh_lane): Split to itself and...
4513         (vqrdmulh_lane): ...this.
4514         (vshl): Split to...
4515         (vshls): ...this and...
4516         (vshlu): ...this and...
4517         (vrshls): ...this and...
4518         (vrshlu): ...this.
4519         (vqshl): Split to...
4520         (vqshls): ...this and...
4521         (vqrshlu): ...this and...
4522         (vqrshls): ...this and...
4523         (vqrshlu): ...this.
4524         (vshr_n): Split to...
4525         (vshrs_n): ...this and...
4526         (vshru_n): ...this and...
4527         (vrshrs_n): ...this and...
4528         (vrshru_n): ...this.
4529         (vshrn_n): Split to itself and...
4530         (vrshrn_n): ...this.
4531         (vqshrn_n): Split to...
4532         (vqshrns_n): ...this and...
4533         (vqshrnu_n): ...this and...
4534         (vqrshrns_n): ...this and...
4535         (vqrshrnu_n): ...this.
4536         (vqshrun_n): Split to itself and...
4537         (vqrshrun_n): ...this.
4538         (vqshl_n): Split to...
4539         (vqshl_s_n): ...this and...
4540         (vqshl_u_n): ...this.
4541         (vshll_n): Split to...
4542         (vshlls_n): ...this and...
4543         (vshllu_n): ...this.
4544         (vsra_n): Split to...
4545         (vsras_n): ...this and...
4546         (vsrau_n): ...this and.
4547         (vrsras_n): ...this and...
4548         (vrsrau_n): ...this and.
4549         (vsubl): Split to...
4550         (vsubls): ...this and...
4551         (vsublu): ...this.
4552         (vsubw): Split to...
4553         (vsubws): ...this and...
4554         (vsubwu): ...this.
4555         (vqsub): Split to...
4556         (vqsubs): ...this and...
4557         (vqsubu): ...this.
4558         (vhsub): Split to...
4559         (vhsubs): ...this and...
4560         (vhsubu): ...this.
4561         (vsubhn): Split to itself and...
4562         (vrsubhn): ...this.
4563         (vabd): Split to...
4564         (vabds): ...this and...
4565         (vabdu): ...this and...
4566         (vabdf): ...this.
4567         (vabdl): Split to...
4568         (vabdls): ...this and...
4569         (vabdlu): ...this.
4570         (vaba): Split to...
4571         (vabas): ...this and...
4572         (vabau): ...this and...
4573         (vabal): Split to...
4574         (vabals): ...this and...
4575         (vabalu): ...this.
4576         (vmax): Split to...
4577         (vmaxs): ...this and...
4578         (vmaxu): ...this and...
4579         (vmaxf): ...this.
4580         (vmin): Split to...
4581         (vmins): ...this and...
4582         (vminu): ...this and...
4583         (vminf): ...this.
4584         (vpmax): Split to...
4585         (vpmaxs): ...this and...
4586         (vpmaxu): ...this and...
4587         (vpmaxf): ...this.
4588         (vpmin): Split to...
4589         (vpmins): ...this and...
4590         (vpminu): ...this and...
4591         (vpminf): ...this.
4592         (vpaddl): Split to...
4593         (vpaddls): ...this and...
4594         (vpaddlu): ...this.
4595         (vpadal): Split to...
4596         (vpadals): ...this and...
4597         (vpadalu): ...this.
4598         (vget_laneu): New.
4599         (vqmovn): Split to...
4600         (vqmovns): ...this and...
4601         (vqmovnu): ...this.
4602         (vmovl): Split to...
4603         (vmovls): ...this and...
4604         (vmovlu): ...this.
4605         (vmlal_lane): Split to...
4606         (vmlals_lane): ...this and...
4607         (vmlalu_lane): ...this.
4608         (vmlsl_lane): Split to...
4609         (vmlsls_lane): ...this and...
4610         (vmlslu_lane): ...this.
4611         (vmlal_n): Split to...
4612         (vmlals_n): ...this and...
4613         (vmlalu_n): ...this.
4614         (vmlsl_n): Split to...
4615         (vmlsls_n): ...this and...
4616         (vmlslu_n): ...this.
4617         (vext): Make type "SHIFTINSERT".
4618         (vcvt): Split to...
4619         (vcvts): ...this and...
4620         (vcvtu): ...this.
4621         (vcvt_n): Split to...
4622         (vcvts_n): ...this and...
4623         (vcvtu_n): ...this.
4624         * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
4625         (vaddl_s16): Likewise.
4626         (vaddl_s32): Likewise.
4627         (vaddl_u8): Likewise.
4628         (vaddl_u16): Likewise.
4629         (vaddl_u32): Likewise.
4630         (vaddw_s8): Likewise.
4631         (vaddw_s16): Likewise.
4632         (vaddw_s32): Likewise.
4633         (vaddw_u8): Likewise.
4634         (vaddw_u16): Likewise.
4635         (vaddw_u32): Likewise.
4636         (vhadd_s8): Likewise.
4637         (vhadd_s16): Likewise.
4638         (vhadd_s32): Likewise.
4639         (vhadd_u8): Likewise.
4640         (vhadd_u16): Likewise.
4641         (vhadd_u32): Likewise.
4642         (vhaddq_s8): Likewise.
4643         (vhaddq_s16): Likewise.
4644         (vhaddq_s32): Likewise.
4645         (vhaddq_u8): Likewise.
4646         (vhaddq_u16): Likewise.
4647         (vrhadd_s8): Likewise.
4648         (vrhadd_s16): Likewise.
4649         (vrhadd_s32): Likewise.
4650         (vrhadd_u8): Likewise.
4651         (vrhadd_u16): Likewise.
4652         (vrhadd_u32): Likewise.
4653         (vrhaddq_s8): Likewise.
4654         (vrhaddq_s16): Likewise.
4655         (vrhaddq_s32): Likewise.
4656         (vrhaddq_u8): Likewise.
4657         (vrhaddq_u16): Likewise.
4658         (vrhaddq_u32): Likewise.
4659         (vqadd_s8): Likewise.
4660         (vqadd_s16): Likewise.
4661         (vqadd_s32): Likewise.
4662         (vqadd_s64): Likewise.
4663         (vqadd_u8): Likewise.
4664         (vqadd_u16): Likewise.
4665         (vqadd_u32): Likewise.
4666         (vqadd_u64): Likewise.
4667         (vqaddq_s8): Likewise.
4668         (vqaddq_s16): Likewise.
4669         (vqaddq_s32): Likewise.
4670         (vqaddq_s64): Likewise.
4671         (vqaddq_u8): Likewise.
4672         (vqaddq_u16): Likewise.
4673         (vqaddq_u32): Likewise.
4674         (vqaddq_u64): Likewise.
4675         (vaddhn_s16): Likewise.
4676         (vaddhn_s32): Likewise.
4677         (vaddhn_s64): Likewise.
4678         (vaddhn_u16): Likewise.
4679         (vaddhn_u32): Likewise.
4680         (vaddhn_u64): Likewise.
4681         (vraddhn_s16): Likewise.
4682         (vraddhn_s32): Likewise.
4683         (vraddhn_s64): Likewise.
4684         (vraddhn_u16): Likewise.
4685         (vraddhn_u32): Likewise.
4686         (vraddhn_u64): Likewise.
4687         (vmul_p8): Likewise.
4688         (vmulq_p8): Likewise.
4689         (vqdmulh_s16): Likewise.
4690         (vqdmulh_s32): Likewise.
4691         (vqdmulhq_s16): Likewise.
4692         (vqdmulhq_s32): Likewise.
4693         (vqrdmulh_s16): Likewise.
4694         (vqrdmulh_s32): Likewise.
4695         (vqrdmulhq_s16): Likewise.
4696         (vqrdmulhq_s32): Likewise.
4697         (vmull_s8): Likewise.
4698         (vmull_s16): Likewise.
4699         (vmull_s32): Likewise.
4700         (vmull_u8): Likewise.
4701         (vmull_u16): Likewise.
4702         (vmull_u32): Likewise.
4703         (vmull_p8): Likewise.
4704         (vqdmull_s16): Likewise.
4705         (vqdmull_s32): Likewise.
4706         (vmla_s8): Likewise.
4707         (vmla_s16): Likewise.
4708         (vmla_s32): Likewise.
4709         (vmla_f32): Likewise.
4710         (vmla_u8): Likewise.
4711         (vmla_u16): Likewise.
4712         (vmla_u32): Likewise.
4713         (vmlaq_s8): Likewise.
4714         (vmlaq_s16): Likewise.
4715         (vmlaq_s32): Likewise.
4716         (vmlaq_f32): Likewise.
4717         (vmlaq_u8): Likewise.
4718         (vmlaq_u16): Likewise.
4719         (vmlaq_u32): Likewise.
4720         (vmlal_s8): Likewise.
4721         (vmlal_s16): Likewise.
4722         (vmlal_s32): Likewise.
4723         (vmlal_u8): Likewise.
4724         (vmlal_u16): Likewise.
4725         (vmlal_u32): Likewise.
4726         (vqdmlal_s16): Likewise.
4727         (vqdmlal_s32): Likewise.
4728         (vmls_s8): Likewise.
4729         (vmls_s16): Likewise.
4730         (vmls_s32): Likewise.
4731         (vmls_f32): Likewise.
4732         (vmls_u8): Likewise.
4733         (vmls_u16): Likewise.
4734         (vmls_u32): Likewise.
4735         (vmlsq_s8): Likewise.
4736         (vmlsq_s16): Likewise.
4737         (vmlsq_s32): Likewise.
4738         (vmlsq_f32): Likewise.
4739         (vmlsq_u8): Likewise.
4740         (vmlsq_u16): Likewise.
4741         (vmlsq_u32): Likewise.
4742         (vmlsl_s8): Likewise.
4743         (vmlsl_s16): Likewise.
4744         (vmlsl_s32): Likewise.
4745         (vmlsl_u8): Likewise.
4746         (vmlsl_u16): Likewise.
4747         (vmlsl_u32): Likewise.
4748         (vqdmlsl_s16): Likewise.
4749         (vqdmlsl_s32): Likewise.
4750         (vfma_f32): Likewise.
4751         (vfmaq_f32): Likewise.
4752         (vfms_f32): Likewise.
4753         (vfmsq_f32): Likewise.
4754         (vsubl_s8): Likewise.
4755         (vsubl_s16): Likewise.
4756         (vsubl_s32): Likewise.
4757         (vsubl_u8): Likewise.
4758         (vsubl_u16): Likewise.
4759         (vsubl_u32): Likewise.
4760         (vsubw_s8): Likewise.
4761         (vsubw_s16): Likewise.
4762         (vsubw_s32): Likewise.
4763         (vsubw_u8): Likewise.
4764         (vsubw_u16): Likewise.
4765         (vsubw_u32): Likewise.
4766         (vhsub_s8): Likewise.
4767         (vhsub_s16): Likewise.
4768         (vhsub_s32): Likewise.
4769         (vhsub_u8): Likewise.
4770         (vhsub_u16): Likewise.
4771         (vhsub_u32): Likewise.
4772         (vhsubq_s8): Likewise.
4773         (vhsubq_s16): Likewise.
4774         (vhsubq_s32): Likewise.
4775         (vhsubq_u8): Likewise.
4776         (vhsubq_u16): Likewise.
4777         (vhsubq_u32): Likewise.
4778         (vqsub_s8): Likewise.
4779         (vqsub_s16): Likewise.
4780         (vqsub_s32): Likewise.
4781         (vqsub_s64): Likewise.
4782         (vqsub_u8): Likewise.
4783         (vqsub_u16): Likewise.
4784         (vqsub_u32): Likewise.
4785         (vqsub_u64): Likewise.
4786         (vqsubq_s8): Likewise.
4787         (vqsubq_s16): Likewise.
4788         (vqsubq_s32): Likewise.
4789         (vqsubq_s64): Likewise.
4790         (vqsubq_u8): Likewise.
4791         (vqsubq_u16): Likewise.
4792         (vqsubq_u32): Likewise.
4793         (vqsubq_u64): Likewise.
4794         (vsubhn_s16): Likewise.
4795         (vsubhn_s32): Likewise.
4796         (vsubhn_s64): Likewise.
4797         (vsubhn_u16): Likewise.
4798         (vsubhn_u32): Likewise.
4799         (vsubhn_u64): Likewise.
4800         (vrsubhn_s16): Likewise.
4801         (vrsubhn_s32): Likewise.
4802         (vrsubhn_s64): Likewise.
4803         (vrsubhn_u16): Likewise.
4804         (vrsubhn_u32): Likewise.
4805         (vrsubhn_u64): Likewise.
4806         (vceq_s8): Likewise.
4807         (vceq_s16): Likewise.
4808         (vceq_s32): Likewise.
4809         (vceq_f32): Likewise.
4810         (vceq_u8): Likewise.
4811         (vceq_u16): Likewise.
4812         (vceq_u32): Likewise.
4813         (vceq_p8): Likewise.
4814         (vceqq_s8): Likewise.
4815         (vceqq_s16): Likewise.
4816         (vceqq_s32): Likewise.
4817         (vceqq_f32): Likewise.
4818         (vceqq_u8): Likewise.
4819         (vceqq_u16): Likewise.
4820         (vceqq_u32): Likewise.
4821         (vceqq_p8): Likewise.
4822         (vcge_s8): Likewise.
4823         (vcge_s16): Likewise.
4824         (vcge_s32): Likewise.
4825         (vcge_f32): Likewise.
4826         (vcge_u8): Likewise.
4827         (vcge_u16): Likewise.
4828         (vcge_u32): Likewise.
4829         (vcgeq_s8): Likewise.
4830         (vcgeq_s16): Likewise.
4831         (vcgeq_s32): Likewise.
4832         (vcgeq_f32): Likewise.
4833         (vcgeq_u8): Likewise.
4834         (vcgeq_u16): Likewise.
4835         (vcgeq_u32): Likewise.
4836         (vcle_s8): Likewise.
4837         (vcle_s16): Likewise.
4838         (vcle_s32): Likewise.
4839         (vcle_f32): Likewise.
4840         (vcle_u8): Likewise.
4841         (vcle_u16): Likewise.
4842         (vcle_u32): Likewise.
4843         (vcleq_s8): Likewise.
4844         (vcleq_s16): Likewise.
4845         (vcleq_s32): Likewise.
4846         (vcleq_f32): Likewise.
4847         (vcleq_u8): Likewise.
4848         (vcleq_u16): Likewise.
4849         (vcleq_u32): Likewise.
4850         (vcgt_s8): Likewise.
4851         (vcgt_s16): Likewise.
4852         (vcgt_s32): Likewise.
4853         (vcgt_f32): Likewise.
4854         (vcgt_u8): Likewise.
4855         (vcgt_u16): Likewise.
4856         (vcgt_u32): Likewise.
4857         (vcgtq_s8): Likewise.
4858         (vcgtq_s16): Likewise.
4859         (vcgtq_s32): Likewise.
4860         (vcgtq_f32): Likewise.
4861         (vcgtq_u8): Likewise.
4862         (vcgtq_u16): Likewise.
4863         (vcgtq_u32): Likewise.
4864         (vclt_s8): Likewise.
4865         (vclt_s16): Likewise.
4866         (vclt_s32): Likewise.
4867         (vclt_f32): Likewise.
4868         (vclt_u8): Likewise.
4869         (vclt_u16): Likewise.
4870         (vclt_u32): Likewise.
4871         (vcltq_s8): Likewise.
4872         (vcltq_s16): Likewise.
4873         (vcltq_s32): Likewise.
4874         (vcltq_f32): Likewise.
4875         (vcltq_u8): Likewise.
4876         (vcltq_u16): Likewise.
4877         (vcltq_u32): Likewise.
4878         (vcage_f32): Likewise.
4879         (vcageq_f32): Likewise.
4880         (vcale_f32): Likewise.
4881         (vcaleq_f32): Likewise.
4882         (vcagt_f32): Likewise.
4883         (vcagtq_f32): Likewise.
4884         (vcalt_f32): Likewise.
4885         (vcaltq_f32): Likewise.
4886         (vtst_s8): Likewise.
4887         (vtst_s16): Likewise.
4888         (vtst_s32): Likewise.
4889         (vtst_u8): Likewise.
4890         (vtst_u16): Likewise.
4891         (vtst_u32): Likewise.
4892         (vtst_p8): Likewise.
4893         (vtstq_s8): Likewise.
4894         (vtstq_s16): Likewise.
4895         (vtstq_s32): Likewise.
4896         (vtstq_u8): Likewise.
4897         (vtstq_u16): Likewise.
4898         (vtstq_u32): Likewise.
4899         (vtstq_p8): Likewise.
4900         (vabd_s8): Likewise.
4901         (vabd_s16): Likewise.
4902         (vabd_s32): Likewise.
4903         (vabd_f32): Likewise.
4904         (vabd_u8): Likewise.
4905         (vabd_u16): Likewise.
4906         (vabd_u32): Likewise.
4907         (vabdq_s8): Likewise.
4908         (vabdq_s16): Likewise.
4909         (vabdq_s32): Likewise.
4910         (vabdq_f32): Likewise.
4911         (vabdq_u8): Likewise.
4912         (vabdq_u16): Likewise.
4913         (vabdq_u32): Likewise.
4914         (vabdl_s8): Likewise.
4915         (vabdl_s16): Likewise.
4916         (vabdl_s32): Likewise.
4917         (vabdl_u8): Likewise.
4918         (vabdl_u16): Likewise.
4919         (vabdl_u32): Likewise.
4920         (vaba_s8): Likewise.
4921         (vaba_s16): Likewise.
4922         (vaba_s32): Likewise.
4923         (vaba_u8): Likewise.
4924         (vaba_u16): Likewise.
4925         (vaba_u32): Likewise.
4926         (vabaq_s8): Likewise.
4927         (vabaq_s16): Likewise.
4928         (vabaq_s32): Likewise.
4929         (vabaq_u8): Likewise.
4930         (vabaq_u16): Likewise.
4931         (vabaq_u32): Likewise.
4932         (vabal_s8): Likewise.
4933         (vabal_s16): Likewise.
4934         (vabal_s32): Likewise.
4935         (vabal_u8): Likewise.
4936         (vabal_u16): Likewise.
4937         (vabal_u32): Likewise.
4938         (vmax_s8): Likewise.
4939         (vmax_s16): Likewise.
4940         (vmax_s32): Likewise.
4941         (vmax_f32): Likewise.
4942         (vmax_u8): Likewise.
4943         (vmax_u16): Likewise.
4944         (vmax_u32): Likewise.
4945         (vmaxq_s8): Likewise.
4946         (vmaxq_s16): Likewise.
4947         (vmaxq_s32): Likewise.
4948         (vmaxq_f32): Likewise.
4949         (vmaxq_u8): Likewise.
4950         (vmaxq_u16): Likewise.
4951         (vmaxq_u32): Likewise.
4952         (vmin_s8): Likewise.
4953         (vmin_s16): Likewise.
4954         (vmin_s32): Likewise.
4955         (vmin_f32): Likewise.
4956         (vmin_u8): Likewise.
4957         (vmin_u16): Likewise.
4958         (vmin_u32): Likewise.
4959         (vminq_s8): Likewise.
4960         (vminq_s16): Likewise.
4961         (vminq_s32): Likewise.
4962         (vminq_f32): Likewise.
4963         (vminq_u8): Likewise.
4964         (vminq_u16): Likewise.
4965         (vminq_u32): Likewise.
4966         (vpadd_s8): Likewise.
4967         (vpadd_s16): Likewise.
4968         (vpadd_s32): Likewise.
4969         (vpadd_f32): Likewise.
4970         (vpadd_u8): Likewise.
4971         (vpadd_u16): Likewise.
4972         (vpadd_u32): Likewise.
4973         (vpaddl_s8): Likewise.
4974         (vpaddl_s16): Likewise.
4975         (vpaddl_s32): Likewise.
4976         (vpaddl_u8): Likewise.
4977         (vpaddl_u16): Likewise.
4978         (vpaddl_u32): Likewise.
4979         (vpaddlq_s8): Likewise.
4980         (vpaddlq_s16): Likewise.
4981         (vpaddlq_s32): Likewise.
4982         (vpaddlq_u8): Likewise.
4983         (vpaddlq_u16): Likewise.
4984         (vpaddlq_u32): Likewise.
4985         (vpadal_s8): Likewise.
4986         (vpadal_s16): Likewise.
4987         (vpadal_s32): Likewise.
4988         (vpadal_u8): Likewise.
4989         (vpadal_u16): Likewise.
4990         (vpadal_u32): Likewise.
4991         (vpadalq_s8): Likewise.
4992         (vpadalq_s16): Likewise.
4993         (vpadalq_s32): Likewise.
4994         (vpadalq_u8): Likewise.
4995         (vpadalq_u16): Likewise.
4996         (vpadalq_u32): Likewise.
4997         (vpmax_s8): Likewise.
4998         (vpmax_s16): Likewise.
4999         (vpmax_s32): Likewise.
5000         (vpmax_f32): Likewise.
5001         (vpmax_u8): Likewise.
5002         (vpmax_u16): Likewise.
5003         (vpmax_u32): Likewise.
5004         (vpmin_s8): Likewise.
5005         (vpmin_s16): Likewise.
5006         (vpmin_s32): Likewise.
5007         (vpmin_f32): Likewise.
5008         (vpmin_u8): Likewise.
5009         (vpmin_u16): Likewise.
5010         (vpmin_u32): Likewise.
5011         (vrecps_f32): Likewise.
5012         (vrecpsq_f32): Likewise.
5013         (vrsqrts_f32): Likewise.
5014         (vrsqrtsq_f32): Likewise.
5015         (vshl_s8): Likewise.
5016         (vshl_s16): Likewise.
5017         (vshl_s32): Likewise.
5018         (vshl_s64): Likewise.
5019         (vshl_u8): Likewise.
5020         (vshl_u16): Likewise.
5021         (vshl_u32): Likewise.
5022         (vshl_u64): Likewise.
5023         (vshlq_s8): Likewise.
5024         (vshlq_s16): Likewise.
5025         (vshlq_s32): Likewise.
5026         (vshlq_s64): Likewise.
5027         (vshlq_u8): Likewise.
5028         (vshlq_u16): Likewise.
5029         (vshlq_u32): Likewise.
5030         (vshlq_u64): Likewise.
5031         (vrshl_s8): Likewise.
5032         (vrshl_s16): Likewise.
5033         (vrshl_s32): Likewise.
5034         (vrshl_s64): Likewise.
5035         (vrshl_u8): Likewise.
5036         (vrshl_u16): Likewise.
5037         (vrshl_u32): Likewise.
5038         (vrshl_u64): Likewise.
5039         (vrshlq_s8): Likewise.
5040         (vrshlq_s16): Likewise.
5041         (vrshlq_s32): Likewise.
5042         (vrshlq_s64): Likewise.
5043         (vrshlq_u8): Likewise.
5044         (vrshlq_u16): Likewise.
5045         (vrshlq_u32): Likewise.
5046         (vrshlq_u64): Likewise.
5047         (vqshl_s8): Likewise.
5048         (vqshl_s16): Likewise.
5049         (vqshl_s32): Likewise.
5050         (vqshl_s64): Likewise.
5051         (vqshl_u8): Likewise.
5052         (vqshl_u16): Likewise.
5053         (vqshl_u32): Likewise.
5054         (vqshl_u64): Likewise.
5055         (vqshlq_s8): Likewise.
5056         (vqshlq_s16): Likewise.
5057         (vqshlq_s32): Likewise.
5058         (vqshlq_s64): Likewise.
5059         (vqshlq_u8): Likewise.
5060         (vqshlq_u16): Likewise.
5061         (vqshlq_u32): Likewise.
5062         (vqshlq_u64): Likewise.
5063         (vqrshl_s8): Likewise.
5064         (vqrshl_s16): Likewise.
5065         (vqrshl_s32): Likewise.
5066         (vqrshl_s64): Likewise.
5067         (vqrshl_u8): Likewise.
5068         (vqrshl_u16): Likewise.
5069         (vqrshl_u32): Likewise.
5070         (vqrshl_u64): Likewise.
5071         (vqrshlq_s8): Likewise.
5072         (vqrshlq_s16): Likewise.
5073         (vqrshlq_s32): Likewise.
5074         (vqrshlq_s64): Likewise.
5075         (vqrshlq_u8): Likewise.
5076         (vqrshlq_u16): Likewise.
5077         (vqrshlq_u32): Likewise.
5078         (vqrshlq_u64): Likewise.
5079         (vshr_n_s8): Likewise.
5080         (vshr_n_s16): Likewise.
5081         (vshr_n_s32): Likewise.
5082         (vshr_n_s64): Likewise.
5083         (vshr_n_u8): Likewise.
5084         (vshr_n_u16): Likewise.
5085         (vshr_n_u32): Likewise.
5086         (vshr_n_u64): Likewise.
5087         (vshrq_n_s8): Likewise.
5088         (vshrq_n_s16): Likewise.
5089         (vshrq_n_s32): Likewise.
5090         (vshrq_n_s64): Likewise.
5091         (vshrq_n_u8): Likewise.
5092         (vshrq_n_u16): Likewise.
5093         (vshrq_n_u32): Likewise.
5094         (vshrq_n_u64): Likewise.
5095         (vrshr_n_s8): Likewise.
5096         (vrshr_n_s16): Likewise.
5097         (vrshr_n_s32): Likewise.
5098         (vrshr_n_s64): Likewise.
5099         (vrshr_n_u8): Likewise.
5100         (vrshr_n_u16): Likewise.
5101         (vrshr_n_u32): Likewise.
5102         (vrshr_n_u64): Likewise.
5103         (vrshrq_n_s8): Likewise.
5104         (vrshrq_n_s16): Likewise.
5105         (vrshrq_n_s32): Likewise.
5106         (vrshrq_n_s64): Likewise.
5107         (vrshrq_n_u8): Likewise.
5108         (vrshrq_n_u16): Likewise.
5109         (vrshrq_n_u32): Likewise.
5110         (vrshrq_n_u64): Likewise.
5111         (vshrn_n_s16): Likewise.
5112         (vshrn_n_s32): Likewise.
5113         (vshrn_n_s64): Likewise.
5114         (vshrn_n_u16): Likewise.
5115         (vshrn_n_u32): Likewise.
5116         (vshrn_n_u64): Likewise.
5117         (vrshrn_n_s16): Likewise.
5118         (vrshrn_n_s32): Likewise.
5119         (vrshrn_n_s64): Likewise.
5120         (vrshrn_n_u16): Likewise.
5121         (vrshrn_n_u32): Likewise.
5122         (vrshrn_n_u64): Likewise.
5123         (vqshrn_n_s16): Likewise.
5124         (vqshrn_n_s32): Likewise.
5125         (vqshrn_n_s64): Likewise.
5126         (vqshrn_n_u16): Likewise.
5127         (vqshrn_n_u32): Likewise.
5128         (vqshrn_n_u64): Likewise.
5129         (vqrshrn_n_s16): Likewise.
5130         (vqrshrn_n_s32): Likewise.
5131         (vqrshrn_n_s64): Likewise.
5132         (vqrshrn_n_u16): Likewise.
5133         (vqrshrn_n_u32): Likewise.
5134         (vqrshrn_n_u64): Likewise.
5135         (vqshrun_n_s16): Likewise.
5136         (vqshrun_n_s32): Likewise.
5137         (vqshrun_n_s64): Likewise.
5138         (vqrshrun_n_s16): Likewise.
5139         (vqrshrun_n_s32): Likewise.
5140         (vqrshrun_n_s64): Likewise.
5141         (vshl_n_s8): Likewise.
5142         (vshl_n_s16): Likewise.
5143         (vshl_n_s32): Likewise.
5144         (vshl_n_s64): Likewise.
5145         (vshl_n_u8): Likewise.
5146         (vshl_n_u16): Likewise.
5147         (vshl_n_u32): Likewise.
5148         (vshl_n_u64): Likewise.
5149         (vshlq_n_s8): Likewise.
5150         (vshlq_n_s16): Likewise.
5151         (vshlq_n_s32): Likewise.
5152         (vshlq_n_s64): Likewise.
5153         (vshlq_n_u8): Likewise.
5154         (vshlq_n_u16): Likewise.
5155         (vshlq_n_u32): Likewise.
5156         (vshlq_n_u64): Likewise.
5157         (vqshl_n_s8): Likewise.
5158         (vqshl_n_s16): Likewise.
5159         (vqshl_n_s32): Likewise.
5160         (vqshl_n_s64): Likewise.
5161         (vqshl_n_u8): Likewise.
5162         (vqshl_n_u16): Likewise.
5163         (vqshl_n_u32): Likewise.
5164         (vqshl_n_u64): Likewise.
5165         (vqshlq_n_s8): Likewise.
5166         (vqshlq_n_s16): Likewise.
5167         (vqshlq_n_s32): Likewise.
5168         (vqshlq_n_s64): Likewise.
5169         (vqshlq_n_u8): Likewise.
5170         (vqshlq_n_u16): Likewise.
5171         (vqshlq_n_u32): Likewise.
5172         (vqshlq_n_u64): Likewise.
5173         (vqshlu_n_s8): Likewise.
5174         (vqshlu_n_s16): Likewise.
5175         (vqshlu_n_s32): Likewise.
5176         (vqshlu_n_s64): Likewise.
5177         (vqshluq_n_s8): Likewise.
5178         (vqshluq_n_s16): Likewise.
5179         (vqshluq_n_s32): Likewise.
5180         (vqshluq_n_s64): Likewise.
5181         (vshll_n_s8): Likewise.
5182         (vshll_n_s16): Likewise.
5183         (vshll_n_s32): Likewise.
5184         (vshll_n_u8): Likewise.
5185         (vshll_n_u16): Likewise.
5186         (vshll_n_u32): Likewise.
5187         (vsra_n_s8): Likewise.
5188         (vsra_n_s16): Likewise.
5189         (vsra_n_s32): Likewise.
5190         (vsra_n_s64): Likewise.
5191         (vsra_n_u8): Likewise.
5192         (vsra_n_u16): Likewise.
5193         (vsra_n_u32): Likewise.
5194         (vsra_n_u64): Likewise.
5195         (vsraq_n_s8): Likewise.
5196         (vsraq_n_s16): Likewise.
5197         (vsraq_n_s32): Likewise.
5198         (vsraq_n_s64): Likewise.
5199         (vsraq_n_u8): Likewise.
5200         (vsraq_n_u16): Likewise.
5201         (vsraq_n_u32): Likewise.
5202         (vsraq_n_u64): Likewise.
5203         (vrsra_n_s8): Likewise.
5204         (vrsra_n_s16): Likewise.
5205         (vrsra_n_s32): Likewise.
5206         (vrsra_n_s64): Likewise.
5207         (vrsra_n_u8): Likewise.
5208         (vrsra_n_u16): Likewise.
5209         (vrsra_n_u32): Likewise.
5210         (vrsra_n_u64): Likewise.
5211         (vrsraq_n_s8): Likewise.
5212         (vrsraq_n_s16): Likewise.
5213         (vrsraq_n_s32): Likewise.
5214         (vrsraq_n_s64): Likewise.
5215         (vrsraq_n_u8): Likewise.
5216         (vrsraq_n_u16): Likewise.
5217         (vrsraq_n_u32): Likewise.
5218         (vrsraq_n_u64): Likewise.
5219         (vabs_s8): Likewise.
5220         (vabs_s16): Likewise.
5221         (vabs_s32): Likewise.
5222         (vabs_f32): Likewise.
5223         (vabsq_s8): Likewise.
5224         (vabsq_s16): Likewise.
5225         (vabsq_s32): Likewise.
5226         (vabsq_f32): Likewise.
5227         (vqabs_s8): Likewise.
5228         (vqabs_s16): Likewise.
5229         (vqabs_s32): Likewise.
5230         (vqabsq_s8): Likewise.
5231         (vqabsq_s16): Likewise.
5232         (vqabsq_s32): Likewise.
5233         (vneg_s8): Likewise.
5234         (vneg_s16): Likewise.
5235         (vneg_s32): Likewise.
5236         (vneg_f32): Likewise.
5237         (vnegq_s8): Likewise.
5238         (vnegq_s16): Likewise.
5239         (vnegq_s32): Likewise.
5240         (vnegq_f32): Likewise.
5241         (vqneg_s8): Likewise.
5242         (vqneg_s16): Likewise.
5243         (vqneg_s32): Likewise.
5244         (vqnegq_s8): Likewise.
5245         (vqnegq_s16): Likewise.
5246         (vqnegq_s32): Likewise.
5247         (vmvn_s8): Likewise.
5248         (vmvn_s16): Likewise.
5249         (vmvn_s32): Likewise.
5250         (vmvn_u8): Likewise.
5251         (vmvn_u16): Likewise.
5252         (vmvn_u32): Likewise.
5253         (vmvn_p8): Likewise.
5254         (vmvnq_s8): Likewise.
5255         (vmvnq_s16): Likewise.
5256         (vmvnq_s32): Likewise.
5257         (vmvnq_u8): Likewise.
5258         (vmvnq_u16): Likewise.
5259         (vmvnq_u32): Likewise.
5260         (vmvnq_p8): Likewise.
5261         (vcls_s8): Likewise.
5262         (vcls_s16): Likewise.
5263         (vcls_s32): Likewise.
5264         (vclsq_s8): Likewise.
5265         (vclsq_s16): Likewise.
5266         (vclsq_s32): Likewise.
5267         (vclz_s8): Likewise.
5268         (vclz_s16): Likewise.
5269         (vclz_s32): Likewise.
5270         (vclz_u8): Likewise.
5271         (vclz_u16): Likewise.
5272         (vclz_u32): Likewise.
5273         (vclzq_s8): Likewise.
5274         (vclzq_s16): Likewise.
5275         (vclzq_s32): Likewise.
5276         (vclzq_u8): Likewise.
5277         (vclzq_u16): Likewise.
5278         (vclzq_u32): Likewise.
5279         (vcnt_s8): Likewise.
5280         (vcnt_u8): Likewise.
5281         (vcnt_p8): Likewise.
5282         (vcntq_s8): Likewise.
5283         (vcntq_u8): Likewise.
5284         (vcntq_p8): Likewise.
5285         (vrecpe_f32): Likewise.
5286         (vrecpe_u32): Likewise.
5287         (vrecpeq_f32): Likewise.
5288         (vrecpeq_u32): Likewise.
5289         (vrsqrte_f32): Likewise.
5290         (vrsqrte_u32): Likewise.
5291         (vrsqrteq_f32): Likewise.
5292         (vrsqrteq_u32): Likewise.
5293         (vget_lane_s8): Likewise.
5294         (vget_lane_s16): Likewise.
5295         (vget_lane_s32): Likewise.
5296         (vget_lane_f32): Likewise.
5297         (vget_lane_u8): Likewise.
5298         (vget_lane_u16): Likewise.
5299         (vget_lane_u32): Likewise.
5300         (vget_lane_p8): Likewise.
5301         (vget_lane_p16): Likewise.
5302         (vget_lane_s64): Likewise.
5303         (vget_lane_u64): Likewise.
5304         (vgetq_lane_s8): Likewise.
5305         (vgetq_lane_s16): Likewise.
5306         (vgetq_lane_s32): Likewise.
5307         (vgetq_lane_f32): Likewise.
5308         (vgetq_lane_u8): Likewise.
5309         (vgetq_lane_u16): Likewise.
5310         (vgetq_lane_u32): Likewise.
5311         (vgetq_lane_p8): Likewise.
5312         (vgetq_lane_p16): Likewise.
5313         (vgetq_lane_s64): Likewise.
5314         (vgetq_lane_u64): Likewise.
5315         (vcvt_s32_f32): Likewise.
5316         (vcvt_f32_s32): Likewise.
5317         (vcvt_f32_u32): Likewise.
5318         (vcvt_u32_f32): Likewise.
5319         (vcvtq_s32_f32): Likewise.
5320         (vcvtq_f32_s32): Likewise.
5321         (vcvtq_f32_u32): Likewise.
5322         (vcvtq_u32_f32): Likewise.
5323         (vcvt_n_s32_f32): Likewise.
5324         (vcvt_n_f32_s32): Likewise.
5325         (vcvt_n_f32_u32): Likewise.
5326         (vcvt_n_u32_f32): Likewise.
5327         (vcvtq_n_s32_f32): Likewise.
5328         (vcvtq_n_f32_s32): Likewise.
5329         (vcvtq_n_f32_u32): Likewise.
5330         (vcvtq_n_u32_f32): Likewise.
5331         (vmovn_s16): Likewise.
5332         (vmovn_s32): Likewise.
5333         (vmovn_s64): Likewise.
5334         (vmovn_u16): Likewise.
5335         (vmovn_u32): Likewise.
5336         (vmovn_u64): Likewise.
5337         (vqmovn_s16): Likewise.
5338         (vqmovn_s32): Likewise.
5339         (vqmovn_s64): Likewise.
5340         (vqmovn_u16): Likewise.
5341         (vqmovn_u32): Likewise.
5342         (vqmovn_u64): Likewise.
5343         (vqmovun_s16): Likewise.
5344         (vqmovun_s32): Likewise.
5345         (vqmovun_s64): Likewise.
5346         (vmovl_s8): Likewise.
5347         (vmovl_s16): Likewise.
5348         (vmovl_s32): Likewise.
5349         (vmovl_u8): Likewise.
5350         (vmovl_u16): Likewise.
5351         (vmovl_u32): Likewise.
5352         (vmul_lane_s16): Likewise.
5353         (vmul_lane_s32): Likewise.
5354         (vmul_lane_f32): Likewise.
5355         (vmul_lane_u16): Likewise.
5356         (vmul_lane_u32): Likewise.
5357         (vmulq_lane_s16): Likewise.
5358         (vmulq_lane_s32): Likewise.
5359         (vmulq_lane_f32): Likewise.
5360         (vmulq_lane_u16): Likewise.
5361         (vmulq_lane_u32): Likewise.
5362         (vmla_lane_s16): Likewise.
5363         (vmla_lane_s32): Likewise.
5364         (vmla_lane_f32): Likewise.
5365         (vmla_lane_u16): Likewise.
5366         (vmla_lane_u32): Likewise.
5367         (vmlaq_lane_s16): Likewise.
5368         (vmlaq_lane_s32): Likewise.
5369         (vmlaq_lane_f32): Likewise.
5370         (vmlaq_lane_u16): Likewise.
5371         (vmlaq_lane_u32): Likewise.
5372         (vmlal_lane_s16): Likewise.
5373         (vmlal_lane_s32): Likewise.
5374         (vmlal_lane_u16): Likewise.
5375         (vmlal_lane_u32): Likewise.
5376         (vqdmlal_lane_s16): Likewise.
5377         (vqdmlal_lane_s32): Likewise.
5378         (vmls_lane_s16): Likewise.
5379         (vmls_lane_s32): Likewise.
5380         (vmls_lane_f32): Likewise.
5381         (vmls_lane_u16): Likewise.
5382         (vmls_lane_u32): Likewise.
5383         (vmlsq_lane_s16): Likewise.
5384         (vmlsq_lane_s32): Likewise.
5385         (vmlsq_lane_f32): Likewise.
5386         (vmlsq_lane_u16): Likewise.
5387         (vmlsq_lane_u32): Likewise.
5388         (vmlsl_lane_s16): Likewise.
5389         (vmlsl_lane_s32): Likewise.
5390         (vmlsl_lane_u16): Likewise.
5391         (vmlsl_lane_u32): Likewise.
5392         (vqdmlsl_lane_s16): Likewise.
5393         (vqdmlsl_lane_s32): Likewise.
5394         (vmull_lane_s16): Likewise.
5395         (vmull_lane_s32): Likewise.
5396         (vmull_lane_u16): Likewise.
5397         (vmull_lane_u32): Likewise.
5398         (vqdmull_lane_s16): Likewise.
5399         (vqdmull_lane_s32): Likewise.
5400         (vqdmulhq_lane_s16): Likewise.
5401         (vqdmulhq_lane_s32): Likewise.
5402         (vqdmulh_lane_s16): Likewise.
5403         (vqdmulh_lane_s32): Likewise.
5404         (vqrdmulhq_lane_s16): Likewise.
5405         (vqrdmulhq_lane_s32): Likewise.
5406         (vqrdmulh_lane_s16): Likewise.
5407         (vqrdmulh_lane_s32): Likewise.
5408         (vmul_n_s16): Likewise.
5409         (vmul_n_s32): Likewise.
5410         (vmul_n_f32): Likewise.
5411         (vmul_n_u16): Likewise.
5412         (vmul_n_u32): Likewise.
5413         (vmulq_n_s16): Likewise.
5414         (vmulq_n_s32): Likewise.
5415         (vmulq_n_f32): Likewise.
5416         (vmulq_n_u16): Likewise.
5417         (vmulq_n_u32): Likewise.
5418         (vmull_n_s16): Likewise.
5419         (vmull_n_s32): Likewise.
5420         (vmull_n_u16): Likewise.
5421         (vmull_n_u32): Likewise.
5422         (vqdmull_n_s16): Likewise.
5423         (vqdmull_n_s32): Likewise.
5424         (vqdmulhq_n_s16): Likewise.
5425         (vqdmulhq_n_s32): Likewise.
5426         (vqdmulh_n_s16): Likewise.
5427         (vqdmulh_n_s32): Likewise.
5428         (vqrdmulhq_n_s16): Likewise.
5429         (vqrdmulhq_n_s32): Likewise.
5430         (vqrdmulh_n_s16): Likewise.
5431         (vqrdmulh_n_s32): Likewise.
5432         (vmla_n_s16): Likewise.
5433         (vmla_n_s32): Likewise.
5434         (vmla_n_f32): Likewise.
5435         (vmla_n_u16): Likewise.
5436         (vmla_n_u32): Likewise.
5437         (vmlaq_n_s16): Likewise.
5438         (vmlaq_n_s32): Likewise.
5439         (vmlaq_n_f32): Likewise.
5440         (vmlaq_n_u16): Likewise.
5441         (vmlaq_n_u32): Likewise.
5442         (vmlal_n_s16): Likewise.
5443         (vmlal_n_s32): Likewise.
5444         (vmlal_n_u16): Likewise.
5445         (vmlal_n_u32): Likewise.
5446         (vqdmlal_n_s16): Likewise.
5447         (vqdmlal_n_s32): Likewise.
5448         (vmls_n_s16): Likewise.
5449         (vmls_n_s32): Likewise.
5450         (vmls_n_f32): Likewise.
5451         (vmls_n_u16): Likewise.
5452         (vmls_n_u32): Likewise.
5453         (vmlsq_n_s16): Likewise.
5454         (vmlsq_n_s32): Likewise.
5455         (vmlsq_n_f32): Likewise.
5456         (vmlsq_n_u16): Likewise.
5457         (vmlsq_n_u32): Likewise.
5458         (vmlsl_n_s16): Likewise.
5459         (vmlsl_n_s32): Likewise.
5460         (vmlsl_n_u16): Likewise.
5461         (vmlsl_n_u32): Likewise.
5462         (vqdmlsl_n_s16): Likewise.
5463         (vqdmlsl_n_s32): Likewise.
5464
5465 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5466
5467         * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
5468         Add cost of alu.arith in simple SImode case.
5469
5470 2014-11-18  Jiong Wang  <jiong.wang@arm.com>
5471
5472         * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
5473         registers.
5474
5475 2014-11-18  Marat Zakirov  <m.zakirov@samsung.com>
5476
5477         * opts.c (finish_options): Disable aggressive opts for sanitizer.  
5478         (common_handle_option): Move code to finish_options.  
5479
5480 2014-11-18  Yury Gribov  <y.gribov@samsung.com>
5481
5482         PR sanitizer/63802
5483         * stor-layout.c (min_align_of_type): Respect user alignment
5484         more.
5485
5486 2014-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
5487
5488         * passes.c (remove_cgraph_node_from_order): New.
5489         (do_per_function_toporder): Register cgraph removal
5490         hook.
5491
5492 2014-11-17  Terry Guo  <terry.guo@arm.com>
5493
5494         * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
5495         * config/arm/arm.md (generic_sched): Exclude cortex-m7.
5496         (generic_vfp): Likewise.
5497         * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
5498
5499 2014-11-17  Vladimir Makarov  <vmakarov@redhat.com>
5500
5501         PR rtl-optimization/63906
5502         * lra-remat.c (operand_to_remat): Check SP and
5503         frame_pointer_required.
5504
5505 2014-11-17  Mircea Namolaru  <mircea.namolaru@inria.fr>
5506
5507         * doc/invoke.texi (floop-unroll-and-jam): Document
5508         (loop-unroll-jam-size): Likewise.
5509         (loop-unroll-jam-depth): Likewise.
5510         * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
5511         (getScheduleForBandList): Replaced unsafe union_map reuse.
5512
5513 2014-11-17  Andrew Pinski  <apinski@cavium.com>
5514
5515         * config/aarch64/thunderx.md: Remove copyright which should not
5516         have been there.
5517
5518 2014-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
5519             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5520
5521         * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
5522         Altivec style vector loads that ignore the bottom 3 bits of the
5523         address.
5524         (rs6000_debug_addr_mask): New function to print the addr_mask
5525         values if debugging.
5526         (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
5527         out addr_mask.
5528         (rs6000_setup_reg_addr_masks): Add support for Altivec style
5529         vector loads that ignore the bottom 3 bits of the address.  Allow
5530         pre-increment and pre-decrement on floating point, even if the
5531         -mupper-regs-{sf,df} options were used.
5532         (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
5533         -mupper-regs-df.  Add support for -mupper-regs-sf.  Rearrange code
5534         placement for direct move support.
5535         (rs6000_option_override_internal): Add checks for -mupper-regs-df
5536         requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
5537         If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
5538         depending on the underlying cpu.
5539         (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
5540         (rs6000_secondary_reload_toc_costs): Helper function to identify
5541         costs of a TOC load for secondary reload support.
5542         (rs6000_secondary_reload_memory): Helper function for secondary
5543         reload, to determine if a particular memory operation is directly
5544         handled by the hardware, or if it needs support from secondary
5545         reload to create a valid address.
5546         (rs6000_secondary_reload): Rework code, to be clearer.  If the
5547         appropriate -mupper-regs-{sf,df} is used, use FPR registers to
5548         reload scalar values, since the FPR registers have D-form
5549         addressing. Move most of the code handling memory to the function
5550         rs6000_secondary_reload_memory, and use the reg_addr structure to
5551         determine what type of address modes are supported.  Print more
5552         debug information if -mdebug=addr.
5553         (rs6000_secondary_reload_inner): Rework entire function to be more
5554         general.  Use the reg_addr bits to determine what type of
5555         addressing is supported.
5556         (rs6000_preferred_reload_class): Rework.  Move constant handling
5557         into a single place.  Prefer using FLOAT_REGS for scalar floating
5558         point.
5559         (rs6000_secondary_reload_class): Use a FPR register to move a
5560         value from an Altivec register to a GPR, and vice versa.  Move VSX
5561         handling above traditional floating point.
5562
5563         * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
5564         Delete some spaces in the constraints.
5565         (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
5566         allow using FPR registers to load/store an Altivec register for
5567         scalar floating point types.
5568         (SF->SF move peephole2): Likewise.
5569         (DFmode splitter): Add a define_split to move floating point
5570         constants to the constant pool before register allocation.
5571         Normally constants are put into the pool immediately, but
5572         -ffast-math delays putting them into the constant pool for the
5573         reciprocal approximation support.
5574         (SFmode splitter): Likewise.
5575
5576         * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
5577         (-mupper-regs-sf): Likewise.
5578
5579         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5580         __UPPER_REGS_DF__ if -mupper-regs-df.  Define __UPPER_REGS_SF__ if
5581         -mupper-regs-sf.
5582         (-mupper-regs): New combination option that sets -mupper-regs-sf
5583         and -mupper-regs-df by default if the cpu supports the instructions.
5584
5585         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5586         -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
5587
5588         * config/rs6000/predicates.md (memory_fp_constant): New predicate
5589         to return true if the operand is a floating point constant that
5590         must be put into the constant pool, before register allocation
5591         occurs.
5592
5593         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
5594         -mupper-regs-df by default.
5595         (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
5596         (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
5597         various -mcpu=... options.
5598         (power7 cpu): Enable -mupper-regs-df by default.
5599
5600         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5601         -mupper-regs.
5602
5603 2014-11-17  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5604
5605         * ira-conflicts.c (build_conflict_bit_table): Add the current
5606         object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
5607
5608 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5609
5610         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
5611         (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
5612         (devirtualization_time_bonus): Use it.
5613         (ipcp_discover_new_direct_edges): Likewise.
5614         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
5615         * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
5616
5617 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5618
5619         * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
5620         to optimization_default_node.
5621
5622 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5623
5624         * cgraphunit.c (analyze_functions): Use opt_for_fn.
5625         * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
5626
5627 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5628
5629         * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
5630         (cgraph_node::cannot_return_p): Likewise.
5631         (cgraph_edge::cannot_lead_to_return_p): Likewise.
5632         (cgraph_edge::maybe_hot_p): Likewise.
5633
5634 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5635
5636         * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
5637         (optimize_function_for_size_p): Likewise.
5638         (probably_never_executed): Likewise; replace cfun by fun.
5639
5640 2014-11-17  Alan Lawrence  <alan.lawrence@arm.com>
5641
5642         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
5643         variant reading from memory and assembling to ld1.
5644
5645         * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
5646         vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
5647         vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
5648         vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
5649         vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
5650         vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
5651         vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
5652
5653 2014-11-17  Jason Merrill  <jason@redhat.com>
5654
5655         * tree-inline.c (copy_fn): New.
5656         * tree-inline.h: Declare it.
5657
5658 2014-11-17  Alan Lawrence  <alan.lawrence@arm.com>
5659
5660         * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
5661         * config/aarch64/aarch64-simd-builtins.def (create): Remove.
5662         * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
5663         * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
5664         vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
5665         * config/aarch64/iterators.md (VD1): Remove.
5666
5667 2014-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5668
5669         * config/aarch64/aarch64-cores.def (cortex-a53): Remove
5670         AARCH64_FL_CRYPTO from feature flags.
5671         (cortex-a57): Likewise.
5672         (cortex-a57.cortex-a53): Likewise.
5673
5674 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5675
5676         * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
5677         DECL_FUNCTION_SPECIFIC_TARGET.
5678         * i386.c (ix86_set_current_function): Handle explicit default options.
5679
5680 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5681
5682         * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
5683         instead of BNDmode.
5684         (expand_builtin_mempcpy_with_bounds): Likewise.
5685         (expand_builtin_memset_with_bounds): Likewise.
5686
5687 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5688
5689         * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
5690         ipa-ref.h, plugin-api.h.
5691         (get_string_length): Handle calls with bounds.
5692         (adjust_last_stmt): Likewise.
5693         (handle_builtin_strchr): Likewise.
5694         (handle_builtin_strcpy): Likewise.
5695         (handle_builtin_memcpy): Likewise.
5696         (handle_builtin_strcat): Likewise.
5697
5698 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5699
5700         * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
5701         (chkp_get_nochk_fndecl): New.
5702         (chkp_optimize_string_function_calls): New.
5703         (chkp_opt_execute): Call chkp_optimize_string_function_calls.
5704         * tree-cfg.h (insert_cond_bb): New.
5705         * tree-cfg.c (insert_cond_bb): New.
5706
5707 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5708
5709         * tree-core.h (built_in_class): Add builtin codes to be used
5710         by Pointer Bounds Checker for instrumented builtin functions.
5711         * tree-streamer-in.c: Include ipa-chkp.h.
5712         (streamer_get_builtin_tree): Created instrumented decl if
5713         required.
5714         * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
5715         * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
5716         function decls.
5717         (chkp_maybe_clone_builtin_fndecl): New.
5718         (chkp_maybe_create_clone): Support builtin function decls.
5719         (chkp_versioning): Clone builtin functions.
5720         * tree-chkp.c (chkp_instrument_normal_builtin): New.
5721         (chkp_add_bounds_to_call_stmt): Support builtin functions.
5722         (chkp_replace_function_pointer): Likewise.
5723         * builtins.c (expand_builtin_memcpy_args): New.
5724         (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
5725         (expand_builtin_memcpy_with_bounds): New.
5726         (expand_builtin_mempcpy_with_bounds): New.
5727         (expand_builtin_mempcpy_args): Add orig_exp arg. Support
5728         BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
5729         (expand_builtin_memset_with_bounds): New.
5730         (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
5731         (expand_builtin_with_bounds): New.
5732         * builtins.h (expand_builtin_with_bounds): New.
5733         * expr.c (expand_expr_real_1): Support instrumented builtin calls.
5734
5735 2014-11-17  Dodji Seketeli  <dodji@redhat.com>
5736
5737         * gimple.h (gimple_set_visited, gimple_visited_p)
5738         (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
5739         comments to these accessors.
5740
5741 2014-11-17  Georg-Johann Lay  <avr@gjlay.de>
5742
5743         * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
5744         Set avr_log_details to "all".
5745
5746 2014-11-17  Richard Biener  <rguenther@suse.de>
5747
5748         PR middle-end/63898
5749         * match.pd: Guard X / CST -> X * CST' transform against
5750         zero CST.
5751
5752 2014-11-17  Terry Guo  <terry.guo@arm.com>
5753
5754         * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
5755         format.
5756
5757 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
5758
5759         * ifcvt.c (HAVE_cbranchcc4): Define.
5760         (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
5761         Use HAVE_cbranchcc4.
5762
5763 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5764
5765         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
5766         aarch64_convert_mode, aarch64_gen_ccmp_first,
5767         aarch64_gen_ccmp_next): New functions.
5768         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
5769
5770 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5771
5772         * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
5773         * aarch64.c (aarch64_nzcv_codes): New data.
5774         (aarch64_ccmp_mode_to_code): New.
5775         (aarch64_print_operand): Output nzcv.
5776         config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
5777         New patterns.
5778         (cstore<mode>4): Handle ccmp_cc_register.
5779         * config/aarch64/predicates.md (const0_operand): New.
5780
5781 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5782
5783         * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
5784         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
5785         extacted from aarch64_get_condition_code.
5786         (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
5787         config/aarch64/predicates.md (ccmp_cc_register): New predicate.
5788
5789 014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5790
5791         * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
5792         aarch64_ccmp_operand): New constraints.
5793
5794 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5795
5796         * Makefile.in: Add ccmp.o.
5797         * ccmp.c: New file.
5798         * ccmp.h: New file.
5799         * expr.c: include "ccmp.h"
5800         (expand_cond_expr_using_cmove): Handle VOIDmode.
5801         (expand_expr_real_1): Try to expand ccmp.
5802
5803 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5804
5805         * cfgexpand.c (expand_gimple_cond): Check ccmp.
5806         * expmed.c (emit_cstore): Make it global.
5807         * expmed.h: #include "insn-codes.h"
5808         (emit_cstore): New prototype.
5809         * expr.c (expand_operands): Make it global.
5810         * expr.h (expand_operands): New prototype.
5811         * optabs.c (get_rtx_code): Make it global.
5812         * optabs.h (get_rtx_code): New prototype.
5813
5814 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5815
5816         * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
5817         * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
5818         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
5819
5820 2014-11-16  Patrick Palka  <ppalka@gcc.gnu.org>
5821
5822         PR middle-end/63790
5823         * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
5824         Always combine comparisons or conversions from booleans.
5825
5826 2014-11-16  Jan Hubicka  <hubicka@ucw.cz>
5827
5828         * ipa-polymorphic-call.c
5829         (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
5830         (ipa_polymorphic_call_context::meet_speculation_with): New function.
5831         (ipa_polymorphic_call_context::combine_with): Handle types in construction
5832         better.
5833         (ipa_polymorphic_call_context::equal_to): Do not bother about useless
5834         speculation.
5835         (ipa_polymorphic_call_context::meet_with): New function.
5836         * cgraph.h (class ipa_polymorphic_call_context): Add
5837         meet_width, meet_speculation_with; constify speculation_consistent_p.
5838         * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine with incomming
5839         context.
5840         (propagate_context_accross_jump_function): Likewise; be more cureful.
5841         about set_contains_variable.
5842         (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
5843         (find_more_scalar_values_for_callers_subset): Fix.
5844         (find_more_contexts_for_caller_subset): Perform meet operation.
5845
5846 2014-11-16  Jan Hubicka  <hubicka@ucw.cz>
5847
5848         * passes.c (execute_one_pass): Do not apply all transforms prior
5849         every simple IPA pass.
5850         * cgraphunit.c: Do not include fibheap.h
5851         (expand_thunk): Use get_untransformed_body.
5852         (cgraph_node::expand): Likewise.
5853         * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
5854         * cgraph.c (release_function_body): Do not push cfun when CFG is not there.
5855         (cgraph_node::get_untransformed_body): Break out from ...
5856         (cgraph_node::get_body): ... here; add code to apply all transforms.
5857         * cgraph.h (cgraph_node): Add get_untransformed_body.
5858         * ipa-icf.c (sem_function::init): Use get_untransformed_body.
5859         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5860         * tree-inline.c (expand_call_inline): LIkewise.
5861         * i386.c (ix86_reset_to_default_globals): Break out from ...
5862         (ix86_set_current_function): ... here;
5863         (ix86_reset_previous_fndecl): Use it.
5864         (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
5865
5866 2014-11-16  Eric Botcazou  <ebotcazou@adacore.com>
5867
5868         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
5869         * doc/tm.texi: Regenerate.
5870
5871 2014-11-16  Uros Bizjak  <ubizjak@gmail.com>
5872
5873         * config/sh/sh.c: Do not include algorithm.
5874         (sh_emit_scc_to_t): Replace open-coded swap with std::swap
5875         to swap values.
5876         (sh_emit_compare_and_branch): Ditto.
5877         (sh_emit_compare_and_set): Ditto.
5878         * config/sh/sh.md (replacement peephole2): Ditto.
5879         (cstore4_media): Ditto.
5880         (*fmasf4): Ditto.
5881
5882 2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>
5883
5884         * lra-remat.c (cand_transf_func): Process regno for
5885         rematerialization too.
5886         * lra.c (lra): Switch on rematerialization pass.
5887
5888 2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>
5889
5890         * lra.c (lra): Switch off rematerialization pass.
5891
5892 2014-11-15  Marc Glisse  <marc.glisse@inria.fr>
5893
5894         * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
5895         _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
5896         instead of builtins.
5897         * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
5898         typedefs.
5899         (_mm_sqrt_sd): Fix comment.
5900         (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
5901         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
5902         _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
5903         _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
5904         _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
5905         _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
5906         _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
5907         _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
5908         Use vector extensions instead of builtins.
5909         * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
5910         _mm_mullo_epi32): Likewise.
5911         * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
5912         New typedefs.
5913         (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
5914         _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
5915         Use vector extensions instead of builtins.
5916         * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
5917         _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
5918         _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
5919         _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
5920         _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
5921         _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
5922         _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
5923         * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
5924         New typedefs.
5925         (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
5926         _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
5927         _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
5928         _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
5929         _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
5930         _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
5931         _mm512_div_ps): Use vector extensions instead of builtins.
5932         * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
5933         _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
5934         * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
5935         * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
5936         Likewise.
5937
5938 2014-11-15  Jan Hubicka <hubicka@ucw.cz>
5939
5940         * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
5941         * lto-streamer.h (cl_optimization_stream_out, cl_optimization_stream_in): Declare.
5942         * optc-save-gen.awk: Generate cl_optimization LTO streaming and hashing routines.
5943         * opth-gen.awk: Add prototype of cl_optimization_hash.
5944         * tree-streamer-in.c (unpack_ts_optimization): Remove.
5945         (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
5946         * tree-streamer-out.c (pack_ts_optimization): Remove.
5947         (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
5948
5949 2014-11-15  Mircea Namolaru  <mircea.namolaru@inria.fr>
5950
5951         * common.opt (flag_loop_unroll_and_jam): New flag.
5952         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
5953         jam flag.
5954         (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
5955         * graphite-poly.h (struct poly_bb:map_sepclass): New field
5956         * graphite-poly.c (new_poly_bb): Initialization for new field.
5957         (apply_poly_transforms): Support for unroll and jam flag.
5958         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
5959         separation class.
5960         (generate_luj_sepclass_opt): Build the separation class option.
5961         (generate_luj_options): Set unroll and jam options.
5962         (set_options): Support for unroll and jam options.
5963         (scop_to_isl_ast): Likewise
5964         * graphite-optimize-isl.c (getPrevectorMap_full): New function for
5965         computing the separating class map.
5966         (optimize_isl): Support for the separating class map.
5967         (apply_schedule_map_to_scop): Likewise.
5968         (getScheduleMap): Likewise.
5969         (getScheduleForBand): Likewise.
5970         (getScheduleForBandList): Likewise.
5971         * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
5972         * toplev.c (process_options) Likewise.
5973
5974 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
5975
5976         * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
5977         from...
5978         (replace_loop_annotate): ...here.  Call it on the header and on the
5979         latch block, if any.  Restore proper behavior of final cleanup.
5980
5981 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
5982
5983         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
5984         for max-completely-peeled-insns limit.
5985
5986 2014-11-14  Jan Hubicka  <hubicka@ucw.cz>
5987
5988         * ipa-prop.h (ipa_known_type_data): Remove.
5989         (ipa_binfo_from_known_type_jfunc): Remove.
5990
5991 2014-11-14  Andrew Pinski  <apinski@cavium.com>
5992
5993         * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
5994         over to thunderx.
5995         * config/aarch64/aarch64.md: Include thunderx.md.
5996         (generic_sched): Set to no for thunderx.
5997         * config/aarch64/thunderx.md: New file.
5998
5999 2014-11-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6000
6001         * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
6002         tests for 0.0.
6003
6004         * config/rs6000/vector.md (VEC_R): Move secondary reload support
6005         insns to rs6000.md from vector.md.
6006         (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
6007         (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
6008         (vec_reload_and_plus_<mptrsize>): Likewise.
6009
6010         * config/rs6000/rs6000.md (Fa): New mode attribute to give
6011         constraint for the Altivec registers for a type.
6012         (RELOAD): New mode iterator for all of the types that have
6013         secondary reload address support to load up a base register.
6014         (extendsfdf2_fpr): Use correct constraint.
6015         (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
6016         instruction.
6017         (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
6018         Generate the non-VSX instruction if all registers were FPRs.  Do
6019         not use the patterns in vsx.md for scalar operations.
6020         (floatsi<mode>2_lfiwax_mem): Likewise.
6021         (floatunssi<mode>2_lfiwzx): Likewise.
6022         (floatunssi<mode>2_lfiwzx_mem): Likewise.
6023         (fix_trunc<mode>di2_fctidz): Likewise.
6024         (fixuns_trunc<mode>di2_fctiduz): Likewise.
6025         (fctiwz_<mode>): Likewise.
6026         (fctiwuz_<mode>): Likewise.
6027         (friz): Likewise.
6028         (floatdidf2_fpr): Likewise.
6029         (floatdidf2_mem): Likewise.
6030         (floatunsdidf2): Likewise.
6031         (floatunsdidf2_fcfidu): Likewise.
6032         (floatunsdidf2_mem): Likewise.
6033         (floatdisf2_fcfids): Likewise.
6034         (floatdisf2_mem): Likewise.
6035         (floatdisf2_internal1): Add explicit test for not FCFIDS to make
6036         it more obvious that the code is for pre-ISA 2.06 machines.
6037         (floatdisf2_internal2): Likewise.
6038         (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
6039         Generate the non-VSX instruction if all registers were FPRs.  Do
6040         not use the patterns in vsx.md for scalar operations.
6041         (floatunsdisf2_mem): Likewise.
6042         (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
6043         handlers here from vector.md, and expand the types we generate
6044         reload handlers for.
6045         (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
6046         (vec_reload_and_plus_<mptrsize>): Likewise.
6047
6048         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
6049         vector forms of the instructions.  Move VSX scalar forms to
6050         rs6000.md, and add support for -mupper-regs-sf.
6051         (vsx_floatuns<VSi><mode>2): Likewise.
6052         (vsx_fix_trunc<mode><VSi>2): Likewise.
6053         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6054         (vsx_float_fix_<mode>2): Delete DF version, rename to
6055         vsx_float_fix_v2df2.
6056         (vsx_float_fix_v2df2): Likewise.
6057
6058 2014-11-14  Martin Jambor  <mjambor@suse.cz>
6059
6060         * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
6061         (ipa_pass_through_data): Removed field type_preserved.
6062         (ipa_ancestor_jf_data): removed fields type and type_preserved.
6063         (ipa_jump_func): Removed field known_type.
6064         (ipa_get_jf_known_type_offset): Removed.
6065         (ipa_get_jf_known_type_base_type): Likewise.
6066         (ipa_get_jf_known_type_component_type): Likewise.
6067         (ipa_get_jf_ancestor_type): Likewise.
6068         * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
6069         (ipa_get_jf_pass_through_result): Likewise.
6070         (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
6071         (values_equal_for_ipcp_p): Removed BINFO handling.
6072         (ipa_get_indirect_edge_target_1): Updated comment.
6073         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
6074         of IPA_JF_KNOWN_TYPE jump functions.  Do not print removed fields.
6075         (ipa_set_jf_known_type): Removed.
6076         (ipa_set_jf_simple_pass_through): Do not set removed fields.  Update
6077         all callers.
6078         (ipa_set_jf_arith_pass_through): Likewise.
6079         (ipa_set_ancestor_jf): Likewise.
6080         (ipa_binfo_from_known_type_jfunc): Removed.
6081         (prop_type_change_info): Removed fields known_current_type and
6082         multiple_types_encountered.
6083         (extr_type_from_vtbl_ptr_store): Removed.
6084         (check_stmt_for_type_change): Do not attempt to identify changed type.
6085         (detect_type_change_from_memory_writes): Do not set the removed fields,
6086         always set jfunc to unknown.
6087         (compute_complex_assign_jump_func): Do not detect dynamic type change.
6088         (compute_complex_ancestor_jump_func): Likewise.
6089         (compute_known_type_jump_func): Removed.
6090         (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
6091         change.  Do not comute known type jump functions.
6092         (combine_known_type_and_ancestor_jfs): Removed.
6093         (update_jump_functions_after_inlining): Removed handling of
6094         IPA_JF_KNOWN_TYPE jump functions.  Do not set removed fields.
6095         (ipa_write_jump_function): Do not stream removed fields or known type
6096         jump functions.
6097         (ipa_read_jump_function): Likewise.
6098
6099 2014-11-14  Vladimir Makarov  <vmakarov@redhat.com>
6100
6101         * lra-int.h (lra_create_live_ranges): Add parameter.
6102         * lra-lives.c (temp_bitmap): Move higher.
6103         (initiate_live_solver): Move temp_bitmap initialization into
6104         lra_live_ranges_init.
6105         (finish_live_solver): Move temp_bitmap clearing into
6106         live_ranges_finish.
6107         (process_bb_lives): Add parameter.  Use it to control live info
6108         update and dead insn elimination.  Pass it to mark_regno_live and
6109         mark_regno_dead.
6110         (lra_create_live_ranges): Add parameter.  Pass it to
6111         process_bb_lives.
6112         (lra_live_ranges_init, lra_live_ranges_finish): See changes in
6113         initiate_live_solver and finish_live_solver.
6114         * lra-remat.c (do_remat): Process insn non-operand hard regs too.
6115         Use temp_bitmap to update avail_cands.
6116         * lra.c (lra): Pass new parameter to lra_create_live_ranges.  Move
6117         check with lra_need_for_spill_p after live range pass.  Switch on
6118         rematerialization pass.
6119
6120 2014-11-14  Martin Jambor  <mjambor@suse.cz>
6121
6122         * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
6123         agg_preserved flag instead.
6124         (ipa_get_jf_ancestor_type_preserved): Likewise.
6125         (ipa_node_params): Rename known_vals to known_csts, update all users.
6126         New field known_contexts.
6127         (ipa_get_indirect_edge_target): Update prototype.
6128         (ipcp_poly_ctx_values_pool): Declare.
6129         (ipa_context_from_jfunc): Likewise.
6130         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
6131         * cgraph.h (ipa_polymorphic_call_context): New method equal_to.  New
6132         parameter newline of method dump.
6133         * ipa-cp.c (ctxlat): New field.
6134         (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
6135         (ipcp_poly_ctx_values_pool):New variable.
6136         (ipa_get_poly_ctx_lat): New function.
6137         (print_ipcp_constant_value): New overloaded function for contexts.
6138         (print_all_lattices): Also print contexts.
6139         (ipa_topo_info): New field contexts;
6140         (set_all_contains_variable): Also set the flag in the context lattice.
6141         (initialize_node_lattices): Likewise for flag bottom.
6142         (ipa_get_jf_ancestor_result): Removed BINFO handling.
6143         (ipa_value_from_jfunc): Likewise.
6144         (ipa_context_from_jfunc): New function.
6145         (values_equal_for_ipcp_p): New overloaded function for contexts.
6146         (allocate_and_init_ipcp_value): Construct the value.
6147         (allocate_and_init_ipcp_value): New overloaded function for contexts.
6148         (propagate_scalar_accross_jump_function): Removed handling of
6149         KNOWN_TYPE jump functions.
6150         (propagate_context_accross_jump_function): New function.
6151         (propagate_constants_accross_call): Also propagate contexts.
6152         (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
6153         (ipa_get_indirect_edge_target): Likewise.
6154         (devirtualization_time_bonus): Likewise.
6155         (gather_context_independent_values): Create and populate known_contexts
6156         vector rather than known_binfos.
6157         (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
6158         (estimate_local_effects): Likewise.
6159         (add_all_node_vals_to_toposort): Also add contexts to teir topological
6160         sort.
6161         (ipcp_propagate_stage): Also propagate effects of contexts.
6162         (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
6163         ipa_get_indirect_edge_target_1.
6164         (cgraph_edge_brings_value_p): New overloaded function for contexts.
6165         (create_specialized_node): Work on contexts rather than BINFOs.
6166         (find_more_contexts_for_caller_subset): New function.
6167         (known_contexts_useful_p): New function.
6168         (copy_useful_known_contexts): Likewise.
6169         (modify_known_vectors_with_val): Likewise.
6170         (ipcp_val_in_agg_replacements_p): Renamed to
6171         ipcp_val_agg_replacement_ok_p, return true for all offset indicating
6172         non-aggregate.
6173         (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
6174         (decide_about_value): Work on contexts rather than BINFOs.
6175         (decide_whether_version_node): Likewise.
6176         (ipcp_driver): Initialize the new alloc pool.
6177         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
6178         printing of edge contexts.
6179         (ipa_set_ancestor_jf): Replace assert with conditional setting of
6180         type_preserved to false.
6181         (update_jump_functions_after_inlining): Use access function instead of
6182         reading agg_preserved directly.  Store combined context in the ancestor
6183         case.
6184         (try_make_edge_direct_virtual_call): Work on contexts rather than
6185         BINFOs.
6186         (update_indirect_edges_after_inlining): Get context from
6187         ipa_context_from_jfunc.
6188         (ipa_free_node_params_substructures): Free also known_contexts.
6189         (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
6190         (ipa_free_all_structures_after_iinln): Likewise.
6191         * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
6192         contexts rather than BINFOs.
6193         (estimate_edge_devirt_benefit): Likewise.
6194         (estimate_edge_size_and_time): Likewise.
6195         (estimate_calls_size_and_time): Likewise.
6196         (estimate_node_size_and_time): Likewise.
6197         (estimate_ipcp_clone_size_and_time): Likewise.
6198         (do_estimate_edge_time): Likewise.
6199         (do_estimate_edge_size): Likewise.
6200         (do_estimate_edge_hints): Likewise.
6201         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
6202         parameter newline, ouput newline only when it is set.
6203         (ipa_polymorphic_call_context::equal_to): New method.
6204
6205 2014-11-14  Martin Jambor  <mjambor@suse.cz>
6206
6207         * ipa-cp.c (ipcp_value_source): Converted to a template class.  All
6208         users converted to the same specialization as the using class/function
6209         or specialization on tree.
6210         (ipcp_value): Likewise.
6211         (ipcp_lattice): Likewise.
6212         (ipcp_agg_lattice): Now derived from tree specialization of
6213         ipcp_lattice.
6214         (values_topo): Moved to new class value_topo_info.
6215         (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
6216         Updated all callers.
6217         (print_lattice): Turned into ipcp_lattice::print.  Updated all
6218         callers.
6219         (value_topo_info): New class template.
6220         (ipa_topo_info): New field constants.  New constructor.
6221         (build_toporder_info): Do not clear stack_top, only checkign assert
6222         it.
6223         (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
6224         Updated all callers.
6225         (set_lattice_contains_variable): Turned into
6226         ipcp_lattice::set_contains_variable.  Updated all callers.
6227         (add_value_source): Turned into ipcp_value::add_source.  Updated all
6228         callers.
6229         (allocate_and_init_ipcp_value): New function.
6230         (add_value_to_lattice): Turned into ipcp_lattice::add_value.  Last
6231         parameter got default a value.  Updated all callers.
6232         (add_scalar_value_to_lattice): Removed, users converted to using
6233         ipcp_lattice::add_value with default value of the last parameter.
6234         (add_val_to_toposort): Turned to value_topo_info::add_val.  Updated
6235         all callers.
6236         (propagate_effects): Made method of value_topo_info.
6237         (cgraph_edge_brings_value_p): Now a template function.
6238         (get_info_about_necessary_edges): Likewise.
6239         (gather_edges_for_value): Likewise.
6240         (perhaps_add_new_callers): Likewise.
6241         (decide_about_value): Likewise.
6242         * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
6243
6244 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
6245
6246         * doc/install.texi (--with-diagnostics-color=): Document.
6247
6248         * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
6249         IFN_GOMP_SIMD_LANE without lhs as useless.
6250
6251         * ipa-pure-const.c (struct funct_state_d): Add can_free field.
6252         (varying_state): Add true for can_free.
6253         (check_call): For builtin or internal !nonfreeing_call_p set
6254         local->can_free.
6255         (check_stmt): For asm volatile and asm with "memory" set
6256         local->can_free.
6257         (analyze_function): Clear local->can_free initially, continue
6258         calling check_stmt until all flags are computed, dump can_free
6259         flag.
6260         (pure_const_write_summary): Write can_free flag.
6261         (pure_const_read_summary): Read it back.
6262         (propagate_pure_const): Propagate also can_free flag, set
6263         w->nonfreeing_fn if it is false after propagation.
6264         * cgraph.h (cgraph_node): Add nonfreeing_fn member.
6265         * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
6266         (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
6267         Also return true for IFN_ABNORMAL_DISPATCHER.
6268         * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
6269         * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
6270         (input_overwrite_node): Read it back.
6271
6272 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
6273             Marek Polacek  <polacek@redhat.com>
6274
6275         * sanopt.c: Include tree-ssa-operands.h.
6276         (struct sanopt_info): Add has_freeing_call_p,
6277         has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
6278         imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
6279         being_visited_p fields.
6280         (struct sanopt_ctx): Add asan_check_map field.
6281         (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
6282         maybe_optimize_asan_check_ifn): New functions.
6283         (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
6284         internal calls.
6285         (pass_sanopt::execute): Call sanopt_optimize even for
6286         -fsanitize=address.
6287         * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
6288         internal calls.
6289
6290 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
6291
6292         * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
6293         'if (extract_scalar_result)' to the only place that it is true.
6294
6295 2014-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6296
6297         * config.gcc (default_gnu_indirect_function): Set to yes
6298         for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
6299         Android nor uclibc.
6300
6301 2014-11-14  Felix Yang  <felix.yang@huawei.com>
6302             Jiji Jiang  <jiangjiji@huawei.com>
6303
6304         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
6305         VALL mode iterator instead of VALLDI.
6306
6307 2014-11-14  Jan Hubicka  <hubicka@ucw.cz>
6308
6309         * optc-save-gen.awk: Output cl_target_option_eq,
6310         cl_target_option_hash, cl_target_option_stream_out,
6311         cl_target_option_stream_in functions.
6312         * opth-gen.awk: Output prototypes for
6313         cl_target_option_eq and cl_target_option_hash.
6314         * lto-streamer.h (cl_target_option_stream_out,
6315         cl_target_option_stream_in): Declare.
6316         * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
6317         (cl_option_hash_eq): Use cl_target_option_eq.
6318         * tree-streamer-in.c (unpack_value_fields): Stream in
6319         TREE_TARGET_OPTION.
6320         * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
6321         DECL_FUNCTION_SPECIFIC_TARGET.
6322         (hash_tree): Hash TREE_TARGET_OPTION; visit
6323         DECL_FUNCTION_SPECIFIC_TARGET.
6324         * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
6325         TS_TARGET_OPTION.
6326         (streamer_write_tree_body): Output TS_TARGET_OPTION.
6327
6328 2014-11-14  Richard Biener  <rguenther@suse.de>
6329
6330         * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
6331         valueization hook defaulted to no_follow_ssa_edges.
6332         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
6333         2nd valueization hook to gimple_simplify.
6334         * tree-ssa-ccp.c (valueize_op_1): New function to be
6335         used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
6336         (ccp_fold): Adjust.
6337         * tree-vrp.c (vrp_valueize_1): New function to be
6338         used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
6339         (vrp_visit_assignment_or_call): Adjust.
6340
6341 2014-11-14  Marek Polacek  <polacek@redhat.com>
6342
6343         * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
6344         that overflows when SANITIZE_SI_OVERFLOW is on.  Guard -(-A)
6345         folding with TYPE_OVERFLOW_SANITIZED.
6346
6347 2014-11-14  Marek Polacek  <polacek@redhat.com>
6348
6349         PR sanitizer/63839
6350         * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
6351         ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
6352         * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
6353         Define.
6354         * builtins.c (fold_builtin_0): Don't include ubsan.h.  Don't
6355         instrument BUILT_IN_UNREACHABLE here.
6356         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
6357         const.
6358         * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
6359         * tree-ssa-ccp.c (optimize_unreachable): Bail out if
6360         SANITIZE_UNREACHABLE.
6361         * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
6362         * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
6363
6364 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
6365
6366         * config/rs6000/vector.md (vec_shl_<mode>): Remove.
6367         (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
6368
6369 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
6370
6371         * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
6372         BYTES_BIG_ENDIAN.
6373         * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
6374         vect_create_epilog_for_reduction): Likewise.
6375         * doc/md.texi (vec_shr_m): Clarify direction of shifting.
6376
6377 2014-11-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6378
6379         PR target/63724
6380         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
6381         numerical immediate handling to...
6382         (aarch64_internal_mov_immediate): ...this. New.
6383         (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
6384         (aarch64_mov_operand_p): Relax predicate.
6385         * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
6386         (*movsi_aarch64): Turn into define_insn_and_split and new alternative
6387         for 'n'.
6388         (*movdi_aarch64): Likewise.
6389
6390 2014-11-14  Richard Biener  <rguenther@suse.de>
6391
6392         * match.pd: Implement more binary patterns exercised by
6393         fold_stmt.
6394         * fold-const.c (sing_bit_p): Export.
6395         (exact_inverse): Likewise.
6396         (fold_binary_loc): Remove patterns here.
6397         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
6398         * fold-const.h (sing_bit_p): Declare.
6399         (exact_inverse): Likewise.
6400
6401 2014-11-14  Marek Polacek  <polacek@redhat.com>
6402
6403         * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
6404
6405 2014-11-14  Richard Biener  <rguenther@suse.de>
6406
6407         * genmatch.c (add_operator): Allow CONSTRUCTOR.
6408         (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
6409         (parser::parse_op): Allow to iterate over predicates.
6410
6411 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
6412
6413         * configure.ac (--with-diagnostics-color): New configure
6414         option, default to --with-diagnostics-color=auto.
6415         * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
6416         to determine -fdiagnostics-color= option default.
6417         * doc/invoke.texi (-fdiagnostics-color=): Document new
6418         default.
6419         * configure: Regenerated.
6420         * config.in: Regenerated.
6421
6422 2014-11-13  Teresa Johnson  <tejohnson@google.com>
6423
6424         PR tree-optimization/63841
6425         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
6426
6427 2014-11-14  Bin Cheng  <bin.cheng@arm.com>
6428
6429         * timevar.def (TV_SCHED_FUSION): New time var.
6430         * passes.def (pass_sched_fusion): New pass.
6431         * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
6432         (extract_base_offset_in_addr, fusion_load_store): New.
6433         (arm_sched_fusion_priority): New.
6434         (arm_option_override): Disable scheduling fusion by default
6435         on non-armv7 processors or ldrd/strd isn't preferred.
6436         * sched-int.h (struct _haifa_insn_data): New field.
6437         (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
6438         * sched-rgn.c (rest_of_handle_sched_fusion): New.
6439         (pass_data_sched_fusion, pass_sched_fusion): New.
6440         (make_pass_sched_fusion): New.
6441         * haifa-sched.c (sched_fusion): New.
6442         (insn_cost): Handle sched_fusion.
6443         (priority): Handle sched_fusion by calling target hook.
6444         (enum rfs_decision): New enum value.
6445         (rfs_str): New element for RFS_FUSION.
6446         (rank_for_schedule): Support sched_fusion.
6447         (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
6448         (schedule_block, fix_tick_ready): Handle sched_fusion.
6449         * common.opt (flag_schedule_fusion): New.
6450         * tree-pass.h (make_pass_sched_fusion): New.
6451         * target.def (fusion_priority): New.
6452         * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
6453         * doc/tm.texi: Regenerated.
6454         * doc/invoke.texi (-fschedule-fusion): New.
6455
6456 2014-11-13  Rong Xu  <xur@google.com>
6457
6458         PR debug/63581
6459         * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
6460         footer, instead of unconditionally overwritten.
6461
6462 2014-11-14  Martin Jambor  <mjambor@suse.cz>
6463
6464         * cgraph.h (clear_outer_type): Make public.  Fix comment.
6465         * ipa-devirt.c (possible_polymorphic_call_targets): Use
6466         clear_outer_type when resetting the context.
6467
6468 2014-11-13  Dominique Dhumieres  <dominiq@lps.ens.fr>
6469
6470         PR bootstrap/63853
6471         * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
6472         * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
6473
6474 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
6475
6476         * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
6477         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
6478         * tree-inline.c (estimate_operator_cost): Likewise.
6479         * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
6480         Likewise.
6481
6482         * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
6483         against VEC_RSHIFT_EXPR.
6484
6485         * optabs.h (expand_vec_shift_expr): Remove.
6486         * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
6487         (expand_vec_shift_expr): Remove.
6488         * tree.def (VEC_RSHIFT_EXPR): Remove
6489
6490 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
6491
6492         * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
6493         (shift_amt_for_vec_perm_mask): New.
6494         (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
6495         and mask appropriate.
6496
6497         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
6498         (have_whole_vector_shift): New.
6499         (vect_model_reduction_cost): Call have_whole_vector_shift instead of
6500         looking for vec_shr_optab.
6501         (vect_create_epilog_for_reduction): Likewise; also rename local variable
6502         have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
6503         instead of VEC_RSHIFT_EXPRs.
6504
6505         * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
6506
6507 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
6508
6509         * tree-vectorizer.h (vect_gen_perm_mask): Remove.
6510         (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
6511
6512         * tree_vec_data_refs.c (vect_permute_load_chain,
6513         vec_permute_store_chain, vec_shift_permute_load_chain): Replace
6514         vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
6515
6516         * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
6517         Likewise.
6518         (vect_gen_perm_mask_checked): New.
6519         (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
6520         (vect_gen_perm_mask_any): ...this.
6521         (perm_mask_for_reverse): Call can_vec_perm_p and
6522         vect_gen_perm_mask_checked.
6523
6524 2014-11-13  Felix Yang  <felix.yang@huawei.com>
6525
6526         * ipa-utils.h: Fix typo in comments.
6527         * ipa-profile.c: Likewise.
6528         * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
6529
6530 2014-11-13  Teresa Johnson  <tejohnson@google.com>
6531
6532         PR tree-optimization/63841
6533         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
6534
6535 2014-11-13  Teresa Johnson  <tejohnson@google.com>
6536
6537         PR tree-optimization/63841
6538         * tree.c (initializer_zerop): A clobber does not zero initialize.
6539
6540 2014-11-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6541
6542         * optabs.c (prepare_operand): Gracefully fail if the mode of X
6543         does not match the operand mode expected by the insn pattern.
6544
6545 2014-11-13  Richard Biener  <rguenther@suse.de>
6546
6547         * match.pd: Add tcc_comparison, inverted_tcc_comparison
6548         and inverted_tcc_comparison_with_nans operator lists.
6549         Use tcc_comparison in the truth_valued_p predicate definition.
6550         Restrict logical_inverted_value with bit_xor to integral types.
6551         Build a boolean true for simplifying x |^ !x because of
6552         vector types.  Implement patterns from forward_propagate_comparison
6553         * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
6554         (get_prop_dest_stmt): Likewise.
6555         (pass_forwprop::execute): Do not call it.
6556         * fold-const.c (fold_unary_loc): Remove the pattern here.
6557
6558 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
6559             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6560
6561         * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
6562         tmake_file.
6563         (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
6564         accelerator compiler.
6565         * config/i386/intelmic-mkoffload.c: New file.
6566         * config/i386/t-intelmic: Ditto.
6567
6568 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
6569             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6570             Ilya Verbin  <ilya.verbin@intel.com>
6571
6572         * common.opt (foffload, foffload-abi): New options.
6573         * config/i386/i386.c (ix86_offload_options): New static function.
6574         (TARGET_OFFLOAD_OPTIONS): Define.
6575         * coretypes.h (enum offload_abi): New enum.
6576         * doc/tm.texi: Regenerate.
6577         * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
6578         * gcc.c (offload_targets): New static variable.
6579         (handle_foffload_option): New static function.
6580         (driver_handle_option): Handle OPT_foffload_.
6581         (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
6582         according to offload_targets.
6583         * hooks.c (hook_charptr_void_null): New hook.
6584         * hooks.h (hook_charptr_void_null): Declare.
6585         * lto-opts.c: Include lto-section-names.h.
6586         (lto_write_options): Append options from target offload_options hook and
6587         store them to offload_lto section.  Do not store target-specific,
6588         driver and diagnostic options in offload_lto section.
6589         * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
6590         OPT_foffload_abi_.
6591         (append_compiler_options, append_linker_options)
6592         (append_offload_options): New static functions.
6593         (compile_offload_image): Add new arguments with options.
6594         Call append_compiler_options and append_offload_options.
6595         (compile_images_for_offload_targets): Add new arguments with options.
6596         (find_and_merge_options): New static function.
6597         (run_gcc): Outline options handling into the new functions:
6598         find_and_merge_options, append_compiler_options, append_linker_options.
6599         * opts.c (common_handle_option): Don't handle OPT_foffload_.
6600         Forbid OPT_foffload_abi_ for non-offload compiler.
6601         * target.def (offload_options): New target hook.
6602
6603 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
6604             Bernd Schmidt  <bernds@codesourcery.com>
6605             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6606             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6607
6608         * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
6609         (process_command): Tweak path construction for the possibility
6610         of being configured as an offload compiler.
6611         (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
6612         (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
6613         (driver::set_up_specs): Tweak path construction for the possibility of
6614         being configured as an offload compiler.
6615         * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
6616         (offload_names, offloadbegin, offloadend): New static variables.
6617         (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
6618         (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
6619         New static functions.
6620         (run_gcc): Determine whether offload sections are present.  If so, run
6621         compile_images_for_offload_targets and return the names of new generated
6622         objects to linker.  If there are offload sections, but no LTO sections,
6623         then return the copies of input objects without link-time recompilation.
6624
6625 2014-11-13  Richard Biener  <rguenther@suse.de>
6626
6627         * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
6628
6629 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
6630             Bernd Schmidt  <bernds@codesourcery.com>
6631             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6632             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6633
6634         * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
6635         * cgraphunit.c: Include omp-low.h.
6636         * doc/tm.texi: Regenerate.
6637         * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
6638         * gengtype.c (open_base_files): Add omp-low.h to ifiles.
6639         * lto-cgraph.c (output_offload_tables): New function.
6640         (input_offload_tables): Likewise.
6641         * lto-section-in.c (lto_section_name): Add "offload_table".
6642         * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
6643         (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
6644         * lto-streamer-out.c (lto_output): Call output_offload_tables.
6645         * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
6646         (output_offload_tables, input_offload_tables): Declare.
6647         * omp-low.c: Include common/common-target.h and lto-section-names.h.
6648         (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
6649         (expand_omp_target): Add child_fn into offload_funcs vector.
6650         (add_decls_addresses_to_decl_constructor): New function.
6651         (omp_finish_file): Likewise.
6652         * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
6653         * target.def (record_offload_symbol): New DEFHOOK.
6654         * toplev.c: Include omp-low.h.
6655         (compile_file): Call omp_finish_file.
6656         * varpool.c: Include omp-low.h.
6657         (varpool_node::get_create): Add decl into offload_vars vector.
6658
6659 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
6660             Ilya Tocar  <ilya.tocar@intel.com>
6661             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6662             Bernd Schmidt  <bernds@codesourcery.com>
6663
6664         * cgraph.c: Include context.h.
6665         (cgraph_node::create): Set node->offloadable and g->have_offload if
6666         decl have "omp declare target" attribute.
6667         * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
6668         * cgraphunit.c: Include lto-section-names.h.
6669         (ipa_passes): Call ipa_write_summaries if there is something to write to
6670         OFFLOAD_SECTION_NAME_PREFIX sections.
6671         (symbol_table::compile): Set flag_generate_lto if there is something to
6672         offload.
6673         Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
6674         * context.c (gcc::context::context): Initialize have_offload with false.
6675         * context.h (class context): Add have_offload flag.
6676         * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
6677         flag_generate_lto.
6678         (inline_free_summary): Always remove hooks.
6679         * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
6680         from non-offloadable nodes while streaming a node into offload section.
6681         (reachable_from_other_partition_p): Likewise.
6682         (select_what_to_stream): New function.
6683         (compute_ltrans_boundary): Do not call
6684         lto_set_symtab_encoder_in_partition if the node should not be streamed.
6685         * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
6686         (section_name_prefix): Declare.
6687         * lto-streamer.c (section_name_prefix): New variable.
6688         (lto_get_section_name): Use section_name_prefix instead of
6689         LTO_SECTION_NAME_PREFIX.
6690         * lto-streamer.h (select_what_to_stream): Declare.
6691         * omp-low.c: Include context.h.
6692         (is_targetreg_ctx): New function.
6693         (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
6694         (create_omp_child_function, check_omp_nesting_restrictions): Use new
6695         is_targetreg_ctx function.  Replace usage of "omp declare target"
6696         attribute with a cgraph_node flag offloadable.
6697         (expand_omp_target): Set mark_force_output for offloadable functions.
6698         (lower_omp_critical): Set offloadable flag for omp critical symbol.
6699         * passes.c (ipa_write_summaries): New argument offload_lto_mode.  Call
6700         select_what_to_stream.  Do not call lto_set_symtab_encoder_in_partition
6701         if the node should not be streamed out.
6702         * tree-pass.h (ipa_write_summaries): New bool argument.
6703         * varpool.c: Include context.h.
6704         (varpool_node::get_create): Set node->offloadable and g->have_offload if
6705         decl have "omp declare target" attribute.
6706
6707 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
6708             Thomas Schwinge  <thomas@codesourcery.com>
6709             Ilya Verbin  <ilya.verbin@intel.com>
6710             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6711
6712         * Makefile.in (real_target_noncanonical, accel_dir_suffix)
6713         (enable_as_accelerator): New variables substituted by configure.
6714         (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
6715         being configured as an offload compiler.
6716         (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
6717         ACCEL_DIR_SUFFIX.
6718         (install-cpp, install-common, install_driver, install-gcc-ar): Do not
6719         install for the offload compiler.
6720         * config.in: Regenerate.
6721         * configure: Regenerate.
6722         * configure.ac (real_target_noncanonical, accel_dir_suffix)
6723         (enable_as_accelerator): Compute new variables.
6724         (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
6725         (OFFLOAD_TARGETS): List of target names suitable for offloading.
6726         (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
6727         * doc/install.texi (Options specification): Document
6728         --enable-as-accelerator-for and --enable-offload-targets.
6729
6730 2014-11-13  H.J. Lu  <hongjiu.lu@intel.com>
6731
6732         PR tree-optimization/63828
6733         * ipa-polymorphic-call.c (possible_placement_new): Check
6734         POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
6735
6736 2014-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6737
6738         * doc/tm.texi.in (SELECT_CC_MODE): Update example.
6739         (REVERSIBLE_CC_MODE): Fix example.
6740         (REVERSE_CONDITION): Fix typo.
6741         * doc/tm.texi: Regenerate.
6742
6743 2014-11-13  Tom de Vries  <tom@codesourcery.com>
6744
6745         * omp-low.c (pass_data_expand_omp): Set properties_provided to
6746         PROP_gimple_eomp.
6747         (pass_expand_omp::gate): Remove function.  Move gate expression to ...
6748         (pass_expand_omp::execute): ... here, as new variable gate.  Add early
6749         exit if gate is false.
6750         (pass_data pass_data_expand_omp_ssa): New pass_data.
6751         (class pass_expand_omp_ssa): New pass.
6752         (make_pass_expand_omp_ssa): New function.
6753         * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
6754         instead of NEXT_PASS.
6755         (pass_expand_omp_ssa): Add after pass_parallelize_loops.
6756         * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
6757         (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
6758         and TODO_rebuild_alias yet.  Add TODO_update_ssa.  Set
6759         cfun->omp_expand_needed.
6760         * tree-pass.h: Add define PROP_gimple_eomp.
6761         (make_pass_expand_omp_ssa): Declare.
6762
6763 2014-11-13  Marek Polacek  <polacek@redhat.com>
6764
6765         * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
6766         * fold-const.c (fold_binary_loc): Use it.
6767         * match.pd: Likewise.
6768
6769 2014-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
6770
6771         * lra-lives.c (struct bb_data): Rename to ...
6772         (struct bb_data_pseudos): ... this.
6773         (initiate_live_solver): Update struct name.
6774
6775 2014-11-13  Richard Biener  <rguenther@suse.de>
6776
6777         * match.pd: Implement conditional expression patterns.
6778         * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
6779         them here.
6780         (combine_cond_exprs): Remove.
6781         (pass_forwprop::execute): Do not call combine_cond_exprs.
6782         * fold-const.c (fold_ternary_loc): Remove patterns here.
6783         (pedantic_omit_one_operand_loc): Remove.
6784
6785 2014-12-13  Richard Biener  <rguenther@suse.de>
6786
6787         PR middle-end/61559
6788         * match.pd: Implement bswap patterns for transforms checked by
6789         gcc.dg/builtin-bswap-8.c.
6790
6791 2014-11-13  Vladimir Makarov  <vmakarov@redhat.com>
6792
6793         * lra.c (lra): Switch off rematerialization pass.
6794
6795 2014-11-12  Vladimir Makarov  <vmakarov@redhat.com>
6796
6797         * common.opt (flra-remat): New.
6798         * opts.c (default_options_table): Add entry for flra_remat.
6799         * timevar_def (TV_LRA_REMAT): New.
6800         * doc/invoke.texi (-flra-remat): Add description of the new
6801         option.
6802         * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
6803         lra-saves.c.  Add lra-remat.c.
6804         * Makefile.in (OBJS): Add lra-remat.o.
6805         * lra-remat.c: New file.
6806         * lra.c: Add info about the rematerialization pass in the top
6807         comment.
6808         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
6809         Process unallocatable regs too.
6810         (lra_constraint_new_insn_uid_start): Remove.
6811         (lra): Add code for calling rematerialization sub-pass.
6812         * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
6813         (lra_constrain_insn, lra_remat): New prototypes.
6814         (lra_eliminate_regs_1): Add parameter.
6815         * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
6816         Process unallocatable hard regs too.
6817         (process_bb_lives): Ditto.
6818         * lra-spills.c (remove_pseudos): Add argument to
6819         lra_eliminate_regs_1 call.
6820         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter.  Use it
6821         for sp offset calculation.
6822         (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
6823         (eliminate_regs_in_insn): Add parameter.  Use it for sp offset
6824         calculation.
6825         (process_insn_for_elimination): Add argument for
6826         eliminate_regs_in_insn call.
6827         * lra-constraints.c (get_equiv_with_elimination):  Add argument
6828         for lra_eliminate_regs_1 call.
6829         (process_addr_reg): Add parameter.  Use it.
6830         (process_address_1): Ditto.  Add argument for process_addr_reg
6831         call.
6832         (process_address): Ditto.
6833         (curr_insn_transform): Add parameter.  Use it.  Add argument for
6834         process_address calls.
6835         (lra_constrain_insn): New function.
6836         (lra_constraints): Add argument for curr_insn_transform call.
6837
6838 2014-11-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6839
6840         * opts-global.c (postpone_unknown_option_warning): Fix spelling.
6841         (print_ignored_options): Fix quoting.
6842         * opts.c (common_handle_option): Likewise.
6843         (set_debug_level): Likewise.
6844         * toplev.c (process_options): Likewise.
6845
6846 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
6847
6848         PR ipa/63838
6849         * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
6850         chain instead of node->indirect_calls.  Put !can_throw into
6851         conditions of all the loops.
6852
6853 2014-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6854
6855         * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
6856         set pic_offset_table_rtx.
6857
6858 2014-11-12  Matthew Fortune  <matthew.fortune@imgtec.com>
6859
6860         * common/config/mips/mips-common.c (mips_handle_option): Ensure
6861         that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
6862         * config.gcc (--with-fp-32): New option.
6863         (--with-odd-spreg-32): Likewise.
6864         * config.in (HAVE_AS_DOT_MODULE): New config define.
6865         * config/mips/mips-protos.h
6866         (mips_secondary_memory_needed): New prototype.
6867         (mips_hard_regno_caller_save_mode): Likewise.
6868         * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
6869         (mips_get_arg_info): Assert that V2SFmode is only handled specially
6870         with TARGET_PAIRED_SINGLE_FLOAT.
6871         (mips_return_mode_in_fpr_p): Likewise.
6872         (mips16_call_stub_mode_suffix): Likewise.
6873         (mips_get_reg_raw_mode): New static function.
6874         (mips_return_fpr_pair): O32 return values span two registers.
6875         (mips16_build_call_stub): Likewise.
6876         (mips_function_value_regno_p): Support both FP return registers.
6877         (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1.  Add
6878         specific cases for TARGET_FPXX to move via memory.
6879         (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
6880         than UNITS_PER_FPREG 'span' one register.
6881         (mips_dwarf_frame_reg_mode): New static function.
6882         (mips_file_start): Switch to using .module instead of .gnu_attribute.
6883         No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
6884         Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
6885         (mips_save_reg, mips_restore_reg): Always represent DFmode frame
6886         slots with two CFI directives even for O32 FP64.
6887         (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
6888         saving/restoring callee-saved registers.
6889         (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
6890         (mips_secondary_memory_needed): New function.
6891         (mips_option_override): ABI check for TARGET_FLOATXX.  Disable
6892         odd-numbered single-precision registers when using TARGET_FLOATXX.
6893         Implement -modd-spreg and defaults.
6894         (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
6895         callee-saved behaviour.
6896         (mips_hard_regno_caller_save_mode): Implement.
6897         (TARGET_GET_RAW_RESULT_MODE): Define target hook.
6898         (TARGET_GET_RAW_ARG_MODE): Define target hook.
6899         (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
6900         * config/mips/mips.h (TARGET_FLOAT32): New macro.
6901         (TARGET_O32_FP64A_ABI): Likewise.
6902         (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
6903         _MIPS_SPFPSET builtin define.
6904         (MIPS_FPXX_OPTION_SPEC): New macro.
6905         (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
6906         --with-odd-spreg-32=* to -m[no-]odd-spreg.
6907         (ISA_HAS_ODD_SPREG): New macro.
6908         (ISA_HAS_MXHC1): True for anything other than -mfp32.
6909         (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
6910         (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
6911         (HARD_REGNO_CALLER_SAVE_MODE): Define.  Implement O32 FPXX extension
6912         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6913         (SECONDARY_MEMORY_NEEDED): Likewise.
6914         (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
6915         * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
6916         FP64A ABI extensions.
6917         (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
6918         TARGET_FLOAT64.
6919         * config/mips/mips.opt (mfpxx): New target option.
6920         (modd-spreg): Likewise.
6921         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
6922         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
6923         fp64 sysroot.
6924         * config/mips/t-mti-elf: Remove fp64 multilib.
6925         * config/mips/t-mti-linux: Likewise.
6926         * configure.ac: Detect .module support.
6927         * configure: Regenerate.
6928         * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
6929         * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
6930         options.
6931
6932 2014-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6933
6934         PR target/63815
6935         * config/i386/i386.c (ix86_init_large_pic_reg): New.  Extracted
6936         from ...
6937         (ix86_init_pic_reg): Here.  Use ix86_init_large_pic_reg.
6938         (x86_output_mi_thunk): Set PIC register to %r11.  Call
6939         ix86_init_large_pic_reg to initialize PIC register.
6940
6941 2014-11-12  Kai Tietz  <ktietz@redhat.com>
6942
6943         * sdbout.c (sdbout_symbol): Eliminate register only
6944         if decl isn't a global variable.
6945
6946 2014-11-12  Alan Lawrence  <alan.lawrence@arm.com>
6947
6948         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
6949
6950         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
6951         qualifier_lane_index.
6952         (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
6953         (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
6954         (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
6955
6956         (aarch64_types_getlane_qualifiers): Rename to...
6957         (aarch64_types_binop_imm_qualifiers): ...this.
6958         (TYPES_SHIFTIMM): Follow renaming.
6959         (TYPES_GETLANE): Rename to...
6960         (TYPE_GETREG): ...this.
6961
6962         (aarch64_types_setlane_qualifiers): Rename to...
6963         (aarch64_type_ternop_imm_qualifiers): ...this.
6964         (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
6965         (TYPES_SETLANE): Follow renaming above, and rename self to...
6966         (TYPE_SETREG): ...this.
6967
6968         (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
6969         (aarch64_simd_expand_args): Add range check and endianness-flip.
6970
6971         (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
6972
6973         * config/aarch64/aarch64-simd.md
6974         (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
6975         (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
6976         (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
6977
6978         (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
6979         (aarch64_sq<r>dmulh_lane<mode>): ...this.
6980
6981         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
6982         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
6983
6984         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
6985         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
6986
6987         (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
6988         (aarch64_sqdmull_lane<mode>): ...this.
6989
6990         (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
6991         (aarch64_sqdmull_laneq<mode>): ...this.
6992
6993         (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
6994         (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
6995         aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
6996         aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
6997
6998         (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
6999         aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
7000         aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
7001         bounds check and lane flip.
7002
7003         * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
7004         get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
7005         set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
7006
7007         (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
7008         sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
7009         renaming of TERNOP_LANE to QUADOP_LANE.
7010
7011         (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
7012         sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
7013         qualifiers to TERNOP_LANE.
7014
7015 2014-11-12  Tobias Burnus  <burnus@net-b.de>
7016
7017         * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
7018         * configure.ac: Ditto.
7019         * graphite-interchange.c: Remove HAVE_CLOOG block.
7020         * config.in: Regenerate.
7021         * configure: Regenerate.
7022
7023 2014-11-12  Jiong Wang  <jiong.wang@arm.com>
7024
7025         * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
7026         caller-save.
7027         (EPILOGUE_USES): Guard the check by epilogue_completed.
7028         * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
7029         LR.
7030         (aarch64_can_eliminate): Check LR_REGNUM liveness.
7031
7032 2014-11-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7033
7034         * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
7035
7036 2014-11-12  Marek Polacek  <polacek@redhat.com>
7037
7038         * fold-const.c (fold_binary_loc): Don't fold if the result
7039         is undefined.
7040         * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
7041         -(-A) -> A): Likewise.
7042
7043 2014-11-12  Richard Biener  <rguenther@suse.de>
7044
7045         Merge from match-and-simplify branch
7046         2014-11-04  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
7047
7048         * genmatch.c (user_id): Add new member is_oper_list.
7049         (user_id::user_id): Add new default argument.
7050         (parser::parse_operator_list): New function.
7051         (parser::parse_for): Allow operator-list.
7052         (parser::parse_pattern): Call parser::parse_operator_list.
7053         (parser::parse_operation): Reject operator-list.
7054         * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
7055
7056         2014-10-31  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
7057
7058         * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
7059
7060         2014-10-30  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
7061
7062         * genmatch.c (parser::parse_op): Check if predicate is used in
7063         result operand.
7064
7065         2014-10-29  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
7066
7067         * genmatch.c (parser::parse_for): Make sure to have a valid
7068         token to report errors at.
7069
7070         2014-10-28  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
7071
7072         * genmatch.c (parser): Add new member parsing_match_operand.
7073         (parser::parse_operation): Check for conditional convert in result
7074         operand.
7075         (parser::parse_expr): Check for commutative operator in result operand.
7076         Check for :type in match operand.
7077         (parser::parse_simplify): Set/unset parsing_match_operand.
7078         (parser::parser): Initialize parsing_match_operand.
7079
7080         2014-10-28  Richard Biener  <rguenther@suse.de>
7081
7082         * genmatch.c (parser::parse_for): Properly check for already
7083         defined operators.
7084
7085         2014-10-28  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
7086
7087         * genmatch.c (error_cb): Adjust for printing warnings.
7088         (warning_at): New function.
7089         (user_id): Add new member used.
7090         (get_operator): Mark user_id as used.
7091         (parse_for): Warn for unused operators.
7092
7093 2014-11-12  Richard Biener  <rguenther@suse.de>
7094
7095         * match.pd: Implement simple complex operations cancelling.
7096         * fold-const.c (fold_unary_loc): Remove them here.
7097
7098 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
7099
7100         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
7101         Define __NO_MATH_ERRNO__ if -fno-math-errno.
7102         * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
7103
7104 2014-11-12  Richard Biener  <rguenther@suse.de>
7105
7106         * genmatch.c (::gen_transform): Add capture_info and
7107         expand_compares arguments.
7108         (struct expr): Add is_generic flag.
7109         (lower_cond): New functions lowering [VEC_]COND_EXPR
7110         conditions to a GENERIC and a GIMPLE variant.
7111         (lower): Call lower_cond.
7112         (cmp_operand): Also compare the is_generic flag.
7113         (capture_info::cinfo): Add cond_expr_cond_p flag.
7114         (capture_info::capture_info): Pass down whether the
7115         expression argument is a COND_EXPR condition.
7116         (capture_info::walk_match): Likewise, mark captures
7117         capturing COND_EXPR conditions with cond_expr_cond_p.
7118         (expr::gen_transform): Pass down whether we need to
7119         expand compares from COND_EXPR conditions.
7120         (capture::gen_transform): Expand compares substituted
7121         from COND_EXPR conditions into non-COND_EXPR conditions.
7122         (dt_operand::gen_gimple_expr): Handle explicitely marked
7123         GENERIC expressions as generic.
7124         (dt_simplify::gen): Pass whether we need to expand
7125         conditions to gen_transform.  Handle capture results
7126         which are from COND_EXPR conditions.
7127         (main): Pass gimple flag down to lower.
7128
7129 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
7130
7131         PR c/59708
7132         * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
7133         * builtins.c (fold_builtin_arith_overflow): New function.
7134         (fold_builtin_3): Use it.
7135         * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
7136         BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
7137         BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
7138         BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
7139         BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
7140         BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
7141         BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
7142         BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
7143         BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
7144         BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
7145         * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
7146         BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
7147         BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
7148         BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
7149         BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
7150         * expr.c (write_complex_part): Remove prototype, no longer static.
7151         * expr.h (write_complex_part): New prototype.
7152         * function.c (aggregate_value_p): For internal functions return 0.
7153         * gimple-fold.c (arith_overflowed_p): New functions.
7154         (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
7155         * gimple-fold.h (arith_overflowed_p): New prototype.
7156         * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
7157         (find_non_realpart_uses, maybe_optimize_arith_overflow): New
7158         functions.
7159         (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
7160         into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
7161         never used.
7162         * gimplify.c (gimplify_call_expr): Handle gimplification of
7163         internal calls with lhs.
7164         * internal-fn.c (get_range_pos_neg, get_min_precision,
7165         expand_arith_overflow_result_store): New functions.
7166         (ubsan_expand_si_overflow_addsub_check): Renamed to ...
7167         (expand_addsub_overflow): ... this.  Add LOC, LHS, ARG0, ARG1,
7168         UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
7169         Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
7170         (ubsan_expand_si_overflow_neg_check): Renamed to ...
7171         (expand_neg_overflow): ... this.  Add LOC, LHS, ARG1, IS_UBSAN
7172         arguments, remove STMT argument.  Handle SUB_OVERFLOW with
7173         0 as first argument expansion.
7174         (ubsan_expand_si_overflow_mul_check): Renamed to ...
7175         (expand_mul_overflow): ... this.  Add LOC, LHS, ARG0, ARG1,
7176         UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
7177         Handle MUL_OVERFLOW expansion.
7178         (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
7179         arguments for it.
7180         (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
7181         expand_neg_overflow, prepare arguments for it.
7182         (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
7183         for it.
7184         (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
7185         expand_MUL_OVERFLOW): New functions.
7186         * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
7187         internal functions.
7188         * tree-vrp.c (check_for_binary_op_overflow): New function.
7189         (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
7190         is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
7191         (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
7192         internal functions.
7193         * optabs.def (umulv4_optab): New optab.
7194         * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
7195         (*umulv<mode>4, *<u>mulvqi4): New define_insns.
7196         * doc/extend.texi (Integer Overflow Builtins): Document
7197         __builtin_*_overflow.
7198
7199 2014-11-12  Richard Biener  <rguenther@suse.de>
7200
7201         * genmatch.c (capture_info::capture_info): Add missing
7202         COND_EXPR handling.
7203         (capture_info::walk_match): Fix COND_EXPR handling.
7204         (capture_info::walk_result): Likewise.
7205
7206 2014-11-12  Richard Biener  <rguenther@suse.de>
7207
7208         PR middle-end/63821
7209         * match.pd: Add missing conversion to the -(T)-X pattern.
7210
7211 2014-11-12  Richard Biener  <rguenther@suse.de>
7212
7213         PR bootstrap/63819
7214         * hash-table.h: Include ggc.h also for generator programs.
7215         * genmatch.c (ggc_internal_cleared_alloc): Properly define
7216         using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
7217
7218 2014-11-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7219
7220         PR tree-optimization/63761
7221         * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
7222         rather than taking it as a parameter. Add some comments to explain the
7223         gsi_move_before in case of load and why canonicalization of bswap into
7224         a rotation is only done for 16bit values.
7225         (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
7226         refer to the statement just before cur_stmt. Ignore 16bit bswap that
7227         are already in canonical form. Adapt bswap_replace to removal of its
7228         gsi parameter.
7229
7230 2014-11-12  Richard Sandiford  <richard.sandiford@arm.com>
7231
7232         * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
7233         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
7234         (for_each_rtx_in_insn): Delete.
7235         (init_rtlanal): Remove initialization of non_rtx_starting_operands.
7236         * df-core.c: Remove reference to for_each_rtx in comment.
7237
7238 2014-11-12  Tejas Belagod  <tejas.belagod@arm.com>
7239
7240         * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
7241         arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
7242         * doc/aarch64-acle-intrinsics.texi: Remove.
7243         * doc/arm-acle-intrinsics.texi: Remove.
7244         * doc/arm-neon-intrinsics.texi: Remove.
7245         * doc/extend.texi: Consolidate sections AArch64 intrinsics,
7246         ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
7247         Extension section. Add references to public ACLE specification.
7248
7249 2014-11-11  Patrick Palka  <ppalka@gcc.gnu.org>
7250
7251         * tree-vrp.c (register_edge_assert_for_2): Change return type to
7252         void and adjust accordingly.
7253         (register_edge_assert_for_1): Likewise.
7254         (register_edge_assert_for): Likewise.
7255         (find_conditional_asserts): Likewise.
7256         (find_switch_asserts): Likewise.
7257         (find_assert_locations_1): Likewise.
7258         (find_assert_locations): Likewise.
7259         (insert_range_insertions): Inspect the need_assert_for bitmap.
7260
7261 2014-11-11  Andrew Pinski  <apinski@cavium.com>
7262
7263         Bug target/61997
7264         * config.gcc (aarch64*-*-*): Set target_gtfiles to include
7265         aarch64-builtins.c.
7266         * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
7267         at the end of the file.
7268
7269 2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
7270             Manuel López-Ibáñez  <manu@gcc.gnu.org>
7271
7272         PR driver/36312
7273         * diagnostic-core.h: Add prototype for fatal_error.
7274         * diagnostic.c (fatal_error): New function fatal_error.
7275         * gcc.c (store_arg): Remove have_o_argbuf_index.
7276         (process_command): Check if input and output files are the same.
7277         * toplev.c (init_asm_output): Check if input and output files are
7278         the same.
7279
7280 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
7281
7282         * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
7283
7284 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
7285
7286         PR target/61535
7287         * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
7288         smaller than 8 bytes.
7289         (sparc_function_arg_1): Tweak.
7290         (sparc_function_value_1): Tweak.
7291
7292 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
7293
7294         * ChangeLog.jit: New.
7295         * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
7296         sphinx is installed, falling back to "texinfo" otherwise.
7297         (FULL_DRIVER_NAME): New variable, adapted from the
7298         install-driver target.  New target, a symlink within the builddir,
7299         linked to "xgcc", for use when running the JIT library from the
7300         builddir.
7301         (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
7302         (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
7303         out.
7304         * configure.ac (doc_build_sys): New variable, set to "sphinx" if
7305         sphinx is installed, falling back to "texinfo" otherwise.
7306         (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
7307         GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
7308         * configure: Regenerate.
7309         * doc/install.texi (--enable-host-shared): Specify that this is
7310         required when building libgccjit.
7311         (Tools/packages necessary for modifying GCC): Add Sphinx.
7312         * timevar.def (TV_JIT_REPLAY): New.
7313         (TV_ASSEMBLE): New.
7314         (TV_LINK): New.
7315         (TV_LOAD): New.
7316
7317 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7318
7319         PR target/63610
7320         * configure: Regenerate.
7321
7322 2014-11-11  James Greenhalgh  <james.greenhalgh@arm.com>
7323
7324         * config/aarch64/aarch64-simd.md
7325         (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
7326         (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
7327         are punning between float vectors and integer vectors.
7328
7329 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
7330
7331         * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
7332         open-coded swap with std::swap to swap values.
7333         (alpha_emit_setcc): Ditto.
7334         (alpha_emit_conditional_move): Ditto.
7335         (alpha_split_tmode_pair): Ditto.
7336
7337 2014-11-11  Evgeny Stupachenko  <evstupac@gmail.com>
7338
7339         * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
7340         permutations on power of 2 cases.
7341
7342 2014-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7343
7344         * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
7345         (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
7346
7347 2014-11-11  Richard Biener  <rguenther@suse.de>
7348
7349         * tree-core.h (pedantic_lvalues): Remove.
7350         * fold-const.c (pedantic_lvalues): Likewise.
7351         (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
7352
7353 2014-11-11  Martin Liska  <mliska@suse.cz>
7354
7355         PR ipa/63622
7356         PR ipa/63795
7357         * ipa-icf.c (sem_function::merge): Add new target symbol alias
7358         support guard.
7359         (sem_variable::merge): Likewise.
7360         * ipa-icf.h (target_supports_symbol_aliases_p): New function.
7361
7362 2014-11-11  Richard Biener  <rguenther@suse.de>
7363
7364         * match.pd: Implement patterns from associate_plusminus
7365         and factor in differences from the fold-const.c implementation.
7366         * fold-const.c (fold_binary_loc): Remove patterns here.
7367         * tree-ssa-forwprop.c (associate_plusminus): Remove.
7368         (pass_forwprop::execute): Don't call it.
7369         * tree.c (tree_nop_conversion_p): New function, factored
7370         from tree_nop_conversion.
7371         * tree.h (tree_nop_conversion_p): Declare.
7372
7373 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
7374
7375         * system.h: Include algorithm and utility.
7376         * rtl.h: Do not include utility here.
7377         * wide-int.h: Ditto.
7378         * tree-vect-data-refs.c (swap): Remove template.
7379         (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
7380
7381 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7382
7383         PR bootstrap/63699
7384         PR bootstrap/63750
7385         * system.h: Include <string> before "safe-ctype.h"
7386         * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
7387         calls to min/max with wi namespace.
7388         * ipa-chkp.c: Don't include <string>.
7389
7390 2014-11-11  Terry Guo  <terry.guo@arm.com>
7391
7392         * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
7393         * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
7394         registers.
7395         (*thumb1_movhf): Likewise.
7396
7397 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
7398
7399         * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
7400         instead of INT64_MAX.
7401
7402 2014-11-11  Tobias Burnus  <burnus@net-b.de>
7403
7404         * doc/install.texi (Prerequisites): Remove CLooG.
7405
7406 2014-11-10  Trevor Saunders  <tsaunders@mozilla.com>
7407
7408         * ipa-inline.c (edge_badness): Adjust.
7409         (inline_small_functions): Likewise.
7410         * predict.c (propagate_freq): Likewise.
7411         (estimate_bb_frequencies): Likewise.
7412         * sreal.c (sreal::dump): Rename from dump_sreal.
7413         (debug): Adjust.
7414         (copy): Remove function.
7415         (sreal::shift_right): Rename from sreal_sift_right.
7416         (sreal::normalize): Rename from normalize.
7417         (sreal_init): Remove function.
7418         (sreal::to_int): Rename from sreal_to_int.
7419         (sreal_compare): Remove function.
7420         (sreal::operator+): Rename from sreal_add.
7421         (sreal::operator-): Rename from sreal_sub.
7422         (sreal::operator*): Rename from sreal_mul.
7423         (sreal::operator/): Rename from sreal_div.
7424         * sreal.h (class sreal): Adjust.
7425         (inline sreal &operator+=): New operator.
7426         (inline sreal &operator-=): Likewise.
7427         (inline sreal &operator/=): Likewise.
7428         (inline sreal &operator*=): Likewise.
7429         (inline bool operator!=): Likewise.
7430         (inline bool operator>): Likewise.
7431         (inline bool operator<=): Likewise.
7432         (inline bool operator>=): Likewise.
7433
7434 2014-11-11  Bin Cheng  <bin.cheng@arm.com>
7435
7436         * sched-deps.c (sched_analyze_1): Check pending list if it is not
7437         less than MAX_PENDING_LIST_LENGTH.
7438         (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
7439
7440 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
7441
7442         * config/i386/i386.c (ix86_decompose_address): Replace open-coded
7443         swap with std::swap to swap values.
7444         (ix86_fixup_binary_operands): Ditto.
7445         (ix86_binary_operator_ok): Ditto.
7446         (ix86_prepare_fp_compare_args): Ditto.
7447         (ix86_expand_branch): Ditto.
7448         (ix86_expand_carry_flag_compare): Ditto.
7449         (ix86_expand_int_movcc): Ditto.
7450         (ix86_prepare_sse_fp_compare_args): Ditto.
7451         (ix86_expand_sse_fp_minmax): Ditto.
7452         (ix86_expand_int_vcond): Ditto.
7453         (ix86_split_long_move): Ditto.
7454         (ix86_expand_sse_comi): Ditto.
7455         (ix86_expand_sse_compare_and_jump): Ditto.
7456         (ix86_expand_sse_compare_mask): Ditto.
7457         * config/i386/i386.md (*add<mode>_1): Ditto.
7458         (addsi_1_zext): Ditto.
7459         (*addhi_1): Ditto.
7460         (*addqi_1): Ditto.
7461         (*add<mode>_2): Ditto.
7462         (*addsi_2_zext): Ditto.
7463         (*add<mode>_3): Ditto.
7464         (*addsi_3_zext): Ditto.
7465         (*add<mode>_5): Ditto.
7466         (absneg splitter): Ditto.
7467
7468 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
7469
7470         Revert:
7471         2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
7472
7473         PR target/63620
7474         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
7475         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
7476         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
7477         be reloaded through memory.
7478         (*pushxf): Ditto.
7479         (*pushdf): Ditto.
7480
7481 2014-11-11  Jakub Jelinek  <jakub@redhat.com>
7482             Martin Liska  <mliska@suse.cz>
7483
7484         * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
7485         (func_checker::compare_gimple_call): Compare gimple_call_fn,
7486         gimple_call_chain, gimple_call_fntype and call flags.
7487
7488 2014-11-10  Vladimir Makarov  <vmakarov@redhat.com>
7489
7490         PR rtl-optimization/63620
7491         PR rtl-optimization/63799
7492         * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
7493         and setting PIC pseudo insns.
7494         (lra_create_live_ranges): Fix the typo.
7495
7496 2014-11-10  Patrick Palka  <ppalka@gcc.gnu.org>
7497
7498         PR middle-end/63748
7499         * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
7500         SSA copies whose source and destination names both occur in
7501         abnormal PHIs.
7502
7503 2014-11-10 Roman Gareev  <gareevroman@gmail.com>
7504
7505         * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
7506         * common.opt: Remove using of fgraphite-code-generator flag.
7507         * flag-types.h: Likewise.
7508         * graphite.c: Remove using of CLooG.
7509         * graphite-blocking.c: Likewise.
7510         * graphite-dependences.c: Likewise.
7511         * graphite-poly.c: Likewise.
7512         * graphite-poly.h: Likewise.
7513         * graphite-scop-detection.c: Likewise.
7514         * graphite-sese-to-poly.c: Likewise.
7515         * graphite-clast-to-gimple.c: Removed.
7516         * graphite-clast-to-gimple.h: Likewise.
7517         * graphite-htab.h: Likewise.
7518
7519 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
7520
7521         * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
7522         Add.
7523
7524 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
7525
7526         * config/frv/frv.c (frv_io_handle_use_1): Delete.
7527         (frv_io_handle_use): Use find_all_hard_regs.
7528
7529 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
7530
7531         * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
7532         than an rtx *.  Take the regstate_t directly rather than via a void *.
7533         Return a bool rather than an int.  Iterate over all subrtxes here.
7534         (frv_registers_conflict_p): Update accordingly.
7535
7536 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
7537
7538         * config/frv/frv.c: Include rtl-iter.h.
7539         (frv_acc_group_1): Delete.
7540         (frv_acc_group): Use FOR_EACH_SUBRTX.
7541
7542 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
7543
7544         * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
7545         (frv_clear_registers_used): Delete.
7546         (frv_ifcvt_modify_tests): Use find_all_hard_regs.
7547
7548 2014-11-10  Jan Hubicka  <hubicka@ucw.cz>
7549
7550         PR bootstrap/63573
7551         * calls.c (initialize_argument_information): When emitting thunk call
7552         use original memory placement of the argument.
7553
7554 2014-11-10  Renlin Li  <renlin.li@arm.com>
7555
7556         PR middle-end/61529
7557         * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
7558
7559 2014-11-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7560
7561         * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
7562         bswaphi if available.
7563
7564 2014-11-10  Bernd Schmidt  <bernds@codesourcery.com>
7565
7566         * config/nvptx/nvptx.c: New file.
7567         * config/nvptx/nvptx.h: New file.
7568         * config/nvptx/nvptx-protos.h: New file.
7569         * config/nvptx/nvptx.md: New file.
7570         * config/nvptx/t-nvptx: New file.
7571         * config/nvptx/nvptx.opt: New file.
7572         * common/config/nvptx/nvptx-common.c: New file.
7573         * config.gcc: Handle nvptx-*-*.
7574
7575 2014-11-10  Richard Biener  <rguenther@suse.de>
7576
7577         * tree-ssa-operands.c (finalize_ssa_uses): Properly put
7578         released operands on the free list.
7579
7580 2014-11-10  Richard Biener  <rguenther@suse.de>
7581
7582         * match.pd: Implement pattern from simplify_mult.
7583         * tree-ssa-forwprop.c (simplify_mult): Remove.
7584         (pass_forwprop::execute): Do not call simplify_mult.
7585
7586 2014-11-10  Richard Biener  <rguenther@suse.de>
7587
7588         PR tree-optimization/63800
7589         * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
7590         we can restore the previous availability in after_dom_children.
7591         (eliminate_dom_walker::after_dom_children): Restore
7592         previous availability.
7593
7594 2014-11-10  Richard Biener  <rguenther@suse.de>
7595
7596         PR middle-end/63798
7597         * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
7598         properly treat the embedded multiplication as commutative
7599         when looking for feeding negates.
7600
7601 2014-11-10  Joern Rennecke  <joern.rennecke@embecosm.com>
7602
7603         * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
7604
7605 2014-11-10  Martin Liska  <mliska@suse.cz>
7606
7607         * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
7608         for the test because of default char signedness
7609         on powerpc64 target.
7610
7611 2014-11-10  Richard Biener  <rguenther@suse.de>
7612
7613         * match.pd: Implement pattern from simplify_conversion_from_bitmask.
7614         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
7615         (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
7616
7617 2014-11-10  Richard Biener  <rguenther@suse.de>
7618
7619         * match.pd: Move rest of the conversion combining patterns
7620         from tree-ssa-forwprop.c.
7621         * tree-ssa-forwprop.c (combine_conversions): Remove.
7622         (pass_forwprop::execute): Do not call it.
7623
7624 2014-11-10  Eric Botcazou  <ebotcazou@adacore.com>
7625
7626         * gimple-low.c (lower_function_body): Clear the location of the first
7627         inserted representative return if it also fills in for the fallthru.
7628
7629 2014-11-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
7630
7631         * tree-if-conv.c (add_to_predicate_list): Check unconditionally
7632         that bb is always executed to early exit. Use predicate of
7633         cd-equivalent block for join blocks if it exists.
7634         (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
7635         (tree_if_conversion): Free post-dominance information.
7636
7637 2014-11-09  Jason Merrill  <jason@redhat.com>
7638
7639         * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
7640         * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
7641         (_mm_mask_cvtusepi32_storeu_epi16)
7642         (_mm_mask_cvtsepi64_storeu_epi32): Return void.
7643
7644 2014-11-09  Joern Rennecke  <joern.rennecke@embecosm.com>
7645
7646         * config/avr/predicates.md (low_io_address_operand): Fix typo.
7647
7648 2014-11-09  Vladimir Makarov  <vmakarov@redhat.com>
7649
7650         PR rtl-optimization/63620
7651         * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
7652         name.  Move to lra.c.  Make it external.
7653         (substitute_pseudo_within_insn): Ditto.
7654         (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
7655         the new names.
7656         (undo_optional_reloads): Ditto.
7657         * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
7658         New prototypes.
7659         (lra_substitute_pseudo_within_insn): Ditto.
7660         * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
7661         (mark_regno_live): Add parameter.  Update bb_gen_pseudos.
7662         (mark_regno_dead): Add parameter.  Update bb_gen_pseudos and
7663         bb_killed_pseudos.
7664         (struct bb_data, bb_data_t, bb_data): New.
7665         (get_bb_data, get_bb_data_by_index): Ditto.
7666         (all_hard_regs_bitmap): New.
7667         (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
7668         (initiate_live_solver, finish_live_solver): New.
7669         (process_bb_lives): Change return type.  Add code updating local
7670         live data and removing dead insns.  Pass new argument to
7671         mark_regno_live and mark_regno_dead.  Check changing bb pseudo
7672         life info.  Return the result.
7673         (lra_create_live_ranges): Add code to do global pseudo live
7674         analysis.
7675         (lra_live_ranges_init): Call initiate_live_solver.
7676         (lra_live_ranges_finish): Call finish_live_solver.
7677         * lra.c (lra_dump_bitmap_with_title): New.
7678         (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
7679         from lra-constraints.c.
7680
7681 2014-11-09  Richard Biener  <rguenther@suse.de>
7682
7683         * match.pd: Add patterns convering two conversions in a row
7684         from fold-const.c.
7685         * fold-const.c (fold_unary_loc): Remove them here.
7686         * tree-ssa-forwprop.c (combine_conversions): Likewise.
7687         * genmatch.c (dt_node::gen_kids): Check whether we may
7688         follow SSA use-def chains.
7689
7690 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
7691
7692         * config/aarch64/aarch64.c: Include rtl-iter.h.
7693         (aarch64_tls_operand_p_1): Delete.
7694         (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
7695
7696 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
7697
7698         * config/arm/arm.c (arm_note_pic_base): Delete.
7699         (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
7700
7701 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
7702
7703         * config/arm/arm.c: Include rtl-iter.h.
7704         (arm_tls_referenced_p_1): Delete.
7705         (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
7706
7707 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
7708
7709         * config/arm/aarch-common.c: Include rtl-iter.h.
7710         (search_term, arm_find_sub_rtx_with_search_term): Delete.
7711         (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
7712         (arm_get_set_operands): Pass the insn pattern rather than the
7713         insn itself.
7714         (arm_no_early_store_addr_dep): Likewise.
7715
7716 2014-11-08  Eric Botcazou  <ebotcazou@adacore.com>
7717
7718         * config/arm/arm.c (arm_set_return_address): Mark the store as frame
7719         related, if any.
7720         (thumb_set_return_address): Likewise.
7721
7722 2014-11-07  Jeff Law  <law@redhat.com>
7723
7724         PR tree-optimization/61515
7725         * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
7726         stack rather than looking at every SSA_NAME's value.
7727
7728 2014-11-07  Richard Biener  <rguenther@suse.de>
7729
7730         PR tree-optimization/63605
7731         * fold-const.c (fold_binary_loc): Properly use element_precision
7732         for types that may not be scalar.
7733
7734 2014-11-07  Evgeny Stupachenko  <evstupac@gmail.com>
7735
7736         PR target/63534
7737         * config/i386/i386.md (builtin_setjmp_receiver): Use
7738         pic_offset_table_rtx for PIC register.
7739         (nonlocal_goto_receiver): Delete.
7740
7741 2014-11-07  Daniel Hellstrom  <daniel@gaisler.com>
7742
7743         * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
7744         * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
7745
7746 2014-11-07  Martin Liska  <mliska@suse.cz>
7747
7748         PR ipa/63580
7749         * cgraphunit.c (cgraph_node::create_wrapper):
7750         TREE_ADDRESSABLE is set to false for a newly created thunk.
7751
7752 2014-11-07  Martin Liska  <mliska@suse.cz>
7753
7754         PR ipa/63747
7755         * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
7756         Missing checking for CASE_LOW and CASE_HIGH added.
7757
7758 2014-11-07  Martin Liska  <mliska@suse.cz>
7759
7760         PR ipa/63595
7761         * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
7762         is correctly handled for thunks created by IPA ICF.
7763
7764 2014-11-07  Jiong Wang  <jiong.wang@arm.com>
7765 2014-11-07  Richard Biener  <rguenther@suse.de>
7766
7767         PR tree-optimization/63676
7768         * gimple-fold.c (fold_gimple_assign): Do not fold node when
7769         TREE_CLOBBER_P be true.
7770
7771 2014-11-07  Richard Biener  <rguenther@suse.de>
7772
7773         PR middle-end/63770
7774         * match.pd: Guard conflicting GENERIC pattern properly.
7775
7776 2014-11-07  Richard Biener  <rguenther@suse.de>
7777
7778         * match.pd: Add patterns for POINTER_PLUS_EXPR association
7779         and special patterns from tree-ssa-forwprop.c
7780         * fold-const.c (fold_binary_loc): Remove them here.
7781         * tree-ssa-forwprop.c (to_purge): New global bitmap.
7782         (fwprop_set_lattice_val): New function.
7783         (fwprop_invalidate_lattice): Likewise.
7784         (remove_prop_source_from_use): Instead of purging dead EH
7785         edges record blocks to do that in to_purge.
7786         (tidy_after_forward_propagate_addr): Likewise.
7787         (forward_propagate_addr_expr): Invalidate the lattice for
7788         SSA names we release.
7789         (simplify_conversion_from_bitmask): Likewise.
7790         (simplify_builtin_call): Likewise.
7791         (associate_pointerplus_align): Remove.
7792         (associate_pointerplus_diff): Likewise.
7793         (associate_pointerplus): Likewise.
7794         (fold_all_stmts): Merge with ...
7795         (pass_forwprop::execute): ... the original loop over all
7796         basic-blocks.  Delay purging dead EH edges and invalidate
7797         the lattice for SSA names we release.
7798
7799 2014-11-07  Terry Guo  <terry.guo@arm.com>
7800
7801         * config/arm/arm.opt (masm-syntax-unified): New option.
7802         * doc/invoke.texi (-masm-syntax-unified): Document new option.
7803         * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
7804         (ASM_APP_ON): Redefined.
7805         * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
7806         code always use UAL syntax.
7807         (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
7808         * config/arm/thumb1.md: Likewise.
7809
7810 2014-11-06  John David Anglin  <danglin@gcc.gnu.org>
7811
7812         * config/pa/pa.md (trap): New insn.  Add "trap" to attribute type.
7813         Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
7814         or in_call_delay.
7815         
7816 2014-11-06  Steve Ellcey  <sellcey@imgtec.com>
7817
7818         * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
7819         Set default_mips_arch and default_mips_abi instead of tm_defines.
7820         (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
7821         of tm_defines.
7822         (mips*-*-*): Check with_arch and with_abi.  Set tm_defines.
7823         * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
7824         based on MIPS_ABI_DEFAULT.
7825         (STANDARD_STARTFILE_PREFIX_2): Ditto.
7826
7827 2014-11-06  Joseph Myers  <joseph@codesourcery.com>
7828
7829         * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
7830         cases of extended identifiers.
7831
7832 2014-11-06  Eric Botcazou  <ebotcazou@adacore.com>
7833
7834         * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
7835
7836 2014-11-06  DJ Delorie  <dj@redhat.com>
7837
7838         * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
7839         conditional.
7840         (movhicc_<code>_<mode>): Likewise.
7841         * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
7842         subregs.
7843         (m32c_eh_return_data_regno): Change to using memregs to avoid
7844         tying up all the compute regs.
7845         (m32c_legitimate_address_p) Subregs are not valid addresses.
7846
7847 2014-11-06  Bernd Schmidt  <bernds@codesourcery.com>
7848
7849         * function.c (thread_prologue_and_epilogue_insns): No longer static.
7850         * function.h (thread_prologue_and_epilogue_insns): Declare.
7851
7852         * target.def (assemble_undefined_decl): New hooks.
7853         * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
7854         * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
7855         * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
7856         * doc/tm.texi: Regenerate.
7857         * output.h (assemble_undefined_decl): Declare.
7858         (get_fnname_from_decl): Declare.
7859         * varasm.c (assemble_undefined_decl): New function.
7860         (get_fnname_from_decl): New function.
7861         * final.c (rest_of_handle_final): Use it.
7862         * varpool.c (varpool_output_variables): Call assemble_undefined_decl
7863         for nodes without a definition.
7864
7865         * target.def (call_args, end_call_args): New hooks.
7866         * hooks.c (hook_void_rtx_tree): New empty function.
7867         * hooks.h (hook_void_rtx_tree): Declare.
7868         * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
7869         * doc/tm.texi: Regenerate.
7870         * calls.c (expand_call): Slightly rearrange the code.  Use the two new
7871         hooks.
7872         (expand_library_call_value_1): Use the two new hooks.
7873
7874         * expr.c (use_reg_mode): Just return for pseudo registers.
7875
7876         * combine.c (try_combine): Don't allow a call as one of the source
7877         insns.
7878
7879         * target.def (decl_end): New hook.
7880         * varasm.c (assemble_variable_contents, assemble_constant_contents):
7881         Use it.
7882         * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
7883         * doc/tm.texi: Regenerate.
7884
7885 2014-11-06  Renlin Li  <renlin.li@arm.com>
7886
7887         * config/aarch64/aarch64.c (aarch64_architecture_version): New.
7888         (processor): New architecture_version field.
7889         (aarch64_override_options): Initialize aarch64_architecture_version.
7890         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
7891         __ARM_ARCH_PROFILE, aarch64_arch_name macro.
7892
7893 2014-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
7894
7895         * params.def (sra-max-scalarization-size-Ospeed): New.
7896         (sra-max-scalarization-size-Osize): Likewise.
7897         * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
7898         (sra-max-scalarization-size-Osize): Likewise.
7899         * toplev.c (process_options): Set default values for new
7900         parameters.
7901         * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
7902         * targhooks.c (get_move_ratio): Remove static designator.
7903         * target.h (get_move_ratio): Declare.
7904
7905 2014-11-06  Marek Polacek  <polacek@redhat.com>
7906
7907         * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
7908         Remove vector limit.
7909
7910 2014-11-06  Richard Biener  <rguenther@suse.de>
7911
7912         * match.pd: Implement bitwise binary and unary simplifications
7913         from tree-ssa-forwprop.c.
7914         * fold-const.c (fold_unary_loc): Remove them here.
7915         (fold_binary_loc): Likewise.
7916         * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
7917         (truth_valued_ssa_name): Likewise.
7918         (lookup_logical_inverted_value): Likewise.
7919         (simplify_bitwise_binary_1): Likewise.
7920         (hoist_conversion_for_bitop_p): Likewise.
7921         (simplify_bitwise_binary_boolean): Likewise.
7922         (simplify_bitwise_binary): Likewise.
7923         (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
7924         and simplify_bitwise_binary.
7925         * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
7926         (decision_tree::insert): Also insert non-expressions.
7927
7928 2014-11-06  Hale Wang  <hale.wang@arm.com>
7929
7930         * config/arm/arm-cores.def: Add support for
7931         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
7932         cortex-m1.small-multiply.
7933         * config/arm/arm-tables.opt: Regenerate.
7934         * config/arm/arm-tune.md: Regenerate.
7935         * config/arm/arm.c: Update the rtx-costs for MUL.
7936         * config/arm/bpabi.h: Handle
7937         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
7938         cortex-m1.small-multiply.
7939         * doc/invoke.texi: Document
7940         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
7941         cortex-m1.small-multiply.
7942
7943 2014-11-06  Hale Wang  <hale.wang@arm.com>
7944
7945         * config/arm/arm.c: Add cortex-m7 tune.
7946         * config/arm/arm-cores.def: Use cortex-m7 tune.
7947
7948 2014-11-05  Uros Bizjak  <ubizjak@gmail.com>
7949
7950         PR target/63538
7951         * config/i386/i386.c (in_large_data_p): Reject automatic variables.
7952         (ix86_encode_section_info): Do not check for non-automatic varibles
7953         when setting SYMBOL_FLAG_FAR_ADDR flag.
7954         (x86_64_elf_select_section): Do not check ix86_cmodel here.
7955         (x86_64_elf_unique_section): Ditto.
7956         (x86_elf_aligned_common): Emit tab before .largecomm.
7957
7958 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
7959
7960         PR preprocessor/9449
7961         * doc/cpp.texi (Character sets, Tokenization)
7962         (Implementation-defined behavior): Don't refer to UCNs in
7963         identifiers requiring -fextended-identifiers.
7964         * doc/cppopts.texi (-fextended-identifiers): Document as enabled
7965         by default for C99 and later and C++.
7966         * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
7967         identifiers needing -fextended-identifiers.
7968
7969 2014-11-05  Ilya Tocar  <ilya.tocar@intel.com>
7970
7971         * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
7972         for 512-bit wide modes.
7973         (expand_vec_perm_1): Use correct versions of patterns.
7974         * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
7975         (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
7976
7977 2014-11-05  Ilya Enkovich  <ilya.enkovich@intel.com>
7978
7979         * ipa-chkp.c: New.
7980         * ipa-chkp.h: New.
7981         * tree-chkp.c: New.
7982         * tree-chkp.h: New.
7983         * tree-chkp-opt.c: New.
7984         * rtl-chkp.c: New.
7985         * rtl-chkp.h: New.
7986         * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
7987         tree-chkp-opt.o.
7988         (GTFILES): Add tree-chkp.c.
7989         * mode-classes.def (MODE_POINTER_BOUNDS): New.
7990         * tree.def (POINTER_BOUNDS_TYPE): New.
7991         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7992         (POINTER_BOUNDS_MODE): New.
7993         (make_pointer_bounds_mode): New.
7994         * machmode.h (POINTER_BOUNDS_MODE_P): New.
7995         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7996         (layout_type): Support POINTER_BOUNDS_TYPE.
7997         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7998         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7999         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8000         (type_contains_placeholder_1): Likewise.
8001         (build_common_tree_nodes): Initialize
8002         pointer_bounds_type_node.
8003         * tree.h (POINTER_BOUNDS_TYPE_P): New.
8004         (pointer_bounds_type_node): New.
8005         (POINTER_BOUNDS_P): New.
8006         (BOUNDED_TYPE_P): New.
8007         (BOUNDED_P): New.
8008         (CALL_WITH_BOUNDS_P): New.
8009         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
8010         (gimple_call_with_bounds_p): New.
8011         (gimple_call_set_with_bounds): New.
8012         (gimple_return_retbnd): New.
8013         (gimple_return_set_retbnd): New
8014         * gimple.c (gimple_build_return): Increase number of ops
8015         for return statement.
8016         (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
8017         flag.
8018         * gimple-pretty-print.c (dump_gimple_return): Print second op.
8019         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
8020         * gimplify.c (gimplify_init_constructor): Avoid infinite
8021         loop during gimplification of bounds initializer.
8022         * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
8023         (special_function_p): Use original decl name when analyzing
8024         instrumentation clone.
8025         (arg_data): Add fields special_slot, pointer_arg and
8026         pointer_offset.
8027         (store_bounds): New.
8028         (emit_call_1): Propagate instrumentation flag for CALL.
8029         (initialize_argument_information): Compute pointer_arg,
8030         pointer_offset and special_slot for pointer bounds arguments.
8031         (finalize_must_preallocate): Preallocate when storing bounds
8032         in bounds table.
8033         (compute_argument_addresses): Skip pointer bounds.
8034         (expand_call): Store bounds into tables separately.  Return
8035         result joined with resulting bounds.
8036         * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
8037         (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
8038         (expand_return): Add returned bounds arg.  Handle returned bounds.
8039         (expand_gimple_stmt_1): Adjust to new expand_return signature.
8040         (gimple_expand_cfg): Reset rtx bounds map.
8041         * expr.c: Include tree-chkp.h, rtl-chkp.h.
8042         (expand_assignment): Handle returned bounds.
8043         (store_expr_with_bounds): New.  Replaces store_expr with new bounds
8044         target argument.  Handle bounds returned by calls.
8045         (store_expr): Now wraps store_expr_with_bounds.
8046         * expr.h (store_expr_with_bounds): New.
8047         * function.c: Include tree-chkp.h, rtl-chkp.h.
8048         (bounds_parm_data): New.
8049         (use_register_for_decl): Do not registerize decls used for bounds
8050         stores and loads.
8051         (assign_parms_augmented_arg_list): Add bounds of the result
8052         structure pointer as the second argument.
8053         (assign_parm_find_entry_rtl): Mark bounds are never passed on
8054         the stack.
8055         (assign_parm_is_stack_parm): Likewise.
8056         (assign_parm_load_bounds): New.
8057         (assign_bounds): New.
8058         (assign_parms): Load bounds and determine a location for
8059         returned bounds.
8060         (diddle_return_value_1): New.
8061         (diddle_return_value): Handle returned bounds.
8062         * function.h (rtl_data): Add field for returned bounds.
8063         * varasm.c: Include tree-chkp.h.
8064         (output_constant): Support POINTER_BOUNDS_TYPE.
8065         (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
8066         (ultimate_transparent_alias_target): Move up.
8067         (make_decl_rtl): For instrumented function use
8068         name of the original decl.
8069         (assemble_start_function): Mark function as global
8070         in case it is instrumentation clone of the global
8071         function.
8072         (do_assemble_alias): Follow transparent alias chain
8073         for identifier.  Check if original alias is public.
8074         (maybe_assemble_visibility): Use visibility of the
8075         original function for instrumented version.
8076         (default_unique_section): Likewise.
8077         * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
8078         (init_emit_once): Build pointer bounds zero constants.
8079         * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
8080         * target.def (builtin_chkp_function): New.
8081         (chkp_bound_type): New.
8082         (chkp_bound_mode): New.
8083         (chkp_make_bounds_constant): New.
8084         (chkp_initialize_bounds): New.
8085         (load_bounds_for_arg): New.
8086         (store_bounds_for_arg): New.
8087         (load_returned_bounds): New.
8088         (store_returned_bounds): New.
8089         (chkp_function_value_bounds): New.
8090         (setup_incoming_vararg_bounds): New.
8091         (function_arg): Update hook description with new possible return
8092         value CONST_INT.
8093         * targhooks.h (default_load_bounds_for_arg): New.
8094         (default_store_bounds_for_arg): New.
8095         (default_load_returned_bounds): New.
8096         (default_store_returned_bounds): New.
8097         (default_chkp_bound_type): New.
8098         (default_chkp_bound_mode): New.
8099         (default_builtin_chkp_function): New.
8100         (default_chkp_function_value_bounds): New.
8101         (default_chkp_make_bounds_constant): New.
8102         (default_chkp_initialize_bounds): New.
8103         (default_setup_incoming_vararg_bounds): New.
8104         * targhooks.c (default_load_bounds_for_arg): New.
8105         (default_store_bounds_for_arg): New.
8106         (default_load_returned_bounds): New.
8107         (default_store_returned_bounds): New.
8108         (default_chkp_bound_type): New.
8109         (default_chkp_bound_mode); New.
8110         (default_builtin_chkp_function): New.
8111         (default_chkp_function_value_bounds): New.
8112         (default_chkp_make_bounds_constant): New.
8113         (default_chkp_initialize_bounds): New.
8114         (default_setup_incoming_vararg_bounds): New.
8115         * builtin-types.def (BT_BND): New.
8116         (BT_FN_PTR_CONST_PTR): New.
8117         (BT_FN_CONST_PTR_CONST_PTR): New.
8118         (BT_FN_BND_CONST_PTR): New.
8119         (BT_FN_CONST_PTR_BND): New.
8120         (BT_FN_PTR_CONST_PTR_SIZE): New.
8121         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8122         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8123         (BT_FN_VOID_CONST_PTR_SIZE): New.
8124         (BT_FN_VOID_PTR_BND): New.
8125         (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
8126         (BT_FN_BND_CONST_PTR_SIZE): New.
8127         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8128         (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
8129         * chkp-builtins.def: New.
8130         * builtins.def: include chkp-builtins.def.
8131         (DEF_CHKP_BUILTIN): New.
8132         * builtins.c: Include tree-chkp.h and rtl-chkp.h.
8133         (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8134         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8135         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8136         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8137         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8138         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8139         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8140         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8141         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
8142         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8143         (std_expand_builtin_va_start): Init bounds for va_list.
8144         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
8145         __CHKP__ macro when Pointer Bounds Checker is on.
8146         * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
8147         * passes.def (pass_ipa_chkp_versioning): New.
8148         (pass_early_local_passes): Renamed to pass_build_ssa_passes.
8149         (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
8150         (pass_chkp_instrumentation_passes): New.
8151         (pass_ipa_chkp_produce_thunks): New.
8152         (pass_local_optimization_passes): New.
8153         (pass_chkp_opt): New.
8154         * tree-pass.h (make_pass_ipa_chkp_versioning): New.
8155         (make_pass_ipa_chkp_produce_thunks): New.
8156         (make_pass_chkp): New.
8157         (make_pass_chkp_opt): New.
8158         (make_pass_early_local_passes): Renamed to ...
8159         (make_pass_build_ssa_passes): This.
8160         (make_pass_chkp_instrumentation_passes): New.
8161         (make_pass_local_optimization_passes): New.
8162         * passes.c (pass_manager::execute_early_local_passes): Execute
8163         early passes in three steps.
8164         (execute_all_early_local_passes): Renamed to ...
8165         (execute_build_ssa_passes): This.
8166         (pass_data_early_local_passes): Renamed to ...
8167         (pass_data_build_ssa_passes): This.
8168         (pass_early_local_passes): Renamed to ...
8169         (pass_build_ssa_passes): This.
8170         (pass_data_chkp_instrumentation_passes): New.
8171         (pass_chkp_instrumentation_passes): New.
8172         (pass_data_local_optimization_passes): New.
8173         (pass_local_optimization_passes): New.
8174         (make_pass_early_local_passes): Renamed to ...
8175         (make_pass_build_ssa_passes): This.
8176         (make_pass_chkp_instrumentation_passes): New.
8177         (make_pass_local_optimization_passes): New.
8178         * c-family/c.opt (fcheck-pointer-bounds): New.
8179         (fchkp-check-incomplete-type): New.
8180         (fchkp-zero-input-bounds-for-main): New.
8181         (fchkp-first-field-has-own-bounds): New.
8182         (fchkp-narrow-bounds): New.
8183         (fchkp-narrow-to-innermost-array): New.
8184         (fchkp-optimize): New.
8185         (fchkp-use-fast-string-functions): New.
8186         (fchkp-use-nochk-string-functions): New.
8187         (fchkp-use-static-bounds): New.
8188         (fchkp-use-static-const-bounds): New.
8189         (fchkp-treat-zero-dynamic-size-as-infinite): New.
8190         (fchkp-check-read): New.
8191         (fchkp-check-write): New.
8192         (fchkp-store-bounds): New.
8193         (fchkp-instrument-calls): New.
8194         (fchkp-instrument-marked-only): New.
8195         (Wchkp): New.
8196         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8197         (handle_bnd_legacy): New.
8198         (handle_bnd_instrument): New.
8199         (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
8200         and bnd_instrument.  Fix documentation.
8201         (c_common_format_attribute_table): Likewsie.
8202         * toplev.c: include tree-chkp.h.
8203         (process_options): Check Pointer Bounds Checker is supported.
8204         (compile_file): Add chkp_finish_file call.
8205         * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
8206         to handle instrumentation clones properly.
8207         (propagate_constants_accross_call): Do not propagate
8208         through instrumentation thunks.
8209         * ipa-pure-const.c (propagate_pure_const): Support
8210         IPA_REF_CHKP.
8211         * ipa-inline.c (early_inliner): Check edge has summary allocated.
8212         * ipa-split.c: Include tree-chkp.h.
8213         (find_retbnd): New.
8214         (split_part_set_ssa_name_p): New.
8215         (consider_split): Do not split retbnd and retval
8216         producers.
8217         (insert_bndret_call_after): new.
8218         (split_function): Propagate Pointer Bounds Checker
8219         instrumentation marks and handle returned bounds.
8220         * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
8221         into bit field and add with_bounds field.
8222         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
8223         with_bounds field for instrumented calls.
8224         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
8225         CALL_WITH_BOUNDS_P flag for calls.
8226         * tree-ssa-ccp.c: Include tree-chkp.h.
8227         (insert_clobber_before_stack_restore): Handle
8228         BUILT_IN_CHKP_BNDRET calls.
8229         * tree-ssa-dce.c: Include tree-chkp.h.
8230         (propagate_necessity): For free call fed by alloc check
8231         bounds are also provided by the same alloc.
8232         (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
8233         used by free calls.
8234         * tree-inline.c: Include tree-chkp.h.
8235         (declare_return_variable): Add arg holding
8236         returned bounds slot.  Create and initialize returned bounds var.
8237         (remap_gimple_stmt): Handle returned bounds.
8238         Return sequence of statements instead of a single statement.
8239         (insert_init_stmt): Add declaration.
8240         (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
8241         (copy_bb): Adjust to changed return type of remap_gimple_stmt.
8242         Properly handle bounds in va_arg_pack and va_arg_pack_len.
8243         (expand_call_inline): Handle returned bounds.  Add bounds copy
8244         for generated mem to mem assignments.
8245         * tree-inline.h (copy_body_data): Add fields retbnd and
8246         assign_stmts.
8247         * value-prof.c: Include tree-chkp.h.
8248         (gimple_ic): Support returned bounds.
8249         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8250         with "chkp ctor" and "bnd_legacy" attributes.
8251         (symtab_remove_unreachable_nodes): Keep initial values for
8252         pointer bounds to be used for checks eliminations.
8253         (process_references): Handle IPA_REF_CHKP.
8254         (walk_polymorphic_call_targets): Likewise.
8255         * ipa-visibility.c (cgraph_externally_visible_p): Mark
8256         instrumented 'main' as externally visible.
8257         (function_and_variable_visibility): Filter instrumentation
8258         thunks.
8259         * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
8260         field.
8261         (cgraph_node): Add instrumented_version, orig_decl and
8262         instrumentation_clone fields.
8263         (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
8264         (varpool_node): Add need_bounds_init field.
8265         (cgraph_local_p): New.
8266         * cgraph.c: Include tree-chkp.h.
8267         (cgraph_node::remove): Fix instrumented_version
8268         of the referenced node if any.
8269         (cgraph_node::dump): Dump instrumentation_clone and
8270         instrumented_version fields.
8271         (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
8272         references and instrumentation thunks.
8273         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
8274         all not instrumented instrumentation clones alive.
8275         (cgraph_redirect_edge_call_stmt_to_callee): Support
8276         returned bounds.
8277         * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
8278         reference.
8279         (cgraph_rebuild_references): Likewise.
8280         * cgraphunit.c: Include tree-chkp.h.
8281         (assemble_thunks_and_aliases): Skip thunks calling instrumneted
8282         function version.
8283         (varpool_finalize_decl): Register statically initialized decls
8284         in Pointer Bounds Checker.
8285         (walk_polymorphic_call_targets): Do not mark generated call to
8286         __builtin_unreachable as with_bounds.
8287         (output_weakrefs): If there are both instrumented and original
8288         versions, output only one of them.
8289         (cgraph_node::expand_thunk): Set with_bounds flag
8290         for created call statement.
8291         * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
8292         (ipa_ref): increase size of use field.
8293         * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
8294         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
8295         (ctor_for_folding): Do not fold constant bounds vars.
8296         * lto-streamer.h (LTO_minor_version): Change minor version from
8297         0 to 1.
8298         * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
8299         pointer bounds.
8300         (lto_output_node): Output instrumentation_clone,
8301         thunk.add_pointer_bounds_args and orig_decl field.
8302         (lto_output_ref): Adjust to new ipa_ref::use field size.
8303         (input_overwrite_node): Read instrumentation_clone field.
8304         (input_node): Read thunk.add_pointer_bounds_args and orig_decl
8305         fields.
8306         (input_ref): Adjust to new ipa_ref::use field size.
8307         (input_cgraph_1): Compute instrumented_version fields and restore
8308         IDENTIFIER_TRANSPARENT_ALIAS chains.
8309         (lto_output_varpool_node): Output
8310         need_bounds_init value.
8311         (input_varpool_node): Read need_bounds_init value.
8312         * lto-partition.c (add_symbol_to_partition_1): Keep original
8313         and instrumented versions together.
8314         (privatize_symbol_name): Restore transparent alias chain if required.
8315         (add_references_to_partition): Add references to pointer bounds vars.
8316         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
8317         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
8318         (gen_type_die_with_usage): Skip pointer bounds.
8319         (dwarf2out_global_decl): Likewise.
8320         (is_base_type): Support POINTER_BOUNDS_TYPE.
8321         (gen_formal_types_die): Skip pointer bounds.
8322         (gen_decl_die): Likewise.
8323         * var-tracking.c (vt_add_function_parameters): Skip
8324         bounds parameters.
8325         * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
8326         thunk still exists.
8327         (sem_variable::merge): Reset need_bounds_init flag.
8328         * doc/extend.texi: Document Pointer Bounds Checker built-in functions
8329         and attributes.
8330         * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8331         (TARGET_STORE_BOUNDS_FOR_ARG): New.
8332         (TARGET_LOAD_RETURNED_BOUNDS): New.
8333         (TARGET_STORE_RETURNED_BOUNDS): New.
8334         (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
8335         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
8336         (TARGET_BUILTIN_CHKP_FUNCTION): New.
8337         (TARGET_CHKP_BOUND_TYPE): New.
8338         (TARGET_CHKP_BOUND_MODE): New.
8339         (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
8340         (TARGET_CHKP_INITIALIZE_BOUNDS): New.
8341         * doc/tm.texi: Regenerated.
8342         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8343         (BND32mode): New.
8344         (BND64mode): New.
8345         * doc/invoke.texi (-mmpx): New.
8346         (-mno-mpx): New.
8347         (chkp-max-ctor-size): New.
8348         * config/i386/constraints.md (w): New.
8349         (Ti): New.
8350         (Tb): New.
8351         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8352         * config/i386/i386-modes.def (BND32): New.
8353         (BND64): New.
8354         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8355         * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
8356         (regclass_map): Add bound registers.
8357         (dbx_register_map): Likewise.
8358         (dbx64_register_map): Likewise.
8359         (svr4_dbx_register_map): Likewise.
8360         (isa_opts): Add -mmpx.
8361         (PTA_MPX): New.
8362         (ix86_option_override_internal): Support MPX ISA.
8363         (ix86_conditional_register_usage): Support bound registers.
8364         (ix86_code_end): Add MPX bnd prefix.
8365         (output_set_got): Likewise.
8366         (print_reg): Avoid prefixes for bound registers.
8367         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8368         (ix86_print_operand_punct_valid_p): Likewise.
8369         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8370         UNSPEC_BNDLDX_ADDR.
8371         (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
8372         (ix86_class_likely_spilled_p): Add bound regs support.
8373         (ix86_hard_regno_mode_ok): Likewise.
8374         (x86_order_regs_for_local_alloc): Likewise.
8375         (ix86_bnd_prefixed_insn_p): New.
8376         (ix86_builtins): Add
8377         IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
8378         IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
8379         IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
8380         IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
8381         IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
8382         IX86_BUILTIN_BNDUPPER.
8383         (builtin_isa): Add leaf_p and nothrow_p fields.
8384         (def_builtin): Initialize leaf_p and nothrow_p.
8385         (ix86_add_new_builtins): Handle leaf_p and nothrow_p
8386         flags.
8387         (bdesc_mpx): New.
8388         (bdesc_mpx_const): New.
8389         (ix86_init_mpx_builtins): New.
8390         (ix86_init_builtins): Call ix86_init_mpx_builtins.
8391         (ix86_emit_cmove): New.
8392         (ix86_emit_move_max): New.
8393         (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
8394         IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
8395         IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
8396         IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
8397         IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
8398         IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
8399         (ix86_function_value_bounds): New.
8400         (ix86_builtin_mpx_function): New.
8401         (ix86_get_arg_address_for_bt): New.
8402         (ix86_load_bounds): New.
8403         (ix86_store_bounds): New.
8404         (ix86_load_returned_bounds): New.
8405         (ix86_store_returned_bounds): New.
8406         (ix86_mpx_bound_mode): New.
8407         (ix86_make_bounds_constant): New.
8408         (ix86_initialize_bounds):
8409         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8410         (TARGET_STORE_BOUNDS_FOR_ARG): New.
8411         (TARGET_LOAD_RETURNED_BOUNDS): New.
8412         (TARGET_STORE_RETURNED_BOUNDS): New.
8413         (TARGET_CHKP_BOUND_MODE): New.
8414         (TARGET_BUILTIN_CHKP_FUNCTION): New.
8415         (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
8416         (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
8417         (TARGET_CHKP_INITIALIZE_BOUNDS): New.
8418         (ix86_option_override_internal): Do not
8419         support x32 with MPX.
8420         (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
8421         and force_bnd_pass.
8422         (function_arg_advance_32): Return number of used integer
8423         registers.
8424         (function_arg_advance_64): Likewise.
8425         (function_arg_advance_ms_64): Likewise.
8426         (ix86_function_arg_advance): Handle pointer bounds.
8427         (ix86_function_arg): Likewise.
8428         (ix86_function_value_regno_p): Mark fisrt bounds registers as
8429         possible function value.
8430         (ix86_function_value_1): Handle pointer bounds type/mode
8431         (ix86_return_in_memory): Likewise.
8432         (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
8433         (ix86_expand_call): Generate returned bounds.
8434         (ix86_setup_incoming_vararg_bounds): New.
8435         (ix86_va_start): Initialize bounds for pointers in va_list.
8436         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
8437         * config/i386/i386.h (TARGET_MPX): New.
8438         (TARGET_MPX_P): New.
8439         (FIRST_PSEUDO_REGISTER): Fix to new value.
8440         (FIXED_REGISTERS): Add bound registers.
8441         (CALL_USED_REGISTERS): Likewise.
8442         (REG_ALLOC_ORDER): Likewise.
8443         (HARD_REGNO_NREGS): Likewise.
8444         (VALID_BND_REG_MODE): New.
8445         (FIRST_BND_REG): New.
8446         (LAST_BND_REG): New.
8447         (reg_class): Add BND_REGS.
8448         (REG_CLASS_NAMES): Likewise.
8449         (REG_CLASS_CONTENTS): Likewise.
8450         (BND_REGNO_P): New.
8451         (ANY_BND_REG_P): New.
8452         (BNDmode): New.
8453         (HI_REGISTER_NAMES): Add bound registers.
8454         (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
8455         stdarg fields.
8456         * config/i386/i386.md (UNSPEC_BNDMK): New.
8457         (UNSPEC_BNDMK_ADDR): New.
8458         (UNSPEC_BNDSTX): New.
8459         (UNSPEC_BNDLDX): New.
8460         (UNSPEC_BNDLDX_ADDR): New.
8461         (UNSPEC_BNDCL): New.
8462         (UNSPEC_BNDCU): New.
8463         (UNSPEC_BNDCN): New.
8464         (UNSPEC_MPX_FENCE): New.
8465         (UNSPEC_SIZEOF): New.
8466         (BND0_REG): New.
8467         (BND1_REG): New.
8468         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8469         (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8470         (prefix_rep): Check for bnd prefix.
8471         (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8472         (length_nobnd): New.
8473         (length): Use length_nobnd when specified.
8474         (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8475         (BND): New.
8476         (bnd_ptr): New.
8477         (BNDCHECK): New.
8478         (bndcheck): New.
8479         (*jcc_1): Add MPX bnd prefix.
8480         (*jcc_2): Likewise.
8481         (jump): Likewise.
8482         (*indirect_jump): Likewise.
8483         (*tablejump_1): Likewise.
8484         (simple_return_internal): Likewise.
8485         (simple_return_internal_long): Likewise.
8486         (simple_return_pop_internal): Likewise.
8487         (simple_return_indirect_internal): Likewise.
8488         (<mode>_mk): New.
8489         (*<mode>_mk): New.
8490         (mov<mode>): New.
8491         (*mov<mode>_internal_mpx): New.
8492         (<mode>_<bndcheck>): New.
8493         (*<mode>_<bndcheck>): New.
8494         (<mode>_ldx): New.
8495         (*<mode>_ldx): New.
8496         (<mode>_stx): New.
8497         (*<mode>_stx): New.
8498         move_size_reloc_<mode>): New.
8499         * config/i386/predicates.md (address_mpx_no_base_operand): New.
8500         (address_mpx_no_index_operand): New.
8501         (bnd_mem_operator): New.
8502         (symbol_operand): New.
8503         (x86_64_immediate_size_operand): New.
8504         * config/i386/i386.opt (mmpx): New.
8505         * config/i386/i386-builtin-types.def (BND): New.
8506         (ULONG): New.
8507         (BND_FTYPE_PCVOID_ULONG): New.
8508         (VOID_FTYPE_BND_PCVOID): New.
8509         (VOID_FTYPE_PCVOID_PCVOID_BND): New.
8510         (BND_FTYPE_PCVOID_PCVOID): New.
8511         (BND_FTYPE_PCVOID): New.
8512         (BND_FTYPE_BND_BND): New.
8513         (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
8514         (PVOID_FTYPE_PCVOID_BND_ULONG): New.
8515         (ULONG_FTYPE_VOID): New.
8516         (PVOID_FTYPE_BND): New.
8517
8518 2014-11-05  Bernd Schmidt  <bernds@codesourcery.com>
8519
8520         * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
8521         pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
8522         pass_cleanup_barriers, pass_delay_slots,
8523         pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
8524         pass_shorten_branches, pass_est_nothrow_function_flags,
8525         pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
8526         into pass_late_compilation.
8527         (pass_late_compilation): Add.
8528         * passes.c (pass_data_late_compilation, pass_late_compilation,
8529         make_pass_late_compilation): New.
8530         * timevar.def (TV_LATE_COMPILATION): New.
8531
8532         * target.def (omit_struct_return_reg): New data hook.
8533         * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
8534         * doc/tm.texi: Regenerate.
8535         * function.c (expand_function_end): Use it.
8536
8537         * target.def (no_register_allocation): New data hook.
8538         * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
8539         * doc/tm.texi: Regenerate.
8540         * ira.c (gate_ira): New function.
8541         (pass_data_ira): Set has_gate.
8542         (pass_ira): Add a gate function.
8543         (pass_data_reload): Likewise.
8544         (pass_reload): Add a gate function.
8545         (pass_ira): Use it.
8546         * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
8547         no register allocation happens on the target and return.
8548         * final.c (alter_subreg): Ensure register is not a pseudo before
8549         calling simplify_subreg.
8550         (output_operand): Assert that x isn't a pseudo only if doing
8551         register allocation.
8552
8553         * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
8554         global vars.
8555
8556         * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
8557         sorry if necessary.
8558
8559 2014-11-05  Alex Velenko  <Alex.Velenko@arm.com>
8560
8561         * simplify-rtx.c (simplify_binary_operation_1): Div check added.
8562         * rtl.h (SUBREG_P): New macro added.
8563
8564 2014-11-05  Tejas Belagod  <tejas.belagod@arm.com>
8565
8566         * config/aarch64/aarch64-builtins.c
8567         (aarch64_build_scalar_type): Remove.
8568         (aarch64_scalar_builtin_types, aarch64_simd_type,
8569         aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
8570         aarch64_mangle_builtin_vector_type,
8571         aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
8572         aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
8573         aarch64_init_simd_builtin_types,
8574         aarch64_init_simd_builtin_scalar_types): New.
8575         (aarch64_init_simd_builtins): Refactor.
8576         (aarch64_init_crc32_builtins): Fixup with qualifier.
8577         * config/aarch64/aarch64-protos.h
8578         (aarch64_mangle_builtin_type): Export.
8579         * config/aarch64/aarch64-simd-builtin-types.def: New.
8580         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
8581         (aarch64_mangle_type): Refactor.
8582         * config/aarch64/arm_neon.h: Declare vector types based on
8583         internal types.
8584         * config/aarch64/t-aarch64: Update dependency.
8585
8586 2014-11-04  Pat Haugen  <pthaugen@us.ibm.com>
8587
8588         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
8589         atomic_update_decl): Guard declaration with #ifdef.
8590
8591 2014-11-04  Marek Polacek  <polacek@redhat.com>
8592
8593         * sanopt.c (sanopt_optimize_walker): Remove unused variables.
8594
8595 2014-11-04  Marek Polacek  <polacek@redhat.com>
8596
8597         * Makefile.in (OBJS): Add sanopt.o.
8598         (GTFILES): Add sanopt.c.
8599         * asan.h (asan_expand_check_ifn): Declare.
8600         * asan.c (asan_expand_check_ifn): No longer static.
8601         (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
8602         * sanopt.c: ...here.  New file.
8603
8604 2014-11-04  Jiong Wang  <jiong.wang@arm.com>
8605 2014-11-04  Wilco Dijkstra  <wilco.dijkstra@arm.com>
8606
8607         PR target/63293
8608         * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
8609         stack adjustment.
8610
8611 2014-11-04  Bernd Schmidt  <bernds@codesourcery.com>
8612
8613         * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
8614         also verify that mode is equal to the mode of op0.
8615
8616         * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
8617         emit into a sequence instead.
8618
8619 2014-11-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8620
8621         * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
8622
8623 2014-11-04  Alan Lawrence  <alan.lawrence@arm.com>
8624
8625         config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
8626         (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
8627         (reduc_smax_<mode> *2): Rename to...
8628         (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
8629         (reduc_umin_<mode> *2): Rename to...
8630         (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
8631         (reduc_umax_<mode> *2): Rename to...
8632         (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
8633
8634 2014-11-04  Alan Lawrence  <alan.lawrence@arm.com>
8635
8636         config/arm/neon.md (reduc_plus_*): Rename to...
8637         (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
8638
8639 2014-11-04  Michael Collison <michael.collison@linaro.org>
8640
8641         * config/aarch64/iterators.md (lconst_atomic): New mode attribute
8642         to support constraints for CONST_INT in atomic operations.
8643         * config/aarch64/atomics.md
8644         (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
8645         (atomic_nand<mode>): Likewise.
8646         (atomic_fetch_<atomic_optab><mode>): Likewise.
8647         (atomic_fetch_nand<mode>): Likewise.
8648         (atomic_<atomic_optab>_fetch<mode>): Likewise.
8649         (atomic_nand_fetch<mode>): Likewise.
8650
8651 2014-11-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8652
8653         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
8654         of __ARM_FEATURE_IDIV.
8655
8656 2014-11-04  Marek Polacek  <polacek@redhat.com>
8657
8658         * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
8659
8660 2014-11-03  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8661
8662         * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
8663
8664 2014-11-04  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8665
8666         Revert:
8667         2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8668         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
8669         Allow CC mode if HAVE_cbranchcc4.
8670
8671 2014-11-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8672
8673         * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
8674         with -fdump-go-spec.  Anonymous substructures are now flattened and
8675         replaced by their fields (record) or the first named, non-bitfield
8676         field (union).
8677
8678 2014-11-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8679
8680         * input.c (expand_location_to_spelling_point): Fix typo.
8681         (expansion_point_location_if_in_system_header): Fix comment.
8682
8683 2014-11-03  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8684
8685         * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
8686
8687 2014-11-03  Richard Biener  <rguenther@suse.de>
8688
8689         * tree-eh.c (operation_could_trap_helper_p): Handle conversions
8690         like ordinary operations.
8691         * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
8692         as NOP_EXPR.
8693
8694 2014-11-03  Joseph Myers  <joseph@codesourcery.com>
8695
8696         * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
8697         macros.
8698         * configure, config.h.in: Regenerate.
8699         * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
8700         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
8701         (RS6000_GLIBC_ATOMIC_FENV): New macro.
8702         * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
8703         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
8704         (RS6000_GLIBC_ATOMIC_FENV): New macro.
8705         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
8706         (atomic_update_decl): New static variables.
8707         (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
8708         Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
8709         and __atomic_feupdateenv for soft-float and no-FPRs.
8710
8711 2014-11-03  Richard Biener  <rguenther@suse.de>
8712
8713         * match.pd: Add two abs patterns.  Announce tree_expr_nonnegative_p.
8714         Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
8715         * fold-const.c (fold_unary_loc): Remove them here.
8716         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
8717         * gimple-fold.c (fold_gimple_assign): Remove now obsolete
8718         GIMPLE_UNARY_RHS case.
8719         (gimple_fold_stmt_to_constant_1): Likewise.
8720         (replace_stmt_with_simplification): Fix inverted comparison.
8721
8722 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
8723
8724         PR tree-optimization/60770
8725         * tree-into-ssa.c (rewrite_update_stmt): Return whether the
8726         statement should be removed.
8727         (maybe_register_def): Likewise. Replace clobbers with default
8728         definitions.
8729         (rewrite_dom_walker::before_dom_children): Remove statement if
8730         rewrite_update_stmt says so.
8731         * tree-ssa-live.c: Include tree-ssa.h.
8732         (set_var_live_on_entry): Do not mark undefined variables as live.
8733         (verify_live_on_entry): Do not check undefined variables.
8734         * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
8735         of partially undefined variables.
8736         * tree-ssa.c (ssa_undefined_value_p): Likewise.
8737         (execute_update_addresses_taken): Do not drop clobbers.
8738
8739 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
8740
8741         PR tree-optimization/63666
8742         * fold-const.c: Include "optabs.h".
8743         (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
8744         can_vec_perm_p permutation to one that is not.
8745
8746 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8747
8748         * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
8749
8750 2014-11-03  Andrew Pinski  <apinski@cavium.com>
8751
8752         * config/mips/mips-cpus.def (octeon3): New cpu.
8753         * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
8754         (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
8755         of the comparison no longer matches mode of the operands.
8756         (mips_issue_rate): Handle PROCESSOR_OCTEON3.
8757         * config/mips/mips.h (TARGET_OCTEON):  Add Octeon3.
8758         (TARGET_OCTEON2): Likewise.
8759         (TUNE_OCTEON): Add Octeon3.
8760         * config/mips/mips.md (processor): Add octeon3.
8761         * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
8762         (octeon_arith): Add octeon3.
8763         (octeon_condmove): Remove.
8764         (octeon_condmove_o1): New reservation.
8765         (octeon_condmove_o2): New reservation.
8766         (octeon_condmove_o3_int_on_cc): New reservation.
8767         (octeon_load_o2): Add octeon3.
8768         (octeon_cop_o2): Likewise.
8769         (octeon_store): Likewise.
8770         (octeon_brj_o2): Likewise.
8771         (octeon_imul3_o2): Likewise.
8772         (octeon_imul_o2): Likewise.
8773         (octeon_mfhilo_o2): Likewise.
8774         (octeon_imadd_o2): Likewise.
8775         (octeon_idiv_o2_si): Likewise.
8776         (octeon_idiv_o2_di): Likewise.
8777         (octeon_fpu): Add to the automaton.
8778         (octeon_fpu): New cpu unit.
8779         (octeon_condmove_o2): Check for non floating point modes.
8780         (octeon_load_o2): Add prefetchx.
8781         (octeon_cop_o2): Don't check for octeon3.
8782         (octeon3_faddsubcvt): New reservation.
8783         (octeon3_fmul): Likewise.
8784         (octeon3_fmadd): Likewise.
8785         (octeon3_div_sf): Likewise.
8786         (octeon3_div_df): Likewise.
8787         (octeon3_sqrt_sf): Likewise.
8788         (octeon3_sqrt_df): Likewise.
8789         (octeon3_rsqrt_sf): Likewise.
8790         (octeon3_rsqrt_df): Likewise.
8791         (octeon3_fabsnegmov): Likewise.
8792         (octeon_fcond): Likewise.
8793         (octeon_fcondmov): Likewise.
8794         (octeon_fpmtc1): Likewise.
8795         (octeon_fpmfc1): Likewise.
8796         (octeon_fpload): Likewise.
8797         (octeon_fpstore): Likewise.
8798         * config/mips/mips-tables.opt: Regenerate.
8799         * doc/invoke.texi (-march=@var{arch}): Add octeon3.
8800
8801 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8802
8803         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
8804         Allow CC mode if HAVE_cbranchcc4.
8805
8806 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8807
8808         * config/arc/arc.c (write_ext_corereg_1): Delete.
8809         (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
8810
8811 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8812
8813         * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
8814         (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
8815
8816 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8817
8818         * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
8819         (small_data_pattern_1): Delete.
8820         (small_data_pattern): Use FOR_EACH_SUBRTX.
8821
8822 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8823
8824         * config/arc/arc.c: Include rtl-iter.h.
8825         (arc_rewrite_small_data_1): Delete.
8826         (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
8827
8828 2014-11-02  Michael Collison  <michael.collison@linaro.org>
8829
8830         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
8831         to support vector modes.
8832         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
8833
8834 2014-11-01  Andrew MacLeod  <amacleod@redhat,com>
8835
8836         * optabs.h: Flatten insn-codes.h to source files.  Move some prototypes
8837         and structs to genopinit.c.  Adjust protyoptypes to match optabs.c.
8838         * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
8839         * optabs.c: (gen_move_insn): Move to expr.c.
8840         * expr.h: Move protypes and enums to optabs.h.
8841         * expr.c: (gen_move_insn): Relocate from optabs.c.
8842         * genemit.c (main): Include insn-codes.h.
8843         * gengtype.c (open_base_files): Include insn-codes.h.
8844         * asan.c: Include insn-codes.h.
8845         * bb-reorder.c: Ditto.
8846         * builtins.c: Ditto.
8847         * calls.c: Ditto.
8848         * cfgexpand.c: Ditto.
8849         * cilk-common.c: Ditto.
8850         * combine.c: Ditto.
8851         * dojump.c: Ditto.
8852         * dse.c: Ditto.
8853         * except.c: Ditto.
8854         * explow.c: Ditto.
8855         * expmed.c: Ditto.
8856         * function.c: Ditto.
8857         * ifcvt.c: Ditto.
8858         * internal-fn.c: Ditto.
8859         * loop-unroll.c: Ditto.
8860         * lra.c: Ditto.
8861         * modulo-sched.c: Ditto.
8862         * omp-low.c: Ditto.
8863         * postreload.c: Ditto.
8864         * ree.c: Ditto.
8865         * reload.c: Ditto.
8866         * reload1.c: Ditto.
8867         * shrink-wrap.c: Ditto.
8868         * simplify-rtx.c: Ditto.
8869         * stmt.c: Ditto.
8870         * target-globals.c: Ditto.
8871         * targhooks.c: Ditto.
8872         * toplev.c: Ditto.
8873         * tree-if-conv.c: Ditto.
8874         * tree-ssa-forwprop.c: Ditto.
8875         * tree-ssa-loop-prefetch.c: Ditto.
8876         * tree-ssa-math-opts.c: Ditto.
8877         * tree-ssa-phiopt.c: Ditto.
8878         * tree-ssa-reassoc.c: Ditto.
8879         * tree-switch-conversion.c: Ditto.
8880         * tree-vect-data-refs.c: Ditto.
8881         * tree-vect-generic.c: Ditto.
8882         * tree-vect-loop.c: Ditto.
8883         * tree-vect-patterns.c: Ditto.
8884         * tree-vect-slp.c: Ditto.
8885         * tree-vect-stmts.c: Ditto.
8886         * tree-vrp.c: Ditto.
8887         * value-prof.c: Ditto.
8888         * config/aarch64/aarch64-builtins.c: Ditto.
8889         * config/alpha/alpha.c: Ditto.
8890         * config/arm/arm.c: Ditto.
8891         * config/cris/cris.c: Ditto.
8892         * config/epiphany/epiphany.c: Ditto.
8893         * config/frv/frv.c: Ditto.
8894         * config/h8300/h8300.c: Ditto.
8895         * config/ia64/ia64.c: Ditto.
8896         * config/iq2000/iq2000.c: Ditto.
8897         * config/m32c/m32c.c: Ditto.
8898         * config/mep/mep.c: Ditto.
8899         * config/microblaze/microblaze.c: Ditto.
8900         * config/mips/mips.c: Ditto.
8901         * config/mn10300/mn10300.c: Ditto.
8902         * config/moxie/moxie.c: Ditto.
8903         * config/msp430/msp430.c: Ditto.
8904         * config/nios2/nios2.c: Ditto.
8905         * config/pa/pa.c: Ditto.
8906         * config/rl78/rl78.c: Ditto.
8907         * config/rs6000/rs6000.c: Ditto.
8908         * config/rx/rx.c: Ditto.
8909         * config/s390/s390.c: Ditto.
8910         * config/sh/sh.c: Ditto.
8911         * config/sh/sh_treg_combine.cc: Ditto.
8912         * config/spu/spu.c: Ditto.
8913         * config/stormy16/stormy16.c: Ditto.
8914         * config/tilegx/mul-tables.c: Ditto.
8915         * config/tilegx/tilegx.c: Ditto.
8916         * config/tilepro/mul-tables.c: Ditto.
8917         * config/tilepro/tilepro.c: Ditto.
8918         * config/vax/vax.c: Ditto.
8919
8920 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8921
8922         * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
8923         (CLEAR_BY_PIECES_P): Likewise.
8924         (SET_BY_PIECES_P): Likewise.
8925         (STORE_BY_PIECES_P): Likewise.
8926         * doc/tm.texi: Regenerate.
8927         * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
8928         SET_BY_PIECES_P, STORE_BY_PIECES_P.
8929         * expr.c (MOVE_BY_PIECES_P): Remove.
8930         (CLEAR_BY_PIECES_P): Likewise.
8931         (SET_BY_PIECES_P): Likewise.
8932         (STORE_BY_PIECES_P): Likewise.
8933         (can_move_by_pieces): Rewrite in terms of
8934         targetm.use_by_pieces_infrastructure_p.
8935         (emit_block_move_hints): Likewise.
8936         (can_store_by_pieces): Likewise.
8937         (store_by_pieces): Likewise.
8938         (clear_storage_hints): Likewise.
8939         (emit_push_insn): Likewise.
8940         (expand_constructor): Likewise.
8941
8942 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8943
8944         * config/aarch64/aarch64.c
8945         (aarch64_use_by_pieces_infrastructre_p): New.
8946         (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
8947         * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
8948
8949 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8950
8951         * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
8952         (STORE_BY_PIECES_P): Likewise.
8953         * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
8954         (mips_move_by_pieces_p): Rename to...
8955         (mips_use_by_pieces_infrastructure_p): ...this, use new hook
8956         parameters, use the default hook implementation as a
8957         fall-back.
8958
8959 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8960
8961         * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
8962         (sh_use_by_pieces_infrastructure_p): Likewise.
8963         * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
8964         (STORE_BY_PIECES_P): Likewise.
8965         (SET_BY_PIECES_P): Likewise.
8966
8967 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8968
8969         * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
8970         (arc_use_by_pieces_infrastructure_p): Likewise.
8971         * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
8972         (CAN_MOVE_BY_PIECES): Likewise.
8973
8974 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8975
8976         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
8977         (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
8978         * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
8979         (CLEAR_BY_PIECES): Likewise.
8980         (SET_BY_PIECES): Likewise.
8981         (STORE_BY_PIECES): Likewise.
8982
8983 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8984
8985         * target.def (use_by_pieces_infrastructure_p): New.
8986         * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
8987         is deprecated.
8988         (STORE_BY_PIECES_P): Likewise.
8989         (CLEAR_BY_PIECES_P): Likewise.
8990         (SET_BY_PIECES_P): Likewise.
8991         (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
8992         * doc/tm.texi: Regenerate.
8993         * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
8994         TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
8995         (STORE_BY_PIECES_P): Likewise.
8996         (CLEAR_BY_PIECES_P): Likewise.
8997         (SET_BY_PIECES_P): Likewise.
8998         (STORE_MAX_PIECES): Move to...
8999         * defaults.h (STORE_MAX_PIECES): ...here.
9000         * targhooks.c (get_move_ratio): New.
9001         (default_use_by_pieces_infrastructure_p): Likewise.
9002         * targhooks.h (default_use_by_pieces_infrastructure_p): New.
9003         * target.h (by_pieces_operation): New.
9004
9005 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
9006
9007         PR target/63702
9008         * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
9009         assignment to 'nargs' variable.
9010
9011 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
9012
9013         PR target/63620
9014         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
9015         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
9016         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
9017         be reloaded through memory.
9018         (*pushxf): Ditto.
9019         (*pushdf): Ditto.
9020
9021 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
9022
9023         PR rtl-optimization/63659
9024         * ree.c (update_reg_equal_equiv_notes): New function.
9025         (combine_set_extension, transform_ifelse): Use it.
9026
9027 2014-10-31  Jeff Law  <law@redhat.com>
9028
9029         * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
9030         and Jonny Grant (collect2).
9031
9032 2014-10-31  Richard Biener  <rguenther@suse.de>
9033
9034         * builtins.c (fold_builtin_atomic_always_lock_free): Use
9035         CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
9036         approprate.
9037         (fold_builtin_expect): Likewise.
9038         (integer_valued_real_p): Likewise.
9039         * cfgexpand.c (expand_debug_expr): Likewise.
9040         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
9041         (find_foldable_builtin_expect): Likewise.
9042         * trans-mem.c (thread_private_new_memory): Likewise.
9043         * tree-affine.c (aff_combination_expand): Likewise.
9044         * tree-data-ref.c (initialize_matrix_A): Likewise.
9045         * tree-inline.c (copy_bb): Likewise.
9046         * tree-pretty-print.c (dump_function_name): Likewise.
9047         (print_call_name): Likewise.
9048         * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
9049         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
9050         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
9051         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
9052         (vect_recog_widen_mult_pattern): Likewise.
9053         (vect_operation_fits_smaller_type): Likewise.
9054         * tree-vrp.c (find_assert_locations_1): Likewise.
9055         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
9056         converts to NOP_EXPR.
9057
9058 2014-10-31  Richard Biener  <rguenther@suse.de>
9059
9060         * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
9061         CONVERT_EXPRs in generated code.
9062         (dt_simplify::gen): Likewise.
9063
9064 2014-10-31  Evgeny Stupachenko  <evstupac@gmail.com>
9065
9066         PR target/63534
9067         * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
9068         REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
9069         (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
9070         using mcount in 32bit PIC mode.
9071         (ix86_elim_entry_set_got): New.
9072         (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
9073         in PROLOGUE, delete initial if possible.
9074
9075 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
9076
9077         * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
9078         (want_inline_function_to_all_callers_p): Fix formatting and simplify.
9079
9080 2014-10-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9081
9082         PR tree-optimization/63259
9083         * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
9084         rotation left if it is a 16 bit byte swap.
9085         (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
9086         and RROTATE_EXPR statements if it is a byte rotation.
9087
9088 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
9089
9090         PR sanitizer/63697
9091         * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
9092         MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
9093         instead of vr0.min - vr1.min and vr0.max - vr1.max.
9094
9095 2014-10-31  Max Ostapenko  <m.ostapenko@partner.samsung.com>
9096
9097         PR ipa/63696
9098         * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
9099         alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
9100
9101 2014-10-30  Felix Yang  <felix.yang@huawei.com>
9102
9103         * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
9104         * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
9105         (xtensa_reorg, xtensa_reorg_loops): New.
9106         (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
9107         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
9108         (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
9109         (xtensa_doloop_hooks): Define.
9110         * config/xtensa/xtensa.md (doloop_end, loop_end): New
9111         (zero_cost_loop_start): Rewritten.
9112         (zero_cost_loop_end): Likewise.
9113
9114 2014-10-30  Steve Ellcey  <sellcey@imgtec.com>
9115
9116         * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
9117
9118 2014-10-30  Richard Biener  <rguenther@suse.de>
9119
9120         * genmatch.c: Remove <map>, <utility> and <string> includes.
9121         Include ggc.h and hash-map.h.
9122         (ggc_internal_cleared_alloc): Provide stub definition.
9123         (ggc_free): Likewise.
9124         (struct capture_id_map_hasher): New traits for hash_map.
9125         (cid_map_t): New typedef.
9126         (everywhere else): Replace std::map use with cid_map_t.
9127         * hash-map.h (hash_map::elements): New member function.
9128         * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
9129         hash-map.h and $(GGC_H) as dependency.
9130
9131 2014-10-30  Richard Biener  <rguenther@suse.de>
9132
9133         * genmatch.c (capture_info::walk_c_expr): Ignore capture
9134         uses inside TREE_TYPE ().
9135         * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
9136         (find_candidates_dom_walker::before_dom_children): Likewise.
9137         (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
9138         (replace_profitable_candidates): Likewise.
9139         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
9140         CONVERT_EXPR_CODE_P to CONVERT_EXPR.
9141         * convert.c (convert_to_integer): Use CASE_CONVERT.
9142
9143 2014-10-30  Richard Biener  <rguenther@suse.de>
9144
9145         * match.pd: Implement more patterns that simplify to a single value.
9146         * fold-const.c (fold_binary_loc): Remove them here.
9147         * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
9148         (fwprop_ssa_val): Remove restriction on single uses.
9149
9150 2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9151
9152         * config/avr/driver-avr.c (avr_set_current_device): Remove.
9153
9154 2014-10-30  Martin Liska  <mliska@suse.cz>
9155
9156         PR ipa/63574
9157         PR ipa/63664
9158         * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
9159         (func_checker::compare_gimple_label): Simlified comparison introduced.
9160         * ipa-icf-gimple.h: Missing comment added.
9161
9162 2014-10-30  Jeff Law  <law@redhat.com>
9163
9164         * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
9165         argument from rtx to rtx_insn *.
9166         (compute_movmem_length, compute_clrmem_length): Likewise.
9167         (copy_fp_args, length_fp_args): Likewise.
9168         * config/pa/pa.c (legitimize_pic_address): Promote local variable
9169         "insn" from rtx to rtx_insn *.
9170         (legitimize_tls_address, pa_emit_move_sequence): Likewise.
9171         (pa_output_block_move, store_reg, store_reg_modify): Likewise.
9172         (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
9173         (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
9174         (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
9175         (compute_movmem_length, compute_clrmem_length): Likewise.
9176         (copy_fp-args, length_fp_args): Likewise.
9177
9178 2014-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9179
9180         * config/arm/arm.h (MACHMODE): Treat machine_mode as a
9181         scalar typedef.
9182         (CUMULATIVE_ARGS): Guard against target includes.
9183         (machine_function): Likewise.
9184
9185 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9186
9187         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
9188         recog state after aarch64_prev_real_insn call.
9189
9190 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9191
9192         * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
9193
9194 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9195
9196         * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
9197         (struct machine_function): Gate definition on
9198         !defined(USED_FOR_TARGET).
9199
9200 2014-10-29  DJ Delorie  <dj@redhat.com>
9201
9202         * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
9203
9204 2014-10-29  Martin Liska  <mliska@suse.cz>
9205
9206         PR ipa/63587
9207         * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
9208         to local declarations.
9209         * function.c (add_local_decl): Implementation moved from header
9210         file, assert introduced for tree type.
9211         * function.h: Likewise.
9212
9213 2014-10-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9214
9215         * godump.c (go_format_type): Represent "float _Complex" and
9216         "double _Complex" as complex64 or complex128 in Go, as appropriate.
9217
9218 2014-10-29  Richard Biener  <rguenther@suse.de>
9219
9220         * match.pd: Implement a first set of conversion patterns.
9221         * fold-const.c (fold_unary_loc): Remove them here.
9222         * tree-ssa-forwprop.c (simplify_vce): Remove.
9223         (pass_forwprop::execute): Do not call simplify_vce.
9224
9225 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
9226
9227         * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
9228         builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
9229         cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
9230         config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
9231         config/aarch64/aarch64.c, config/aarch64/aarch64.h,
9232         config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
9233         config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
9234         config/arc/arc.h, config/arc/predicates.md,
9235         config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
9236         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
9237         config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
9238         config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
9239         config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
9240         config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
9241         config/cr16/cr16-protos.h, config/cr16/cr16.c,
9242         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
9243         config/darwin-protos.h, config/darwin.c,
9244         config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
9245         config/epiphany/epiphany.md, config/fr30/fr30.c,
9246         config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
9247         config/h8300/h8300-protos.h, config/h8300/h8300.c,
9248         config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
9249         config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
9250         config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
9251         config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
9252         config/iq2000/iq2000.c, config/iq2000/iq2000.md,
9253         config/lm32/lm32-protos.h, config/lm32/lm32.c,
9254         config/m32c/m32c-protos.h, config/m32c/m32c.c,
9255         config/m32r/m32r-protos.h, config/m32r/m32r.c,
9256         config/m68k/m68k-protos.h, config/m68k/m68k.c,
9257         config/mcore/mcore-protos.h, config/mcore/mcore.c,
9258         config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
9259         config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
9260         config/mips/mips-protos.h, config/mips/mips.c,
9261         config/mmix/mmix-protos.h, config/mmix/mmix.c,
9262         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
9263         config/moxie/moxie.c, config/msp430/msp430-protos.h,
9264         config/msp430/msp430.c, config/nds32/nds32-cost.c,
9265         config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9266         config/nds32/nds32-protos.h, config/nds32/nds32.c,
9267         config/nios2/nios2-protos.h, config/nios2/nios2.c,
9268         config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
9269         config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
9270         config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
9271         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
9272         config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
9273         config/s390/predicates.md, config/s390/s390-protos.h,
9274         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
9275         config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
9276         config/sh/sh.md, config/sparc/predicates.md,
9277         config/sparc/sparc-protos.h, config/sparc/sparc.c,
9278         config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
9279         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
9280         config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
9281         config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
9282         config/tilepro/tilepro.c, config/v850/v850-protos.h,
9283         config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
9284         config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
9285         config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
9286         dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
9287         doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
9288         dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
9289         except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
9290         fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
9291         fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
9292         genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
9293         graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
9294         internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
9295         ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
9296         libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
9297         loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
9298         lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
9299         lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
9300         output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
9301         recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
9302         regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
9303         rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
9304         sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
9305         simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
9306         targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
9307         tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
9308         tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
9309         tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
9310         tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
9311         tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
9312         tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
9313         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
9314         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
9315         tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
9316         var-tracking.c, varasm.c: Remove redundant enum from
9317         machine_mode.
9318         * gengtype.c (main): Treat machine_mode as a scalar typedef.
9319         * genmodes.c (emit_insn_modes_h): Hide inline functions if
9320         USED_FOR_TARGET.
9321
9322 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
9323
9324         PR rtl-optimization/63340 (part 2)
9325         * rtl.h (invalid_mode_change_p): Delete.
9326         (valid_mode_changes_for_regno): New function.
9327         * reginfo.c (invalid_mode_change_p): Delete.
9328         (valid_mode_changes_for_regno): New function.
9329         * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
9330         classes to registers that are allowed by valid_mode_changes_for_regno.
9331         (setup_regno_cost_classes_by_mode): Likewise.
9332         (print_allocno_costs): Remove invalid_mode_change_p test.
9333         (print_pseudo_costs, find_costs_and_classes): Likewise.
9334
9335 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
9336
9337         PR rtl-optimization/63340 (part 1)
9338         * ira-costs.c (all_cost_classes): New variable.
9339         (complete_cost_classes): New function, split out from...
9340         (setup_cost_classes): ...here.
9341         (initiate_regno_cost_classes): Set up all_cost_classes.
9342         (restrict_cost_classes): New function.
9343         (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
9344         registers that are valid for the register's mode.
9345         (setup_regno_cost_classes_by_mode): Model the mode cache as a
9346         restriction of all_cost_classes to a particular mode.
9347         (print_allocno_costs): Remove contains_reg_of_mode check.
9348         (print_pseudo_costs, find_costs_and_classes): Likewise.
9349
9350 2014-10-29  Richard Biener  <rguenther@suse.de>
9351
9352         PR tree-optimization/63666
9353         * tree-vect-slp.c (vect_get_mask_element): Properly handle
9354         accessing out-of-bound elements.
9355
9356 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9357             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9358             Anna Tikhonova  <anna.tikhonova@intel.com>
9359             Ilya Tocar  <ilya.tocar@intel.com>
9360             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9361             Ilya Verbin  <ilya.verbin@intel.com>
9362             Kirill Yukhin  <kirill.yukhin@intel.com>
9363             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9364
9365         * config/i386/i386.md
9366         (movhi_internal): Always detect maskmov.
9367         (movqi_internal): Fix target check.
9368
9369 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9370             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9371             Anna Tikhonova  <anna.tikhonova@intel.com>
9372             Ilya Tocar  <ilya.tocar@intel.com>
9373             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9374             Ilya Verbin  <ilya.verbin@intel.com>
9375             Kirill Yukhin  <kirill.yukhin@intel.com>
9376             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9377
9378         * config/i386/avx512bwintrin.h: Add new intrinsics.
9379         * config/i386/avx512vlbwintrin.h: Ditto.
9380         * config/i386/avx512vlintrin.h: Ditto.
9381
9382 2014-10-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9383
9384         * godump.c (precision_to_units): New helper function.
9385         (go_append_artificial_name): Ditto.
9386         (go_append_decl_name): Ditto.
9387         (go_append_bitfield): Ditto.
9388         (go_get_uinttype_for_precision): Ditto.
9389         (go_append_padding): Ditto.
9390         (go_force_record_alignment): Ditto.
9391         (go_format_type): Represent unions with an array of uints of the size
9392         of the alignment in go.  This fixes the 'random' size of the union's
9393         representation using just the first field.
9394         (go_format_type): Add argument that indicates whether a record is
9395         nested (used for generation of artificial go names).
9396         (go_output_fndecl): Adapt to new go_format_type signature.
9397         (go_output_typedef): Ditto.
9398         (go_output_var): Ditto.
9399         (go_output_var): Prefer to output type as alias (typedef).
9400         (go_format_type): Bitfields in records are simulated as arrays of bytes
9401         in go.
9402
9403         * godump.c (go_format_type): Fix handling of arrays with zero elements.
9404
9405 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
9406
9407         * cgraph.h: Flatten.  Remove all include files.
9408         (symbol_table::initialize): Move to cgraph.c.
9409         * cgraph.c: Adjust include files.
9410         (symbol_table::initialize): Relocate from cgraph.h.
9411         * gengtype.c (open_base_files): Adjust include files.
9412         * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
9413         included files.
9414         * ipa-inline.h: Remove all include files.
9415         * ipa-prop.h: Ditto.
9416         * ipa-reference.h: Ditto.
9417         * ipa-utils.h: Ditto:
9418         * lto-streamer.h: Remove cgraph.h from include list.
9419         * asan.c: Adjust include files.
9420         * auto-profile.c: Ditto.
9421         * bb-reorder.c: Ditto.
9422         * calls.c: Ditto.
9423         * cfgexpand.c: Ditto.
9424         * cgraphbuild.c: Ditto.
9425         * cgraphclones.c: Ditto.
9426         * cgraphunit.c: Ditto.
9427         * combine.c: Ditto.
9428         * coverage.c: Ditto.
9429         * data-streamer.c: Ditto.
9430         * data-streamer-in.c: Ditto.
9431         * data-streamer-out.c: Ditto.
9432         * dbxout.c: Ditto.
9433         * dwarf2out.c: Ditto.
9434         * except.c: Ditto.
9435         * expr.c: Ditto.
9436         * final.c: Ditto.
9437         * fold-const.c: Ditto.
9438         * ggc-page.c: Ditto.
9439         * gimple-fold.c: Ditto.
9440         * gimple-iterator.c: Ditto.
9441         * gimple-pretty-print.c: Ditto.
9442         * gimple-streamer-in.c: Ditto.
9443         * gimple-streamer-out.c: Ditto.
9444         * gimplify.c: Ditto.
9445         * ipa.c: Ditto.
9446         * ipa-comdats.c: Ditto.
9447         * ipa-cp.c: Ditto.
9448         * ipa-devirt.c: Ditto.
9449         * ipa-icf.c: Ditto.
9450         * ipa-icf-gimple.c: Ditto.
9451         * ipa-inline-analysis.c: Ditto.
9452         * ipa-inline.c: Ditto.
9453         * ipa-inline-transform.c: Ditto.
9454         * ipa-polymorphic-call.c: Ditto.
9455         * ipa-profile.c: Ditto.
9456         * ipa-prop.c: Ditto.
9457         * ipa-pure-const.c: Ditto.
9458         * ipa-ref.c: Ditto.
9459         * ipa-reference.c: Ditto.
9460         * ipa-split.c: Ditto.
9461         * ipa-utils.c: Ditto.
9462         * ipa-visibility.c: Ditto.
9463         * langhooks.c: Ditto.
9464         * lto-cgraph.c: Ditto.
9465         * lto-compress.c: Ditto.
9466         * lto-opts.c: Ditto.
9467         * lto-section-in.c: Ditto.
9468         * lto-section-out.c: Ditto.
9469         * lto-streamer.c: Ditto.
9470         * lto-streamer-in.c: Ditto.
9471         * lto-streamer-out.c: Ditto.
9472         * omp-low.c: Ditto.
9473         * opts-global.c: Ditto.
9474         * passes.c: Ditto.
9475         * predict.c: Ditto.
9476         * print-tree.c: Ditto.
9477         * profile.c: Ditto.
9478         * ree.c: Ditto.
9479         * stor-layout.c: Ditto.
9480         * symtab.c: Ditto.
9481         * toplev.c: Ditto.
9482         * trans-mem.c: Ditto.
9483         * tree.c: Ditto.
9484         * tree-cfg.c: Ditto.
9485         * tree-eh.c: Ditto.
9486         * tree-emutls.c: Ditto.
9487         * tree-inline.c: Ditto.
9488         * tree-nested.c: Ditto.
9489         * tree-pretty-print.c: Ditto.
9490         * tree-profile.c: Ditto.
9491         * tree-sra.c: Ditto.
9492         * tree-ssa-alias.c: Ditto.
9493         * tree-ssa-loop-ivcanon.c: Ditto.
9494         * tree-ssa-loop-ivopts.c: Ditto.
9495         * tree-ssa-pre.c: Ditto.
9496         * tree-ssa-structalias.c: Ditto.
9497         * tree-streamer.c: Ditto.
9498         * tree-streamer-in.c: Ditto.
9499         * tree-streamer-out.c: Ditto.
9500         * tree-switch-conversion.c: Ditto.
9501         * tree-tailcall.c: Ditto.
9502         * tree-vect-data-refs.c: Ditto.
9503         * tree-vectorizer.c: Ditto.
9504         * tree-vect-stmts.c: Ditto.
9505         * tsan.c: Ditto.
9506         * ubsan.c: Ditto.
9507         * value-prof.c: Ditto.
9508         * varasm.c: Ditto.
9509         * varpool.c: Ditto.
9510         * config/arm/arm.c: Ditto.
9511         * config/bfin/bfin.c: Ditto.
9512         * config/c6x/c6x.c: Ditto.
9513         * config/cris/cris.c: Ditto.
9514         * config/darwin.c: Ditto.
9515         * config/darwin-c.c: Ditto.
9516         * config/i386/i386.c: Ditto.
9517         * config/i386/winnt.c: Ditto.
9518         * config/microblaze/microblaze.c: Ditto.
9519         * config/mips/mips.c: Ditto.
9520         * config/rs6000/rs6000.c: Ditto.
9521         * config/rx/rx.c: Ditto.
9522
9523 2014-10-28  Richard Biener  <rguenther@suse.de>
9524
9525         * gimple-fold.h (follow_single_use_edges): Declare.
9526         * gimple-fold.c (follow_single_use_edges): New function.
9527         (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
9528         * tree-ssa-propagate.c
9529         (substitute_and_fold_dom_walker::before_dom_children): Allow
9530         following single-use edges when folding stmts we propagated into.
9531
9532 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9533             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9534             Anna Tikhonova  <anna.tikhonova@intel.com>
9535             Ilya Tocar  <ilya.tocar@intel.com>
9536             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9537             Ilya Verbin  <ilya.verbin@intel.com>
9538             Kirill Yukhin  <kirill.yukhin@intel.com>
9539             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9540
9541         * config/i386/avx512bwintrin.h: New.
9542         * config/i386/avx512dqintrin.h: Ditto.
9543         * config/i386/avx512vlbwintrin.h: Ditto.
9544         * config/i386/avx512vldqintrin.h: Ditto.
9545         * config/i386/avx512vlintrin.h: Ditto.
9546         * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
9547         avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
9548
9549 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9550             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9551             Anna Tikhonova  <anna.tikhonova@intel.com>
9552             Ilya Tocar  <ilya.tocar@intel.com>
9553             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9554             Ilya Verbin  <ilya.verbin@intel.com>
9555             Kirill Yukhin  <kirill.yukhin@intel.com>
9556             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9557
9558         * config/i386/i386.c
9559         (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
9560         avx_shufpd256_mask, avx_vpermilv2df_mask.
9561
9562 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9563             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9564             Anna Tikhonova  <anna.tikhonova@intel.com>
9565             Ilya Tocar  <ilya.tocar@intel.com>
9566             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9567             Ilya Verbin  <ilya.verbin@intel.com>
9568             Kirill Yukhin  <kirill.yukhin@intel.com>
9569             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9570
9571         * config/i386/i386.c
9572         (ix86_init_mmx_sse_builtins):
9573         Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
9574         __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
9575         __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
9576         __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
9577         __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
9578         __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
9579         __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
9580         __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
9581         __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
9582         __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
9583         __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
9584         __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
9585         __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
9586         __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
9587         __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
9588         __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
9589         __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
9590         __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
9591
9592 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9593             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9594             Anna Tikhonova  <anna.tikhonova@intel.com>
9595             Ilya Tocar  <ilya.tocar@intel.com>
9596             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9597             Ilya Verbin  <ilya.verbin@intel.com>
9598             Kirill Yukhin  <kirill.yukhin@intel.com>
9599             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9600
9601         * config/i386/i386.c
9602         (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
9603         IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
9604         IX86_BUILTIN_GATHER3ALTDIV8SI.
9605         (ix86_expand_builtin):
9606         Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
9607         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
9608         IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
9609         IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
9610         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
9611         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
9612         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
9613         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
9614         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
9615         IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
9616         IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
9617         IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
9618         IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
9619         IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
9620         IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
9621         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
9622         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
9623         IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
9624         (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
9625         V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
9626
9627 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9628             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9629             Anna Tikhonova  <anna.tikhonova@intel.com>
9630             Ilya Tocar  <ilya.tocar@intel.com>
9631             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9632             Ilya Verbin  <ilya.verbin@intel.com>
9633             Kirill Yukhin  <kirill.yukhin@intel.com>
9634             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9635
9636         * config/i386/i386-builtin-types.def
9637         (SHORT): New.
9638         (V32HI): Ditto.
9639         (V12QI): Ditto.
9640         (V14QI): Ditto.
9641         (V32SI): Ditto.
9642         (V8UDI): Ditto.
9643         (V16USI): Ditto.
9644         (V32UHI): Ditto.
9645         (PSHORT): Ditto.
9646         (PV32QI): Ditto.
9647         (PV32HI): Ditto.
9648         (PV64QI): Ditto.
9649         (PCV8HI): Ditto.
9650         (PCV16QI): Ditto.
9651         (PCV16HI): Ditto.
9652         (PCV32QI): Ditto.
9653         (PCV32HI): Ditto.
9654         (PCV64QI): Ditto.
9655         (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
9656         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9657         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9658         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9659         (V16SF_FTYPE_V16HI): Ditto.
9660         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9661         (V16SF_FTYPE_V16SI): Ditto.
9662         (V4DI_FTYPE_V4DI): Ditto.
9663         (V16SI_FTYPE_V16SF): Ditto.
9664         (V8DI_FTYPE_PV2DI): Ditto.
9665         (V8DF_FTYPE_PV2DF): Ditto.
9666         (V4DI_FTYPE_PV2DI): Ditto.
9667         (V4DF_FTYPE_PV2DF): Ditto.
9668         (V16SI_FTYPE_PV2SI): Ditto.
9669         (V16SF_FTYPE_PV2SF): Ditto.
9670         (V8SF_FTYPE_FLOAT): Ditto.
9671         (V4SF_FTYPE_FLOAT): Ditto.
9672         (V4DF_FTYPE_DOUBLE): Ditto.
9673         (V8SF_FTYPE_PV4SF): Ditto.
9674         (V8SI_FTYPE_PV4SI): Ditto.
9675         (V4SI_FTYPE_PV2SI): Ditto.
9676         (V8SF_FTYPE_PV2SF): Ditto.
9677         (V8SI_FTYPE_PV2SI): Ditto.
9678         (V16SF_FTYPE_PV8SF): Ditto.
9679         (V16SI_FTYPE_PV8SI): Ditto.
9680         (V8DI_FTYPE_V8SF): Ditto.
9681         (V4DI_FTYPE_V4SF): Ditto.
9682         (V2DI_FTYPE_V4SF): Ditto.
9683         (V64QI_FTYPE_QI): Ditto.
9684         (V32HI_FTYPE_HI): Ditto.
9685         (V16UHI_FTYPE_V16UHI): Ditto.
9686         (V32UHI_FTYPE_V32UHI): Ditto.
9687         (V2UDI_FTYPE_V2UDI): Ditto.
9688         (V4UDI_FTYPE_V4UDI): Ditto.
9689         (V8UDI_FTYPE_V8UDI): Ditto.
9690         (V4USI_FTYPE_V4USI): Ditto.
9691         (V16USI_FTYPE_V16USI): Ditto.
9692         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9693         (V2DF_FTYPE_V8DF_INT): Ditto.
9694         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9695         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9696         (V8DF_FTYPE_V8DF_INT): Ditto.
9697         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9698         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9699         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9700         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9701         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9702         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9703         (V8DI_FTYPE_V8DI_INT): Ditto.
9704         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9705         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9706         (V8SF_FTYPE_V16SF_INT): Ditto.
9707         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9708         (V64QI_FTYPE_V32HI_V32HI): Ditto.
9709         (V32HI_FTYPE_V16SI_V16SI): Ditto.
9710         (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
9711         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9712         (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
9713         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
9714         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
9715         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9716         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9717         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9718         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
9719         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9720         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9721         (V32HI_FTYPE_V64QI_V64QI): Ditto.
9722         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9723         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9724         (V32HI_FTYPE_V32HI_V32HI): Ditto.
9725         (V32HI_FTYPE_V32HI_INT): Ditto.
9726         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9727         (V16SI_FTYPE_V32HI_V32HI): Ditto.
9728         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9729         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9730         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9731         (V8SI_FTYPE_V16SI_INT): Ditto.
9732         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9733         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9734         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9735         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9736         (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
9737         (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
9738         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9739         (V8DI_FTYPE_V16SI_V16SI): Ditto.
9740         (V8DI_FTYPE_V64QI_V64QI): Ditto.
9741         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9742         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9743         (V2DI_FTYPE_V8DI_INT): Ditto.
9744         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9745         (QI_FTYPE_QI): Ditto.
9746         (SI_FTYPE_SI): Ditto.
9747         (DI_FTYPE_DI): Ditto.
9748         (HI_FTYPE_V16QI): Ditto.
9749         (SI_FTYPE_V32QI): Ditto.
9750         (DI_FTYPE_V64QI): Ditto.
9751         (QI_FTYPE_V8HI): Ditto.
9752         (HI_FTYPE_V16HI): Ditto.
9753         (SI_FTYPE_V32HI): Ditto.
9754         (QI_FTYPE_V4SI): Ditto.
9755         (QI_FTYPE_V8SI): Ditto.
9756         (HI_FTYPE_V16SI): Ditto.
9757         (QI_FTYPE_V2DI): Ditto.
9758         (QI_FTYPE_V4DI): Ditto.
9759         (QI_FTYPE_V8DI): Ditto.
9760         (V16QI_FTYPE_HI): Ditto.
9761         (V32QI_FTYPE_SI): Ditto.
9762         (V64QI_FTYPE_DI): Ditto.
9763         (V8HI_FTYPE_QI): Ditto.
9764         (V16HI_FTYPE_HI): Ditto.
9765         (V32HI_FTYPE_SI): Ditto.
9766         (V4SI_FTYPE_QI): Ditto.
9767         (V4SI_FTYPE_HI): Ditto.
9768         (V8SI_FTYPE_QI): Ditto.
9769         (V8SI_FTYPE_HI): Ditto.
9770         (V2DI_FTYPE_QI): Ditto.
9771         (V4DI_FTYPE_QI): Ditto.
9772         (QI_FTYPE_QI_QI): Ditto.
9773         (SI_FTYPE_SI_SI): Ditto.
9774         (DI_FTYPE_DI_DI): Ditto.
9775         (QI_FTYPE_QI_INT): Ditto.
9776         (SI_FTYPE_SI_INT): Ditto.
9777         (DI_FTYPE_DI_INT): Ditto.
9778         (HI_FTYPE_V16QI_V16QI): Ditto.
9779         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
9780         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
9781         (SI_FTYPE_V32QI_V32QI): Ditto.
9782         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
9783         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
9784         (DI_FTYPE_V64QI_V64QI): Ditto.
9785         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
9786         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
9787         (QI_FTYPE_V8HI_V8HI): Ditto.
9788         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
9789         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9790         (HI_FTYPE_V16HI_V16HI): Ditto.
9791         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9792         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9793         (SI_FTYPE_V32HI_V32HI): Ditto.
9794         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9795         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9796         (QI_FTYPE_V4SI_V4SI): Ditto.
9797         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9798         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9799         (QI_FTYPE_V8SI_V8SI): Ditto.
9800         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9801         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9802         (QI_FTYPE_V2DI_V2DI): Ditto.
9803         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9804         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9805         (QI_FTYPE_V4DI_V4DI): Ditto.
9806         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9807         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9808         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9809         (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
9810         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9811         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9812         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9813         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
9814         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9815         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9816         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9817         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9818         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9819         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9820         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9821         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9822         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9823         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9824         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9825         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9826         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9827         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9828         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9829         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9830         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9831         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9832         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9833         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9834         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9835         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9836         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9837         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9838         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9839         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9840         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9841         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9842         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9843         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9844         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9845         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9846         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9847         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9848         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9849         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9850         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9851         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9852         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9853         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9854         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9855         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9856         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9857         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9858         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9859         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9860         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9861         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9862         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9863         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9864         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9865         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9866         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9867         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9868         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9869         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9870         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9871         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9872         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9873         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9874         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9875         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9876         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9877         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9878         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9879         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9880         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9881         (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
9882         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9883         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9884         (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
9885         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9886         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9887         (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
9888         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9889         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9890         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9891         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9892         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9893         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9894         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9895         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9896         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9897         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9898         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9899         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9900         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9901         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9902         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9903         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9904         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9905         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9906         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9907         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9908         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9909         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9910         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9911         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9912         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9913         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9914         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9915         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9916         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9917         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9918         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9919         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9920         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9921         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9922         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9923         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9924         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9925         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9926         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9927         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9928         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9929         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9930         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9931         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9932         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9933         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9934         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9935         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9936         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9937         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9938         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9939         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9940         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9941         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9942         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9943         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9944         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9945         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9946         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9947         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9948         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9949         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9950         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9951         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9952         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9953         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9954         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9955         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9956         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9957         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9958         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9959         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9960         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9961         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9962         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9963         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9964         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9965         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9966         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9967         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9968         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9969         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9970         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9971         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9972         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9973         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9974         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9975         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9976         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9977         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9978         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9979         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9980         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9981         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9982         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9983         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9984         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9985         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9986         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9987         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9988         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9989         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9990         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9991         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9992         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9993         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9994         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9995         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9996         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9997         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9998         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9999         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10000         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10001         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10002         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10003         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10004         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10005         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10006         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10007         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10008         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10009         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10010         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10011         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10012         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10013         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10014         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10015         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10016         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10017         (QI_FTYPE_V8DF_INT): Ditto.
10018         (QI_FTYPE_V4DF_INT): Ditto.
10019         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10020         (QI_FTYPE_V2DF_INT): Ditto.
10021         (HI_FTYPE_V16SF_INT): Ditto.
10022         (QI_FTYPE_V8SF_INT): Ditto.
10023         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10024         (QI_FTYPE_V4SF_INT): Ditto.
10025         (QI_FTYPE_V8DF_INT_QI): Ditto.
10026         (QI_FTYPE_V4DF_INT_QI): Ditto.
10027         (QI_FTYPE_V2DF_INT_QI): Ditto.
10028         (HI_FTYPE_V16SF_INT_HI): Ditto.
10029         (QI_FTYPE_V8SF_INT_QI): Ditto.
10030         (QI_FTYPE_V4SF_INT_QI): Ditto.
10031         (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
10032         (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
10033         (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
10034         (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
10035         (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
10036         (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
10037         (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
10038         (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
10039         (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
10040         (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
10041         (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
10042         (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
10043         (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
10044         (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
10045         (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
10046         (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
10047         (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
10048         (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
10049         (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
10050         (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
10051         (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
10052         (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
10053         (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
10054         (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
10055         (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
10056         (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
10057         (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
10058         (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
10059         (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
10060         (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
10061         (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
10062         (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
10063         (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
10064         (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
10065         (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
10066         (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
10067         (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
10068         (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
10069         (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
10070         (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
10071         (V8DI_FTYPE_V8DI_INT): Ditto.
10072         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
10073         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10074         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10075         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10076         (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
10077         (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
10078         (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
10079         (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
10080         (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
10081         (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
10082         (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
10083         (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
10084         (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
10085         (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
10086         * config/i386/i386.c (ix86_builtins):
10087         Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
10088         IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
10089         IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
10090         IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
10091         IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
10092         IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
10093         IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
10094         IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
10095         IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
10096         IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
10097         IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
10098         IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
10099         IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
10100         IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
10101         IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
10102         IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
10103         IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
10104         IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
10105         IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
10106         IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
10107         IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
10108         IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
10109         IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
10110         IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
10111         IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
10112         IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
10113         IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
10114         IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
10115         IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
10116         IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
10117         IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
10118         IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
10119         IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
10120         IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
10121         IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
10122         IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
10123         IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
10124         IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
10125         IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
10126         IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
10127         IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
10128         IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
10129         IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
10130         IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
10131         IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
10132         IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
10133         IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
10134         IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
10135         IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
10136         IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
10137         IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
10138         IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
10139         IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
10140         IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
10141         IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
10142         IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
10143         IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
10144         IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
10145         IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
10146         IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
10147         IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
10148         IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
10149         IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
10150         IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
10151         IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
10152         IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
10153         IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
10154         IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
10155         IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
10156         IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
10157         IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
10158         IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
10159         IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
10160         IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
10161         IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
10162         IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
10163         IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
10164         IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
10165         IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
10166         IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
10167         IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
10168         IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
10169         IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
10170         IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
10171         IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
10172         IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
10173         IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
10174         IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
10175         IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
10176         IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
10177         IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
10178         IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
10179         IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
10180         IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
10181         IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
10182         IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
10183         IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
10184         IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
10185         IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
10186         IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
10187         IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
10188         IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
10189         IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
10190         IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
10191         IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
10192         IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
10193         IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
10194         IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
10195         IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
10196         IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
10197         IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
10198         IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
10199         IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
10200         IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
10201         IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
10202         IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
10203         IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
10204         IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
10205         IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
10206         IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
10207         IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
10208         IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
10209         IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
10210         IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
10211         IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
10212         IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
10213         IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
10214         IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
10215         IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
10216         IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
10217         IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
10218         IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
10219         IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
10220         IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
10221         IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
10222         IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
10223         IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
10224         IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
10225         IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
10226         IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
10227         IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
10228         IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
10229         IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
10230         IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
10231         IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
10232         IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
10233         IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
10234         IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
10235         IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
10236         IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
10237         IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
10238         IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
10239         IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
10240         IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
10241         IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
10242         IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
10243         IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
10244         IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
10245         IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
10246         IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
10247         IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
10248         IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
10249         IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
10250         IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
10251         IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
10252         IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
10253         IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
10254         IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
10255         IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
10256         IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
10257         IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
10258         IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
10259         IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
10260         IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
10261         IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
10262         IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
10263         IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
10264         IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
10265         IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
10266         IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
10267         IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
10268         IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
10269         IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
10270         IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
10271         IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
10272         IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
10273         IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
10274         IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
10275         IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
10276         IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
10277         IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
10278         IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
10279         IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
10280         IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
10281         IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
10282         IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
10283         IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
10284         IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
10285         IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
10286         IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
10287         IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
10288         IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
10289         IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
10290         IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
10291         IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
10292         IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
10293         IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
10294         IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
10295         IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
10296         IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
10297         IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
10298         IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
10299         IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
10300         IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
10301         IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
10302         IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
10303         IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
10304         IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
10305         IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
10306         IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
10307         IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
10308         IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
10309         IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
10310         IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
10311         IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
10312         IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
10313         IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
10314         IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
10315         IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
10316         IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
10317         IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
10318         IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
10319         IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
10320         IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
10321         IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
10322         IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
10323         IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
10324         IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
10325         IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
10326         IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
10327         IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
10328         IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
10329         IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
10330         IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
10331         IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
10332         IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
10333         IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
10334         IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
10335         IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
10336         IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
10337         IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
10338         IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
10339         IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
10340         IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
10341         IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
10342         IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
10343         IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
10344         IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
10345         IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
10346         IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
10347         IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
10348         IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
10349         IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
10350         IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
10351         IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
10352         IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
10353         IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
10354         IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
10355         IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
10356         IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
10357         IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
10358         IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
10359         IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
10360         IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
10361         IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
10362         IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
10363         IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
10364         IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
10365         IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
10366         IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
10367         IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
10368         IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
10369         IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
10370         IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
10371         IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
10372         IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
10373         IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
10374         IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
10375         IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
10376         IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
10377         IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
10378         IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
10379         IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
10380         IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
10381         IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
10382         IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
10383         IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
10384         IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
10385         IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
10386         IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
10387         IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
10388         IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
10389         IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
10390         IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
10391         IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
10392         IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
10393         IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
10394         IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
10395         IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
10396         IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
10397         IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
10398         IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
10399         IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
10400         IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
10401         IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
10402         IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
10403         IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
10404         IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
10405         IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
10406         IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
10407         IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
10408         IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
10409         IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
10410         IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
10411         IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
10412         IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
10413         IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
10414         IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
10415         IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
10416         IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
10417         IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
10418         IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
10419         IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
10420         IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
10421         IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
10422         IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
10423         IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
10424         IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
10425         IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
10426         IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
10427         IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
10428         IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
10429         IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
10430         IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
10431         IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
10432         IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
10433         IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
10434         IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
10435         IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
10436         IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
10437         IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
10438         IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
10439         IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
10440         IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
10441         IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
10442         IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
10443         IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
10444         IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
10445         IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
10446         IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
10447         IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
10448         IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
10449         IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
10450         IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
10451         IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
10452         IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
10453         IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
10454         IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
10455         IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
10456         IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
10457         IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
10458         IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
10459         IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
10460         IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
10461         IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
10462         IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
10463         IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
10464         IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
10465         IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
10466         IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
10467         IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
10468         IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
10469         IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
10470         IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
10471         IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
10472         IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
10473         IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
10474         IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
10475         IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
10476         IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
10477         IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
10478         IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
10479         IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
10480         IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
10481         IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
10482         IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
10483         IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
10484         IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
10485         IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
10486         IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
10487         IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
10488         IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
10489         IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
10490         IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
10491         IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
10492         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
10493         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
10494         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10495         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
10496         IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
10497         IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10498         IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
10499         IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
10500         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
10501         IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
10502         IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
10503         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
10504         IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
10505         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
10506         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10507         IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
10508         IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
10509         IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
10510         IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
10511         IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
10512         IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
10513         IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
10514         IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
10515         IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
10516         IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
10517         IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
10518         IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
10519         IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
10520         IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
10521         IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
10522         IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
10523         IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
10524         IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
10525         IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
10526         IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
10527         IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
10528         IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
10529         IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
10530         IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
10531         IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
10532         IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
10533         IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
10534         IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
10535         IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
10536         IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
10537         IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
10538         IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
10539         IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
10540         IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
10541         IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
10542         IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
10543         IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
10544         IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
10545         IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
10546         IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
10547         IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
10548         IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
10549         IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
10550         IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
10551         IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
10552         IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
10553         IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
10554         IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
10555         IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
10556         IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
10557         IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
10558         IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
10559         IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
10560         IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
10561         IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
10562         IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
10563         IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
10564         IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
10565         IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
10566         IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
10567         IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
10568         IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
10569         IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
10570         IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
10571         IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
10572         IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
10573         IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
10574         IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
10575         IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
10576         IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
10577         IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
10578         (bdesc_special_args):
10579         Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
10580         __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
10581         __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
10582         __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
10583         __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
10584         __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
10585         __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
10586         __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
10587         __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
10588         __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
10589         __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
10590         __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
10591         __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
10592         __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
10593         __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
10594         __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
10595         __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
10596         __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
10597         __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
10598         __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
10599         __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
10600         __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
10601         __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
10602         __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
10603         __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
10604         __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
10605         __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
10606         __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
10607         __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
10608         __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
10609         __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
10610         __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
10611         __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
10612         __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
10613         __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
10614         __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
10615         __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
10616         __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
10617         __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
10618         __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
10619         __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
10620         __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
10621         __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
10622         __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
10623         __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
10624         __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
10625         __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
10626         __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
10627         __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
10628         __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
10629         __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
10630         __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
10631         __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
10632         __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
10633         __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
10634         __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
10635         __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
10636         __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
10637         __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
10638         __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
10639         __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
10640         __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
10641         __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
10642         __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
10643         __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
10644         __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
10645         __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
10646         __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
10647         __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
10648         __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
10649         __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
10650         __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
10651         __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
10652         __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
10653         __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
10654         __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
10655         __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
10656         __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
10657         __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
10658         __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
10659         __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
10660         __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
10661         __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
10662         __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
10663         __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
10664         __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
10665         __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
10666         __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
10667         __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
10668         __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
10669         __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
10670         __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
10671         __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
10672         __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
10673         __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
10674         __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
10675         __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
10676         __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
10677         __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
10678         __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
10679         __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
10680         __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
10681         __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
10682         __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
10683         __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
10684         __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
10685         __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
10686         __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
10687         __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
10688         __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
10689         __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
10690         __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
10691         __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
10692         __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
10693         __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
10694         __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
10695         __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
10696         __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
10697         __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
10698         __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
10699         __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
10700         __builtin_ia32_reducesd, __builtin_ia32_reducess,
10701         __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
10702         __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
10703         __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
10704         __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
10705         __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
10706         __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
10707         __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
10708         __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
10709         __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
10710         __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
10711         __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
10712         __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
10713         __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
10714         __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
10715         __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
10716         __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
10717         __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
10718         __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
10719         __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
10720         __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
10721         __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
10722         __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
10723         __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
10724         __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
10725         __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
10726         __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
10727         __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
10728         __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
10729         __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
10730         __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
10731         __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
10732         __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
10733         __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
10734         __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
10735         __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
10736         __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
10737         __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
10738         __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
10739         __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
10740         __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
10741         __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
10742         __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
10743         __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
10744         __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
10745         __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
10746         __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
10747         __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
10748         __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
10749         __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
10750         __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
10751         __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
10752         __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
10753         __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
10754         __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
10755         __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
10756         __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
10757         __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
10758         __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
10759         __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
10760         __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
10761         __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
10762         __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
10763         __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
10764         __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
10765         __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
10766         __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
10767         __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
10768         __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
10769         __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
10770         __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
10771         __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
10772         __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
10773         __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
10774         __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
10775         __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
10776         __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
10777         __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
10778         __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
10779         __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
10780         __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
10781         __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
10782         __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
10783         __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
10784         __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
10785         __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
10786         __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
10787         __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
10788         __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
10789         __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
10790         __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
10791         __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
10792         __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
10793         __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
10794         __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
10795         __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
10796         __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
10797         __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
10798         __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
10799         __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
10800         __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
10801         __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
10802         __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
10803         __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
10804         __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
10805         __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
10806         __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
10807         __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
10808         __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
10809         __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
10810         __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
10811         __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
10812         __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
10813         __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
10814         __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
10815         __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
10816         __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
10817         __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
10818         __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
10819         __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
10820         __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
10821         __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
10822         __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
10823         __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
10824         __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
10825         __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
10826         __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
10827         __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
10828         __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
10829         __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
10830         __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
10831         __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
10832         __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
10833         __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
10834         __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
10835         __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
10836         __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
10837         __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
10838         __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
10839         __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
10840         __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
10841         __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
10842         __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
10843         __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
10844         __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
10845         __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
10846         __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
10847         __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
10848         __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
10849         __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
10850         __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
10851         __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
10852         __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
10853         __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
10854         __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
10855         __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
10856         __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
10857         __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
10858         __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
10859         __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
10860         __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
10861         __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
10862         __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
10863         __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
10864         __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
10865         __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
10866         __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
10867         __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
10868         __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
10869         __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
10870         __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
10871         __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
10872         __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
10873         __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
10874         __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
10875         __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
10876         __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
10877         __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
10878         __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
10879         __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
10880         __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
10881         __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
10882         __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
10883         __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
10884         __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
10885         __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
10886         __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
10887         __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
10888         __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
10889         __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
10890         __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
10891         __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
10892         __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
10893         __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
10894         __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
10895         __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
10896         __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
10897         __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
10898         __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
10899         __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
10900         __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
10901         __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
10902         __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
10903         __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
10904         __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
10905         __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
10906         __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
10907         __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
10908         __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
10909         __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
10910         __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
10911         __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
10912         __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
10913         __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
10914         __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
10915         __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
10916         __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
10917         __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
10918         __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
10919         __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
10920         __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
10921         __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
10922         __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
10923         __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
10924         __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
10925         __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
10926         __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
10927         __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
10928         __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
10929         __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
10930         __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
10931         __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
10932         __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
10933         __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
10934         __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
10935         __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
10936         __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
10937         __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
10938         __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
10939         __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
10940         __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
10941         __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
10942         __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
10943         __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
10944         __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
10945         __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
10946         __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
10947         __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
10948         __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
10949         __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
10950         __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
10951         __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
10952         __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
10953         __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
10954         __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
10955         __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
10956         __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
10957         __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
10958         __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
10959         __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
10960         __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
10961         __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
10962         __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
10963         __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
10964         __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
10965         __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
10966         __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
10967         __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
10968         __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
10969         __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
10970         __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
10971         __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
10972         __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
10973         __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
10974         __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
10975         __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
10976         __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
10977         __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
10978         __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
10979         __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
10980         __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
10981         __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
10982         __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
10983         __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
10984         __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
10985         __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
10986         __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
10987         __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
10988         __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
10989         __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
10990         __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
10991         __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
10992         __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
10993         __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
10994         __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
10995         __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
10996         __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
10997         __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
10998         __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
10999         __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
11000         __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
11001         __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
11002         __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
11003         __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
11004         __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
11005         __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
11006         __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
11007         __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
11008         __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
11009         __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
11010         __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
11011         __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
11012         __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
11013         __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
11014         __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
11015         __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
11016         __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
11017         __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
11018         __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
11019         __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
11020         __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
11021         __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
11022         __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
11023         __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
11024         __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
11025         __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
11026         __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
11027         __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
11028         __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
11029         __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
11030         __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
11031         __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
11032         __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
11033         __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
11034         __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
11035         __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
11036         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
11037         __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
11038         __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
11039         __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
11040         __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
11041         __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
11042         __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
11043         __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
11044         __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
11045         __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
11046         __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
11047         __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
11048         __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
11049         __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
11050         __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
11051         __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
11052         __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
11053         __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
11054         __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
11055         __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
11056         (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
11057         DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
11058         V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
11059         V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
11060         HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
11061         HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
11062         V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
11063         SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
11064         QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
11065         V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
11066         V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
11067         V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
11068         V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
11069         V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
11070         V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
11071         V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
11072         V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
11073         V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
11074         V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
11075         V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
11076         V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
11077         V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
11078         V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
11079         V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
11080         V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
11081         V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
11082         V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
11083         V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
11084         V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
11085         V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
11086         V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
11087         V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
11088         V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
11089         V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
11090         HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
11091         DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
11092         HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
11093         QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
11094         QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
11095         V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
11096         V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
11097         V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
11098         V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
11099         V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
11100         V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
11101         V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
11102         V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
11103         V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
11104         V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
11105         V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
11106         V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
11107         V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
11108         V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
11109         V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
11110         V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
11111         V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
11112         V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
11113         V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
11114         V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
11115         QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
11116         HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
11117         QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
11118         V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
11119         V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
11120         V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
11121         V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
11122         V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
11123         V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
11124         V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
11125         V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
11126         V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
11127         V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
11128         V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
11129         V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
11130         V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
11131         V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
11132         V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
11133         V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
11134         V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
11135         V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
11136         V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
11137         V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
11138         QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
11139         QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
11140         QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
11141         SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
11142         SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
11143         QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
11144         V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
11145         V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
11146         V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
11147         V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
11148         V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
11149         V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
11150         V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
11151         V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
11152         V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
11153         V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
11154         V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
11155         V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
11156         V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
11157         V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
11158         V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
11159         V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
11160         V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
11161         V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
11162         V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
11163         V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
11164         V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
11165         V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
11166         V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
11167         V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
11168         V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
11169         VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
11170         VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
11171         VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
11172         VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
11173         VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
11174         VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
11175         VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
11176         VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
11177         VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
11178         VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
11179         VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
11180         VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
11181         V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
11182         V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
11183         V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
11184         V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
11185         V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
11186         V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
11187         V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
11188
11189 2014-10-28  Jakub Jelinek  <jakub@redhat.com>
11190
11191         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
11192         type for the left shift in CASE_CONVERT case.
11193
11194 2014-10-28  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11195
11196         * asan.h (asan_intercepted_p): New function.
11197         * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
11198         hash value construction.  Call iterative_hash_expr instead of explicit
11199         hash building.
11200         (asan_mem_ref_hasher::equal): Change condition.
11201         (has_mem_ref_been_instrumented): Likewise.
11202         (update_mem_ref_hash_table): Likewise.
11203         (maybe_update_mem_ref_hash_table): New function.
11204         (instrument_strlen_call): Removed.
11205         (get_mem_refs_of_builtin_call): Handle new parameter.
11206         (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
11207         of instrument_mem_region_access if intercepted_p is true.
11208         (instrument_mem_region_access): Instrument only base with len instead of
11209         base and end with 1.
11210         (build_check_stmt): Remove start_instrumented and end_instrumented
11211         parameters.
11212         (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
11213         ASAN_CHECK_END_INSTRUMENTED.  Change ASAN_CHECK_LAST.
11214         (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
11215         * builtins.c (expand_builtin): Include asan.h.  Don't expand string/memory
11216         builtin functions that have interceptors if ASan is enabled.
11217
11218 2014-10-28  Richard Biener  <rguenther@suse.de>
11219
11220         PR middle-end/63665
11221         * fold-const.c (fold_comparison): Properly guard simplifying
11222         against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
11223
11224 2014-10-28  Alan Lawrence  <alan.lawrence@arm.com>
11225
11226         * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
11227         * fold-const.c (const_binop): Likewise.
11228         * cfgexpand.c (expand_debug_expr): Likewise.
11229         * tree-inline.c (estimate_operator_cost): Likewise.
11230         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
11231         * optabs.c (optab_for_tree_code): Likewise.
11232         (expand_vec_shift_expr): Likewise, update comment.
11233         * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
11234         * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
11235         * optabs.def: Remove vec_shl_optab.
11236         * doc/md.texi: Remove references to vec_shr_m.
11237
11238 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
11239
11240         * asan.c (report_error_func): Add noabort path.
11241         (check_func): Ditto.  Formatting.
11242         (asan_expand_check_ifn): Handle noabort path.
11243         * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
11244         to default value.
11245         * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
11246         * opts.c (finish_options): Reword comment.
11247         * sanitizer.def: Add noabort ASan builtins.
11248
11249 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
11250
11251         * asan.c (set_asan_shadow_offset): New function.
11252         (asan_shadow_offset): Likewise.
11253         (asan_emit_stack_protection): Call asan_shadow_offset.
11254         (build_shadow_mem_access): Likewise.
11255         * asan.h (set_asan_shadow_offset): Declare.
11256         * common.opt (fasan-shadow-offset): New option.
11257         (frandom-seed): Fixed parameter name.
11258         * doc/invoke.texi (fasan-shadow-offset): Describe new option.
11259         (frandom-seed): Fixed parameter name.
11260         * opts-global.c (handle_common_deferred_options): Handle
11261         -fasan-shadow-offset.
11262         * opts.c (common_handle_option): Likewise.
11263
11264 2014-10-27  Jiong Wang <jiong.wang@arm.com>
11265
11266         PR target/63442
11267         * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
11268
11269 2014-10-27  DJ Delorie  <dj@redhat.com>
11270
11271         * tree.c (build_common_tree_nodes): Don't even store the
11272         __int128 types if they're not supported.
11273
11274 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11275
11276         * config/i386/i386.c (ix86_loop_memcount): Delete.
11277         (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
11278
11279 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11280
11281         * config/i386/i386.c (find_constant_1): Delete.
11282         (find_constant): Use FOR_EACH_SUBRTX.
11283
11284 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11285
11286         * config/i386/i386.c (extended_reg_mentioned_1): Delete.
11287         (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
11288
11289 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11290
11291         * config/i386/i386.c: Include rtl-iter.h
11292         (ix86_check_avx256_register): Take a const_rtx and return a bool.
11293         (ix86_check_avx256_stores): Update call accordingly.
11294         (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
11295         (ix86_avx_u128_mode_needed): Likewise.  Use FOR_EACH_SUBRTX.
11296
11297 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11298
11299         * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
11300         Take an rtx and return a bool.
11301         * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
11302         Use FOR_EACH_SUBRTX_VAR.
11303         * config/alpha/predicates.md (some_small_symbolic_operand): Update
11304         accordingly.
11305
11306 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11307
11308         * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
11309         a bool.
11310         * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
11311         (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX.  Return a bool.
11312
11313 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11314
11315         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
11316         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
11317
11318 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11319
11320         * config/alpha/alpha.c: Include rtl-iter.h.
11321         (split_small_symbolic_operand_1): Delete.
11322         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
11323
11324 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11325
11326         * config/s390/s390.c: Include rtl-iter.h.
11327         (check_dpu): Delete.
11328         (s390_loop_unroll_adjust): Only iterate over patterns.
11329         Use FOR_EACH_SUBRTX.
11330
11331 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
11332
11333         * config/spu/spu.c: Include rtl-iter.h
11334         (ea_symbol_ref): Replace with...
11335         (ea_symbol_ref_p): ...this new function.
11336         (spu_legitimate_address_p): Update call accordingly.
11337         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
11338
11339 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
11340             Tom Tromey  <tromey@redhat.com>
11341
11342         * aclocal.m4, configure: Rebuild.
11343         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
11344         * configure.ac: Use GCC_ENABLE_PLUGINS.
11345         * stor-layout.c (finish_bitfield_layout): Now public.  Change
11346         argument type to 'tree'.
11347         (finish_record_layout): Update.
11348         * stor-layout.h (finish_bitfield_layout): Declare.
11349
11350 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11351
11352         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
11353         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
11354         Restore, enable for bigendian, update to use __builtin..._scal...
11355
11356 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11357
11358         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
11359         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
11360         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
11361         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
11362
11363         * config/aarch64/aarch64-simd.md
11364         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
11365         (reduc_<maxmin_uns>_internal<mode>): ...this.
11366         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
11367         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
11368
11369         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
11370         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
11371         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
11372
11373         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
11374         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
11375         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
11376         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
11377         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
11378         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
11379         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
11380         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
11381
11382 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11383
11384         * config/aarch64/aarch64-simd-builtins.def
11385         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
11386         Remove.
11387         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
11388
11389         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
11390         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
11391
11392         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
11393         (aarch64_reduc_plus_internal<mode>): ...this.
11394
11395         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
11396         (aarch64_reduc_plus_internalv2si): ...this.
11397
11398         (reduc_splus_<mode>/V2F): Rename to...
11399         (aarch64_reduc_plus_internal<mode>): ...this.
11400
11401         * config/aarch64/iterators.md
11402         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
11403         (UNSPEC_ADDV): New.
11404         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
11405
11406         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
11407         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
11408         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
11409         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
11410         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
11411
11412 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11413
11414         PR tree-optimization/61114
11415         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
11416         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
11417
11418         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
11419         back to old reduc_... + BIT_FIELD_REF only if not.
11420
11421         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
11422         return the reduce-to-scalar (reduc_..._scal) optab.
11423         (scalar_reduc_to_vector): New.
11424
11425         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
11426         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
11427         New.
11428
11429         * optabs.h (scalar_reduc_to_vector): Declare.
11430
11431         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
11432         to either scalar or vector.
11433
11434 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11435
11436         PR tree-optimization/61114
11437         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
11438         extract_bit_field around optab result.
11439
11440         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
11441         scalar not vector.
11442
11443         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
11444         for REDUC_{MIN,MAX,PLUS}_EXPR.
11445
11446         * tree-vect-loop.c (vect_analyze_loop): Update comment.
11447         (vect_create_epilog_for_reduction): For direct vector reduction, use
11448         result of tree code directly without extract_bit_field.
11449
11450         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
11451         comment.
11452
11453 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
11454
11455         * basic-block.h: Remove all includes.
11456         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
11457         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
11458         * Makefile.in (GTFILES): Add cfg.h to list.
11459         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
11460         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
11461         * genconditions.c (write_header): Add predict.h and basic-block.h to
11462         lits of includes.
11463         * genemit.c (main): Ditto.
11464         * genpreds.c (write_insn_preds_c): Ditto.
11465         * genrecog.c (write_header): Ditto.
11466         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
11467         to list of includes.
11468         * alias.c: Adjust include files.
11469         * asan.c: Ditto.
11470         * auto-inc-dec.c: Ditto.
11471         * auto-profile.c: Ditto.
11472         * bb-reorder.c: Ditto.
11473         * bt-load.c: Ditto.
11474         * builtins.c: Ditto.
11475         * caller-save.c: Ditto.
11476         * calls.c: Ditto.
11477         * cfg.c: Ditto.
11478         * cfganal.c: Ditto.
11479         * cfgbuild.c: Ditto.
11480         * cfgcleanup.c: Ditto.
11481         * cfgexpand.c: Ditto.
11482         * cfghooks.c: Ditto.
11483         * cfgloop.c: Ditto.
11484         * cfgloopanal.c: Ditto.
11485         * cfgloopmanip.c: Ditto.
11486         * cfgrtl.c: Ditto.
11487         * cgraphbuild.c: Ditto.
11488         * cgraphclones.c: Ditto.
11489         * cgraphunit.c: Ditto.
11490         * combine-stack-adj.c: Ditto.
11491         * combine.c: Ditto.
11492         * compare-elim.c: Ditto.
11493         * coverage.c: Ditto.
11494         * cprop.c: Ditto.
11495         * cse.c: Ditto.
11496         * cselib.c: Ditto.
11497         * data-streamer-in.c: Ditto.
11498         * data-streamer-out.c: Ditto.
11499         * data-streamer.c: Ditto.
11500         * dce.c: Ditto.
11501         * ddg.c: Ditto.
11502         * ddg.h: Ditto.
11503         * df-core.c: Ditto.
11504         * df-problems.c: Ditto.
11505         * df-scan.c: Ditto.
11506         * df.h: Ditto.
11507         * dojump.c: Ditto.
11508         * dominance.c: Ditto.
11509         * domwalk.c: Ditto.
11510         * dse.c: Ditto.
11511         * dwarf2cfi.c: Ditto.
11512         * emit-rtl.c: Ditto.
11513         * et-forest.c: Ditto.
11514         * except.c: Ditto.
11515         * expmed.c: Ditto.
11516         * expr.c: Ditto.
11517         * final.c: Ditto.
11518         * fold-const.c: Ditto.
11519         * function.c: Ditto.
11520         * fwprop.c: Ditto.
11521         * gcc-plugin.h: Ditto.
11522         * gcse.c: Ditto.
11523         * generic-match-head.c: Ditto.
11524         * ggc-page.c: Ditto.
11525         * gimple-builder.c: Ditto.
11526         * gimple-expr.c: Ditto.
11527         * gimple-fold.c: Ditto.
11528         * gimple-iterator.c: Ditto.
11529         * gimple-low.c: Ditto.
11530         * gimple-match-head.c: Ditto.
11531         * gimple-pretty-print.c: Ditto.
11532         * gimple-ssa-isolate-paths.c: Ditto.
11533         * gimple-ssa-strength-reduction.c: Ditto.
11534         * gimple-streamer-in.c: Ditto.
11535         * gimple-streamer-out.c: Ditto.
11536         * gimple-streamer.h: Ditto.
11537         * gimple-walk.c: Ditto.
11538         * gimple.c: Ditto.
11539         * gimplify-me.c: Ditto.
11540         * gimplify.c: Ditto.
11541         * graph.c: Ditto.
11542         * graphite-blocking.c: Ditto.
11543         * graphite-clast-to-gimple.c: Ditto.
11544         * graphite-dependences.c: Ditto.
11545         * graphite-interchange.c: Ditto.
11546         * graphite-isl-ast-to-gimple.c: Ditto.
11547         * graphite-optimize-isl.c: Ditto.
11548         * graphite-poly.c: Ditto.
11549         * graphite-scop-detection.c: Ditto.
11550         * graphite-sese-to-poly.c: Ditto.
11551         * graphite.c: Ditto.
11552         * haifa-sched.c: Ditto.
11553         * hw-doloop.c: Ditto.
11554         * ifcvt.c: Ditto.
11555         * init-regs.c: Ditto.
11556         * internal-fn.c: Ditto.
11557         * ipa-cp.c: Ditto.
11558         * ipa-devirt.c: Ditto.
11559         * ipa-icf-gimple.c: Ditto.
11560         * ipa-icf.c: Ditto.
11561         * ipa-inline-analysis.c: Ditto.
11562         * ipa-inline.c: Ditto.
11563         * ipa-polymorphic-call.c: Ditto.
11564         * ipa-profile.c: Ditto.
11565         * ipa-prop.c: Ditto.
11566         * ipa-pure-const.c: Ditto.
11567         * ipa-reference.c: Ditto.
11568         * ipa-split.c: Ditto.
11569         * ipa-utils.c: Ditto.
11570         * ipa.c: Ditto.
11571         * ira-build.c: Ditto.
11572         * ira-color.c: Ditto.
11573         * ira-conflicts.c: Ditto.
11574         * ira-costs.c: Ditto.
11575         * ira-emit.c: Ditto.
11576         * ira-lives.c: Ditto.
11577         * ira.c: Ditto.
11578         * jump.c: Ditto.
11579         * lcm.c: Ditto.
11580         * loop-doloop.c: Ditto.
11581         * loop-init.c: Ditto.
11582         * loop-invariant.c: Ditto.
11583         * loop-iv.c: Ditto.
11584         * loop-unroll.c: Ditto.
11585         * lower-subreg.c: Ditto.
11586         * lra-assigns.c: Ditto.
11587         * lra-coalesce.c: Ditto.
11588         * lra-constraints.c: Ditto.
11589         * lra-eliminations.c: Ditto.
11590         * lra-lives.c: Ditto.
11591         * lra-spills.c: Ditto.
11592         * lra.c: Ditto.
11593         * lto-cgraph.c: Ditto.
11594         * lto-compress.c: Ditto.
11595         * lto-opts.c: Ditto.
11596         * lto-section-in.c: Ditto.
11597         * lto-section-out.c: Ditto.
11598         * lto-streamer-in.c: Ditto.
11599         * lto-streamer-out.c: Ditto.
11600         * lto-streamer.c: Ditto.
11601         * mcf.c: Ditto.
11602         * mode-switching.c: Ditto.
11603         * modulo-sched.c: Ditto.
11604         * omp-low.c: Ditto.
11605         * optabs.c: Ditto.
11606         * opts-global.c: Ditto.
11607         * passes.c: Ditto.
11608         * postreload-gcse.c: Ditto.
11609         * postreload.c: Ditto.
11610         * predict.c: Ditto.
11611         * print-rtl.c: Ditto.
11612         * profile.c: Ditto.
11613         * recog.c: Ditto.
11614         * ree.c: Ditto.
11615         * reg-stack.c: Ditto.
11616         * regcprop.c: Ditto.
11617         * regcprop.h: Ditto.
11618         * reginfo.c: Ditto.
11619         * regrename.c: Ditto.
11620         * regstat.c: Ditto.
11621         * reload.c: Ditto.
11622         * reload1.c: Ditto.
11623         * reorg.c: Ditto.
11624         * resource.c: Ditto.
11625         * rtlanal.c: Ditto.
11626         * sched-deps.c: Ditto.
11627         * sched-ebb.c: Ditto.
11628         * sched-int.h: Ditto.
11629         * sched-rgn.c: Ditto.
11630         * sched-vis.c: Ditto.
11631         * sel-sched-dump.c: Ditto.
11632         * sel-sched-ir.c: Ditto.
11633         * sel-sched-ir.h: Ditto.
11634         * sel-sched.c: Ditto.
11635         * sese.c: Ditto.
11636         * shrink-wrap.c: Ditto.
11637         * stack-ptr-mod.c: Ditto.
11638         * stmt.c: Ditto.
11639         * store-motion.c: Ditto.
11640         * symtab.c: Ditto.
11641         * toplev.c: Ditto.
11642         * tracer.c: Ditto.
11643         * trans-mem.c: Ditto.
11644         * tree-affine.c: Ditto.
11645         * tree-call-cdce.c: Ditto.
11646         * tree-cfg.c: Ditto.
11647         * tree-cfgcleanup.c: Ditto.
11648         * tree-chrec.c: Ditto.
11649         * tree-complex.c: Ditto.
11650         * tree-data-ref.c: Ditto.
11651         * tree-dfa.c: Ditto.
11652         * tree-eh.c: Ditto.
11653         * tree-emutls.c: Ditto.
11654         * tree-if-conv.c: Ditto.
11655         * tree-inline.c: Ditto.
11656         * tree-into-ssa.c: Ditto.
11657         * tree-loop-distribution.c: Ditto.
11658         * tree-nested.c: Ditto.
11659         * tree-nrv.c: Ditto.
11660         * tree-object-size.c: Ditto.
11661         * tree-outof-ssa.c: Ditto.
11662         * tree-parloops.c: Ditto.
11663         * tree-phinodes.c: Ditto.
11664         * tree-predcom.c: Ditto.
11665         * tree-pretty-print.c: Ditto.
11666         * tree-profile.c: Ditto.
11667         * tree-scalar-evolution.c: Ditto.
11668         * tree-sra.c: Ditto.
11669         * tree-ssa-address.c: Ditto.
11670         * tree-ssa-alias.c: Ditto.
11671         * tree-ssa-ccp.c: Ditto.
11672         * tree-ssa-coalesce.c: Ditto.
11673         * tree-ssa-copy.c: Ditto.
11674         * tree-ssa-copyrename.c: Ditto.
11675         * tree-ssa-dce.c: Ditto.
11676         * tree-ssa-dom.c: Ditto.
11677         * tree-ssa-dse.c: Ditto.
11678         * tree-ssa-forwprop.c: Ditto.
11679         * tree-ssa-ifcombine.c: Ditto.
11680         * tree-ssa-live.c: Ditto.
11681         * tree-ssa-loop-ch.c: Ditto.
11682         * tree-ssa-loop-im.c: Ditto.
11683         * tree-ssa-loop-ivcanon.c: Ditto.
11684         * tree-ssa-loop-ivopts.c: Ditto.
11685         * tree-ssa-loop-manip.c: Ditto.
11686         * tree-ssa-loop-niter.c: Ditto.
11687         * tree-ssa-loop-prefetch.c: Ditto.
11688         * tree-ssa-loop-unswitch.c: Ditto.
11689         * tree-ssa-loop.c: Ditto.
11690         * tree-ssa-math-opts.c: Ditto.
11691         * tree-ssa-operands.c: Ditto.
11692         * tree-ssa-phiopt.c: Ditto.
11693         * tree-ssa-phiprop.c: Ditto.
11694         * tree-ssa-pre.c: Ditto.
11695         * tree-ssa-propagate.c: Ditto.
11696         * tree-ssa-reassoc.c: Ditto.
11697         * tree-ssa-sccvn.c: Ditto.
11698         * tree-ssa-sink.c: Ditto.
11699         * tree-ssa-strlen.c: Ditto.
11700         * tree-ssa-structalias.c: Ditto.
11701         * tree-ssa-tail-merge.c: Ditto.
11702         * tree-ssa-ter.c: Ditto.
11703         * tree-ssa-threadedge.c: Ditto.
11704         * tree-ssa-threadupdate.c: Ditto.
11705         * tree-ssa-uncprop.c: Ditto.
11706         * tree-ssa-uninit.c: Ditto.
11707         * tree-ssa.c: Ditto.
11708         * tree-ssanames.c: Ditto.
11709         * tree-stdarg.c: Ditto.
11710         * tree-streamer-in.c: Ditto.
11711         * tree-streamer-out.c: Ditto.
11712         * tree-streamer.c: Ditto.
11713         * tree-switch-conversion.c: Ditto.
11714         * tree-tailcall.c: Ditto.
11715         * tree-vect-data-refs.c: Ditto.
11716         * tree-vect-generic.c: Ditto.
11717         * tree-vect-loop-manip.c: Ditto.
11718         * tree-vect-loop.c: Ditto.
11719         * tree-vect-patterns.c: Ditto.
11720         * tree-vect-slp.c: Ditto.
11721         * tree-vect-stmts.c: Ditto.
11722         * tree-vectorizer.c: Ditto.
11723         * tree-vrp.c: Ditto.
11724         * tree.c: Ditto.
11725         * tsan.c: Ditto.
11726         * ubsan.c: Ditto.
11727         * valtrack.c: Ditto.
11728         * valtrack.h: Ditto.
11729         * value-prof.c: Ditto.
11730         * var-tracking.c: Ditto.
11731         * varasm.c: Ditto.
11732         * varpool.c: Ditto.
11733         * vtable-verify.c: Ditto.
11734         * web.c: Ditto.
11735         * config/aarch64/aarch64-builtins.c: Ditto.
11736         * config/aarch64/aarch64.c: Ditto.
11737         * config/alpha/alpha.c: Ditto.
11738         * config/arc/arc.c: Ditto.
11739         * config/arm/arm.c: Ditto.
11740         * config/avr/avr.c: Ditto.
11741         * config/bfin/bfin.c: Ditto.
11742         * config/c6x/c6x.c: Ditto.
11743         * config/cr16/cr16.c: Ditto.
11744         * config/cris/cris.c: Ditto.
11745         * config/darwin-c.c: Ditto.
11746         * config/darwin.c: Ditto.
11747         * config/epiphany/epiphany.c: Ditto.
11748         * config/epiphany/mode-switch-use.c: Ditto.
11749         * config/epiphany/resolve-sw-modes.c: Ditto.
11750         * config/fr30/fr30.c: Ditto.
11751         * config/frv/frv.c: Ditto.
11752         * config/h8300/h8300.c: Ditto.
11753         * config/i386/i386.c: Ditto.
11754         * config/i386/winnt.c: Ditto.
11755         * config/ia64/ia64.c: Ditto.
11756         * config/iq2000/iq2000.c: Ditto.
11757         * config/lm32/lm32.c: Ditto.
11758         * config/m32c/m32c.c: Ditto.
11759         * config/m32r/m32r.c: Ditto.
11760         * config/m68k/m68k.c: Ditto.
11761         * config/mcore/mcore.c: Ditto.
11762         * config/mep/mep.c: Ditto.
11763         * config/microblaze/microblaze.c: Ditto.
11764         * config/mips/mips.c: Ditto.
11765         * config/mmix/mmix.c: Ditto.
11766         * config/mn10300/mn10300.c: Ditto.
11767         * config/moxie/moxie.c: Ditto.
11768         * config/msp430/msp430.c: Ditto.
11769         * config/nds32/nds32-cost.c: Ditto.
11770         * config/nds32/nds32-fp-as-gp.c: Ditto.
11771         * config/nds32/nds32-intrinsic.c: Ditto.
11772         * config/nds32/nds32-isr.c: Ditto.
11773         * config/nds32/nds32-md-auxiliary.c: Ditto.
11774         * config/nds32/nds32-memory-manipulation.c: Ditto.
11775         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
11776         * config/nds32/nds32-predicates.c: Ditto.
11777         * config/nds32/nds32.c: Ditto.
11778         * config/nios2/nios2.c: Ditto.
11779         * config/pa/pa.c: Ditto.
11780         * config/pdp11/pdp11.c: Ditto.
11781         * config/rl78/rl78.c: Ditto.
11782         * config/rs6000/rs6000.c: Ditto.
11783         * config/rx/rx.c: Ditto.
11784         * config/s390/s390.c: Ditto.
11785         * config/sh/sh-mem.cc: Ditto.
11786         * config/sh/sh.c: Ditto.
11787         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
11788         * config/sh/sh_treg_combine.cc: Ditto.
11789         * config/sparc/sparc.c: Ditto.
11790         * config/spu/spu.c: Ditto.
11791         * config/stormy16/stormy16.c: Ditto.
11792         * config/tilegx/tilegx.c: Ditto.
11793         * config/tilepro/tilepro.c: Ditto.
11794         * config/v850/v850.c: Ditto.
11795         * config/vax/vax.c: Ditto.
11796         * config/xtensa/xtensa.c: Ditto.
11797
11798 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11799
11800         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
11801         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
11802         Remove using preprocessor directives.
11803
11804 2014-10-27  Richard Biener  <rguenther@suse.de>
11805
11806         * match.pd (0 % X): Properly use the iterator iterating over
11807         all modulo operators.
11808         (X % 1): Likewise.
11809
11810 2014-10-27  Richard Biener  <rguenther@suse.de>
11811
11812         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
11813         (lattice): New global.
11814         (fwprop_ssa_val): New function.
11815         (fold_all_stmts): Likewise.
11816         (pass_forwprop::execute): Finally fold all stmts.
11817
11818 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11819
11820         PR c++/53061
11821         * doc/invoke.texi (fmessage-length): Update text to match reality.
11822
11823 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11824
11825         * config/microblaze/microblaze.c: Include rtl-iter.h.
11826         (microblaze_tls_referenced_p_1): Delete.
11827         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
11828
11829 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11830
11831         * config/mips/mips.c (mips_at_reg_p): Delete.
11832         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
11833
11834 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11835
11836         * config/mips/mips.c (mips_record_lo_sum): Replace with...
11837         (mips_record_lo_sums): ...this new function.
11838         (mips_reorg_process_insns): Update accordingly.
11839
11840 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11841
11842         * config/mips/mips.c (mips_sim_insn): Update comment.
11843         (mips_sim_wait_regs_2): Delete.
11844         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
11845
11846 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11847
11848         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
11849         and return a bool.  Iterate over all subrtxes here.
11850         (r10k_needs_protection_p): Update accordingly.
11851
11852 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11853
11854         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
11855         rather than an rtx pointer.  Change type of insn from "void *"
11856         to its real type.  Return bool rather than int.  Iterate over
11857         all subrtxes here.
11858         (r10k_needs_protection_p_store): Update accordingly.
11859         (r10k_needs_protection_p): Likewise.
11860
11861 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11862
11863         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
11864         (mips16_rewrite_pool_refs): Take the insn and constant pool as
11865         parameters.  Iterate over the instruction's pattern and return void.
11866         (mips16_lay_out_constants): Update accordingly.
11867
11868 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11869
11870         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
11871         (mips_refers_to_kernel_reg_p): ...this new function.
11872         (mips_expand_prologue): Update accordingly.
11873
11874 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11875
11876         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
11877         as a parameter instead of the containing MEM.  Iterate over all
11878         subrtxes.  Don't return a value.
11879         (mips_rewrite_small_data): Update call accordingly.
11880
11881 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11882
11883         * config/mips/mips.c: Include rtl-iter.h.
11884         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
11885         Take the context as a parameter instead of the containing MEM.
11886         Iterate over all subrtxes.
11887         (mips_small_data_pattern_p): Update call accordingly.
11888
11889 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11890
11891         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
11892         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
11893
11894 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11895
11896         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
11897         return a bool.  Replace "void *" with specific type.  Iterate
11898         over all subrtxes.
11899         (mep_store_data_bypass_1): Update calls accordingly.
11900
11901 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11902
11903         * config/mep/mep.c: Include rtl-iter.h.
11904         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
11905         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
11906
11907 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11908
11909         * config/xtensa/xtensa.c: Include rtl-iter.h.
11910         (xtensa_tls_referenced_p_1): Delete.
11911         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
11912
11913 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11914
11915         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
11916         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
11917
11918 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11919
11920         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
11921         rtx as argument and return the number of changes.
11922         * config/sh/sh.c: Include rtl-iter.h.
11923         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
11924         over all subrtxes.  Return the number of changes made.
11925         * config/sh/sh.md: Update caller accordingly.
11926
11927 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11928
11929         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
11930         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
11931
11932 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11933
11934         * config/m68k/m68k.c: Include rtl-iter.h.
11935         (m68k_final_prescan_insn_1): Delete.
11936         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
11937
11938 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
11939
11940         PR tree-optimization/63641
11941         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
11942         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
11943
11944 2014-10-25  Alan Modra  <amodra@gmail.com>
11945
11946         PR rtl-optimization/63615
11947         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
11948         decomposing PLUS or MINUS if operands are not placed adjacent
11949         in the "ops" array.
11950
11951 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
11952
11953         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
11954         not allow e500 double in registers not satisyfing
11955         SPE_SIMD_REGNO_P.
11956
11957 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
11958
11959         * dwarf2out.c (declare_in_namespace): Only emit external
11960         declarations in the local scope once.
11961
11962 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
11963
11964         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
11965
11966 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
11967
11968         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
11969         update uses to use new macro arguments.
11970         (__LD3_LANE_FUNC): Likewise.
11971         (__LD4_LANE_FUNC): Likewise.
11972
11973 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
11974
11975         * config/aarch64/aarch64-builtins.c
11976         (aarch64_types_loadstruct_lane_qualifiers): Define.
11977         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
11978         ld4_lane): New builtins.
11979         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
11980         New pattern.
11981         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
11982         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
11983         (aarch64_ld2_lane<mode>): New expand.
11984         (aarch64_ld3_lane<mode>): Likewise.
11985         (aarch64_ld4_lane<mode>): Likewise.
11986         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
11987         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
11988
11989 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
11990
11991         * avr-protos.h (avr_out_sign_extend): New.
11992         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
11993         (avr_out_sign_extend): New function.
11994         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
11995         (extendhisi2, extendpsisi2): Use it.
11996         (adjust_len) [sext]: New.
11997
11998 2014-10-24  Martin Liska  <mliska@suse.cz>
11999
12000         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
12001         added.
12002
12003 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12004
12005         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
12006         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
12007         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
12008         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
12009
12010 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12011
12012         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
12013         do while (0).
12014         * config/aarch64/aarch64.c (is_mem_p): Delete.
12015         (is_memory_op): Rename to...
12016         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
12017         (dep_between_memop_and_curr): Assert that the input is a SET.
12018         (aarch64_madd_needs_nop): Add comment.  Do not call
12019         dep_between_memop_and_curr on NULL body.
12020         (aarch64_final_prescan_insn): Add comment.
12021         Include rtl-iter.h.
12022
12023 2014-10-24  Richard Biener  <rguenther@suse.de>
12024
12025         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
12026         to genmatch BUILD_LIBS instead.
12027
12028 2014-10-24  Richard Biener  <rguenther@suse.de>
12029
12030         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
12031         and build_call_expr_loc.
12032         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
12033         non_lvalue_loc to build it for GENERIC.
12034         (decision_tree::gen_generic): Add location argument to
12035         generic_simplify prototype.
12036         (capture_info): New class.
12037         (capture_info::capture_info): New constructor.
12038         (capture_info::walk_match): New method.
12039         (capture_info::walk_result): New method.
12040         (capture_info::walk_c_expr): New method.
12041         (dt_simplify::gen): Handle preserving side-effects for
12042         GENERIC code generation.
12043         (decision_tree::gen_generic): Do not reject operands
12044         with TREE_SIDE_EFFECTS.
12045         * generic-match.h: New file.
12046         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
12047         * match.pd: Add some constant folding patterns from fold-const.c.
12048         * fold-const.c: Include generic-match.h.
12049         (fold_unary_loc): Dispatch to generic_simplify.
12050         (fold_ternary_loc): Likewise.
12051         (fold_binary_loc): Likewise.  Remove patterns now implemented
12052         by generic_simplify.
12053         * gimple-fold.c (replace_stmt_with_simplification): New function.
12054         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
12055         (no_follow_ssa_edges): New function.
12056         (fold_stmt): New overload with valueization hook.  Use
12057         no_follow_ssa_edges for the overload without hook.
12058         (fold_stmt_inplace): Likewise.
12059         * gimple-fold.h (no_follow_ssa_edges): Declare.
12060
12061 2014-10-24  Felix Yang  <felix.yang@huawei.com>
12062         Jiji Jiang  <jiangjiji@huawei.com>
12063
12064         PR target/63173
12065         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
12066         (__LD3R_FUNC): Ditto.
12067         (__LD4R_FUNC): Ditto.
12068         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
12069          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
12070          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
12071          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
12072          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
12073          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
12074         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
12075          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
12076          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
12077          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
12078          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
12079          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
12080         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
12081          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
12082          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
12083          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
12084          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
12085          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
12086         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
12087         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
12088         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
12089         builtins.
12090         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
12091         (aarch64_simd_ld3r<mode>): Likewise.
12092         (aarch64_simd_ld4r<mode>): Likewise.
12093         (aarch64_ld2r<mode>): New expand.
12094         (aarch64_ld3r<mode>): Likewise.
12095         (aarch64_ld4r<mode>): Likewise.
12096
12097 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
12098
12099         * rtlanal.c (get_base_term): Handle SCRATCH.
12100
12101 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
12102
12103         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
12104         register pressure.
12105
12106 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
12107
12108         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
12109         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
12110         (max_issue, choose_ready, sched_init): Update.
12111
12112 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
12113
12114         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
12115         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
12116         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
12117         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
12118         (print_rank_for_schedule_stats): Print out elements of ready list that
12119         ended up on their respective places due to each of the sorting
12120         heuristics.
12121         (ready_sort): Update.
12122         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
12123         (schedule_block): Update.
12124
12125 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
12126
12127         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
12128         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
12129         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
12130         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
12131         (model_start_schedule): Update.
12132         (sched_pressure_start_bb): New static function.  Calculate
12133         sched_class_regs_num.
12134         (schedule_block): Use it.
12135         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
12136
12137 2014-10-24  Richard Biener  <rguenther@suse.de>
12138
12139         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
12140         host library and make sure to pull in the required libintl
12141         and libiconv dependencies.
12142
12143 2014-10-24  Richard Biener  <rguenther@suse.de>
12144
12145         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
12146
12147 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
12148
12149         PR bootstrap/63632
12150         * collect2.c (main): Filter out -fno-lto.
12151
12152 2014-10-24  Martin Liska  <mliska@suse.cz>
12153
12154         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
12155         division by zero in dumps.
12156         (sem_item_optimizer::merge_classes): Ditto.
12157
12158 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
12159
12160         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
12161
12162 2014-10-23  Ian Lance Taylor  <iant@google.com>
12163
12164         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
12165
12166 2014-10-23  Ian Lance Taylor  <iant@google.com>
12167
12168         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
12169
12170 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
12171
12172         PR debug/63623
12173         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
12174         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
12175         instead of only handling autoinc in dest if it is a MEM.
12176         (vt_stack_adjustments): Fix up formatting.
12177
12178 2014-10-23  DJ Delorie  <dj@redhat.com>
12179
12180         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
12181         independend of -mlarge.
12182         * config/msp430/constraints.md (Ys): Update comment.
12183
12184 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
12185
12186         PR target/63534
12187         PR target/63618
12188         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
12189         while it is pseudo.
12190         * dse.c (deletable_insn_p): Likewise.
12191
12192 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
12193
12194         * config/avr/avr.c: Fix GNU coding rules and typos.
12195         * config/avr/avr.h: Dito.
12196         * config/avr/avr-c.c: Dito.
12197         * config/avr/avr.md: Dito.
12198
12199 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12200
12201         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
12202         New.
12203         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
12204         iterator.
12205         (define_expand "abs<mode>2"): Ditto.
12206
12207 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12208
12209         * tree-core.h (tree_var_decl): Extend `function_code' field
12210         by one bit, move `regdecl_flag' field to ...
12211         (tree_decl_with_vis): Here.
12212         * tree.h (DECL_STATIC_CHAIN): Update struct name.
12213
12214 2014-10-23  Richard Biener  <rguenther@suse.de>
12215
12216         * Makefile.in (BUILD_CPPLIB): Add.
12217         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
12218         Drop LIBIBERTY.
12219
12220 2014-10-23  Richard Biener  <rguenther@suse.de>
12221
12222         * fold-const.c (fold_binary_loc): Preserve side-effects of
12223         X - X when simplifying to 0.
12224         * stor-layout.c (finish_bitfield_representative): Strip
12225         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
12226
12227 2014-10-22  Richard Biener  <rguenther@suse.de>
12228             Tobias Burnus <burnus@net-b.de>
12229
12230         PR lto/63603
12231         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
12232
12233 2014-10-22  Dehao Chen  <dehao@google.com>
12234
12235         * auto-profile.c: Change order of header files.
12236
12237 2014-10-22  Guozhi Wei  <carrot@google.com>
12238
12239         PR tree-optimization/63530
12240         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
12241         pointer alignment according to DR_MISALIGNMENT.
12242
12243 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
12244
12245         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
12246
12247 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
12248
12249         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
12250         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
12251         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
12252         * dominance.h: New.  Add prototypes for dominance.c.
12253         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
12254         * cfghooks.h: (struct profile_record) Relocate here.
12255         Relocate 2 prototypes from basic-block.h.
12256         * basic-block.h: Move prototypes and struct to new header files.
12257         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
12258         * rtl.h: Move a few prototypes to new header files.
12259         * cfgcleanup.c (merge_memattrs): Make static.
12260         * genopinit.c (main): Add predict.h to list of includes.
12261         * predict.h: Update prototype list to match predict.c.
12262         * predict.c (maybe_hot_count_p): Export.
12263         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
12264         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
12265         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
12266         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
12267         * profile.h: Adjust prototypes.
12268         * ifcvt.h: New.  Relocate struct ce_if_block here.
12269         * ifcvt.c: Include ifcvt.h.
12270         * config/frv/frv.c: Include ifcvt.h.
12271         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
12272
12273 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
12274
12275         * lra.c (lra): Remove call to recog_init.
12276         * config/i386/i386.md (preferred_for_speed): New attribute
12277         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
12278         "enabled".  Remove check for sched1.
12279
12280 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
12281
12282         * recog.h (recog_data_d): Remove enabled_alternatives.
12283         * recog.c (extract_insn): Don't set it.
12284         * reload.c (find_reloads): Call get_enabled_alternatives.
12285
12286 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
12287
12288         * recog.h (constrain_operands): Add an alternative_mask parameter.
12289         (constrain_operands_cached): Likewise.
12290         (get_preferred_alternatives): Declare new form.
12291         * recog.c (get_preferred_alternatives): New bb-taking instance.
12292         (constrain_operands): Take the set of available alternatives as
12293         a parameter.
12294         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
12295         (extract_constrain_insn_cached): Update calls to constrain_operands.
12296         * caller-save.c (reg_save_code): Likewise.
12297         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12298         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
12299         * ree.c (combine_reaching_defs): Likewise.
12300         * reload.c (can_reload_into): Likewise.
12301         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
12302         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
12303         (emit_insn_if_valid_for_reload): Likewise.
12304         * reorg.c (fill_slots_from_thread): Likewise.
12305         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
12306         * config/pa/pa.c (pa_can_combine_p): Likewise.
12307         * config/rl78/rl78.c (insn_ok_now): Likewise.
12308         * config/sh/sh.md (define_peephole2): Likewise.
12309         * final.c (final_scan_insn): Update call to constrain_operands_cached.
12310
12311 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
12312
12313         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
12314         attributes.
12315         * genattr.c (main): Handle "preferred_for_size" and
12316         "preferred_for_speed" in the same way as "enabled".
12317         * recog.h (bool_attr): New enum.
12318         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
12319         (get_preferred_alternatives, check_bool_attrs): Declare.
12320         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
12321         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
12322         New functions.
12323         (get_enabled_alternatives): Use get_bool_attr_mask.
12324         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
12325         instead of recog_data.enabled_alternatives.
12326         * ira.c (ira_setup_alts): Likewise.
12327         * postreload.c (reload_cse_simplify_operands): Likewise.
12328         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12329         * ira-lives.c (preferred_alternatives): New variable.
12330         (process_bb_node_lives): Set it.
12331         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
12332         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
12333         of recog_data.enabled_alternatives.
12334         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
12335         to preferred_alternatives.
12336         * lra-constraints.c (process_alt_operands): Update accordingly.
12337         * lra.c (lra_set_insn_recog_data): Likewise.
12338         (lra_update_insn_recog_data): Assert check_bool_attrs.
12339
12340 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
12341
12342         * recog.h (extract_constrain_insn): Declare.
12343         * recog.c (extract_constrain_insn): New function.
12344         * lra.c (check_rtl): Use it.
12345         * postreload.c (reload_cse_simplify_operands): Likewise.
12346         * reg-stack.c (check_asm_stack_operands): Likewise.
12347         (subst_asm_stack_regs): Likewise.
12348         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12349         * regrename.c (build_def_use): Likewise.
12350         * sel-sched.c (get_reg_class): Likewise.
12351         * config/arm/arm.c (note_invalid_constants): Likewise.
12352         * config/s390/predicates.md (execute_operation): Likewise.
12353
12354 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
12355             Yury Gribov  <y.gribov@samsung.com>
12356
12357         * common.opt (flag_sanitize_recover): New variable.
12358         (fsanitize-recover): Remove Var/Init, deprecate.
12359         (fsanitize-recover=): New option.
12360         * doc/invoke.texi (fsanitize-recover): Update docs.
12361         * opts.c (finish_options): Use opts->x_flag_sanitize
12362         instead of flag_sanitize.  Prohibit -fsanitize-recover
12363         for anything besides UBSan.  Formatting.
12364         (common_handle_option): Handle OPT_fsanitize_recover_
12365         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
12366         instead of flag_sanitize.
12367         * asan.c (pass_sanopt::execute): Fix up formatting.
12368         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
12369         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
12370         instrument_bool_enum_load, ubsan_instrument_float_cast,
12371         instrument_nonnull_arg, instrument_nonnull_return): Check
12372         bits in flag_sanitize_recover bitmask instead of
12373         flag_sanitize_recover as bool flag.
12374
12375 2014-10-22  Jiong Wang <jiong.wang@arm.com>
12376
12377         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
12378
12379 2014-10-22  Renlin Li <renlin.li@arm.com>
12380
12381         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
12382         __ARM_FEATURE_IDIV__.
12383
12384 2014-10-22  Richard Biener  <rguenther@suse.de>
12385
12386         * Makefile.in (s-match): Adjust dependencies to only catch
12387         match.pd.
12388
12389 2014-10-22  Richard Biener  <rguenther@suse.de>
12390         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
12391
12392         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
12393         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
12394         (gimple-match.c): Generate by triggering s-match.
12395         (generic-match.c): Likewise.
12396         (s-match): Rule to build gimple-match.c and generic-match.c
12397         by running the genmatch generator program.
12398         (build/hash-table.o): Dependencies to build hash-table.c for the host.
12399         (build/genmatch.o): Dependencies to build genmatch.
12400         (genprog): Add match.
12401         (build/genmatch): Likewise.
12402         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
12403         * generic-match-head.c: New file.
12404         * gimple-match-head.c: Likewise.
12405         * gimple-match.h: Likewise.
12406         * genmatch.c: Likewise.
12407         * match.pd: Likewise.
12408         * builtins.h (fold_builtin_n): Export.
12409         * builtins.c (fold_builtin_n): Likewise.
12410         * gimple-fold.h (gimple_build): Declare various overloads.
12411         (gimple_simplify): Likewise.
12412         (gimple_convert): Re-implement in terms of gimple_build.
12413         * gimple-fold.c (gimple_convert): Remove.
12414         (gimple_build): New functions.
12415         * doc/match-and-simplify.texi: New file.
12416         * doc/gccint.texi: Add menu item Match and Simplify and include
12417         match-and-simplify.texi.
12418
12419 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
12420
12421         PR target/63594
12422         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
12423         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
12424         even for just TARGET_AVX2, not only for
12425         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
12426         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
12427         otherwise build it using concatenation of 256-bit
12428         broadcast.
12429         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
12430         avx512 broadcast patterns.
12431         (vec_dup<mode>): Likewise.  For avx2 use
12432         v<sseintprefix>broadcast<bcstscalarsuff> instead of
12433         vbroadcast<ssescalarmodesuffix>.
12434         (AVX2_VEC_DUP_MODE): New mode iterator.
12435         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
12436         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
12437
12438         PR target/63542
12439         * config/i386/i386.c (ix86_pic_register_p): Also return
12440         true if x is a hard register with ORIGINAL_REGNO equal to
12441         pic_offset_table_rtx pseudo REGNO.
12442         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
12443         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
12444
12445 2014-10-22  Alan Modra  <amodra@gmail.com>
12446
12447         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
12448         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
12449         (gcc_obstack_init): Use obstack_specify_allocation in place of
12450         _obstack_begin.
12451         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
12452         (regexp_representation): Likewise.
12453         * godump.c (go_output_type): Likewise.
12454
12455 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
12456
12457         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
12458         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
12459         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
12460
12461 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
12462
12463         * doc/invoke.texi (pedantic-errors): Explain better.
12464
12465 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
12466             Vidya Praveen <vidya.praveen@atmel.com>
12467             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
12468             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
12469             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
12470
12471         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
12472         __MEMX for avrtiny.
12473         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
12474         (avr_nonconst_pointer_addrspace): Likewise.
12475         * config/avr/avr.h (AVR_HAVE_LPM): Define.
12476
12477         Added AVRTINY architecture to avr target.
12478         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
12479         (base_arch_s): member added for AVRTINY architecture.
12480         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
12481         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
12482         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
12483         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
12484         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
12485         in callee saved register list.
12486         (avr_option_override): CCP address updated for AVRTINY.
12487         (avr_init_expanders): tmp and zero rtx initialized as per arch.
12488         Reset avr_have_dimode if AVRTINY.
12489         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
12490         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
12491         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
12492         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
12493         (expand_epilogue): Likewise.
12494         (avr_print_operand): Print CCP address in case of AVRTINY also.
12495         <TBD>bad address
12496         (function_arg_regno_p): Check different register list for arguments
12497         if AVRTINY.
12498         (init_cumulative_args): Check for AVRTINY to update number of argument
12499         registers.
12500         (tiny_valid_direct_memory_access_range): New function. Return false if
12501         direct memory access range is not in accepted range for AVRTINY.
12502         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
12503         indirect load (with displacement) for AVRTINY.
12504         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
12505         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
12506         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
12507         indirect load (no displacement) for AVRTINY.
12508         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
12509         indirect load (with displacement) for AVRTINY.
12510         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
12511         indirect load for pre-decrement address.
12512         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
12513         functions. Update instruction length for AVRTINY.
12514         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
12515         SImode.
12516         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
12517         (out_movsi_r_mr): Likewise, for SImode.
12518         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
12519         indirect store (no displacement) for AVRTINY.
12520         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
12521         indirect store (with displacement) for AVRTINY.
12522         (out_movsi_mr_r): Emit out insn for IO address store. Update store
12523         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
12524         store functions.
12525         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
12526         indirect load (no displacement) for PSImode in AVRTINY.
12527         (avr_out_load_psi_reg_disp_tiny): New function to handle register
12528         indirect load (with displacement) for PSImode in AVRTINY.
12529         (avr_out_load_psi): Call PSImode register indirect load functions for
12530         AVRTINY. Update instruction length for AVRTINY.
12531         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
12532         indirect store (no displacement) for PSImode in AVRTINY.
12533         (avr_out_store_psi_reg_disp_tiny): New function to handle register
12534         indirect store (with displacement) for PSImode in AVRTINY.
12535         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
12536         register indirect store functions for AVRTINY.
12537         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
12538         register indirect store (with displacement) for AVRTINY.
12539         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
12540         register indirect store function for QImode in AVRTINY.
12541         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
12542         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
12543         indirect store (no displacement) for HImode in AVRTINY.
12544         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
12545         indirect store (with displacement) for HImode in AVRTINY.
12546         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
12547         indirect store for post-increment address in HImode.
12548         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
12549         register indirect store function for HImode in AVRTINY.
12550         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
12551         in case of AVRTINY.
12552         (order_regs_for_local_alloc): Updated register allocation order for
12553         AVRTINY.
12554         (avr_conditional_register_usage): New function. It is a target hook
12555         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
12556         used registers list and register allocation order for AVRTINY.
12557         (avr_return_in_memory): Update return value size for AVRTINY.
12558         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
12559         for AVRTINY arch and tiny program memory base address.
12560         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
12561         (avr_texinfo): Added description for AVRTINY arch.
12562         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
12563         STATIC_CHAIN_REGNUM for AVRTINY.
12564         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
12565         * config/avr/avr.md: Added constants for tmp/ zero registers in
12566         AVRTINY. Attributes for AVRTINY added.
12567         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
12568         memory access range.
12569         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
12570         in AVRTINY memory access range.
12571         (*mov<mode>): Likewise for HImode and SImode.
12572         (*movsf): Likewise for SFmode.
12573         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
12574         not have sbiw.
12575         * config/avr/avr-protos.h: Added function prototype for
12576         tiny_valid_direct_memory_access_range.
12577         * config/avr/avr-tables.opt: Regenerate.
12578         * gcc/config/avr/t-multilib: Regenerate.
12579         * doc/avr-mmcu.texi: Regenerate.
12580
12581 2014-10-21  Andrew Pinski  <apinski@cavium.com>
12582
12583         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
12584         available option also.
12585         * config/aarch64/aarch64-cost-tables.h: New file.
12586         * config/aarch64/aarch64-cores.def (thunderx): New core.
12587         * config/aarch64/aarch64-tune.md: Regenerate.
12588         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
12589         of config/arm/aarch-cost-tables.h.
12590         (thunderx_regmove_cost): New variable.
12591         (thunderx_tunings): New variable.
12592
12593 2014-10-21  Dehao Chen  <dehao@google.com>
12594
12595         * auto-profile.c: New file.
12596         * auto-profile.h: New file.
12597         * basic-block.h (maybe_hot_count_p): New export func.
12598         (add_working_set): New export func.
12599         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
12600         (GCOV_TAG_AFDO_FUNCTION): Likewise.
12601         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
12602         * opts.c (enable_fdo_optimizations): New func.
12603         (common_handle_option): Handle -fauto-profile flag.
12604         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
12605         (class pass_early_inline): Export early_inliner.
12606         (early_inliner): Likewise.
12607         (pass_early_inline::execute): Likewise.
12608         * ipa-inline.h (early_inliner): Likewise.
12609         * predict.c (maybe_hot_count_p): New export func.
12610         (counts_to_freqs): AutoFDO logic.
12611         (rebuild_frequencies): Likewise.
12612         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
12613         * profile.c (add_working_set): New func.
12614         * Makefile.in (auto-profile.o): New object file.
12615         * passes.def (pass_ipa_auto_profile): New pass.
12616         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
12617         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
12618         * toplev.c (compile_file): AutoFDO logic.
12619         * doc/invoke.texi (-fauto-profile): New doc.
12620         * coverage.c (coverage_init): AutoFDO logic.
12621         * common.opt (-fauto-profile): New flag.
12622         * timevar.def (TV_IPA_AUTOFDO): New tag.
12623         * value-prof.c (gimple_alloc_histogram_value): New export func.
12624         (check_ic_target): Likewise.
12625         * value-prof.h (gimple_alloc_histogram_value): Likewise.
12626         (check_ic_target): Likewise.
12627
12628 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
12629
12630         * cgraph.c (cgraph_c_finalize): New function.
12631         * cgraph.h (cgraph_c_finalize): New prototype.
12632         (cgraphunit_c_finalize): New prototype.
12633         * cgraphunit.c (first_analyzed): Move from analyze_functions
12634         to file-scope.
12635         (first_analyzed_var): Likewise.
12636         (analyze_functions): Move static variables into file-scope.
12637         (cgraphunit_c_finalize): New function.
12638         * diagnostic.c (diagnostic_finish): Free the memory for
12639         context->classify_diagnostic and context->printer, running the
12640         destructor for the latter.
12641         (bt_stop): Use toplev::main.
12642         * dwarf2out.c (dwarf2out_finalize): New function.
12643         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
12644         * gcse.c (gcse_c_finalize): New function.
12645         * gcse.h (gcse_c_finalize): New prototype.
12646         * ggc-page.c (init_ggc): Make idempotent.
12647         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
12648         * ipa-cp.c (ipa_cp_c_finalize): New function.
12649         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
12650         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
12651         a field of class pass_ipa_pure_const.
12652         (node_duplication_hook_holder): Likewise.
12653         (node_removal_hook_holder): Likewise.
12654         (register_hooks): Convert to method...
12655         (pass_ipa_pure_const::register_hooks): ...here, converting
12656         static variable init_p into...
12657         (pass_ipa_pure_const::init_p): ...new field.
12658         (pure_const_generate_summary): Update invocation of
12659         register_hooks to invoke as a method of current_pass.
12660         (pure_const_read_summary): Likewise.
12661         (propagate): Convert to...
12662         (pass_ipa_pure_const::execute): ...method.
12663         * ipa-reference.c (ipa_init): Move static bool init_p from here
12664         to...
12665         (ipa_init_p): New file-scope variable, so that it can be reset
12666         when repeatedly invoking the compiler within one process by...
12667         (ipa_reference_c_finalize): New function.
12668         * ipa-reference.h (ipa_reference_c_finalize): New.
12669         * main.c (main): Replace invocation of toplev_main with
12670         construction of a toplev instance, and call its "main" method.
12671         * params.c (global_init_params): Add an assert that
12672         params_finished is false.
12673         (params_c_finalize): New.
12674         * params.h (params_c_finalize): New.
12675         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
12676         invoking generate_summary, for the benefit of pass_ipa_pure_const.
12677         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
12678         before calling write_summary hook.
12679         (ipa_write_optimization_summaries_1): Likewise when calling
12680         write_optimization_summary hook.
12681         (ipa_read_summaries_1): Likewise for read_summary hook.
12682         (ipa_read_optimization_summaries_1): Likewise for
12683         read_optimization_summary hook.
12684         (execute_ipa_stmt_fixups): Likewise.
12685         * stringpool.c (init_stringpool): Clean up if we're called more
12686         than once.
12687         * timevar.c (timevar_init): Ignore repeated calls.
12688         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
12689         "ipa-prop.h".
12690         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
12691         (initialize_rtl): Move static local "initialized_once"
12692         into file scope, and rename to...
12693         (rtl_initialized): New variable.
12694         (do_compile): Move timevar initialization from here to
12695         toplev::start_timevars.
12696         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
12697         toplev::finalize): New functions.
12698         (toplev_main): Rename to...
12699         (toplev::main): ...this.
12700         * toplev.h (class toplev): New class.
12701
12702 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
12703
12704         * loop-doloop.c: Include loop-unroll.h.
12705
12706 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
12707
12708         * cfg.h: New.  Header file for cfg.c.
12709         * cfganal.h: New.  Header file for cfganal.c.
12710         * lcm.h: New.  Header file for lcm.c.
12711         * loop-unroll.h: New.  Header file for loop-unroll.h.
12712         * cfgloop.h: (unroll_loops): Remove prototype.
12713         * basic-block.h: Move prototypes and structs to new header files.
12714         Include cfg.h, cfganal.h, and lcm.h.
12715         * loop-init.c: Include loop-unroll.h.
12716         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
12717         * modulo-sched.c: Include loop-unroll.h.
12718
12719 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12720
12721         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
12722         MARKER_BYTE_UNKNOWN markers when handling casts.
12723
12724 2014-10-21  Richard Biener  <rguenther@suse.de>
12725
12726         * tree-ssa-phiopt.c (value_replacement): Properly verify we
12727         are the non-singleton PHI.
12728
12729 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
12730
12731         PR tree-optimization/63563
12732         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
12733         if either dra or drb stmts are not normal loads/stores.
12734
12735 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
12736
12737         * config/i386/i386.c (expand_vec_perm_1): Fix
12738         expand_vec_perm_palignr case.
12739         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
12740         VI1_AVX512.
12741
12742 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12743
12744         * cfgloopanal.c (seq_cost): Delete.
12745         * rtl.h (seq_cost): New prototype.
12746         * rtlanal.c (seq_cost): New function.
12747         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
12748
12749 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
12750
12751         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
12752         * basic-block.h: Remove prototypes for cfgrtl.c.
12753         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
12754         prototypes to cfgrtl.h.
12755         * profile.h (profile_info): Add extern export declaration.
12756         * rtl.h: Remove prototypes for cfgrtl.h.
12757         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
12758         * ipa-inline.c: Include profile.h.
12759         * loop-unroll.c: Ditto.
12760         * modulo-sched.c: Ditto.
12761         * postreload-gcse.c: Ditto.
12762         * predict.c: Ditto.
12763         * sched-ebb.c: Ditto.
12764         * sched-rgn.c: Ditto.
12765         * tracer.c: Ditto.
12766         * tree-ssa-loop-ivcanon.c: Ditto.
12767
12768 2014-10-20  Richard Biener  <rguenther@suse.de>
12769
12770         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
12771         operands to get a def operand kind match.  Signal mismatches
12772         to the parent so we can try swapping its operands.
12773         (vect_build_slp_tree): Try swapping operands if they have
12774         a mismatched operand kind.
12775
12776 2014-10-20  Alan Modra  <amodra@gmail.com>
12777
12778         PR debug/60655
12779         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
12780         Increase "ops" array size.  Correct array size tests.  Init
12781         n_constants in loop.  Break out of innermost loop when finding
12782         a trivial CONST expression.
12783
12784 2014-10-20  Martin Liska  <mliska@suse.cz>
12785
12786         PR ipa/63583
12787         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
12788         Gimple tempate string is compared.
12789
12790 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
12791
12792         * varasm.c (const_alias_set): Remove.
12793         (init_varasm_once): Remove initialization of const_alias_set.
12794         (build_constant_desc): Do not set alias set to const_alias_set.
12795
12796 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
12797
12798         * configure: Regenerate.
12799         * configure.ac: Move the test for section attribute specifier "e" in GAS
12800         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
12801         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
12802         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
12803         ifdef HAVE_GAS_SECTION_EXCLUDE.
12804
12805 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
12806
12807         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
12808         match_operand expression.
12809
12810 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12811             David Edelsohn  <dje.gcc@gmail.com>
12812
12813         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
12814         function.
12815         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12816
12817 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12818
12819         * doc/invoke.texi (Options to Request or Suppress Warnings):
12820         Explain options precedence.
12821         (Wtrampolines): Do not indent paragraph.
12822
12823 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
12824
12825         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
12826         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
12827         (pa_jump_in_call_delay): Likewise.
12828         * config/pa/pa.c (pa_option_override): Remove jump in call delay
12829         override.
12830         (pa_output_millicode_call): Remove support for jump in call delay.
12831         (pa_output_call): Likewise.
12832         (pa_jump_in_call_delay): Delete.
12833         (pa_following_call): Likewise.
12834         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
12835         (uncond_branch): Remove following call check from attribute length.
12836
12837 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
12838
12839         PR target/53513
12840         * config/sh/sh-modes.def (PSI): Remove.
12841         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
12842         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
12843         (sh_reorg): Remove commented out FPSCR code.
12844         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
12845         insn instead of move insn.
12846         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
12847         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
12848         handling.
12849         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
12850         (sh1_builtin_p): Uncomment.
12851         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
12852         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
12853         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
12854         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
12855         (general_movsrc_operand, general_movdst_operand): Disallow
12856         fpscr_operand.
12857         * config/sh/sh.md (FPSCR_FR): New constant.
12858         (push_fpscr): Emit sts_fpscr insn.
12859         (pop_fpscr): Emit lds_fpscr_insn.
12860         (movsi_ie): Disallow FPSCR operands.
12861         (fpu_switch, unnamed related split, extend_psi_si,
12862         truncate_si_psi): Remove insns.
12863         (lds_fpscr, sts_fpscr): New insns.
12864         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
12865
12866 >>>>>>> .r217525
12867 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
12868
12869         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
12870         (clone_inlined_nodes): Do not overwrite the clone if above predicate
12871         returns true.
12872
12873 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
12874
12875         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
12876         (expand_vec_perm_d): Ditto.
12877         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
12878         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
12879         V4DFmode.
12880         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
12881         (ix86_expand_sse_unpack): Handle V64QImode.
12882         (expand_vec_perm_blend): Update conditions for TARGET, handle
12883         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
12884         (expand_vec_perm_pshufb): Handle V64QImode.
12885         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
12886         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
12887         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
12888         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
12889         (ix86_expand_vecop_qihi): Handle V64QImode.
12890         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
12891         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
12892         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
12893         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
12894         (mul<mode>3): Use VI1_AVX512.
12895         (<sse2_avx2>_packsswb): Ditto.
12896         (<sse2_avx2>_packuswb): Ditto.
12897         (<ssse3_avx2>_pshufb<mode>3): Ditto.
12898         (<shift_insn><mode>3): Ditto.
12899
12900 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
12901
12902         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
12903         conditions to fix bootstrap.
12904
12905 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
12906
12907         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
12908
12909 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12910             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12911             Anna Tikhonova  <anna.tikhonova@intel.com>
12912             Ilya Tocar  <ilya.tocar@intel.com>
12913             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12914             Ilya Verbin  <ilya.verbin@intel.com>
12915             Kirill Yukhin  <kirill.yukhin@intel.com>
12916             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12917
12918         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
12919         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
12920         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
12921         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
12922         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
12923         (define_expand "vec_init<mode>"): Use VF48_I1248.
12924
12925 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12926             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12927             Anna Tikhonova  <anna.tikhonova@intel.com>
12928             Ilya Tocar  <ilya.tocar@intel.com>
12929             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12930             Ilya Verbin  <ilya.verbin@intel.com>
12931             Kirill Yukhin  <kirill.yukhin@intel.com>
12932             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12933
12934         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
12935         expand_sse2_mulvxdi3.
12936
12937 2014-10-17  Richard Biener  <rguenther@suse.de>
12938
12939         * fold-const.c (fold_comparison): Remove redundant constant
12940         folding and operand swapping.
12941         (fold_binary_loc): Do comparison operand swapping here.
12942         (fold_ternary_loc): Canonicalize operand order for
12943         commutative ternary operations.
12944         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
12945         and FMA_EXPR.
12946
12947 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
12948
12949         PR tree-optimization/63464
12950         * gimple.h (gimple_seq_discard): New prototype.
12951         * gimple.c: Include stringpool.h and tree-ssanames.h.
12952         (gimple_seq_discard): New function.
12953         * optabs.h (lshift_cheap_p): New prototype.
12954         * optabs.c (lshift_cheap_p): New function, moved from...
12955         * tree-switch-conversion.c (lshift_cheap_p): ... here.
12956         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
12957         (reassoc_branch_fixups): New variable.
12958         (update_range_test): Add otherrangep and seq arguments.
12959         Unshare exp.  If otherrange is NULL, use for other ranges
12960         array of pointers pointed by otherrangep instead.
12961         Emit seq before gimplified statements for tem.
12962         (optimize_range_tests_diff): Adjust update_range_test
12963         caller.
12964         (optimize_range_tests_xor): Likewise.  Fix up comment.
12965         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
12966         functions.
12967         (optimize_range_tests): Adjust update_range_test caller.
12968         Call optimize_range_tests_to_bit_test.
12969         (branch_fixup): New function.
12970         (execute_reassoc): Call branch_fixup.
12971
12972         PR tree-optimization/63302
12973         * tree-ssa-reassoc.c (optimize_range_tests_xor,
12974         optimize_range_tests_diff): Use !integer_pow2p () instead of
12975         tree_log2 () < 0.
12976
12977 2014-10-17  Martin Liska  <mliska@suse.cz>
12978
12979         * ipa-icf.c (sem_function::merge): Local flags are set to false
12980         to enforce equal calling convention to be used.
12981         * opts.c (common_handle_option): Indentation fix.
12982
12983 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
12984
12985         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
12986
12987 2014-10-17  Tom de Vries  <tom@codesourcery.com>
12988
12989         PR rtl-optimization/61605
12990         * regcprop.c (copyprop_hardreg_forward_1): Use
12991         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
12992
12993 2014-10-17  Tom de Vries  <tom@codesourcery.com>
12994
12995         PR rtl-optimization/61605
12996         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
12997         notice stores for noops.  Don't regard noops as copies.
12998
12999 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
13000
13001         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
13002         register in a special way.
13003         (__cpuid_count): Ditto.
13004         * config/i386/driver-i386.h: Protect with
13005         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
13006         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
13007         is required to compile the function.
13008
13009 2014-10-16  DJ Delorie  <dj@redhat.com>
13010
13011         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
13012         integers.
13013
13014         * config/rs6000/rs6000-c.c (rid_int128): New.
13015         (rs6000_macro_to_expand): Use instead of RID_INT128.
13016
13017 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
13018
13019         * function.h: Flatten file.  Remove includes, adjust prototypes to
13020         reflect only what is in function.h.
13021         (enum direction, struct args_size, struct locate_and_pad_arg_data,
13022         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
13023         from expr.h.
13024         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
13025         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
13026         prototypes to predict.h.
13027         (init_varasm_status): Move prototype to varasm.h.
13028         * expr.h: Adjust include files.
13029         (enum direction, struct args_size, struct locate_and_pad_arg_data,
13030         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
13031         to function.h.
13032         (locate_and_pad_parm): Move prototype to function.h.
13033         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
13034         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
13035         assign_temp, reposition_prologue_and_epilogue_notes,
13036         prologue_epilogue_contains, sibcall_epilogue_contains,
13037         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
13038         set_return_jump_label): Move prototypes to function.h.
13039         * predict.h (optimize_function_for_size_p,
13040         optimize_function_for_speed_p): Relocate prototypes from function.h.
13041         * shrink-wrap.h (emit_return_into_block, active_insn_between,
13042         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
13043         function.h.
13044         * varasm.h (init_varasm_status): Relocate prototype from function.h.
13045         * genattrtab.c (write_header): Add predict.h to include list.
13046         * genconditions.c (write_header): Add predict.h to include list.
13047         * genemit.c (main): Adjust header file includes.
13048         * gengtype.c (ifiles): Add flattened function.h header files.
13049         * genoutput.c (output_prologue): Add predict.h to include list.
13050         * genpreds.c (write_insn_preds_c): Adjust header file includes.
13051         * genrecog.c (write_header): Add flattened function.h header files.
13052         * alias.c: Adjust include files.
13053         * auto-inc-dec.c: Likewise.
13054         * basic-block.h: Likewise.
13055         * bb-reorder.c: Likewise.
13056         * bt-load.c: Likewise.
13057         * builtins.c: Likewise.
13058         * caller-save.c: Likewise.
13059         * calls.c: Likewise.
13060         * cfgbuild.c: Likewise.
13061         * cfgcleanup.c: Likewise.
13062         * cfgexpand.c: Likewise.
13063         * cfgloop.c: Likewise.
13064         * cfgloop.h: Likewise.
13065         * cfgrtl.c: Likewise.
13066         * cgraph.h: Likewise.
13067         * cgraphclones.c: Likewise.
13068         * cgraphunit.c: Likewise.
13069         * combine-stack-adj.c: Likewise.
13070         * combine.c: Likewise.
13071         * coverage.c: Likewise.
13072         * cprop.c: Likewise.
13073         * cse.c: Likewise.
13074         * cselib.c: Likewise.
13075         * dbxout.c: Likewise.
13076         * ddg.c: Likewise.
13077         * df-core.c: Likewise.
13078         * df-problems.c: Likewise.
13079         * df-scan.c: Likewise.
13080         * dojump.c: Likewise.
13081         * dwarf2cfi.c: Likewise.
13082         * dwarf2out.c: Likewise.
13083         * emit-rtl.c: Likewise.
13084         * except.c: Likewise.
13085         * explow.c: Likewise.
13086         * expr.c: Likewise.
13087         * final.c: Likewise.
13088         * function.c: Likewise.
13089         * gcse.c: Likewise.
13090         * gimple-fold.c: Likewise.
13091         * gimple-low.c: Likewise.
13092         * gimple-streamer.h: Likewise.
13093         * haifa-sched.c: Likewise.
13094         * ifcvt.c: Likewise.
13095         * ira.c: Likewise.
13096         * jump.c: Likewise.
13097         * lcm.c: Likewise.
13098         * loop-invariant.c: Likewise.
13099         * lra-assigns.c: Likewise.
13100         * lra-coalesce.c: Likewise.
13101         * lra-constraints.c: Likewise.
13102         * lra-eliminations.c: Likewise.
13103         * lra-lives.c: Likewise.
13104         * lra-spills.c: Likewise.
13105         * lra.c: Likewise.
13106         * lto-cgraph.c: Likewise.
13107         * lto-section-in.c: Likewise.
13108         * lto-section-out.c: Likewise.
13109         * lto-streamer-in.c: Likewise.
13110         * lto-streamer-out.c: Likewise.
13111         * mode-switching.c: Likewise.
13112         * modulo-sched.c: Likewise.
13113         * omp-low.c: Likewise.
13114         * optabs.c: Likewise.
13115         * passes.c: Likewise.
13116         * postreload-gcse.c: Likewise.
13117         * postreload.c: Likewise.
13118         * predict.c: Likewise.
13119         * profile.c: Likewise.
13120         * recog.c: Likewise.
13121         * ree.c: Likewise.
13122         * reg-stack.c: Likewise.
13123         * regcprop.c: Likewise.
13124         * reginfo.c: Likewise.
13125         * regrename.c: Likewise.
13126         * reload.c: Likewise.
13127         * reload1.c: Likewise.
13128         * reorg.c: Likewise.
13129         * resource.c: Likewise.
13130         * rtlanal.c: Likewise.
13131         * sched-deps.c: Likewise.
13132         * sched-ebb.c: Likewise.
13133         * sched-rgn.c: Likewise.
13134         * sel-sched-dump.c: Likewise.
13135         * sel-sched-ir.c: Likewise.
13136         * sel-sched.c: Likewise.
13137         * shrink-wrap.c: Likewise.
13138         * simplify-rtx.c: Likewise.
13139         * statistics.c: Likewise.
13140         * stmt.c: Likewise.
13141         * stor-layout.c: Likewise.
13142         * store-motion.c: Likewise.
13143         * symtab.c: Likewise.
13144         * targhooks.c: Likewise.
13145         * toplev.c: Likewise.
13146         * trans-mem.c: Likewise.
13147         * tree-cfg.c: Likewise.
13148         * tree-cfgcleanup.c: Likewise.
13149         * tree-dfa.c: Likewise.
13150         * tree-eh.c: Likewise.
13151         * tree-inline.c: Likewise.
13152         * tree-into-ssa.c: Likewise.
13153         * tree-nested.c: Likewise.
13154         * tree-nrv.c: Likewise.
13155         * tree-profile.c: Likewise.
13156         * tree-ssa-alias.c: Likewise.
13157         * tree-ssa-ccp.c: Likewise.
13158         * tree-ssa-copy.c: Likewise.
13159         * tree-ssa-copyrename.c: Likewise.
13160         * tree-ssa-dom.c: Likewise.
13161         * tree-ssa-operands.c: Likewise.
13162         * tree-ssa-propagate.c: Likewise.
13163         * tree-ssa-structalias.c: Likewise.
13164         * tree-ssa-tail-merge.c: Likewise.
13165         * tree-ssa-threadedge.c: Likewise.
13166         * tree-ssa-threadupdate.c: Likewise.
13167         * tree-ssa-uncprop.c: Likewise.
13168         * tree-ssa-uninit.c: Likewise.
13169         * tree-ssa.c: Likewise.
13170         * tree-stdarg.c: Likewise.
13171         * tree-tailcall.c: Likewise.
13172         * tree.c: Likewise.
13173         * tsan.c: Likewise.
13174         * valtrack.c: Likewise.
13175         * varasm.c: Likewise.
13176         * vmsdbgout.c: Likewise.
13177         * web.c: Likewise.
13178         * config/aarch64/aarch64.c: Add flattened includes from function.h.
13179         * config/alpha/alpha.c: Likewise.
13180         * config/arc/arc.c: Likewise.
13181         * config/arm/arm.c: Likewise.
13182         * config/avr/avr-log.c: Likewise.
13183         * config/avr/avr.c: Likewise.
13184         * config/bfin/bfin.c: Likewise.
13185         * config/c6x/c6x.c: Likewise.
13186         * config/cr16/cr16.c: Likewise.
13187         * config/cris/cris.c: Likewise.
13188         * config/darwin.c: Likewise.
13189         * config/epiphany/epiphany.c: Likewise.
13190         * config/epiphany/mode-switch-use.c: Likewise.
13191         * config/epiphany/resolve-sw-modes.c: Likewise.
13192         * config/fr30/fr30.c: Likewise.
13193         * config/frv/frv.c: Likewise.
13194         * config/h8300/h8300.c: Likewise.
13195         * config/i386/i386.c: Likewise.
13196         * config/ia64/ia64.c: Likewise.
13197         * config/iq2000/iq2000.c: Likewise.
13198         * config/lm32/lm32.c: Likewise.
13199         * config/m32c/m32c.c: Likewise.
13200         * config/m32r/m32r.c: Likewise.
13201         * config/m68k/m68k.c: Likewise.
13202         * config/mcore/mcore.c: Likewise.
13203         * config/mep/mep-pragma.c: Likewise.
13204         * config/mep/mep.c: Likewise.
13205         * config/microblaze/microblaze.c: Likewise.
13206         * config/mips/mips.c: Likewise.
13207         * config/mmix/mmix.c: Likewise.
13208         * config/mn10300/mn10300.c: Likewise.
13209         * config/moxie/moxie.c: Likewise.
13210         * config/msp430/msp430.c: Likewise.
13211         * config/nds32/nds32-cost.c: Likewise.
13212         * config/nds32/nds32-fp-as-gp.c: Likewise.
13213         * config/nds32/nds32-intrinsic.c: Likewise.
13214         * config/nds32/nds32-isr.c: Likewise.
13215         * config/nds32/nds32-md-auxiliary.c: Likewise.
13216         * config/nds32/nds32-memory-manipulation.c: Likewise.
13217         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13218         * config/nds32/nds32-predicates.c: Likewise.
13219         * config/nds32/nds32.c: Likewise.
13220         * config/nios2/nios2.c: Likewise.
13221         * config/pa/pa.c: Likewise.
13222         * config/pdp11/pdp11.c: Likewise.
13223         * config/rl78/rl78.c: Likewise.
13224         * config/rs6000/rs6000.c: Likewise.
13225         * config/rx/rx.c: Likewise.
13226         * config/s390/s390.c: Likewise.
13227         * config/score/score.c: Likewise.
13228         * config/sh/sh.c: Likewise.
13229         * config/sparc/sparc.c: Likewise.
13230         * config/spu/spu.c: Likewise.
13231         * config/stormy16/stormy16.c: Likewise.
13232         * config/tilegx/tilegx.c: Likewise.
13233         * config/tilepro/tilepro.c: Likewise.
13234         * config/v850/v850.c: Likewise.
13235         * config/vax/vax.c: Likewise.
13236         * config/xtensa/xtensa.c: Likewise.
13237
13238 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
13239
13240         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
13241         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
13242
13243 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
13244
13245         * config/sh/sh-protos.h (fldi_ok): Remove.
13246         * config/sh/sh.c (fldi_ok): Likewise.
13247         (sh_secondary_reload): Don't use fldi_ok.
13248         * config/sh/constraints.md (G constraint, H constraint): Don't use
13249         fldi_ok.
13250
13251 2014-10-16  Martin Liska  <mliska@suse.cz>
13252
13253         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
13254         Cast to unsigned long.
13255         (sem_item_optimizer::dump_cong_classes): Likewise.
13256
13257 2014-10-16  Tom de Vries  <tom@codesourcery.com>
13258
13259         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
13260         with SSA_NAME_IN_FREELIST.
13261
13262 2014-10-16  Richard Biener  <rguenther@suse.de>
13263
13264         PR middle-end/63554
13265         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
13266         (fold_builtin_strncat_chk): Move ...
13267         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
13268         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
13269
13270 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
13271
13272         PR target/59401
13273         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
13274         GBR to 0.
13275
13276 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13278             Anna Tikhonova  <anna.tikhonova@intel.com>
13279             Ilya Tocar  <ilya.tocar@intel.com>
13280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13281             Ilya Verbin  <ilya.verbin@intel.com>
13282             Kirill Yukhin  <kirill.yukhin@intel.com>
13283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13284
13285         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
13286         V64QI modes.
13287
13288 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13289             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13290             Anna Tikhonova  <anna.tikhonova@intel.com>
13291             Ilya Tocar  <ilya.tocar@intel.com>
13292             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13293             Ilya Verbin  <ilya.verbin@intel.com>
13294             Kirill Yukhin  <kirill.yukhin@intel.com>
13295             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13296
13297         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
13298         V16SI, V32HI, V64QI modes.
13299
13300 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
13301
13302         PR target/53513
13303         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
13304         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
13305
13306         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
13307         to match fp insn patterns.
13308         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
13309         list.
13310         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
13311         expand_df_unop, expand_df_binop): Remove.
13312         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
13313         FPSCR_STAT_REG as not call clobbered.
13314         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
13315         invoking fpscr_set_from_mem.
13316
13317         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
13318         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
13319         FPSCR_STAT_REG.
13320         (REGISTER_NAMES): Adjust.
13321         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
13322         (FIRST_PSEUDO_REGISTER): Increase to 156.
13323         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
13324         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
13325         FPSCR_STAT_REG.
13326         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
13327         FPSCR_MODES_REG and FPSCR_STAT_REG.
13328         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
13329
13330         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
13331         FPSCR_SZ): Add new constants.
13332         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
13333
13334         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
13335         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
13336         Use TARGET_FPU_ANY condition.
13337         (fpu_switch peephole2): Remove.
13338         (fpu_switch split): Use simple_mem_operand to capture the mem and
13339         adjust split implementation.
13340         (extend_psi_si, truncate_si_psi): New insns.
13341         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
13342         set of FPSCR_MODES_REG.
13343
13344         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
13345         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
13346         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
13347         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
13348         call_value_compact, call_value_compact_rettramp, call,
13349         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
13350         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
13351         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
13352         sibcall_value_compact, sibcall_value, call_value_pop_compact,
13353         call_value_pop_compact_rettramp, various unnamed splits):
13354         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
13355         function uses.
13356
13357         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
13358         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
13359         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
13360         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
13361         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
13362
13363         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
13364         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
13365         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
13366         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
13367         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
13368         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
13369         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
13370
13371 2014-10-16  Martin Liska  <mliska@suse.cz>
13372             Jan Hubicka  <hubicka@ucw.cz>
13373
13374         * Makefile.in: New object files included.
13375         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
13376         is printed.
13377         (verify_edge_corresponds_to_fndecl): More sensitive verification
13378         of nodes that are merged by IPA ICF.
13379         * cgraph.h (cgraph_node::num_references): New function.
13380         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
13381         * common.opt: New options ipa-icf, ipa-icf-functions and
13382         ipa-icf-variables introduced.
13383         * doc/invoke.texi: Documentation of new options introduced.
13384         * ipa-icf-gimple.c: New file.
13385         * ipa-icf-gimple.h: New file.
13386         * ipa-icf.c: New file.
13387         * ipa-icf.h: New file.
13388         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
13389         (input_overwrite_node): Likewise.
13390         * lto-section-in.c: New icf section added.
13391         * lto-streamer.h (enum lto_section_type): Likewise.
13392         * opts.c (common_handle_option): New option added.
13393         * passes.def: New pass included.
13394         * timevar.def: Time variable for IPA ICF added.
13395         * tree-pass.h: New IPA ICF pass entry point added.
13396
13397 2014-10-16  Richard Biener  <rguenther@suse.de>
13398
13399         PR tree-optimization/63168
13400         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
13401         latches if after merging they are no longer simple.
13402         * cfghooks.c (merge_blocks): Handle merging a latch block
13403         into another block.
13404
13405 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13406             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13407             Anna Tikhonova  <anna.tikhonova@intel.com>
13408             Ilya Tocar  <ilya.tocar@intel.com>
13409             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13410             Ilya Verbin  <ilya.verbin@intel.com>
13411             Kirill Yukhin  <kirill.yukhin@intel.com>
13412             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13413
13414         * config/i386/sse.md
13415         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
13416         support AVX-512VL instructions.
13417
13418 2014-10-16  DJ Delorie  <dj@redhat.com>
13419
13420         * tree-core.h: Fix comment to not assume pointers are multiples of
13421         bytes.
13422
13423 2014-10-15  Tom Tromey  <tromey@redhat.com>
13424
13425         * timevar.h (class auto_timevar): New class.
13426
13427 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
13428
13429         PR go/59432
13430         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
13431         Remove the second alternative.
13432         (regprefix): Remove mode attribute.
13433         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
13434         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
13435
13436         Revert:
13437         2013-11-05  Ian Lance Taylor  <iant@google.com>
13438
13439         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
13440         If possible, add .cfi directives to record change to bx.
13441         * config/i386/i386.c (ix86_emit_cfi): New function.
13442         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
13443
13444 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
13445
13446         PR lto/62026
13447         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
13448         to duplicate.
13449         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
13450         at WPA time.
13451
13452 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
13453
13454         PR rtl-optimization/63448
13455         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
13456         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
13457         (LRA_MAX_INHERITANCE_PASSES): Use it.
13458         (lra_constraint_iter_after_spill): Remove.
13459         (lra_assignment_iter): New.
13460         (lra_assignment_iter_after_spill): New.
13461         * lra-assigns.c (lra_assignment_iter): New.
13462         (lra_assignment_iter_after_spill): New.
13463         (former_reload_pseudo_spill_p): New.
13464         (spill_for): Set up former_reload_pseudo_spill_p.
13465         (setup_live_pseudos_and_spill_after_risky): Ditto.
13466         (assign_by_spills): Ditto.
13467         (lra_assign): Increment lra_assignment_iter.  Print the iteration
13468         number.  Reset former_reload_pseudo_spill_p.  Check
13469         lra_assignment_iter_after_spill.
13470         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
13471         lra_assignment_iter and lra_assignment_iter_after_spill.
13472         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
13473         (lra_constraints): Remove code with
13474         lra_assignment_iter_after_spill.
13475
13476 2014-10-15  Teresa Johnson  <tejohnson@google.com>
13477
13478         PR bootstrap/63432
13479         * tree-ssa-threadupdate.c (recompute_probabilities): Better
13480         overflow checking.
13481
13482 2014-10-15  Renlin Li <renlin.li@arm.com>
13483
13484         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13485         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
13486         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
13487         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
13488
13489 2014-10-15  Richard Biener  <rguenther@suse.de>
13490
13491         * gimple-fold.c (gimple_fold_call): Properly keep virtual
13492         SSA form up-to-date when devirtualizing a call to
13493         __builtin_unreachable and avoid fixing up EH info here.
13494
13495 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13496             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13497             Anna Tikhonova  <anna.tikhonova@intel.com>
13498             Ilya Tocar  <ilya.tocar@intel.com>
13499             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13500             Ilya Verbin  <ilya.verbin@intel.com>
13501             Kirill Yukhin  <kirill.yukhin@intel.com>
13502             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13503
13504         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
13505         to support AVX-512BW.
13506         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
13507         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
13508         (define_insn "*<plusminus_insn><mode>3"): Ditto.
13509         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
13510         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
13511         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
13512         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
13513         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
13514         (define_insn "*andnot<mode>3"): Ditto.
13515         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
13516         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
13517         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
13518         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
13519         (define_insn "*abs<mode>2"): Remove masking support.
13520         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
13521         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
13522         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
13523
13524 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13525             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13526             Anna Tikhonova  <anna.tikhonova@intel.com>
13527             Ilya Tocar  <ilya.tocar@intel.com>
13528             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13529             Ilya Verbin  <ilya.verbin@intel.com>
13530             Kirill Yukhin  <kirill.yukhin@intel.com>
13531             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13532
13533         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
13534         * config/i386/sse.md
13535         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
13536         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
13537         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
13538         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
13539         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
13540         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
13541         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
13542
13543 2014-10-15  Renlin Li <renlin.li@arm.com>
13544
13545         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
13546
13547 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
13548
13549         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
13550         MINUS_EXPR in unsigned type to avoid undefined behavior.
13551
13552 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
13553
13554         * stor-layout.c (self_referential_size): Do not promote arguments.
13555
13556 2014-10-15  Marek Polacek  <polacek@redhat.com>
13557
13558         * doc/invoke.texi: Update to reflect that GNU11 is the default
13559         mode for C.
13560         * c-common.h (c_language_kind): Update comment.
13561
13562 2014-10-15  Richard Biener  <rguenther@suse.de>
13563
13564         * hash-table.c: Include bconfig.h if building for the host.
13565         * hash-table.h: Do not include ggc.h on the host but just declare
13566         a few ggc allocation templates.
13567
13568 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
13569             Jeff Law  <law@redhat.com>
13570
13571         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
13572         multiple hard registers, use smaller mode derived from MODE.
13573
13574 2014-10-15  Andreas Schwab  <schwab@suse.de>
13575
13576         * explow.c (convert_memory_address_addr_space_1): Mark in_const
13577         as ATTRIBUTE_UNUSED.
13578
13579 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
13580
13581         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
13582         (decide_unrolling): ... this one.
13583         (peel_loops_completely): Remove.
13584         (decide_peel_simple): Remove.
13585         (decide_peel_once_rolling): Remove.
13586         (decide_peel_completely): Remove.
13587         (peel_loop_simple): Remove.
13588         (peel_loop_completely): Remove.
13589         (unroll_and_peel_loops): Rename to ...
13590         (unroll_loops): ... this one; handle only unrolling.
13591         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
13592         LPT_PEEL_SIMPLE.
13593         (UAP_PEEL): Remove.
13594         (unroll_and_peel_loops): Remove.
13595         (unroll_loops): New.
13596         * passes.def: Replace
13597         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
13598         * loop-init.c (gate_rtl_unroll_and_peel_loops,
13599         rtl_unroll_and_peel_loops): Rename to ...
13600         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
13601         (pass_rtl_unroll_and_peel_loops): Rename to ...
13602         (pass_rtl_unroll_loops): ... this one.
13603         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
13604         (make_pass_rtl_unroll_loops): New.
13605         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
13606         (canonicalize_loop_induction_variables): Update.
13607
13608 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
13609
13610         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
13611         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
13612         !TARGET_HARD_FLOAT_POSTINC.
13613         (*lsip, *ssip): new instructions.
13614
13615 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
13616
13617         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
13618         remove.
13619
13620 2014-10-14  Andrew Pinski  <apinski@cavium.com>
13621
13622         * explow.c (convert_memory_address_addr_space): Rename to ...
13623         (convert_memory_address_addr_space_1): This.  Add in_const argument.
13624         Inside a CONST RTL, permute the conversion and addition of constant
13625         for zero and sign extended pointers.
13626         (convert_memory_address_addr_space): New function.
13627
13628 2014-10-14  Andrew Pinski  <apinski@cavium.com>
13629
13630         Revert:
13631         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13632
13633         PR middle-end/49721
13634         * explow.c (convert_memory_address_addr_space): Also permute the
13635         conversion and addition of constant for zero-extend.
13636
13637 2014-10-14  DJ Delorie  <dj@redhat.com>
13638
13639         * config/msp430/msp430-modes.def (PSI): Add.
13640
13641         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
13642         (msp430_hard_regno_nregs_with_padding): New.
13643         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
13644         (msp430_hard_regno_nregs_has_padding): New.
13645         (msp430_hard_regno_nregs_with_padding): New.
13646         (msp430_unwind_word_mode): Use PSImode instead of SImode.
13647         (msp430_addr_space_legitimate_address_p): New.
13648         (msp430_asm_integer): New.
13649         (msp430_init_dwarf_reg_sizes_extra): New.
13650         (msp430_print_operand): Use X suffix for PSImode even in small model.
13651         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
13652         (PTR_SIZE): ...but 4 bytes for EH.
13653         (SIZE_TYPE): Use __int20.
13654         (PTRDIFF_TYPE): Likewise.
13655         (INCOMING_FRAME_SP_OFFSET): Adjust.
13656         * config/msp430/msp430.md (movqi_topbyte): New.
13657         (movpsi): Use fixed suffixes.
13658         (movsipsi2): Enable for 430X, not large model.
13659         (extendhipsi2): Likewise.
13660         (zero_extendhisi2): Likewise.
13661         (zero_extendhisipsi2): Likewise.
13662         (extend_and_shift1_hipsi2): Likewise.
13663         (extendpsisi2): Likewise.
13664         (*bitbranch<mode>4_z): Fix suffix logic.
13665
13666 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
13667
13668         PR ada/62019
13669         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
13670         do not choke on null node.
13671         <VAR_DECL>: Likewise.
13672
13673 2014-10-14  DJ Delorie  <dj@redhat.com>
13674
13675         * machmode.h (int_n_data_t): New.
13676         (int_n_enabled_p): New.
13677         (int_n_data): New.
13678         * tree.c (int_n_enabled_p): New.
13679         (int_n_trees): New.
13680         (make_or_reuse_type): Check for all __intN types, not just
13681         __int128.
13682         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
13683         entries.
13684         * tree.h (int128_integer_type_node): Remove.
13685         (int128_unsigned_type_node): Remove.
13686         (int_n_trees_t): New.
13687         (int_n_enabled_p): New.
13688         (int_n_trees): New.
13689         * toplev.c (standard_type_bitsize): New.
13690         (do_compile): Check which __intN types are enabled for the current
13691         run.
13692         * builtin-types.def (BT_INT128): Remove.
13693         (BT_UINT128): Remove.
13694         * machmode.def: Add macro to create __int128 for all targets.
13695         * stor-layout.c (mode_for_size): Support __intN types.
13696         (smallest_mode_for_size): Likewise.
13697         (initialize_sizetypes): Support __intN types.
13698         * genmodes.c (struct mode_data): Add int_n field.
13699         (blank_mode): Likewise.
13700         (INT_N): New.
13701         (make_int_n): New.
13702         (emit_insn_modes_h): Count __intN entries and define
13703         NUM_INT_N_ENTS.
13704         (emit_mode_int_n): New.
13705         (emit_insn_modes_c): Call it.
13706         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
13707         types, not just __int128.
13708         * tree-core.h (integer_type_kind): Remove __int128-specific
13709         entries, reserve spots for __intN entries.
13710
13711         * config/msp430/msp430-modes.def (PSI): Add.
13712
13713 2014-10-14  Kito Cheng  <kito@0xlab.org>
13714
13715         * ira.c: Fix typo in comment.
13716         * ira.h: Ditto.
13717         * ira-build.c: Ditto.
13718         * ira-color.c: Ditto.
13719         * ira-emit.c: Ditto.
13720         * ira-int.h: Ditto.
13721         * ira-lives.c: Ditto.
13722
13723 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
13724
13725         PR rtl-optimization/63475
13726         * alias.c (true_dependence_1): Always use get_addr to extract
13727         true address operands from x_addr and mem_addr.  Use extracted
13728         address operands to check for references with alignment ANDs.
13729         Use extracted address operands with find_base_term and
13730         base_alias_check. For noncanonicalized operands call canon_rtx with
13731         extracted address operand.
13732         (write_dependence_1): Ditto.
13733         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
13734
13735 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
13736
13737         PR target/63534
13738         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
13739         __morestack local.
13740
13741 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13742             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13743             Anna Tikhonova  <anna.tikhonova@intel.com>
13744             Ilya Tocar  <ilya.tocar@intel.com>
13745             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13746             Ilya Verbin  <ilya.verbin@intel.com>
13747             Kirill Yukhin  <kirill.yukhin@intel.com>
13748             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13749
13750         * config/i386/i386.c
13751         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
13752         (ix86_expand_int_vcond): Ditto.
13753
13754 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13755             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13756             Anna Tikhonova  <anna.tikhonova@intel.com>
13757             Ilya Tocar  <ilya.tocar@intel.com>
13758             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13759             Ilya Verbin  <ilya.verbin@intel.com>
13760             Kirill Yukhin  <kirill.yukhin@intel.com>
13761             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13762
13763         * config/i386/i386.c
13764         (emit_reduc_half): Handle V64QI and V32HI mode.
13765         * config/i386/sse.md
13766         (define_mode_iterator VI_AVX512BW): New.
13767         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
13768
13769 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13770             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13771             Anna Tikhonova  <anna.tikhonova@intel.com>
13772             Ilya Tocar  <ilya.tocar@intel.com>
13773             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13774             Ilya Verbin  <ilya.verbin@intel.com>
13775             Kirill Yukhin  <kirill.yukhin@intel.com>
13776             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13777
13778         * config/i386/sse.md
13779         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
13780
13781 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13782             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13783             Anna Tikhonova  <anna.tikhonova@intel.com>
13784             Ilya Tocar  <ilya.tocar@intel.com>
13785             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13786             Ilya Verbin  <ilya.verbin@intel.com>
13787             Kirill Yukhin  <kirill.yukhin@intel.com>
13788             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13789
13790         * config/i386/i386.c
13791         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
13792         * config/i386/sse.md
13793         (define_mode_iterator VI): Add V64QI and V32HI modes.
13794
13795 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13796             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13797             Anna Tikhonova  <anna.tikhonova@intel.com>
13798             Ilya Tocar  <ilya.tocar@intel.com>
13799             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13800             Ilya Verbin  <ilya.verbin@intel.com>
13801             Kirill Yukhin  <kirill.yukhin@intel.com>
13802             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13803
13804         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
13805
13806 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13807             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13808             Anna Tikhonova  <anna.tikhonova@intel.com>
13809             Ilya Tocar  <ilya.tocar@intel.com>
13810             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13811             Ilya Verbin  <ilya.verbin@intel.com>
13812             Kirill Yukhin  <kirill.yukhin@intel.com>
13813             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13814
13815         * config/i386/sse.md
13816         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
13817         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
13818
13819 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13820             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13821             Anna Tikhonova  <anna.tikhonova@intel.com>
13822             Ilya Tocar  <ilya.tocar@intel.com>
13823             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13824             Ilya Verbin  <ilya.verbin@intel.com>
13825             Kirill Yukhin  <kirill.yukhin@intel.com>
13826             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13827
13828         * config/i386/sse.md
13829         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
13830         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
13831
13832 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13833             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13834             Anna Tikhonova  <anna.tikhonova@intel.com>
13835             Ilya Tocar  <ilya.tocar@intel.com>
13836             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13837             Ilya Verbin  <ilya.verbin@intel.com>
13838             Kirill Yukhin  <kirill.yukhin@intel.com>
13839             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13840
13841         * config/i386/sse.md
13842         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
13843         (define_mode_iterator VI2_AVX2): Add V32HI mode.
13844         (define_expand "mul<mode>3<mask_name>"): Add masking.
13845         (define_insn "*mul<mode>3<mask_name>"): Ditto.
13846         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
13847         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
13848         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
13849         (define_mode_attr SDOT_PMADD_SUF): Ditto.
13850         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
13851         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
13852         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
13853         (define_insn "avx2_packusdw"): Delete.
13854         (define_insn "sse4_1_packusdw"): Ditto.
13855         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
13856
13857 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13858             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13859             Anna Tikhonova  <anna.tikhonova@intel.com>
13860             Ilya Tocar  <ilya.tocar@intel.com>
13861             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13862             Ilya Verbin  <ilya.verbin@intel.com>
13863             Kirill Yukhin  <kirill.yukhin@intel.com>
13864             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13865
13866         * config/i386/sse.md
13867         (define_insn "vec_dup<mode>"): Update constraints.
13868
13869 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13870             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13871             Anna Tikhonova  <anna.tikhonova@intel.com>
13872             Ilya Tocar  <ilya.tocar@intel.com>
13873             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13874             Ilya Verbin  <ilya.verbin@intel.com>
13875             Kirill Yukhin  <kirill.yukhin@intel.com>
13876             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13877
13878         * config/i386/sse.md
13879         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
13880         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
13881         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
13882
13883 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13884             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13885             Anna Tikhonova  <anna.tikhonova@intel.com>
13886             Ilya Tocar  <ilya.tocar@intel.com>
13887             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13888             Ilya Verbin  <ilya.verbin@intel.com>
13889             Kirill Yukhin  <kirill.yukhin@intel.com>
13890             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13891
13892         * config/i386/sse.md
13893         (define_expand "mul<mode>3<mask_name>"): Add masking.
13894
13895 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13896             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13897             Anna Tikhonova  <anna.tikhonova@intel.com>
13898             Ilya Tocar  <ilya.tocar@intel.com>
13899             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13900             Ilya Verbin  <ilya.verbin@intel.com>
13901             Kirill Yukhin  <kirill.yukhin@intel.com>
13902             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13903
13904         * config/i386/sse.md
13905         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
13906         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
13907
13908 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13909             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13910             Anna Tikhonova  <anna.tikhonova@intel.com>
13911             Ilya Tocar  <ilya.tocar@intel.com>
13912             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13913             Ilya Verbin  <ilya.verbin@intel.com>
13914             Kirill Yukhin  <kirill.yukhin@intel.com>
13915             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13916
13917         * config/i386/sse.md
13918         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
13919         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
13920         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
13921         Ditto.
13922
13923 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13924             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13925             Anna Tikhonova  <anna.tikhonova@intel.com>
13926             Ilya Tocar  <ilya.tocar@intel.com>
13927             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13928             Ilya Verbin  <ilya.verbin@intel.com>
13929             Kirill Yukhin  <kirill.yukhin@intel.com>
13930             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13931
13932         * config/i386/sse.md
13933         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
13934         use VF_128_256 mode iterator and update assembler emit code.
13935         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
13936         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
13937         Add masking, use VF_128_256 mode iterator.
13938         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
13939         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
13940         Add masking, use VF_128_256 mode iterator and update assembler emit
13941         code.
13942         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
13943         (define_mode_attr avx512flogicsuff): Delete.
13944         (define_insn "avx512f_<logic><mode>"): Ditto.
13945         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
13946         MODE_TI.
13947         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
13948
13949 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13950             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13951             Anna Tikhonova  <anna.tikhonova@intel.com>
13952             Ilya Tocar  <ilya.tocar@intel.com>
13953             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13954             Ilya Verbin  <ilya.verbin@intel.com>
13955             Kirill Yukhin  <kirill.yukhin@intel.com>
13956             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13957
13958         * config/i386/sse.md
13959         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
13960         (define_expand "vashr<mode>3<mask_name>"): Add masking,
13961         use VI12_128 mode iterator.
13962         (define_expand "ashrv2di3<mask_name>"): New.
13963
13964 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13965             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13966             Anna Tikhonova  <anna.tikhonova@intel.com>
13967             Ilya Tocar  <ilya.tocar@intel.com>
13968             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13969             Ilya Verbin  <ilya.verbin@intel.com>
13970             Kirill Yukhin  <kirill.yukhin@intel.com>
13971             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13972
13973         * config/i386/i386.c
13974         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
13975         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
13976         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
13977         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
13978         CODE_FOR_avx512vl_ucmpv4si3_mask.
13979         * config/i386/sse.md
13980         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
13981         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
13982         (define_insn
13983         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
13984         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
13985         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
13986         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
13987         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
13988         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
13989
13990 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13991             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13992             Anna Tikhonova  <anna.tikhonova@intel.com>
13993             Ilya Tocar  <ilya.tocar@intel.com>
13994             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13995             Ilya Verbin  <ilya.verbin@intel.com>
13996             Kirill Yukhin  <kirill.yukhin@intel.com>
13997             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13998
13999         * config/i386/sse.md
14000         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
14001         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
14002         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
14003         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
14004         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
14005         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
14006         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
14007         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
14008         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
14009
14010 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14011             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14012             Anna Tikhonova  <anna.tikhonova@intel.com>
14013             Ilya Tocar  <ilya.tocar@intel.com>
14014             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14015             Ilya Verbin  <ilya.verbin@intel.com>
14016             Kirill Yukhin  <kirill.yukhin@intel.com>
14017             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14018
14019         * config/i386/sse.md
14020         (define_insn "avx512f_blendm<mode>"): Delete.
14021         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
14022         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
14023         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
14024         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
14025         (define_insn
14026         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
14027         Remove.
14028         (define_insn
14029         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
14030         New.
14031         (define_insn
14032         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
14033         Ditto.
14034         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
14035         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
14036         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
14037         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
14038         Delete.
14039         (define_insn
14040         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
14041         New.
14042         (define_insn
14043         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
14044         Ditto.
14045         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
14046         Delete.
14047         (define_insn
14048         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
14049         New.
14050         (define_insn
14051         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
14052         Ditto.
14053
14054 2014-10-14  Richard Biener  <rguenther@suse.de>
14055
14056         PR tree-optimization/63512
14057         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
14058         modified.
14059
14060 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
14061
14062         PR target/63260
14063         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
14064         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
14065         of FPSCR.
14066         (negsf2_i): Rename to *negsf2_i.
14067         (abssf2_i): Rename to *abssf2_i.
14068         (negdf2_i): Rename to *negdf2_i.
14069         (absdf2_i): Rename to *absdf2_i.
14070
14071 2014-10-14  Felix Yang  <felix.yang@huawei.com>
14072             Jeff Law  <law@redhat.com>
14073
14074         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
14075         "replace" into boolean bitfields; turn member "loop_depth" into a short
14076         integer; add new member "no_equiv" and "reserved".
14077         (no_equiv): Set no_equiv of struct equivalence if register is marked
14078         as having no known equivalence.
14079         (update_equiv_regs): Check all definitions for a multiple-set
14080         register to make sure that the RHS have the same value.
14081
14082 2014-10-13  Richard Henderson  <rth@redhat.com>
14083
14084         * combine-stack-adj.c (no_unhandled_cfa): New.
14085         (maybe_merge_cfa_adjust): New.
14086         (combine_stack_adjustments_for_block): Use them.
14087
14088 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
14089
14090         * Makefile.in (TAGS): Tag ../include files.
14091
14092 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14093
14094         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
14095         to rs6000_dbx_register_number.
14096         (DWARF_FRAME_REGNUM): Redefine as identity map.
14097         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
14098         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
14099         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
14100         argument to handle .debug_frame and .eh_frame directly.  Always
14101         translate SPE high register numbers.  Add special treatment for CR,
14102         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
14103
14104         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
14105         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
14106         (RS6000_USE_DWARF_NUMBERING): Define.
14107         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
14108         (RS6000_USE_DWARF_NUMBERING): Define.
14109         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
14110         (RS6000_USE_DWARF_NUMBERING): Define.
14111         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
14112         (RS6000_USE_DWARF_NUMBERING): Define.
14113         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
14114         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
14115
14116 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
14117
14118         * config/i386/i386.c (ix86_address_cost): Lower cost for
14119         when address contains GOT register.
14120
14121 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14122             Vladimir Makarov  <vmakarov@redhat.com>
14123
14124         PR target/8340
14125         PR middle-end/47602
14126         PR rtl-optimization/55458
14127         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
14128         (ix86_init_pic_reg): New.
14129         (ix86_select_alt_pic_regnum): Add check on pseudo register.
14130         (ix86_save_reg): Likewise.
14131         (ix86_expand_prologue): Remove PIC register initialization
14132         now performed in ix86_init_pic_reg.
14133         (ix86_output_function_epilogue): Add check on pseudo register.
14134         (set_pic_reg_ever_alive): New.
14135         (legitimize_pic_address): Replace df_set_regs_ever_live with new
14136         set_pic_reg_ever_alive.
14137         (legitimize_tls_address): Likewise.
14138         (ix86_pic_register_p): New check.
14139         (ix86_delegitimize_address): Add check on pseudo register.
14140         (ix86_expand_call): Insert move from pseudo PIC register to ABI
14141         defined REAL_PIC_OFFSET_TABLE_REGNUM.
14142         (TARGET_INIT_PIC_REG): New.
14143         (TARGET_USE_PSEUDO_PIC_REG): New.
14144         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
14145         if pic_offset_table_rtx exists.
14146         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
14147         Document.
14148         * doc/tm.texi: Regenerate.
14149         * function.c (assign_parms): Generate pseudo register for PIC.
14150         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
14151         register.
14152         * ira-color.c (color_pass): Add check on pseudo register.
14153         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
14154         register.
14155         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
14156         register.
14157         (ira): Add target specific PIC register initialization.
14158         (do_reload): Keep PIC pseudo register.
14159         * lra-assigns.c (spill_for): Add checks on pseudo register.
14160         * lra-constraints.c (contains_symbol_ref_p): New.
14161         (lra_constraints): Enable lra risky transformations when PIC is pseudo
14162         register.
14163         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
14164         * target.def (use_pseudo_pic_reg): New.
14165         (init_pic_reg): New.
14166
14167 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
14168
14169         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
14170         Remove m_SILVERMONT and m_INTEL from the tune.
14171
14172 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14173
14174         PR libfortran/63471
14175         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14176         when _HPUX_SOURCE is defined.
14177
14178 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
14179
14180         PR tree-optimization/62127
14181         * tree.c (remap_type_1): When remapping array, remap
14182         also its type.
14183
14184 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
14185
14186         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
14187         longer impact parallelization.
14188
14189 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
14190
14191         PR bootstrap/63496
14192         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
14193
14194 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
14195
14196         * asan.c (instrument_derefs): BIT_FIELD_REF added.
14197
14198 2014-10-13  Richard Biener  <rguenther@suse.de>
14199
14200         PR tree-optimization/63419
14201         * gimple-fold.h (gimple_convert): New function.
14202         * gimple-fold.c (gimple_convert): Likewise.
14203         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
14204         to split out required conversions early.
14205
14206 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
14207
14208         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
14209         Add the parts of an insn in reverse order, with the pattern at
14210         the top of the queue.  Detect when we're iterating over a SEQUENCE
14211         pattern and in that case just consider patterns of subinstructions.
14212
14213 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
14214
14215         PR target/59401
14216         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
14217         of rtx.
14218         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
14219         insn walking.
14220         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
14221         address.  Use def chains to handle GBR clobbering call insns.
14222
14223 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
14224
14225         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
14226         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
14227         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
14228         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
14229         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
14230         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
14231         * doc/gty.texi (for_user): Document new option.
14232         * gengtype.c (create_user_defined_type): Don't try to get a struct for
14233         char.
14234         (walk_type): Don't error out on for_user option.
14235         (write_func_for_structure): Emit user marking routines if requested by
14236         for_user option.
14237         (write_local_func_for_structure): Likewise.
14238         (main): Mark types with for_user option as used.
14239         * ggc.h (gt_pch_nx): Add overload for unsigned int.
14240         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
14241         * hash-table.h (ggc_hasher): New struct.
14242         (hash_table::create_ggc): New function.
14243         (gt_pch_nx): New overload for hash_table.
14244
14245 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
14246
14247         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
14248         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
14249         * config/sh/sh.c: Likewise.
14250         * config/sh/sh-mem.cc: Likewise.
14251         * config/sh/sh.md: Likewise.
14252         * config/sh/predicates.md: Likewise.
14253         * config/sh/sync.md: Likewise.
14254
14255 2014-10-11  Martin Liska  <mliska@suse.cz>
14256
14257         PR middle-end/63376
14258         * cgraphunit.c (symbol_table::process_new_functions): Missing call
14259         for call_cgraph_insertion_hooks added.
14260
14261 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
14262
14263         PR c/63495
14264         * stor-layout.c (min_align_of_type): Don't decrease alignment
14265         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
14266         TYPE_USER_ALIGN is set.
14267
14268 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
14269
14270         PR rtl-optimization/63483
14271         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
14272         references when alignment ANDs are involved.
14273         (write_dependence_p): Ditto.
14274         (may_alias_p): Ditto.
14275
14276 2014-10-10  Marek Polacek  <polacek@redhat.com>
14277
14278         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
14279         * doc/invoke.texi: Document -fsanitize=object-size.
14280         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
14281         or it into SANITIZE_UNDEFINED.
14282         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
14283         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
14284         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
14285         * opts.c (common_handle_option): Handle -fsanitize=object-size.
14286         * ubsan.c: Include tree-object-size.h.
14287         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
14288         (ubsan_expand_bounds_ifn): Use false instead of 0.
14289         (ubsan_expand_objsize_ifn): New function.
14290         (instrument_object_size): New function.
14291         (pass_ubsan::execute): Add object size instrumentation.
14292         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
14293
14294 2014-10-10  Richard Henderson  <rth@redhat.com>
14295
14296         PR target/63404
14297         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
14298         Restrict the set of expressions we're willing to move.
14299
14300 2014-10-10  Jeff Law  <law@redhat.com>
14301
14302         * ira.c (struct equivalence): Promote INIT_INSNs field to
14303         an rtx_insn_list.  Add comments.
14304         (no_equiv): Promote LIST to an rtx_insn_list.  Update
14305         testing for and creating the special marker.  Use methods
14306         to extract the insn and next pointers.  Promote INSN to an
14307         rtx_insn.
14308         (update_equiv_regs): Update test for special marker in the
14309         INIT_INSNs list.
14310
14311 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14312
14313         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
14314         * configure: Regenerate.
14315         * config/aarch64/aarch64.c (aarch64_override_options): Handle
14316         TARGET_FIX_ERR_A53_835769_DEFAULT.
14317         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
14318         value to 2.
14319         * doc/install.texi (aarch64*-*-*): Document
14320         new --enable-fix-cortex-a53-835769 option.
14321
14322 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14323             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14324
14325         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
14326         (ADJUST_INSN_LENGTH): Define.
14327         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
14328         * config/aarch64/aarch64.c (is_mem_p): New function.
14329         (is_memory_op): Likewise.
14330         (aarch64_prev_real_insn): Likewise.
14331         (is_madd_op): Likewise.
14332         (dep_between_memop_and_curr): Likewise.
14333         (aarch64_madd_needs_nop): Likewise.
14334         (aarch64_final_prescan_insn): Likewise.
14335         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
14336         and -mno-fix-cortex-a53-835769 options.
14337
14338 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
14339
14340         PR tree-optimization/63464
14341         * tree-switch-conversion.c (struct case_bit_test): Remove
14342         hi and lo fields, add wide_int mask field.
14343         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
14344         hi/lo fields into wide_int mask operations, optimize by pretending
14345         minval to be 0 if maxval is small enough.
14346         (process_switch): Adjust caller.
14347
14348 2014-10-10  Richard Biener  <rguenther@suse.de>
14349
14350         PR tree-optimization/63379
14351         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
14352         a neutral operand for min/max when it is not a reduction chain.
14353
14354 2014-10-10  Richard Biener  <rguenther@suse.de>
14355
14356         PR tree-optimization/63476
14357         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
14358         (BB_LIVE_VOP_ON_EXIT): New define.
14359         (create_expression_by_pieces): Assign VUSEs to stmts.
14360         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
14361         (pass_pre::execute): Assert virtual SSA form is up-to-date
14362         after insertion.
14363
14364 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
14365
14366         * lra-assigns.c (assign_by_spills): Error out on spill failure.
14367
14368 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
14369
14370         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
14371         assertion.
14372
14373 2014-10-09  Richard Biener  <rguenther@suse.de>
14374
14375         PR tree-optimization/63380
14376         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
14377         may trap.
14378
14379 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
14380
14381         * config/avr/avr.opt (mmcu=): Change to have a string value.
14382         (mn-flash=, mskip-bug, march=, mrmw): New options.
14383         (HeaderInclude): New.
14384         (mmcu=): Remove Var / Init clauses.
14385         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
14386         -specs option.
14387         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
14388         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
14389         (SYMBOL_FLAG_IO_LOW): Define.
14390         (avr_device_to_as, avr_device_to_ld): Don't declare.
14391         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
14392         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
14393         (EXTRA_SPEC_FUNCTIONS): Don't define.
14394         (ASM_SPEC): Translate -arch= option to -mmcu= option.
14395         (LINK_SPEC): Translate -arch= option to -m= option.
14396         Don't use device_to_ld / device_to_data_start.
14397         (STARTFILE_SPEC): Now empty.
14398         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
14399         * config/avr/gen-avr-mmcu-specs.c: New file.
14400         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
14401         (s-device-specs): Likewise.
14402         (GCC_PASSES): Add s-device-specs.
14403         (install-driver): Depend on install-device-specs.
14404         (install-device-specs): New rule.
14405         * config/avr/avr.c (avr_option_override): Look up mcu arch by
14406         avr_arch_index and provide fallback initialization for avr_n_flash.
14407         (varasm.h): #include.
14408         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
14409         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
14410         (avr_attribute_table): Add "io", "address" and "io_low".
14411         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
14412         Add special handling for symbols with "io" and/or "address" attributes.
14413         (avr_asm_asm_output_aligned_bss): New function.
14414         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
14415         as appropriate.  Handle io_low attribute.
14416         (avr_out_sbxx_branch): Handle symbolic io addresses.
14417         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
14418         avr_n_flash instead of avr_current_device->n_flash.
14419         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
14420         (avr_emit_movmemhi): Likewise.
14421         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
14422         Use TARGET_RMW instead of avr_current_device->dev_attributes.
14423         Don't define avr_current_device->macro (that's the specfile's job).
14424         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
14425         * config/avr/avr.c (avr_2word_insn_p): Likewise.
14426         * config/avr/avr.md (*cpse.ne): Likewise.
14427         (mov<mode>): Use avr_eval_addr_attrib.
14428         (cbi): Change constraint for low_io_address_operand operand to "i".
14429         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
14430         * config/avr/predicates.md (io_address_operand):
14431         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
14432         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
14433         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
14434         Update prototype.
14435         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
14436         * config/avr/genmultilib.awk: Use -march=.
14437         Remove Multilib matches processing.
14438         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
14439         * config/avr/avr-arch.h: Add double include guard.
14440         (avr_mcu_t) <library_name>: Update comment.
14441         * config/avr/driver-avr.c (avr_device_to_as): Delete.
14442         (avr_device_to_ld, avr_device_to_data_start): Likewise.
14443         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
14444         (avr_device_to_sp8): Likewise.
14445         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
14446
14447         * doc/extend.texi (io, address): Document new AVR variable attributes.
14448         (io_low): Likewise.
14449
14450 2014-10-09  Marek Polacek  <polacek@redhat.com>
14451
14452         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
14453
14454 2014-10-08  Richard Biener  <rguenther@suse.de>
14455
14456         PR tree-optimization/61969
14457         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
14458         variables.
14459
14460 2014-10-09  Richard Biener  <rguenther@suse.de>
14461
14462         PR tree-optimization/63445
14463         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
14464         overflow for non-equality compares.
14465
14466 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
14467
14468         PR rtl-optimization/57003
14469         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
14470         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
14471         killing regs_invalidated_by_call.
14472
14473 2014-10-08  Teresa Johnson  <tejohnson@google.com>
14474
14475         PR bootstrap/63432.
14476         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
14477         (ssa_fix_duplicate_block_edges): Invoke it.
14478         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
14479
14480 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
14481
14482         PR target/52941
14483         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
14484         atomic_fetch_<fetchop_name>si_hard,
14485         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
14486         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
14487         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
14488         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
14489
14490 2014-10-08  Rong Xu  <xur@google.com>
14491
14492         * gcov-tool.c (profile_overlap): New driver function
14493         to compute profile overlap.
14494         (print_overlap_usage_message): New.
14495         (overlap_usage): New.
14496         (do_overlap): New.
14497         (print_usage): Add calls to overlap function.
14498         (main): Ditto.
14499         * doc/gcov-tool.texi: Add documentation.
14500
14501 2014-10-08  Steve Ellcey  <sellcey@mips.com>
14502
14503         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
14504         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
14505
14506 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
14507
14508         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
14509         pattern matching of MEM_REF.
14510         (check_stmt_for_type_change): Update.
14511
14512 2014-10-08  Steve Ellcey  <sellcey@mips.com>
14513
14514         * config/mips/linux64.h: Remove.
14515         * config/mips/gnu-user64.h: Remove.
14516         * gcc.config (mips*-*-*): Remove references to linux64.h and
14517         gnu-user64.h
14518         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
14519         with modified version from gnu-user64.h.
14520         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
14521         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
14522         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
14523         linux64.h.
14524         (GNU_USER_LINK_EMULATION64): Ditto.
14525         (GNU_USER_LINK_EMULATIONN32): Ditto.
14526         (GLIBC_DYNAMIC_LINKER32): Ditto.
14527         (GLIBC_DYNAMIC_LINKER64): Ditto.
14528         (GLIBC_DYNAMIC_LINKERN32): Ditto.
14529         (UCLIBC_DYNAMIC_LINKER32): Ditto.
14530         (UCLIBC_DYNAMIC_LINKER64): Ditto.
14531         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
14532         (BIONIC_DYNAMIC_LINKERN32): Ditto.
14533         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
14534         (GLIBC_DYNAMIC_LINKER): Delete.
14535         (UCLIBC_DYNAMIC_LINKER): Delete.
14536
14537 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
14538             Richard Biener  <rguenther@suse.de>
14539
14540         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
14541         Get address space from operand 0 (BASE).
14542
14543 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
14544
14545         PR target/61387
14546         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
14547
14548 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
14549
14550         * dwarf2out.c: Remove current_function_has_inlines.
14551         (gen_subprogram_die): Same.
14552         (gen_inlined_subroutine_die): Same.
14553
14554 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
14555
14556         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
14557         type.
14558         (_addcarry_u64): Ditto.
14559         (_addcarryx_u64): Ditto.
14560
14561 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
14562
14563         * cgraph.h (cgraph_node::get_fun): Declare.
14564         * cgraph.c (cgraph_node::get_fun): New method.
14565         * ipa-inline.c (can_inline_edge_p): Use it.
14566
14567 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
14568
14569         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
14570         and -ftrapping-math.
14571         * lto-wrapper.c (merge_and_complain): Likewise.
14572         (run_gcc): Likewise.
14573
14574 2014-10-06  Rong Xu  <xur@google.com>
14575
14576         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
14577         * tree-profile.c: (params.h): New include.
14578         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
14579         and __gcov_indirect_call_topn_counters for
14580         indirect_call_topn_profile.
14581         (gimple_init_edge_profiler): New decls for
14582         __gcov_indirect_call_topn_profiler.
14583         (gimple_gen_ic_profiler): Generate the correct profiler call.
14584         (gimple_gen_ic_func_profiler): Fix format.
14585         * value-prof.c (params.h): New include.
14586         (dump_histogram_value): Hanlde indirect_call_topn counters.
14587         (stream_in_histogram_value): Ditto.
14588         (gimple_indirect_call_to_profile): Use indirect_call_topn
14589         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
14590         (gimple_find_values_to_profile): Hanlde indirect_call_topn
14591         counters.
14592         * value-prof.h (enum hist_type): Histrogram type for
14593         indirect_call_topn counters.
14594         * profile.c (instrument_values): Instrument
14595         indirect_call_topn counters.
14596
14597 2014-10-06  Rong Xu  <xur@google.com>
14598
14599         * Makefile.in: Fix dependence.
14600         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
14601         indirect call topn profiler.
14602         * gcov-io.h: Ditto.
14603
14604 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
14605
14606         * calls.c (expand_call): Do not use the target as the return slot if
14607         it is not sufficiently aligned.
14608
14609 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14610
14611         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
14612         discussion of permutes and why we don't handle them.
14613
14614 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
14615
14616         * config/sparc/predicates.md (int_register_operand): Delete.
14617
14618 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
14619
14620         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
14621
14622 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
14623
14624         * ubsan.h (ubsan_get_source_location): New prototype.
14625         * ubsan.c (ubsan_source_location_type): New variable.
14626         Function renamed to ...
14627         (ubsan_get_source_location_type): ... this.  Cache
14628         return value in ubsan_source_location_type variable.
14629         (ubsan_source_location, ubsan_create_data): Use
14630         ubsan_get_source_location_type instead of
14631         ubsan_source_location_type.
14632         * asan.c (asan_protect_global): Don't protect globals
14633         with ubsan_get_source_location_type () type.
14634         (asan_add_global): Provide global decl location info
14635         if possible.
14636
14637 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
14638
14639         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
14640         sanity check.
14641
14642 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
14643
14644         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
14645         on size.
14646         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
14647         into vptr pointer.
14648         (ipa_polymorphic_call_context::dump): Fix formating.
14649         (walk_ssa_copies): Add logic avoiding loops; update uses.
14650         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
14651
14652 2014-10-02  Mark Wielaard  <mjw@redhat.com>
14653
14654         PR debug/63239
14655         * dwarf2out.c (gen_subprogram_die): When a member function is
14656         explicitly deleted then add a DW_AT_GNU_deleted attribute.
14657         * langhooks.h (struct lang_hooks_for_decls): Add
14658         function_decl_deleted_p langhook.
14659         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
14660         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
14661
14662 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
14663
14664         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
14665         NULL pointer checks.
14666         (ipa_polymorphic_call_context::get_dynamic_type): Return true
14667         if type doesn't change.
14668         * cgraph.h (cgraph_indirect_call_info): New flag.
14669         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
14670         (cgraph_node::dump): Dump it.
14671         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
14672         of context.get_dynamic_type.
14673         (ipa_make_edge_direct_to_target): Do not speculate
14674         edge that is already speuclative.
14675         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
14676         speculate to __builtin_unreachable
14677         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
14678         vptr_changed.
14679         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
14680
14681 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
14682
14683         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
14684         get_dynamic_type; drop TODO.
14685         * ipa-polymorphic-call.c
14686         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
14687         for otr_type to be unknown.
14688
14689 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
14690
14691         * common/config/score/score-common.c: Remove.
14692         * config.gcc: Remove support for score-*.
14693         * config/score/constraints.md: Remove.
14694         * config/score/elf.h: Remove.
14695         * config/score/predicates.md: Remove.
14696         * config/score/score-conv.h: Remove.
14697         * config/score/score-generic.md: Remove.
14698         * config/score/score-modes.def: Remove.
14699         * config/score/score-protos.h: Remove.
14700         * config/score/score.c: Remove.
14701         * config/score/score.h: Remove.
14702         * config/score/score.md: Remove.
14703         * config/score/score.opt: Remove.
14704         * doc/md.texi: Don't document score-*.
14705
14706 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
14707
14708         PR pch/63429
14709         * genconditions.c: Directly include ggc.h before rtl.h.
14710
14711 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
14712
14713         * ipa-polymorphic-call.c
14714         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
14715         code determining speculative type.
14716         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
14717
14718 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14719
14720         * altivec.md (altivec_lvsl): New define_expand.
14721         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
14722         (altivec_lvsr): New define_expand.
14723         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
14724         * rs6000.c (rs6000_expand_builtin): Change to use
14725         altivec_lvs[lr]_direct; remove commented-out code.
14726
14727 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14728
14729         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14730         Issue a warning message when vec_lvsl or vec_lvsr is used with a
14731         little endian target.
14732
14733 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14734
14735         * tree-pretty-print.c (dump_location): Make it extern. Dump also
14736         the column.
14737         * tree-pretty-print.h (dump_location): Declare.
14738         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
14739         (pp_gimple_stmt_1): Likewise.
14740         (dump_implicit_edges): Likewise.
14741         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
14742         LOCATION_LINE.
14743
14744
14745 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
14746
14747         * gcc.c (driver::global_initializations): Remove "const" so
14748         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
14749         and decoded_options_count.
14750
14751 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
14752
14753         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
14754         macro.
14755         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
14756         TARGET_E500_DOUBLE case here.
14757
14758 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
14759
14760         PR c++/54427
14761         PR c++/57198
14762         PR c++/58845
14763         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
14764
14765 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
14766
14767         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
14768         * lto-cgraph.c (lto_output_edge, input_edge): Stream
14769         in_polymorphic_cdtor
14770         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
14771         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
14772         * cgraphclones.c (cgraph_edge::clone): Likewise.
14773         * ipa-prop.c (update_jump_functions_after_inlining,
14774         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
14775         to possible_dynamic_type_change.
14776         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
14777         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
14778         IN_POLY_CDOTR argument.
14779
14780         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
14781         for BASE and OUTER_TYPE being NULL.
14782         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
14783         in_poly_cdtor parameter.
14784
14785 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
14786
14787         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
14788         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
14789         TARGET_AVX512F.
14790         (expand_vec_perm_1): Likewise.
14791
14792 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
14793             Uros Bizjak  <ubizjak@gmail.com>
14794
14795         PR tree-optimization/61403
14796         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
14797         error in comment.  Also optimize 256-bit vectors for AVX2
14798         or AVX (floating vectors only), provided the first permutation
14799         can be performed in one insn.
14800
14801 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
14802
14803         * gcc.c (class driver): New class.
14804         (main): Reimplement in terms of driver::main, moving most of the
14805         locals to be locals within individual methods of class driver.
14806         The remaining locals "explicit_link_files", "decoded_options" and
14807         "decoded_options_count" are used by multiple driver:: methods, and
14808         so become member data.  Doing so isolates the argc/argv reads and
14809         writes.  Replace "goto out" with a special exit code from
14810         new method driver::prepare_infiles.  Split out the old
14811         implementation of main into the following...
14812         (driver::main): New function, corresponding to the old "main"
14813         implementation.
14814         (driver::set_progname): New function, taken from the old
14815         "main" implementation.
14816         (driver::expand_at_files): Likewise.
14817         (driver::decode_argv): Likewise.
14818         (driver::global_initializations): Likewise.
14819         (driver::build_multilib_strings): Likewise.
14820         (driver::set_up_specs): Likewise.
14821         (driver::putenv_COLLECT_GCC): Likewise.
14822         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
14823         (driver::handle_unrecognized_options): Likewise.
14824         (driver::maybe_print_and_exit): Likewise.
14825         (driver::prepare_infiles): Likewise.
14826         (driver::do_spec_on_infiles): Likewise.
14827         (driver::maybe_run_linker): Likewise.
14828         (driver::final_actions): Likewise.
14829         (driver::get_exit_code): Likewise.
14830
14831 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
14832
14833         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
14834         don't emit empty ctors.
14835
14836 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
14837
14838         * convert.c (convert_to_integer): Do not introduce useless conversions
14839         between integral types.
14840
14841 2014-10-03  David Sherwood  <david.sherwood@arm.com>
14842
14843         * ira-int.h (ira_allocno): Mark hard_regno as signed.
14844
14845 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
14846
14847         * lra-constraints.c (inherit_in_ebb): Handle calls with
14848         multiple return values.
14849         * caller-save.c (save_call_clobbered_regs): Likewise.
14850
14851 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
14852
14853         * tree-vect-data-refs.c (vect_permute_load_chain,
14854         vect_shift_permute_load_chain): Fix a typo in temporary var names,
14855         suffle3 to shuffle3.
14856
14857         PR libgomp/61200
14858         * omp-low.c (taskreg_contexts): New variable.
14859         (scan_omp_parallel): Push newly created context into taskreg_contexts
14860         vector and move record layout code to finish_taskreg_scan.
14861         (scan_omp_task): Likewise.
14862         (finish_taskreg_scan): New function.
14863         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
14864         vector elements and release it.
14865
14866         PR target/62128
14867         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
14868         of palignr arguments can't be used due to min 0 or max - min
14869         too high, try also op0, op1 order of palignr arguments.
14870
14871 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
14872
14873         * cgraph.h (ipa_polymorphic_call_context):
14874         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
14875         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
14876         * ipa-polymorphic-call.c
14877         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
14878         past end of dynamic types.
14879         (ipa_polymorphic_call_context::stream_out,
14880         speculative_outer_type): Stream dynamic flag.
14881         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
14882         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
14883         Clear DYNAMIC.
14884         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
14885         set it.
14886         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
14887         * ipa-prop.c (update_jump_functions_after_inlining,
14888         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
14889
14890 2014-10-02  Teresa Johnson  <tejohnson@google.com>
14891
14892         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
14893         up when synthesizing counts to avoid rounding errors.
14894
14895 2014-10-02  Teresa Johnson  <tejohnson@google.com>
14896
14897         PR middle-end/63422
14898         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
14899         asserts to handle incoming insanities.
14900
14901 2014-10-02  Martin Jambor  <mjambor@suse.cz>
14902
14903         PR tree-optimization/63375
14904         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
14905         references.
14906
14907 2014-10-02  Olivier Hainque  <hainque@adacore.com>
14908
14909         * Makefile.in (CROSS): Define, to @CROSS.
14910
14911 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
14912
14913         PR target/62128
14914         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
14915         if it expands to a single insn only.
14916         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
14917         fail unless in_order is true.  Add forward declaration.
14918         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
14919         is useful for one_operand_p.
14920         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
14921
14922 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14923
14924         * cgraphclones.c (build_function_type_skip_args): Do not make new
14925         type variant of old.
14926
14927 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14928
14929         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
14930         when speculation is added.
14931         (ipa_edge_args): Add polymorphic_call_contexts.
14932         (ipa_get_ith_polymorhic_call_context): New accesor.
14933         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
14934         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
14935         (ipa_compute_jump_functions_for_edge): Compute contexts.
14936         (update_jump_functions_after_inlining): Update contexts.
14937         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
14938         update dumping; add speculative edge creation.
14939         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
14940         context updating.
14941         (update_indirect_edges_after_inlining): Pass down context.
14942         (ipa_edge_duplication_hook): Duplicate contexts.
14943         (ipa_write_node_info): Stream out contexts.
14944         (ipa_read_node_info): Stream in contexts.
14945         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
14946         types.
14947         (try_speculative_devirtualization): New function.
14948         * ipa-utils.h (try_speculative_devirtualization): Declare.
14949
14950 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14951
14952         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
14953         dumping during WPA.
14954
14955 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14956
14957         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
14958         type variants.
14959
14960 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14961
14962         * ipa-polymorphic-call.c
14963         (ipa_polymorphic_call_context::restrict_to_inner_class):
14964         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
14965         use speculation_consistent_p to do so; Add CONSDER_BASES
14966         and CONSIDER_PLACEMENT_NEW parameters.
14967         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
14968         short circuit obvious cases.
14969         (ipa_polymorphic_call_context::dump): Improve formatting.
14970         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
14971         combine_speculation_with to record speculations; Do not ICE when
14972         object is located in pointer type decl; do not ICE for methods
14973         of UNION_TYPE; do not record nonpolymorphic types.
14974         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
14975         (ipa_polymorphic_call_context::combine_speculation_with): New method.
14976         (ipa_polymorphic_call_context::combine_with): New method.
14977         (ipa_polymorphic_call_context::make_speculative): Move here; use
14978         combine speculation.
14979         * cgraph.h (ipa_polymorphic_call_context): Update
14980         restrict_to_inner_class prototype; add offset_by, make_speculative,
14981         combine_with, useless_p, combine_speculation_with and
14982         speculation_consistent_p methods.
14983         (ipa_polymorphic_call_context::offset_by): New method.
14984         (ipa_polymorphic_call_context::useless_p): New method.
14985
14986 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
14987
14988         PR rtl-optimization/62151
14989         * combine.c (can_combine_p): Allow the destination register of INSN
14990         to be clobbered in I3.
14991         (subst): Do not substitute into clobbers of registers.
14992
14993 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
14994
14995         PR debug/63342
14996         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
14997         offset, TARGET_MEM_REF and SSA_NAME.
14998
14999         * config/i386/i386.c (expand_vec_perm_palignr): Handle
15000         256-bit vectors for TARGET_AVX2.
15001
15002         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
15003         dfirst permutation.
15004
15005         PR target/63428
15006         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
15007         argument to avx2_permv2ti.
15008
15009 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15010
15011         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
15012
15013 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
15014
15015         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
15016         (fmod<mode>3): Ditto.
15017         (fpremxf4_i387): Ditto.
15018         (reminderxf3): Ditto.
15019         (reminder<mode>3): Ditto.
15020         (fprem1xf4_i387): Ditto.
15021
15022 2014-09-30  Teresa Johnson  <tejohnson@google.com>
15023
15024         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
15025         duplicate_blocks bitmap.
15026         (remove_ctrl_stmt_and_useless_edges): Ditto.
15027         (create_block_for_threading): Ditto.
15028         (compute_path_counts): New function.
15029         (update_profile): Ditto.
15030         (recompute_probabilities): Ditto.
15031         (update_joiner_offpath_counts): Ditto.
15032         (freqs_to_counts_path): Ditto.
15033         (clear_counts_path): Ditto.
15034         (ssa_fix_duplicate_block_edges): Update profile info.
15035         (ssa_create_duplicates): Pass new parameter.
15036         (ssa_redirect_edges): Remove old profile update.
15037         (thread_block_1): New duplicate_blocks bitmap,
15038         remove old profile update.
15039         (thread_single_edge): Pass new parameter.
15040
15041 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
15042
15043         PR middle-end/62120
15044         * varasm.c (decode_reg_name_and_count): Check availability for
15045         registers from ADDITIONAL_REGISTER_NAMES.
15046
15047 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
15048
15049         PR plugins/63410
15050         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
15051         (PLUGIN_HEADERS): Add pass-instances.def.
15052
15053 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
15054
15055         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
15056         iterator.
15057         * config/aarch64/aarch64-simd.md
15058         (aarch64_sqdmull_laneq<mode>): Expand iterator.
15059         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
15060         (vqdmulls_lane_s32): Fix return type.
15061         (vqdmulls_laneq_s32): New.
15062
15063 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
15064
15065         PR inline-asm/63282
15066         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
15067         or invert_jump_1 if jump isn't any_condjump_p.
15068
15069 2014-09-30  Terry Guo  <terry.guo@arm.com>
15070
15071         * config/arm/arm-cores.def (cortex-m7): New core name.
15072         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
15073         (fpv5-d16): Ditto.
15074         * config/arm/arm-tables.opt: Regenerated.
15075         * config/arm/arm-tune.md: Regenerated.
15076         * config/arm/arm.h (TARGET_VFP5): New macro.
15077         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
15078         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
15079         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
15080         * doc/invoke.texi: Document new cpu and fpu names.
15081
15082 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
15083
15084         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
15085         before sinking insn.
15086
15087 2014-09-30  David Sherwood  <david.sherwood@arm.com>
15088
15089         * ira-int.h (ira_allocno): Add "wmode" field.
15090         * ira-build.c (create_insn_allocnos): Add new "parent" function
15091         parameter.
15092         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
15093         that cannot be accessed in wmode.
15094
15095 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
15096
15097         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
15098         integer overflow.
15099
15100 2014-09-29  Andi Kleen  <ak@linux.intel.com>
15101
15102         * opts.c (print_filtered_help): Print --param min/max/default
15103         with -Q.
15104
15105 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15106
15107         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
15108
15109 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
15110
15111         * tree-vrp.c (get_single_symbol): New function.
15112         (build_symbolic_expr): Likewise.
15113         (symbolic_range_based_on_p): New predicate.
15114         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
15115         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
15116         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
15117         operand is symbolic and based on the other operand.
15118
15119 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
15120
15121         * config/microblaze/microblaze.md (call_internal1): Use VOID
15122         instead of SI to fix "((void (*)(void)) 0)()" issue
15123
15124 2014-09-29  Nick Clifton  <nickc@redhat.com>
15125
15126         * config/msp430/msp430.c (msp430_expand_prologue): Return a
15127         CLOBBER rtx for naked functions.
15128         (msp430_expand_epilogue): Likewise.
15129         (msp430_use_f5_series_hwmult): Cache result.
15130         (use_32bit_hwmult): Cache result.
15131         (msp430_no_hwmult): New function.
15132         (msp430_output_labelref): Use it.
15133
15134 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
15135
15136         PR middle-end/63247
15137         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
15138         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
15139         use the alignment of avar rather than ovar.
15140
15141 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
15142
15143         * config/pa/pa.c (pa_output_function_epilogue): Only update
15144         last_address when a nonnote insn is found.
15145
15146 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
15147
15148         PR ipa/60665
15149         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
15150
15151 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
15152
15153         PR ipa/62121
15154         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
15155         fix pasto in checking array size.
15156
15157 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
15158
15159         PR middle-end/35545
15160         * passes.def (pass_tracer): Move before last dominator pass.
15161
15162 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
15163
15164         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
15165         users.
15166         (run_attempt): Handle errors of "pex_run" invocation.
15167
15168 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
15169
15170         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
15171         (CC1_SPEC): Define.
15172         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
15173         (TARGET_ASAN_SHADOW_OFFSET): Define.
15174
15175 2014-09-26  Martin Liska  <mliska@suse.cz>
15176
15177         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
15178         introduced.
15179         * cgraph.h: Likewise.
15180         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
15181         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
15182         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
15183         * tree-ssa-alias.h: Likewise.
15184
15185 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
15186             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15187
15188         * common.opt: New option.
15189         * doc/invoke.texi: Describe new option.
15190         * gcc.c (execute): Don't free first string early, but at the end
15191         of the function.  Call retry_ice if compiler exited with
15192         ICE_EXIT_CODE.
15193         (main): Factor out common code.
15194         (print_configuration): New function.
15195         (files_equal_p): Likewise.
15196         (check_repro): Likewise.
15197         (run_attempt): Likewise.
15198         (do_report_bug): Likewise.
15199         (append_text): Likewise.
15200         (try_generate_repro): Likewise
15201
15202 2014-09-25  Andi Kleen  <ak@linux.intel.com>
15203
15204         * config/i386/i386.c (x86_print_call_or_nop): New function.
15205         (x86_function_profiler): Support -mnop-mcount and
15206         -mrecord-mcount.
15207         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
15208         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
15209
15210 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
15211
15212         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
15213         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
15214         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
15215         Remove.
15216
15217 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
15218
15219         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
15220         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
15221         types_odr_comparable): Declare.
15222         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
15223         * ipa-polymorphic-call.c: New file.
15224         (contains_polymorphic_type_p, possible_placement_new,
15225         ipa_polymorphic_call_context::restrict_to_inner_class,
15226         contains_type_p, decl_maybe_in_construction_p,
15227         ipa_polymorphic_call_context::stream_out,
15228         ipa_polymorphic_call_context::debug,
15229         ipa_polymorphic_call_context::stream_in,
15230         ipa_polymorphic_call_context::set_by_decl,
15231         ipa_polymorphic_call_context::set_by_invariant,
15232         walk_ssa_copies,
15233         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15234         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
15235         extr_type_from_vtbl_ptr_store, record_known_type
15236         check_stmt_for_type_change,
15237         ipa_polymorphic_call_context::get_dynamic_type): Move here from
15238         ipa-devirt.c
15239         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
15240         and streamer-hooks.h
15241         (contains_polymorphic_type_p, possible_placement_new,
15242         ipa_polymorphic_call_context::restrict_to_inner_class,
15243         contains_type_p, decl_maybe_in_construction_p,
15244         ipa_polymorphic_call_context::stream_out,
15245         ipa_polymorphic_call_context::debug,
15246         ipa_polymorphic_call_context::stream_in,
15247         ipa_polymorphic_call_context::set_by_decl,
15248         ipa_polymorphic_call_context::set_by_invariant,
15249         walk_ssa_copies,
15250         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15251         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
15252         extr_type_from_vtbl_ptr_store, record_known_type
15253         check_stmt_for_type_change,
15254         ipa_polymorphic_call_context::get_dynamic_type): Move to
15255         ipa-polymorphic-call.c
15256         (type_all_derivations_known_p, types_odr_comparable,
15257         types_must_be_same_for_odr): Export.
15258         (type_known_to_have_no_deriavations_p): New function.
15259         * Makefile.in: Add ipa-polymorphic-call.c
15260
15261 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
15262
15263         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
15264         for better storage.
15265         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
15266         (possible_polymorphic_call_targets): Instead of computing both
15267         speculative and non-speculative answers, do just one at a time.
15268         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
15269         (dump_targets): Break out from ...
15270         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
15271         and non-speculative lists.
15272         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
15273         * ipa-utils.h (possible_polymorphic_call_targets): Update.
15274
15275 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
15276
15277         PR rtl-optimization/63348
15278         * emit-rtl.c (try_split): Do not emit extra barrier.
15279
15280 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
15281
15282         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
15283         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
15284         new predicates.
15285         (aarch64_<sur>shll2_n<mode>): Likewise.
15286         (aarch64_<sur>shr_n<mode>): Likewise.
15287         (aarch64_<sur>sra_n<mode>: Likewise.
15288         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
15289         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
15290         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
15291         * config/aarch64/iterators.md (ve_mode): New.
15292         (offsetlr): Remap to infix text for use in new predicates.
15293         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
15294         (aarch64_simd_shift_imm_hi): Likewise.
15295         (aarch64_simd_shift_imm_si): Likewise.
15296         (aarch64_simd_shift_imm_di): Likewise.
15297         (aarch64_simd_shift_imm_offset_qi): Likewise.
15298         (aarch64_simd_shift_imm_offset_hi): Likewise.
15299         (aarch64_simd_shift_imm_offset_si): Likewise.
15300         (aarch64_simd_shift_imm_offset_di): Likewise.
15301         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
15302         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
15303         (aarch64_simd_shift_imm_bitsize_si): Likewise.
15304         (aarch64_simd_shift_imm_bitsize_di): Likewise.
15305
15306 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
15307
15308         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
15309         new created BB as the intersection of live-in from "old_dest" and
15310         live-out from "bb".
15311
15312 2014-09-25  Felix Yang  <felix.yang@huawei.com>
15313
15314         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
15315         * genautomata.c (merge_states): Ditto.
15316
15317 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
15318
15319         PR target/62218
15320         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
15321         in instruction sequence.
15322
15323 2014-09-25  Nick Clifton  <nickc@redhat.com>
15324
15325         PR target/62218
15326         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
15327         in instruction sequence.
15328
15329 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15330
15331         PR target/63335
15332         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
15333         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
15334
15335 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15336             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15337             Anna Tikhonova  <anna.tikhonova@intel.com>
15338             Ilya Tocar  <ilya.tocar@intel.com>
15339             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15340             Ilya Verbin  <ilya.verbin@intel.com>
15341             Kirill Yukhin  <kirill.yukhin@intel.com>
15342             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15343
15344         * config/i386/sse.md
15345         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
15346         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
15347         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
15348         (define_expand "<avx512>_perm<mode>_mask"): ... this.
15349         Use VI8F_256_512 mode iterator.
15350         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
15351         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
15352
15353 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15354             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15355             Anna Tikhonova  <anna.tikhonova@intel.com>
15356             Ilya Tocar  <ilya.tocar@intel.com>
15357             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15358             Ilya Verbin  <ilya.verbin@intel.com>
15359             Kirill Yukhin  <kirill.yukhin@intel.com>
15360             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15361
15362         * config/i386/sse.md
15363         (define_insn "avx_movshdup256<mask_name>"): Add masking.
15364         (define_insn "sse3_movshdup<mask_name>"): Ditto.
15365         (define_insn "avx_movsldup256<mask_name>"): Ditto.
15366         (define_insn "sse3_movsldup<mask_name>"): Ditto.
15367         (define_insn "vec_dupv2df<mask_name>"): Ditto.
15368         (define_insn "*vec_concatv2df"): Add EVEX version.
15369
15370 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15371             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15372             Anna Tikhonova  <anna.tikhonova@intel.com>
15373             Ilya Tocar  <ilya.tocar@intel.com>
15374             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15375             Ilya Verbin  <ilya.verbin@intel.com>
15376             Kirill Yukhin  <kirill.yukhin@intel.com>
15377             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15378
15379         * config/i386/sse.md
15380         (define_insn "vec_set<mode>_0"): Add EVEX version.
15381
15382 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15383             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15384             Anna Tikhonova  <anna.tikhonova@intel.com>
15385             Ilya Tocar  <ilya.tocar@intel.com>
15386             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15387             Ilya Verbin  <ilya.verbin@intel.com>
15388             Kirill Yukhin  <kirill.yukhin@intel.com>
15389             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15390
15391         * config/i386/sse.md
15392         (define_insn
15393         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
15394         New.
15395         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
15396         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
15397         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
15398         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
15399         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
15400         (define_expand "sse2_cvtpd2ps_mask): New.
15401         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
15402         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
15403
15404 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15405             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15406             Anna Tikhonova  <anna.tikhonova@intel.com>
15407             Ilya Tocar  <ilya.tocar@intel.com>
15408             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15409             Ilya Verbin  <ilya.verbin@intel.com>
15410             Kirill Yukhin  <kirill.yukhin@intel.com>
15411             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15412
15413         * config/i386/i386.c
15414         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
15415         (ufix_notruncv8dfv8si2_mask_round): ... this.
15416         * config/i386/sse.md
15417         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
15418         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
15419         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
15420         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
15421         (define_expand "sse2_cvtpd2dq"): Delete.
15422         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
15423         make 2nd operand const0 vector.
15424         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
15425         Delete.
15426         (define_mode_attr pd2udqsuff): New.
15427         (define_insn
15428         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
15429         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
15430         (define_insn "*avx_cvttpd2dq256_2"): Delete.
15431         (define_expand "sse2_cvttpd2dq"): Ditto.
15432         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
15433         make 2nd operand const0 vector.
15434
15435 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
15436
15437         PR tree-optimization/63341
15438         * tree-vectorizer.h (vect_create_data_ref_ptr,
15439         vect_create_addr_base_for_vector_ref): Add another tree argument
15440         defaulting to NULL_TREE.
15441         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
15442         argument, pass it down to vect_create_addr_base_for_vector_ref.
15443         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
15444         add that to base_offset too if non-NULL.
15445         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
15446         for dr_explicit_realign_optimized set it to vector byte size
15447         - 1 instead of setting offset, pass byte_offset down to
15448         vect_create_data_ref_ptr.
15449
15450 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
15451
15452         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
15453         forgotten debug output; canonicalize querries more wtih LTO.
15454
15455 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
15456
15457         * cgraph.h (class ipa_polymorphic_call_context): Move here from
15458         ipa-utils.h; add stream_int and stream_out methods.
15459         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
15460         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
15461         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
15462         add CONTEXT.
15463         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15464         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15465         ipa_polymorphic_call_context::clear_speculation,
15466         ipa_polymorphic_call_context::clear_outer_type): Move here from
15467         ipa-utils.h
15468         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
15469         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15470         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15471         ipa_polymorphic_call_context::clear_speculation,
15472         ipa_polymorphic_call_context::clear_outer_type): Likewise.
15473         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
15474         streamer-hooks.h
15475         (ipa_polymorphic_call_context::stream_out): New method.
15476         (ipa_polymorphic_call_context::stream_in): New method.
15477         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
15478         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
15479         OUTER_TYPE.
15480         (ipa_analyze_call_uses): Simplify.
15481         (update_indirect_edges_after_inlining): Do not care about outer_type.
15482         (ipa_write_indirect_edge_info): Update.
15483         (ipa_write_indirect_edge_info): Likewise.
15484         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
15485         (dump_edge_flags): Break out from ...
15486         (cgraph_node::dump): ... here; dump indirect edges.
15487
15488 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
15489
15490         * ipa-utils.h (polymorphic_call_context): Add
15491         metdhos dump, debug and clear_outer_type.
15492         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
15493         (ipa_polymorphic_call_context::clear_outer_type): New method.
15494         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
15495         * ipa-devirt.c (types_odr_comparable): New function.
15496         (types_must_be_same_for_odr): New function.
15497         (odr_subtypes_equivalent_p): Simplify.
15498         (possible_placement_new): Break out from ...
15499         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
15500         be more cuatious about returning false in cases the context may be
15501         valid in derived type or via placement new.
15502         (contains_type_p): Clear maybe_derived_type
15503         (ipa_polymorphic_call_context::dump): New method.
15504         (ipa_polymorphic_call_context::debug): New method.
15505         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
15506         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
15507         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
15508         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
15509         to suceed on all valid cases; remove confused sanity check.
15510         (dump_possible_polymorphic_call_targets): Simplify.
15511
15512 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
15513
15514         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
15515         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
15516         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
15517         varpool.c: Rename all instances of DECL_ABSTRACT to
15518         DECL_ABSTRACT_P.
15519
15520 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15521
15522         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
15523         special handling for stores whose SET_SRC is an UNSPEC (such as
15524         UNSPEC_STVE).
15525
15526 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
15527
15528         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
15529         !REG_P (src) to release more instruction sink opportunities.
15530
15531 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
15532
15533         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
15534         move costs for 128-bit types.
15535
15536 2014-09-24  Martin Jambor  <mjambor@suse.cz>
15537
15538         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
15539         when duplicating a PASS_THROUGH jump function when creating a
15540         speculative edge.
15541
15542 2014-09-24  Marek Polacek  <polacek@redhat.com>
15543
15544         PR c/61405
15545         PR c/53874
15546         * asan.c (maybe_instrument_call): Add default case.
15547         * ipa-pure-const.c (special_builtin_state): Likewise.
15548         * predict.c (expr_expected_value_1): Likewise.
15549         * lto-streamer-out.c (write_symbol): Initialize variable.
15550
15551 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15552
15553         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
15554         the lane.
15555         (vmuld_laneq_f64): Likewise.
15556         (vmuls_lane_f32): Likewise.
15557         (vmuls_laneq_f32): Likewise.
15558
15559 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
15560
15561         PR bootstrap/63235
15562         * varpool.c (varpool_node::add): Pass decl attributes
15563         to lookup_attribute.
15564
15565 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
15566
15567         PR sanitizer/63316
15568         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
15569
15570 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15571
15572         PR tree-optimization/63266
15573         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
15574         marker for unknown byte value.
15575         (MARKER_MASK): New macro.
15576         (MARKER_BYTE_UNKNOWN): New macro.
15577         (HEAD_MARKER): New macro.
15578         (do_shift_rotate): Mark bytes with unknown values due to sign
15579         extension when doing an arithmetic right shift. Replace hardcoded
15580         mask for marker by new MARKER_MASK macro.
15581         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
15582         numbers accordingly.
15583
15584 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15585             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15586             Anna Tikhonova  <anna.tikhonova@intel.com>
15587             Ilya Tocar  <ilya.tocar@intel.com>
15588             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15589             Ilya Verbin  <ilya.verbin@intel.com>
15590             Kirill Yukhin  <kirill.yukhin@intel.com>
15591             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15592
15593         * config/i386/sse.md
15594         (define_insn
15595         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
15596         Add masking.
15597         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
15598         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
15599
15600 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15601             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15602             Anna Tikhonova  <anna.tikhonova@intel.com>
15603             Ilya Tocar  <ilya.tocar@intel.com>
15604             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15605             Ilya Verbin  <ilya.verbin@intel.com>
15606             Kirill Yukhin  <kirill.yukhin@intel.com>
15607             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15608
15609         * config/i386/sse.md
15610         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
15611         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
15612         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
15613         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
15614         (define_expand "avx512vl_pshuflw_mask"): New.
15615         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
15616         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
15617         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
15618         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
15619         (define_expand "avx512vl_pshufhw_mask"): New.
15620         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
15621
15622 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15623             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15624             Anna Tikhonova  <anna.tikhonova@intel.com>
15625             Ilya Tocar  <ilya.tocar@intel.com>
15626             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15627             Ilya Verbin  <ilya.verbin@intel.com>
15628             Kirill Yukhin  <kirill.yukhin@intel.com>
15629             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15630
15631         * config/i386/i386.c
15632         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
15633         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
15634         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
15635         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
15636         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
15637         * config/i386/sse.md
15638         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
15639         (define_insn
15640         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
15641         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
15642         (define_insn
15643         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
15644         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
15645         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
15646         (define_expand "avx512vl_pshufd_mask"): New.
15647         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
15648
15649 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15650             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15651             Anna Tikhonova  <anna.tikhonova@intel.com>
15652             Ilya Tocar  <ilya.tocar@intel.com>
15653             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15654             Ilya Verbin  <ilya.verbin@intel.com>
15655             Kirill Yukhin  <kirill.yukhin@intel.com>
15656             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15657
15658         * config/i386/i386.c
15659         (CODE_FOR_avx2_extracti128): Rename to ...
15660         (CODE_FOR_avx_vextractf128v4di): this.
15661         (CODE_FOR_avx2_inserti128): Rename to ...
15662         (CODE_FOR_avx_vinsertf128v4di): this.
15663         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
15664         CODE_FOR_avx_vextractf128v4di.
15665         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
15666         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
15667         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
15668         CODE_FOR_avx512vl_vinsertv8si.
15669         * config/i386/sse.md
15670         (define_expand
15671         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
15672         AVX512_VEC mode iterator.
15673         (define_insn
15674         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
15675         Ditto.
15676         (define_expand
15677         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
15678         AVX512_VEC_2 mode iterator.
15679         (define_insn "vec_set_lo_<mode><mask_name>"): New.
15680         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15681         (define_expand "avx512vl_vinsert<mode>"): Ditto.
15682         (define_insn "avx2_vec_set_lo_v4di"): Delete.
15683         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
15684         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
15685         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15686         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
15687         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15688         (define_expand "avx2_extracti128"): Delete.
15689         (define_expand "avx2_inserti128"): Ditto.
15690
15691 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15692             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15693             Anna Tikhonova  <anna.tikhonova@intel.com>
15694             Ilya Tocar  <ilya.tocar@intel.com>
15695             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15696             Ilya Verbin  <ilya.verbin@intel.com>
15697             Kirill Yukhin  <kirill.yukhin@intel.com>
15698             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15699
15700         * config/i386/sse.md
15701         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
15702         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
15703         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
15704         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
15705         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
15706         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
15707         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
15708         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
15709         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
15710         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
15711         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
15712         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
15713         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
15714
15715 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15716
15717         PR rtl-optimization/63210
15718         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
15719         HARD_REGNO is not available for CONFLICT_A.
15720
15721 2014-09-23  Andi Kleen  <ak@linux.intel.com>
15722
15723         * cgraph.h (symtab_node): Add no_reorder attribute.
15724         (symbol_table::output_asm_statements): Remove.
15725         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
15726         (cgraph_node::create_version_clone): Dito.
15727         (symbol_table::output_asm_statements): Remove.
15728         * trans-mem.c (ipa_tm_create_version_alias): Dito.
15729         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
15730         (output_in_order): Add no_reorder flag. Only handle no_reorder
15731         nodes when set.
15732         (symbol_table::compile): Add separate pass for no_reorder nodes.
15733         (process_common_attributes): Set no_reorder flag in symtab node.
15734         Add node argument.
15735         (process_function_and_variable_attributes): Pass symtab nodes to
15736         process_common_attributes.
15737         * doc/extend.texi (no_reorder): Document no_reorder attribute.
15738         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
15739         (lto_output_varpool_node): Dito.
15740         (input_overwrite_node): Dito.
15741         (input_varpool_node): Dito.
15742         * varpool.c (varpool_node::add): Set no_reorder attribute.
15743         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
15744         (symbol_table::output_variables): Dito.
15745         * symtab.c (symtab_node::dump_base): Print no_reorder.
15746
15747 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
15748
15749         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
15750         be INVALID_REGNUM.
15751
15752 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
15753
15754         * configure: Regenerate.
15755
15756 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
15757
15758         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
15759         when result_mode == shift_mode.
15760
15761 2014-09-23  Kostya Serebryany  <kcc@google.com>
15762
15763         Update to match the changed asan API.
15764         * asan.c (asan_global_struct): Update the __asan_global definition
15765         to match the new API.
15766         (asan_add_global): Ditto.
15767         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
15768         to __asan_init_v4.
15769
15770 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15771
15772         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
15773         refine the constraints used on 32/64-bit floating point moves.
15774         (f32_av): Likewise.
15775         (f64_vsx): Likewise.
15776         (f64_dm): Likewise.
15777         (f64_av): Likewise.
15778         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
15779         (BOOL_REGS_OP1): Likewise.
15780         (BOOL_REGS_OP2): Likewise.
15781         (BOOL_REGS_UNARY): Likewise.
15782         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
15783         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
15784         for moves involving VSX registers.  Do not use constraints that
15785         target VSX registers for decimal types.
15786         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
15787         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
15788
15789 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
15790
15791         * tree.h (int_bit_position): Turn into inline function;
15792         implement using wide int.
15793         * tree.c (int_bit_position): Remove.
15794
15795 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
15796
15797         PR bootstrap/63280
15798         * target-globals.c (target_globals::~target_globals): Fix location
15799         of ira_int destruction.
15800
15801 2014-09-23  Renlin Li  <renlin.li@arm.com>
15802
15803         * config/aarch64/aarch64.md (return): New.
15804         (simple_return): Likewise.
15805         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
15806         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
15807
15808 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
15809
15810         * common/config/aarch64/aarch64-common.c:
15811         (default_options aarch_option_optimization_table):
15812         Default to -fsched-pressure.
15813
15814 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
15815
15816         * cfgcleanup.c (try_optimize_cfg): Do not remove label
15817         with LABEL_PRESERVE_P flag set.
15818
15819 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15820             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15821             Anna Tikhonova  <anna.tikhonova@intel.com>
15822             Ilya Tocar  <ilya.tocar@intel.com>
15823             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15824             Ilya Verbin  <ilya.verbin@intel.com>
15825             Kirill Yukhin  <kirill.yukhin@intel.com>
15826             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15827
15828         * config/i386/sse.md
15829         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
15830         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
15831         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
15832         (define_insn "sse2_shufpd_v2df_mask"): New.
15833
15834 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15835             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15836             Anna Tikhonova  <anna.tikhonova@intel.com>
15837             Ilya Tocar  <ilya.tocar@intel.com>
15838             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15839             Ilya Verbin  <ilya.verbin@intel.com>
15840             Kirill Yukhin  <kirill.yukhin@intel.com>
15841             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15842
15843         * config/i386/sse.md
15844         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
15845         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
15846         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
15847         (define_insn "sse_shufps_v4sf_mask"): New.
15848
15849 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15850             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15851             Anna Tikhonova  <anna.tikhonova@intel.com>
15852             Ilya Tocar  <ilya.tocar@intel.com>
15853             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15854             Ilya Verbin  <ilya.verbin@intel.com>
15855             Kirill Yukhin  <kirill.yukhin@intel.com>
15856             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15857
15858         * config/i386/sse.md
15859         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
15860         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
15861         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
15862         (define_insn "unpcklps128_mask"): New.
15863
15864 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15865             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15866             Anna Tikhonova  <anna.tikhonova@intel.com>
15867             Ilya Tocar  <ilya.tocar@intel.com>
15868             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15869             Ilya Verbin  <ilya.verbin@intel.com>
15870             Kirill Yukhin  <kirill.yukhin@intel.com>
15871             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15872
15873         * config/i386/sse.md
15874         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
15875         (define_insn "avx512vl_unpckhpd128_mask"): New.
15876         (define_expand "avx_movddup256<mask_name>"): Add masking.
15877         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
15878         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
15879         (define_insn "avx512vl_unpcklpd128_mask"): New.
15880
15881 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
15882
15883         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15884         * doc/tm.texi: Regenerate.
15885         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
15886         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15887         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
15888         Remove.
15889         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15890         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15891         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15892         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15893         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
15894         Remove.
15895         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15896         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15897         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15898         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15899         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15900         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15901         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15902         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15903         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15904         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15905         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
15906         Remove.
15907
15908 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
15909
15910         * tree-ssa-ccp.c (prop_value_d): Rename to ...
15911         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
15912         * ipa-prop.c (struct type_change_info): Rename to ...
15913         (prop_type_change_info): ... this; update uses.
15914         * ggc-page.c (globals): Rename to ...
15915         (static struct ggc_globals): ... this; update uses.
15916         * tree-ssa-loop-im.c (mem_ref): Rename to ...
15917         (im_mem_ref): ... this; update uses.
15918         * ggc-common.c (loc_descriptor): Rename to ...
15919         (ggc_loc_descriptor): ... this; update uses.
15920         * lra-eliminations.c (elim_table): Rename to ...
15921         (lra_elim_table): ... this; update uses.
15922         * bitmap.c (output_info): Rename to ...
15923         (bitmap_output_info): ... this; update uses.
15924         * gcse.c (expr): Rename to ...
15925         (gcse_expr) ... this; update uses.
15926         (occr): Rename to ...
15927         (gcse_occr): .. this; update uses.
15928         * tree-ssa-copy.c (prop_value_d): Rename to ...
15929         (prop_value_t): ... this.
15930         * predict.c (block_info_def): Rename to ...
15931         (block_info): ... this; update uses.
15932         (edge_info_def): Rename to ...
15933         (edge_info): ... this; update uses.
15934         * profile.c (bb_info): Rename to ...
15935         (bb_profile_info): ... this; update uses.
15936         * alloc-pool.c (output_info): Rename to ...
15937         (pool_output_info): ... this; update uses.
15938         * ipa-cp.c (topo_info): Rename to ..
15939         (ipa_topo_info): ... this; update uses.
15940         * tree-nrv.c (nrv_data): Rename to ...
15941         (nrv_data_t): ... this; update uses.
15942         * ipa-split.c (bb_info): Rename to ...
15943         (split_bb_info): ... this one.
15944         * profile.h (edge_info): Rename to ...
15945         (edge_profile_info): ... this one; update uses.
15946         * dse.c (bb_info): Rename to ...
15947         (dse_bb_info): ... this one; update uses.
15948         * cprop.c (occr): Rename to ...
15949         (cprop_occr): ... this one; update uses.
15950         (expr): Rename to ...
15951         (cprop_expr): ... this one; update uses.
15952
15953 2014-09-22  Jason Merrill  <jason@redhat.com>
15954
15955         * Makefile.in (check-parallel-%): Add @.
15956
15957 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
15958
15959         * config/aarch64/geniterators.sh: New.
15960         * config/aarch64/iterators.md (VDQF_DF): New.
15961         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
15962         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
15963
15964 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
15965
15966         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
15967         -lnosys when -msim absent.
15968
15969 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
15970
15971         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
15972
15973 2014-09-22  Richard Biener  <rguenther@suse.de>
15974
15975         * gimplify.c (gimplify_init_constructor): Do not leave
15976         non-GIMPLE vector constructors around.
15977         * tree-cfg.c (verify_gimple_assign_single): Verify that
15978         CONSTRUCTORs have gimple elements.
15979
15980 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
15981
15982         PR debug/63328
15983         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
15984         insert a debug source bind stmt setting DEBUG_EXPR_DECL
15985         instead of a normal gimple assignment stmt.
15986
15987 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
15988
15989         * config/bfin/bfin.md: Fix use of constraints in define_split.
15990
15991 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
15992
15993         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
15994         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
15995
15996 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
15997
15998         * hard-reg-set.h: Include hash-table.h.
15999         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
16000         field.
16001         * target-globals.c (target_globals::~target_globals): Call
16002         hard_regs->finalize.
16003         * rtl.h (subreg_shape): New structure.
16004         (shape_of_subreg): New function.
16005         (simplifiable_subregs): Declare.
16006         * reginfo.c (simplifiable_subreg): New structure.
16007         (simplifiable_subregs_hasher): Likewise.
16008         (simplifiable_subregs): New function.
16009         (invalid_mode_changes): Delete.
16010         (alid_mode_changes, valid_mode_changes_obstack): New variables.
16011         (record_subregs_of_mode): Remove subregs_of_mode parameter.
16012         Record valid mode changes in valid_mode_changes.
16013         (find_subregs_of_mode): Remove subregs_of_mode parameter.
16014         Update calls to record_subregs_of_mode.
16015         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
16016         handling.  Initialize new variables.  Update call to
16017         find_subregs_of_mode.
16018         (invalid_mode_change_p): Check new variables instead of
16019         invalid_mode_changes.
16020         (finish_subregs_of_mode): Finalize new variables instead of
16021         invalid_mode_changes.
16022         (target_hard_regs::finalize): New function.
16023         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
16024         even when CLASS_CANNOT_CHANGE_MODE is undefined.
16025
16026 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
16027
16028         * combine.c (subst): Use simplify_subreg_regno rather than
16029         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
16030
16031 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
16032
16033         * rtl.h (subreg_info): Expand commentary
16034         * rtlanal.c (subreg_get_info): Likewise.
16035
16036 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
16037
16038         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
16039         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
16040         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
16041
16042 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16043
16044         * config/arm/arm.c: #include "tm-constrs.h"
16045         (thumb1_size_rtx_costs): Adjust rtx costs.
16046
16047 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
16048
16049         * configure.ac (target_header_dir): Move block defining
16050         this to before the block setting inhibit_libc.
16051         (inhibit_libc): When considering $with_headers, just
16052         check it it's explicitly "no".  If not, also check if
16053         $target_header_dir/stdio.h is present.  If not, set
16054         inhibit_libc=true.
16055         * configure: Regenerate.
16056
16057 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
16058
16059         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
16060
16061 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16062
16063         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
16064         insn for divides by integer powers of two.
16065         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
16066         (mod<mode>3): Fix formatting.
16067         (three anonymous define_insn and two define_split): Delete.
16068
16069 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16070
16071         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
16072         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
16073         (floatdisf2_internal2): Ditto.
16074         (ashrdi3_no_power): Ditto.  Fix formatting.
16075
16076 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16077
16078         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
16079         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
16080         Tidy.
16081
16082 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16083
16084         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
16085         constant, use addsi3 directly.
16086         (three anonymous define_insn, two define_split): Delete.
16087         (sub<mode>3): Move.  Do not allow constant second operand.
16088         Generate different insn for constant first operand.
16089         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
16090         (subf<mode>3_imm): New.
16091         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
16092         (*plus_ltu<mode>): Only handle registers.
16093         (*plus_ltu<mode>_1): New.  Handle integer third operand.
16094         (*plus_gtu<mode>): Only handle registers.
16095         (*plus_gtu<mode>_1): New.  Handle integer third operand.
16096
16097 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16098
16099         * config/rs6000/rs6000.md (iorxor): New code_iterator.
16100         (iorxor): New code_attr.
16101         (IORXOR): New code_attr.
16102         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
16103         (ior<mode>3, xor<mode>3): Delete.
16104         (<iorxor><mode>3): New.
16105         (splitter for "big" integer ior, xor): New.
16106         (*bool<mode>3): Move.  Also handle AND.
16107         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
16108         (splitter for "big" integer ior, xor): Delete.
16109
16110 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16111
16112         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
16113         (two anonymous define_insn and two define_split): Delete.
16114         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
16115
16116 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16117
16118         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
16119         (two anonymous define_insn and two define_split): Delete.
16120         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
16121
16122 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16123
16124         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
16125
16126 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
16127
16128         * config/rs6000/predicates.md (ca_operand): Allow subregs.
16129         (input_operand): Do not allow ca_operand.
16130         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
16131         carry bit, allow SImode and Pmode.
16132         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
16133
16134 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
16135
16136         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
16137         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
16138         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
16139         (*call_rex64_ms_sysv): Remove.
16140         (*call_value_rex64_ms_sysv): Ditto.
16141         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
16142
16143 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
16144
16145         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
16146         operand 3 to "CnL".
16147
16148 2014-09-20  Andreas Schwab  <schwab@suse.de>
16149
16150         * config/ia64/ia64.md: Remove constraints from define_split
16151         patterns.
16152
16153 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
16154
16155         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
16156         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
16157         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
16158         (get_dynamic_type): Remove.
16159         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
16160         (clear_speculation): Bring to ipa-deivrt.h
16161         (get_class_context): Rename to ...
16162         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
16163         (contains_type_p): Update.
16164         (get_dynamic_type): Rename to ...
16165         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
16166         (possible_polymorphic_call_targets): UPdate.
16167         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
16168         * ipa-prop.c (ipa_analyze_call_uses): Update.
16169
16170 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
16171
16172         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
16173         privatize dynamic TLS variables.
16174
16175 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
16176
16177         * diagnostic.c (warning_n): New function.
16178         * diagnostic-core.h (warning_n): Declare.
16179         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
16180         output dynamic counts when available.
16181
16182 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
16183
16184         PR tree-optimization/63255
16185         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
16186         issue in setting body_removed flag.
16187
16188 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
16189
16190         PR c++/61825
16191         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
16192         that visibility change is possible
16193         (handle_weakref_attribute): Likewise.
16194         * cgraph.h (symtab_node): Add method get_create and
16195         field refuse_visibility_changes.
16196         (symtab_node::get_create): New method.
16197         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
16198         * varasm.c (mark_weak): Verify that visibility change is
16199         possible.
16200
16201 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
16202
16203         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
16204         for base_reg_operand to be common between LO_SUM and PLUS.
16205         (fusion_gpr_mem_combo): New predicate to match a fused address
16206         that combines the addis and memory offset address.
16207
16208         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
16209         calling signature.
16210         (emit_fusion_gpr_load): Likewise.
16211
16212         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
16213         signature to pass each argument separately, rather than
16214         using an operands array.  Rewrite the insns found by peephole2 to
16215         be a single insn, rather than hoping the insns will still be
16216         together when the peephole pass is done.  Drop being called via a
16217         normal peephole.
16218         (emit_fusion_gpr_load): Change calling signature to be called from
16219         the fusion_gpr_load_<mode> insns with a combined memory address
16220         instead of the peephole pass passing the addis and offset
16221         separately.
16222
16223         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
16224         fusion.
16225         (power8 fusion peephole): Drop support for doing power8 via a
16226         normal peephole that was created by the peephole2 pass.
16227         (power8 fusion peephole2): Create a new insn with the fused
16228         address, so that the fused operation is kept together after
16229         register allocation is done.
16230         (fusion_gpr_load_<mode>): Likewise.
16231
16232 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
16233
16234         PR lto/63286
16235         * tree.c (need_assembler_name_p): Do not mangle variadic types.
16236
16237 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
16238
16239         * recog.c (scratch_operand): Do not simply allow all hard registers:
16240         only allow those that are allocatable.
16241
16242 2014-09-19  Felix Yang  <felix.yang@huawei.com>
16243
16244         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
16245         comments and fix spacing to conform to coding style.
16246
16247 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
16248
16249         * genrecog.c (validate_pattern): Allow empty constraints in
16250         a match_scratch.
16251
16252 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
16253
16254         * dwarf2out.c (decl_ultimate_origin): Update comment.
16255         * tree.c (block_ultimate_origin): Same.
16256
16257 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16258
16259         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
16260         Update GCC version name to GCC 5.
16261         (rs6000_function_arg_boundary): Likewise.
16262         (rs6000_function_arg): Likewise.
16263
16264 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
16265
16266         * config/sh/sh.md: Fix use of constraints in define_split.
16267
16268 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
16269
16270         PR ipa/61998
16271         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
16272
16273 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
16274
16275         * doc/md.texi (Modifiers): Consistently use "read/write"
16276         nomenclature rather than "input/output".
16277         * genrecog.c (constraints_supported_in_insn_p): New.
16278         (validate_pattern): If needed, also check constraints on
16279         MATCH_SCRATCH operands.
16280         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
16281         operands with no '=' or '+' modifier.
16282
16283 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
16284
16285         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
16286         scratch register as written.
16287
16288 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16289
16290         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
16291         assignment.
16292
16293 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16294
16295         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
16296         expanders.
16297
16298 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16299
16300         PR target/62662
16301         * config/s390/s390.c (s390_emit_epilogue): When doing the return
16302         address load optimization force s390_optimize_prologue to leave it
16303         that way.  Only do the optimization if we already decided to push
16304         r14 into a stack slot.
16305
16306 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
16307
16308         * asan.c (build_check_stmt): Alignment arg was added.
16309         (asan_expand_check_ifn): Optimization for alignment >= 8.
16310
16311 2014-09-19  Olivier Hainque  <hainque@adacore.com>
16312
16313         * config/i386/vxworksae.h: Remove obsolete definitions.
16314         (STACK_CHECK_PROTECT): Define.
16315         * config/i386/vx-common.h: Remove.  Merge contents within
16316         config/i386/vxworks.h.
16317         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
16318         i386/vx-common.h.
16319
16320 2014-09-19  Olivier Hainque  <hainque@adacore.com>
16321
16322         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
16323         * config/rs6000/t-vxworksmils: New file.
16324         * config/rs6000/vxworksmils.h: New file.
16325
16326 2014-09-19  Olivier Hainque  <hainque@adacore.com>
16327
16328         * varasm.c (default_section_type_flags): Flag .persistent.bss
16329         sections as SECTION_BSS.
16330
16331 2014-09-19  Nick Clifton  <nickc@redhat.com>
16332
16333         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
16334         pop'ed registers so that DCE does not eliminate them.
16335
16336 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
16337
16338         PR lto/63298
16339         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
16340
16341 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
16342
16343         * system.h (LIBGCC2_TF_CEXT): Poison.
16344         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
16345         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
16346         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
16347         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
16348         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
16349         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
16350         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
16351         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
16352         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
16353
16354 2014-09-19  Kito Cheng  <kito@0xlab.org>
16355
16356         * except.h: Fix header guard.
16357         * addresses.h: Add missing header guard.
16358         * cfghooks.h: Likewise.
16359         * collect-utils.h: Likewise.
16360         * collect2-aix.h: Likewise.
16361         * conditions.h: Likewise.
16362         * cselib.h: Likewise.
16363         * dwarf2asm.h: Likewise.
16364         * graphds.h: Likewise.
16365         * graphite-scop-detection.h: Likewise.
16366         * gsyms.h: Likewise.
16367         * hw-doloop.h: Likewise.
16368         * incpath.h: Likewise.
16369         * ipa-inline.h: Likewise.
16370         * ipa-ref.h: Likewise.
16371         * ira-int.h: Likewise.
16372         * ira.h: Likewise.
16373         * lra-int.h: Likewise.
16374         * lra.h: Likewise.
16375         * lto-section-names.h: Likewise.
16376         * read-md.h: Likewise.
16377         * reload.h: Likewise.
16378         * rtl-error.h: Likewise.
16379         * sdbout.h: Likewise.
16380         * targhooks.h: Likewise.
16381         * tree-affine.h: Likewise.
16382         * xcoff.h: Likewise.
16383         * xcoffout.h: Likewise.
16384
16385 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
16386
16387         PR debug/63285
16388         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
16389         if advance != 0.
16390
16391 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
16392
16393         PR target/61360
16394         * lra.c (lra): Call recog_init.
16395
16396 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16397
16398         PR c++/62017
16399         * asan.c (transform_statements): Don't instrument clobber statements.
16400
16401 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16402
16403         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
16404         to neon_load1_1reg<q>.
16405
16406 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
16407
16408         PR debug/63284
16409         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
16410         if there are only debug stmts after the noreturn call, instead
16411         remove the debug stmts.
16412
16413 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
16414
16415         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
16416         (odr_types_equivalent_p): Use pair hash.
16417         (odr_subtypes_equivalent_p): Likewise, do structural compare
16418         on ODR types that may be mismatched.
16419         (warn_odr): Support warning when only one field is given.
16420         (odr_types_equivalent_p): Strenghten comparsions made;
16421         support VOIDtype.
16422         (add_type_duplicate): Update VISITED hash set.
16423
16424 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16425
16426         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
16427         Enable selection of 'posix' or no thread model.
16428
16429 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
16430
16431         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
16432         when architecture is older than ARMv7.
16433
16434 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
16435
16436         PR target/61853
16437         * config/pa/pa.c (pa_function_value): Directly handle aggregates
16438         that fit exactly in a word or double word.
16439
16440 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
16441
16442         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
16443         zmm/k regs support.
16444
16445 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16446             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16447             Anna Tikhonova  <anna.tikhonova@intel.com>
16448             Ilya Tocar  <ilya.tocar@intel.com>
16449             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16450             Ilya Verbin  <ilya.verbin@intel.com>
16451             Kirill Yukhin  <kirill.yukhin@intel.com>
16452             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16453
16454         * config/i386/i386.c
16455         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
16456         * config/i386/sse.md
16457         (define_mode_iterator VI48F_256): New.
16458         (define_mode_attr extract_type): Ditto.
16459         (define_mode_attr extract_suf): Ditto.
16460         (define_mode_iterator AVX512_VEC): Ditto.
16461         (define_expand
16462         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
16463         AVX512_VEC.
16464         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
16465         (define_insn
16466         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
16467         Ditto.
16468         (define_mode_attr extract_type_2): Ditto.
16469         (define_mode_attr extract_suf_2): Ditto.
16470         (define_mode_iterator AVX512_VEC_2): Ditto.
16471         (define_expand
16472         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
16473         AVX512_VEC_2 mode iterator.
16474         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
16475         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
16476         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
16477         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
16478         (define_split for V16FI mode): Ditto.
16479         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
16480         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
16481         (define_split for VI8F_256 mode): Ditto.
16482         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
16483         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
16484         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
16485         (define_split for VI4F_256 mode): Ditto.
16486         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
16487         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
16488         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
16489         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
16490         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
16491         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
16492         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
16493         Update `type' attribute, remove explicit `memory' attribute calculation.
16494
16495 2014-09-16  Kito Cheng  <kito@0xlab.org>
16496
16497         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
16498         ira_spilled_reg_stack_slots_num if using lra.
16499         (do_reload): Remove release ira_spilled_reg_stack_slots part.
16500         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
16501         make sure not using lra.
16502         (ira_reuse_stack_slot): Likewise.
16503         (ira_mark_new_stack_slot): Likewise.
16504
16505 2014-09-15  Andi Kleen  <ak@linux.intel.com>
16506
16507         * function.c (allocate_struct_function): Force
16508         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
16509         profiling is disabled.
16510
16511 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
16512
16513         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
16514         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
16515         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
16516         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
16517         macro with statically checked member functions.
16518         * rtl.h (rtx_insn::deleted): New method.
16519         (rtx_insn::set_deleted): Likewise.
16520         (rtx_insn::set_undeleted): Likewise.
16521         (INSN_DELETED_P): Remove.
16522
16523 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
16524
16525         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
16526         result of emit_jump_insn_before to a new variable.
16527         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
16528         (mark_jump_label_1): Likewise.
16529         (mark_jump_label_asm): Likewise.
16530         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
16531         * rtl.h (mark_jump_label): Adjust.
16532
16533 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
16534
16535         * Makefile.in (dg_target_exps): Remove.
16536         (check_gcc_parallelize): Change to just an upper bound number.
16537         (check-%-subtargets): Always print the non-parallelized goals.
16538         (check_p_vars, check_p_comma, check_p_subwork): Remove.
16539         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
16540         check_p_numbers3, check_p_numbers4, check_p_numbers5,
16541         check_p_numbers6): New variables.
16542         (check_p_numbers): Set to sequence from 1 to 9999.
16543         (check_p_subdirs): Set to sequence from 1 to minimum of
16544         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
16545         or 128.
16546         (check-%, check-parallel-%): Rewritten so that for parallelized
16547         testing each job runs all the *.exp files, with
16548         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
16549
16550 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
16551
16552         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
16553         rtx to rtx_insn *.
16554         (arc_sets_cc_p): Likewise.
16555         * config/arc/arc.c (arc_print_operand): Use methods of
16556         "final_sequence" for clarity, and to enable strengthening of
16557         locals "jump" and "delay" from rtx to rtx_insn *.
16558         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
16559         rtx_insn *; use method of rtx_sequence for typesafety.
16560         (arc_get_insn_variants): Use insn method of rtx_sequence for
16561         typesafety.
16562         (arc_pad_return): Likewise.
16563         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
16564         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
16565         dyn_cast to rtx_sequence *, using insn method for typesafety.
16566         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
16567         rtx_sequence * and use insn method when invoking get_attr_length.
16568         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
16569         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
16570         rtx_sequence *, introducing a local "seq", using its insn method
16571         from typesafety and clarity.
16572         (add_sched_insns_for_speculation): Strengthen local "next" from
16573         rtx to rtx_insn *.
16574         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
16575         (predicate_insn): Likewise.
16576         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
16577         second param.
16578         * config/cris/cris.c (cris_notice_update_cc): Likewise.
16579         * config/epiphany/epiphany-protos.h
16580         (extern void epiphany_insert_mode_switch_use): Likewise for param
16581         "insn".
16582         (get_attr_sched_use_fpu): Likewise for param.
16583         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
16584         Likewise for param "insn".
16585         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
16586         param "insn" of "target_insert_mode_switch_use" callback.
16587         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
16588         (frv_issues_to_branch_unit_p): Likewise.
16589         (frv_pack_insn_p): Likewise.
16590         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
16591         const rtx * (i.e. mutable rtx_def * const *) to
16592         rtx_insn * const *.
16593         * config/i386/i386-protos.h (standard_sse_constant_opcode):
16594         Strengthen first param from rtx to rtx_insn *.
16595         (output_fix_trunc): Likewise.
16596         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
16597         (output_fix_trunc): Likewise.
16598         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
16599         local "insn".
16600         (min_insn_size): Likewise for param "insn".
16601         (get_mem_group): Likewise.
16602         (is_cmp): Likewise.
16603         (get_insn_path): Likewise.
16604         (get_insn_group): Likewise.
16605         (count_num_restricted): Likewise.
16606         (fits_dispatch_window): Likewise.
16607         (add_insn_window): Likewise.
16608         (add_to_dispatch_window): Likewise.
16609         (debug_insn_dispatch_info_file): Likewise.
16610         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
16611         first param.
16612         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
16613         "cmp" and local "prev".
16614         (m32c_output_compare): Likewise for param "insn".
16615         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
16616         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
16617         (define_predicate "large_insn_p"): Likewise.
16618         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
16619         param from rtx to rtx_insn *.
16620         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
16621         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
16622         (m68k_sched_attr_size): Likewise.
16623         (sched_get_opxy_mem_type): Likewise for param "insn".
16624         (m68k_sched_attr_op_mem): Likewise.
16625         (sched_mem_operand_p): Likewise.
16626         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
16627         * config/mep/mep.c (mep_multi_slot): Likewise.
16628         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
16629         first param.
16630         (mips_sync_loop_insns): Likewise.
16631         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
16632         method of "final_sequence" for typesafety.
16633         (mips_process_sync_loop): Strengthen param "insn" from rtx to
16634         rtx_insn *.
16635         (mips_output_sync_loop): Likewise.
16636         (mips_sync_loop_insns): Likewise.
16637         (mips_74k_agen_init): Likewise.
16638         (mips_sched_init): Use NULL rather than NULL_RTX when working with
16639         insns.
16640         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
16641         Strengthen param "insn" from rtx to rtx_insn *.
16642         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
16643         local "insn".
16644         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
16645         param.
16646         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
16647         "insn".  Use method of rtx_sequence for typesafety.
16648         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
16649         rtx_insn *.
16650         (branch_needs_nop_p): Likewise.
16651         (use_skip_p): Likewise.
16652         (pa_insn_refs_are_delayed): Likewise.
16653         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
16654         for locals "insn", "ninsn".
16655         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
16656         "insn".
16657         (is_cracked_insn): Likewise.
16658         (is_branch_slot_insn): Likewise.
16659         (is_nonpipeline_insn): Likewise.
16660         (insn_terminates_group_p): Likewise.
16661         (insn_must_be_first_in_group): Likewise.
16662         (insn_must_be_last_in_group): Likewise.
16663         (force_new_group): Likewise for param "next_insn".
16664         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
16665         "insn".
16666         (s390_sched_score): Likewise.
16667         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
16668         (rtx sfunc_uses_reg): Likewise for sole param.
16669         * config/sh/sh.c (sh_print_operand): Use insn method of
16670         final_sequence for typesafety.
16671         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
16672         Use insn method of final_sequence for typesafety.
16673         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
16674         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
16675         for param.
16676         (eligible_for_return_delay): Likewise.
16677         (eligible_for_sibcall_delay): Likewise.
16678         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
16679         (eligible_for_return_delay): Likewise.
16680         (eligible_for_sibcall_delay): Likewise.
16681         * config/stormy16/stormy16-protos.h
16682         (xstormy16_output_cbranch_hi): Likewise for final param.
16683         (xstormy16_output_cbranch_si): Likewise.
16684         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
16685         (xstormy16_output_cbranch_si): Likewise.
16686         * config/v850/v850-protos.h (notice_update_cc): Likewise.
16687         * config/v850/v850.c (notice_update_cc): Likewise.
16688
16689         * final.c (get_attr_length_1): Strengthen param "insn" and param
16690         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
16691         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
16692         (get_attr_min_length): Likewise.
16693         (shorten_branches): Likewise for signature of locals "length_fun"
16694         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
16695         from a checked cast and use its methods for clarity and to enable
16696         strengthening local "inner_insn" from rtx to rtx_insn *.
16697         * genattr.c (gen_attr): When writing out the prototypes of the
16698         various generated "get_attr_" functions, strengthen the params of
16699         the non-const functions from rtx to rtx_insn *.
16700         Similarly, strengthen the params of insn_default_length,
16701         insn_min_length, insn_variable_length_p, insn_current_length.
16702         (main): Similarly, strengthen the param of num_delay_slots,
16703         internal_dfa_insn_code, insn_default_latency, bypass_p,
16704         insn_latency, min_issue_delay, print_reservation,
16705         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
16706         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
16707         to hook_int_rtx_insn_unreachable.
16708         * genattrtab.c (write_attr_get): When writing out the generated
16709         "get_attr_" functions, strengthen the param "insn" from rtx to
16710         rtx_insn *, eliminating a checked cast.
16711         (make_automaton_attrs): When writing out prototypes of
16712         "internal_dfa_insn_code_", "insn_default_latency_" functions
16713         and the "internal_dfa_insn_code" and "insn_default_latency"
16714         callbacks, strengthen their params from rtx to rtx_insn *
16715         * genautomata.c (output_internal_insn_code_evaluation): When
16716         writing out code, add a checked cast from rtx to rtx_insn * when
16717         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
16718         (output_dfa_insn_code_func): Strengthen param of generated
16719         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
16720         (output_trans_func): Likewise for generated function
16721         "state_transition".
16722         (output_internal_insn_latency_func): When writing out generated
16723         function "internal_insn_latency", rename params from "insn" and
16724         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
16725         locals "insn" and "insn2" as rtx_insn * with checked casts once
16726         we've proven that we're not dealing with const0_rtx.
16727         (output_insn_latency_func):  Strengthen param of generated
16728         function "insn_latency" from rtx to rtx_insn *.
16729         (output_print_reservation_func): Likewise for generated function
16730         "print_reservation".
16731         (output_insn_has_dfa_reservation_p): Likewise for generated
16732         function "insn_has_dfa_reservation_p".
16733         * hooks.c (hook_int_rtx_unreachable): Rename to...
16734         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
16735         from rtx to rtx_insn *.
16736         * hooks.h (hook_int_rtx_unreachable): Likewise.
16737         (extern int hook_int_rtx_insn_unreachable): Likewise.
16738         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
16739         (get_attr_min_length): Likewise.
16740         * recog.c (get_enabled_alternatives): Likewise.
16741         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
16742         * reorg.c (find_end_label): Introduce local rtx "pat" and
16743         strengthen local "insn" from rtx to rtx_insn *.
16744         (redundant_insn): Use insn method of "seq" rather than element for
16745         typesafety; strengthen local "control" from rtx to rtx_insn *.
16746         * resource.c (mark_referenced_resources): Add checked cast to
16747         rtx_insn * within INSN/JUMP_INSN case.
16748         (mark_set_resources): Likewise.
16749         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
16750         rtx to rtx_insn *.
16751
16752 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
16753
16754         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
16755         param "label" from rtx to rtx_insn *.
16756         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
16757         and local "op".
16758         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
16759         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
16760         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
16761         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
16762         * final.c (default_label_align_after_barrier_max_skip): Strengthen
16763         param from rtx to rtx_insn *.
16764         (default_loop_align_max_skip): Likewise.
16765         (default_label_align_max_skip): Likewise.
16766         (default_jump_align_max_skip): Likewise.
16767         * target.def (label_align_after_barrier_max_skip): Likewise.
16768         (loop_align_max_skip): Likewise.
16769         (label_align_max_skip): Likewise.
16770         (jump_align_max_skip): Likewise.
16771         * targhooks.h (default_label_align_after_barrier_max_skip):
16772         Likewise.
16773         (default_loop_align_max_skip): Likewise.
16774         (default_label_align_max_skip): Likewise.
16775         (default_jump_align_max_skip): Likewise.
16776
16777 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
16778
16779         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
16780         from const_rtx to const rtx_insn *.  Update union members from rtx
16781         to rtx_insn *.
16782         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
16783         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
16784         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
16785         strengthen both params from const_rtx to const rtx_insn *.
16786         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
16787         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
16788         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
16789         rtx_insn *.
16790         * target.def (can_follow_jump): Strengthen both params from
16791         const_rtx to const rtx_insn *, and update default implementation
16792         from hook_bool_const_rtx_const_rtx_true to
16793         hook_bool_const_rtx_insn_const_rtx_insn_true.
16794
16795 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
16796
16797         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
16798         "insn" from rtx to rtx_insn *.
16799         * sched-int.h (deps_start_bb): Likewise for 2nd param.
16800
16801 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16802             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16803             Anna Tikhonova  <anna.tikhonova@intel.com>
16804             Ilya Tocar  <ilya.tocar@intel.com>
16805             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16806             Ilya Verbin  <ilya.verbin@intel.com>
16807             Kirill Yukhin  <kirill.yukhin@intel.com>
16808             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16809
16810         * config/i386/sse.md
16811         (define_insn "vcvtph2ps<mask_name>"): Add masking.
16812         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
16813         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
16814         (define_expand "vcvtps2ph_mask"): New.
16815         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
16816         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
16817         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
16818
16819 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16820             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16821             Anna Tikhonova  <anna.tikhonova@intel.com>
16822             Ilya Tocar  <ilya.tocar@intel.com>
16823             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16824             Ilya Verbin  <ilya.verbin@intel.com>
16825             Kirill Yukhin  <kirill.yukhin@intel.com>
16826             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16827
16828         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
16829         New.
16830         (define_mode_iterator VI24_AVX512BW_1): Ditto.
16831         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
16832         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
16833         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
16834         also for TARGET_AVX512VL.
16835         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
16836
16837 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
16838
16839         * doc/install.texi (Options specification): add
16840         --disable-libsanitizer item.
16841
16842 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
16843             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16844
16845         PR target/61407
16846         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
16847         and above.
16848         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
16849         kernel version check to avoid incrementing it after every major OS X
16850         release.
16851         (darwin_default_min_version): Avoid static memory buffer.
16852
16853 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
16854
16855         * tree.c (need_assembler_name_p): Store C++ type mangling only
16856         for aggregates.
16857
16858 2014-09-13  Marek Polacek  <polacek@redhat.com>
16859
16860         * tree.c (protected_set_expr_location): Don't check whether T is
16861         non-null here.
16862
16863 2014-09-12  DJ Delorie  <dj@redhat.com>
16864
16865         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
16866         (extend_and_shift1_hipsi2): Likewise.
16867         (extend_and_shift2_hipsi2): Likewise.
16868
16869 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
16870
16871         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
16872         with NULL when dealing with an insn.
16873         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
16874         from rtx to rtx_insn *.
16875         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
16876         const_rtx to const rtx_insn *.
16877         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
16878
16879 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
16880
16881         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
16882         assert.
16883
16884 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
16885
16886         * target.def (libgcc_floating_mode_supported_p): New hook.
16887         * targhooks.c (default_libgcc_floating_mode_supported_p): New
16888         function.
16889         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
16890         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
16891         (LIBGCC2_HAS_TF_MODE): Remove.
16892         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
16893         * doc/tm.texi: Regenerate.
16894         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
16895         machine mode.
16896         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
16897         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
16898         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
16899         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
16900         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16901         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
16902         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
16903         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
16904         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
16905         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
16906         function.
16907         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
16908         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16909         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16910         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16911         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16912         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16913         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16914         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
16915         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
16916         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
16917         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16918         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
16919         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
16920         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
16921         Remove.
16922         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
16923         New macro.
16924         (ia64_libgcc_floating_mode_supported_p): New function.
16925         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
16926         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
16927         (IA64_NO_LIBGCC_TFMODE): Define.
16928         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
16929         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
16930         macro.
16931         (pdp11_scalar_mode_supported_p): New function.
16932         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
16933         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
16934
16935 2014-09-12  Richard Biener  <rguenther@suse.de>
16936
16937         PR middle-end/63237
16938         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
16939
16940 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
16941
16942         * tree.c (integer_each_onep): New function.
16943         * tree.h (integer_each_onep): Declare it.
16944         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
16945         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
16946         (X & 1) == 0 for vector and complex.
16947
16948 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16949
16950         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
16951         for A57.
16952         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
16953         cost to spilling from integer to FP registers.
16954
16955 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16956
16957         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
16958         move handling.
16959         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
16960         are now handled correctly.
16961
16962 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16963
16964         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
16965         handling of CALLER_SAVE_REGS and POINTER_REGS.
16966
16967 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16968
16969         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
16970         the number of hard registers.
16971
16972 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16973             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16974             Anna Tikhonova  <anna.tikhonova@intel.com>
16975             Ilya Tocar  <ilya.tocar@intel.com>
16976             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16977             Ilya Verbin  <ilya.verbin@intel.com>
16978             Kirill Yukhin  <kirill.yukhin@intel.com>
16979             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16980
16981         * config/i386/sse.md
16982         (define_mode_iterator VI48_AVX512VL): New.
16983         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
16984         "avx512f_vternlog<mode>_maskz" and update mode iterator.
16985         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
16986         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
16987         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
16988         "avx512f_vternlog<mode>_mask" and update mode iterator.
16989         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
16990         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
16991         iterator.
16992         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
16993         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
16994         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
16995         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
16996         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
16997         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
16998
16999 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17000             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17001             Anna Tikhonova  <anna.tikhonova@intel.com>
17002             Ilya Tocar  <ilya.tocar@intel.com>
17003             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17004             Ilya Verbin  <ilya.verbin@intel.com>
17005             Kirill Yukhin  <kirill.yukhin@intel.com>
17006             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17007
17008         * config/i386/sse.md (VI128_256): Delete.
17009         (define_mode_iterator VI124_256): New.
17010         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
17011         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
17012         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
17013         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
17014         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
17015         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
17016         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
17017         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
17018         iterator.
17019         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
17020         in presence of AVX-512.
17021
17022 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17023             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17024             Anna Tikhonova  <anna.tikhonova@intel.com>
17025             Ilya Tocar  <ilya.tocar@intel.com>
17026             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17027             Ilya Verbin  <ilya.verbin@intel.com>
17028             Kirill Yukhin  <kirill.yukhin@intel.com>
17029             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17030
17031         * config/i386/sse.md
17032         (define_expand "<avx512>_gathersi<mode>"): Rename from
17033         "avx512f_gathersi<mode>".
17034         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
17035         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
17036         (define_expand "<avx512>_gatherdi<mode>"): Rename from
17037         "avx512f_gatherdi<mode>".
17038         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
17039         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
17040         wide versions.
17041         (define_expand "<avx512>_scattersi<mode>"): Rename from
17042         "avx512f_scattersi<mode>".
17043         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
17044         (define_expand "<avx512>_scatterdi<mode>"): Rename from
17045         "avx512f_scatterdi<mode>".
17046         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
17047
17048 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
17049
17050         * ira.h (ira_finish_once): Delete.
17051         * ira-int.h (target_ira_int::~target_ira_int): Declare.
17052         (target_ira_int::free_ira_costs): Likewise.
17053         (target_ira_int::free_register_move_costs): Likewise.
17054         (ira_finish_costs_once): Delete.
17055         * ira.c (free_register_move_costs): Replace with...
17056         (target_ira_int::free_register_move_costs): ...this new function.
17057         (target_ira_int::~target_ira_int): Define.
17058         (ira_init): Call free_register_move_costs as a member function rather
17059         than a global function.
17060         (ira_finish_once): Delete.
17061         * ira-costs.c (free_ira_costs): Replace with...
17062         (target_ira_int::free_ira_costs): ...this new function.
17063         (ira_init_costs): Call free_ira_costs as a member function rather
17064         than a global function.
17065         (ira_finish_costs_once): Delete.
17066         * target-globals.c (target_globals::~target_globals): Call the
17067         target_ira_int destructor.
17068         * toplev.c: Include lra.h.
17069         (finalize): Call lra_finish_once rather than ira_finish_once.
17070
17071 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
17072
17073         * common.opt (flto-odr-type-merging): New flag.
17074         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
17075         (types_same_for_odr): Likewise.
17076         (odr_subtypes_equivalent_p): Likewise.
17077         (add_type_duplicate): Do not walk type variants.
17078         (register_odr_type): New function.
17079         * ipa-utils.h (register_odr_type): Declare.
17080         (odr_type_p): New function.
17081         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
17082         TYPE_DECLs
17083         * doc/invoke.texi (-flto-odr-type-merging): Document.
17084         * tree.c (need_assembler_name_p): Compute ODR names when asked
17085         for it.
17086         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
17087
17088 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
17089
17090         PR target/63228
17091         * config/i386/i386.c (ix86_option_override_internal): Also turn
17092         off OPTION_MASK_ABI_X32 for -m16.
17093
17094 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
17095
17096         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
17097         GPR instead of P.
17098
17099 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
17100
17101         PR target/58757
17102         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
17103         Directly forward to __*_DENORM_MIN__.
17104
17105 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
17106
17107         * rtl.h (LABEL_REF_LABEL): New macro.
17108
17109         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
17110         of XEXP (, 0), where we know that we have a LABEL_REF.
17111         * cfgbuild.c (make_edges): Likewise.
17112         (purge_dead_tablejump_edges): Likewise.
17113         * cfgexpand.c (convert_debug_memory_address): Likewise.
17114         * cfgrtl.c (patch_jump_insn): Likewise.
17115         * combine.c (distribute_notes): Likewise.
17116         * cse.c (hash_rtx_cb): Likewise.
17117         (exp_equiv_p): Likewise.
17118         (fold_rtx): Likewise.
17119         (check_for_label_ref): Likewise.
17120         * cselib.c (rtx_equal_for_cselib_1): Likewise.
17121         (cselib_hash_rtx): Likewise.
17122         * emit-rtl.c (mark_label_nuses): Likewise.
17123         * explow.c (convert_memory_address_addr_space): Likewise.
17124         * final.c (output_asm_label): Likewise.
17125         (output_addr_const): Likewise.
17126         * gcse.c (add_label_notes): Likewise.
17127         * genconfig.c (walk_insn_part): Likewise.
17128         * genrecog.c (validate_pattern): Likewise.
17129         * ifcvt.c (cond_exec_get_condition): Likewise.
17130         (noce_emit_store_flag): Likewise.
17131         (noce_get_alt_condition): Likewise.
17132         (noce_get_condition): Likewise.
17133         * jump.c (maybe_propagate_label_ref): Likewise.
17134         (mark_jump_label_1): Likewise.
17135         (redirect_exp_1): Likewise.
17136         (rtx_renumbered_equal_p): Likewise.
17137         * lra-constraints.c (operands_match_p): Likewise.
17138         * reload.c (operands_match_p): Likewise.
17139         (find_reloads): Likewise.
17140         * reload1.c (set_label_offsets): Likewise.
17141         * reorg.c (get_branch_condition): Likewise.
17142         * rtl.c (rtx_equal_p_cb): Likewise.
17143         (rtx_equal_p): Likewise.
17144         * rtlanal.c (reg_mentioned_p): Likewise.
17145         (rtx_referenced_p): Likewise.
17146         (get_condition): Likewise.
17147         * sched-vis.c (print_value): Likewise.
17148         * varasm.c (const_hash_1): Likewise.
17149         (compare_constant): Likewise.
17150         (const_rtx_hash_1): Likewise.
17151         (output_constant_pool_1): Likewise.
17152
17153 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
17154
17155         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
17156         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
17157         instead of minus.
17158         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
17159         cr6_test_for_lt_reverse): Ditto.
17160
17161 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
17162
17163         PR c++/61489
17164         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
17165
17166 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
17167
17168         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
17169         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
17170         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
17171         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
17172         Delete.
17173
17174         (aarch64_fold_builtin): Remove all reinterpret cases.
17175
17176         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
17177
17178         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
17179
17180         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
17181         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
17182         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
17183         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
17184         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
17185         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
17186         aarch64_reinterpretv2df<mode>): Delete.
17187
17188         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
17189
17190         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
17191         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
17192         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
17193         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
17194         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
17195         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
17196         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
17197         vreinterpret_u32_f64): Use cast.
17198
17199         * config/aarch64/iterators.md (VD_RE): Delete.
17200
17201 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
17202
17203         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
17204         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
17205         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
17206         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
17207         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
17208         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
17209         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
17210         Replace inline assembler with __aarch64_vset_lane_any.
17211
17212 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
17213
17214         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
17215         types.
17216         (vmull_high_lane_s32): Likewise.
17217         (vmull_high_lane_u16): Likewise.
17218         (vmull_high_lane_u32): Likewise.
17219
17220 2014-09-11  Jason Merrill  <jason@redhat.com>
17221
17222         PR c++/58678
17223         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
17224
17225 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
17226
17227         PR target/63223
17228         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
17229         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
17230         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
17231
17232 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17233             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17234             Anna Tikhonova  <anna.tikhonova@intel.com>
17235             Ilya Tocar  <ilya.tocar@intel.com>
17236             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17237             Ilya Verbin  <ilya.verbin@intel.com>
17238             Kirill Yukhin  <kirill.yukhin@intel.com>
17239             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17240
17241         * config/i386/sse.md
17242         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
17243         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
17244         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
17245         New.
17246         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
17247         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
17248         iterator.
17249         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
17250         New.
17251         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
17252         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
17253         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
17254         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
17255         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
17256         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
17257         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
17258         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
17259         iterator.
17260         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
17261         New.
17262         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
17263         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
17264         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
17265
17266 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
17267
17268         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
17269         to access removed nodes.
17270
17271 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
17272
17273         PR tree-optimization/63186
17274         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
17275         (mark_nonssa_use): Likewise.
17276         (verify_non_ssa_vars): Verify all header blocks for label
17277         definitions.
17278
17279 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17280             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17281             Anna Tikhonova  <anna.tikhonova@intel.com>
17282             Ilya Tocar  <ilya.tocar@intel.com>
17283             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17284             Ilya Verbin  <ilya.verbin@intel.com>
17285             Kirill Yukhin  <kirill.yukhin@intel.com>
17286             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17287
17288         * config/i386/sse.md
17289         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
17290         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
17291         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
17292         "<avx2_avx512f>_permvar<mode><mask_name>".
17293         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
17294         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
17295         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
17296         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
17297         Ditto.
17298         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
17299         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
17300         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
17301         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
17302
17303 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17304
17305         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
17306         V2DF, V4SF, DF, and DI modes.
17307         (vsx_fmav2df2): Likewise.
17308         (vsx_float_fix_<mode>2): Likewise.
17309         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
17310
17311 2014-09-10  Xinliang David Li  <davidxl@google.com>
17312
17313         PR target/63209
17314         * config/arm/arm.md (movcond_addsi): Handle case where source
17315         and target operands are the same.
17316
17317 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
17318
17319         * final.c (this_is_asm_operands): Strengthen this variable from
17320         rtx to const rtx_insn *.
17321         * output.h (this_is_asm_operands): Likewise.
17322         * rtl-error.c (location_for_asm): Strengthen param "insn" from
17323         const_rtx to const rtx_insn *.
17324         (diagnostic_for_asm): Likewise.
17325         * rtl-error.h (error_for_asm): Likewise.
17326         (warning_for_asm): Likewise.
17327
17328 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
17329
17330         * genextract.c (print_header): When writing out insn_extract to
17331         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
17332         * recog.h (insn_extract): Strengthen the param from rtx to
17333         rtx_insn *.
17334
17335 2014-09-10  Mike Stump  <mikestump@comcast.net>
17336
17337         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
17338         8.6.1.
17339
17340 2014-09-10  Martin Jambor  <mjambor@suse.cz>
17341
17342         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
17343         (analyze): Do not set analyze flag if expand_thunk returns false;.
17344         (create_wrapper): Likewise.
17345         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
17346
17347 2014-09-10  Martin Jambor  <mjambor@suse.cz>
17348
17349         PR ipa/61654
17350         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
17351         new decl properly.  Analyze the new thunk if it is expanded.
17352
17353 2014-09-10  Andreas Schwab  <schwab@suse.de>
17354
17355         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
17356         [USED_FOR_TARGET]: Define.
17357
17358 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
17359
17360         * config/mips/mips.c (mips_secondary_reload_class): Handle
17361         regno < 0 case.
17362
17363 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
17364
17365         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
17366         assignment.
17367
17368 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
17369
17370         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
17371         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
17372         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
17373         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
17374         flag_delete_null_pointer_checks for them.
17375         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
17376         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
17377         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
17378         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
17379         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
17380         stmt's iterator.
17381         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
17382         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
17383         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
17384         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
17385         * doc/invoke.texi (-fsanitize=nonnull-attribute,
17386         -fsanitize=returns-nonnull-attribute): Document.
17387
17388         * ubsan.h (struct ubsan_mismatch_data): Removed.
17389         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
17390         * ubsan.c (ubsan_source_location): For unknown locations,
17391         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
17392         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
17393         Allow more than one location and arbitrary extra arguments passed
17394         in ... instead of through MISMATCH pointer.
17395         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
17396         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
17397         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
17398         callers.
17399
17400 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17401             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17402             Anna Tikhonova  <anna.tikhonova@intel.com>
17403             Ilya Tocar  <ilya.tocar@intel.com>
17404             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17405             Ilya Verbin  <ilya.verbin@intel.com>
17406             Kirill Yukhin  <kirill.yukhin@intel.com>
17407             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17408
17409         * config/i386/sse.md
17410         (define_mode_iterator VI48F): New.
17411         (define_insn "<avx512>_compress<mode>_mask"): Rename from
17412         "avx512f_compress<mode>_mask" and update mode iterator.
17413         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
17414         "avx512f_compressstore<mode>_mask" and update mode iterator.
17415         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
17416         "avx512f_expand<mode>_maskz" and update mode iterator.
17417         (define_insn "<avx512>_expand<mode>_mask"): Rename from
17418         "avx512f_expand<mode>_mask" and update mode iterator.
17419
17420 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17421             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17422             Anna Tikhonova  <anna.tikhonova@intel.com>
17423             Ilya Tocar  <ilya.tocar@intel.com>
17424             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17425             Ilya Verbin  <ilya.verbin@intel.com>
17426             Kirill Yukhin  <kirill.yukhin@intel.com>
17427             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17428
17429         * config/i386/i386.c
17430         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
17431         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
17432         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
17433         avx512dq_rangepv4sf_mask.
17434         * config/i386/sse.md
17435         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
17436         UNSPEC_RANGE.
17437         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
17438         (define_insn "reduces<mode>"): Ditto.
17439         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
17440         Ditto.
17441         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
17442         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
17443         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
17444
17445 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17446             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17447             Anna Tikhonova  <anna.tikhonova@intel.com>
17448             Ilya Tocar  <ilya.tocar@intel.com>
17449             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17450             Ilya Verbin  <ilya.verbin@intel.com>
17451             Kirill Yukhin  <kirill.yukhin@intel.com>
17452             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17453
17454         * config/i386/i386.c
17455         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
17456         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
17457         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
17458         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
17459         avx512vl_getmantv2df_mask.
17460         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
17461         avx512f_vgetmantv4sf_round.
17462         * config/i386/sse.md
17463         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
17464         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
17465         mode iterator.
17466         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
17467         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
17468         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
17469         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
17470         iterator..
17471         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
17472         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
17473         update mode iterator.
17474         (define_expand
17475         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
17476         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
17477         mode iterator.
17478         (define_insn
17479         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
17480         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
17481         update mode iterator.
17482         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
17483         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
17484         iterator..
17485         (define_insn
17486         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
17487         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
17488         mode iterator..
17489         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
17490         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
17491         update mode iterator.
17492         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
17493         "avx512f_getmant<mode><round_saeonly_name>".
17494
17495 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
17496
17497         PR ipa/63166
17498         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
17499
17500 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17501             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17502             Anna Tikhonova  <anna.tikhonova@intel.com>
17503             Ilya Tocar  <ilya.tocar@intel.com>
17504             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17505             Ilya Verbin  <ilya.verbin@intel.com>
17506             Kirill Yukhin  <kirill.yukhin@intel.com>
17507             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17508
17509         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
17510         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
17511         (define_mode_iterator FMAMODE_AVX512): New.
17512         (define_mode_iterator FMAMODE): Remove conditions.
17513         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
17514         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
17515         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
17516         mode iterator.
17517         (define_mode_iterator FMAMODE_NOVF512): Remove.
17518         (define_insn "*fma_fmadd_<mode>"): Rename from
17519         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
17520         FMAMODE mode iterator.
17521         (define_mode_iterator VF_SF_AVX512VL): New.
17522         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
17523         Use VF_SF_AVX512VL mode iterator.
17524         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
17525         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
17526         iterator.
17527         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
17528         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17529         iterator.
17530         (define_insn "*fma_fmsub_<mode>"): Rename from
17531         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
17532         FMAMODE mode iterator.
17533         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
17534         Use VF_SF_AVX512VL mode iterator.
17535         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
17536         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
17537         iterator.
17538         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
17539         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17540         iterator.
17541         (define_insn "*fma_fnmadd_<mode>"): Rename from
17542         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
17543         use FMAMODE mode iterator.
17544         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
17545         Use VF_SF_AVX512VL mode iterator.
17546         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
17547         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
17548         iterator.
17549         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
17550         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17551         iterator.
17552         (define_insn "*fma_fnmsub_<mode>"): Rename from
17553         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
17554         FMAMODE mode iterator.
17555         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
17556         Use VF_SF_AVX512VL mode iterator.
17557         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
17558         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
17559         iterator.
17560         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
17561         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17562         iterator.
17563         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
17564         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
17565         use VF_AVX512VL mode iterator.
17566         (define_insn "*fma_fmaddsub_<mode>"): Rename from
17567         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
17568         remove subst usage.
17569         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
17570         Use VF_SF_AVX512VL mode iterator.
17571         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
17572         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
17573         iterator.
17574         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
17575         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17576         iterator.
17577         (define_insn "*fma_fmsubadd_<mode>"): Rename from
17578         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
17579         remove usage of subst.
17580         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
17581         Use VF_SF_AVX512VL mode iterator.
17582         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
17583         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
17584         iterator.
17585         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
17586         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17587         iterator.
17588
17589 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
17590
17591         Revert r213751:
17592         * calls.c (precompute_arguments): Check
17593          promoted_for_signed_and_unsigned_p and set the promoted mode.
17594         (promoted_for_signed_and_unsigned_p): New function.
17595         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
17596         and set the promoted mode.
17597         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
17598         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
17599         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
17600
17601 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17602
17603         * opth-gen.awk: Generate mapping from cpp message reasons to the
17604         options that enable them.
17605         * doc/options.texi (CppReason): Document.
17606
17607 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17608
17609         * doc/invoke.texi (Wnormalized=): Update.
17610
17611 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
17612
17613         PR target/63195
17614         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
17615         operands.  Split off the constant operand alternative to ...
17616         (*bool<mode>3_imm): New.
17617
17618 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
17619
17620         * rtl.h (single_set_2): Strengthen first param from const_rtx to
17621         const rtx_insn *, and move prototype to above...
17622         (single_set): ...this.  Convert this from a macro to an inline
17623         function, enforcing the requirement that the param is a const
17624         rtx_insn *.
17625         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
17626
17627         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
17628         Strengthen both params from rtx to rtx_insn *.
17629         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
17630         Likewise; introduce locals "producer_set", "consumer_set", using
17631         them in place of "producer" and "consumer" when dealing with SET
17632         rather than insn.
17633         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
17634         when invoking single_set in region guarded by INSN_P.
17635         (avr_out_bitop): Likewise.
17636         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
17637         region guarded by GET_CODE check, using methods to strengthen
17638         local "this_insn" from rtx to rtx_insn *, and for clarity.
17639         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
17640         Strengthen local "insn" from rtx to rtx_insn *.
17641         (define_insn_and_split "xload<mode>_A"): Likewise.
17642         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
17643         "insn".
17644         (find_load): Likewise for return type.
17645         (workaround_speculation): Likewise for both locals named
17646         "load_insn".
17647         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
17648         local "cc0_user".
17649         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
17650         for local "prev".
17651         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
17652         param 2.
17653         * config/h8300/h8300.c (notice_update_cc): Likewise.
17654         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
17655         "insn" and "dep_insn".
17656         (exact_store_load_dependency): Likewise for both params.
17657         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
17658         since this now clashes with inline function.  Instead, delay
17659         calling single_set until the point where its needed, and then
17660         assign the result to "compare_set" and rework the conditional that
17661         follows.
17662         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
17663         local "last" from rtx to rtx_insn *.
17664         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
17665         second param.
17666         (mips_store_data_bypass_p): Likewise for both params.
17667         * config/mips/mips.c (mips_load_store_insns): Likewise for second
17668         param.
17669         (mips_store_data_bypass_p): Likewise for both params.
17670         (mips_orphaned_high_part_p): Likewise for param "insn".
17671         * config/mn10300/mn10300.c (extract_bundle): Likewise.
17672         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
17673         Introduce local rtx "insn2_pat".
17674         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
17675         "ninsn".
17676         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
17677         Introduce local rtx "set", using it in place of "insn" for the
17678         result of single_set.  This appears to fix a bug, since the call
17679         to find_regno_note on a SET does nothing.
17680         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
17681         params from rtx to rtx_insn *.
17682         (set_to_load_agen): Likewise.
17683         * config/s390/s390.c (s390_label_align): Likewise for local
17684         "prev_insn".  Introduce new rtx locals "set" and "src", using
17685         them in place of "prev_insn" for the results of single_set
17686         and SET_SRC respectively.
17687         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
17688         Introduce new rtx local "set" using in place of "jump" for the
17689         result of single_set.  Use SET_SRC (set) rather than plain
17690         XEXP (set, 1).
17691         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
17692         rtx to rtx_insn *.
17693         (noncall_uses_reg): Likewise.
17694         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
17695         guarded by GET_CODE check, using its methods for clarity, and to
17696         enable strengthening local "this_insn" from rtx to rtx_insn *.
17697         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
17698         "insn" from rtx to rtx_insn *.
17699         (define_expand "umulhisi3"): Likewise.
17700         (define_expand "smulsi3_highpart"): Likewise.
17701         (define_expand "umulsi3_highpart"): Likewise.
17702         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
17703         local "after".  Replace GET_CODE check with a dyn_cast,
17704         introducing new local rtx_sequence * "seq", using insn method for
17705         typesafety.
17706
17707         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
17708         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
17709         place of "insn" once we're dealing with patterns rather than the
17710         input insn.
17711         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
17712         (scan_trace): Likewise for local "elt", updating lookups within
17713         sequence to use insn method rather than element method.
17714         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
17715         to rtx_insn *.
17716         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
17717         * ifcvt.c (noce_try_abs): Likewise for local "insn".
17718         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
17719         invoking single_set.
17720         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
17721         "insn" from rtx to rtx_insn *.
17722         (skip_usage_debug_insns): Likewise for return type, adding a
17723         checked cast.
17724         (check_secondary_memory_needed_p): Likewise for local "insn".
17725         (inherit_reload_reg): Likewise.
17726         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
17727         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
17728         checked casts.
17729         (store_data_bypass_p): Likewise for both params.
17730         (if_test_bypass_p): Likewise.
17731         * recog.h (store_data_bypass_p): Likewise for both params.
17732         (if_test_bypass_p): Likewise.
17733         * reload.c (find_equiv_reg): Likewise for local "where".
17734         * reorg.c (delete_jump): Likewise for param "insn".
17735         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
17736         to const rtx_insn *.
17737         * store-motion.c (replace_store_insn): Likewise for param "del".
17738         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
17739         and use its methods for clarity, and to strengthen local "del"
17740         from rtx to rtx_insn *.
17741         (build_store_vectors): Use insn method of "st" when calling
17742         replace_store_insn for typesafety and clarity.
17743
17744 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17745
17746         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
17747         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
17748         on how to make it legal in future.
17749
17750 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
17751
17752         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
17753         to rtx_insn *.
17754         (restinsn): Likewise.
17755         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
17756         Likewise for param.
17757         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
17758         Likewise.
17759         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
17760         first param.
17761         (arc_hazard): Likewise for both params.
17762         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
17763         checked casts to rtx_sequence * and uses of the insn method for
17764         type-safety.
17765         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
17766         (arc_adjust_insn_length): Likewise for param "insn".
17767         (struct insn_length_parameters_s): Likewise for first param of
17768         "get_variants" callback field.
17769         (arc_get_insn_variants): Likewise for first param and local
17770         "inner".  Replace a check of GET_CODE with a dyn_cast to
17771         rtx_sequence *, using methods for type-safety and clarity.
17772         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
17773         rtx_sequence * and uses of the insn method for type-safety when
17774         invoking arc_adjust_insn_length.
17775         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
17776         for param.
17777         (arm_address_offset_is_imm): Likewise.
17778         (struct tune_params): Likewise for params 1 and 3 of the
17779         "sched_adjust_cost" callback field.
17780         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
17781         params 1 and 3 ("insn" and "dep").
17782         (xscale_sched_adjust_cost): Likewise.
17783         (fa726te_sched_adjust_cost): Likewise.
17784         (cortexa7_older_only): Likewise for param "insn".
17785         (cortexa7_younger): Likewise.
17786         (arm_attr_length_move_neon): Likewise.
17787         (arm_address_offset_is_imm): Likewise.
17788         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
17789         * config/avr/avr.c (avr_notice_update_cc): Likewise.
17790         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
17791         (workaround_speculation): Likewise for local "last_condjump".
17792         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
17793         (shadow_or_blockage_p): Likewise.
17794         (get_unit_reqs): Likewise.
17795         (get_unit_operand_masks): Likewise.
17796         (c6x_registers_update): Likewise.
17797         (returning_call_p): Likewise.
17798         (can_use_callp): Likewise.
17799         (convert_to_callp): Likewise.
17800         (find_last_same_clock): Likwise for local "t".
17801         (reorg_split_calls): Likewise for local "shadow".
17802         (hwloop_pattern_reg): Likewise for param "insn".
17803         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
17804         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
17805         (frv_extract_membar): Likewise.
17806         (frv_optimize_membar_local): Strengthen param "last_membar" from
17807         rtx * to rtx_insn **.
17808         (frv_optimize_membar_global): Strengthen param "membar" from rtx
17809         to rtx_insn *.
17810         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
17811         to rtx_insn **.
17812         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
17813         both params from rtx to rtx_insn *.
17814         (ia64_ld_address_bypass_p): Likewise.
17815         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
17816         "insn".
17817         (ia64_safe_type): Likewise.
17818         (group_barrier_needed): Likewise.
17819         (safe_group_barrier_needed): Likewise.
17820         (ia64_single_set): Likewise.
17821         (is_load_p): Likewise.
17822         (record_memory_reference): Likewise.
17823         (get_mode_no_for_insn): Likewise.
17824         (important_for_bundling_p): Likewise.
17825         (unknown_for_bundling_p): Likewise.
17826         (ia64_st_address_bypass_p): Likewise for both params.
17827         (ia64_ld_address_bypass_p): Likewise.
17828         (expand_vselect): Introduce new local rtx_insn * "insn", using it
17829         in place of rtx "x" after the emit_insn call.
17830         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
17831         Strengthen param from rtx to rtx_insn *.
17832         (ix86_agi_dependent): Likewise for both params.
17833         (ix86_attr_length_immediate_default): Likewise for param 1.
17834         (ix86_attr_length_address_default): Likewise for param.
17835         (ix86_attr_length_vex_default): Likewise for param 1.
17836         * config/i386/i386.c (ix86_attr_length_immediate_default):
17837         Likewise for param "insn".
17838         (ix86_attr_length_address_default): Likewise.
17839         (ix86_attr_length_vex_default): Likewise.
17840         (ix86_agi_dependent): Likewise for both params.
17841         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
17842         (vselect_insn): Likewise for this variable.
17843         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
17844         for param 1.
17845         (m68k_sched_attr_opy_type): Likewise.
17846         * config/m68k/m68k.c (sched_get_operand): Likewise.
17847         (sched_attr_op_type): Likewise.
17848         (m68k_sched_attr_opx_type): Likewise.
17849         (m68k_sched_attr_opy_type): Likewise.
17850         (sched_get_reg_operand): Likewise.
17851         (sched_get_mem_operand): Likewise.
17852         (m68k_sched_address_bypass_p): Likewise for both params.
17853         (sched_get_indexed_address_scale): Likewise.
17854         (m68k_sched_indexed_address_bypass_p): Likewise.
17855         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
17856         (m68k_sched_indexed_address_bypass_p): Likewise.
17857         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
17858         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
17859         removing another.
17860         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
17861         params from rtx to rtx_insn *.
17862         (mips_fmadd_bypass): Likewise.
17863         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
17864         (mips_linked_madd_p): Likewise.
17865         (mips_macc_chains_last_hilo): Likewise for this variable.
17866         (mips_macc_chains_record): Likewise for param.
17867         (vr4130_last_insn): Likewise for this variable.
17868         (vr4130_swap_insns_p): Likewise for both params.
17869         (mips_ls2_variable_issue): Likewise for param.
17870         (mips_need_noat_wrapper_p): Likewise for param "insn".
17871         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
17872         in place of "x" after the emit_insn.
17873         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
17874         params from rtx to rtx_insn *.
17875         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
17876         (pa_combine_instructions): Introduce local "par" for result of
17877         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
17878         to make_insn_raw.
17879         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
17880         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
17881         (rl78_alloc_physical_registers_op1): Likewise.
17882         (rl78_alloc_physical_registers_op2): Likewise.
17883         (rl78_alloc_physical_registers_ro1): Likewise.
17884         (rl78_alloc_physical_registers_cmp): Likewise.
17885         (rl78_alloc_physical_registers_umul): Likewise.
17886         (rl78_alloc_address_registers_macax): Likewise.
17887         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
17888         * config/s390/predicates.md (execute_operation): Likewise for
17889         local "insn".
17890         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
17891         params.
17892         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
17893         (addr_generation_dependency_p): Likewise for param "insn".
17894         (s390_agen_dep_p): Likewise for both params.
17895         (s390_fpload_toreg): Likewise for param "insn".
17896         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
17897         * config/sh/sh.c (sh_loop_align): Likewise for param and local
17898         "next".
17899         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
17900         * config/sh/sh_treg_combine.cc
17901         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
17902         and local "i".
17903         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
17904         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
17905         "and_insn", "load", "shift".
17906         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
17907         "insn".
17908         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
17909         for XEXP (note, 0) of the REG_CC_SETTER note.
17910         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
17911         rtx_insn *, eliminating a checked cast made redundant by this.
17912         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
17913         to rtx_insn *.
17914         * genattr.c (main): When writing out the prototype to
17915         const_num_delay_slots, strengthen the param from rtx to
17916         rtx_insn *.
17917         * genattrtab.c (write_const_num_delay_slots): Likewise when
17918         writing out the implementation of const_num_delay_slots.
17919         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
17920         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
17921         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
17922         favor of new rtx locals "src" and "set" and new local rtx_insn *
17923         "insn" and "seq".
17924         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
17925         to rtx_insn *.
17926         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
17927         locals "cond", "if_then_else", "set" and new rtx_insn * locals
17928         "insn" and "seq".
17929         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
17930         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
17931         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
17932         the top-level scope, replacing with new more tightly-scoped rtx
17933         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
17934         "new_insn", "copy_of_insn_b", and make local rtx "set" more
17935         tightly-scoped.
17936         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
17937         rtx_insn *.
17938         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
17939         "move_insn".
17940         (ira_setup_alts): Likewise for param "insn".
17941         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
17942         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
17943         and an rtx_insn *.
17944         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
17945         new more-tightly scoped rtx locals "add3_insn", "insn",
17946         "add2_insn" and rtx_insn * "move_insn".
17947         * postreload-gcse.c (eliminate_partially_redundant_load): Add
17948         checked cast on result of gen_move_insn when invoking
17949         extract_insn.
17950         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
17951         rtx_insn *.
17952         (verify_changes): Add a checked cast on "object" when invoking
17953         insn_invalid_p.
17954         (extract_insn_cached): Strengthen param "insn" from rtx to
17955         rtx_insn *.
17956         (extract_constrain_insn_cached): Likewise.
17957         (extract_insn): Likewise.
17958         * recog.h (insn_invalid_p): Likewise for param 1.
17959         (recog_memoized): Likewise for param.
17960         (extract_insn): Likewise.
17961         (extract_constrain_insn_cached): Likewise.
17962         (extract_insn_cached): Likewise.
17963         * reload.c (can_reload_into): Likewise for local "test_insn".
17964         * reload.h (cleanup_subreg_operands): Likewise for param.
17965         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
17966         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
17967         result of emit_insn.  Remove a checked cast made redundant by this
17968         change.
17969         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
17970         rtx to rtx_insn *.
17971         * sel-sched.c (get_reg_class): Likewise.
17972
17973 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17974             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17975
17976         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
17977         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
17978         Define.
17979         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
17980
17981 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
17982
17983         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
17984         const rtx_insn *, and from rtx to rtx_insn * for the other
17985         overloaded variant.
17986         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
17987         INSN_LOCATION, since we know INSN_P holds.
17988         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
17989         (insn_file): Likewise.
17990         (insn_scope): Likewise.
17991         (insn_location): Likewise.
17992
17993         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
17994         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
17995         for the result of gen_load_const_gp.
17996         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
17997         param from rtx to rtx_insn *.
17998         * config/rs6000/rs6000.c (output_call): Likewise.
17999         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
18000         introducing a checked cast to rtx_sequence * and use of the insn
18001         method.
18002         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
18003         from rtx to rtx_insn *.
18004         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
18005         (insn_line): Likewise.
18006         (insn_file): Likewise.
18007         (insn_location): Likewise.
18008         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
18009         from rtx to rtx_insn *.
18010         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
18011         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
18012         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
18013         via a checked cast.
18014         * reorg.c (relax_delay_slots): Strengthen locals named "after"
18015         from rtx to rtx_insn *; use methods of "pat" for type-safety.
18016
18017 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
18018
18019         * combine.c (try_combine): Eliminate checked cast on result of
18020         gen_rtx_INSN.
18021         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
18022         autogenerated one by strengthening the return type and params 2 and 3
18023         from rtx to rtx_insn *, and by naming the params.
18024         * gengenrtl.c (special_rtx): Add INSN to those that are
18025         special-cased.
18026         * rtl.h (gen_rtx_INSN): New prototype.
18027
18028 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
18029
18030         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
18031         than NULL_RTX.
18032         (no_equiv): Likewise.
18033         (update_equiv_regs): Likewise.
18034         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
18035         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
18036         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
18037         clarity.
18038         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
18039         from rtx to rtx_insn_list *.
18040         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
18041         rtx_insn_list * and use methods for clarity and typesafety.
18042         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
18043         "list".
18044         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
18045         redundant check on INSN_P (insns): this cannot hold, as "insns" is
18046         an INSN_LIST, not an insn.
18047         (reverse_equiv_p): Strengthen local "insns" from rtx to
18048         rtx_insn_list * and use methods for clarity and typesafety.
18049         (contains_reloaded_insn_p): Likewise for local "list".
18050
18051 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
18052
18053         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
18054         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
18055         (arm_builtin_vectorized_function): Likewise.
18056         * config/arm/arm_neon_builtins.def: New macro for copysignf.
18057         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
18058
18059 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
18060
18061         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
18062         * builtins.h (default_target_builtins): Likewise.
18063         * gcse.h (default_target_gcse): Likewise.
18064         * target-globals.h (target_globals): Add a destructor.  Convert
18065         void-pointer fields back to their real type and change from
18066         GTY((atomic)) to GTY((skip)).
18067         (restore_target_globals): Remove casts accordingly.
18068         * target-globals.c (save_target_globals): Use XCNEW rather than
18069         ggc_internal_cleared_alloc to allocate non-GC structures.
18070         Use ggc_cleared_alloc to allocate the target_globals structure
18071         itself.
18072         (target_globals::~target_globals): Define.
18073
18074 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18075
18076         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
18077         mnemonic instead of fldmfdd.
18078         * config/arm/arm.c (vfp_output_fstmd): Rename to...
18079         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
18080         Output vpush when address register is SP.
18081         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
18082         (vfp_output_vstmd): ... This.
18083         * config/arm/vfp.md (push_multi_vfp): Update call to
18084         vfp_output_vstmd.
18085
18086 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18087
18088         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
18089
18090 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18091
18092         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
18093         (*sqrtdf2_vfp): Likewise.
18094         (*cmpsf_vfp): Likewise.
18095         (*cmpsf_trap_vfp): Likewise.
18096         (*cmpdf_vfp): Likewise.
18097         (*cmpdf_trap_vfp): Likewise.
18098
18099 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18100
18101         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
18102         (*truncdfsf2_vfp): Likewise.
18103         (*truncsisf2_vfp): Likewise.
18104         (*truncsidf2_vfp): Likewise.
18105         (fixuns_truncsfsi2): Likewise.
18106         (fixuns_truncdfsi2): Likewise.
18107         (*floatsisf2_vfp): Likewise.
18108         (*floatsidf2_vfp): Likewise.
18109         (floatunssisf2): Likewise.
18110         (floatunssidf2): Likewise.
18111
18112 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18113
18114         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
18115         (*muldf3_vfp): Likewise.
18116         (*mulsf3negsf_vfp): Likewise.
18117         (*muldf3negdf_vfp): Likewise.
18118         (*mulsf3addsf_vfp): Likewise.
18119         (*muldf3adddf_vfp): Likewise.
18120         (*mulsf3subsf_vfp): Likewise.
18121         (*muldf3subdf_vfp): Likewise.
18122         (*mulsf3negsfaddsf_vfp): Likewise.
18123         (*fmuldf3negdfadddf_vfp): Likewise.
18124         (*mulsf3negsfsubsf_vfp): Likewise.
18125         (*muldf3negdfsubdf_vfp): Likewise.
18126
18127 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18128
18129         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
18130         (*absdf2_vfp): Likewise.
18131         (*negsf2_vfp): Likewise.
18132         (*negdf2_vfp): Likewise.
18133         (*addsf3_vfp): Likewise.
18134         (*adddf3_vfp): Likewise.
18135         (*subsf3_vfp): Likewise.
18136         (*subdf3_vfp): Likewise.
18137         (*divsf3_vfp): Likewise.
18138         (*divdf3_vfp): Likewise.
18139
18140 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18141
18142         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
18143         multiple.
18144         (arm_print_operand): Don't convert real values to decimal
18145         representation in default case.
18146         (fp_immediate_constant): Delete.
18147         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
18148         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
18149         syntax.
18150         (*thumb2_movsi_vfp): Likewise.
18151         (*movdi_vfp): Likewise.
18152         (*movdi_vfp_cortexa8): Likewise.
18153         (*movhf_vfp_neon): Likewise.
18154         (*movhf_vfp): Likewise.
18155         (*movsf_vfp): Likewise.
18156         (*thumb2_movsf_vfp): Likewise.
18157         (*movdf_vfp): Likewise.
18158         (*thumb2_movdf_vfp): Likewise.
18159         (*movsfcc_vfp): Likewise.
18160         (*thumb2_movsfcc_vfp): Likewise.
18161         (*movdfcc_vfp): Likewise.
18162         (*thumb2_movdfcc_vfp): Likewise.
18163
18164 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
18165
18166         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
18167         (-mtune): Likewise.
18168         (-mcpu): Likewise.
18169
18170 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18171
18172         PR target/61749
18173         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
18174         Use qualifier_immediate for last operand.  Rename to...
18175         (aarch64_types_ternop_lane_qualifiers): ... This.
18176         (TYPES_QUADOP): Rename to...
18177         (TYPES_TERNOP_LANE): ... This.
18178         (aarch64_simd_expand_args): Return const0_rtx when encountering user
18179         error.  Change return of 0 to return of NULL_RTX.
18180         (aarch64_crc32_expand_builtin): Likewise.
18181         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
18182         ICE when expanding unknown builtin.
18183         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
18184         TERNOP_LANE qualifiers.
18185         (sqdmlsl_lane): Likewise.
18186         (sqdmlal_laneq): Likewise.
18187         (sqdmlsl_laneq): Likewise.
18188         (sqdmlal2_lane): Likewise.
18189         (sqdmlsl2_lane): Likewise.
18190         (sqdmlal2_laneq): Likewise.
18191         (sqdmlsl2_laneq): Likewise.
18192
18193 2014-09-09  Nick Clifton  <nickc@redhat.com>
18194
18195         * doc/invoke.texi (Optimization Options): Add missing @gol to the
18196         end of a line.
18197         (S/390 and zSeries Options): Remove superfluous word from the
18198         description of the -mhotpatch option.
18199
18200 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
18201
18202         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
18203         * ira.c: #include "shrink-wrap.h"
18204         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
18205         * ifcvt.c: #include "shrink-wrap.h"
18206         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
18207
18208 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
18209
18210         * common/config/picochip/picochip-common.c: Remove.
18211         * config.gcc: Remove support for picochip.
18212         * config/picochip/constraints.md: Remove.
18213         * config/picochip/dfa_space.md: Remove.
18214         * config/picochip/dfa_speed.md: Remove.
18215         * config/picochip/picochip-protos.h: Remove.
18216         * config/picochip/picochip.c: Remove.
18217         * config/picochip/picochip.h: Remove.
18218         * config/picochip/picochip.md: Remove.
18219         * config/picochip/picochip.opt: Remove.
18220         * config/picochip/predicates.md: Remove.
18221         * config/picochip/t-picochip: Remove.
18222         * doc/md.texi: Don't document picochi.
18223
18224 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
18225
18226         * basic-block.h (control_flow_insn_p): Strengthen param from
18227         const_rtx to const rtx_insn *.
18228         * cfgbuild.c (control_flow_insn_p): Likewise.
18229
18230 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
18231
18232         * gcse.c (modify_mem_list): Strengthen this variable from
18233         vec<rtx> * to vec<rtx_insn *> *.
18234         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
18235         vec<rtx_insn *>.
18236         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
18237         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
18238         (record_last_mem_set_info): Strengthen param "insn" from rtx to
18239         rtx_insn *.
18240         (record_last_set_info): Likewise for local "last_set_insn".
18241
18242 2014-09-08  DJ Delorie  <dj@redhat.com>
18243
18244         * doc/invoke.texi (MSP430 Options): Add -minrt.
18245
18246 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18247
18248         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
18249         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
18250         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
18251         handling SH_SPLAT.
18252         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
18253         of extracted lane.
18254         (adjust_splat): New function.
18255         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
18256         (dump_swap_insn_table): Add case for SH_SPLAT.
18257
18258 2014-09-08  Richard Biener  <rguenther@suse.de>
18259
18260         PR ipa/63196
18261         * tree-inline.c (copy_loops): The source loop header should
18262         always be non-NULL.
18263         (tree_function_versioning): If loops need fixup after removing
18264         unreachable blocks fix them.
18265         * omp-low.c (simd_clone_adjust): Do not add incr block to
18266         loop under construction.
18267
18268 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
18269
18270         * config/aarch64/aarch64-builtins.c
18271         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
18272
18273 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
18274
18275         * config/i386/cygming.h (TF_SIZE): Remove.
18276         * config/i386/darwin.h (TF_SIZE): Remove.
18277         * config/i386/dragonfly.h (TF_SIZE): Remove.
18278         * config/i386/freebsd.h (TF_SIZE): Remove.
18279         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
18280         * config/i386/openbsdelf.h (TF_SIZE): Remove.
18281         * config/i386/sol2.h (TF_SIZE): Remove.
18282         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
18283         * config/ia64/linux.h (TF_SIZE): Remove.
18284         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
18285         * doc/tm.texi: Regenerate.
18286         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
18287
18288 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
18289
18290         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
18291         Remove.
18292         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
18293         Remove.
18294         * doc/tm.texi: Regenerate.
18295         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
18296         Poison.
18297         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
18298         * config/cris/cris.h (__make_dp): Remove.
18299
18300 2014-09-08  Richard Biener  <rguenther@suse.de>
18301
18302         PR bootstrap/63204
18303         * cfgloop.c (mark_loop_for_removal): Track former header
18304         unconditionally.
18305         * cfgloop.h (struct loop): Add former_header member unconditionally.
18306         * loop-init.c (fix_loop_structure): Enable bogus loop removal
18307         diagnostic unconditionally.
18308
18309 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18310
18311         PR target/63190
18312         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
18313         constraint for operand0 and remove write only modifier from operand3.
18314
18315 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
18316
18317         PR rtl-optimization/62208
18318         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
18319         rather than const0_rtx in eq/ne-xor simplifications.
18320
18321 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
18322
18323         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
18324         (arc_output_mi_thunk): Likewise.
18325
18326         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
18327         arguments to silence bogus warning.
18328
18329 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
18330
18331         PR middle-end/63171
18332         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
18333
18334 2014-09-06  Tom de Vries  <tom@codesourcery.com>
18335
18336         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
18337         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
18338         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18339
18340 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
18341
18342         PR target/63188
18343         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
18344         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
18345
18346 2014-09-05  Easwaran Raman  <eraman@google.com>
18347
18348         PR rtl-optimization/62146
18349         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
18350         hoisted instruction unconditional.
18351
18352 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
18353
18354         PR target/63187
18355         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
18356         Do not allow any_mask_operand for operands[2].
18357         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
18358
18359 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18360
18361         * config/arc/arc.c (arc_print_operand): Use insn method of
18362         final_sequence for type-safety.
18363         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
18364         "insn" from rtx to rtx_insn *.
18365         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
18366         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
18367         Likewise for locals "branch", "label".
18368         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
18369         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
18370         (same_cmp_following_p): Likewise for locals "i2", "i3".
18371         * config/sh/sh_optimize_sett_clrt.cc
18372         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
18373         param "cbranch_insn".
18374         * function.c (convert_jumps_to_returns): Likewis for local "jump".
18375         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
18376         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
18377         const rtx_insn *.
18378         (condjump_p): Likewise.
18379         (condjump_in_parallel_p): Likewise.
18380         (pc_set): Likewise.
18381         (any_uncondjump_p): Likewise.
18382         (any_condjump_p): Likewise.
18383         (condjump_label): Likewise.
18384         (returnjump_p): Strengthen param "insn" from rtx to
18385         const rtx_insn *.
18386         (onlyjump_p): Strengthen param "insn" from const_rtx to
18387         const rtx_insn *.
18388         (jump_to_label_p): Likewise.
18389         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
18390         (invert_jump): Likewise.
18391         * reorg.c (simplejump_or_return_p): Add checked cast when calling
18392         simplejump_p.
18393         (get_jump_flags): Strengthen param "insn" from rtx to
18394         const rtx_insn *.
18395         (get_branch_condition): Likewise.
18396         (condition_dominates_p): Likewise.
18397         (make_return_insns): Move declaration of local "pat" earlier, to
18398         after we've handled NONJUMP_INSN_P and non-sequences, using its
18399         methods to simplify the code and for type-safety.
18400         * rtl.h (find_constant_src): Strengthen param from const_rtx to
18401         const rtx_insn *.
18402         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
18403         (condjump_p): Strengthen param from const_rtx to
18404         const rtx_insn *.
18405         (any_condjump_p): Likewise.
18406         (any_uncondjump_p): Likewise.
18407         (pc_set): Likewise.
18408         (condjump_label): Likewise.
18409         (simplejump_p): Likewise.
18410         (returnjump_p): Likewise.
18411         (onlyjump_p): Likewise.
18412         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
18413         (invert_jump): Likewise.
18414         (condjump_in_parallel_p): Strengthen param from const_rtx to
18415         const rtx_insn *.
18416         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
18417         to const rtx_insn *.
18418         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
18419         to const rtx_insn *.
18420         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
18421
18422 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18423
18424         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
18425         above the conditional, and convert the check on GET_CODE to a
18426         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
18427         the conditional.  Simplify the conditional by using methods of
18428         "trial_seq".
18429
18430 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18431
18432         * haifa-sched.c (check_clobbered_conditions): Strengthen local
18433         "link" from rtx to rtx_insn_list *, and use its methods for
18434         clarity and type-safety.
18435         (toggle_cancelled_flags): Likewise.
18436         (restore_last_backtrack_point): Likewise.
18437         (queue_to_ready): Use insn method of "link" in one place.
18438         (schedule_block): Strengthen local "link" from rtx to
18439         rtx_insn_list *, and use its methods for clarity and type-safety.
18440
18441 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18442
18443         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
18444         param "insn" from const_rtx to const rtx_insn *.
18445         (sched_get_reverse_condition_uncached): Likewise.
18446         (sched_get_condition_with_rev): Likewise.
18447         (sched_has_condition_p): Likewise.
18448         (sched_insns_conditions_mutex_p): Likewise for both params.
18449         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
18450         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
18451         (setup_insn_reg_uses): Move local "list" to be more tightly
18452         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
18453         its methods for clarity and type-safety.
18454         (sched_analyze_1): Strengthen local "pending" from rtx to
18455         rtx_insn_list *, and local "pending_mem" from rtx to
18456         rtx_expr_list *.  Use methods of each for clarity and type-safety.
18457         (sched_analyze_2): Likewise.
18458         (sched_analyze_insn): Likewise.
18459
18460         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
18461         param from const_rtx to const rtx_insn *.
18462         (sched_insns_conditions_mutex_p): Likewise for both params.
18463         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
18464         param.
18465
18466         * system.h (CONST_CAST_RTX_INSN): New macro.
18467
18468 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18469
18470         * recog.c (peep2_attempt): Strengthen return type from rtx to
18471         rtx_insn *.
18472         (peep2_update_life): Likewise for params "last", "prev", removing
18473         a checked cast made redundant by this.
18474         (peephole2_optimize): Likewise for local "last".
18475
18476 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18477
18478         * basic-block.h (set_block_for_insn): Eliminate this macro in
18479         favor of...
18480         * rtl.h (set_block_for_insn): New inline function, imposing the
18481         requirement that the "insn" param is an rtx_insn *.
18482
18483 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18484
18485         * caller-save.c (setup_save_areas): Strengthen local "insn" from
18486         rtx to rtx_insn *.
18487         * final.c (get_call_reg_set_usage): Likewise for first param,
18488         eliminating a checked cast.
18489         * regs.h (get_call_reg_set_usage): Likewise for first param.
18490         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
18491         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
18492         cast, replacing references to "x" with "call_insn" where
18493         appropriate.
18494         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
18495         rtx_insn *, adding a checked cast.
18496
18497 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18498
18499         * output.h (final_scan_insn): Strengthen first param from rtx to
18500         rtx_insn *.
18501
18502         * final.c (final_scan_insn): Likewise, renaming it back from
18503         "uncast_insn" to "insn", eliminating the checked cast.
18504
18505         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
18506         "vec" with an rtx_sequence * "seq", taking a copy of
18507         "final_sequence", and using methods of "seq" for clarity, and for
18508         type-safety in the calls to final_scan_insn.
18509         * config/mips/mips.c (mips_output_conditional_branch): Use methods
18510         of "final_sequence" for clarity, and for type-safety in the call to
18511         final_scan_insn.
18512         * config/sh/sh.c (print_slot): Strengthen param from rtx to
18513         rtx_sequence * and rename from "insn" to "seq".
18514
18515 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18516
18517         * jump.c (delete_related_insns): Introduce a new local "table" by
18518         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
18519         get_labels method of "table" to simplify access to the labels in
18520         the jump table.
18521
18522 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18523
18524         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
18525         f_minmaxs, f_minmaxd types.
18526
18527 2014-09-05  Richard Biener  <rguenther@suse.de>
18528
18529         * cfgloop.c (mark_loop_for_removal): Record former header
18530         when ENABLE_CHECKING.
18531         * cfgloop.h (strut loop): Add former_header member when
18532         ENABLE_CHECKING.
18533         * loop-init.c (fix_loop_structure): Sanity check loops
18534         marked for removal if they re-appeared.
18535
18536 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18537
18538         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
18539         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
18540
18541         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
18542         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
18543         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
18544         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
18545         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
18546         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
18547         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
18548         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
18549         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
18550         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
18551         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
18552         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
18553         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
18554         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
18555         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
18556         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
18557         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
18558         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
18559         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
18560         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
18561         with int{32,16,8}_t.
18562
18563 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18564
18565         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
18566         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
18567         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
18568         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
18569         Remove temporary __asm__ and reimplement.
18570
18571 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18572
18573         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
18574         handling cmge, cmgt, cmeq, cmtst.
18575
18576         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
18577         cmlt, cmgeu, cmgtu, cmtst): Remove.
18578
18579         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
18580         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
18581         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
18582         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
18583
18584 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18585
18586         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
18587         TYPES_TST): Define.
18588         (aarch64_fold_builtin): Update pattern for cmtst.
18589
18590         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
18591         Declare.
18592
18593         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
18594
18595         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
18596         Switch operands, separate out more cases, refactor.
18597
18598         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
18599
18600         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
18601         argument; rename old version to...
18602         (aarch64_const_vec_all_same_in_range_p): ...this.
18603         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
18604
18605         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
18606
18607 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18608
18609         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18610         Remove qualifier_const_pointer, update comment.
18611
18612 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18613
18614         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
18615
18616 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18617
18618         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
18619         varargs with pointer parameter.
18620         (aarch64_simd_expand_builtin): pass pointer into previous.
18621
18622 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18623
18624         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
18625         alus_ext.
18626
18627 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18628
18629         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
18630         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
18631         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
18632         Replace temporary asm with call to builtin.
18633         (vrbit_p8, vrbitq_p8): New functions.
18634
18635 2014-09-05  Richard Biener  <rguenther@suse.de>
18636
18637         * cfgloop.c (mark_loop_for_removal): New function.
18638         * cfgloop.h (mark_loop_for_removal): Declare.
18639         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
18640         (merge_blocks): Likewise.
18641         (duplicate_block): Likewise.
18642         * except.c (sjlj_emit_dispatch_table): Likewise.
18643         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
18644         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
18645         (thread_through_loop_header): Likewise.
18646
18647 2014-09-05  Richard Biener  <rguenther@suse.de>
18648
18649         PR middle-end/63148
18650         * fold-const.c (try_move_mult_to_index): Remove.
18651         (fold_binary_loc): Do not call it.
18652         * tree-data-ref.c (dr_analyze_indices): Strip conversions
18653         from the base object again.
18654
18655 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
18656
18657         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
18658         DImode.
18659
18660 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
18661
18662         PR target/55701
18663         * config/arm/arm.md (setmem): New pattern.
18664         * config/arm/arm-protos.h (struct tune_params): New fields.
18665         (arm_gen_setmem): New prototype.
18666         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18667         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18668         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18669         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18670         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18671         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18672         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18673         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18674         (arm_const_inline_cost): New function.
18675         (arm_block_set_max_insns): New function.
18676         (arm_block_set_non_vect_profit_p): New function.
18677         (arm_block_set_vect_profit_p): New function.
18678         (arm_block_set_unaligned_vect): New function.
18679         (arm_block_set_aligned_vect): New function.
18680         (arm_block_set_unaligned_non_vect): New function.
18681         (arm_block_set_aligned_non_vect): New function.
18682         (arm_block_set_vect, arm_gen_setmem): New functions.
18683
18684 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
18685
18686         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
18687
18688 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
18689
18690         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18691
18692 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
18693
18694         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
18695         an rtx.
18696         * valtrack.h: Adjust.
18697
18698 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
18699
18700         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
18701         an rtx.
18702         (emit_jump_insn_before_noloc): Likewise.
18703         (emit_call_insn_before_noloc): Likewise.
18704         (emit_label_before): Likewise.
18705         (emit_label_after): Likewise.
18706         (emit_insn_before_setloc): Likewise.
18707         (emit_jump_insn_before_setloc): Likewise.
18708         (emit_call_insn_before_setloc): Likewise.
18709         (emit_call_insn_before): Likewise.
18710         * rtl.h: Adjust.
18711
18712 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18713
18714         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
18715         rtx_insn *, eliminating a checked cast.
18716
18717 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18718
18719         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
18720         const_rtx to const rtx_insn *.
18721         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
18722         cast.
18723
18724 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18725
18726         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
18727         fixup_args_size_notes.
18728         * expr.c (fixup_args_size_notes): Strengthen first two params from
18729         rtx to rtx_insn *, eliminating a checked cast.
18730         * rtl.h (fixup_args_size_notes): Strengthen first two params from
18731         rtx to rtx_insn *.
18732
18733 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18734
18735         * haifa-sched.c (get_ready_element): Strengthen return type from
18736         rtx to rtx_insn *.
18737         * sched-int.h (get_ready_element): Likewise.
18738
18739 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
18740
18741         PR target/63165
18742         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
18743         indexed_or_indirect_operand instead of memory_operand.
18744         (floatsi<mode>2_lfiwzx_mem): Ditto.
18745
18746 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
18747
18748         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
18749         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
18750         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
18751
18752 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
18753
18754         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
18755         rtx.
18756         (get_last_nonnote_insn): Likewise.
18757         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
18758         * resource.c (find_basic_block): Likewise.
18759         * rtl.h: Adjust.
18760         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
18761         const_rtx.
18762
18763 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
18764
18765         * genattr.c (main): Within the prototype of insn_latency written
18766         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
18767         * genautomata.c (output_internal_maximal_insn_latency_func):
18768         Within the implementation of insn_latency written out to
18769         insn-automata.c, strengthen both params from rtx to rtx_insn *,
18770         eliminating a pair of checked casts.
18771
18772 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
18773
18774         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
18775         rtx_insn *.
18776
18777         * rtl.h (eh_returnjump_p): Likewise.
18778
18779 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
18780
18781         * Makefile.in (TAGS): Handle constructs in timevar.def.
18782
18783 2014-09-04  Guozhi Wei  <carrot@google.com>
18784
18785         PR target/62040
18786         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
18787         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
18788         it into two patterns.
18789         (move_lo_quad_internal_be_<mode>): Likewise.
18790
18791 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18792
18793         * doc/options.texi: Document that Var and Init are required if CPP
18794         is given.
18795         * optc-gen.awk: Require Var and Init if CPP is given.
18796         * common.opt (Wpedantic): Use Init.
18797
18798 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18799
18800         * config/rs6000/rs6000.c (special_handling_values): Add
18801         SH_EXTRACT.
18802         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
18803         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
18804         as swappable with special handling SH_EXTRACT.  Remove
18805         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
18806         optimization.
18807         (adjust_extract): New function.
18808         (handle_special_swappables): Add default to case statement; add
18809         case for SH_EXTRACT that calls adjust_extract.
18810         (dump_swap_insn_table): Handle SH_EXTRACT.
18811
18812 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18813
18814         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
18815         selection of 0th memory doubleword, regardless of endianness.
18816
18817 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18818
18819         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
18820
18821 2014-09-04  Alan Modra  <amodra@gmail.com>
18822
18823         PR debug/60655
18824         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
18825         can't be output.
18826
18827 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
18828
18829         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
18830         * targhooks.c (default_dwarf_frame_reg_mode): New function.
18831         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
18832         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
18833         * doc/tm.texi: Regenerate.
18834         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
18835         selection logic to default_dwarf_frame_reg_mode.
18836
18837 2014-09-03  Marek Polacek  <polacek@redhat.com>
18838
18839         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
18840         by -Wall.
18841
18842 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
18843
18844         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
18845         the automodified register.
18846
18847 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
18848
18849         * output.h (get_some_local_dynamic_name): Declare.
18850         * final.c (some_local_dynamic_name): New variable.
18851         (get_some_local_dynamic_name): New function.
18852         (final_end_function): Clear some_local_dynamic_name.
18853         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
18854         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
18855         (print_operand): Report an error if '%&' is used inappropriately.
18856         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
18857         (get_some_local_dynamic_name_1): Delete.
18858         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
18859         (rs6000_get_some_local_dynamic_name): Delete.
18860         (rs6000_get_some_local_dynamic_name_1): Delete.
18861         (print_operand): Report an error if '%&' is used inappropriately.
18862         * config/s390/s390.c (machine_function): Remove some_ld_name.
18863         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
18864         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
18865         * config/sparc/sparc.c: Include rtl-iter.h.
18866         (machine_function): Remove some_ld_name.
18867         (sparc_print_operand): Report an error if '%&' is used inappropriately.
18868         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
18869
18870 2014-09-03  Richard Henderson  <rth@redhat.com>
18871
18872         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
18873         (aarch64_popwb_pair_reg): Remove.
18874         (aarch64_set_frame_expr): Remove.
18875         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
18876         the restore ops performed by the insns generated.
18877         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
18878         insn.  Perform the calls_eh_return addition later; do not attempt to
18879         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
18880         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
18881         special markup at all.  Load cfun->machine->frame.hard_fp_offset
18882         into a local variable.
18883         (aarch64_frame_pointer_required): Don't check calls_alloca.
18884
18885 2014-09-03  Richard Biener  <rguenther@suse.de>
18886
18887         * opts.c (default_options_optimization): Adjust
18888         max-combine-insns to 2 for -Og.
18889
18890 2014-09-03  Martin Jambor  <mjambor@suse.cz>
18891
18892         PR ipa/62015
18893         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
18894         pass-trough jump functions correctly.
18895
18896 2014-09-03  Martin Jambor  <mjambor@suse.cz>
18897
18898         PR ipa/61986
18899         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
18900         created replacements in ascending order of offsets.
18901         (known_aggs_to_agg_replacement_list): Likewise.
18902
18903 2014-09-03  Martin Liska  <mliska@suse.cz>
18904
18905         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
18906         is set to set uninitialized value for vnresult.
18907
18908 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18909
18910         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
18911         for TARGET_MUST_PASS_IN_STACK.
18912
18913 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18914
18915         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
18916         for TARGET_ARG_PARTIAL_BYTES.
18917
18918 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18919
18920         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
18921         instructions for varargs implementation.
18922         (nds32_expand_epilogue): Emit stack adjustment instructions for
18923         varargs implementation.
18924
18925 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18926
18927         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
18928         optimization detection.
18929
18930 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18931
18932         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
18933         arguments.
18934         (nds32_function_arg_advance): Deal with nameless arguments.
18935         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
18936         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
18937         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
18938
18939 2014-09-03  Richard Biener  <rguenther@suse.de>
18940
18941         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
18942         (struct bb_bitmap_sets): Remove deferred member.
18943         (BB_DEFERRED): Remove.
18944         (defer_or_phi_translate_block): Remove.
18945         (compute_antic_aux): Remove deferring of blocks, assert
18946         proper iteration order.
18947         (compute_antic): Do not set BB_DEFERRED.
18948         (eliminate): Allocate el_avail of proper size initially.
18949
18950 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18951
18952         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
18953         according to the value of crtl->args.pretend_args_size.
18954
18955 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18956
18957         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
18958         varargs information.
18959
18960 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18961
18962         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
18963         implementation for TARGET_SETUP_INCOMING_VARARGS.
18964         (nds32_strict_argument_naming): Refine comment.
18965         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
18966         Define for future implementation.
18967
18968 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
18969
18970         * config/i386/adxintrin.h (_subborrow_u32): New.
18971         (_addcarry_u32): Ditto.
18972         (_subborrow_u64): Ditto.
18973         (_addcarry_u64): Ditto.
18974         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
18975         IX86_BUILTIN_SBB64.
18976         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
18977         __builtin_ia32_sbb_u64
18978
18979 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18980
18981         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
18982         GPR-specific stuff.
18983         (nds32_function_arg_advance): Likewise.
18984         (nds32_init_cumulative_args): Likewise.
18985         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
18986         (NDS32_FIRST_GPR_REGNUM): Define.
18987         (NDS32_LAST_GPR_REGNUM): Define.
18988         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
18989         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
18990         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
18991         (machine_function): Use GRP-specific stuff.
18992
18993 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18994
18995         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
18996         (nds32_expand_epilogue): Likewise.
18997         (nds32_expand_prologue_v3push): Likewise.
18998         (nds32_expand_epilogue_v3pop): Likewise.
18999
19000 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
19001
19002         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
19003         v3push/v3pop for variadic function.
19004         * config/nds32/nds32.md (prologue, epilogue): Likewise.
19005
19006 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
19007
19008         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
19009         Check rtx for varargs implementation.
19010         (nds32_output_stack_pop): Likewise.
19011         * config/nds32/nds32-protos.h: Have a rtx argument for
19012         nds32_output_stack_push and nds32_output_stack_pop.
19013         * config/nds32/nds32.md: Likewise.
19014
19015 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
19016
19017         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
19018         to check if FUNC is an interrupt service routine.
19019         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
19020
19021 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
19022
19023         * config/nds32/nds32.h (machine_function): Add some fields for variadic
19024         arguments implementation.
19025
19026 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
19027
19028         * config/nds32/nds32-predicates.c
19029         (nds32_valid_stack_push_pop): Rename to ...
19030         (nds32_valid_stack_push_pop_p): ... this.
19031         * config/nds32/nds32-protos.h: Likewise.
19032         * config/nds32/predicates.md: Likewise.
19033
19034 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
19035
19036         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
19037         (nds32_emit_stack_v3push): ... this.
19038         (nds32_gen_stack_v3pop): Rename to ...
19039         (nds32_emit_stack_v3pop): ... this and consider CFA restore
19040         information.
19041
19042 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
19043
19044         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
19045         (nds32_emit_stack_push_multiple): ... this.
19046         (nds32_gen_stack_pop_multiple): Rename to ...
19047         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
19048         information.
19049
19050 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19051
19052         PR target/61078
19053         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
19054         and add a second splitter to handle the remaining cases.
19055
19056 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
19057
19058         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
19059
19060 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
19061
19062         * cfgexpand.c (label_rtx_for_bb): Change type to
19063         hash_map<basic_block, rtx_code_label *> *.
19064         (expand_gimple_basic_block): Adjust.
19065         (pass_expand::execute): Likewise.
19066
19067 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
19068
19069         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
19070         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
19071         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
19072         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
19073         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
19074         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
19075         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
19076         of rtx.
19077
19078 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
19079
19080         * alloc-pool.c: Include coretypes.h.
19081         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
19082         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
19083         hash_set instead of htab.
19084         * ggc-page.c (in_gc): New variable.
19085         (ggc_free): Do nothing if a collection is taking place.
19086         (ggc_collect): Set in_gc appropriately.
19087         * ggc.h (gt_ggc_mx(const char *)): New function.
19088         (gt_pch_nx(const char *)): Likewise.
19089         (gt_ggc_mx(int)): Likewise.
19090         (gt_pch_nx(int)): Likewise.
19091         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
19092         (hash_map::hash_entry::pch_nx): Likewise.
19093         (hash_map::hash_entry::pch_nx_helper): Likewise.
19094 (hash_map::hash_map): Adjust.
19095 (hash_map::create_ggc): New function.
19096 (gt_ggc_mx): Likewise.
19097 (gt_pch_nx): Likewise.
19098         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
19099 (default_hashset_traits::pch_nx): Likewise.
19100 (hash_set::hash_entry::ggc_mx): Likewise.
19101 (hash_set::hash_entry::pch_nx): Likewise.
19102 (hash_set::hash_entry::pch_nx_helper): Likewise.
19103 (hash_set::hash_set): Adjust.
19104 (hash_set::create_ggc): New function.
19105 (hash_set::elements): Likewise.
19106 (gt_ggc_mx): Likewise.
19107 (gt_pch_nx): Likewise.
19108         * hash-table.h (hash_table::hash_table): Adjust.
19109 (hash_table::m_ggc): New member.
19110         (hash_table::~hash_table): Adjust.
19111         (hash_table::expand): Likewise.
19112         (hash_table::empty): Likewise.
19113 (gt_ggc_mx): New function.
19114         (hashtab_entry_note_pointers): Likewise.
19115 (gt_pch_nx): Likewise.
19116
19117 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19118
19119         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
19120         built-in definition.
19121         (XVCVUXDDP_SCALE): Likewise.
19122         (XVCVDPSXDS_SCALE): Likewise.
19123         (XVCVDPUXDS_SCALE): Likewise.
19124         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
19125         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
19126         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
19127         VSX_BUILTIN_XVCVDPUXDS_SCALE.
19128         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
19129         prototype.
19130         * config/rs6000/rs6000.c (real.h): New include.
19131         (rs6000_scale_v2df): New function.
19132         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
19133         (UNSPEC_VSX_XVCVUXDDP): Likewise.
19134         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
19135         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
19136         (vsx_xvcvsxddp_scale): New define_expand.
19137         (vsx_xvcvsxddp): New define_insn.
19138         (vsx_xvcvuxddp_scale): New define_expand.
19139         (vsx_xvcvuxddp): New define_insn.
19140         (vsx_xvcvdpsxds_scale): New define_expand.
19141         (vsx_xvcvdpsxds): New define_insn.
19142         (vsx_xvcvdpuxds_scale): New define_expand.
19143         (vsx_xvcvdpuxds): New define_insn.
19144         * doc/extend.texi (vec_ctf): Add new prototypes.
19145         (vec_cts): Likewise.
19146         (vec_ctu): Likewise.
19147         (vec_splat): Likewise.
19148         (vec_div): Likewise.
19149         (vec_mul): Likewise.
19150
19151 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19152
19153         PR target/62275
19154         * config/arm/neon.md
19155         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
19156         <v_cmp_result>): New pattern.
19157         * config/arm/iterators.md (NEON_VCVT): New int iterator.
19158         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
19159         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
19160         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
19161         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
19162         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
19163
19164 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19165
19166         PR target/62275
19167         * config/arm/iterators.md (FIXUORS): New code iterator.
19168         (VCVT): New int iterator.
19169         (su_optab): New code attribute.
19170         (su): Likewise.
19171         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
19172
19173 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19174
19175         * config/aarch64/predicates.md (aarch64_comparison_operation):
19176         New special predicate.
19177         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
19178         aarch64_comparison_operation instead of matching an operator.
19179         Update operand numbers.
19180         (csinc3<mode>_insn): Likewise.
19181         (*csinv3<mode>_insn): Likewise.
19182         (*csneg3<mode>_insn): Likewise.
19183         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
19184         * config/aarch64/aarch64.c (aarch64_get_condition_code):
19185         Return -1 instead of aborting on invalid condition codes.
19186         (aarch64_print_operand): Update aarch64_get_condition_code callsites
19187         to assert that the returned condition code is valid.
19188         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
19189
19190 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
19191
19192         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
19193         tree.def, and gimple.def
19194
19195 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
19196             Balaji V. Iyer  <balaji.v.iyer@intel.com>
19197             Igor Zamyatin  <igor.zamyatin@intel.com>
19198
19199         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
19200         (__cilkrts_cilk_for_64): Likewise.
19201         * cilk-common.c (declare_cilk_for_builtin): New function.
19202         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
19203         __cilkrts_cilk_for_64 bultins.
19204         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
19205         CILK_TI_F_LOOP_64.
19206         (cilk_for_32_fndecl): New define.
19207         (cilk_for_64_fndecl): Likewise.
19208         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
19209         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
19210         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
19211         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
19212         GF_OMP_FOR_COMBINED_INTO.
19213         * gimplify.c (gimplify_scan_omp_clauses): Added
19214         OMP_CLAUSE__CILK_FOR_COUNT_ case.
19215         (gimplify_adjust_omp_clauses): Ditto.
19216         (gimplify_omp_for): Added CILK_FOR case.
19217         (gimplify_expr): Ditto.
19218         * omp-low.c: Include cilk.h.
19219         (extract_omp_for_data): Set appropriate kind for
19220         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
19221         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
19222         (create_omp_child_function_name): Added second argument to handle
19223         cilk_for case.
19224         (cilk_for_check_loop_diff_type): New function.
19225         (expand_cilk_for_call): Likewise.
19226         (expand_cilk_for): Likewise.
19227         (create_omp_child_function): Set cilk_for_count; handle the cases when
19228         it is true; call create_omp_child_function_name with second argument.
19229         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
19230         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
19231         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
19232         * tree-nested.c (convert_nonlocal_omp_clauses): Added
19233         OMP_CLAUSE__CILK_FOR_COUNT_ case.
19234         (convert_local_omp_clauses): Ditto.
19235         * tree-pretty-print.c (dump_omp_clause): Added
19236         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
19237         (dump_generic_node): Added CILK_FOR case.
19238         * tree.c (omp_clause_num_ops): New element
19239         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
19240         (omp_clause_code_name): New element _Cilk_for_count_.
19241         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
19242         * tree.def: Add tree code for CILK_FOR.
19243
19244 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
19245
19246         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
19247         (ppc403-compare): Add "exts with dot" case.
19248         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
19249         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
19250         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
19251         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
19252         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
19253         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
19254         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
19255         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19256         cell-cmp-microcoded): Similarly.
19257         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
19258         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
19259         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
19260         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
19261         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
19262         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
19263         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
19264         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
19265         (power6-compare): Add "exts with dot" case.
19266         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
19267         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
19268         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
19269
19270         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
19271         if avoiding Cell microcode.
19272         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
19273         (is_cracked_insn): Ditto.
19274         (insn_must_be_first_in_group): Ditto.
19275         * config/rs6000/rs6000.md (dot): Adjust comment.
19276         (cell_micro): Handle exts+dot.
19277         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
19278         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
19279         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
19280         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
19281         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
19282         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
19283         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
19284
19285 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
19286
19287         * config/rs6000/rs6000.md (QHSI): Delete.
19288         (EXTQI, EXTHI, EXTSI): New mode iterators.
19289         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
19290         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
19291         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
19292         9 anonymous instructions, and 8 splitters): Delete.
19293         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
19294         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
19295         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
19296         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
19297         *zero_extendsi<mode>2_dot2): New.
19298
19299 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
19300
19301         * config/rs6000/rs6000.md (any_extend): New code iterator.
19302         (u, su): New code attributes.
19303         (dmode, DMODE): New mode attributes.
19304         (<su>mul<mode>3_highpart): New.
19305         (*<su>mul<mode>3_highpart): New.
19306         (<su>mulsi3_highpart_le): New.
19307         (<su>muldi3_highpart_le): New.
19308         (<su>mulsi3_highpart_64): New.
19309         (<u>mul<mode><dmode>3): New.
19310         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
19311         splitters): Delete.
19312         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
19313         splitters): Delete.
19314
19315 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
19316
19317         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
19318         *mulsi3_internal2, and two splitters): Delete.
19319         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
19320         Delete.
19321         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
19322
19323 2014-09-02  Richard Biener  <rguenther@suse.de>
19324
19325         PR tree-optimization/62695
19326         * tree-ssa-structalias.c (find_func_clobbers): Add missing
19327         vector truncate.
19328
19329 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
19330
19331         PR target/62312
19332         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
19333
19334 2014-09-01  Andi Kleen  <ak@linux.intel.com>
19335
19336         * file-find.c (add_prefix_begin): Add.
19337         (do_add_prefix): Rename from add_prefix with first argument.
19338         (add_prefix): Add new wrapper.
19339         * file-find.h (add_prefix_begin): Add.
19340         * gcc-ar.c (main): Support -B option.
19341
19342 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
19343
19344         * genemit.c: Include dumpfile.h.
19345         (gen_split): Print name of splitter function to dump file.
19346
19347 2014-09-01  Richard Biener  <rguenther@suse.de>
19348
19349         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
19350         Use stack auto_vecs for constraint expressions.
19351         (find_func_aliases_for_call): Likewise.
19352         (find_func_aliases): Likewise.
19353         (find_func_clobbers): Likewise.
19354
19355 2014-09-01  Richard Biener  <rguenther@suse.de>
19356
19357         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
19358         operands vector in most cases.  Remove redundant code.
19359
19360 2014-09-01  Olivier Hainque  <hainque@adacore.com>
19361
19362         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
19363         $WIND_BASE instead of designating a harcoded arbitrary home dir.
19364         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
19365
19366 2014-09-01  Richard Biener  <rguenther@suse.de>
19367
19368         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
19369         copy_reference_ops_from_call, vn_nary_op_compute_hash,
19370         vn_reference_compute_hash, vn_reference_insert): Remove.
19371         (vn_reference_lookup_call): New function.
19372         * tree-ssa-sccvn.c (vn_reference_compute_hash,
19373         copy_reference_ops_from_ref, copy_reference_ops_from_call,
19374         vn_reference_insert, vn_nary_op_compute_hash): Make static.
19375         (create_reference_ops_from_call): Remove.
19376         (vn_reference_lookup_3): Properly update shared_lookup_references.
19377         (vn_reference_lookup_pieces): Assert that we updated
19378         shared_lookup_references properly.
19379         (vn_reference_lookup): Likewise.
19380         (vn_reference_lookup_call): New function.
19381         (visit_reference_op_call): Use it.  Avoid re-building the
19382         reference ops.
19383         (visit_reference_op_load): Remove redundant lookup.
19384         (visit_reference_op_store): Perform special tail-merging work
19385         only when possibly doing tail-merging.
19386         (visit_use): Likewise.
19387         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
19388
19389 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
19390
19391         PR target/62025
19392         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
19393         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
19394         (find_inc): Revert 2014-08-13 change.
19395
19396 2014-09-01  Marek Polacek  <polacek@redhat.com>
19397
19398         PR middle-end/61903
19399         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
19400         Change the type of V to unsigned HOST_WIDE_INT.
19401
19402 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19403
19404         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
19405         the size of byte markers.
19406         (do_shift_rotate): Fix confusion between host, target and marker byte
19407         size.
19408         (verify_symbolic_number_p): Likewise.
19409         (find_bswap_or_nop_1): Likewise.
19410         (find_bswap_or_nop): Likewise.
19411
19412 2014-09-01  Olivier Hainque  <hainque@adacore.com>
19413
19414         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
19415         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
19416
19417 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
19418
19419         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
19420         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
19421         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
19422
19423 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
19424
19425         PR sanitizer/61897
19426         PR sanitizer/62140
19427         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
19428         (build_check_stmt): Likewise.
19429         (instrument_strlen_call): Likewise.
19430         (asan_expand_check_ifn): Likewise and fix types.
19431         (maybe_cast_to_ptrmode): New function.
19432
19433 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19434
19435         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
19436
19437 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
19438
19439         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
19440
19441 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
19442
19443         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
19444         prefix to function labels when generating fast indirect calls.
19445
19446 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
19447
19448         PR bootstrap/62304
19449
19450         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
19451         param back from rtx_insn * to rtx.  Rename param from "label" to
19452         "label_or_return", reintroducing "label" as an rtx_insn * after
19453         we've ensured it's not a RETURN.
19454         (first_active_target_insn): Likewise for return type and param;
19455         add a checked cast to rtx_insn * once we've ensured "insn" is not
19456         a RETURN.
19457         (steal_delay_list_from_target): Convert param "pnew_thread" back
19458         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
19459         with JUMP_LABEL.
19460         (own_thread_p): Convert param "thread" back from an rtx_insn * to
19461         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
19462         cast once we've established we're not dealing with a RETURN,
19463         renaming subsequent uses of "thread" to "thread_insn".
19464         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
19465         to JUMP_LABEL.
19466         (follow_jumps): Convert return type and param "label" from
19467         rtx_insn * back to rtx.  Move initialization of "value" to after
19468         the handling for ANY_RETURN_P, adding a checked cast there to
19469         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
19470         rename to "this_label_or_return", reintroducing "this_label" as
19471         an rtx_insn * once we've handled the case where it could be an
19472         ANY_RETURN_P.
19473         (fill_slots_from_thread): Rename param "thread" to
19474         "thread_or_return", converting from an rtx_insn * back to an rtx.
19475         Reintroduce name "thread" as an rtx_insn * local with a checked
19476         cast once we've handled the case of it being an ANY_RETURN_P.
19477         Convert local "new_thread" from an rtx_insn * back to an rtx.
19478         Add a checked cast when assigning to "trial" from "new_thread".
19479         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
19480         checked cast to rtx_insn * from "new_thread" when invoking
19481         get_label_before.
19482         (fill_eager_delay_slots): Convert locals "target_label",
19483         "insn_at_target" from rtx_insn * back to rtx.
19484         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
19485         (relax_delay_slots): Convert locals "trial", "target_label" from
19486         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
19487         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
19488         invoking update_block.
19489         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
19490         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
19491
19492         * resource.h (mark_target_live_regs): Undo erroneous conversion
19493         of second param of r214693, converting it back from rtx_insn * to
19494         rtx, since it could be a RETURN.
19495
19496         * resource.c (find_dead_or_set_registers): Similarly, convert
19497         param "jump_target" back from an rtx_insn ** to an rtx *, as we
19498         could be writing back a RETURN.  Rename local rtx_insn * "next" to
19499         "next_insn", and introduce "lab_or_return" as a local rtx,
19500         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
19501         (mark_target_live_regs): Undo erroneous conversion
19502         of second param of r214693, converting it back from rtx_insn * to
19503         rtx, since it could be a RETURN.  Rename it from "target" to
19504         "target_maybe_return", reintroducing the name "target" as a local
19505         rtx_insn * with a checked cast, after we've handled the case of
19506         ANY_RETURN_P.
19507
19508 2014-08-29  DJ Delorie  <dj@redhat.com>
19509
19510         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
19511         pointer size up to a power of two.
19512         * defaults.h (DWARF2_ADDR_SIZE): Round up.
19513         (POINTER_SIZE_UNITS): New, rounded up value.
19514         * dwarf2asm.c (size_of_encoded_value): Use it.
19515         (dw2_output_indirect_constant_1): Likewise.
19516         * expmed.c (init_expmed_one_conv): We now know the sizes of
19517         partial int modes.
19518         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
19519         * optabs.c (expand_float): Use precision, not size.
19520         (expand_fix): Likewise.
19521         * simplify-rtx (simplify_unary_operation_1): Likewise.
19522         * tree-dfa.c (get_ref_base_and_extent): Likewise.
19523         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
19524         (default_assemble_integer) Likewise.
19525         (dump_tm_clone_pairs): Likewise.
19526         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
19527         * var-tracking.c (adjust_mems): Allow partial-int modes also.
19528         (prepare_call_arguments): Likewise.
19529         * stor-layout.c (finalize_type_size): Preserve precision.
19530         (layout_type): Use precision, not size.
19531
19532         * expr.c (convert_move): If the target has an explicit converter,
19533         use it.
19534
19535 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
19536
19537         * gdbinit.in: Skip various inline functions in rtl.h when
19538         stepping.
19539
19540 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
19541
19542         PR bootstrap/62301
19543         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
19544
19545 2014-08-29  Richard Biener  <rguenther@suse.de>
19546
19547         PR tree-optimization/62291
19548         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
19549         exactly the vector size needed and use quick_push.
19550         (phi_translate_1): Adjust comment.
19551         (valid_in_sets): Remove block argument and remove pointless
19552         checking of NAMEs.
19553         (dependent_clean): Adjust for removal of block argument.
19554         (clean): Likewise.
19555         (compute_antic_aux): Likewise.
19556         (compute_partial_antic_aux): Likewise.
19557
19558 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19559             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19560             Anna Tikhonova  <anna.tikhonova@intel.com>
19561             Ilya Tocar  <ilya.tocar@intel.com>
19562             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19563             Ilya Verbin  <ilya.verbin@intel.com>
19564             Kirill Yukhin  <kirill.yukhin@intel.com>
19565             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19566
19567         * config/i386/sse.md
19568         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
19569         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
19570         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
19571         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
19572
19573 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19574             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19575             Anna Tikhonova  <anna.tikhonova@intel.com>
19576             Ilya Tocar  <ilya.tocar@intel.com>
19577             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19578             Ilya Verbin  <ilya.verbin@intel.com>
19579             Kirill Yukhin  <kirill.yukhin@intel.com>
19580             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19581
19582         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
19583         * config/i386/sse.md
19584         (define_mode_iterator VI4_128_8_256): New.
19585         (define_mode_iterator VI2_128_4_256): Ditto.
19586         (define_mode_iterator PMOV_DST_MODE): Rename into
19587         (define_mode_iterator PMOV_DST_MODE_1): this.
19588         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
19589         Use PMOV_DST_MODE_1 mode iterator.
19590         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
19591         Ditto.
19592         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
19593         Ditto.
19594         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
19595         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
19596         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
19597         (define_mode_iterator PMOV_DST_MODE_2): New.
19598         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
19599         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
19600         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
19601         Ditto.
19602         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
19603         (define_mode_attr pmov_dst_3): Ditto.
19604         (define_mode_attr pmov_dst_zeroed_3): Ditto.
19605         (define_mode_attr pmov_suff_3): Ditto.
19606         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
19607         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
19608         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
19609         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
19610         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
19611         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
19612         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
19613         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
19614         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
19615         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
19616         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
19617         (define_mode_attr pmov_dst_4): Ditto.
19618         (define_mode_attr pmov_dst_zeroed_4): Ditto.
19619         (define_mode_attr pmov_suff_4): Ditto.
19620         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
19621         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
19622         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
19623         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
19624         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
19625         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
19626         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
19627         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
19628         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
19629         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
19630         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
19631
19632 2014-08-29  Richard Biener  <rguenther@suse.de>
19633
19634         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
19635         NON_LVALUE_EXPR in gimple.
19636
19637 2014-08-29  Richard Biener  <rguenther@suse.de>
19638
19639         PR middle-end/62292
19640         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
19641         from previous refactoring.
19642         (gimple_fold_builtin_strncpy): Likewise.
19643
19644 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
19645
19646         PR bootstrap/62300
19647         * function.c (assign_parm_setup_reg): Remove erroneous checked
19648         cast to rtx_insn * on result of gen_extend_insn in favor of
19649         introducing a new local rtx "pat".
19650
19651 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19652
19653         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
19654         to silence warning.
19655         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
19656
19657 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19658
19659         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
19660         (next_insn): Likewise.
19661         * emit-rtl.c (next_insn): Likewise.
19662         (previous_insn): Likewise.
19663         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
19664         "insn" and "next" from rtx to rtx_insn *.
19665         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
19666         "insn", "insn1", "vliw_start",  "prologue_end_note",
19667         "last_insn_in_packet".
19668
19669 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19670
19671         * shrink-wrap.h (active_insn_between): Strengthen both params from
19672         rtx to rtx_insn *.
19673         * function.c (active_insn_between): Likewise.
19674
19675 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19676
19677         * genattr.c (main): When writing out insn-attr.h, strengthen param
19678         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
19679         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
19680         writing out the definition of dfa_clear_single_insn_cache to the
19681         generated insn-automata.c
19682
19683 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19684
19685         * resource.h (clear_hashed_info_for_insn): Strengthen param from
19686         rtx to rtx_insn *.
19687         (incr_ticks_for_insn): Likewise.
19688         (init_resource_info): Likewise.
19689
19690         * resource.c (init_resource_info): Likewise.
19691         (clear_hashed_info_for_insn): Likewise.
19692         (incr_ticks_for_insn): Likewise.
19693
19694         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
19695         rtx to rtx_insn *.
19696         (steal_delay_list_from_target): Use methods of "seq".
19697         (try_merge_delay_insns): Use methods of "merged_insns".
19698         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
19699         (reorg_redirect_jump): Likewise for param "jump".
19700
19701 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19702
19703         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
19704         rtx to rtx_insn *.
19705         * config/s390/s390.c (s390_split_branches): Eliminate top-level
19706         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
19707         "set_insn".
19708         (s390_mainpool_finish): In three places, split out a local rtx
19709         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
19710         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
19711         and split another local rtx "insn" out into rtx "pat" and
19712         rtx_insn * "insn".
19713         * config/sh/sh.c (output_branchy_insn): Rather than working
19714         directly on operands[9], introduce local rtx_code_label *
19715         variables named "lab" in two places, working on them, and then
19716         assigning them to operands[9], so that the intervening operations
19717         are known by the type system to be on insns.
19718
19719 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19720
19721         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
19722         const rtx_insn *.
19723
19724         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
19725         in invocation of INSN_HAS_LOCATION.
19726
19727 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19728
19729         * config/rs6000/altivec.h (vec_xl): New #define.
19730         (vec_xst): Likewise.
19731         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
19732         (XXSPLTD_V2DI): Likewise.
19733         (DIV_V2DI): Likewise.
19734         (UDIV_V2DI): Likewise.
19735         (MUL_V2DI): Likewise.
19736         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19737         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
19738         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
19739         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
19740         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
19741         (UNSPEC_VSX_DIVSD): Likewise.
19742         (UNSPEC_VSX_DIVUD): Likewise.
19743         (UNSPEC_VSX_MULSD): Likewise.
19744         (vsx_mul_v2di): New insn-and-split.
19745         (vsx_div_v2di): Likewise.
19746         (vsx_udiv_v2di): Likewise.
19747         (vsx_xxspltd_<mode>): New insn.
19748
19749 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19750
19751         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
19752         NEXT_INSN.
19753         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
19754         (NEXT_INSN): Likewise.
19755         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
19756         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
19757         const rtx_insn *.
19758         (no_labels_between_p): Likewise for both params.
19759
19760         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
19761         cast when using NEXT_INSN on operands[2].
19762         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
19763         "insn" from rtx to rtx_insn *, adding a checked cast.
19764         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
19765         rtx_insn *.
19766         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
19767         for third param.
19768         (arc_text_label): Likewise for param "insn".
19769         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
19770         "insn".
19771         (arc_ccfsm_record_condition): Likewise for param "jump".
19772         (arc_text_label): Likewise for local "label".
19773         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
19774         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
19775         a method for typesafety.  Add a checked cast.
19776         * config/arc/constraints.md (Clb): Add a checked cast when getting
19777         the CODE_LABEL from a LABEL_REF.
19778         * config/arm/arm.c (require_pic_register): Strengthen locals
19779         "seq", "insn" from rtx to rtx_insn *.
19780         (create_fix_barrier): Likewise for locals "selected", "next".
19781         (thumb1_reorg): Likewise for locals "prev", "insn".
19782         (arm_expand_prologue): Likewise for local "last".
19783         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
19784         operands[0].
19785         (thumb2_output_casesi): Likewise for operands[2].
19786         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
19787         strengthen local "insn" from rtx to rtx_insn *.
19788         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
19789         type and param "insn".
19790         (find_prev_insn_start): Likewise.
19791         (hwloop_optimize): Likewise for locals "insn", "last_insn",
19792         "prev".
19793         (gen_one_bundle): Likewise for loal "t".
19794         (find_load): Likewise for param "insn".
19795         (workaround_speculation): Likewise for locals "insn", "next",
19796         "target", "next_tgt".
19797         * config/c6x/c6x.c (assign_reservations): Likewise for both params
19798         and for locals "insn", "within", "last".
19799         (count_unit_reqs): Likewise for params "head", "tail" and local
19800         "insn".
19801         (try_rename_operands): Likewise for params "head", "tail".
19802         (reshuffle_units): Likewise for locals "head", "tail", "insn".
19803         (struct c6x_sched_context): Likewise for fields
19804         "last_scheduled_insn", "last_scheduled_iter0".
19805         (init_sched_state): Replace NULL_RTX with NULL.
19806         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
19807         to rtx_insn *.
19808         (undo_split_delayed_nonbranch): Likewise for param and for local
19809         "prev".
19810         (conditionalize_after_sched): Likewise for local "insn".
19811         (bb_earliest_end_cycle): Likewise.
19812         (filter_insns_above): Likewise for locals "insn", "next".
19813         (hwloop_optimize): Remove redundant checked cast.
19814         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
19815         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
19816         NULL_RTX with NULL.
19817         (cris_simple_epilogue): Likewise.
19818         (cris_expand_prologue): Likewise.
19819         (cris_expand_epilogue): Likewise.
19820         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
19821         local "insn" from rtx to rtx_insn *.
19822         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
19823         (struct frv_packet_group): Likewise for the elements within array
19824         fields "insns", "sorted", and for field "nop".
19825         (frv_packet): Likewise for the elements within array field
19826         "insns".
19827         (frv_add_insn_to_packet): Likewise for param "insn".
19828         (frv_insert_nop_in_packet): Likewise for param "insn" and local
19829         "last".
19830         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
19831         (frv_sort_insn_group_1): Likewise for local "insn".
19832         (frv_optimize_membar_local): Likewise.
19833         (frv_align_label): Likewise for locals "x", "last", "barrier",
19834         "label".
19835         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
19836         local.
19837         (ia64_sched_init): Likewise for local "insn".
19838         (scheduled_good_insn): Likewise for param "last".
19839         (struct _ia64_sched_context): Likewise for field
19840         "last_scheduled_insn".
19841         (ia64_init_sched_context): Replace NULL_RTX with NULL.
19842         (struct bundle_state): Likewise for field "insn".
19843         (issue_nops_and_insn): Likewise for param "insn".
19844         (get_next_important_insn): Likewise for return type and both
19845         params.
19846         (ia64_add_bundle_selector_before): Likewise for param "insn".
19847         (bundling): Likewise for params "prev_head_insn", "tail" and
19848         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
19849         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
19850         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
19851         Strengthen final param from rtx to rtx_insn *.
19852         (iq2000_move_1word): Likewise for second param.
19853         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
19854         param "cur_insn" and local "next_insn".
19855         (iq2000_move_1word): Likewise for param "insn".
19856         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
19857         casts when using NEXT_INSN on operands[1].
19858         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
19859         "insn" from rtx to rtx_insn *.
19860         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
19861         "x", introducing local rtx_insn * "insn" for when working with the
19862         CODE_LABEL of the LABEL_REF.
19863         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
19864         rtx_insn *.
19865         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
19866         param.
19867         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
19868         type.
19869         (conditionalize_block): Likewise for return type and param.
19870         (mcore_is_dead): Likewise for param "first" and local "insn".
19871         (emit_new_cond_insn): Likewise for return type.
19872         (conditionalize_block): Likewise for return type, param, and
19873         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
19874         "newinsn".
19875         (conditionalize_optimization): Likewise for local "insn".
19876         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
19877         using NEXT_INSN.
19878         * config/microblaze/microblaze.md: Add checked casts when using
19879         NEXT_INSN.
19880         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
19881         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
19882         and rtx_insn * "insn".
19883         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
19884         checked cast when using NEXT_INSN on operands[2].
19885         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
19886         local "insn" from rtx to rtx_insn *.
19887         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
19888         Likewise.
19889         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
19890         Add a checked cast when using NEXT_INSN on operands[1].
19891         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
19892         rtx to rtx_insn *.
19893         (pa_output_cbranch): Likewise for final param.
19894         (pa_output_lbranch): Likewise for second param.
19895         (pa_output_bb): Likewise for third param.
19896         (pa_output_bvb): Likewise.
19897         (pa_output_dbra): Likewise for second param.
19898         (pa_output_movb): Likewise.
19899         (pa_output_parallel_movb): Likewise.
19900         (pa_output_parallel_addb): Likewise.
19901         (pa_output_millicode_call): Likewise for first param.
19902         (pa_output_mul_insn): Likewise for second param.
19903         (pa_output_div_insn): Likewise for third param.
19904         (pa_output_mod_insn): Likewise for second param.
19905         (pa_jump_in_call_delay): Likewise for param.
19906         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
19907         (pa_output_div_insn): Likewise.
19908         (pa_output_mod_insn): Likewise.
19909         (pa_output_cbranch): Likewise.
19910         (pa_output_lbranch): Likewise.
19911         (pa_output_bb): Likewise.
19912         (pa_output_bvb): Likewise.
19913         (pa_output_dbra): Likewise.
19914         (pa_output_movb): Likewise.
19915         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
19916         to simplify and for typesafety.
19917         (pa_output_call): Use method of rtx_sequence *.
19918         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
19919         (pa_jump_in_call_delay): Likewise.
19920         (pa_output_parallel_movb): Likewise.
19921         (pa_output_parallel_addb): Likewise.
19922         (pa_following_call): Likewise.
19923         (pa_combine_instructions): Likewise for locals "anchor",
19924         "floater".
19925         (pa_can_combine_p): Likewise for params "anchor", "floater" and
19926         locals "start", "end".
19927         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
19928         param "insn" and local "local_insn".
19929         (picochip_final_prescan_insn): Likewise for local "local_insn".
19930         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
19931         local "insn".
19932         (uses_TOC): Likewise.
19933         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
19934         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
19935         splitting out to more tightly-scoped locals, 3 as rtx and one as
19936         rtx_insn *.
19937         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
19938         to rtx_insn *.
19939         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
19940         where needed.
19941         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
19942         to rtx_insn *.
19943         (fixup_addr_diff_vecs): Likewise.
19944         (reg_unused_after): Likewise for param 2.
19945         (sh_can_redirect_branch): Likewise for both params.
19946         (check_use_sfunc_addr): Likewise for param 1.
19947         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
19948         (find_barrier): Likewise for local "last_got".
19949         (gen_block_redirect): Likewise for return type, param "jump" and
19950         locals "prev", "scan", "next", "insn".
19951         (struct far_branch): Likewise for fields "near_label",
19952         "insert_place", "far_label".
19953         (gen_far_branch): Likewise for local "jump".
19954         (fixup_addr_diff_vecs): Likewise for param "first" and locals
19955         "insn", "prev".
19956         (barrier_align): Likewise for param and for locals "prev", "x".
19957         Introduce local rtx_sequence * "prev_seq" and use insn method for
19958         typesafety and clarity.
19959         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
19960         (get_dest_uid): Likewise for local "dest".
19961         (split_branches): Likewise for locals "next", "beyond", "label",
19962         "block", "far_label".  Add checked casts when assigning to
19963         bp->far_label and "far_label".
19964         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
19965         (sequence_insn_p): Likewise.
19966         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
19967         more loop-scoped rtx "insn" when walking LABEL_REFS.
19968         (sh_can_redirect_branch): Strengthen both params from rtx to
19969         rtx_insn *.
19970         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
19971         new local rtx_sequence * "seq" via a dyn_cast, and use a method
19972         for clarity and typesafety.
19973         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
19974         "insn" from rtx to rtx_insn *.
19975         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
19976         when using NEXT_INSN on the CODE_LABEL in operands[2].
19977         (define_insn "casesi_worker_2"): Likewise.
19978         (define_insn "casesi_shift_media"): Likewise.
19979         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
19980         operands[3].
19981         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
19982         Strengthen field "insn" from rtx to rtx_insn *.
19983         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
19984         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
19985         param "start_insn" and local "start_insn".
19986         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
19987         field "insn".
19988         (find_set_of_reg_bb): Likewise for param "insn".
19989         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
19990         (trace_reg_uses): Likewise for param "start_insn".
19991         (sh_treg_combine::cbranch_trace): Likewise for field
19992         "cbranch_insn".
19993         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
19994         param "insn".
19995         (sh_treg_combine::record_set_of_reg): Likewise for param
19996         "start_insn" and local "i".
19997         (sh_treg_combine::can_remove_cstore): Likewise for local
19998         "prev_insn".
19999         (sh_treg_combine::try_optimize_cbranch): Likewise for param
20000         "insn".
20001         (sh_treg_combine::execute): Likewise for local "i".
20002         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
20003         param.
20004         (sparc_check_64): Likewise for second param.
20005         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
20006         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
20007         dyn_cast, using its insn method for typesafety and clarity.
20008         (empty_delay_slot): Strengthen param "insn" from rtx to
20009         rtx_insn *.
20010         (set_extends): Likewise.
20011         (sparc_check_64): Likewise.
20012         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
20013         for locals "seq", "last_insn".
20014         (combine_bnp): Likewise for param "insn".
20015         (xstormy16_reorg): Likewise for local "insn".
20016         * config/v850/v850.c (substitute_ep_register): Likewise for params
20017         "first_insn", "last_insn" and local "insn".
20018         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
20019         elements of "regs" array, and local "insn".
20020         * except.c (emit_note_eh_region_end): Likewise for param "insn".
20021         * final.c (final_sequence): Strengthen this global from rtx to
20022         rtx_sequence *.
20023         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
20024         rtx_insn *.
20025         (final_scan_insn): Update assignment to "final_sequence" to be
20026         from "seq", the cast version of "body", for type-safety.
20027         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
20028         "insns" from rtx to rtx_insn *.
20029         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
20030         * genattr.c (main): When writing out generated insn-attr.h,
20031         strengthen params 1 and 3 of eligible_for_delay,
20032         eligible_for_annul_true, eligible_for_annul_false from rtx to
20033         rtx_insn *.
20034         * genattrtab.c (write_eligible_delay): Likewise when writing out
20035         generated insn-attrtab.c; also local "insn" the generated
20036         functions.
20037         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
20038         to rtx_insn *.
20039         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
20040         "start_label" from rtx to rtx_insn *.
20041         * ira.c (decrease_live_ranges_number): Likewise for local "p".
20042         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
20043         "insns" and local "insn".
20044         (validate_equiv_mem): Likewise for param "start" and local "insn".
20045         (memref_used_between_p): Likewise for params "start", "end" and
20046         local "insn".
20047         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
20048         final param.
20049         * loop-doloop.c (doloop_optimize): Within region guarded by
20050         INSN_P (doloop_pat), introduce a new local rtx_insn *
20051         "doloop_insn" via a checked cast, and use it for typesafety,
20052         eventually writing the value back into doloop_pat.
20053         * output.h (final_sequence): Strengthen this global from rtx to
20054         rtx_sequence *.
20055         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
20056         reintroducing "insn" as an rtx_insn * via a checked cast.
20057         Strengthen param "attempt" and local "new_insn"from rtx to
20058         rtx_insn *.
20059         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
20060         to rtx_insn *.
20061         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
20062         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
20063         "p" in favor of more tightly-scoped replacements, sometimes rtx
20064         and sometimes rtx_insn *, as appropriate.
20065         (delete_output_reload): Eliminate top-level rtx "i1", splitting
20066         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
20067         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
20068         local "trial" from rtx to rtx_insn *.
20069         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
20070         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
20071         rtx_sequence * and use methods for clarity and typesafety.
20072         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
20073         rtx to rtx_insn *.  Strenghten local "li" from rtx to
20074         rtx_insn_list * and use its methods for clarity and typesafety.
20075         (steal_delay_list_from_target): Strengthen param "insn" from rtx
20076         to rtx_insn *.
20077         (steal_delay_list_from_fallthrough): Likewise.
20078         (try_merge_delay_insns): Likewise for param "thread" and locals
20079         "trial", "next_trial", "delay_insn".
20080         (redundant_insn): Likewise for param "target" and local "trial".
20081         (own_thread_p): Likewise for param "thread" and locals
20082         "active_insn", "insn".
20083         (get_label_before): Likewise for param "insn".
20084         (fill_simple_delay_slots): Likewise for local "new_label"; use
20085         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
20086         (label_before_next_insn): Strengthen return type and local "insn"
20087         from rtx to rtx_insn *.
20088         (relax_delay_slots): Likewise for locals "other", "tmp".
20089         (make_return_insns): Likewise for param "first" and locals "insn",
20090         "jump_insn", "prev".  Move declaration of "pat" to its assignment
20091         and strengthen from rtx to rtx_sequence *.  Use its methods for
20092         clarity and typesafety.
20093         * rtlanal.c (no_labels_between_p): Strengthen params from
20094         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
20095         rtx_insn *.
20096         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
20097         from const_rtx to const rtx_insn *.
20098         (reg_set_between_p): Rename param "from_insn" to
20099         "uncast_from_insn", and reintroduce "from_insn" as a
20100         const rtx_insn * via a checked cast.
20101         (modified_between_p): Likewise for param "start" as "uncast_start".
20102         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
20103         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
20104         "tmp", head" from rtx to rtx_insn *.
20105         (recompute_rev_top_order): Likewise for local "insn".
20106         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
20107         * store-motion.c (build_store_vectors): Likewise for local "insn".
20108         Strengthen local "st" from rtx to rtx_insn_list * and use methods
20109         for clarity and typesafety.
20110         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
20111         rtx to rtx_insn *.
20112         (computation_cost): Likewise for local "seq".
20113         (get_address_cost): Likewise.
20114
20115 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20116
20117         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
20118         const rtx_insn *.
20119         (label_is_jump_target_p): Likewise for second param.
20120
20121         * rtlanal.c (tablejump_p): Likewise for param "insn".
20122         (label_is_jump_target_p): Likewise for param "jump_insn".
20123
20124 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20125
20126         * rtl.h (find_first_parameter_load): Strengthen return type and
20127         both params from rtx to rtx_insn *.
20128         * rtlanal.c (find_first_parameter_load): Strengthen return type,
20129         both params and locals "before", "first_set" from rtx to
20130         rtx_insn *.  Remove now-redundant cast.
20131         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
20132
20133 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20134
20135         * rtl.h (find_last_value): Delete.
20136         * rtlanal.c (find_last_value): Delete.
20137
20138 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20139
20140         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
20141         from rtx to rtx_insn *.
20142         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
20143         rtx "note" with new local rtx_insn * "new_head" when calculating
20144         head insn of new basic block.
20145         * combine.c (combine_split_insns): Strengthen return type and local
20146         "ret" from rtx to rtx_insn *.
20147         (likely_spilled_retval_p): Likewise for locals "use" and "p".
20148         (try_combine): Eliminate local "m_split", splitting into new
20149         locals "m_split_insn" and "m_split_pat".
20150         (find_split_point): Strengthen local "seq" from rtx into
20151         rtx_insn *.
20152         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
20153         locals "label", "branch".
20154         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
20155         for local "insn".
20156         (define_expand "umulsi3_highpart"): Likewise for local "insn".
20157         * dse.c (note_add_store_info): Likewise for fields "first",
20158         "current".
20159         (note_add_store): Likewise for local "insn".
20160         (emit_inc_dec_insn_before): Likewise for locals "insn",
20161         "new_insn", "cur".
20162         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
20163         (replace_read): Likewise for locals "insns", "this_insn".
20164         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
20165         (notice_eh_throw): Likewise for param "insn".
20166         (before_next_cfi_note): Likewise for return type, param, and local
20167         "prev".
20168         (connect_traces): Likewise for local "note".
20169         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
20170         (verify_rtl_sharing): Likewise.
20171         (unshare_all_rtl_in_chain): Likewise for param "insn".
20172         (get_first_nonnote_insn): Likewise for local "insn".
20173         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
20174         "seq" and use its methods to clarify things.
20175         (next_insn): Strengthen return type from rtx to rtx_insn *.
20176         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
20177         local rtx_insn * using a checked cast, dropping a checked cast
20178         made redundant by this change.  Use a cast to and method of
20179         rtx_sequence to clarify the code.
20180         (previous_insn): Rename param "insn" to "uncast_insn" and
20181         reintroduce "insn" as a local rtx_insn * using a checked cast,
20182         dropping a checked cast made redundant by this change.  Use a cast
20183         to and method of rtx_sequence to clarify the code.
20184         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
20185         reintroduce "insn" as a local rtx_insn * using a checked cast,
20186         dropping a checked cast made redundant by this change.
20187         (next_nonnote_insn_bb): Likewise.
20188         (prev_nonnote_insn): Likewise.
20189         (prev_nonnote_insn_bb): Likewise.
20190         (next_nondebug_insn): Likewise.
20191         (prev_nondebug_insn): Likewise.
20192         (next_nonnote_nondebug_insn): Likewise.
20193         (prev_nonnote_nondebug_insn): Likewise.
20194         (next_real_insn): Likewise.
20195         (prev_real_insn): Likewise.
20196         (next_active_insn): Likewise.
20197         (prev_active_insn): Likewise.
20198         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
20199         clarity.
20200         (prev_cc0_setter): Likewise.
20201         (try_split): Rename param "trial" to "uncast_trial" and
20202         reintroduce "insn" as a local rtx_insn * using a checked cast,
20203         dropping checked casts made redundant by this change.
20204         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
20205         rtx to rtx_insn *.
20206         (remove_insn): Rename param "insn" to "uncast_insn" and
20207         reintroduce "insn" as a local rtx_insn * using a checked cast.
20208         (emit_pattern_after_setloc): Likewise for param "after", as
20209         "uncast_after".
20210         (emit_pattern_after): Likewise.  Strengthen local "prev" from
20211         rtx to rtx_insn *.
20212         (emit_pattern_before_setloc): Rename param "before" to
20213         "uncast_before" and reintroduce "before" as a local rtx_insn *
20214         using a checked cast.  Strengthen locals "first", "last" from
20215         rtx to rtx_insn *.
20216         (emit_pattern_before): Likewise rename/cast param "before" to
20217         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
20218         * except.c (copy_reg_eh_region_note_forward): Strengthen param
20219         "first" and local "insn" from rtx to rtx_insn *.
20220         (copy_reg_eh_region_note_backward): Likewise for param "last"
20221         and local "insn".
20222         * expr.c (fixup_args_size_notes): Rename param "last" to
20223         "uncast_last" and reintroduce "last" as a local rtx_insn *
20224         using a checked cast.  Strengthen local "insn" from rtx to
20225         rtx_insn *.
20226         * function.c (set_insn_locations): Strengthen param "insn" from
20227         rtx to rtx_insn *.
20228         (record_insns): Likewise for param "insns" and local "tmp".
20229         (active_insn_between): Rename param "tail" to
20230         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
20231         using a checked cast.
20232         (thread_prologue_and_epilogue_insns): Split out top-level local
20233         rtx "seq" into three different rtx_insn * locals.  Strengthen
20234         local "prologue_seq" from rtx to rtx_insn *.
20235         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
20236         from rtx to rtx_insn *.
20237         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
20238         (priority): Likewise for locals "prev_first", "twin".
20239         (setup_insn_max_reg_pressure): Likewise for param "after".
20240         (sched_setup_bb_reg_pressure_info): Likewise.
20241         (no_real_insns_p): Strengthen params from const_rtx to
20242         const rtx_insn *.
20243         (schedule_block): Strengthen local "next_tail" from rtx to
20244         rtx_insn *.
20245         * ifcvt.c (find_active_insn_before): Strengthen return type and
20246         param "insn" from rtx to rtx_insn *.
20247         (find_active_insn_after): Likewise.
20248         (cond_exec_process_insns): Likewise for param "start" and local "insn".
20249         (cond_exec_process_if_block): Likewise for locals "then_start",
20250         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
20251         (noce_process_if_block): Likewise for local "jump".
20252         (merge_if_block): Likewise for two locals named "end".
20253         (cond_exec_find_if_block): Likewise for local "last_insn".
20254         * jump.c (delete_related_insns): Rename param "insn" to
20255         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
20256         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
20257         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
20258         NULL.
20259         (split_reg): Likewise.
20260         * lra.c (lra_process_new_insns): Likewise.
20261         * modulo-sched.c (permute_partial_schedule): Strengthen param
20262         "last" from rtx to rtx_insn *.
20263         * optabs.c (add_equal_note): Likewise for param "insns" and local
20264         "last_insn".
20265         (expand_binop_directly): Add checked casts to rtx_insn * within
20266         NEXT_INSN (pat) uses.
20267         (expand_unop_direct): Likewise.
20268         (maybe_emit_unop_insn): Likewise.
20269         * recog.c (peep2_attempt): Strengthen locals "last",
20270         "before_try", "x" from rtx to rtx_insn *.
20271         * reorg.c (optimize_skip): Strengthen return type and local
20272         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
20273         and locals "trial", "next_trial" from rtx to rtx_insn *.
20274         * resource.c (next_insn_no_annul): Strengthen return type and
20275         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
20276         rtx_sequence to clarify the code.
20277         (mark_referenced_resources): Add a checked cast to rtx_insn *
20278         within PREV_INSN (x).
20279         (find_dead_or_set_registers): Strengthen return type, param
20280         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
20281         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
20282         to rtx_insn **.
20283         (mark_target_live_regs): Strengthen params "insns" and "target",
20284         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
20285         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
20286         the code.
20287         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
20288         from rtx to rtx_insn *.
20289         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
20290         from rtx to rtx_insn *.
20291         (copy_reg_eh_region_note_backward): Likewise.
20292         (unshare_all_rtl_in_chain): Likewise for sole param.
20293         (dump_rtl_slim): Strengthen second and third params from const_rtx
20294         to const rtx_insn *.
20295         * sched-deps.c (sched_free_deps): Strengthen params "head" and
20296         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
20297         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
20298         "next_tail" from rtx to rtx_insn *.
20299         (begin_move_insn): Likewise for local "next".
20300         * sched-int.h (sched_free_deps): Likewise for first and second
20301         params.
20302         (no_real_insns_p): Strengthen both params from const_rtx to
20303         const rtx_insn *.
20304         (sched_setup_bb_reg_pressure_info): Strengthen second params from
20305         rtx to rtx_insn *.
20306         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
20307         "next_tail".
20308         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
20309         and locals "insn", "tail" from const_rtx to const rtx_insn *.
20310         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
20311         rtx_insn *.
20312         (debug_rtl_slim): Strengthen params "first" and "last" from
20313         const_rtx to const rtx_insn *.
20314         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
20315         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
20316         (convert_to_simple_return): Likewise for param "returnjump".
20317         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
20318         "prologue_seq".
20319         (convert_to_simple_return): Likewise for param "returnjump".
20320         * valtrack.c (propagate_for_debug): Likewise for params
20321         "insn", "last".
20322         * valtrack.h (propagate_for_debug): Likewise for second param.
20323
20324 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20325
20326         * output.h (insn_current_reference_address): Strengthen param
20327         from rtx to rtx_insn *.
20328         * final.c (insn_current_reference_address): Likewise.
20329
20330 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20331
20332         * basic-block.h (inside_basic_block_p): Strengthen param from
20333         const_rtx to const rtx_insn *.
20334         * cfgbuild.c (inside_basic_block_p): Likewise.
20335
20336 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20337
20338         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
20339         rtx_insn *.
20340         (get_trace_info): Likewise for param "insn".
20341         (save_point_p): Likewise.
20342         (maybe_record_trace_start): Likewise for both params.
20343         (maybe_record_trace_start_abnormal): Likewise.
20344         (create_trace_edges): Likewise for sole param and for three of the
20345         locals named "lab".
20346         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
20347         to rtx_insn *, and update a call to pat->element to pat->insn.
20348
20349 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20350
20351         * function.h (struct expr_status): Convert field "x_forced_labels"
20352         from rtx_expr_list * to rtx_insn_list *.
20353
20354         * cfgbuild.c (make_edges): Convert local "x" from an
20355         rtx_expr_list * to an rtx_insn_list *, replacing use of
20356         "element" method with "insn" method.
20357         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
20358         * except.c (sjlj_emit_dispatch_table): Replace use of
20359         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
20360         forced_labels.
20361         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
20362         rtx_expr_list * to an rtx_insn_list *, replacing use of
20363         "element" method with "insn" method.
20364         * reload1.c (set_initial_label_offsets): Likewise for local "x".
20365         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
20366         rtx_insn *, adding a checked cast.  Replace use of
20367         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
20368         forced_labels.
20369         (expand_label): Likewise for local "label_r".
20370
20371 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20372
20373         * function.h (struct rtl_data): Convert field
20374         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
20375         rtx_insn_list *.
20376         * rtl.h (remove_node_from_insn_list): New prototype.
20377
20378         * builtins.c (expand_builtin): When prepending to
20379         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
20380         gen_rtx_EXPR_LIST.
20381         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
20382         to rtx_insn_list *, and use its "insn" method rather than
20383         "element" method.
20384         * cfgrtl.c (delete_insn): Use new function
20385         remove_node_from_insn_list rather than
20386         remove_node_from_expr_list.
20387         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
20388         to rtx_insn_list *, and use its "insn" method rather than
20389         "element" method.
20390         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
20391         * reload1.c (set_initial_label_offsets): Likewise for local "x".
20392         * rtlanal.c (remove_node_from_insn_list): New function, adapted
20393         from remove_node_from_expr_list.
20394         * stmt.c (expand_label): When prepending to
20395         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
20396         gen_rtx_EXPR_LIST.
20397
20398 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20399
20400         * function.h (struct rtl_data): Strengthen fields "x_return_label"
20401         and "x_naked_return_label" from rtx to rtx_code_label *.
20402
20403 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20404
20405         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
20406         (SET_NEXT_INSN): Likewise.
20407         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
20408
20409         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
20410         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
20411         to split out the SEQUENCE from local "bundle", strengthening the
20412         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
20413         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
20414         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
20415         and the type of the elements of the "slot" array from rtx to
20416         rtx_insn *.
20417         (reorg_split_calls): Likewise for locals "insn" and "next", and
20418         the type of the elements of the "slot" array.
20419
20420         * config/frv/frv.c (frv_nops): Likewise for the elements of this
20421         array.
20422         (frv_function_prologue): Likewise for locals "insn", "next",
20423         "last_call".
20424         (frv_register_nop): Introduce a local "nop_insn" to be the
20425         rtx_insn * containing rtx "nop".
20426
20427         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
20428         used as an insn and sometimes as a pattern, so rename it to
20429         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
20430         using it where dealing with the core insn.
20431
20432         * config/picochip/picochip.c (reorder_var_tracking_notes):
20433         Strengthen locals "insn", "next", "last_insn", "queue",
20434         "next_queue", "prev" from rtx to rtx_insn *.
20435
20436         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
20437         the second param is an rtx_insn ** rather than an rtx **.
20438         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
20439         from rtx to rtx_sequence *, and introduce local named "sequence",
20440         using methods of rtx_sequence to clarify the code.
20441         (remove_insn): Introduce local rtx_sequence * named "sequence" and
20442         use its methods.
20443         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
20444         Rename param "after" to "uncast_after", reintroducing "after" as a
20445         local rtx_insn * with a checked cast.
20446         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
20447         reintroducing "after" as a local rtx_insn * with a checked cast.
20448         Strengthen local "last" from rtx to rtx_insn * and remove the
20449         now-redundant checked casts.
20450         (copy_delay_slot_insn): Strengthen return type and param from rtx
20451         to rtx_insn *.
20452
20453         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
20454         "last" from rtx to rtx_insn *.
20455
20456 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20457
20458         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
20459         param from rtx to rtx_insn *.
20460
20461         * emit-rtl.c (copy_delay_slot_insn): Likewise.
20462
20463         * reorg.c (skip_consecutive_labels): Strengthen return type, param
20464         and local "insn" from rtx to rtx_insn *.
20465         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
20466         (unfilled_slots_next): Likewise.
20467         (function_return_label): Strengthen from rtx to rtx_code_label *.
20468         (function_simple_return_label): Likewise.
20469         (first_active_target_insn): Strengthen return type and param from
20470         rtx to rtx_insn *.
20471         (find_end_label): Strengthen return type from rtx to
20472         rtx_code_label *; strengthen locals as appropriate.
20473         (emit_delay_sequence): Strengthen return type, param "insn" and
20474         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
20475         and local "li" from rtx to rtx_insn_list *, using methods of
20476         rtx_insn_list for clarity and typesafety.
20477         (add_to_delay_list): Strengthen return type and param "insn" from
20478         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
20479         rtx_insn_list * and use methods of rtx_insn_list.
20480         (delete_from_delay_slot): Strengthen return type, param "insn",
20481         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
20482         Strengthen local "seq" from rtx to rtx_sequence *, and local
20483         "delay_list" from rtx to rtx_insn_list *, using methods of
20484         rtx_sequence for clarity and type-safety.
20485         (delete_scheduled_jump): Add checked cast when invoking
20486         delete_from_delay_slot.  Strengthen local "trial" from rtx to
20487         rtx_insn *.
20488         (optimize_skip): Strengthen return type and local "delay_list"
20489         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
20490         rtx_insn *.
20491         (steal_delay_list_from_target): Strengthen return type, param
20492         "delay_list" and local "new_delay_list" from rtx to
20493         rtx_insn_list *.  Strengthen param "seq" from rtx to
20494         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
20495         rtx_insn **.
20496         Split out local "temp" into multiple more-tightly scoped locals:
20497         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
20498         of rtx_insn_list and rtx_sequence for clarity and typesafety.
20499         Strengthen locals named "trial" from rtx to rtx_insn *.
20500         (steal_delay_list_from_fallthrough): Strengthen return type and
20501         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
20502         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
20503         Strengthen local "trial" from rtx to rtx_insn *.
20504         (try_merge_delay_insns): Strength local "merged_insns" from rtx
20505         to rtx_insn_list * and use its methods.  Strengthen local "pat"
20506         from rtx to rtx_sequence * and use its methods.  Strengthen locals
20507         "dtrial" and "new_rtx" from rtx to rtx_insn *.
20508         (get_label_before): Strengthen return type and local "label" from
20509         rtx to rtx_insn *.
20510         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
20511         "next_trial", "next", prev".  Strengthen local "delay_list" from
20512         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
20513         rtx_insn **.
20514         (follow_jumps): Strengthen return type, param "label" and locals
20515         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
20516         (fill_slots_from_thread): Strengthen return type, param
20517         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
20518         "insn", "thread", "opposite_thread" and locals "new_thread",
20519         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
20520         "sequence" from a checked cast to rtx_sequence so that we can call
20521         steal_delay_list_from_target and steal_delay_list_from_fallthrough
20522         with an rtx_sequence *.
20523         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
20524         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
20525         Strengthen local "delay_list" from rtx to rtx_insn_list *.
20526         (relax_delay_slots): Strengthen param "first" and locals "insn",
20527         "next", "trial", "delay_insn", "target_label" from rtx to
20528         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
20529         Introduce a local "trial_seq" for PATTERN (trial) of type
20530         rtx_sequence *, in both cases using methods of rtx_sequence.
20531         (dbr_schedule): Strengthen param "first" and locals "insn",
20532         "next", "epilogue_insn" from rtx to rtx_insn *.
20533
20534 2014-08-28  Richard Biener  <rguenther@suse.de>
20535
20536         PR tree-optimization/62283
20537         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20538         Do not peel loops for alignment where the vector loop likely
20539         doesn't run at least VF times.
20540
20541 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
20542
20543         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
20544         important_candidates.  Consider all important candidates if
20545         IVS doesn't give any result.  Remove check on ivs->upto.
20546         (try_add_cand_for): Call iv_ca_add_use only once.
20547
20548 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20549             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20550             Anna Tikhonova  <anna.tikhonova@intel.com>
20551             Ilya Tocar  <ilya.tocar@intel.com>
20552             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20553             Ilya Verbin  <ilya.verbin@intel.com>
20554             Kirill Yukhin  <kirill.yukhin@intel.com>
20555             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20556
20557         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
20558         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
20559         masking.
20560         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
20561         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
20562         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
20563         (define_insn "*mul<mode>3"): Add EVEX version.
20564
20565 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20566             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20567             Anna Tikhonova  <anna.tikhonova@intel.com>
20568             Ilya Tocar  <ilya.tocar@intel.com>
20569             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20570             Ilya Verbin  <ilya.verbin@intel.com>
20571             Kirill Yukhin  <kirill.yukhin@intel.com>
20572             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20573
20574         * config/i386/sse.md
20575         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
20576         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
20577         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
20578         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
20579         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
20580         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
20581         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
20582         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
20583         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
20584         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
20585         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
20586         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
20587         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
20588         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
20589         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
20590         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
20591
20592 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20593             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20594             Anna Tikhonova  <anna.tikhonova@intel.com>
20595             Ilya Tocar  <ilya.tocar@intel.com>
20596             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20597             Ilya Verbin  <ilya.verbin@intel.com>
20598             Kirill Yukhin  <kirill.yukhin@intel.com>
20599             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20600
20601         * config/i386/sse.md
20602         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
20603         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
20604         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
20605
20606 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20607             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20608             Anna Tikhonova  <anna.tikhonova@intel.com>
20609             Ilya Tocar  <ilya.tocar@intel.com>
20610             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20611             Ilya Verbin  <ilya.verbin@intel.com>
20612             Kirill Yukhin  <kirill.yukhin@intel.com>
20613             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20614
20615         * config/i386/sse.md
20616         (define_mode_iterator VI128_256): New.
20617         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
20618
20619 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20620             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20621             Anna Tikhonova  <anna.tikhonova@intel.com>
20622             Ilya Tocar  <ilya.tocar@intel.com>
20623             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20624             Ilya Verbin  <ilya.verbin@intel.com>
20625             Kirill Yukhin  <kirill.yukhin@intel.com>
20626             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20627
20628         * config/i386/sse.md
20629         (define_mode_iterator VI8_256_512): New.
20630         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
20631         Ditto.
20632         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
20633         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
20634         Ditto.
20635         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
20636
20637 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20638
20639         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
20640         pointer to the cumulative reloc value and return the value for
20641         this reloc instead.
20642         (compute_reloc_for_rtx): Take a const_rtx.  Call
20643         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
20644         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
20645         for_each_rtx for the CONST case.
20646
20647 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20648
20649         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
20650         (mark_constants_in_pattern): ...this new function to iterate over
20651         all the subrtxes.
20652         (mark_constants): Update accordingly.
20653
20654 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20655
20656         * varasm.c: Include rtl-iter.h.
20657         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
20658         Remove the pointer to the cumulative hashval_t and just return
20659         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
20660         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20661         Accumulate the hashval_ts here instead of const_rtx_hash_1.
20662
20663 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20664
20665         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
20666         Give real type of data parameter.  Remove return value.
20667         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
20668         to iterate over subrtxes.
20669
20670 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20671
20672         * var-tracking.c (use_narrower_mode_test): Turn from being a
20673         for_each_rtx callback to being a function that examines each
20674         subrtx itself.
20675         (adjust_mems): Update accordingly.
20676
20677 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20678
20679         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
20680         callback to being a function that examines each subrtx itself.
20681         Remove handling of null rtxes.
20682         (add_uses): Update accordingly.
20683
20684 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20685
20686         * var-tracking.c: Include rtl-iter.h.
20687         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
20688         to being a function that examines each subrtx itself.
20689         (use_type): Update accordingly.
20690
20691 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20692
20693         * store-motion.c: Include rtl-iter.h.
20694         (extract_mentioned_regs_1): Delete.
20695         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
20696         for_each_rtx to iterate over subrtxes.
20697
20698 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20699
20700         * sel-sched.c: Include rtl-iter.h
20701         (count_occurrences_1): Delete.
20702         (count_occurrences_equiv): Turn rtxes into const_rtxes.
20703         Use FOR_EACH_SUBRTX rather than for_each_rtx.
20704
20705 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20706
20707         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
20708         * rtlanal.c (tls_referenced_p_1): Delete.
20709         (tls_referenced_p): Take a const_rtx rather than an rtx.
20710         Use FOR_EACH_SUBRTX rather than for_each_rtx.
20711
20712 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20713
20714         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
20715         (for_each_inc_dec): Take an rtx rather than an rtx *.
20716         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
20717         (cselib_record_sets): Likewise.
20718         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
20719         (check_for_inc_dec): Likewise.
20720         * rtlanal.c (for_each_inc_dec_ops): Delete.
20721         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
20722         rather than a pointer to the memory address.  Replace
20723         for_each_inc_dec_ops argument with separate function and data
20724         arguments.  Abort on non-autoinc addresses.
20725         (for_each_inc_dec_find_mem): Delete.
20726         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
20727         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
20728
20729 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20730
20731         * rtl.h (find_all_hard_regs): Declare.
20732         * rtlanal.c (find_all_hard_regs): New function.
20733         (record_hard_reg_uses_1): Delete.
20734         (record_hard_reg_uses): Use find_all_hard_regs.
20735
20736 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20737
20738         * rtl.h (replace_label_data): Delete.
20739         (replace_label): Take the old label, new label and update-nuses flag
20740         as direct arguments.  Return void.
20741         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
20742         * rtlanal.c (replace_label): Update interface as above.  Handle
20743         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
20744         iterator.  Use FOR_EACH_SUBRTX_PTR.
20745
20746 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20747
20748         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
20749         with const_rtx parameters.
20750         * varasm.c (get_pool_constant): Likewise.
20751         * rtlanal.c (rtx_referenced_p_1): Delete.
20752         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20753         Assert that the rtx we're looking for is nonnull.  Allow searches
20754         for constant pool SYMBOL_REFs.
20755
20756 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20757
20758         * reload1.c: Include rtl-iter.h.
20759         (note_reg_elim_costly): Turn from being a for_each_rtx callback
20760         to being a function that examines each subrtx itself.
20761         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
20762
20763 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20764
20765         * regcprop.c (cprop_find_used_regs_1): Delete.
20766         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20767
20768 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20769
20770         * regcprop.c: Include rtl-iter.h.
20771         (kill_value): Take a const_rtx.
20772         (kill_autoinc_value): Turn from being a for_each_rtx callback
20773         to being a function that examines each subrtx itself.
20774         (copyprop_hardreg_forward_1): Update accordingly.
20775
20776 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20777
20778         * reg-stack.c: Include rtl-iter.h.
20779         (subst_stack_regs_in_debug_insn): Delete.
20780         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
20781         instead of for_each_rtx.
20782
20783 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20784
20785         * lower-subreg.c (find_decomposable_subregs): Turn from being
20786         a for_each_rtx callback to being a function that examines each
20787         subrtx itself.  Remove handling of null rtxes.
20788         (decompose_multiword_subregs): Update accordingly.
20789
20790 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20791
20792         * lower-subreg.c (adjust_decomposed_uses): Delete.
20793         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
20794         Remove handling of null rtxes.
20795
20796 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20797
20798         * lower-subreg.c: Include rtl-iter.h.
20799         (resolve_subreg_use): Turn from being a for_each_rtx callback
20800         to being a function that examines each subrtx itself.  Remove
20801         handling of null rtxes.
20802         (resolve_reg_notes, resolve_simple_move): Update accordingly.
20803         (decompose_multiword_subregs): Likewise.
20804
20805 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20806
20807         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
20808         to being a function that examines each subrtx itself.
20809         (simplify_using_condition, simplify_using_initial_values): Update
20810         accordingly.
20811
20812 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20813
20814         * loop-iv.c: Include rtl-iter.h.
20815         (find_single_def_src): New function.
20816         (replace_single_def_regs): Turn from being a for_each_rtx callback
20817         to being a function that examines each subrtx itself.
20818         (replace_in_expr, simplify_using_initial_values): Update accordingly.
20819
20820 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20821
20822         * jump.c (eh_returnjump_p_1): Delete.
20823         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
20824         Remove handling of null rtxes.
20825
20826 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20827
20828         * jump.c: Include rtl-iter.h.
20829         (returnjump_p_1): Delete.
20830         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
20831         Remove handling of null rtxes.
20832
20833 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20834
20835         * ira.c: Include rtl-iter.h.
20836         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
20837         to being a function that examines each subrtx itself.  Remove
20838         handling of null rtxes.
20839         (update_equiv_regs): Update call accordingly.
20840
20841 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20842
20843         * fwprop.c: Include rtl-iter.h.
20844         (varying_mem_p): Turn from being a for_each_rtx callback to being
20845         a function that examines each subrtx itself.
20846         (propagate_rtx): Update accordingly.
20847
20848 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20849
20850         * function.c: Include rtl-iter.h
20851         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
20852         callback to being a function that examines each subrtx itself.
20853         Return the changed flag.
20854         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
20855         (instantiate_virtual_regs): Update calls accordingly.
20856
20857 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20858
20859         * final.c: Include rtl-iter.h.
20860         (mark_symbol_ref_as_used): Delete.
20861         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
20862         for_each_rtx.
20863
20864 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20865
20866         * emit-rtl.c: Include rtl-iter.h.
20867         (find_auto_inc): Turn from being a for_each_rtx callback to being
20868         a function that examines each subrtx itself.  Assume the first operand
20869         to an RTX_AUTOINC is the automodified register.
20870         (try_split): Update call accordingly.
20871
20872 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20873
20874         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
20875         Return a bool, inverting the result so that 0/false means "not ok".
20876         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
20877         subrtxes of a CONST.
20878         (mem_loc_descriptor, add_const_value_attribute)
20879         (resolve_addr_in_expr): Update calls accordingly.
20880
20881 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20882
20883         * dwarf2out.c: Include rtl-iter.h.
20884         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
20885         Remove unused data parameter.  Return a bool, inverting the result
20886         so that 0/false means "not ok".
20887         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
20888         instead of for_each_rtx.
20889
20890 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20891
20892         * dse.c: Include rtl-iter.h.
20893         (check_mem_read_rtx): Change void * parameter to real type.
20894         Remove return value.
20895         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
20896         for_each_rtx.  Don't handle null rtxes.
20897
20898 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20899
20900         * df-problems.c: Include rtl-iter.h.
20901         (find_memory): Turn from being a for_each_rtx callback to being
20902         a function that examines each subrtx itself.  Continue to look for
20903         volatile references even after a nonvolatile one has been found.
20904         (can_move_insns_across): Update calls accordingly.
20905
20906 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20907
20908         * ddg.c (walk_mems_2, walk_mems_1): Delete.
20909         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
20910         to iterate over subrtxes.  Return a bool rather than an int.
20911
20912 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20913
20914         * ddg.c: Include rtl-iter.h.
20915         (mark_mem_use_1): Rename to...
20916         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
20917         instead of for_each_rtx.
20918         (mem_read_insn_p): Update accordingly.
20919
20920 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20921
20922         * cse.c (change_cc_mode_args): Delete.
20923         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
20924         a function that examines each subrtx itself.  Take the fields of
20925         change_cc_mode_args as argument and return void.
20926         (cse_change_cc_mode_insn): Update calls accordingly.
20927
20928 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20929
20930         * cse.c (is_dead_reg): Change argument to const_rtx.
20931         (dead_debug_insn_data): Delete.
20932         (is_dead_debug_insn): Expand commentary.  Turn from being a
20933         for_each_rtx callback to being a function that examines
20934         each subrtx itself.  Take the fields of dead_debug_insn_data
20935         as argument.
20936         (delete_trivially_dead_insns): Update call accordingly.
20937
20938 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20939
20940         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
20941         being a for_each_rtx callback to being a function that examines
20942         each subrtx itself.
20943         (cse_extended_basic_block): Update call accordingly.
20944
20945 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20946
20947         * cse.c (check_dependence_data): Delete.
20948         (check_dependence): Change from being a for_each_rtx callback to being
20949         a function that examines all subrtxes itself.  Don't handle null rtxes.
20950         (invalidate): Update call accordingly.
20951
20952 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20953
20954         * cse.c: Include rtl-iter.h.
20955         (approx_reg_cost_1): Delete.
20956         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20957         Don't handle null rtxes.
20958
20959 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20960
20961         * cfgcleanup.c: Include rtl-iter.h.
20962         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
20963         to being a function that examines each subrtx itself.
20964         (thread_jump): Update accordingly.
20965
20966 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20967
20968         * combine-stack-adj.c: Include rtl-iter.h.
20969         (record_stack_refs_data): Delete.
20970         (record_stack_refs): Turn from being a for_each_rtx callback
20971         to being a function that examines each subrtx itself.
20972         Take a pointer to the reflist.  Invert sense of return value
20973         so that true means success and false means failure.  Don't
20974         handle null rtxes.
20975         (combine_stack_adjustments_for_block): Update accordingly.
20976
20977 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20978
20979         * combine.c (record_truncated_value): Turn from being a for_each_rtx
20980         callback to a function that takes an rtx and returns a bool
20981         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
20982         for_each_rtx.
20983
20984 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20985
20986         * combine.c: Include rtl-iter.h.
20987         (unmentioned_reg_p_1): Delete.
20988         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
20989         Don't handle null rtxes.
20990
20991 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20992
20993         * calls.c: Include rtl-iter.h.
20994         (internal_arg_pointer_based_exp_1): Delete.
20995         (internal_arg_pointer_based_exp): Take a const_rtx.
20996         Use FOR_EACH_SUBRTX to iterate over subrtxes.
20997
20998 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20999
21000         * caller-save.c: Include rtl-iter.h.
21001         (add_used_regs_1): Delete.
21002         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
21003         to iterate over subrtxes.  Assert that any remaining pseudos
21004         have been spilled.
21005
21006 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
21007
21008         * bt-load.c: Include rtl-iter.h.
21009         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
21010         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
21011         to iterate over subrtxes.
21012         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
21013         find_btr_use rather than btr_referenced_p.
21014
21015 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
21016
21017         * alias.c: Include rtl-iter.h.
21018         (refs_newer_value_cb): Delete.
21019         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21020
21021 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
21022
21023         * rtl-iter.h: New file.
21024         * rtlanal.c: Include it.
21025         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
21026         (generic_subrtx_iterator <T>::add_single_to_queue)
21027         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
21028         (generic_subrtx_iterator <T>::free_array): New functions.
21029         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
21030         (generic_subrtx_iterator <const_rtx_accessor>)
21031         (generic_subrtx_iterator <rtx_var_accessor>
21032         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
21033         (setup_reg_subrtx_bounds): New function.
21034         (init_rtlanal): Call it.
21035
21036 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
21037
21038         PR target/62261
21039         * config/sh/sh.md (ashlsi3): Handle negative shift count for
21040         TARGET_SHMEDIA.
21041         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
21042
21043 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
21044
21045         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
21046
21047 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21048
21049         * rtl.h (JUMP_LABEL_AS_INSN): New.
21050
21051 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21052
21053         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
21054         rtx_expr_list **.
21055         (alloc_EXPR_LIST): Strengthen return type from rtx to
21056         rtx_expr_list *.
21057         (remove_free_EXPR_LIST_node): Likewise for param.
21058         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
21059         from rtx to rtx_expr_list *.
21060         * sched-int.h (struct deps_desc): Strengthen fields
21061         "pending_read_mems" and "pending_write_mems" from rtx to
21062         rtx_expr_list *.
21063
21064         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
21065         rtx to rtx_expr_list *.
21066         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
21067         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
21068         rtx_expr_list **.
21069         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
21070         from rtx to rtx_expr_list *.
21071         * loop-iv.c (simplify_using_initial_values): Strengthen local
21072         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
21073         "pnote_next" from rtx * to rtx_expr_list **.
21074         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
21075         param "exprp" from rtx * to rtx_expr_list **.
21076         (add_insn_mem_dependence): Strengthen local "mem_list" from
21077         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
21078         to rtx_expr_list *.
21079         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
21080         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
21081         param "old_mems_p" from rtx * to rtx_expr_list **.
21082         * var-tracking.c (struct adjust_mem_data): Strengthen field
21083         "side_effects" from rtx to rtx_expr_list *.
21084         (adjust_insn): Replace NULL_RTX with NULL when assigning to
21085         rtx_expr_list *.
21086         (prepare_call_arguments): Likewise.
21087
21088 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21089
21090         * function.h (struct rtl_data): Strengthen field
21091         "x_stack_slot_list" from rtx to rtx_expr_list *.
21092
21093         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
21094         when assigning to stack_slot_list.
21095
21096 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21097
21098         * function.h (struct rtl_data): Strengthen field
21099         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
21100         * rtl.h (remove_node_from_expr_list): Strengthen second param from
21101         rtx * to rtx_expr_list **.
21102
21103         * cfgbuild.c (make_edges): In loop over
21104         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
21105         rtx_expr_list *, and use methods of the latter class to clarify
21106         the code.
21107         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
21108         rtx_expr_list *, and use methods of the latter class to clarify
21109         the code.
21110         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21111         * reload1.c (set_initial_label_offsets): Likewise for local "x".
21112         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
21113         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
21114         to rtx_expr_list *.  Use methods of the latter class to clarify
21115         the code.
21116
21117 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21118
21119         * function.h (struct expr_status): Strengthen field
21120         "x_forced_labels" from rtx to rtx_expr_list *.
21121
21122         * cfgbuild.c (make_edges): Split local "x" into two locals,
21123         strengthening one from rtx to rtx_expr_list *, and using methods
21124         of said class.
21125         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
21126         loop over forced_labels, introduce strengthen it from rtx to
21127         rtx_expr_list *, using methods to clarify the code.
21128         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
21129         to rtx_expr_list *, using methods of said class to clarify the
21130         code.
21131         * reload1.c (set_initial_label_offsets): Split local "x" into two
21132         per-loop variables, strengthening the first from rtx to
21133         rtx_expr_list * and using methods.
21134
21135 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21136
21137         * coretypes.h (class rtx_expr_list): Add forward declaration.
21138         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
21139         * gengenrtl.c (special_rtx): Add EXPR_LIST.
21140         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
21141         invariant: GET_CODE (X) == EXPR_LIST.
21142         (is_a_helper <rtx_expr_list *>::test): New.
21143         (rtx_expr_list::next): New.
21144         (rtx_expr_list::element): New.
21145         (gen_rtx_EXPR_LIST): New.
21146
21147 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21148
21149         * varasm.c (mark_constants): Convert a GET_CODE check into a
21150         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
21151         Use methods of rtx_sequence to clarify the code.
21152
21153 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21154
21155         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
21156         local "seq" via a checked cast, and use methods of rtx_sequence
21157         to simplify the code.
21158
21159 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21160
21161         * resource.c (mark_referenced_resources): Strengthen local
21162         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
21163         using methods of rtx_sequence to clarify the code.
21164         (find_dead_or_set_registers): Within the switch statement, convert
21165         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
21166         the JUMP_P handling, introduce another local "seq", adding a
21167         checked cast to rtx_sequence *.  In both cases, use methods of
21168         rtx_sequence to clarify the code.
21169         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
21170         via a checked cast, and use methods of rtx_sequence to simplify
21171         the code.
21172
21173 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21174
21175         * reorg.c (redundant_insn): In two places in the function, replace
21176         a check of GET_CODE with a dyn_cast, introducing local "seq", and
21177         usings methods of rtx_sequence to clarify the code.
21178
21179 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21180
21181         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
21182         local "seq" with a checked cast, and use methods of rtx_sequence
21183         to clarify the code.
21184
21185 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21186
21187         * function.c (contains): Introduce local "seq" for PATTERN (insn),
21188         with a checked cast, in the region for where we know it's a
21189         SEQUENCE.  Use methods of rtx_sequence.
21190
21191 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21192
21193         * final.c (get_attr_length_1): Replace GET_CODE check with a
21194         dyn_cast, introducing local "seq" and the use of methods of
21195         rtx_sequence.
21196         (shorten_branches): Likewise, introducing local "body_seq".
21197         Strengthen local "inner_insn" from rtx to rtx_insn *.
21198         (reemit_insn_block_notes): Replace GET_CODE check with a
21199         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
21200         Use methods of rtx_sequence.
21201         (final_scan_insn): Likewise, introducing local "seq" for when
21202         "body" is known to be a SEQUENCE, using its methods.
21203
21204 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21205
21206         * except.c (can_throw_external): Strengthen local "seq" from rtx
21207         to rtx_sequence *.  Use methods of rtx_sequence.
21208         (insn_nothrow_p): Likewise.
21209
21210 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21211
21212         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
21213         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
21214         Use methods of rtx_sequence.
21215         (scan_trace): Likewise for local "pat".
21216
21217 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21218
21219         * coretypes.h (class rtx_sequence): Add forward declaration.
21220         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
21221         invariant: GET_CODE (X) == SEQUENCE.
21222         (is_a_helper <rtx_sequence *>::test): New.
21223         (is_a_helper <const rtx_sequence *>::test): New.
21224         (rtx_sequence::len): New.
21225         (rtx_sequence::element): New.
21226         (rtx_sequence::insn): New.
21227
21228 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21229
21230         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
21231         rtx_insn_list **.
21232         (alloc_INSN_LIST): Strengthen return type from rtx to
21233         rtx_insn_list *.
21234         (copy_INSN_LIST): Likewise for return type and param.
21235         (concat_INSN_LIST): Likewise for both params and return type.
21236         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
21237         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
21238         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
21239         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
21240
21241         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
21242         "implicit_sets", "control_uses", "clobbers" from rtx to
21243         rtx_insn_list *.
21244         (struct deps_desc): Likewise for fields "pending_read_insns",
21245         "pending_write_insns", "pending_jump_insns",
21246         "last_pending_memory_flush", "last_function_call",
21247         "last_function_call_may_noreturn", "sched_before_next_call",
21248         "sched_before_next_jump".
21249         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
21250         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
21251
21252         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
21253         from rtx to rtx_insn_list *.
21254         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
21255         rtx_insn_list *.
21256
21257         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
21258         to rtx_insn_list **.
21259         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
21260         rtx_insn_list *.
21261         (queue_insn): Likewise for local "link".
21262         (struct haifa_saved_data): Strengthen field "insn_queue" from
21263         rtx * to rtx_insn_list **.
21264         (save_backtrack_point): Update allocation of save->insn_queue to
21265         reflect the strengthening of elements from rtx to rtx_insn_list *.
21266         (queue_to_ready): Strengthen local "link" from rtx to
21267         rtx_insn_list *; use methods "next" and "insn" when traversing the
21268         list.
21269         (early_queue_to_ready): Likewise for locals "link", "next_link",
21270         "prev_link".
21271         (schedule_block): Update allocation of insn_queue to reflect the
21272         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
21273         local "link" from rtx to rtx_insn_list *, and use methods when
21274         working it.
21275         (add_to_speculative_block): Strengthen locals "twins" and
21276         "next_node" from rtx to rtx_insn_list *, and use methods when
21277         working with them.  Strengthen local "twin" from rtx to
21278         rtx_insn *, eliminating a checked cast.
21279         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
21280         from rtx to rtx_insn_list *, and use methods when working with
21281         them.
21282
21283         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
21284         from rtx to rtx_insn_list *, adding a checked cast.
21285         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
21286         rtx_insn_list **.
21287         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
21288         "newlink" from rtx to rtx_insn_list *.  Strengthen local
21289         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
21290         from rtx to rtx_insn *.
21291         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
21292         from rtx to rtx_insn_list *.  Use methods of the latter class.
21293         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
21294         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
21295         (remove_free_INSN_LIST_node): Strengthen return type and local
21296         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
21297         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
21298         rtx_insn_list *, using "insn" method.
21299
21300         * sched-deps.c (add_dependence_list):  Strengthen param "list"
21301         from rtx to rtx_insn_list *, and use methods when working with it.
21302         (add_dependence_list_and_free):  Strengthen param "listp" from
21303         rtx * to rtx_insn_list **.
21304         (remove_from_dependence_list): Strenghten param "listp" from rtx *
21305         to rtx_insn_list **, and use methods when working with *listp.
21306         (remove_from_both_dependence_lists): Strengthen param "listp" from
21307         rtx * to rtx_insn_list **
21308         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
21309         to rtx_insn_list **.  Eliminate local "link", in favor of two new
21310         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
21311         respectively.
21312         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
21313         by introducing local "cond_deps".
21314         (remove_from_deps): Strengthen param "insn" from rtx to
21315         rtx_insn *.
21316
21317         * sched-rgn.c (concat_insn_mem_list): Strengthen param
21318         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
21319         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
21320         Use methods of rtx_insn_list.
21321
21322         * store-motion.c (struct st_expr): Strengthen fields
21323         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
21324         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
21325         rtx_insn_list *.
21326         (find_moveable_store): Split out "tmp" into multiple more-tightly
21327         scoped locals.  Use methods of rtx_insn_list *.
21328         (compute_store_table): Strengthen local "tmp" from rtx to
21329         rtx_insn *.  Use methods of rtx_insn_list *.
21330
21331 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21332
21333         * coretypes.h (class rtx_insn_list): Add forward declaration.
21334         * rtl.h (class rtx_insn_list): New subclass of rtx_def
21335         (is_a_helper <rtx_insn_list *>::test): New.
21336         (rtx_insn_list::next): New.
21337         (rtx_insn_list::insn): New.
21338         (gen_rtx_INSN_LIST): Add prototype.
21339         * emit-rtl.c (gen_rtx_INSN_LIST): New.
21340         * gengenrtl.c (special_rtx): Add INSN_LIST.
21341
21342 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21343
21344         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
21345         "prev" from rtx to rtx_insn *.
21346
21347 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21348
21349         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
21350         functions.  Require merely an rtx for now, not an rtx_insn *.
21351         (BLOCK_FOR_INSN): Likewise.
21352         (INSN_LOCATION): Likewise.
21353         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
21354
21355 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21356
21357         * rtl.h (PATTERN): Convert this macro into a pair of inline
21358         functions, for now, requiring const_rtx and rtx.
21359
21360 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21361
21362         * target.def (unwind_emit): Strengthen param "insn" from rtx to
21363         rtx_insn *.
21364         (final_postscan_insn): Likewise.
21365         (adjust_cost): Likewise.
21366         (adjust_priority): Likewise.
21367         (variable_issue): Likewise.
21368         (macro_fusion_pair_p): Likewise.
21369         (dfa_post_cycle_insn): Likewise.
21370         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
21371         (first_cycle_multipass_issue): Likewise.
21372         (dfa_new_cycle): Likewise.
21373         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
21374         (speculate_insn): Likewise for param "insn".
21375         (gen_spec_check): Likewise for params "insn" and "label".
21376         (get_insn_spec_ds): Likewise for param "insn".
21377         (get_insn_checked_ds): Likewise.
21378         (dispatch_do): Likewise.
21379         (dispatch): Likewise.
21380         (cannot_copy_insn_p): Likewise.
21381         (invalid_within_doloop): Likewise.
21382         (legitimate_combined_insn): Likewise.
21383         (needed): Likewise.
21384         (after): Likewise.
21385
21386         * doc/tm.texi: Automatically updated to reflect changes to
21387         target.def.
21388
21389         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
21390         working with insn.
21391         (schedule_block): Likewise.
21392         (sched_init): Likewise.
21393         (sched_speculate_insn): Strengthen param "insn" from rtx to
21394         rtx_insn *.
21395         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
21396         working with insn.
21397         * hooks.c (hook_bool_rtx_true): Rename to...
21398         hook_bool_rtx_insn_true): ...this, and strengthen first param from
21399         rtx to rtx_insn *.
21400         (hook_constcharptr_const_rtx_null): Rename to...
21401         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
21402         first param from const_rtx to const rtx_insn *.
21403         (hook_bool_rtx_int_false): Rename to...
21404         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
21405         param from rtx to rtx_insn *.
21406         (hook_void_rtx_int): Rename to...
21407         (hook_void_rtx_insn_int): ...this, and strengthen first param from
21408         rtx to rtx_insn *.
21409
21410         * hooks.h (hook_bool_rtx_true): Rename to...
21411         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
21412         rtx to rtx_insn *.
21413         (hook_bool_rtx_int_false): Rename to...
21414         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
21415         param from rtx to rtx_insn *.
21416         (hook_void_rtx_int): Rename to...
21417         (hook_void_rtx_insn_int): ...this, and strengthen first param from
21418         rtx to rtx_insn *.
21419         (hook_constcharptr_const_rtx_null): Rename to...
21420         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
21421         first param from const_rtx to const rtx_insn *.
21422
21423         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
21424         and local "prev" from rtx to rtx_insn *.
21425
21426         * sched-int.h (sched_speculate_insn): Strengthen first param from
21427         rtx to rtx_insn *.
21428
21429         * sel-sched.c (create_speculation_check): Likewise for local "label".
21430         * targhooks.c (default_invalid_within_doloop): Strengthen param
21431         "insn" from const_rtx to const rtx_insn *.
21432         * targhooks.h (default_invalid_within_doloop): Strengthen param
21433         from const_rtx to const rtx_insn *.
21434
21435         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
21436         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
21437
21438         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
21439         "insn".
21440         (arc_invalid_within_doloop): Likewise, with const.
21441
21442         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
21443         (arm_cannot_copy_insn_p): Likewise for param "insn".
21444         (arm_unwind_emit): Likewise.
21445
21446         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
21447         "dep_insn".
21448
21449         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
21450         (c6x_variable_issue): Likewise.  Removed now-redundant checked
21451         cast.
21452         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
21453
21454         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
21455         Likewise for param "insn".
21456         (epiphany_mode_after): Likewise.
21457         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
21458         params "insn", "dep_insn".
21459         (epiphany_mode_needed): Likewise for param "insn".
21460         (epiphany_mode_after): Likewise.
21461
21462         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
21463         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21464         (ix86_avx_u128_mode_needed): Likewise.
21465         (ix86_i387_mode_needed): Likewise.
21466         (ix86_mode_needed): Likewise.
21467         (ix86_avx_u128_mode_after): Likewise.
21468         (ix86_mode_after): Likewise.
21469         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
21470         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
21471         (ix86_adjust_priority): Likewise for param "insn".
21472         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
21473         (do_dispatch): Likewise.
21474         (has_dispatch): Likewise.
21475         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
21476
21477         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
21478         reflect renaming of default hook implementation from
21479         hook_constcharptr_const_rtx_null to
21480         hook_constcharptr_const_rtx_insn_null.
21481         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
21482         rtx to rtx_insn *.
21483         (ia64_variable_issue): Likewise for param "insn".
21484         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
21485         (ia64_dfa_new_cycle): Likewise.
21486         (ia64_get_insn_spec_ds): Likewise.
21487         (ia64_get_insn_checked_ds): Likewise.
21488         (ia64_speculate_insn): Likewise.
21489         (ia64_gen_spec_check): Likewise for params "insn", "label".
21490         (ia64_asm_unwind_emit): Likewise for param "insn".
21491
21492         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
21493
21494         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
21495         "insn", "def_insn".
21496         (m68k_sched_variable_issue): Likewise for param "insn".
21497
21498         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
21499         "def_insn".
21500
21501         * config/microblaze/microblaze.c (microblaze_adjust_cost):
21502         Likewise for params "insn", "dep".
21503
21504         * config/mips/mips.c (mips_adjust_cost): Likewise.
21505         (mips_variable_issue): Likewise for param "insn".
21506         (mips_final_postscan_insn): Likewise.
21507
21508         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
21509         for params "insn", "dep".
21510
21511         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
21512         "dep_insn".
21513         (pa_adjust_priority): Likewise for param "insn".
21514
21515         * config/picochip/picochip.c (picochip_sched_adjust_cost):
21516         Likewise for params "insn", "dep_insn".
21517
21518         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
21519         param "insn".
21520         (rs6000_variable_issue): Likewise.
21521         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
21522         (rs6000_debug_adjust_cost): Likewise.
21523         (rs6000_adjust_priority): Likewise for param "insn".
21524         (rs6000_use_sched_lookahead_guard): Likewise.
21525         (get_next_active_insn): Likewise for return type and both params.
21526         (redefine_groups): Likewise for params "prev_head_insn", "tail"
21527         and locals "insn", "next_insn".
21528         (pad_groups): Likewise.
21529
21530         * config/s390/s390.c (s390_adjust_priority): Likewise for param
21531         "insn".
21532         (s390_cannot_copy_insn_p): Likewise.
21533         (s390_sched_variable_issue): Likewise for third param, eliminating
21534         checked cast.
21535         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
21536         default hook implementation from hook_constcharptr_const_rtx_null
21537         to hook_constcharptr_const_rtx_insn_null.
21538
21539         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
21540         from rtx to rtx_insn *.
21541         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
21542         (sh_variable_issue): Likewise for param "insn".
21543         (sh_dfa_new_cycle): Likewise.
21544         (sh_mode_needed): Likewise.
21545         (sh_mode_after): Likewise.
21546
21547         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
21548         params "insn", "dep_insn".
21549         (hypersparc_adjust_cost): Likewise.
21550         (sparc_adjust_cost): Likewise.
21551
21552         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
21553         param, eliminated checked cast.
21554         (spu_sched_adjust_cost): Likewise for first and third params.
21555
21556         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
21557         params "insn" and "dep_insn" from rtx to rtx_insn *.
21558
21559         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
21560
21561 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21562
21563         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
21564         (set_is_load_p): ...this, updating to work on a SET pattern rather
21565         than an insn.
21566         (is_store_insn): Rename to...
21567         (set_is_store_p): ...this, updating to work on a SET pattern
21568         rather than an insn.
21569         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
21570         top of function to where it is needed.  Rewrite the bogus
21571         condition that checks for "insn" and "dep" being PARALLEL to
21572         instead use single_set, introducing locals "insn_set" and
21573         "dep_set".  Given that we only ever returned "cost" for a non-pair
21574         of SETs, bail out early if we don't have a pair of SET.
21575         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
21576         use the new locals "insn_set" and "dep_set", and update calls to
21577         is_load_insn and is_store_insn to be calls to set_is_load_p and
21578         set_is_store_p.
21579
21580 2014-08-27  Guozhi Wei  <carrot@google.com>
21581
21582         PR target/62262
21583         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
21584         amount before using it.
21585
21586 2014-08-27  Richard Biener  <rguenther@suse.de>
21587
21588         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
21589         get_maxval_strlen inside a more useful API.
21590         (gimple_fold_builtin_with_strlen): Remove and fold into ...
21591         (gimple_fold_builtin): ... caller.
21592         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
21593         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
21594         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
21595         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
21596         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
21597         gimple_fold_builtin_sprintf): Adjust to compute maxval
21598         themselves.
21599
21600 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
21601
21602         PR other/62248
21603         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
21604
21605 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
21606             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
21607             Anna Tikhonova  <anna.tikhonova@intel.com>
21608             Ilya Tocar  <ilya.tocar@intel.com>
21609             Andrey Turetskiy  <andrey.turetskiy@intel.com>
21610             Ilya Verbin  <ilya.verbin@intel.com>
21611             Kirill Yukhin  <kirill.yukhin@intel.com>
21612             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
21613
21614         * config/i386/sse.md
21615         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
21616         Use `concat_tg_mode' attribute to determine asm register size.
21617
21618 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
21619             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
21620             Anna Tikhonova  <anna.tikhonova@intel.com>
21621             Ilya Tocar  <ilya.tocar@intel.com>
21622             Andrey Turetskiy  <andrey.turetskiy@intel.com>
21623             Ilya Verbin  <ilya.verbin@intel.com>
21624             Kirill Yukhin  <kirill.yukhin@intel.com>
21625             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
21626
21627         * config/i386/sse.md
21628         (define_mode_iterator VI48_AVX512VL): New.
21629         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
21630         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
21631         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
21632         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21633         with VI1): Change mode iterator.
21634         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21635         with VI_ULOADSTORE_BW_AVX512VL): New.
21636         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21637         with VI_ULOADSTORE_F_AVX512VL): Ditto.
21638         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21639         with VI1): Change mode iterator.
21640         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21641         with VI_ULOADSTORE_BW_AVX512VL): New.
21642         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21643         with VI_ULOADSTORE_F_AVX512VL): Ditto.
21644         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
21645         with VI1): Change mode iterator.
21646         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
21647         with VI_ULOADSTORE_BW_AVX512VL): New.
21648         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
21649         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
21650         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
21651         (define_insn "<avx512>_storedqu<mode>_mask" with
21652         VI48_AVX512VL): New.
21653         (define_insn "<avx512>_storedqu<mode>_mask" with
21654         VI12_AVX512VL): Ditto.
21655
21656 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
21657             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
21658             Anna Tikhonova  <anna.tikhonova@intel.com>
21659             Ilya Tocar  <ilya.tocar@intel.com>
21660             Andrey Turetskiy  <andrey.turetskiy@intel.com>
21661             Ilya Verbin  <ilya.verbin@intel.com>
21662             Kirill Yukhin  <kirill.yukhin@intel.com>
21663             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
21664
21665         * config/i386/sse.md
21666         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
21667         (define_mode_iterator VI48_AVX512BW): New.
21668         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
21669         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
21670         with VI48_AVX2_48_AVX512F): New.
21671         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
21672         with VI2_AVX512VL): Ditto.
21673
21674 2014-08-27  Richard Biener  <rguenther@suse.de>
21675
21676         PR middle-end/62239
21677         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
21678         (fold_builtin_3): Do not fold strcat_chk here.
21679         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
21680         from builtins.c.
21681         (gimple_fold_builtin): Fold strcat_chk here.
21682
21683 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
21684
21685         * dwarf2out.h (dwarf2out_decl): Remove prototype.
21686         * dwarf2out.c (dwarf2out_decl): Make static.
21687
21688 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
21689
21690         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
21691
21692 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21693
21694         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
21695         from rtx to rtx_insn *.
21696         (cselib_lookup_from_insn): Likewise for final param.
21697         (cselib_subst_to_values_from_insn): Likewise.
21698         (cselib_add_permanent_equiv): Likewise.
21699
21700         * cselib.c (cselib_current_insn): Likewise for this variable.
21701         (cselib_subst_to_values_from_insn): Likewise for param "insn".
21702         (cselib_lookup_from_insn): Likewise.
21703         (cselib_add_permanent_equiv): Likewise for param "insn" and local
21704         "save_cselib_current_insn".
21705         (cselib_process_insn): Replace use of NULL_RTX with NULL.
21706
21707         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
21708         from rtx to rtx_insn *.
21709
21710 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21711
21712         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
21713         rtx_insn *.
21714
21715 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21716
21717         * df.h (df_dump_insn_problem_function): Strengthen first param of
21718         this callback from const_rtx to const rtx_insn *.
21719         (struct df_insn_info): Strengthen field "insn" from rtx to
21720         rtx_insn *.
21721         (DF_REF_INSN): Eliminate this function, reinstating the older
21722         macro definition.
21723         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
21724         (df_reg_defined): Likewise.
21725         (df_find_use): Likewise.
21726         (df_reg_used): Likewise.
21727         (df_dump_insn_top): Strengthen param 1 from const_rtx to
21728         const rtx_insn *.
21729         (df_dump_insn_bottom): Likewise.
21730         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
21731         (df_insn_debug_regno): Likewise.
21732         (debug_df_insn): Likewise.
21733         (df_rd_simulate_one_insn): Likewise for param 2.
21734         (df_word_lr_simulate_defs): Likewise for param 1.
21735         (df_word_lr_simulate_uses): Likewise.
21736         (df_md_simulate_one_insn): Likewise for param 2.
21737         (df_simulate_find_noclobber_defs): Likewise for param 1.
21738         (df_simulate_find_defs): Likewise.
21739         (df_simulate_defs): Likewise.
21740         (df_simulate_uses): Likewise.
21741         (df_simulate_one_insn_backwards): Likewise for param 2.
21742         (df_simulate_one_insn_forwards): Likewise.
21743         (df_uses_create): Likewise for param 2.
21744         (df_insn_create_insn_record): Likewise for param 1.
21745         (df_insn_delete): Likewise.
21746         (df_insn_rescan): Likewise.
21747         (df_insn_rescan_debug_internal): Likewise.
21748         (df_insn_change_bb): Likewise.
21749         (df_notes_rescan): Likewise.
21750         * rtl.h (remove_death): Likewise for param 2.
21751         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
21752         const rtx_insn *.
21753         * sched-int.h (reemit_notes): Strengthen param from rtx to
21754         rtx_insn *.
21755         * valtrack.h (propagate_for_debug): Likewise for param 1.
21756
21757         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
21758         local "tmp_rtx" from const_rtx to const rtx_insn *.
21759         * combine.c (remove_death): Strengthen param "insn" from rtx to
21760         rtx_insn *.
21761         (move_deaths): Likewise for local "where_dead".
21762         * cse.c (delete_trivially_dead_insns): Introduce local
21763         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
21764         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
21765         rtx_insn *.
21766         (df_reg_defined): Likewise.
21767         (df_find_use): Likewise.
21768         (df_reg_used): Likewise.
21769         (df_dump_insn_problem_data): Strengthen param "insn" from
21770         const_rtx to const rtx_insn *.
21771         (df_dump_insn_top): Likewise.
21772         (df_dump_insn_bottom): Likewise.
21773         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
21774         (df_insn_debug_regno): Likewise.
21775         (debug_df_insn): Likewise.
21776         (DF_REF_INSN): Delete.
21777         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
21778         from rtx to rtx_insn *.
21779         (df_chain_insn_top_dump): Strengthen param "insn" from
21780         const_rtx to const rtx_insn *.
21781         (df_chain_insn_bottom_dump): Likewise.
21782         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
21783         rtx_insn *.
21784         (df_word_lr_simulate_uses): Likewise.
21785         (df_print_note): Likewise.
21786         (df_remove_dead_and_unused_notes): Likewise.
21787         (df_set_unused_notes_for_mw): Likewise.
21788         (df_set_dead_notes_for_mw): Likewise.
21789         (df_create_unused_note): Likewise.
21790         (df_simulate_find_defs): Likewise.
21791         (df_simulate_find_uses): Likewise.
21792         (df_simulate_find_noclobber_defs): Likewise.
21793         (df_simulate_defs): Likewise.
21794         (df_simulate_uses): Likewise.
21795         (df_simulate_one_insn_backwards): Likewise.
21796         (df_simulate_one_insn_forwards): Likewise.
21797         (df_md_simulate_one_insn): Likewise.
21798         * df-scan.c (df_uses_create): Likewise.
21799         (df_insn_create_insn_record): Likewise.
21800         (df_insn_delete): Likewise.
21801         (df_insn_rescan): Likewise.
21802         (df_insn_rescan_debug_internal): Likewise.
21803         (df_insn_change_bb): Likewise.
21804         (df_notes_rescan): Likewise.
21805         (df_refs_add_to_chains): Likewise.
21806         (df_insn_refs_verify): Likewise.
21807         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
21808         when invoking df_insn_delete.
21809         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
21810         (set_unique_reg_note): Add checked cast.
21811         * final.c (cleanup_subreg_operands): Likewise.
21812         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
21813         "insn" from rtx to rtx_insn *.
21814         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
21815         "last" from rtx to rtx_insn *.
21816         * ira-emit.c (change_regs_in_insn): New function.
21817         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
21818         Invoke change_regs_in_insn rather than change_regs.
21819         * ira.c (update_equiv_regs): Strengthen locals "insn",
21820         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
21821         for_each_rtx_in_insn rather than for_each_rtx.
21822         * recog.c (confirm_change_group): Add checked casts.
21823         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
21824         Add checked cast.
21825         (peep2_fill_buffer): Add checked cast.
21826         * rtlanal.c (remove_note): Likewise.
21827         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
21828         locals "next" "end" from rtx to rtx_insn *.
21829
21830 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21831
21832         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
21833         to rtx_insn *.
21834         (struct reg_use_data): Likewise for field "insn".
21835         (insn_cost): Likewise for param.
21836         (real_insn_for_shadow): Likewise for return type and param.
21837         (increase_insn_priority): Likewise for param 1.
21838         (debug_dependencies): Likewise for both params.
21839
21840         * haifa-sched.c (insn_delay): Likewise for param "insn".
21841         (real_insn_for_shadow): Likewise for return type and param "insn".
21842         (update_insn_after_change): Likewise for param "insn".
21843         (recompute_todo_spec): Likewise for param "next" and locals "pro",
21844         "other".
21845         (insn_cost): Likewise for param "insn".
21846         (increase_insn_priority): Likewise.
21847         (calculate_reg_deaths): Likewise.
21848         (setup_insn_reg_pressure_info): Likewise.
21849         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
21850         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
21851         (model_recompute): Likewise.
21852         (must_restore_pattern_p): Likewise for param "next".
21853         (model_excess_cost): Likewise for param "insn".
21854         (queue_remove): Likewise.
21855         (adjust_priority): Likewise for param "prev".
21856         (update_register_pressure): Likewise for param "insn".
21857         (setup_insn_max_reg_pressure): Likewise for local "insn".
21858         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
21859         (model_add_to_schedule): Likewise.
21860         (model_reset_queue_indices): Likewise for local "insn".
21861         (unschedule_insns_until): Strengthen local "recompute_vec" from
21862         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
21863         "con" from rtx to rtx_insn *.
21864         (restore_last_backtrack_point): Likewise for both locals "x". Add
21865         checked casts.
21866         (estimate_insn_tick): Likewise for param "insn".
21867         (commit_schedule): Likewise for params "prev_head", "tail" and
21868         local "x".
21869         (verify_shadows): Likewise for locals "i1", "i2".
21870         (dump_insn_stream): Likewise for params "head", "tail" and locals
21871         "next_tail", "insn".
21872         (schedule_block): Likewise for locals "insn", "x".  Add a checked
21873         cast.
21874         (fix_inter_tick): Likewise for params "head", "tail".
21875         (create_check_block_twin): Likewise for local "jump".
21876         (haifa_change_pattern): Likewise for param "insn".
21877         (haifa_speculate_insn): Likewise.
21878         (dump_new_block_header): Likewise for params "head", "tail".
21879         (fix_jump_move): Likewise for param "jump".
21880         (move_block_after_check): Likewise.
21881         (sched_init_insn_luid): Likewise for param "insn".
21882         (sched_init_luids): Likewise for local "insn".
21883         (insn_luid): Likewise for param "insn".
21884         (init_h_i_d): Likewise.
21885         (haifa_init_h_i_d): Likewise for local "insn".
21886         (haifa_init_insn): Likewise for param "insn".
21887         * sched-deps.c (add_dependence): Likewise for local "real_pro",
21888         "other".
21889         (create_insn_reg_use): Likewise for param "insn".
21890         (setup_insn_reg_uses): Likewise.  Add a checked cast.
21891         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
21892         "tail" from rtx to rtx_insn *.
21893         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
21894         "insn", "next_tail".
21895
21896 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21897
21898         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
21899         from rtx to rtx_insn *.
21900         (model_add_to_schedule): Likewise for locals "start", "end",
21901         "iter".
21902
21903 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21904
21905         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
21906         rtx_insn *.
21907         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
21908         "to" and locals "insn", "next", "copy".  Remove now-redundant
21909         checked cast.
21910
21911 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21912
21913         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
21914         rtx_insn * and param 4 from rtx * to rtx_insn **.
21915         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
21916         param 2 from rtx * to rtx_insn **.
21917
21918         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
21919         rtx_insn * and final param from rtx * to rtx_insn **.
21920
21921         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
21922         from rtx to rtx_insn *.
21923         (try_head_merge_bb): Likewise for both locals named "move_upto".
21924         * df-problems.c (can_move_insns_across): Likewise for params
21925         "from", "to", "across_from", "across_to" and locals "insn",
21926         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
21927         rtx_insn **.
21928         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
21929         from rtx to rtx_insn *.
21930         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
21931         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
21932         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
21933         rtx_insn *.
21934         (noce_try_abs): Likewise.
21935         (noce_get_condition): Likewise for param "jump".  Strengthen param
21936         "earliest" from rtx * to rtx_insn **.
21937         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
21938         rtx_insn *.
21939         (find_cond_trap): Likewise.
21940         (dead_or_predicable): Likewise for local "earliest".
21941         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
21942         checked cast.
21943         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
21944         and local "prev".  Strengthen param "earliest" from rtx * to
21945         rtx_insn **.
21946         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
21947         Strengthen param "earliest" from rtx * to rtx_insn **.
21948
21949 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21950
21951         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
21952         "to" and local "insn" from rtx to rtx_insn *.
21953
21954 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21955
21956         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
21957         from rtx to rtx_insn *.
21958         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
21959         (code_motion_path_driver): Likewise for local "last_insn".
21960         (simplify_changed_insns): Likewise for local "insn".
21961
21962 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21963
21964         * rtl.h (push_to_sequence): Strengthen param from rtx to
21965         rtx_insn *.
21966         (push_to_sequence2): Likewise for both params.
21967         (delete_insns_since): Likewise for param.
21968         (reorder_insns_nobb): Likewise for all three params.
21969         (set_new_first_and_last_insn): Likewise for both params.
21970
21971         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
21972         rtx_insn *.  Remove now-redundant cast.
21973         (set_last_insn): Likewise.
21974
21975         * builtins.c (expand_builtin_return): Strengthen local
21976         "call_fusage" from rtx to rtx_insn *.
21977         * cfgrtl.c (create_basic_block_structure): Likewise for local
21978         "after".
21979         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
21980         "first", "last" and local "insn".
21981         (delete_insns_since): Likewise for param "from".
21982         (reorder_insns_nobb): Likewise for params "from", "to", "after"
21983         and local "x".
21984         (push_to_sequence): Likewise for param "first" and local "last".
21985         (push_to_sequence2): Likewise for params "first" and "last".
21986         * lra.c (emit_add3_insn): Likewise for local "last".
21987         (lra_emit_add): Likewise.
21988         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
21989         "last_insn".
21990         (process_address_1): Likewise for locals "insn", last".
21991         * modulo-sched.c (ps_first_note): Likewise for return type.
21992         * optabs.c (expand_binop_directly): Likewise for param "last".
21993
21994 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21995
21996         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
21997         to rtx_insn*.
21998         * emit-rtl.c (get_last_insn_anywhere): Likewise.
21999
22000 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22001
22002         * function.h (struct sequence_stack): Strengthen fields "first"
22003         and "last" from rtx to rtx_insn *.
22004         (struct emit_status): Likewise for fields "x_first_insn" and
22005         "x_last_insn".
22006
22007         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
22008         (set_first_insn): Add checked cast.
22009         (get_last_insn): Remove now-redundant checked cast.
22010         (set_last_insn): Add checked cast.
22011
22012         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
22013         "saved_first" and "saved_last" from rtx to rtx_insn *.
22014
22015 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22016
22017         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
22018         (unlink_insn_chain): Strengthen both params from rtx to
22019         rtx_insn *.
22020
22021         * cfgrtl.c (cfg_layout_function_header): Likewise for this
22022         variable.
22023         (unlink_insn_chain): Likewise for params "first" and "last".
22024         Remove now-redundant checked cast.
22025         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
22026         (fixup_reorder_chain): Strengthen local "insn" from rtx to
22027         rtx_insn *.
22028         * emit-rtl.c (link_insn_into_chain): Likewise for all three
22029         params.
22030         (add_insn): Likewise for param "insn" and local "prev".
22031         (add_insn_after_nobb): Likewise for both params and local "next".
22032         (add_insn_before_nobb): Likewise for both params and local "prev".
22033         (add_insn_after): Rename param "after" to "uncast_after",
22034         introducing local "after" with another checked cast.
22035         (add_insn_before): Rename params "insn" and "before", giving them
22036         "uncast_" prefixes, adding the old names back using checked casts.
22037         (emit_note_after): Likewise for param "after".
22038         (emit_note_before): Likewise for param "before".
22039         (emit_label): Add a checked cast.
22040
22041 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22042
22043         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
22044         "insn" from rtx to rtx_insn *.
22045
22046         * cselib.c (cselib_record_sets_hook): Likewise.
22047
22048         * var-tracking.c (add_with_sets): Likewise, renaming back from
22049         "uncast_insn" to "insn" and eliminating the checked cast from rtx
22050         to rtx_insn *.
22051
22052 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22053
22054         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
22055         and "header_" from rtx to rtx_insn *.
22056         (struct basic_block_d): Likewise for field "head_" within "x"
22057         field of union basic_block_il_dependent.
22058         (BB_HEAD): Drop function...
22059         (SET_BB_HEAD): ...and this function in favor of...
22060         (BB_HEAD): ...reinstate macro.
22061         (BB_END): Drop function...
22062         (SET_BB_END): ...and this function in favor of...
22063         (BB_END): ...reinstate macro.
22064         (BB_HEADER): Drop function...
22065         (SET_BB_HEADER): ...and this function in favor of...
22066         (BB_HEADER): ...reinstate macro.
22067
22068         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
22069         (fix_crossing_unconditional_branches): Likewise.
22070         * caller-save.c (save_call_clobbered_regs): Likewise.
22071         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
22072         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
22073         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
22074         (merge_blocks_move_successor_nojumps): Likewise.
22075         (outgoing_edges_match): Update use of for_each_rtx to
22076         for_each_rtx_in_insn.
22077         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
22078         (expand_gimple_cond): Likewise.
22079         (expand_gimple_tailcall): Likewise.
22080         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
22081         SET_BB_END.
22082         (construct_exit_block): Drop use of SET_BB_END.
22083         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
22084         rtx_insn *.
22085         (delete_insn): Rename param "insn" to "uncast_insn", introducing
22086         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
22087         SET_BB_HEAD and SET_BB_END.
22088         (create_basic_block_structure): Drop use of SET_BB_HEAD and
22089         SET_BB_END.
22090         (rtl_delete_block): Drop use of SET_BB_HEAD.
22091         (rtl_split_block): Drop use of SET_BB_END.
22092         (emit_nop_for_unique_locus_between): Likewise.
22093         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
22094         (block_label): Drop use of SET_BB_HEAD.
22095         (fixup_abnormal_edges): Drop use of SET_BB_END.
22096         (record_effective_endpoints): Drop use of SET_BB_HEADER.
22097         (relink_block_chain): Likewise.
22098         (fixup_reorder_chain): Drop use of SET_BB_END.
22099         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
22100         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
22101         rtx_insn **.  Drop use of SET_BB_HEADER.
22102         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
22103         SET_BB_HEAD.
22104         (BB_HEAD): Delete this function.
22105         (SET_BB_HEAD): Likewise.
22106         (BB_END): Likewise.
22107         (SET_BB_END): Likewise.
22108         (BB_HEADER): Likewise.
22109         (SET_BB_HEADER): Likewise.
22110         * emit-rtl.c (add_insn_after):  Rename param "insn" to
22111         "uncast_insn", adding a new local "insn" and a checked cast to
22112         rtx_insn *.  Drop use of SET_BB_END.
22113         (remove_insn): Strengthen locals "next" and "prev" from rtx to
22114         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
22115         (reorder_insns): Drop use of SET_BB_END.
22116         (emit_insn_after_1): Strengthen param "first" and locals "last",
22117         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
22118         (emit_pattern_after_noloc): Add checked cast.
22119         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
22120         (restore_other_notes): Likewise.
22121         (move_insn): Likewise.
22122         (sched_extend_bb): Likewise.
22123         (fix_jump_move): Likewise.
22124         * ifcvt.c (noce_process_if_block): Likewise.
22125         (dead_or_predicable): Likewise.
22126         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
22127         * reg-stack.c (change_stack): Drop use of SET_BB_END.
22128         * sel-sched-ir.c (sel_move_insn): Likewise.
22129         * sel-sched.c (move_nop_to_previous_block): Likewise.
22130
22131         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
22132         SET_BB_END.
22133         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
22134
22135 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22136
22137         * basic-block.h (create_basic_block_structure): Strengthen params
22138         1 "head" and 2 "end" from rtx to rtx_insn *.
22139         * cfgrtl.c (create_basic_block_structure): Likewise.
22140         (rtl_create_basic_block): Update casts from void * to rtx to
22141         rtx_insn *, so that we can pass them as rtx_insn * to
22142         create_basic_block_structure.
22143         * sel-sched-ir.c (sel_create_basic_block): Likewise.
22144
22145 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22146
22147         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
22148         rtx_insn **.
22149         (check_for_inc_dec): Strengthen param "insn" from rtx to
22150         rtx_insn *.
22151
22152         * cselib.h (cselib_process_insn): Likewise.
22153
22154         * cselib.c (cselib_record_sets): Likewise.
22155         (cselib_process_insn): Likewise.
22156
22157         * dse.c (struct insn_info): Likewise for field "insn".
22158         (check_for_inc_dec_1): Likewise for local "insn".
22159         (check_for_inc_dec): Likewise for param "insn".
22160         (scan_insn): Likewise.
22161         (dse_step1): Likewise for local "insn".
22162
22163         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
22164         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
22165
22166 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22167
22168         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
22169         from rtx to rtx_insn *.
22170         (DEP_PRO): Delete this function and...
22171         (SET_DEP_PRO): ...this function in favor of...
22172         (DEP_PRO): ...reinstate this macro.
22173         (DEP_CON): Delete this function and...
22174         (SET_DEP_CON): ...this function in favor of...
22175         (DEP_CON): ...reinstate this old macro.
22176         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
22177         (init_dep): Likewise.
22178         (set_priorities): Likewise for both params.
22179         (sd_copy_back_deps): Likewise for params 1 and 2.
22180
22181         * haifa-sched.c (priority): Likewise for param "insn" and local
22182         "next".
22183         (set_priorities): Likewise for params "head" and "tail" and local
22184         "insn".
22185         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
22186         local "consumer".
22187         (add_to_speculative_block): Add a checked cast.
22188         (create_check_block_twin): Drop use of SET_DEP_CON.
22189         (add_jump_dependencies): Strengthen params "insn" and "jump" from
22190         rtx to rtx_insn *.
22191
22192         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
22193         Drop use of SET_DEP_PRO
22194         (init_dep): Strengthen params "pro" and "con" from rtx to
22195         rtx_insn *.
22196         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
22197         use of SET_DEP_CON.
22198         (DEP_PRO): Delete.
22199         (DEP_CON): Delete.
22200         (SET_DEP_PRO): Delete.
22201         (SET_DEP_CON): Delete.
22202
22203 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22204
22205         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
22206         from rtx to rtx_insn *.
22207         (VINSN_INSN_RTX): Eliminate rvalue function and...
22208         (SET_VINSN_INSN): ...lvalue function in favor of...
22209         (VINSN_INSN_RTX): reinstate this old macro.
22210
22211         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
22212         in favor of VINSN_INSN_RTX.
22213         (VINSN_INSN_RTX): Delete this function.
22214         (SET_VINSN_INSN_RTX): Likewise.
22215
22216 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22217
22218         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
22219         (BND_TO): Delete this function and...
22220         (SET_BND_TO): ...this functions in favor of...
22221         (BND_TO): ...reinstating this macro.
22222         (struct _fence): Strengthen field "executing_insns" from
22223         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
22224         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
22225         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
22226         and param "insn" from rtx to insn_t.
22227         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
22228         rtx_insn *.
22229
22230         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
22231         vec<rtx_insn *> .
22232         (rtx_vec_t): Likewise.
22233         (struct sched_deps_info_def): Strengthen param of "start_insn"
22234         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
22235         "note_mem_dep" callback and first param of "note_dep" callback.
22236
22237         * haifa-sched.c (add_to_speculative_block): Strengthen param
22238         "insn" from rtx to rtx_insn *.
22239         (clear_priorities): Likewise.
22240         (calc_priorities): Likewise for local "insn".
22241
22242         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
22243         Remove redundant checked cast.
22244         (haifa_note_mem_dep): Likewise for param "pending_insn".
22245         (haifa_note_dep): Likewise for param "elem".
22246         (note_mem_dep): Likewise for param "e".
22247         (sched_analyze_1): Add checked casts.
22248         (sched_analyze_2): Likewise.
22249
22250         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
22251         from rtx to rtx_insn *.
22252         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
22253         from vec<rtx> * to vec<rtx_insn *> *.
22254
22255         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
22256         scaffolding.
22257         (flist_add): Strengthen param "executing_insns" from
22258         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
22259         (advance_deps_context): Remove now-redundant checked cast.
22260         (init_fences): Replace uses of NULL_RTX with NULL.
22261         (merge_fences): Strengthen params "last_scheduled_insn" and
22262         "sched_next" from rtx to rtx_insn * and "executing_insns" from
22263         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
22264         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
22265         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
22266         an instruction, rather than doing double-duty as a pattern.
22267         (return_nop_to_pool): Update for change of insn_t.
22268         (deps_init_id): Remove now-redundant checked cast.
22269         (struct sched_scan_info_def): Strengthen param of "init_insn"
22270         callback from rtx to insn_t.
22271         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
22272         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
22273         NULL.
22274         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
22275         "end" from rtx to rtx_insn *.
22276         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
22277         (rtx insn_rtx, bool force_unique_p)
22278         (BND_TO): Delete function.
22279         (SET_BND_TO): Delete function.
22280
22281         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
22282         rtx to rtx_insn *.
22283         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
22284         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
22285         rtx to rtx_insn *.
22286         (undo_transformations): Likewise for param "insn".
22287         (update_liveness_on_insn): Likewise.
22288         (compute_live_below_insn): Likewise for param "insn" and local
22289         "succ".
22290         (update_data_sets): Likewise for param "insn".
22291         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
22292         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
22293         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
22294         rtx_insn *.
22295         (move_cond_jump): Likewise for param "insn".
22296         (move_cond_jump): Drop use of SET_BND_TO.
22297         (compute_av_set_on_boundaries): Likewise.
22298         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
22299         (update_and_record_unavailable_insns): Strengthen local "bb_end"
22300         from rtx to rtx_insn *.
22301         (maybe_emit_renaming_copy): Likewise for param "insn".
22302         (maybe_emit_speculative_check): Likewise.
22303         (handle_emitting_transformations): Likewise.
22304         (remove_insn_from_stream): Likewise.
22305         (code_motion_process_successors): Strengthen local "succ" from rtx
22306         to insn_t.
22307
22308 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22309
22310         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
22311         ilist_t, not _xlist_t;
22312         (ILIST_INSN): Define in terms of new union field "insn".
22313         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
22314         _XLIST_NEXT.
22315         (struct _list_node): Add new field "insn" to the union, of type
22316         insn_t.
22317         (ilist_add): Replace macro with an inline function, requiring an
22318         insn_t.
22319         (ilist_remove): Define this macro directly in terms of
22320         _list_remove, rather than indirectly via _xlist_remove.
22321         (ilist_clear): Likewise, in terms of _list_clear rather than
22322         _xlist_clear.
22323         (ilist_is_in_p): Replace macro with an inline function, requiring
22324         an insn_t.
22325         (_list_iter_cond_insn): New function.
22326         (ilist_iter_remove): Define this macro directly in terms of
22327         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
22328         (ilist_iterator): Define directly in terms of _list_iterator
22329         rather than indirectly through _xlist_iterator.
22330         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
22331         than in terms of _FOR_EACH_X.
22332         (FOR_EACH_INSN_1): Likewise.
22333
22334 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
22335
22336         PR target/60606
22337         PR target/61330
22338         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
22339         DECL_HARD_REGISTER and return for invalid register specifications.
22340         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
22341         DECL_HARD_REGISTER, call expand_one_error_var.
22342         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
22343         CC_REGNUM with non-MODE_CC modes.
22344         (arm_regno_class): Return NO_REGS for PC_REGNUM.
22345
22346 2014-08-26  Marek Polacek  <polacek@redhat.com>
22347
22348         PR c/61271
22349         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
22350
22351 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
22352
22353         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
22354         qi cost; add di cost.
22355         (cortexa57_addrcost_table): Likewise.
22356
22357 2014-08-26  Marek Polacek  <polacek@redhat.com>
22358
22359         PR c/61271
22360         * expr.c (is_aligning_offset): Remove logical not.
22361
22362 2014-08-26  Marek Polacek  <polacek@redhat.com>
22363
22364         PR c/61271
22365         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
22366         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
22367
22368 2014-08-26  Richard Biener  <rguenther@suse.de>
22369
22370         PR tree-optimization/62175
22371         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
22372         expand possibly trapping operations.
22373
22374 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
22375
22376         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
22377         "insn" from rtx to rtx_insn *.
22378         (permute_load): Likewise for param "insn".
22379         (permute_store): Likewise.
22380         (handle_special_swappables): Likewise for local "insn".
22381         (replace_swap_with_copy): Likewise for locals "insn" and
22382         "new_insn".
22383         (rs6000_analyze_swaps): Likewise for local "insn".
22384
22385 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22386
22387         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
22388         to rtx_insn *.
22389
22390 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22391
22392         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
22393         "note_list" from rtx to rtx_insn *.
22394         (BB_NOTE_LIST): Replace this function and...
22395         (SET_BB_NOTE_LIST): ...this function with...
22396         (BB_NOTE_LIST): ...the former macro implementation.
22397
22398         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
22399         local "from_start" from rtx to rtx_insn *.  Strengthen param
22400         "to_endp" from rtx * to rtx_insn **.
22401
22402         * haifa-sched.c (concat_note_lists): Likewise.
22403         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
22404         BB_NOTE_LIST.
22405         (sel_restore_notes): Likewise.
22406         (move_bb_info): Likewise.
22407         (BB_NOTE_LIST): Delete this function.
22408         (SET_BB_NOTE_LIST): Delete this function.
22409         * sel-sched.c (create_block_for_bookkeeping): Eliminate
22410         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
22411
22412 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22413
22414         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
22415         from rtx * to rtx_insn **.
22416         (reorder2): Likewise.
22417         (dependencies_evaluation_hook): Strengthen params "head", "tail"
22418         from rtx to rtx_insn *.
22419
22420         * doc/tm.texi: Update mechanically for above change to target.def.
22421
22422         * sched-int.h (note_list): Strengthen this variable from rtx to
22423         rtx_insn *.
22424         (remove_notes): Likewise for both params.
22425         (restore_other_notes): Likewise for return type and first param.
22426         (struct ready_list): Strengthen field "vec" from rtx * to
22427         rtx_insn **.
22428         (struct dep_replacement): Strenghten field "insn" from rtx to
22429         rtx_insn *.
22430         (struct deps_desc): Likewise for fields "last_debug_insn",
22431         "last_args_size".
22432         (struct haifa_sched_info): Likewise for callback field
22433         "can_schedule_ready_p"'s param, for first param of "new_ready"
22434         callback field, for both params of "rank" callback field, for
22435         first field of "print_insn" callback field (with a const), for
22436         both params of "contributes_to_priority" callback, for param
22437         of "insn_finishes_block_p" callback, for fields "prev_head",
22438         "next_tail", "head", "tail", for first param of "add_remove_insn"
22439         callback, for first param of "begin_schedule_ready" callback, for
22440         both params of "begin_move_insn" callback, and for second param
22441         of "advance_target_bb" callback.
22442         (add_dependence): Likewise for params 1 and 2.
22443         (sched_analyze): Likewise for params 2 and 3.
22444         (deps_analyze_insn): Likewise for param 2.
22445         (ready_element): Likewise for return type.
22446         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
22447         (try_ready): Strenghten param from rtx to rtx_insn *.
22448         (sched_emit_insn): Likewise for return type.
22449         (record_delay_slot_pair): Likewise for params 1 and 2.
22450         (add_delay_dependencies): Likewise for param.
22451         (contributes_to_priority): Likewise for both params.
22452         (find_modifiable_mems): Likewise.
22453
22454         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
22455         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
22456         "first_older_only_insn" from rtx to rtx_insn *.
22457         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
22458         rtx_insn **.
22459
22460         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
22461         "last_scheduled_iter0" from rtx to rtx_insn *.
22462         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
22463         (c6x_sched_reorder_1): Strengthen param "ready" and locals
22464         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
22465         "insn" from rtx to rtx_insn *.
22466         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
22467         rtx_insn **.
22468         (c6x_sched_reorder2): Strengthen param "ready" and locals
22469         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
22470         "insn" from rtx to rtx_insn *.
22471         (c6x_variable_issue):  Add a checked cast when assigning from insn
22472         to ss.last_scheduled_iter0.
22473         (split_delayed_branch): Strengthen param "insn" and local "i1"
22474         from rtx to rtx_insn *.
22475         (split_delayed_nonbranch): Likewise.
22476         (undo_split_delayed_nonbranch): Likewise for local "insn".
22477         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
22478         "entry_after", "end_packet", "head_insn", "tail_insn",
22479         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
22480         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
22481         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
22482         but add a checked cast on loop->start_label.  Consolidate calls to
22483         avoid assigning result of gen_spkernel to "insn", now an
22484         rtx_insn *.
22485
22486         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
22487         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
22488         rtx to rtx_insn *.
22489         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
22490         rtx_insn **.  Strengthen locals "top", "next" from rtx to
22491         rtx_insn *.
22492         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
22493         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
22494         (add_parameter_dependencies): Strengthen params "call", "head" and
22495         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
22496         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
22497         (add_dependee_for_func_arg): Likewise for param "arg" and local
22498         "insn".
22499         (ix86_dependencies_evaluation_hook): Likewise for params "head",
22500         "tail" and locals "insn", "first_arg".
22501
22502         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
22503         for params "head", "tail" and locals "insn", "next", "next_tail".
22504         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
22505         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
22506         "insn", "lowest", "highest" from rtx to rtx_insn *.
22507         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
22508         rtx_insn **.
22509         (ia64_sched_reorder2): Likewise.
22510
22511         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
22512         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
22513         from rtx * to rtx_insn **.
22514         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
22515         rtx_insn **.
22516         (mep_print_sched_insn): Strengthen param "insn" from rtx to
22517         rtx_insn *.
22518         (mep_sched_reorder): Strengthen param "ready" from rtx * to
22519         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
22520         to rtx_insn *.
22521
22522         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
22523         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
22524         to rtx_insn *.
22525         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
22526         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
22527         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
22528         rtx_insn **.
22529         (vr4130_reorder): Likewise.
22530         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
22531         rtx to rtx_insn *.
22532         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
22533         rtx_insn **.
22534         (mips_sched_reorder): Likewise.
22535         (mips_sched_reorder2): Likewise.
22536
22537         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
22538
22539         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
22540         Strengthen local "tmp" from rtx to rtx_insn *.
22541         (rs6000_sched_reorder2): Likewise.
22542
22543         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
22544         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
22545         (s390_sched_reorder): Strengthen param "ready" from rtx * to
22546         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
22547
22548         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
22549         "tmp2" from rtx to rtx_insn *.
22550         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
22551         Strengthen local "insn" from rtx to rtx_insn *.
22552         (ready_reorder): Strengthen param "ready" from rtx * to
22553         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
22554         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
22555         (sh_reorder2): Likewise.
22556
22557         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
22558         local "insn" from rtx to rtx_insn *.
22559
22560         * haifa-sched.c (note_list): Strengthen this variable from rtx to
22561         rtx_insn *.
22562         (scheduled_insns): Strengthen this variable from vec<rtx> to
22563         vec<rtx_insn *>.
22564         (set_modulo_params): Likewise for locals "i1", "i2".
22565         (record_delay_slot_pair): Likewise for params "i1", "i2".
22566         (add_delay_dependencies): Likewise for param "insn".
22567         (cond_clobbered_p): Likewise.
22568         (recompute_todo_spec): Likewise for local "prev".
22569         (last_scheduled_insn): Likewise for this variable.
22570         (nonscheduled_insns_begin): Likewise.
22571         (model_set_excess_costs): Strengthen param "insns" from rtx * to
22572         rtx_insn **.
22573         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
22574         rtx_insn *.
22575         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
22576         Strengthen local "insn" from rtx to rtx_insn *.
22577         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
22578         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
22579         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
22580         (ready_remove_first): Likewise for return type and local "t".
22581         (ready_element): Likewise for return type.
22582         (ready_remove): Likewise for return type and local "t".
22583         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
22584         (check_clobbered_conditions): Strengthen local "x" from rtx to
22585         rtx_insn *, adding a checked cast.
22586         (schedule_insn): Likewise for param "insn".
22587         (remove_notes): Likewise for params "head", "tail" and locals
22588         "next_tail", "insn", "next".
22589         (struct haifa_saved_data): Likewise for fields
22590         "last_scheduled_insn", "nonscheduled_insns_begin".
22591         (save_backtrack_point): Update for change to field "vec" of
22592         struct ready_list.
22593         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
22594         rtx_insn **.
22595         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
22596         from rtx to rtx_insn *
22597         (resolve_dependencies): Strengthen param "insn" from rtx to
22598         rtx_insn *
22599         (restore_other_notes): Likewise for return type, for param "head"
22600         and local "note_head".
22601         (undo_all_replacements): Likewise for local "insn".
22602         (first_nonscheduled_insn): Likewise for return type and local "insn".
22603         (queue_to_ready): Likewise for local "insn", adding checked casts.
22604         (early_queue_to_ready): Likewise for local "insn".
22605         (debug_ready_list_1): Strengthen local "p" from rtx * to
22606         rtx_insn **.
22607         (move_insn): Strengthen param "insn" and local "note" from rtx to
22608         rtx_insn *
22609         (insn_finishes_cycle_p): Likewise for param "insn".
22610         (max_issue): Likewise for local "insn".
22611         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
22612         to rtx_insn **.
22613         (commit_schedule): Strengthen param "prev_head" and local "insn"
22614         from rtx to rtx_insn *
22615         (prune_ready_list): Likewise for local "insn".
22616         (schedule_block): Likewise for locals "prev_head", "head", "tail",
22617         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
22618         (set_priorities): Likewise for local "prev_head".
22619         (try_ready): Likewise for param "next".
22620         (fix_tick_ready): Likewise.
22621         (change_queue_index): Likewise.
22622         (sched_extend_ready_list): Update for change to field "vec" of
22623         struct ready_list.
22624         (generate_recovery_code): Strengthen param "insn" from rtx to
22625         rtx_insn *.
22626         (begin_speculative_block): Likewise.
22627         (create_check_block_twin): Likewise for param "insn" and locals
22628         "label", "check", "twin".  Introduce local "check_pat" to avoid
22629         "check" being used as a plain rtx before being used as an insn.
22630         (fix_recovery_deps): Add a checked cast to rtx_insn * when
22631         extracting elements from ready_list.
22632         (sched_remove_insn): Strengthen param "insn" from rtx to
22633         rtx_insn *.
22634         (sched_emit_insn): Likewise for return type.
22635         (ready_remove_first_dispatch): Likewise for return type and local
22636         "insn".
22637
22638         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
22639
22640         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
22641         const rtx_insn *.
22642
22643         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
22644         from rtx to rtx_insn *.
22645         (add_dependence_list): Likewise for param "insn".  Add a checked
22646         cast.
22647         (add_dependence_list_and_free): Strengthen param "insn" from rtx
22648         to rtx_insn *.  Strengthen param "list_p" from rtx * to
22649         rtx_insn **.
22650         (chain_to_prev_insn): Strengthen param "insn" and locals
22651         "prec_nonnote", "i" from rtx to rtx_insn *.
22652         (flush_pending_lists): Likewise for param "insn".
22653         (cur_insn): Likewise for this variable.
22654         (haifa_start_insn): Add a checked cast.
22655         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
22656         (sched_analyze_reg): Likewise for param "insn".
22657         (sched_analyze_1): Likewise.
22658         (sched_analyze_2): Likewise.  Add checked casts.
22659         (sched_analyze_insn): Likewise.  Also for local "prev".
22660         (deps_analyze_insn): Likewise for param "insn".
22661         (sched_analyze): Likewise for params "head", "tail" and local "insn".
22662         (add_dependence_1): Likewise for params "insn", "elem".
22663         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
22664         (parse_add_or_inc): Likewise for param "insn".
22665         (find_inc): Likewise for local "inc_cand".
22666         (find_modifiable_mems): Likewise for params "head", "tail" and
22667         locals "insn", "next_tail".
22668
22669         * sched-ebb.c (init_ready_list): Likewise for local "insn".
22670         (begin_schedule_ready): Likewise for param "insn".
22671         (begin_move_insn): Likewise for params "insn" and "last".
22672         (ebb_print_insn): Strengthen param "insn" from const_rtx to
22673         const rtx_insn *.
22674         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
22675         (ebb_contributes_to_priority): Likewise for params "next", "insn".
22676         (ebb_add_remove_insn): Likewise for param "insn".
22677         (advance_target_bb): Likewise.
22678
22679         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
22680         "insn".
22681         (check_live): Likewise for param "insn".
22682         (init_ready_list): Likewise for local "insn".
22683         (can_schedule_ready_p): Likewise for param "insn".
22684         (begin_schedule_ready): Likewise.
22685         (new_ready): Likewise for param "next".
22686         (rgn_print_insn): Likewise for param "insn".
22687         (rgn_rank): Likewise for params "insn1", "insn2".
22688         (contributes_to_priority): Likewise for params "next", "insn".
22689         (rgn_insn_finishes_block_p): Likewise for param "insn".
22690         (add_branch_dependences): Likewise for params "head", "tail" and
22691         locals "insn", "last".
22692         (rgn_add_remove_insn): Likewise for param "insn".
22693         (advance_target_bb): Likewise.
22694
22695         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
22696         const_rtx to const rtx_insn *.
22697
22698         * sel-sched-dump.h (sel_print_insn): Likewise.
22699
22700         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
22701         (deps_init_id): Likewise.
22702
22703         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
22704         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
22705         rtx_insn **.
22706
22707 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22708
22709         * output.h (final_start_function): Strengthen param 1 from rtx to
22710         rtx_insn *.
22711
22712         * final.c (final_start_function): Likewise, renaming back from
22713         "uncast_first" to "first", and dropping the checked cast from rtx
22714         to rtx_insn *.
22715
22716 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22717
22718         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
22719         * final.c (final): Likewise.  Rename param back from
22720         "uncast_first" to "first" and eliminate the checked cast from rtx
22721         to rtx_insn *.
22722
22723 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22724
22725         * output.h (shorten_branches): Strengthen param from rtx to
22726         rtx_insn *.
22727
22728         * final.c (shorten_branches): Likewise, renaming param back from
22729         "uncast_first" to "first", and dropping the checked cast from rtx
22730         to rtx_insn *.
22731
22732         * genattr.c (gen_attr): Likewise when writing out the prototype of
22733         shorten_branches.
22734
22735 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22736
22737         * sched-int.h (struct haifa_sched_info): Strengthen fields
22738         "prev_head" and "next_tail" from rtx to rtx_insn *.
22739
22740 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22741
22742         * rtl.h (rtx_jump_table_data::get_labels): New method.
22743         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
22744         with use of the new rtx_jump_table_data::get_labels method.
22745         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
22746         to rtx_jump_table_data *.  Simplify by using get_labels method.
22747         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
22748         a dyn_cast, introducing local "table", using it to replace
22749         label-lookup logic with a get_labels method call.
22750         (patch_jump_insn): Simplify using get_labels method.
22751         * dwarf2cfi.c (create_trace_edges): Likewise.
22752         * rtlanal.c (label_is_jump_target_p): Likewise.
22753
22754 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22755
22756         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
22757         to rtx_insn *.
22758
22759         * emit-rtl.c (unshare_all_rtl_1): Likewise.
22760         (unshare_all_rtl_again): Likewise, also for local "p".
22761
22762 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22763
22764         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
22765         to rtx_insn *.
22766         * cfgrtl.c (delete_insn_and_edges): Likewise.
22767
22768 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22769
22770         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
22771         from rtx to rtx_insn *.
22772
22773         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
22774
22775 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22776
22777         * function.c (thread_prologue_and_epilogue_insns): Likewise for
22778         locals "returnjump", "epilogue_end", "insn", "next".
22779
22780         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
22781         "returnjump" from rtx * to rtx_insn **.
22782         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
22783
22784 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22785
22786         * basic-block.h (struct edge_def). Strengthen "r" within
22787         union edge_def_insns from rtx to rtx_insn *.
22788
22789         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
22790         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
22791         rtx_insn *.
22792         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
22793         from rtx to rtx_insn *.
22794         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
22795         rtx_insn *.
22796         * postreload-gcse.c (reg_killed_on_edge): Likewise.
22797         (reg_used_on_edge): Likewise.
22798         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
22799         (gt_pch_nx): New overload for rtx_insn *&.
22800         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
22801         from rtx to rtx_insn *.
22802
22803 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22804
22805         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
22806         from rtx to rtx_insn *.
22807         (BB_FOOTER): Replace function with access macro.
22808         (SET_BB_FOOTER): Delete.
22809
22810         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
22811         with BB_FOOTER.
22812         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22813         (emit_barrier_after_bb): Likewise.
22814         (record_effective_endpoints): Likewise.
22815         (relink_block_chain): Likewise.
22816         (fixup_fallthru_exit_predecessor): Likewise.
22817         (cfg_layout_duplicate_bb): Likewise.
22818         (cfg_layout_split_block): Likewise.
22819         (cfg_layout_delete_block): Likewise.
22820         (cfg_layout_merge_blocks): Likewise.
22821         (BB_FOOTER): Delete function.
22822         (SET_BB_FOOTER): Delete function.
22823         * combine.c (update_cfg_for_uncondjump): Replace uses of
22824         SET_BB_FOOTER with BB_FOOTER.
22825
22826 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22827
22828         * except.h (struct eh_landing_pad_d): Strengthen field
22829         "landing_pad" from rtx to rtx_code_label *.
22830
22831         * except.c (sjlj_emit_dispatch_table): Likewise for param
22832         "dispatch_label"
22833         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
22834
22835 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22836
22837         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
22838         first param from rtx to rtx_insn *.
22839         * config/xtensa/xtensa.c (struct machine_function): Likewise for
22840         field "set_frame_ptr_insn".
22841         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
22842         "csend" from rtx to rtx_code_label *.
22843         (xtensa_expand_atomic): Likewise for local "csloop".
22844         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
22845         rtx_insn *.
22846         (xtensa_call_tls_desc): Likewise for return type and locals
22847         "call_insn", "insns".
22848         (xtensa_legitimize_tls_address): Likewise for local "insns".
22849         (xtensa_expand_prologue): Likewise for locals "insn", "first".
22850
22851 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22852
22853         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
22854         first param from rtx to rtx_insn *.
22855         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
22856         "insn".
22857
22858 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22859
22860         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
22861         Strengthen param 1 from rtx to rtx_insn *.
22862         (tilepro_output_cbranch): Likewise.
22863         (tilepro_adjust_insn_length): Likewise.
22864         (tilepro_final_prescan_insn): Likewise for sole param.
22865
22866         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
22867         Likewise for local "last".
22868         (cbranch_predicted_p): Likewise for param "insn".
22869         (tilepro_output_simple_cbranch_with_opcode): Likewise.
22870         (tilepro_output_cbranch_with_opcode): Likewise.
22871         (tilepro_output_cbranch): Likewise.
22872         (frame_emit_load): Likewise for return type and locals "seq",
22873         "insn".
22874         (emit_sp_adjust): Likewise for return type and local "insn".
22875         (tilepro_expand_epilogue): Likewise for locals "last_insn",
22876         "insn".
22877         (tilepro_adjust_insn_length): Likewise for param "insn".
22878         (next_insn_to_bundle): Likewise for return type and params
22879         "r", "end".
22880         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
22881         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
22882         local "new_insns".
22883         (match_addli_pcrel): Likewise for param "insn".
22884         (replace_addli_pcrel): Likewise.
22885         (match_auli_pcrel): Likewise.
22886         (replace_auli_pcrel): Likewise.
22887         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
22888         "next_insn".
22889         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
22890         "queue", "next_queue", "prev".
22891         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
22892         (tilepro_final_prescan_insn): Likewise for param "insn".
22893
22894 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22895
22896         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
22897         Strengthen param 1 from rtx to rtx_insn *.
22898         (tilegx_output_cbranch): Likewise.
22899         (tilegx_adjust_insn_length): Likewise.
22900         (tilegx_final_prescan_insn): Likewise for sole param.
22901
22902         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
22903         or local "last".
22904         (cbranch_predicted_p): Likewise for param "insn".
22905         (tilegx_output_simple_cbranch_with_opcode): Likewise.
22906         (tilegx_output_cbranch_with_opcode): Likewise.
22907         (tilegx_output_cbranch): Likewise.
22908         (frame_emit_load): Likewise for return type.
22909         (set_frame_related_p): Likewise for locals "seq", "insn".
22910         (emit_sp_adjust): Likewise for return type, and for local "insn".
22911         Introduce local "pat" for use in place of "insn" where the latter
22912         isn't an instruction.
22913         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
22914         from rtx to rtx_insn *.
22915         (tilegx_adjust_insn_length): Likewise for param "insn".
22916         (next_insn_to_bundle): Likewise for return type and params "r" and
22917         "end".
22918         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
22919         "end".
22920         (replace_insns): Likewise for params "old_insn", "new_insns".
22921         (replace_mov_pcrel_step1): Likewise for param "insn" and local
22922         "new_insns".
22923         (replace_mov_pcrel_step2): Likewise.
22924         (replace_mov_pcrel_step3): Likewise.
22925         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
22926         "next_insn".
22927         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
22928         "queue", "next_queue", "prev".
22929         (tilegx_output_mi_thunk): Likewise for local "insn".
22930         (tilegx_final_prescan_insn): Likewise for param "insn".
22931
22932 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22933
22934         * config/spu/spu.c (frame_emit_store): Strengthen return type from
22935         rtx to rtx_insn *.
22936         (frame_emit_load): Likewise.
22937         (frame_emit_add_imm): Likewise, also for local "insn".
22938         (spu_expand_prologue): Likewise for local "insn".
22939         (struct spu_bb_info): Likewise for field "prop_jump".
22940         (emit_nop_for_insn): Likewise for param "insn" and local
22941         "new_insn".
22942         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
22943         "hbr_insn".
22944         (spu_emit_branch_hint): Likewise for params "before", "branch" and
22945         locals "hint", "insn".
22946         (get_branch_target): Likewise for param "branch".
22947         (insn_clobbers_hbr): Likewise for param "insn".
22948         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
22949         locals "insn", "before_4", "before_16".
22950         (insert_hbrp): Likewise for local "insn".
22951         (spu_machine_dependent_reorg): Likewise for locals "branch",
22952         "insn", "next", "bbend".
22953         (uses_ls_unit): Likewise for param "insn".
22954         (get_pipe): Likewise.
22955         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
22956         introducing a checked cast.
22957         (spu_sched_adjust_cost): Likewise for params "insn" and
22958         "dep_insn".
22959         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
22960         (spu_sms_res_mii): Likewise.
22961
22962 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22963
22964         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
22965         from rtx to rtx_insn *.
22966         (output_cbranch): Likewise for param 6.
22967         (output_return): Likewise for param 1.
22968         (output_sibcall): Likewise.
22969         (output_v8plus_shift): Likewise.
22970         (output_v8plus_mult): Likewise.
22971         (output_v9branch): Likewise for param 7.
22972         (output_cbcond):  Likewise for param 3.
22973
22974         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
22975         for local "insn".
22976         (sparc_legitimize_pic_address): Likewise.
22977         (sparc_emit_call_insn): Likewise.
22978         (emit_save_or_restore_regs): Likewise.
22979         (emit_window_save): Likewise for return type and local "insn".
22980         (sparc_expand_prologue): Likewise for local "insn".
22981         (sparc_flat_expand_prologue): Likewise.
22982         (output_return): Likewise for param "insn".
22983         (output_sibcall): Likewise for param "insn" and local "delay".
22984         (output_ubranch): Likewise for param "insn".
22985         (output_cbranch): Likewise.
22986         (output_cbcond): Likewise.
22987         (output_v9branch): Likewise.
22988         (output_v8plus_shift): Likewise.
22989         (sparc_output_mi_thunk): Likewise for local "insn".
22990         (get_some_local_dynamic_name): Likewise.
22991         (output_v8plus_mult): Likewise for param "insn".
22992
22993 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22994
22995         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
22996         from rtx to rtx_insn *.
22997         (output_branchy_insn): Likewise for param 3.
22998         (output_far_jump): Likewise for param 1.
22999         (final_prescan_insn): Likewise.
23000         (sh_insn_length_adjustment): Likewise for sole param.
23001
23002         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
23003         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
23004         rtx_code_label *.
23005         (sh_emit_compare_and_set): Likewise for local "lab".
23006         (output_far_jump): Strengthen param "insn" and local "prev" from
23007         rtx to rtx_insn *.
23008         (output_branchy_insn): Likewise for param "insn" and local
23009         "next_insn".
23010         (output_ieee_ccmpeq): Likewise for param "insn".
23011         (struct label_ref_list_d): Strengthen field "label" from rtx to
23012         rtx_code_label *.
23013         (pool_node): Likewise.
23014         (pool_window_label): Likewise for this global.
23015         (add_constant): Likewise for return type and locals "lab", "new_rtx".
23016         (dump_table): Strengthen params "start", "barrier" and local
23017         "scan" from rtx to rtx_insn *.
23018         (broken_move): Likewise for param "insn".
23019         (untangle_mova): Likewise for params "first_mova" and "new_mova".
23020         Strengthen param "first_mova" from rtx * to rtx_insn **.
23021         (mova_p): Likewise for param "insn".
23022         (fixup_mova): Likewise for param "mova".
23023         (find_barrier): Likewise for return type, params "mova" and
23024         "from", and locals "barrier_before_mova", "found_barrier",
23025         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
23026         "label" from rtx to rtx_code_label *.
23027         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
23028         rtx to rtx_insn *.
23029         (sh_reorg): Likewise for locals "link", "scan", "barrier".
23030         (split_branches): Likewise for param "first" and local "insn".
23031         (final_prescan_insn): Likewise for param "insn".
23032         (sequence_insn_p): Likewise for locals "prev", "next".
23033         (sh_insn_length_adjustment): Likewise for param "insn".
23034         (sh_can_redirect_branch): Likewise for local "insn".
23035         (find_r0_life_regions): Likewise for locals "end", "insn".
23036         (sh_output_mi_thunk): Likewise for local "insns".
23037
23038 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23039
23040         * config/score/score.c (score_output_mi_thunk): Strengthen local
23041         "insn" from rtx to rtx_insn *.
23042         (score_prologue): Likewise.
23043
23044 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23045
23046         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
23047         1 from rtx to rtx_insn *.
23048         (s390_emit_jump): Likewise for return type.
23049         (s390_emit_call): Likewise.
23050         (s390_load_got): Likewise.
23051
23052         * config/s390/s390.c (last_scheduled_insn): Likewise for this
23053         variable.
23054         (s390_match_ccmode): Likewise for param "insn".
23055         (s390_emit_jump): Likewise for return type.
23056         (s390_split_branches): Likewise for local "label".
23057         (struct constant): Strengthen field "label" from rtx to
23058         rtx_code_label *.
23059         (struct constant_pool): Likewise for field "label".  Strengthen
23060         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
23061         rtx_insn *.
23062         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
23063         insns.
23064         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
23065         (s390_end_pool): Likewise.
23066         (s390_dump_pool): Likewise for local "insn".
23067         (s390_mainpool_start): Likewise.
23068         (s390_chunkify_start): Likewise.
23069         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
23070         with insns.  Strengthen locals "label", "jump", "barrier", "next",
23071         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
23072         (s390_chunkify_finish): Strengthen local "insn" from rtx to
23073         rtx_insn *.
23074         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
23075         "jump", "label", "next_insn".
23076         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
23077         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
23078         "tbegin_insn".
23079         (s390_load_got): Likewise for return type and local "insns".
23080         (s390_save_gprs_to_fprs): Likewise for local "insn".
23081         (s390_restore_gprs_from_fprs): Likewise.
23082         (pass_s390_early_mach::execute): Likewise.
23083         (s390_emit_prologue): Likewise for local "insns".
23084         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
23085         rtx_code_label *.
23086         (s390_emit_call): Strengthen return type and local "insn" from
23087         rtx to rtx_insn *.
23088         (s390_emit_tpf_eh_return): Likewise for local "insn".
23089         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
23090         "next_insn", introducing locals "s_pat", "rpat" to allow this.
23091         (s390_fix_long_loop_prediction): Likewise for param "insn" and
23092         local "cur_insn".
23093         (s390_non_addr_reg_read_p): Likewise for param "insn".
23094         (find_cond_jump): Likewise for return type and param "insn".
23095         (s390_swap_cmp): Likewise for param "insn".
23096         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
23097         "prev_insn", "next_insn".
23098         (s390_reorg): Likewise for locals "insn", "target".
23099         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
23100         (s390_sched_variable_issue): For now, rename param "insn" to
23101         "uncast_insn", introducing a checked cast.
23102         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
23103         insn.
23104         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
23105         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
23106
23107 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23108
23109         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
23110         param from rtx to rtx_insn *.
23111         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
23112
23113 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23114
23115         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
23116         4 from rtx to rtx_insn *.
23117         (rs6000_final_prescan_insn): Likewise for first param.
23118         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
23119         local "insn".
23120         (rs6000_get_some_local_dynamic_name): Likewise.
23121         (output_cbranch): Likewise for param "insn".
23122         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
23123         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
23124         (rs6000_emit_allocate_stack): Likewise for local "insn".
23125         (load_cr_save): Likewise.
23126         (restore_saved_cr): Likewise.
23127         (restore_saved_lr): Likewise.
23128         (emit_cfa_restores): Likewise.
23129         (rs6000_output_function_epilogue): Likewise for locals "insn" and
23130         "deleted_debug_label".
23131         (rs6000_output_mi_thunk): Likewise for local "insn".
23132         (rs6000_final_prescan_insn): Likewise for param "insn".
23133
23134 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23135
23136         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
23137         Strengthen param "insn" from rtx to rtx_insn *.
23138         * config/picochip/picochip.c (picochip_current_prescan_insn):
23139         Likewise for this variable.
23140         (picochip_final_prescan_insn): Likewise for param "insn".
23141
23142 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23143
23144         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
23145         from rtx to rtx_insn *.
23146         (pa_output_indirect_call): Likewise.
23147         (pa_adjust_insn_length): Likewise.
23148         (pa_attr_length_millicode_call): Likewise.
23149         (pa_attr_length_call): Likewise.
23150         (pa_attr_length_indirect_call): Likewise.
23151
23152         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
23153         "insn".
23154         (pa_attr_length_millicode_call): Likewise.
23155         (pa_attr_length_call): Likewise.
23156         (pa_output_call): Likewise.
23157         (pa_attr_length_indirect_call): Likewise.
23158         (pa_output_indirect_call): Likewise.
23159
23160 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23161
23162         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
23163         Strengthen first param from rtx to rtx_insn *.
23164         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
23165         param "insn".
23166
23167 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23168
23169         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
23170         type from rtx to rtx_insn *.
23171         (mips_expand_call): Likewise.
23172         (mips_adjust_insn_length): Likewise for first param.
23173         (mips_output_conditional_branch): Likewise.
23174         (mips_output_order_conditional_branch): Likewise.
23175         (mips_final_prescan_insn): Likewise.
23176
23177         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
23178         rtx_insn * for the SEQUENCE case.
23179         (SEQ_END): Likewise.
23180         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
23181         (mips_emit_call_insn): Likewise, also for local "insn".
23182         (mips16_gp_pseudo_reg): Likewise for local "scan".
23183         (mips16_build_call_stub): Likewise for return type and for local
23184         "insn".  Introduce a new local "pattern" so that "insn" can indeed
23185         be an insn.
23186         (mips_expand_call): Strengthen return type and local "insn" from
23187         rtx to rtx_insn *.
23188         (mips_block_move_loop): Strengthen local "label" from rtx to
23189         rtx_code_label *.
23190         (mips_expand_synci_loop): Likewise for locals "label",
23191         "end_label".
23192         (mips_set_frame_expr): Strengthen local "insn" from rtx to
23193         rtx_insn *.
23194         (mips16e_collect_argument_saves): Likewise for locals "insn",
23195         "next".
23196         (mips_find_gp_ref): Likewise for param of callback for "pred"
23197         param, and for local "insn".
23198         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
23199         (mips_insn_has_flexible_gp_ref_p): Likewise.
23200         (mips_epilogue_emit_cfa_restores): Likewise for return type and
23201         local "insn".
23202         (mips_epilogue_set_cfa): Likewise for local "insn".
23203         (mips_expand_epilogue): Likewise.
23204         (mips_adjust_insn_length): Likewise for param "insn".
23205         (mips_output_conditional_branch): Likewise.
23206         (mips_output_order_conditional_branch): Likewise.
23207         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
23208         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
23209         "falu2_turn_enabled_insn".
23210         (mips_builtin_branch_and_move): Strengthen locals "true_label",
23211         "done_label" from rtx to rtx_code_label *.
23212         (struct mips16_constant): Likewise for field "label".
23213         (mips16_add_constant): Likewise for return type.
23214         (mips16_emit_constants_1): Strengthen return type and param "insn"
23215         from rtx to rtx_insn *.
23216         (mips16_emit_constants): Likewise for param "insn".
23217         (mips16_insn_length): Likewise.
23218         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
23219         to rtx_code_label *.
23220         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
23221         from rtx to rtx_insn *.
23222         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
23223         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
23224         (r10k_simplify_address): Strengthen param "insn" and local
23225         "def_insn" from rtx to rtx_insn *.
23226         (r10k_safe_address_p): Strengthen param "insn" from rtx to
23227         rtx_insn *.
23228         (r10k_needs_protection_p_1): Update target type of cast of data
23229         from to rtx to rtx_insn *.
23230         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
23231         rtx * to rtx_insn **.
23232         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
23233         rtx_insn *.
23234         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
23235         (mips_call_expr_from_insn): Likewise for param "insn".
23236         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
23237         (mips_find_pic_call_symbol): Likewise for param "insn".
23238         (mips_annotate_pic_calls): Likewise for local "insn".
23239         (mips_sim_insn): Likewise for this variable.
23240         (struct mips_sim): Likewise for field "insn" within elements of
23241         last_set array.
23242         (mips_sim_wait_reg): Likewise for param "insn".
23243         (mips_sim_wait_regs): Likewise.
23244         (mips_sim_wait_units): Likewise.
23245         (mips_sim_wait_insn): Likewise.
23246         (mips_sim_issue_insn): Likewise.
23247         (mips_sim_finish_insn): Likewise.
23248         (mips_seq_time): Likewise for param "seq" and local "insn".
23249         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
23250         locals "first", "second".
23251         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
23252         "last", "last2", "next".
23253         (mips_avoid_hazard): Likewise for params "after", "insn".
23254         (mips_reorg_process_insns): Likewise for locals "insn",
23255         "last_insn", "subinsn", "next_insn".
23256         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
23257         (mips16_split_long_branches): Likewise for locals "insn" "jump",
23258         "jump_sequence".
23259         (mips_output_mi_thunk): Likewise for local "insn".
23260         (mips_final_prescan_insn): Likewise for param "insn".
23261
23262 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23263
23264         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
23265         Strengthen return type and local "insns" from rtx to rtx_insn *.
23266         (microblaze_legitimize_tls_address): Likewise for local "insns".
23267         (microblaze_block_move_loop): Strengthen local "label" from rtx
23268         to rtx_code_label *.
23269         (microblaze_expand_prologue): Strengthen two locals named "insn"
23270         from rtx to rtx_insn *.
23271         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
23272         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
23273         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
23274         to rtx_code_label *.
23275
23276 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23277
23278         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
23279         param from rtx to rtx_insn *.
23280         (mep_reuse_lo): Likewise for third param.
23281         (mep_use_post_modify_p): Likewise for first param.
23282         (mep_core_address_length): Likewise.
23283         (mep_cop_address_length): Likewise.
23284         (mep_final_prescan_insn): Likewise.
23285         (mep_store_data_bypass_p): Likewise for both params.
23286         (mep_mul_hilo_bypass_p): Likewise.
23287         (mep_ipipe_ldc_p): Likewise for param.
23288
23289         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
23290         (mep_rewrite_mult): Likewise.
23291         (mep_rewrite_mulsi3): Likewise.
23292         (mep_rewrite_maddsi3): Likewise.
23293         (mep_reuse_lo_p_1): Likewise.
23294         (mep_reuse_lo_p): Likewise.
23295         (mep_frame_expr): Likewise.
23296         (mep_make_parallel): Likewise for both params.
23297         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
23298         local "insn".
23299         (mep_use_post_modify_p): Likewise for param "insn".
23300         (mep_core_address_length): Likewise.
23301         (mep_cop_address_length): Likewise.
23302         (mep_reg_set_in_function): Likewise for local "insn".
23303         (mep_asm_without_operands_p): Likewise.
23304         (F): Likewise for return type and param "x".
23305         (add_constant): Likewise for local "insn".
23306         (maybe_dead_move): Likewise for return type and local "insn".
23307         (mep_expand_prologue): Likewise for local "insn".
23308         (mep_final_prescan_insn): Likewise for param "insn".
23309         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
23310         "next", "follow", "x".
23311         (mep_insert_repeat_label_last): Likewise for return type, param
23312         "last_insn", and locals "next", "prev".  Strengthen param "label"
23313         from rtx to rtx_code_label *.
23314         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
23315         rtx_insn *.
23316         (struct mep_doloop_end): Likewise for fields "insn" and
23317         "fallthrough".
23318         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
23319         Strengthen local "repeat_label" from rtx to rtx_code_label *.
23320         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
23321         rtx_insn *.
23322         (mep_invert_branch): Likewise for params "insn" and "after".
23323         (mep_reorg_erepeat): Likewise for param "insns" and locals
23324         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
23325         "l" from rtx to rtx_code_label *.
23326         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
23327         from rtx to rtx_insn *.
23328         (mep_reorg_addcombine): Likewise for param "insns" and locals
23329         "i", "n".
23330         (add_sp_insn_p): Likewise for param "insn".
23331         (mep_reorg_noframe): Likewise for param "insns" and locals
23332         "start_frame_insn", "end_frame_insn", "next".
23333         (mep_reorg): Likewise for local "insns".
23334         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
23335         cast.
23336         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
23337         (mep_mul_hilo_bypass_p): Likewise.
23338         (mep_ipipe_ldc_p): Likewise for param "insn".
23339         (mep_make_bundle): Likewise for return type, param "cop" and local
23340         "insn", splitting out the latter into a new local "seq" for when it
23341         is a SEQUENCE rather than an insn.
23342         (core_insn_p): Likewise for param "insn".
23343         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
23344         "last", "first", "note", "prev", "core_insn".
23345
23346 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23347
23348         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
23349         rtx to rtx_insn *.
23350         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
23351         (m68k_final_prescan_insn): Likewise for first param.
23352
23353         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
23354         (m68k_set_frame_related): Likewise for param "insn".
23355         (output_btst): Likewise for param "insn".
23356         (m68k_final_prescan_insn): Likewise.
23357         (m68k_move_to_reg): Likewise for local "insn".
23358         (m68k_call_tls_get_addr): Likewise for local "insns".
23359         (m68k_call_m68k_read_tp): Likewise.
23360         (strict_low_part_peephole_ok): Likewise for param "first_insn".
23361         (m68k_output_mi_thunk): Likewise for local "insn".
23362
23363 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23364
23365         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
23366         first param from rtx to rtx_insn *.
23367         (iq2000_adjust_insn_length): Likewise.
23368         (iq2000_output_conditional_branch): Likewise.
23369         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
23370         "insn" and local "nop_insn".
23371         (iq2000_annotate_frame_insn): Likewise for param "insn".
23372         (iq2000_expand_prologue): Likewise for both locals "insn".
23373         (iq2000_adjust_insn_length): Likewise for param "insn".
23374         (iq2000_output_conditional_branch): Likewise.
23375
23376 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23377
23378         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
23379         "insns" from rtx to rtx_insn *.
23380         (ia64_emit_cond_move): Likewise for locals "insn", "first".
23381         (struct spill_fill_data): Likewise for field "init_after" and for
23382         elements of array field "prev_insn".
23383         (spill_restore_mem): Likewise for locals "insn", "first".
23384         (do_spill): Likewise for local "insn".
23385         (do_restore): Likewise.
23386         (ia64_expand_prologue): Likewise.
23387         (ia64_expand_epilogue): Likewise.
23388         (emit_insn_group_barriers): Likewise for locals "insn",
23389         "last_label".
23390         (emit_all_insn_group_barriers): Likewise for locals "insn",
23391         "last".
23392         (dfa_stop_insn): Likewise for this global.
23393         (dfa_pre_cycle_insn): Likewise.
23394         (ia64_nop): Likewise.
23395         (final_emit_insn_group_barriers): Likewise for locals "insn",
23396         "last".
23397         (emit_predicate_relation_info): Likewise for locals "head", "n",
23398         "insn", "b", "a".
23399         (ia64_reorg): Likewise for local "insn".
23400         (ia64_output_mi_thunk): Likewise.
23401         (expand_vec_perm_interleave_2): Likewise for local "seq".
23402
23403 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23404
23405         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
23406         param 1 "insn" from rtx to rtx_insn *.
23407         (ix86_use_lea_for_mov): Likewise.
23408         (ix86_avoid_lea_for_addr): Likewise.
23409         (ix86_split_lea_for_addr): Likewise.
23410         (ix86_lea_for_add_ok): Likewise.
23411         (ix86_output_call_insn): Likewise.
23412
23413         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
23414         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
23415         (ix86_output_function_epilogue): Likewise for locals "insn",
23416         "deleted_debug_label".
23417         (legitimize_tls_address): Likewise for local "insn".
23418         (get_some_local_dynamic_name): Likewise.
23419         (increase_distance): Likewise for params "prev", "next".
23420         (distance_non_agu_define_in_bb): Likewise for params "insn",
23421         "start" and locals "prev", "next".
23422         (distance_non_agu_define): Likewise for param "insn".
23423         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
23424         locals "next", "prev".
23425         (distance_agu_use): Likewise for param "insn".
23426         (ix86_lea_outperforms): Likewise.
23427         (ix86_ok_to_clobber_flags): Likewise.
23428         (ix86_avoid_lea_for_add): Likewise.
23429         (ix86_use_lea_for_mov): Likewise.
23430         (ix86_avoid_lea_for_addr): Likewise.
23431         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
23432         (ix86_split_lea_for_addr): Likewise for param "insn".
23433         (ix86_lea_for_add_ok): Likewise for param "insn".
23434         (ix86_expand_carry_flag_compare): Likewise for local
23435         "compare_seq".
23436         (ix86_expand_int_movcc): Likewise.
23437         (ix86_output_call_insn): Likewise for param "insn".
23438         (ix86_output_call_insn): Likewise for local "i".
23439         (x86_output_mi_thunk): Introduce local "insn", using it in place
23440         of "tmp" when dealing with insns.
23441         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
23442         "start".
23443         (ix86_pad_returns): Likewise for locals "ret", "prev".
23444         (ix86_count_insn_bb): Likewise for local "insn".
23445         (ix86_pad_short_function): Likewise for locals "ret", "insn".
23446         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
23447         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
23448         (expand_vec_perm_interleave2): Likewise for local "seq".
23449         (expand_vec_perm_vperm2f128_vblend): Likewise.
23450         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
23451         call to for_each_rtx with for_each_rtx_in_insn.
23452
23453 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23454
23455         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
23456         "label" from rtx to rtx_code_label *.
23457         (ix86_expand_prologue): Likewise.
23458         (ix86_expand_split_stack_prologue): Likewise for locals "label",
23459         "varargs_label".
23460         (ix86_split_idivmod): Likewise for locals "end_label" and
23461         "qimode_label".
23462         (ix86_expand_branch): Likewise for local "label2".
23463         (ix86_expand_aligntest): Likewise for return type and local "label".
23464         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
23465         "top_label".
23466         (expand_movmem_epilogue): Likewise for the various locals named
23467         "label".
23468         (expand_setmem_epilogue): Likewise.
23469         (expand_small_movmem_or_setmem): Likewise for local "label".
23470         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
23471         Strengthen param "done_label" from rtx * to rtx_code_label **.
23472         Strengthen locals "loop_label" and "label" from rtx to
23473         rtx_code_label *.
23474         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
23475         Likewise for locals "loop_label", "label".
23476         (ix86_expand_set_or_movmem): Likewise for locals "label",
23477         "jump_around_label", "hot_label".
23478         (ix86_expand_strlensi_unroll_1): Likewise for locals
23479         "align_2_label", align_3_label", "align_4_label", "end_0_label",
23480         "end_2_label".
23481         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
23482         (void ix86_emit_i387_log1p): Likewise for locals "label1",
23483         "label2", "jump_label".
23484         (ix86_expand_sse_compare_and_jump): Likewise for return type and
23485         local "label".
23486         (ix86_expand_lfloorceil): Likewise for local "label".
23487         (ix86_expand_rint): Likewise.
23488         (ix86_expand_floorceildf_32): Likewise.
23489         (ix86_expand_floorceil): Likewise.
23490         (ix86_expand_rounddf_32): Likewise.
23491         (ix86_expand_trunc): Likewise.
23492         (ix86_expand_truncdf_32): Likewise.
23493         (ix86_expand_round): Likewise.
23494
23495 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23496
23497         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
23498         first param from rtx to rtx_insn *.
23499         (h8300_insn_length_from_table): Likewise.
23500         * config/h8300/h8300.c (F): Likewise for return type and param
23501         "x".
23502         (Fpa): Add a checked cast to rtx_insn *.
23503         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
23504         rtx_insn *.
23505         (final_prescan_insn): Likewise for param "insn".
23506         (h8300_binary_length): Likewise.
23507         (h8300_insn_length_from_table): Likewise.
23508
23509 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23510
23511         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
23512         Strengthen first param "insn" from rtx to rtx_insn *.
23513
23514         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
23515         Likewise.
23516         (frame_insn): Likewise for return type.  Introduce local "insn"
23517         for use in place of local "x" for use as an rtx_insn *.
23518         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
23519         (epiphany_expand_prologue): Likewise for local "insn".
23520         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
23521         * config/epiphany/resolve-sw-modes.c
23522         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
23523         "seq".
23524
23525 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23526
23527         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
23528         param from rtx to rtx_insn *.
23529         (c6x_final_prescan_insn): Likewise for first param.
23530
23531         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
23532         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
23533         (c6x_expand_compare): Strengthen local "insns" from rtx to
23534         rtx_insn *.
23535         (c6x_get_unit_specifier): Likewise for param "insn".
23536         (c6x_print_unit_specifier_field): Likewise.
23537         (c6x_final_prescan_insn): Likewise.
23538         (emit_add_sp_const): Likewise for local "insn".
23539         (c6x_expand_prologue): Likewise.
23540
23541 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23542
23543         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
23544         param 1 from rtx to rtx_insn *.
23545         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
23546         the various locals named "insn".
23547         (expand_epilogue_reg_restore): Likewise.
23548         (frame_related_constant_load): Likewise.
23549         (add_to_reg): Likewise.
23550         (emit_link_insn): Likewise.
23551         (do_link): Likewise.
23552         (expand_interrupt_handler_prologue): Likewise.
23553         (branch_dest): Likewise for param "branch".
23554         (asm_conditional_branch): Likewise for param "insn".
23555         (gen_one_bundle): Likewise for elements of param "slot" and local
23556         "t".
23557         (bfin_gen_bundles): Likewise for locals "insn", "next" and
23558         elements of local "slot".
23559         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23560         "queue", "next_queue", "prev".
23561         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
23562         (add_sched_insns_for_speculation): Likewise for local "insn".
23563
23564 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23565
23566         * config/avr/avr-protos.h (output_movqi): Strengthen first param
23567         from rtx to rtx_insn *.
23568         (output_movhi): Likewise.
23569         (output_movsisf): Likewise.
23570         (avr_out_tstsi): Likewise.
23571         (avr_out_tsthi): Likewise.
23572         (avr_out_tstpsi): Likewise.
23573         (avr_out_compare): Likewise.
23574         (avr_out_compare64): Likewise.
23575         (avr_out_movpsi): Likewise.
23576         (ashlqi3_out): Likewise.
23577         (ashlhi3_out): Likewise.
23578         (ashlsi3_out): Likewise.
23579         (ashrqi3_out): Likewise.
23580         (ashrhi3_out): Likewise.
23581         (ashrsi3_out): Likewise.
23582         (lshrqi3_out): Likewise.
23583         (lshrhi3_out): Likewise.
23584         (lshrsi3_out): Likewise.
23585         (avr_out_ashlpsi3): Likewise.
23586         (avr_out_ashrpsi3): Likewise.
23587         (avr_out_lshrpsi3): Likewise.
23588         (avr_out_fract): Likewise.
23589         (avr_out_sbxx_branch): Likewise.
23590         (avr_out_round): Likewise.
23591         (avr_out_xload): Likewise.
23592         (avr_out_movmem): Likewise.
23593         (adjust_insn_length): Likewise.
23594         (avr_out_lpm): Likewise.
23595         (reg_unused_after): Likewise.
23596         (_reg_unused_after): Likewise.
23597         (avr_jump_mode): Likewise for second param.
23598         (jump_over_one_insn): Likewise for first param.
23599         (avr_final_prescan_insn): Likewise.
23600         (out_shift_with_cnt): Likewise for second param.
23601
23602         * config/avr/avr.c (get_sequence_length): Likewise for param
23603         "insns" and local "insn".
23604         (emit_push_byte): Likewise for local "insn".
23605         (emit_push_sfr): Likewise.
23606         (avr_prologue_setup_frame): Likewise for locals "insn",
23607         "fp_plus_insns", "sp_plus_insns".
23608         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
23609         "sp_plus_insns".
23610         (avr_jump_mode): Likewise for param "insn".
23611         (avr_final_prescan_insn): Likewise.
23612         (avr_find_unused_d_reg): Likewise.
23613         (avr_out_lpm_no_lpmx): Likewise.
23614         (avr_out_lpm): Likewise.
23615         (avr_out_xload): Likewise.
23616         (output_movqi): Likewise.
23617         (output_movhi): Likewise.
23618         (out_movqi_r_mr): Likewise.
23619         (out_movhi_r_mr): Likewise.
23620         (out_movsi_r_mr): Likewise.
23621         (out_movsi_mr_r): Likewise.
23622         (output_movsisf): Likewise.
23623         (avr_out_load_psi): Likewise.
23624         (avr_out_store_psi): Likewise.
23625         (avr_out_movpsi): Likewise.
23626         (out_movqi_mr_r): Likewise.
23627         (avr_out_movhi_mr_r_xmega): Likewise.
23628         (out_movhi_mr_r): Likewise.
23629         (compare_condition): Likewise for param "insn" and local "next".
23630         (compare_sign_p): Likewise for param "insn".
23631         (compare_diff_p): Likewise.
23632         (compare_eq_p): Likewise.
23633         (avr_out_compare): Likewise.
23634         (avr_out_compare64): Likewise.
23635         (avr_out_tsthi): Likewise.
23636         (avr_out_tstpsi): Likewise.
23637         (avr_out_tstsi): Likewise.
23638         (out_shift_with_cnt): Likewise.
23639         (ashlqi3_out): Likewise.
23640         (ashlhi3_out): Likewise.
23641         (avr_out_ashlpsi3): Likewise.
23642         (ashlsi3_out): Likewise.
23643         (ashrqi3_out): Likewise.
23644         (ashrhi3_out): Likewise.
23645         (avr_out_ashrpsi3): Likewise.
23646         (ashrsi3_out): Likewise.
23647         (lshrqi3_out): Likewise.
23648         (lshrhi3_out): Likewise.
23649         (avr_out_lshrpsi3): Likewise.
23650         (lshrsi3_out): Likewise.
23651         (avr_out_fract): Likewise.
23652         (avr_out_round): Likewise.
23653         (avr_adjust_insn_length): Likewise.
23654         (reg_unused_after): Likewise.
23655         (_reg_unused_after): Likewise.
23656         (avr_compare_pattern): Likewise.
23657         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
23658         and locals "branch1", "branch2", "insn2", "jump".
23659         (avr_reorg): Likewise for local "insn".
23660         (avr_2word_insn_p): Likewise for param "insn".
23661         (jump_over_one_insn_p): Likewise.
23662         (avr_out_sbxx_branch): Likewise.
23663         (avr_out_movmem): Likewise.
23664
23665 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23666
23667         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
23668         param from rtx to rtx_insn *.
23669         (thumb1_final_prescan_insn): Likewise.
23670         (thumb2_final_prescan_insn): Likewise.
23671
23672         * config/arm/arm.c (emit_set_insn): Strengthen return type from
23673         rtx to rtx_insn *.
23674         (struct minipool_node): Likewise for field "insn".
23675         (dump_minipool): Likewise for param "scan".
23676         (create_fix_barrier): Likewise for local "from".  Strengthen local
23677         "label" from rtx to rtx_code_label *.
23678         (push_minipool_barrier): Strengthen param "insn" from rtx to
23679         rtx_insn *.
23680         (push_minipool_fix): Likewise.
23681         (note_invalid_constants): Likewise.
23682         (thumb2_reorg): Likewise for local "insn".
23683         (arm_reorg): Likewise.
23684         (thumb2_final_prescan_insn): Likewise for param
23685         "insn" and local "first_insn".
23686         (arm_final_prescan_insn): Likewise for param "insn" and locals
23687         "start_insn", "this_insn".
23688         (arm_debugger_arg_offset): Likewise for param "insn".
23689         (thumb1_emit_multi_reg_push): Likewise for return type and local
23690         "insn".
23691         (thumb1_final_prescan_insn): Likewise for param "insn".
23692         (thumb_far_jump_used_p): Likewise for local "insn".
23693         (thumb1_expand_prologue): Likewise.
23694         (arm_expand_epilogue_apcs_frame): Likewise.
23695         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
23696         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
23697         from rtx to rtx_code_label *.
23698         (arm_split_atomic_op): Likewise for local "label".
23699         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
23700
23701 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23702
23703         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
23704         first param from rtx to rtx_insn *.
23705         (arc_verify_short): Likewise.
23706         (arc_short_long): Likewise.
23707         (arc_need_delay): Likewise.
23708
23709         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
23710         "target_insn".
23711         (arc_ccfsm_advance): Likewise for param "insn" and locals
23712         "start_insn", "this_insn".
23713         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
23714         (arc_ccfsm_post_advance): Likewise for param "insn".
23715         (arc_next_active_insn): Likewise for return type and param "insn".
23716         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
23717         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
23718         (output_short_suffix): Likewise for local "insn".
23719         (arc_final_prescan_insn): Likewise for param "insn".  Remove
23720         now-redundant checked cast.
23721         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
23722         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
23723         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
23724         for use where lc_set became an insn.
23725         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
23726         rtx to rtx_insn *.
23727         (arc_get_insn_variants): Likewise for local "prev".
23728         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
23729         "next".
23730         (arc_predicate_delay_insns): Likewise for local "insn".
23731         (arc_pad_return): Likewise for local "prev".  For now, add a
23732         checked cast when extracting the insn from "final_sequence".
23733         (arc_short_long): Likewise for param "insn".
23734         (arc_need_delay): Likewise for param "insn" and local "next".
23735         (arc_label_align): Likewise for locals "prev", "next".
23736
23737 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23738
23739         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
23740         "insn" from rtx to rtx_insn *.
23741         (alpha_gp_save_rtx): Likewise for local "seq".
23742         (alpha_instantiate_decls): Likewise for local "top".
23743         (get_some_local_dynamic_name): Likewise for local "insn".
23744         (alpha_does_function_need_gp): Likewise.
23745         (set_frame_related_p): Likewise for return type and for locals
23746         "seq" and "insn".
23747         (emit_frame_store_1): Likewise for local "insn".
23748         (alpha_expand_prologue): Likewise for locals "insn", "seq".
23749         (alpha_end_function): Likewise for local "insn".
23750         (alpha_output_mi_thunk_osf): Likewise.
23751         (alphaev4_insn_pipe): Likewise for param "insn".
23752         (alphaev5_insn_pipe): Likewise.
23753         (alphaev4_next_group): Likewise for return type and param 1
23754         "insn".
23755         (alphaev5_next_group): Likewise.
23756         (alpha_align_insns_1): Likewise for return type and param 1 of
23757         callback param "next_group", and for locals "i", "next", "prev",
23758         "where", "where2", "insn".
23759
23760 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
23761
23762         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
23763         rather than modifying the stmt.
23764
23765 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23766
23767         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
23768         cgraph_state conversion.
23769
23770 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23771
23772         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23773         Strengthen local "insns" from rtx to rtx_insn *.
23774         (aarch64_set_frame_expr): Likewise for local "insn".
23775         (aarch64_save_or_restore_fprs): Likewise.
23776         (aarch64_save_or_restore_callee_save_registers): Likewise.
23777         (aarch64_expand_prologue): Likewise.
23778         (aarch64_expand_epilogue): Likewise.
23779         (aarch64_output_mi_thunk): Likewise.
23780         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
23781         "label2" from rtx to rtx_code_label *.
23782         (aarch64_split_atomic_op): Likewise for local "label".
23783
23784 2014-08-25  Martin Liska  <mliska@suse.cz>
23785
23786         * cgraph.h (symtab_node):
23787         (bool needed_p (void)): created from decide_is_symbol_needed
23788         (bool referred_to_p (void)): created from referred_to_p
23789         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
23790         * cgraph.h (cgraph_node):
23791         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
23792         (void expand (void)): created from expand_function
23793         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
23794         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
23795         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
23796         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
23797         * cgraph.h (varpool_node):
23798         (static void add (tree decl): created from varpool_add_new_variable
23799         * cgraph.h (cgraph_edge):
23800         void remove (void);
23801         (void remove_caller (void)): created from cgraph_edge_remove_caller
23802         (void remove_callee (void)): created from cgraph_edge_remove_callee
23803         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
23804           created from cgraph_set_call_stmt
23805         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
23806         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
23807         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
23808           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
23809         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
23810           created from cgraph_speculative_call_info
23811         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
23812           int freq_scale, bool update_original)): created from cgraph_clone_edge
23813         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
23814         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
23815         (bool recursive_p (void)): created from cgraph_edge_recursive_p
23816         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
23817         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
23818         (static void rebuild_references (void)): created from cgraph_rebuild_references
23819         * cgraph.h (symbol_table):
23820         (create_reference): renamed from add_reference
23821         (maybe_create_reference): renamed from maybe_add_reference
23822         (void register_symbol (symtab_node *node)): new function
23823         (void clear_asm_symbols (void)): new function
23824         (void unregister (symtab_node *node)): new function
23825         (void release_symbol (cgraph_node *node, int uid)): new function
23826         (cgraph_node * allocate_cgraph_symbol (void)): new function
23827         (void initialize (void)): created from cgraph_init
23828         (symtab_node *first_symbol (void)):new function
23829         (asm_node *first_asm_symbol (void)):new function
23830         (symtab_node *first_defined_symbol (void)):new function
23831         (varpool_node *first_variable (void)):new function
23832         (varpool_node *next_variable (varpool_node *node)):new function
23833         (varpool_node *first_static_initializer (void)):new function
23834         (varpool_node *next_static_initializer (varpool_node *node)):new function
23835         (varpool_node *first_defined_variable (void)):new function
23836         (varpool_node *next_defined_variable (varpool_node *node)):new function
23837         (cgraph_node *first_defined_function (void)):new function
23838         (cgraph_node *next_defined_function (cgraph_node *node)):new function
23839         (cgraph_node *first_function (void)):new function
23840         (cgraph_node *next_function (cgraph_node *node)):new function
23841         (cgraph_node *first_function_with_gimple_body (void)):new function
23842         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
23843         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
23844           created from symtab_remove_unreachable_nodes
23845         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
23846         (void process_new_functions (void)): created from cgraph_process_new_functions
23847         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
23848         (bool output_variables (void)): created from varpool_node::output_variables
23849         (void output_asm_statements (void)): created from output_asm_statements
23850         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
23851         (void compile (void)): created from compile
23852         (void output_weakrefs (void)): created from output_weakrefs
23853         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
23854         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
23855           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
23856         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
23857         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
23858           created from cgraph_next_function_with_gimple_body
23859         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
23860           created from cgraph_remove_edge_removal_hook
23861         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
23862           created from cgraph_add_node_removal_hook
23863         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
23864           created from cgraph_remove_node_removal_hook
23865         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
23866           created from varpool_add_node_removal_hook
23867         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
23868           created from varpool_remove_node_removal_hook
23869         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
23870           created from cgraph_add_function_insertion_hook
23871         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
23872           created from cgraph_remove_function_insertion_hook
23873         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
23874           created from varpool_add_variable_insertion_hook
23875         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
23876           created from varpool_remove_variable_insertion_hook
23877         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
23878           created from cgraph_add_edge_duplication_hook
23879         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
23880           created from cgraph_remove_edge_duplication_hook
23881         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
23882           created from cgraph_add_node_duplication_hook
23883         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
23884           created from cgraph_remove_node_duplication_hook
23885         (void call_edge_removal_hooks (cgraph_edge *e)):
23886           created from cgraph_call_edge_removal_hooks
23887         (void call_cgraph_insertion_hooks (cgraph_node *node)):
23888           created from call_function_insertion_hooks
23889         (void call_cgraph_removal_hooks (cgraph_node *node)):
23890           created from cgraph_call_node_removal_hooks
23891         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
23892           created from cgraph_node::call_duplication_hooks
23893         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
23894           created from cgraph_call_edge_duplication_hooks
23895         (void call_varpool_removal_hooks (varpool_node *node)):
23896           created from varpool_call_node_removal_hooks
23897         (void call_varpool_insertion_hooks (varpool_node *node)):
23898           created from varpool_call_variable_insertion_hooks
23899         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
23900           created from insert_to_assembler_name_hash
23901         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
23902           created from unlink_from_assembler_name_hash
23903         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
23904           created from symtab_prevail_in_asm_name_hash
23905         (void symtab_initialize_asm_name_hash (void)):
23906           created from symtab_initialize_asm_name_hash
23907         (void change_decl_assembler_name (tree decl, tree name)):
23908           created from change_decl_assembler_name
23909         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
23910         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
23911           created from decl_assembler_name_hash
23912         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
23913           created from decl_assembler_name_equal
23914         (static hashval_t hash_node_by_assembler_name (const void *p)):
23915           created from hash_node_by_assembler_name
23916         (static int eq_assembler_name (const void *p1, const void *p2)):
23917           created from eq_assembler_name
23918
23919 2014-08-25  Marek Polacek  <polacek@redhat.com>
23920
23921         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
23922
23923 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
23924
23925         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
23926         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
23927         SWI1248_AVX512BW mode iterator.
23928
23929 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
23930
23931         PR target/62111
23932         * config/sh/predicates.md (general_extend_operand): Disable
23933         TRUNCATE before reload completes.
23934
23935 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
23936
23937         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
23938
23939 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
23940
23941         PR target/61996
23942         * config/sh/sh.opt (musermode): Allow negative form.
23943         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
23944         targets that don't support it.
23945         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
23946         Document -mno-usermode option.
23947
23948 2014-08-24  Kito Cheng  <kito@0xlab.org>
23949
23950         * system.h (CALLER_SAVE_PROFITABLE): Poison.
23951         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
23952         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
23953         * doc/tm.texi: Regenerate.
23954
23955 2014-08-24  Kito Cheng  <kito@0xlab.org>
23956
23957         * ira.c: Fix typo in comment.
23958
23959 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
23960
23961         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
23962         Deprecate c++1y. Change language to reflect greater confidence in C++14.
23963
23964 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
23965
23966         PR target/62038
23967         * config/pa/pa.c (pa_output_function_epilogue): Don't set
23968         last_address when the current function is a thunk.
23969         (pa_asm_output_mi_thunk): When we don't have named sections or they
23970         are not being used, check that thunk can reach the stub table with a
23971         short branch.
23972
23973 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
23974
23975         * web.c (union_match_dups): Strengthen param "insn" from rtx to
23976         rtx_insn *.
23977         (pass_web::execute): Likewise for local "insn".
23978
23979 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
23980
23981         * var-tracking.c (struct micro_operation_def): Strengthen field
23982         "insn" from rtx to rtx_insn *.
23983         (struct emit_note_data_def): Likewise.
23984         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
23985         (vt_stack_adjustments): Likewise for local "insn".
23986         (adjust_insn): Likewise for param "insn".
23987         (val_store): Likewise.
23988         (val_resolve): Likewise.
23989         (struct count_use_info): Likewise for field "insn".
23990         (log_op_type): Likewise for param "insn".
23991         (reverse_op): Likewise.
23992         (prepare_call_arguments): Likewise.
23993         (add_with_sets):  The initial param takes an insn, but we can't
23994         yet strengthen it from rtx to rtx_insn * since it's used as a
23995         cselib_record_sets_hook callback.  For now rename initial param
23996         from "insn" to "uncast_insn", and introduce a local "insn" of
23997         the stronger rtx_insn * type, with a checked cast.
23998         (compute_bb_dataflow): Strengthen local "insn" from rtx to
23999         rtx_insn *.
24000         (emit_note_insn_var_location): Likewise.
24001         (emit_notes_for_changes): Likewise.
24002         (emit_notes_for_differences): Likewise.
24003         (next_non_note_insn_var_location): Likewise for return type and
24004         for param "insn".
24005         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
24006         (vt_initialize): Likewise for local "insn".
24007         (delete_debug_insns): Likewise for locals "insn" and "next".
24008
24009 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
24010
24011         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
24012         rtx_insn *.
24013         (mark_constant_pool): Likewise for local "insn".
24014
24015 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
24016
24017         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
24018         rtx to rtx_insn *.
24019         (dead_debug_promote_uses): Likewise.
24020         (dead_debug_insert_temp): Likewise.
24021
24022 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
24023
24024         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
24025         from const_rtx to const rtx_insn *.
24026         (store_killed_after): Likewise.  Strengthen locals "last", "act"
24027         from rtx to rtx_insn *.
24028         (store_killed_before): Strengthen param "insn" from const_rtx to
24029         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
24030         (find_moveable_store): Strengthen param "insn" from rtx to
24031         rtx_insn *.
24032         (compute_store_table): Likewise for local "insn".
24033         (insert_insn_start_basic_block): Likewise for param "insn" and
24034         locals "prev", "before", "insn".
24035         (insert_store): For now, add a checked cast to rtx_insn * on the
24036         result of gen_move_insn.
24037         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
24038         to rtx_insn *.
24039         (replace_store_insn): Likewise.  For now, add a checked cast to
24040         rtx_insn * on the result of gen_move_insn.
24041
24042 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24043
24044         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
24045         rtx_insn *.
24046         (expand_sjlj_dispatch_table): Likewise.
24047
24048 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24049
24050         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
24051         "insn" from rtx to rtx_insn *.
24052
24053 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24054
24055         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
24056         "insn" from rtx to rtx_insn *.
24057         (dup_block_and_redirect): Likewise for param 3 "before".
24058
24059         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
24060         from rtx to rtx_insn *.
24061         (move_insn_for_shrink_wrap): Likewise.
24062         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
24063         (dup_block_and_redirect): Likewise for param "before" and local
24064         "insn".
24065         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
24066         "end".
24067         (convert_to_simple_return): Likewise for local "start".
24068
24069         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
24070         Strengthen local "insn" from rtx to rtx_insn *, for use when
24071         invoking requires_stack_frame_p.
24072
24073 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24074
24075         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
24076         rtx_insn *.
24077         (speculate_expr): Likewise for locals "orig_insn_rtx",
24078         "spec_insn_rtx".
24079         (eq_transformed_insns): Likewise for locals "i1", "i2".
24080         (check_for_new_jump): Likewise for return type and local "end".
24081         (find_new_jump): Likewise for return type and local "jump".
24082         (sel_split_edge): Likewise for local "jump".
24083         (sel_create_recovery_block): Likewise.
24084         (sel_redirect_edge_and_branch_force): Likewise.
24085         (sel_redirect_edge_and_branch): Likewise.
24086
24087 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24088
24089         * sel-sched.c (substitute_reg_in_expr): Strengthen local
24090         "new_insn" from rtx to rtx_insn *.
24091         (create_insn_rtx_with_rhs): Likewise for return type and for local
24092         "insn_rtx".
24093         (create_insn_rtx_with_lhs): Likewise.
24094         (create_speculation_check): Likewise for local "insn_rtx".
24095         (implicit_clobber_conflict_p): Likewise for local "insn".
24096         (get_expr_cost): Likewise.
24097         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
24098         (move_cond_jump): Likewise for locals "next", "prev", "link",
24099         "head", "from", "to".
24100
24101 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24102
24103         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
24104         "next" from rtx to rtx_insn *.
24105         (find_conditional_protection): Likewise for local "next".
24106         (is_conditionally_protected): Likewise for local "insn1".
24107         (is_pfree): Likewise for locals "insn1", "insn2".
24108
24109 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24110
24111         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
24112         from rtx to rtx_insn *.
24113
24114         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
24115         locals "insn1", "insn2" from rtx to rtx_insn *.
24116         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
24117         locals "insn", "prev", "last_jump", "next_tail".
24118         (schedule_ebb): Likewise for params "head", "tail".
24119         (schedule_ebbs): Likewise for locals "tail", "head".
24120
24121         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
24122         to rtx_insn on "last_insn" in one of the invocations of
24123         schedule_ebb.
24124
24125 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24126
24127         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
24128         "elem", "insn" from rtx to rtx_insn *.
24129         (change_spec_dep_to_hard): Likewise.
24130         (get_back_and_forw_lists): Likewise for local "con".
24131         (sd_add_dep): Likewise for locals "elem", "insn".
24132         (sd_resolve_dep): Likewise for locals "pro", "con".
24133         (sd_unresolve_dep): Likewise.
24134         (sd_delete_dep): Likewise.
24135         (chain_to_prev_insn): Likewise for local "pro".
24136         (find_inc): Likewise for locals "pro", "con".
24137
24138 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24139
24140         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
24141         to rtx_insn *.
24142         (reg_set_between_p): Strengthen local "insn" from const_rtx to
24143         const rtx_insn *.
24144         (modified_between_p): Strengthen local "insn" from rtx to
24145         rtx_insn *.
24146         (remove_reg_equal_equiv_notes_for_regno): Likewise.
24147         (keep_with_call_p): Strengthen local "i2" from const_rtx to
24148         const rtx_insn *.
24149
24150 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24151
24152         * resource.c (next_insn_no_annul): Strengthen local "next" from
24153         rtx to rtx_insn *.
24154         (mark_referenced_resources): Likewise for local "insn".
24155
24156 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24157
24158         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
24159         to rtx_insn *.
24160         (find_reloads): Likewise for param 1.
24161         (subst_reloads): Likewise for sole param.
24162         (find_equiv_reg): Likwise for param 2.
24163         (regno_clobbered_p): Likwise for param 2.
24164         (reload): Likewise for param 1.
24165
24166         * caller-save.c (save_call_clobbered_regs): Strengthen local
24167         "insn" from rtx to rtx_insn *.
24168         (insert_one_insn): Likewise for local "insn".
24169
24170         * reload.c (this_insn): Likewise for this global.
24171         (find_reloads): Likewise for param "insn".
24172         (find_reloads_toplev): Likewise.
24173         (find_reloads_address): Likewise.
24174         (subst_reg_equivs): Likewise.
24175         (update_auto_inc_notes): Likewise.
24176         (find_reloads_address_1): Likewise.
24177         (find_reloads_subreg_address): Likewise.
24178         (subst_reloads): Likewise.
24179         (find_equiv_reg): Likewise, also for local "p".
24180         (regno_clobbered_p): Likewise for param "insn".
24181
24182         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
24183         array.
24184         (spill_reg_store): Likewise for the elements of this array.
24185         (remove_init_insns): Likewise for local "equiv_insn".
24186         (will_delete_init_insn_p): Likewise for param "insn".
24187         (reload): Likewise for param ""first" and local "insn".
24188         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
24189         rtx_insn *.
24190         (calculate_elim_costs_all_insns): Likewise.
24191         (delete_caller_save_insns): Likewise.
24192         (spill_failure): Likewise for param "insn".
24193         (delete_dead_insn): Likewise.
24194         (set_label_offsets): Likewise.
24195         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
24196         "prev_insn".
24197         (elimination_costs_in_insn): Likewise for param "insn".
24198         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
24199         when referring to an insn.
24200         (set_initial_label_offsets): Likewise.
24201         (set_offsets_for_label): Strengthen param "insn" from rtx to
24202         rtx_insn *.
24203         (init_eliminable_invariants): Likewise for param "first" and local
24204         "insn".
24205         (fixup_eh_region_note): Likewise for param "insn".
24206         (reload_as_needed): Likewise for locals "prev", "insn",
24207         "old_next", "old_prev", "next".
24208         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
24209         "last".
24210         (reload_inheritance_insn): Strengthen elements of this array from
24211         rtx to rtx_insn *.
24212         (failed_reload): Likewise for param "insn".
24213         (choose_reload_regs): Likewise for local "insn".  Replace use of
24214         NULL_RTX with NULL when referring to an insn.
24215         (input_reload_insns): Strengthen elements of this array from rtx
24216         to rtx_insn *.
24217         (other_input_address_reload_insns): Likewise for this global.
24218         (other_input_reload_insns): Likewise for this global.
24219         (input_address_reload_insns): Likwise for the elements of this
24220         array.
24221         (inpaddr_address_reload_insns): Likwise for the elements of this
24222         array.
24223         (output_reload_insns): Likewise for the elements of this array.
24224         (output_address_reload_insns): Likewise for the elements of this
24225         array.
24226         (outaddr_address_reload_insns): Likewise for the elements of this
24227         array.
24228         (operand_reload_insns): Likewise for this global.
24229         (other_operand_reload_insns): Likewise for this global.
24230         (other_output_reload_insns): Likewise for the elements of this
24231         array.
24232         (new_spill_reg_store): Likewise for the elements of this
24233         array.
24234         (emit_input_reload_insns): Likewise for locals "insn", "temp".
24235         Strengthen local "where" from rtx * to rtx_insn **.
24236         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
24237         from rtx to rtx_insn *.
24238         (do_input_reload): Likewise for local "insn".
24239         (do_output_reload): Likewise for local "insn".
24240         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
24241         (emit_insn_if_valid_for_reload): Likewise for return type and local
24242         "last".  Add checked cast to rtx_insn when returning "insn" since
24243         this has been through emit_insn.
24244         (gen_reload): Strengthen return type and locals "last", "insn", "set"
24245         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
24246         returning "insn" since it's been through
24247         emit_insn_if_valid_for_reload at this point.
24248         (delete_output_reload): Strengthen param "insn" and locals
24249         "output_reload_insn", "i2" from rtx to rtx_insn *.
24250         (delete_address_reloads): Likewise for params "dead_insn",
24251         "current_insn" and locals "prev", "next".
24252         (delete_address_reloads_1): Likewise for params "dead_insn",
24253         "current_insn" and locals "prev", "i2".
24254         (inc_for_reload): Likewise for locals "last", "add_insn".
24255         (add_auto_inc_notes): Strengthen param "insn" from rtx to
24256         rtx_insn *.
24257
24258         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
24259         param of this duplicate of the prototype from reload.h
24260
24261 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24262
24263         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
24264         rtx to rtx_insn *.
24265         (regstat_bb_compute_calls_crossed): Likewise.
24266
24267 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24268
24269         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
24270         to rtx_insn *.
24271         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
24272         with an insn.
24273         (regrename_analyze): Strengthen local "insn" from rtx to
24274         rtx_insn *.
24275         (scan_rtx_reg): Likewise for param "insn".
24276         (scan_rtx_address): Likewise.
24277         (scan_rtx): Likewise.
24278         (restore_operands): Likewise.
24279         (record_out_operands): Likewise.
24280         (build_def_use): Likewise for local "insn".  Replace use of
24281         NULL_RTX with NULL when dealing with an insn.
24282
24283 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24284
24285         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
24286         * reginfo.c (reg_scan): Likewise, also for local "insn".
24287         (reg_scan_mark_refs): Likewise for param "insn".
24288         (init_subregs_of_mode): Likewise for local "insn".
24289
24290 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24291
24292         * regcprop.c (struct queued_debug_insn_change): Strengthen field
24293         "insn" from rtx to rtx_insn *.
24294         (replace_oldest_value_reg): Likewise for param "insn".
24295         (replace_oldest_value_addr): Likewise.
24296         (replace_oldest_value_mem): Likewise.
24297         (apply_debug_insn_changes): Likewise for local "last_insn".
24298         (copyprop_hardreg_forward_1): Likewise for local "insn".
24299
24300 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24301
24302         * reg-stack.c (next_flags_user): Strengthen return type and param
24303         "insn" from rtx to rtx_insn *.
24304         (straighten_stack): Likewise for param "insn".
24305         (check_asm_stack_operands): Likewise.
24306         (remove_regno_note): Likewise.
24307         (emit_pop_insn): Likewise for return type, param "insn", local
24308         "pop_insn".
24309         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
24310         "limit" from rtx to rtx_insn *.
24311         (swap_to_top): Likewise for param "insn".
24312         (move_for_stack_reg): Likewise.
24313         (move_nan_for_stack_reg): Likewise.
24314         (swap_rtx_condition): Likewise.
24315         (compare_for_stack_reg): Likewise.
24316         (subst_all_stack_regs_in_debug_insn): Likewise.
24317         (subst_stack_regs_pat): Likewise, and local "insn2".
24318         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
24319         rtx_insn *.
24320         (subst_stack_regs): Likewise.
24321         (change_stack): Likewise.
24322         (convert_regs_1): Likewise for locals "insn", "next".
24323
24324 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24325
24326         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
24327         rtx_insn *.
24328         (combine_set_extension): Likewise for param "curr_insn".
24329         (transform_ifelse): Likewise for param "def_insn".
24330         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
24331         from vec<rtx> * to vec<rtx_insn *> *.
24332         (is_cond_copy_insn): Likewise for param "insn".
24333         (struct ext_state): Strengthen the four vec fields from vec<rtx>
24334         to vec<rtx_insn *>.
24335         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
24336         local "def_insn" from rtx to rtx_insn *.
24337         (get_sub_rtx): Likewise for param "def_insn".
24338         (merge_def_and_ext): Likewise.
24339         (combine_reaching_defs): Likewise.
24340         (add_removable_extension): Likewise for param "insn".
24341         (find_removable_extensions): Likewise for local "insn".
24342         (find_and_remove_re): Likewise for locals "curr_insn" and
24343         "def_insn".  Strengthen locals "reinsn_del_list" and
24344         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
24345
24346 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24347
24348         * recog.c (split_insn): Strengthen param "insn" and locals
24349         "first", "last" from rtx to rtx_insn *.
24350         (split_all_insns): Likewise for locals "insn", "next".
24351         (split_all_insns_noflow): Likewise.
24352
24353 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24354
24355         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
24356         const rtx_insn *.
24357         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
24358         (debug_rtx_find): Likewise for param 1 "x".
24359
24360         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
24361         const_rtx to const rtx_insn *.  Likewise for local "insn".
24362         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
24363         (debug_rtx_find): Likewise for param 1 "x".
24364         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
24365         from const_rtx to const rtx_insn * within the appropriate cases of
24366         the switch statement.
24367
24368         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
24369         Strengthen local "insns" from rtx to rtx_insn * since this is
24370         passed to a call to debug_rtx_list.
24371
24372 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24373
24374         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
24375         to rtx_insn *.
24376
24377         * function.c (stack_protect_epilogue): Add checked cast to
24378         rtx_insn for now when invoking predict_insn_def.
24379
24380         * predict.c (predict_insn): Strengthen param "insn" from rtx to
24381         rtx_insn *.
24382         (predict_insn_def): Likewise.
24383         (rtl_predict_edge): Likewise for local "last_insn".
24384         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
24385         const rtx_insn *.
24386         (combine_predictions_for_insn): Strengthen param "insn" from rtx
24387         to rtx_insn *.
24388         (bb_estimate_probability_locally): Likewise for local "last_insn".
24389         (expensive_function_p): Likewise for local "insn".
24390
24391         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
24392         local "jmp", since this is used when invoking predict_insn_def.
24393
24394 2014-08-22  Marek Polacek  <polacek@redhat.com>
24395
24396         PR c++/62199
24397         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
24398
24399 2014-08-22  Marek Polacek  <polacek@redhat.com>
24400
24401         PR c/61271
24402         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
24403         a comparison in parens.
24404         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
24405         in parens.
24406
24407 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24408
24409         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
24410         rtx_insn *.
24411
24412         * cprop.c (fis_get_condition): Likewise.
24413
24414         * postreload.c (reload_cse_regs): Likewise for param "first".
24415         (reload_cse_simplify): Likewise for param "insn".
24416         (reload_cse_regs_1): Likewise for local "insn".
24417         (reload_cse_simplify_set): Likewise for param "insn".
24418         (reload_cse_simplify_operands): Likewise.
24419         (struct reg_use): Likewise for field "insn".
24420         (reload_combine_purge_insn_uses): Likewise for param "insn".
24421         (fixup_debug_insns): Likewise for params "from", "to" and local
24422         "insn".
24423         (try_replace_in_use): Likewise for local "use_insn".
24424         (reload_combine_recognize_const_pattern): Likewise for param
24425         "insn" and locals "add_moved_after_insn", "use_insn".
24426         (reload_combine_recognize_pattern): Likewise for param "insn" and
24427         local "prev".
24428         (reload_combine): Likewise for locals "insn", "prev".
24429         (reload_combine_note_use): Likewise for param "insn".
24430         (move2add_use_add2_insn): Likewise.
24431         (move2add_use_add3_insn): Likewise.
24432         (reload_cse_move2add): Likewise, also for local "next".
24433         (move2add_note_store): Likewise for local "insn".
24434
24435 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24436
24437         * postreload-gcse.c (struct occr): Strengthen field "insn" from
24438         rtx to rtx_insn *.
24439         (struct unoccr): Likewise.
24440         (struct modifies_mem): Likewise.
24441         (alloc_mem): Likewise for local "insn".
24442         (insert_expr_in_table): Likewise for param "insn".
24443         (dump_expr_hash_table_entry): Likewise for local "insn".
24444         (oprs_unchanged_p): Likewise for param "insn".
24445         (load_killed_in_block_p): Likewise for local "setter".
24446         (record_last_reg_set_info): Likewise for param "insn".
24447         (record_last_reg_set_info_regno): Likewise.
24448         (record_last_mem_set_info): Likewise.
24449         (record_last_set_info): Likewise for local "last_set_insn".
24450         (record_opr_changes): Likewise for param "insn".
24451         (hash_scan_set): Likewise.
24452         (compute_hash_table): Likewise for local "insn".
24453         (get_avail_load_store_reg): Likewise for param "insn".
24454         (eliminate_partially_redundant_load): Likewise, also for locals
24455         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
24456         RTX for insns.
24457         (eliminate_partially_redundant_loads): Likewise for local "insn".
24458
24459 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24460
24461         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
24462         rtx to rtx_insn *.
24463         (expand_binop): Likewise for locals "entry_last", "last", "insns"
24464         (expand_twoval_unop): Likewise for locals entry_last", "last".
24465         (expand_twoval_binop): Likewise.
24466         (expand_twoval_binop_libfunc): Likewise for local "insns".
24467         (widen_leading): Likewise for local "last".
24468         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
24469         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
24470         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
24471         (expand_parity): Likewise for locals "last" and "seq".
24472         (expand_ffs): Likewise for local "seq".  Strengthen local
24473         "nonzero_label" from rtx to rtx_code_label *.
24474         (expand_absneg_bit): Strengthen local "insns" from rtx to
24475         rtx_insn *.
24476         (expand_unop_direct): Likewise for local "last".
24477         (expand_unop): Likewise for locals "last", "insns".
24478         (expand_abs_nojump): Likewise for local "last".
24479         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
24480         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
24481         rtx_insn *.
24482         (expand_copysign_absneg): Strengthen local "label" from rtx to
24483         rtx_code_label *.
24484         (expand_copysign_bit): Strengthen local "insns" from rtx to
24485         rtx_insn *.
24486         (struct no_conflict_data): Likewise for fields "first", "insn".
24487         (emit_libcall_block_1): Likewise for param "insns" and locals
24488         "next", "last", "insn".
24489         (emit_libcall_block): For now, add a checked cast to rtx_insn *
24490         on "insns" when invoking emit_libcall_block_1.  Ultimately we
24491         want to strengthen insns itself.
24492         (prepare_cmp_insn): Strengthen local "last" from rtx to
24493         rtx_insn *.
24494         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
24495         (prepare_float_lib_cmp): Likewise for local "insns".
24496         (emit_conditional_move): Likewise for local "last".
24497         (emit_conditional_add): Likewise.
24498         (have_sub2_insn): Likewise for local "seq".
24499         (expand_float): Likewise for local "insns".  Strengthen locals
24500         "label", "neglabel" from rtx to rtx_code_label *.
24501         (expand_fix): Likewise for locals "last", "insn", "insns" (to
24502         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
24503         (expand_fixed_convert): Likewise for local "insns" (to
24504         rtx_insn *).
24505         (expand_sfix_optab): Likewise for local "last".
24506         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
24507         to rtx_code_label *.
24508         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
24509         from rtx to rtx_insn *.
24510         (expand_atomic_fetch_op): Likewise for local "insn".
24511         (maybe_legitimize_operand_same_code): Likewise for local "last".
24512         (maybe_legitimize_operands): Likewise.
24513
24514 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24515
24516         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
24517         "insn" from rtx to rtx_insn *.
24518         (ps_rtl_insn): Likewise for return type.
24519         (doloop_register_get): Likewise for params "head", "tail" and
24520         locals "insn", "first_insn_not_to_check".
24521         (schedule_reg_move): Likewise for local "this_insn".
24522         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
24523         of gen_move_insn for now.
24524         (reset_sched_times): Strengthen local "insn" from rtx to
24525         rtx_insn *.
24526         (permute_partial_schedule): Likewise.
24527         (duplicate_insns_of_cycles): Likewise for local "u_insn".
24528         (dump_insn_location): Likewise for param "insn".
24529         (loop_canon_p): Likewise for local "insn".
24530         (sms_schedule): Likewise.
24531         (print_partial_schedule): Likewise.
24532         (ps_has_conflicts): Likewise.
24533
24534 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24535
24536         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
24537         "tailp" from rtx * to rtx_insn **.
24538
24539         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
24540         from rtx to rtx_insn *.
24541         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
24542         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
24543         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
24544         rtx to rtx_insn *.
24545         * modulo-sched.c (const_iteration_count): Strengthen return type
24546         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
24547         use of NULL_RTX with NULL when working with insns.
24548         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
24549         to rtx_insn *.
24550         (sms_schedule): Likewise.
24551         * sched-rgn.c (init_ready_list): Likewise, also for locals
24552         "src_head" and "src_next_tail".
24553         (compute_block_dependences): Likewise.
24554         (free_block_dependencies): Likewise.
24555         (debug_rgn_dependencies): Likewise.
24556         (free_rgn_deps): Likewise.
24557         (compute_priorities): Likewise.
24558         (schedule_region): Likewise.
24559         * sel-sched.c (find_ebb_boundaries): Likewise.
24560
24561         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
24562         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
24563
24564 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24565
24566         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
24567         from rtx to rtx_insn *.
24568         (new_seginfo): Likewise for param "insn".
24569         (create_pre_exit): Likewise for locals "last_insn",
24570         "before_return_copy", "return_copy".
24571         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
24572         "mode_set".
24573
24574 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24575
24576         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
24577         from rtx to rtx_insn *.
24578         (lra_push_insn): Likewise for 1st param.
24579         (lra_push_insn_and_update_insn_regno_info): Likewise.
24580         (lra_pop_insn): Likewise for return type.
24581         (lra_invalidate_insn_data): Likewise for 1st param.
24582         (lra_set_insn_deleted): Likewise.
24583         (lra_delete_dead_insn): Likewise.
24584         (lra_process_new_insns): Likewise for first 3 params.
24585         (lra_set_insn_recog_data): Likewise for 1st param.
24586         (lra_update_insn_recog_data): Likewise.
24587         (lra_set_used_insn_alternative): Likewise.
24588         (lra_invalidate_insn_regno_info): Likewise.
24589         (lra_update_insn_regno_info): Likewise.
24590         (lra_former_scratch_operand_p): Likewise.
24591         (lra_eliminate_regs_1): Likewise.
24592         (lra_get_insn_recog_data): Likewise.
24593
24594         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
24595         rtx to rtx_insn *.
24596
24597         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
24598         "mv1" and "mv2".
24599         (substitute_within_insn): New.
24600         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
24601         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
24602         Replace call to "substitute" with call to substitute_within_insn.
24603
24604         * lra-constraints.c (curr_insn): Strengthen from rtx to
24605         rtx_insn *.
24606         (get_equiv_with_elimination): Likewise for param "insn".
24607         (match_reload): Strengthen params "before" and "after" from rtx *
24608         to rtx_insn **.
24609         (emit_spill_move): Likewise for return type.  Add a checked cast
24610         to rtx_insn * on result of gen_move_insn for now.
24611         (check_and_process_move): Likewise for local "before".  Replace
24612         NULL_RTX with NULL when referring to insns.
24613         (process_addr_reg): Strengthen params "before" and "after" from
24614         rtx * to rtx_insn **.
24615         (insert_move_for_subreg): Likewise.
24616         (simplify_operand_subreg): Strengthen locals "before" and "after"
24617         from rtx to rtx_insn *.
24618         (process_address_1): Strengthen params "before" and "after" from
24619         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
24620         rtx to rtx_insn *.
24621         (process_address): Strengthen params "before" and "after" from
24622         rtx * to rtx_insn **.
24623         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
24624         (curr_insn_transform): Strengthen locals "before" and "after"
24625         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
24626         to insns.
24627         (loc_equivalence_callback): Update cast of "data", changing
24628         resulting type from rtx to rtx_insn *.
24629         (substitute_pseudo_within_insn): New.
24630         (inherit_reload_reg): Strengthen param "insn" from rtx to
24631         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
24632         NULL when referring to insns.  Add a checked cast to rtx_insn *
24633         when using usage_insn to invoke lra_update_insn_regno_info.
24634         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
24635         likewise for locals "restore", "save".  Add checked casts to
24636         rtx_insn * when using usage_insn to invoke
24637         lra_update_insn_regno_info and lra_process_new_insns.  Replace
24638         NULL_RTX with NULL when referring to insns.
24639         (split_if_necessary): Strengthen param "insn" from rtx to
24640         rtx_insn *.
24641         (update_ebb_live_info): Likewise for params "head", "tail" and local
24642         "prev_insn".
24643         (get_last_insertion_point): Likewise for return type and local "insn".
24644         (get_live_on_other_edges): Likewise for local "last".
24645         (inherit_in_ebb): Likewise for params "head", "tail" and locals
24646         "prev_insn", "next_insn", "restore".
24647         (remove_inheritance_pseudos): Likewise for local "prev_insn".
24648         (undo_optional_reloads): Likewise for local "insn".
24649
24650         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
24651         "insn".
24652         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
24653         insns.
24654         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
24655         rtx_insn *.
24656         (spill_pseudos): Likewise for local "insn".
24657         (init_elimination): Likewise.
24658         (process_insn_for_elimination): Likewise for param "insn".
24659
24660         * lra-lives.c (curr_insn): Likewise.;
24661
24662         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
24663         (remove_pseudos): Likewise for param "insn".
24664         (spill_pseudos): Likewise for local "insn".
24665         (lra_final_code_change): Likewise for locals "insn", "curr".
24666
24667         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
24668         (lra_set_insn_deleted): Likewise.
24669         (lra_delete_dead_insn): Likewise, and for local "prev".
24670         (new_insn_reg): Likewise for param "insn".
24671         (lra_set_insn_recog_data): Likewise.
24672         (lra_update_insn_recog_data): Likewise.
24673         (lra_set_used_insn_alternative): Likewise.
24674         (get_insn_freq): Likewise.
24675         (invalidate_insn_data_regno_info): Likewise.
24676         (lra_invalidate_insn_regno_info): Likewise.
24677         (lra_update_insn_regno_info): Likewise.
24678         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
24679         vec<rtx_insn *>.
24680         (lra_push_insn_1): Strengthen param "insn" from rtx to
24681         rtx_insn *.
24682         (lra_push_insn): Likewise.
24683         (lra_push_insn_and_update_insn_regno_info): Likewise.
24684         (lra_pop_insn): Likewise for return type and local "insn".
24685         (push_insns): Likewise for params "from", "to", and local "insn".
24686         (setup_sp_offset): Likewise for params "from", "last" and locals
24687         "before", "insn".
24688         (lra_process_new_insns): Likewise for params "insn", "before",
24689         "after" and local "last".
24690         (struct sloc): Likewise for field "insn".
24691         (lra_former_scratch_operand_p): Likewise for param "insn".
24692         (remove_scratches): Likewise for locals "insn", "last".
24693         (check_rtl): Likewise for local "insn".
24694         (add_auto_inc_notes): Likewise for param "insn".
24695         (update_inc_notes): Likewise for local "insn".
24696         (lra): Replace NULL_RTX with NULL when referring to insn.
24697
24698 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24699
24700         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
24701         to rtx_insn *.
24702         (resolve_reg_notes): Likewise.
24703         (resolve_simple_move): Likewise for return type, param "insn", and
24704         locals "insns", "minsn".
24705         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
24706         (resolve_use): Likewise.
24707         (resolve_debug): Likewise.
24708         (find_decomposable_shift_zext): Likewise.
24709         (resolve_shift_zext): Likewise for return type, param "insn", and
24710         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
24711         (decompose_multiword_subregs): Likewise for local "insn",
24712         "orig_insn", "decomposed_shift", "end".
24713
24714 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24715
24716         * basic-block.h (basic_block split_edge_and_insert): Strengthen
24717         param "insns" from rtx to rtx_insn *.
24718
24719         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
24720         rtx to rtx_insn *.
24721         (struct iv_to_split): Likewise.
24722         (loop_exit_at_end_p): Likewise for local "insn".
24723         (split_edge_and_insert): Likewise for param "insns".
24724         (compare_and_jump_seq): Likewise for return type, param "cinsn",
24725         and locals "seq", "jump".
24726         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
24727         "branch_code"; update invocations of compare_and_jump_seq to
24728         eliminate NULL_RTX in favor of NULL.
24729         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
24730         rtx to rtx_insn *.
24731         (reset_debug_uses_in_loop): Likewise.
24732         (analyze_insn_to_expand_var): Likewise for param "insn".
24733         (analyze_iv_to_split_insn): Likewise.
24734         (analyze_insns_in_loop): Likewise for local "insn".
24735         (insert_base_initialization): Likewise for param
24736         "insn" and local "seq".
24737         (split_iv): Likewise for param "insn" and local "seq".
24738         (expand_var_during_unrolling): Likewise for param "insn".
24739         (insert_var_expansion_initialization): Likewise for local "seq".
24740         (combine_var_copies_in_loop_exit): Likewise.
24741         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
24742         "insn".
24743         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
24744         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
24745         "next".
24746
24747 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24748
24749         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
24750         rtx_insn *.
24751         (iv_analyze_result): Likewise.
24752         (iv_analyze_expr): Likewise.
24753         (biv_p): Likewise.
24754
24755         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
24756         local "def_insn" from rtx to rtx_insn *.
24757         (get_biv_step_1): Likewise for local "insn".
24758         (iv_analyze_expr): Likewise for param "insn".
24759         (iv_analyze_def): Likewise for local "insn".
24760         (iv_analyze_op): Likewise for param "insn".
24761         (iv_analyze): Likewise.
24762         (iv_analyze_result): Likewise.
24763         (biv_p): Likewise.
24764         (suitable_set_for_replacement): Likewise.
24765         (simplify_using_initial_values): Likewise for local "insn".
24766         (iv_number_of_iterations): Likewise for param "insn".
24767         (check_simple_exit): Add checked cast to rtx_insn when invoking
24768         iv_number_of_iterations for now (until get_condition is
24769         strengthened).
24770
24771         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
24772         "insn" from rtx to rtx_insn *.
24773         (analyze_insns_in_loop): Likewise for local "insn".
24774
24775 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24776
24777         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
24778         to rtx_insn *.
24779         (struct invariant): Likewise.
24780         (hash_invariant_expr_1): Likewise for param "insn".
24781         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
24782         (find_exits): Likewise for local "insn".
24783         (create_new_invariant): Likewise for param "insn".
24784         (check_dependencies): Likewise.
24785         (find_invariant_insn): Likewise.
24786         (record_uses): Likewise.
24787         (find_invariants_insn): Likewise.
24788         (find_invariants_bb): Likewise for local "insn".
24789         (get_pressure_class_and_nregs): Likewise for param "insn".
24790         (calculate_loop_reg_pressure): Likewise for local "insn".
24791
24792 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24793
24794         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
24795         to rtx_insn *.
24796         (add_test): Likewise for locals "seq", "jump".
24797         (doloop_modify): Likewise for locals "sequence", "jump_insn".
24798
24799 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24800
24801         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
24802         rtx_insn *.
24803         (rebuild_jump_labels_chain): Likewise for param "chain".
24804
24805         * cfgexpand.c (pass_expand::execute): Add checked cast to
24806         rtx_insn * when calling rebuild_jump_labels_chain in region where
24807         we know e->insns.r is non-NULL.
24808
24809         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
24810         rtx_insn *.
24811         (rebuild_jump_labels): Likewise.
24812         (rebuild_jump_labels_chain): Likewise for param "chain".
24813         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
24814         (init_label_info): Likewise for param "f".
24815         (maybe_propagate_label_ref): Likewise for params "jump_insn",
24816         "prev_nonjump_insn".
24817         (mark_all_labels): Likewise for param "f" and locals "insn",
24818         "prev_nonjump_insn".
24819
24820 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24821
24822         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
24823         from rtx to rtx_insn *insn.
24824         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
24825         (ira_add_allocno_copy): Likewise.
24826         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
24827         rtx to rtx_insn *.
24828         (ira_create_copy): Likewise.
24829         (ira_add_allocno_copy): Likewise.
24830         (create_bb_allocnos): Likewise for local "insn".
24831         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
24832         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
24833         process_regs_for_copy for rtx_insn * param.
24834         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
24835         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
24836         process_regs_for_copy for rtx_insn * param.
24837         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
24838         * ira-costs.c (record_reg_classes): Likewise for param "insn".
24839         (record_operand_costs): Likewise.
24840         (scan_one_insn): Likewise for return type, and for param "insn".
24841         (process_bb_for_costs): Likewise for local "insn".
24842         (process_bb_node_for_hard_reg_moves): Likewise.
24843         * ira-emit.c (struct move): Likewise for field "insn".
24844         (create_move): Eliminate use of NULL_RTX when dealing with an
24845         rtx_insn *.
24846         (emit_move_list): Strengthen return type and locals "result",
24847         "insn" from rtx to rtx_insn *insn.
24848         (emit_moves): Likewise for locals "insns", "tmp".
24849         (ira_emit): Likewise for local "insn".
24850         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
24851         "insn".
24852         (find_call_crossed_cheap_reg): Likewise.
24853         (process_bb_node_lives): Likewise for local "insn".
24854         * ira.c (decrease_live_ranges_number): Likewise.
24855         (compute_regs_asm_clobbered): Likewise.
24856         (build_insn_chain): Likewise.
24857         (find_moveable_pseudos): Likewise, also locals "def_insn",
24858         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
24859         to rtx_insn **.  Add a checked cast when assigning from
24860         "closest_use" into closest_uses array in a region where we know
24861         it's a non-NULL insn.
24862         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
24863         to rtx_insn *.
24864         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
24865         "last_interesting_insn", "uin".
24866         (move_unallocated_pseudos): Likewise for locals "def_insn",
24867         "move_insn", "newinsn".
24868
24869 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24870
24871         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
24872         Strengthen locals "done_label", "do_error" from rtx to
24873         rtx_code_label *.
24874         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
24875         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
24876         rtx_code_label *.
24877         (ubsan_expand_si_overflow_neg_check): Likewise for locals
24878         "done_label", "do_error" to rtx_code_label * and local  "last" to
24879         rtx_insn *.
24880         (ubsan_expand_si_overflow_mul_check): Likewise for locals
24881         "done_label", "do_error", "large_op0", "small_op0_large_op1",
24882         "one_small_one_large", "both_ops_large", "after_hipart_neg",
24883         "after_lopart_neg", "do_overflow", "hipart_different"  to
24884         rtx_code_label * and local  "last" to rtx_insn *.
24885
24886 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24887
24888         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
24889         "insn" and "move_insn" from rtx to rtx_insn *.
24890
24891 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24892
24893         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
24894         rtx_insn *.
24895         (cheap_bb_rtx_cost_p): Likewise.
24896         (first_active_insn): Likewise for return type and local "insn".
24897         (last_active_insn):  Likewise for return type and locals "insn",
24898         "head".
24899         (struct noce_if_info): Likewise for fields "jump", "insn_a",
24900         "insn_b".
24901         (end_ifcvt_sequence): Likewise for return type and locals "insn",
24902         "seq".
24903         (noce_try_move): Likewise for local "seq".
24904         (noce_try_store_flag): Likewise.
24905         (noce_try_store_flag_constants): Likewise.
24906         (noce_try_addcc): Likewise.
24907         (noce_try_store_flag_mask): Likewise.
24908         (noce_try_cmove): Likewise.
24909         (noce_try_minmax): Likewise.
24910         (noce_try_abs): Likewise.
24911         (noce_try_sign_mask): Likewise.
24912         (noce_try_bitop): Likewise.
24913         (noce_can_store_speculate_p): Likewise for local "insn".
24914         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
24915         seq".
24916         (check_cond_move_block): Likewise for local "insn".
24917         (cond_move_convert_if_block): Likewise.
24918         (cond_move_process_if_block): Likewise for locals "seq",
24919         "loc_insn".
24920         (noce_find_if_block): Likewise for local "jump".
24921         (merge_if_block): Likewise for local "last".
24922         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
24923         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
24924         (block_has_only_trap): Likewise for return type and local "trap".
24925         (find_if_case_1): Likewise for local "jump".
24926         (dead_or_predicable): Likewise for locals "head", "end", "jump",
24927         "insn".
24928
24929 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24930
24931         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
24932         "last_insn", "loop_end" from rtx to rtx_insn *.
24933
24934         * hw-doloop.c (scan_loop): Likewise for local "insn".
24935         (discover_loop): Likewise for param "tail_insn".
24936         (discover_loops): Likewise for local "tail".
24937
24938         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
24939         cast to rtx_insn * when assigning from an rtx local to a
24940         hwloop_info's "last_insn" field.
24941
24942 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24943
24944         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
24945         (add_delay_dependencies): Strengthen local "pro" from rtx to
24946         rtx_insn *.
24947         (recompute_todo_spec): Likewise.
24948         (dep_cost_1): Likewise for locals "insn", "used".
24949         (schedule_insn): Likewise for local "dbg".
24950         (schedule_insn): Likewise for locals "pro", "next".
24951         (unschedule_insns_until): Likewise for local "con".
24952         (restore_pattern): Likewise for local "next".
24953         (estimate_insn_tick): Likewise for local "pro".
24954         (resolve_dependencies): Likewise for local "next".
24955         (fix_inter_tick): Likewise.
24956         (fix_tick_ready): Likewise for local "pro".
24957         (add_to_speculative_block): Likewise for locals "check", "twin",
24958         "pro".
24959         (sched_extend_bb): Likewise for locals "end", "insn".
24960         (init_before_recovery): Likewise for local "x".
24961         (sched_create_recovery_block): Likewise for local "barrier".
24962         (create_check_block_twin): Likewise for local "pro".
24963         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
24964         "consumer".
24965         (unlink_bb_notes): Update for change to type of bb_header.
24966         Strengthen locals "prev", "label", "note", "next" from rtx to
24967         rtx_insn *.
24968         (clear_priorities): Likewise for local "pro".
24969
24970 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24971
24972         * gcse.c (struct occr): Strengthen field "insn" from rtx to
24973         rtx_insn *.
24974         (test_insn): Likewise for this global.
24975         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
24976         const rtx_insn *.
24977         (oprs_anticipatable_p): Likewise.
24978         (oprs_available_p): Likewise.
24979         (insert_expr_in_table): Strengthen param "insn" from  rtx to
24980         rtx_insn *.
24981         (hash_scan_set): Likewise.
24982         (hash_scan_clobber): Likewise.
24983         (hash_scan_call): Likewise.
24984         (hash_scan_insn): Likewise.
24985         (compute_hash_table_work): Likewise for local "insn".
24986         (process_insert_insn): Likewise for return type and local "pat".
24987         (insert_insn_end_basic_block): Likewise for locals "new_insn",
24988         "pat", "pat_end", "maybe_cc0_setter".
24989         (pre_edge_insert): Likewise for local "insn".
24990         (pre_insert_copy_insn): Likewise for param "insn".
24991         (pre_insert_copies): Likewise for local "insn".
24992         (struct set_data): Likewise for field "insn".
24993         (single_set_gcse): Likewise for param "insn".
24994         (gcse_emit_move_after): Likewise.
24995         (pre_delete): Likewise for local "insn".
24996         (update_bb_reg_pressure): Likewise for param "from" and local
24997         "insn".
24998         (should_hoist_expr_to_dom): Likewise for param "from".
24999         (hoist_code): Likewise for local "insn".
25000         (get_pressure_class_and_nregs): Likewise for param "insn".
25001         (calculate_bb_reg_pressure): Likewise for local "insn".
25002         (compute_ld_motion_mems): Likewise.
25003
25004 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25005
25006         * genpeep.c (main): Rename param back from "uncast_ins1" to
25007         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
25008         checked cast.
25009
25010         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
25011
25012 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25013
25014         PR target/62195
25015         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
25016         documentation to state it is only for VSX operations.
25017
25018         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
25019         constraint only active if VSX.
25020
25021         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
25022         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
25023         (lfiwzx): Likewise.
25024
25025 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25026
25027         * fwprop.c (single_def_use_dom_walker::before_dom_children):
25028         Strengthen local "insn" from rtx to rtx_insn *.
25029         (use_killed_between): Likewise for param "target_insn".
25030         (all_uses_available_at): Likewise for param "target_insn" and
25031         local "next".
25032         (update_df_init): Likewise for params "def_insn", "insn".
25033         (update_df): Likewise for param "insn".
25034         (try_fwprop_subst): Likewise for param "def_insn" and local
25035         "insn".
25036         (free_load_extend): Likewise for param "insn".
25037         (forward_propagate_subreg): Likewise for param "def_insn" and
25038         local "use_insn".
25039         (forward_propagate_asm): Likewise for param "def_insn" and local
25040         "use_insn".
25041         (forward_propagate_and_simplify): Likewise for param "def_insn"
25042         and local "use_insn".
25043         (forward_propagate_into): Likewise for locals "def_insn" and
25044         "use_insn".
25045
25046 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25047
25048         * function.c (emit_initial_value_sets): Strengthen local "seq"
25049         from rtx to rtx_insn *.
25050         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
25051         local "seq".
25052         (instantiate_virtual_regs): Likewise for local "insn".
25053         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
25054         (reorder_blocks_1): Likewise for param "insns" and local "insn".
25055         (expand_function_end): Likewise for locals "insn" and "seq".
25056         (epilogue_done): Likewise for local "insn".
25057         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
25058         "last", "trial".
25059         (reposition_prologue_and_epilogue_notes): Likewise for locals
25060         "insn", "last", "note", "first".
25061         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
25062         (pass_match_asm_constraints::execute): Likewise for local "insn".
25063
25064 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25065
25066         * output.h (final_scan_insn): Strengthen return type from rtx to
25067         rtx_insn *.
25068         (final_forward_branch_p): Likewise for param.
25069         (current_output_insn): Likewise for this global.
25070
25071         * final.c (rtx debug_insn): Likewise for this variable.
25072         (current_output_insn): Likewise.
25073         (get_attr_length_1): Rename param "insn" to "uncast_insn",
25074         adding "insn" back in as an rtx_insn * with a checked cast, so
25075         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
25076         first param.
25077         (compute_alignments): Strengthen local "label" from rtx to
25078         rtx_insn *.
25079         (shorten_branches): Rename param from "first" to "uncast_first",
25080         introducing a new local rtx_insn * "first" using a checked cast to
25081         effectively strengthen "first" from rtx to rtx_insn * without
25082         affecting the type signature.  Strengthen locals "insn", "seq",
25083         "next", "label" from rtx to rtx_insn *.
25084         (change_scope): Strengthen param "orig_insn" and local "insn" from
25085         rtx to rtx_insn *.
25086         (final_start_function): Rename param from "first" to "uncast_first",
25087         introducing a new local rtx_insn * "first" using a checked cast to
25088         effectively strengthen "first" from rtx to rtx_insn * without
25089         affecting the type signature.  Strengthen local "insn" from rtx to
25090         rtx_insn *.
25091         (dump_basic_block_info): Strengthen param "insn" from rtx to
25092         rtx_insn *.
25093         (final): Rename param from "first" to "uncast_first",
25094         introducing a new local rtx_insn * "first" using a checked cast to
25095         effectively strengthen "first" from rtx to rtx_insn * without
25096         affecting the type signature.  Strengthen locals "insn", "next"
25097         from rtx to rtx_insn *.
25098         (output_alternate_entry_point): Strengthen param "insn" from rtx to
25099         rtx_insn *.
25100         (call_from_call_insn): Strengthen param "insn" from rtx to
25101         rtx_call_insn *.
25102         (final_scan_insn): Rename param from "insn" to "uncast_insn",
25103         introducing a new local rtx_insn * "insn" using a checked cast to
25104         effectively strengthen "insn" from rtx to rtx_insn * without
25105         affecting the type signature.  Strengthen return type and locals
25106         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
25107         now-redundant checked cast to rtx_insn * from both invocations of
25108         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
25109         introducing a local "call_insn" for use when invoking
25110         call_from_call_insn.
25111         (notice_source_line): Strengthen param "insn" from rtx to
25112         rtx_insn *.
25113         (leaf_function_p): Likewise for local "insn".
25114         (final_forward_branch_p): Likewise.
25115         (leaf_renumber_regs): Likewise for param "first".
25116         (rest_of_clean_state): Likewise for locals "insn" and "next".
25117         (self_recursive_call_p): Likewise for param "insn".
25118         (collect_fn_hard_reg_usage): Likewise for local "insn".
25119         (get_call_fndecl): Likewise for param "insn".
25120         (get_call_cgraph_rtl_info): Likewise.
25121         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
25122         introducing a new local rtx_insn * "insn" using a checked cast to
25123         effectively strengthen "insn" from rtx to rtx_insn * without
25124         affecting the type signature.
25125
25126         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
25127         cast when assigning from param "insn" to current_output_insn.
25128         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
25129         so that we can assign it back to current_output_insn.
25130
25131 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
25132
25133         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
25134         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
25135         atmxt540s and atmxt540sreva devices.
25136         * config/avr/avr-tables.opt: Regenerate.
25137         * config/avr/t-multilib: Regenerate.
25138         * doc/avr-mmcu.texi: Regenerate.
25139
25140 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25141
25142         * expr.c (convert_move): Strengthen local "insns" from rtx to
25143         rtx_insn *.
25144         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
25145         "top_label" from rtx to rtx_code_label *.
25146         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
25147         rtx_insn *.
25148         (emit_single_push_insn): Likewise for locals "prev", "last".
25149         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
25150         to rtx_code_label *.
25151         (store_constructor): Likewise for locals "loop_start", "loop_end".
25152         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
25153         rtx_insn *.
25154         (expand_expr_real_2): Likewise.
25155         (expand_expr_real_1): Strengthen local "label" from rtx to
25156         rtx_code_label *.
25157
25158 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25159
25160         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
25161         from rtx to rtx_insn *.
25162         (store_bit_field_1): Likewise.
25163         (extract_bit_field_1): Likewise.
25164         (expand_mult_const): Likewise for local "insns".
25165         (expmed_mult_highpart): Strengthen local "label" from rtx to
25166         rtx_code_label *.
25167         (expand_smod_pow2): Likewise.
25168         (expand_sdiv_pow2): Likewise.
25169         (expand_divmod): Strengthen locals "last", "insn" from rtx to
25170         rtx_insn *.  Strengthen locals "label", "label1", "label2",
25171         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
25172         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
25173         (emit_store_flag): Likewise.
25174         (emit_store_flag_force): Strengthen local "label" from rtx to
25175         rtx_code_label *.
25176         (do_cmp_and_jump): Likewise for param "label".
25177
25178 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25179
25180         * explow.c (force_reg): Strengthen local "insn" from rtx to
25181         rtx_insn *.
25182         (adjust_stack_1): Likewise.
25183         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
25184         "final_label", "available_label", "space_available" from rtx to
25185         rtx_code_label *.
25186         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
25187         (anti_adjust_stack_and_probe): Likewise.
25188
25189 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25190
25191         * except.h (sjlj_emit_function_exit_after): Strengthen param
25192         "after" from rtx to rtx_insn *.  This is only called with
25193         result of get_last_insn (in function.c) so type-change should be
25194         self-contained.
25195
25196         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
25197         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
25198         to rtx_insn *.  These fields are only used from except.c so this
25199         type-change should be self-contained to this patch.
25200
25201         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
25202         local "last" from rtx to rtx_insn *.
25203         (dw2_build_landing_pads): Likewise for local "seq".
25204         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
25205         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
25206         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
25207         rtx to rtx_insn *.
25208         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
25209         to rtx_insn *.
25210         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
25211         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
25212         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
25213         referring to an insn.  Strengthen local "dispatch_label" from
25214         rtx to rtx_code_label *.
25215         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
25216         rtx_insn *.
25217         (expand_eh_return): Strengthen local "around_label" from
25218         rtx to rtx_code_label *.
25219         (convert_to_eh_region_ranges): Strengthen locals "iter",
25220         "last_action_insn", "first_no_action_insn",
25221         "first_no_action_insn_before_switch",
25222         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
25223
25224 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25225
25226         * dwarf2out.c (last_var_location_insn): Strengthen this variable
25227         from rtx to rtx_insn *.
25228         (cached_next_real_insn): Likewise.
25229         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
25230         working with insns.
25231         (dwarf2out_var_location): Strengthen locals "next_real",
25232         "next_note", "expected_next_loc_note", "last_start", "insn" from
25233         rtx to rtx_insn *.
25234
25235 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25236
25237         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
25238         from rtx to rtx_insn *.
25239         (create_pseudo_cfg): Likewise for local "insn".
25240
25241 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25242
25243         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
25244         from rtx to rtx_insn *.
25245         (df_bb_regno_last_def_find): Likewise.
25246
25247         * df-problems.c (df_rd_bb_local_compute): Likewise.
25248         (df_lr_bb_local_compute): Likewise.
25249         (df_live_bb_local_compute): Likewise.
25250         (df_chain_remove_problem): Likewise.
25251         (df_chain_create_bb): Likewise.
25252         (df_word_lr_bb_local_compute): Likewise.
25253         (df_remove_dead_eq_notes): Likewise for param "insn".
25254         (df_note_bb_compute): Likewise for local "insn".
25255         (simulate_backwards_to_point): Likewise.
25256         (df_md_bb_local_compute): Likewise.
25257
25258         * df-scan.c (df_scan_free_bb_info): Likewise.
25259         (df_scan_start_dump): Likewise.
25260         (df_scan_start_block): Likewise.
25261         (df_install_ref_incremental): Likewise for local "insn".
25262         (df_insn_rescan_all): Likewise.
25263         (df_reorganize_refs_by_reg_by_insn): Likewise.
25264         (df_reorganize_refs_by_insn_bb): Likewise.
25265         (df_recompute_luids): Likewise.
25266         (df_bb_refs_record): Likewise.
25267         (df_update_entry_exit_and_calls): Likewise.
25268         (df_bb_verify): Likewise.
25269
25270 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25271
25272         * ddg.h (struct ddg_node): Strengthen fields "insn" and
25273         "first_note" from rtx to rtx_insn *.
25274         (get_node_of_insn): Likewise for param 2 "insn".
25275         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
25276
25277         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
25278         rtx_insn *.
25279         (mem_write_insn_p): Likewise.
25280         (mem_access_insn_p): Likewise.
25281         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
25282         (def_has_ccmode_p): Likewise for param "insn".
25283         (add_cross_iteration_register_deps): Likewise for locals
25284         "def_insn" and "use_insn".
25285         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
25286         (build_intra_loop_deps): Likewise for local "src_insn".
25287         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
25288         to rtx_insn *.
25289         (get_node_of_insn): Likewise for param "insn".
25290
25291 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25292
25293         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
25294         (deletable_insn_p): Strengthen param "insn" from rtx to
25295         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
25296         find_call_stack_args, since this is guarded by CALL_P (insn).
25297         (marked_insn_p): Strengthen param "insn" from rtx to
25298         rtx_insn *.
25299         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
25300         invoking find_call_stack_args, since this is guarded by
25301         CALL_P (insn).
25302         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
25303         rtx_insn *; we know this is an insn since this was called by
25304         mark_nonreg_stores.
25305         (mark_nonreg_stores_2): Likewise.
25306         (mark_nonreg_stores): Strengthen param "insn" from rtx to
25307         rtx_insn *.
25308         (find_call_stack_args): Strengthen param "call_insn" from rtx to
25309         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
25310         to rtx_insn *.
25311         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
25312         from rtx to rtx_insn *.
25313         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
25314         "next", "ref_insn".
25315         (delete_unmarked_insns): Likewise for locals "insn", "next".
25316         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
25317         (mark_reg_dependencies): Likewise for param "insn".
25318         (rest_of_handle_ud_dce): Likewise for local "insn".
25319         (word_dce_process_block): Likewise.
25320         (dce_process_block): Likewise.
25321
25322 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25323
25324         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
25325         from rtx to rtx_insn *.
25326         (struct change_cc_mode_args): Likewise for field "insn".
25327         (this_insn): Strengthen from rtx to rtx_insn *.
25328         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
25329         with insn.
25330         (validate_canon_reg): Strengthen param "insn" from rtx to
25331         rtx_insn *.
25332         (canon_reg): Likewise.
25333         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
25334         dealing with insn.
25335         (record_jump_equiv): Strengthen param "insn" from rtx to
25336         rtx_insn *.
25337         (try_back_substitute_reg): Likewise, also for locals "prev",
25338         "bb_head".
25339         (find_sets_in_insn): Likewise for param "insn".
25340         (canonicalize_insn): Likewise.
25341         (cse_insn): Likewise.  Add a checked cast.
25342         (invalidate_from_clobbers): Likewise for param "insn".
25343         (invalidate_from_sets_and_clobbers): Likewise.
25344         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
25345         dealing with insn.
25346         (cse_prescan_path): Strengthen local "insn" from rtx to
25347         rtx_insn *.
25348         (cse_extended_basic_block): Likewise for locals "insn" and
25349         "prev_insn".
25350         (cse_main): Likewise for param "f".
25351         (check_for_label_ref): Likewise for local "insn".
25352         (set_live_p): Likewise for second param ("insn").
25353         (insn_live_p): Likewise for first param ("insn") and for local
25354         "next".
25355         (cse_change_cc_mode_insn): Likewise for first param "insn".
25356         (cse_change_cc_mode_insns): Likewise for first and second params
25357         "start" and "end".
25358         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
25359         and "end".
25360         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
25361         "cc_src_insn".
25362
25363 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25364             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25365             Anna Tikhonova  <anna.tikhonova@intel.com>
25366             Ilya Tocar  <ilya.tocar@intel.com>
25367             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25368             Ilya Verbin  <ilya.verbin@intel.com>
25369             Kirill Yukhin  <kirill.yukhin@intel.com>
25370             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25371
25372         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
25373         New.
25374         * config/i386/sse.md
25375         (define_mode_iterator VI248_AVX2): Delete.
25376         (define_mode_iterator VI2_AVX2_AVX512BW): New.
25377         (define_mode_iterator VI48_AVX2): Ditto.
25378         (define_insn <shift_insn><mode>3): Delete.
25379         (define_insn "<shift_insn><mode>3<mask_name>" with
25380         VI2_AVX2_AVX512BW): New.
25381         (define_insn "<shift_insn><mode>3<mask_name>" with
25382         VI48_AVX2): Ditto.
25383
25384 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25385             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25386             Anna Tikhonova  <anna.tikhonova@intel.com>
25387             Ilya Tocar  <ilya.tocar@intel.com>
25388             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25389             Ilya Verbin  <ilya.verbin@intel.com>
25390             Kirill Yukhin  <kirill.yukhin@intel.com>
25391             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25392
25393         * config/i386/sse.md
25394         (define_mode_iterator VI4F_BRCST32x2): New.
25395         (define_mode_attr 64x2_mode): Ditto.
25396         (define_mode_attr 32x2mode): Ditto.
25397         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
25398         with VI4F_BRCST32x2): Ditto.
25399         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
25400         with V16FI mode iterator): Ditto.
25401         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
25402         with V16FI): Ditto.
25403         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
25404         with VI8F_BRCST64x2): Ditto.
25405
25406 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25407             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25408             Anna Tikhonova  <anna.tikhonova@intel.com>
25409             Ilya Tocar  <ilya.tocar@intel.com>
25410             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25411             Ilya Verbin  <ilya.verbin@intel.com>
25412             Kirill Yukhin  <kirill.yukhin@intel.com>
25413             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25414
25415         * config/i386/sse.md
25416         (define_mode_iterator VI8_AVX512VL): New.
25417         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
25418
25419 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
25420
25421         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
25422         (define_mode_iterator V48_AVX512VL): New.
25423         (define_mode_iterator V12_AVX512VL): Ditto.
25424         (define_insn <avx512>_load<mode>_mask): Split into two similar
25425         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
25426         Refactor output template.
25427         (define_insn "<avx512>_store<mode>_mask"): Ditto.
25428
25429 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25430
25431         * cprop.c (struct occr): Strengthen field "insn" from rtx to
25432         rtx_insn *.
25433         (reg_available_p): Likewise for param "insn".
25434         (insert_set_in_table): Likewise.
25435         (hash_scan_set): Likewise.
25436         (hash_scan_insn): Likewise.
25437         (make_set_regs_unavailable): Likewise.
25438         (compute_hash_table_work): Likewise for local "insn".
25439         (reg_not_set_p): Strengthen param "insn" from const_rtx to
25440         const rtx_insn *.
25441         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
25442         (try_replace_reg): Likewise.
25443         (find_avail_set): Likewise.
25444         (cprop_jump): Likewise for params "setcc", "jump".
25445         (constprop_register): Likewise for param "insn".
25446         (cprop_insn): Likewise.
25447         (do_local_cprop): Likewise.
25448         (local_cprop_pass): Likewise for local "insn".
25449         (bypass_block): Likewise for params "setcc" and "jump".
25450         (bypass_conditional_jumps): Likewise for locals "setcc" and
25451         "insn".
25452         (one_cprop_pass): Likewise for local "insn".
25453
25454 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25455
25456         * compare-elim.c (struct comparison_use): Strengthen field "insn"
25457         from rtx to rtx_insn *.
25458         (struct comparison): Likewise, also for field "prev_clobber".
25459         (conforming_compare): Likewise for param "insn".
25460         (arithmetic_flags_clobber_p): Likewise.
25461         (find_flags_uses_in_insn): Likewise.
25462         (find_comparison_dom_walker::before_dom_children): Likewise for
25463         locals "insn", "next", "last_clobber".
25464         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
25465
25466 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25467
25468         * combine-stack-adj.c (struct csa_reflist): Strengthen field
25469         "insn" from rtx to rtx_insn *.
25470         (single_set_for_csa): Likewise for param "insn".
25471         (record_one_stack_ref): Likewise.
25472         (try_apply_stack_adjustment): Likewise.
25473         (struct record_stack_refs_data): Likewise for field "insn".
25474         (maybe_move_args_size_note): Likewise for params "last" and "insn".
25475         (prev_active_insn_bb): Likewise for return type and param "insn".
25476         (next_active_insn_bb): Likewise.
25477         (force_move_args_size_note): Likewise for params "prev" and "last"
25478         and locals "test", "next_candidate", "prev_candidate".
25479         (combine_stack_adjustments_for_block): Strengthen locals
25480         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
25481         rtx_insn *.
25482
25483 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25484
25485         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
25486         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
25487         (subst_insn): Likewise for this variable.
25488         (added_links_insn): Likewise.
25489         (struct insn_link): Likewise for field "insn".
25490         (alloc_insn_link): Likewise for param "insn".
25491         (struct undobuf): Likewise for field "other_insn".
25492         (find_single_use): Likewise for param "insn" and local "next".
25493         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
25494         (delete_noop_moves): Likewise for locals "insn", "next".
25495         (create_log_links): Likewise for locals "insn", "use_insn".
25496         Strengthen local "next_use" from rtx * to rtx_insn **.
25497         (insn_a_feeds_b): Likewise for params "a", "b".
25498         (combine_instructions): Likewise for param "f" and locals "insn",
25499         "next", "prev", "first", "last_combined_insn", "link", "link1",
25500         "temp".  Replace use of NULL_RTX with NULL when referring to
25501         insns.
25502         (setup_incoming_promotions): Likewise for param "first"
25503         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
25504         (can_combine_p): Likewise for params "insn", "i3", "pred",
25505         "pred2", "succ", "succ2" and for local "p".
25506         (combinable_i3pat): Likewise for param "i3".
25507         (cant_combine_insn_p): Likewise for param "insn".
25508         (likely_spilled_retval_p): Likewise.
25509         (adjust_for_new_dest): Likewise.
25510         (update_cfg_for_uncondjump): Likewise, also for local "insn".
25511         (try_combine): Likewise for return type and for params "i3", "i2",
25512         "i1", "i0", "last_combined_insn", and for locals "insn",
25513         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
25514         "i0_insn".  Eliminate local "tem" in favor of new locals
25515         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
25516         checked cast for now to rtx_insn * on the return type of
25517         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
25518         insns.
25519         (find_split_point): Strengthen param "insn" from rtx to
25520         rtx_insn *.
25521         (simplify_set): Likewise for local "other_insn".
25522         (recog_for_combine): Likewise for param "insn".
25523         (record_value_for_reg): Likewise.
25524         (record_dead_and_set_regs_1): Likewise for local
25525         "record_dead_insn".
25526         (record_dead_and_set_regs): Likewise for param "insn".
25527         (record_promoted_value): Likewise.
25528         (check_promoted_subreg): Likewise.
25529         (get_last_value_validate): Likewise.
25530         (reg_dead_at_p): Likewise.
25531         (move_deaths): Likewise for param "to_insn".
25532         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
25533         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
25534         in favor of new locals "tem_note" and "tem_insn", the latter being
25535         an rtx_insn *.
25536         (distribute_links): Strengthen locals "place", "insn" from rtx to
25537         rtx_insn *.
25538
25539 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25540
25541         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
25542         than a const_rtx.
25543         (can_delete_label_p): Require a const rtx_code_label * rather than
25544         a const_rtx.
25545         (delete_insn): Add checked cast to rtx_code_label * when we know
25546         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
25547         rtx to rtx_insn *.
25548         (delete_insn_chain): Strengthen locals "prev" and "current" from
25549         rtx to rtx_insn *.  Add a checked cast when assigning from
25550         "finish" (strengthening the params will come later).  Add a
25551         checked cast to rtx_note * in region where we know
25552         NOTE_P (current).
25553         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
25554         rtx_insn *.
25555         (compute_bb_for_insn): Likewise.
25556         (free_bb_for_insn): Likewise for local "insn".
25557         (compute_bb_for_insn): Likewise.
25558         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
25559         local "insn" from rtx to rtx_insn *
25560         (flow_active_insn_p): Require a const rtx_insn * rather than a
25561         const_rtx.
25562         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
25563         rtx_insn *.
25564         (can_fallthru): Likewise for locals "insn" and "insn2".
25565         (bb_note): Likewise for local "note".
25566         (first_insn_after_basic_block_note): Likewise for local "note" and
25567         for return type.
25568         (rtl_split_block): Likewise for locals "insn" and "next".
25569         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
25570         "end".
25571         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
25572         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
25573         "prev", "tmp".
25574         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
25575         them), "kill_from", "barrier", "new_insn".
25576         (patch_jump_insn): Likewise for params "insn", "old_label".
25577         (redirect_branch_edge): Likewise for locals "old_label", "insn".
25578         (force_nonfallthru_and_redirect): Likewise for locals "insn",
25579         "old_label", "new_label".
25580         (rtl_tidy_fallthru_edge): Likewise for local "q".
25581         (rtl_split_edge): Likewise for locals "before", "last".
25582         (commit_one_edge_insertion): Likewise for locals "before",
25583         "after", "insns", "tmp", "last", adding a checked cast where
25584         currently necessary.
25585         (commit_edge_insertions): Likewise.
25586         (rtl_dump_bb): Likewise for locals "insn", "last".
25587         (print_rtl_with_bb): Likewise for local "x".
25588         (rtl_verify_bb_insns): Likewise for local "x".
25589         (rtl_verify_bb_pointers): Likewise for local "insn".
25590         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
25591         "head", "end".
25592         (rtl_verify_fallthru): Likewise for local "insn".
25593         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
25594         (purge_dead_edges): Likewise for local "insn".
25595         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
25596         (skip_insns_after_block): Likewise for return type and for locals
25597         "insn", "last_insn", "next_head", "prev".
25598         (record_effective_endpoints): Likewise for locals "next_insn",
25599         "insn", "end".
25600         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
25601         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
25602         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
25603         (duplicate_insn_chain): For now, add checked cast from rtx to
25604         rtx_insn * when returning insn.
25605         (cfg_layout_duplicate_bb): Likewise for local "insn".
25606         (cfg_layout_delete_block): Likewise for locals "insn", "next",
25607         "prev", "remaints".
25608         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
25609         (rtl_block_empty_p): Likewise.
25610         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
25611         "split_point", "last".
25612         (rtl_block_ends_with_call_p): Likewise for local "insn".
25613         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
25614         const rtx_insn *.
25615         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
25616         "split_at_insn" from rtx to rtx_insn *.
25617         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
25618         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
25619         to const rtx_insn *.
25620         (rtl_account_profile_record): Likewise.
25621
25622 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25623
25624         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
25625         rtx to rtx_insn *.
25626         (average_num_loop_insns): Likewise.
25627         (init_set_costs): Likewise for local "seq".
25628         (seq_cost): Likewise for param "seq", from const_rtx to const
25629         rtx_insn *.
25630
25631 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25632
25633         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
25634         rtx to rtx_insn *.
25635
25636 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25637
25638         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
25639         "f1" and "f2" from rtx * to rtx_insn **.
25640         (flow_find_head_matching_sequence): Likewise.
25641
25642         * cfgcleanup.c (try_simplify_condjump): Strengthen local
25643         "cbranch_insn" from rtx to rtx_insn *.
25644         (thread_jump): Likewise for local "insn".
25645         (try_forward_edges): Likewise for local "last".
25646         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
25647         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
25648         "real_b_end".
25649         (can_replace_by): Likewise for params "i1", "i2".
25650         (old_insns_match_p): Likewise.
25651         (merge_notes): Likewise.
25652         (walk_to_nondebug_insn): Likewise for param "i1".
25653         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
25654         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
25655         "afterlast1", "afterlast2" from rtx to rtx_insn *.
25656         (flow_find_head_matching_sequence): Strengthen params "f1" and
25657         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
25658         "last1", "last2", "beforelast1", "beforelast2" from rtx to
25659         rtx_insn *.
25660         (outgoing_edges_match): Likewise for locals "last1", "last2".
25661         (try_crossjump_to_edge): Likewise for local "insn".
25662         Replace call to for_each_rtx with for_each_rtx_in_insn.
25663
25664         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
25665         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
25666         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
25667         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
25668         (try_optimize_cfg): Strengthen local "last" from rtx to
25669         rtx_insn *.
25670         (delete_dead_jumptables): Likewise for locals "insn", "next",
25671         "label".
25672
25673         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
25674         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
25675         "rtx else_first_tail", to reflect the basic-block.h changes above.
25676
25677 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25678
25679         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
25680         rtx_insn *.
25681         (purge_dead_tablejump_edges): Likewise.
25682         (find_bb_boundaries): Likewise for locals "insn", "end",
25683         "flow_transfer_insn".
25684
25685 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25686
25687         * caller-save.c (save_call_clobbered_regs): Strengthen locals
25688         "ins" and "prev" from rtx to rtx_insn *.
25689
25690 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25691
25692         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
25693         rtx_insn *.
25694         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
25695         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
25696         "scan_start".
25697         (load_register_parameters): Likewise for local "before_arg".
25698         (check_sibcall_argument_overlap): Likewise for param "insn".
25699         (expand_call): Likewise for locals "normal_call_insns",
25700         "tail_call_insns", "insns", "before_call", "after_args",
25701         "before_arg", "last", "prev".  Strengthen one of the "last" from
25702         rtx to rtx_call_insn *.
25703         (fixup_tail_calls): Strengthen local "insn" from rtx to
25704         rtx_insn *.
25705         (emit_library_call_value_1): Likewise for locals "before_call" and
25706         "last".
25707
25708 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25709
25710         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
25711         and "last" from rtx to rtx_insn *.
25712         (expand_builtin_nonlocal_goto): Likewise for local "insn".
25713         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
25714         rtx_call_insn *.
25715         (expand_errno_check): Strengthen local "lab" from rtx to
25716         rtx_code_label *.
25717         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
25718         rtx_insn *.
25719         (expand_builtin_mathfn_2): Likewise.
25720         (expand_builtin_mathfn_ternary): Likewise.
25721         (expand_builtin_mathfn_3): Likewise.
25722         (expand_builtin_interclass_mathfn): Likewise for local "last".
25723         (expand_builtin_int_roundingfn): Likewise for local "insns".
25724         (expand_builtin_int_roundingfn_2): Likewise.
25725         (expand_builtin_strlen): Likewise for local "before_strlen".
25726         (expand_builtin_strncmp): Likewise for local "seq".
25727         (expand_builtin_signbit): Likewise for local "last".
25728         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
25729         from rtx to rtx_code_label *.
25730         (expand_stack_restore):  Strengthen local "prev" from rtx to
25731         rtx_insn *.
25732
25733 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25734
25735         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
25736         to rtx_insn *.
25737         (struct btr_def_s): Likewise.
25738         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
25739         const rtx_insn *.
25740         (add_btr_def): Likewise.
25741         (new_btr_user): Likewise.
25742         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
25743         rtx to rtx_insn *.
25744         (link_btr_uses): Likewise.
25745         (move_btr_def): Likewise for locals "insp", "old_insn",
25746         "new_insn".  Add checked cast to rtx_insn * for now on result of
25747         gen_move_insn.
25748         (can_move_up): Strengthen param "insn" from const_rtx to
25749         const rtx_insn *.
25750
25751 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25752
25753         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
25754         rtx_insn *.
25755         (get_uncond_jump_length): Likewise for locals "label", "jump".
25756         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
25757         "jump", "insn".
25758         (add_labels_and_missing_jumps): Likewise for local "new_jump".
25759         (fix_up_fall_thru_edges): Likewise for local "old_jump".
25760         (find_jump_block): Likewise for local "insn".
25761         (fix_crossing_conditional_branches): Likewise for locals
25762         "old_jump", "new_jump".
25763         (fix_crossing_unconditional_branches): Likewise for locals
25764         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
25765         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
25766
25767 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25768
25769         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
25770         rtx to rtx_insn *.
25771         (struct mem_insn): Likewise for field "insn".
25772         (reg_next_use): Strengthen from rtx * to rtx_insn **.
25773         (reg_next_inc_use): Likewise.
25774         (reg_next_def): Likewise.
25775         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
25776         from rtx to rtx_insn *.
25777         (move_insn_before): Likewise for param "next_insn" and local "insns".
25778         (attempt_change): Likewise for local "mov_insn".
25779         (try_merge): Likewise for param "last_insn".
25780         (get_next_ref): Likewise for return type and local "insn".
25781         Strengthen param "next_array" from rtx * to rtx_insn **.
25782         (parse_add_or_inc): Strengthen param "insn" from rtx to
25783         rtx_insn *.
25784         (find_inc): Likewise for locals "insn" and "other_insn" (three of
25785         the latter).
25786         (merge_in_block): Likewise for locals "insn", "curr",
25787         "other_insn".
25788         (pass_inc_dec::execute): Update allocations of the arrays to
25789         reflect the stronger types.
25790
25791 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25792
25793         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
25794         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
25795         from rtx to rtx_code_label *.
25796
25797 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25798
25799         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
25800         to rtx_insn *.
25801
25802 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25803
25804         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
25805         generated a warning and prevented bootstrapping the compiler.
25806
25807 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25808
25809         * rtl.h (delete_related_insns): Strengthen return type from rtx to
25810         rtx_insn *.
25811
25812         * jump.c (delete_related_insns): Likewise, also for locals "next"
25813         and "prev".
25814
25815 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25816
25817         * genautomata.c (output_internal_insn_latency_func): When writing
25818         the function "internal_insn_latency" to insn-automata.c,
25819         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
25820         allowing the optional guard function of (define_bypass) clauses to
25821         expect a pair of rtx_insn *, rather than a pair of rtx.
25822         (output_insn_latency_func): When writing the function
25823         "insn_latency", add an "uncast_" prefix to params "insn" and
25824         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
25825         using checked casts from the params, thus enabling the above
25826         change to the generated "internal_insn_latency" function.
25827
25828 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
25829
25830         PR tree-optimization/62091
25831         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
25832         handle correctly arrays.
25833         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
25834         inheritance binfos.
25835         (record_known_type): Walk into inner type.
25836         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
25837         condition on no type changes.
25838
25839 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25840
25841         * genattrtab.c (write_attr_get): Within the generated get_attr_
25842         functions, rename param "insn" to "uncast_insn" and reintroduce
25843         "insn" as an local rtx_insn * using a checked cast, so that "insn"
25844         is an rtx_insn * within insn-attrtab.c
25845
25846 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25847
25848         * output.h (peephole): Strengthen return type from rtx to
25849         rtx_insn *.
25850         * rtl.h (delete_for_peephole): Likewise for both params.
25851         * genpeep.c (main): In generated "peephole" function, strengthen
25852         return type and local "insn" from rtx to rtx_insn *.  For now,
25853         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
25854         rtx_insn *, with a checked cast.
25855         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
25856         locals "insn", "next", "prev" from rtx to rtx_insn *.
25857
25858 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
25859
25860         PR tree-optimization/62112
25861         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
25862         * gimple-iterator.h (gsi_replace): Return bool.
25863         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
25864         moved from ref_may_alias_global_p.
25865         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
25866         New overloads.
25867         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
25868         (stmt_kills_ref_p_1): Rename...
25869         (stmt_kills_ref_p): ... to this.
25870         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
25871         stmt_kills_ref_p): Declare.
25872         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
25873         Move the self-assignment case...
25874         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
25875
25876 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25877
25878         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
25879
25880         * emit-rtl.c (try_split): Likewise, also for locals "before" and
25881         "after".  For now, don't strengthen param "trial", which requires
25882         adding checked casts when returning it.
25883
25884 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25885
25886         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
25887         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
25888         "var_location" hook from rtx to rtx_insn *.
25889         (debug_nothing_rtx): Delete in favor of...
25890         (debug_nothing_rtx_code_label): New prototype.
25891         (debug_nothing_rtx_rtx): Delete unused prototype.
25892         (debug_nothing_rtx_insn): New prototype.
25893
25894         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
25895         invoking debug_hooks->var_location (in two places, one in a NOTE
25896         case of a switch statement, the other guarded by a CALL_P
25897         conditional.  Add checked cast to rtx_code_label * when invoking
25898         debug_hooks->label (within CODE_LABEL case of switch statement).
25899
25900         * dbxout.c (dbx_debug_hooks): Update "label" hook from
25901         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
25902         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
25903         (xcoff_debug_hooks): Likewise.
25904         * debug.c (do_nothing_debug_hooks): Likewise.
25905         (debug_nothing_rtx): Delete in favor of...
25906         (debug_nothing_rtx_insn): New function.
25907         (debug_nothing_rtx_rtx): Delete unused function.
25908         (debug_nothing_rtx_code_label): New function.
25909         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
25910         debug_nothing_rtx to debug_nothing_rtx_code_label.
25911         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
25912         to rtx_insn *.
25913         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
25914         debug_nothing_rtx to debug_nothing_rtx_insn.
25915         (sdbout_label): Strengthen param "insn" from rtx to
25916         rtx_code_label *.
25917         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
25918         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
25919         "var_location" hook from debug_nothing_rtx to
25920         debug_nothing_rtx_insn.
25921
25922 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25923
25924         * recog.h (insn_output_fn): Update this function typedef to match
25925         the changes below to the generated output functions, strengthening
25926         the 2nd param from rtx to rtx_insn *.
25927
25928         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
25929         insn when invoking an output function, to match the new signature
25930         of insn_output_fn with a stronger second param.
25931
25932         * genconditions.c (write_header): In the generated code for
25933         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
25934         to match the other changes in this patch.
25935
25936         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
25937         the generated "gen_" functions from rtx to rtx_insn * within their
25938         implementations.
25939
25940         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
25941         the subfunctions within the generated "recog_", "split", "peephole2"
25942         function trees from rtx to rtx_insn *.  For now, the top-level
25943         generated functions ("recog", "split", "peephole2") continue to
25944         take a plain rtx for "insn", to avoid introducing dependencies on
25945         other patches.  Rename this 2nd param from "insn" to
25946         "uncast_insn", and reintroduce "insn" as a local variable of type
25947         rtx_insn *, initialized at the top of the generated function with
25948         a checked cast on "uncast_insn".
25949         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
25950         the generated "gen_" functions from rtx to rtx_insn * within their
25951         prototypes.
25952
25953         * genoutput.c (process_template): Strengthen the 2nd param within
25954         the generated "output_" functions "insn" from rtx to rtx_insn *.
25955
25956 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
25957
25958         * tree-profile.c (tree_profiling): Skip external functions
25959         when doing coverage instrumentation.
25960         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
25961
25962 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25963
25964         * config/rs6000/altivec.h (vec_cpsgn): New #define.
25965         (vec_mergee): Likewise.
25966         (vec_mergeo): Likewise.
25967         (vec_cntlz): Likewise.
25968         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
25969         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
25970         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
25971         VMRGEW, and VMRGOW.
25972         * doc/extend.texi: Document various forms of vec_cpsgn,
25973         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
25974         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
25975         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
25976         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
25977         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
25978
25979 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25980
25981         * config/rs6000/rs6000.c (context.h): New include.
25982         (tree-pass.h): Likewise.
25983         (make_pass_analyze_swaps): New decl.
25984         (rs6000_option_override): Register pass_analyze_swaps.
25985         (swap_web_entry): New subsclass of web_entry_base (df.h).
25986         (special_handling_values): New enum.
25987         (union_defs): New function.
25988         (union_uses): Likewise.
25989         (insn_is_load_p): Likewise.
25990         (insn_is_store_p): Likewise.
25991         (insn_is_swap_p): Likewise.
25992         (rtx_is_swappable_p): Likewise.
25993         (insn_is_swappable_p): Likewise.
25994         (chain_purpose): New enum.
25995         (chain_contains_only_swaps): New function.
25996         (mark_swaps_for_removal): Likewise.
25997         (swap_const_vector_halves): Likewise.
25998         (adjust_subreg_index): Likewise.
25999         (permute_load): Likewise.
26000         (permute_store): Likewise.
26001         (handle_special_swappables): Likewise.
26002         (replace_swap_with_copy): Likewise.
26003         (dump_swap_insn_table): Likewise.
26004         (rs6000_analyze_swaps): Likewise.
26005         (pass_data_analyze_swaps): New pass_data.
26006         (pass_analyze_swaps): New rtl_opt_pass.
26007         (make_pass_analyze_swaps): New function.
26008         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
26009
26010 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
26011
26012         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
26013         type from rtx to rtx_insn *.
26014         (create_copy_of_insn_rtx): Likewise.
26015         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
26016         (create_copy_of_insn_rtx): Likewise, also for local "res".
26017
26018 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
26019
26020         * rtl.h (find_first_parameter_load): Strengthen return type from
26021         rtx to rtx_insn *.
26022         * rtlanal.c (find_first_parameter_load): Strengthen return type
26023         from rtx to rtx_insn *.  Add checked cast for now, to postpone
26024         strengthening the params.
26025
26026 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26027
26028         PR fortran/44054
26029         * diagnostic.c: Set default caret.
26030         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
26031         line is needed.
26032         * diagnostic.h (struct diagnostic_context):
26033
26034 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
26035
26036         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
26037         (sel_bb_head): Strengthen return type insn_t (currently just an
26038         rtx) to rtx_insn *.
26039         (sel_bb_end): Likewise.
26040
26041         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
26042         (sel_bb_head): Strengthen return type and local "head" from
26043         insn_t (currently just an rtx) to rtx_insn *.
26044         (sel_bb_end): Likewise for return type.
26045         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
26046         working with insn.
26047
26048 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
26049
26050         * basic-block.h (get_last_bb_insn): Strengthen return type from
26051         rtx to rtx_insn *.
26052         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
26053         end".
26054
26055 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26056
26057         PR fortran/44054
26058         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
26059         to here ...
26060         (diagnostic_report_diagnostic): ... from here.
26061         * toplev.c (general_init): Move code to c-family.
26062
26063 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26064
26065         * df.h (web_entry_base): Replace existing struct web_entry with a
26066         new class web_entry_base with only the predecessor member.
26067         (unionfind_root): Remove declaration and move to class member.
26068         (unionfind_union): Remove declaration and move to friend
26069         function.
26070         (union_defs): Remove declaration.
26071         * web.c (web_entry_base::unionfind_root): Modify to be member
26072         function and adjust accessors.
26073         (unionfind_union): Modify to be friend function and adjust
26074         accessors.
26075         (web_entry): New subclass of web_entry_base containing the reg
26076         member.
26077         (union_match_dups): Modify for struct -> class changes.
26078         (union_defs): Likewise.
26079         (entry_register): Likewise.
26080         (pass_web::execute): Likewise.
26081
26082 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
26083
26084         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
26085         builtin define __VEC_ELEMENT_REG_ORDER__.
26086
26087 2014-08-20  Martin Jambor  <mjambor@suse.cz>
26088             Wei Mi  <wmi@google.com>
26089
26090         PR ipa/60449
26091         PR middle-end/61776
26092         * tree-ssa-operands.c (update_stmt_operands): Remove
26093         MODIFIED_NORETURN_CALLS.
26094         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
26095         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
26096         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
26097         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
26098         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
26099         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
26100         (gimple_call_set_ctrl_altering): New func.
26101         (gimple_call_ctrl_altering_p): Ditto.
26102         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
26103         (make_blocks): Use gimple_call_initialize_ctrl_altering.
26104         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
26105         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
26106         remove MODIFIED_NORETURN_CALLS.
26107
26108 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
26109
26110         * coverage.c (coverage_compute_profile_id): Return non-0;
26111         also handle symbols with unique name.
26112         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
26113
26114 2014-08-20  Steve Ellcey  <sellcey@mips.com>
26115
26116         PR middle-end/49191
26117         * doc/sourcebuild.texi (non_strict_align): New.
26118
26119 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
26120
26121         * cgraphunit.c (ipa_passes, compile): Reshedule
26122         symtab_remove_unreachable_nodes passes; update comments.
26123         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
26124         TODO_remove_functions before the pass; the functions ought to be
26125         already removed.
26126         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
26127         TODO_remove_functions.
26128         * passes.c (pass_data_early_local_passes): Do not schedule function
26129         removal.
26130         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
26131
26132 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26133
26134         PR c/59304
26135         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
26136         before setting the option.
26137         * diagnostic.c (diagnostic_classify_diagnostic): Record
26138         command-line status.
26139
26140 2014-08-20  Richard Biener  <rguenther@suse.de>
26141
26142         PR lto/62190
26143         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
26144         to build uint{16,32,64}_type_node.
26145
26146 2014-08-20  Terry Guo  <terry.guo@arm.com>
26147
26148         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
26149         with immediate_operand.
26150
26151 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
26152
26153         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
26154         "insn" from an as_a to a safe_as_a, for the case when "insn" is
26155         NULL.
26156
26157 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26158
26159         PR preprocessor/51303
26160         * incpath.c (remove_duplicates): Use cpp_warning.
26161
26162 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26163
26164         PR c/60975
26165         PR c/53063
26166         * doc/options.texi (CPP): Document it.
26167         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
26168         * optc-gen.awk: Handle CPP.
26169         * opth-gen.awk: Likewise.
26170
26171 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26172
26173         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
26174         rtx_insn *.
26175         (duplicate_insn_chain): Likewise.
26176         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
26177         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
26178         checked cast for now (until we can strengthen the params in the
26179         same way).
26180         (duplicate_insn_chain): Likewise.
26181
26182 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26183
26184         * rtl.h (next_cc0_user): Strengthen return type from rtx to
26185         rtx_insn *.
26186         (prev_cc0_setter): Likewise.
26187
26188         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
26189         rtx_insn *, adding checked casts for now as necessary.
26190         (prev_cc0_setter): Likewise.
26191
26192 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26193
26194         * expr.h (emit_move_insn): Strengthen return type from rtx to
26195         rtx_insn *.
26196         (emit_move_insn_1): Likewise.
26197         (emit_move_complex_push): Likewise.
26198         (emit_move_complex_parts): Likewise.
26199
26200         * expr.c (emit_move_via_integer): Strengthen return type from rtx
26201         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
26202         with insns.
26203         (emit_move_complex_push): Strengthen return type from rtx to
26204         rtx_insn *.
26205         (emit_move_complex): Likewise, also for local "ret".
26206         (emit_move_ccmode): Likewise.
26207         (emit_move_multi_word): Likewise for return type and locals
26208         "last_insn", "seq".
26209         (emit_move_insn_1): Likewise for return type and locals "result",
26210         "ret".
26211         (emit_move_insn): Likewise for return type and local "last_insn".
26212         (compress_float_constant): Likewise.
26213
26214 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26215
26216         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
26217         from rtx to rtx_insn *.
26218
26219         * rtl.h (emit_insn_before): Likewise.
26220         (emit_insn_before_noloc): Likewise.
26221         (emit_insn_before_setloc): Likewise.
26222         (emit_jump_insn_before): Likewise.
26223         (emit_jump_insn_before_noloc): Likewise.
26224         (emit_jump_insn_before_setloc): Likewise.
26225         (emit_call_insn_before): Likewise.
26226         (emit_call_insn_before_noloc): Likewise.
26227         (emit_call_insn_before_setloc): Likewise.
26228         (emit_debug_insn_before): Likewise.
26229         (emit_debug_insn_before_noloc): Likewise.
26230         (emit_debug_insn_before_setloc): Likewise.
26231         (emit_label_before): Likewise.
26232         (emit_insn_after): Likewise.
26233         (emit_insn_after_noloc): Likewise.
26234         (emit_insn_after_setloc): Likewise.
26235         (emit_jump_insn_after): Likewise.
26236         (emit_jump_insn_after_noloc): Likewise.
26237         (emit_jump_insn_after_setloc): Likewise.
26238         (emit_call_insn_after): Likewise.
26239         (emit_call_insn_after_noloc): Likewise.
26240         (emit_call_insn_after_setloc): Likewise.
26241         (emit_debug_insn_after): Likewise.
26242         (emit_debug_insn_after_noloc): Likewise.
26243         (emit_debug_insn_after_setloc): Likewise.
26244         (emit_label_after): Likewise.
26245         (emit_insn): Likewise.
26246         (emit_debug_insn): Likewise.
26247         (emit_jump_insn): Likewise.
26248         (emit_call_insn): Likewise.
26249         (emit_label): Likewise.
26250         (gen_clobber): Likewise.
26251         (emit_clobber): Likewise.
26252         (gen_use): Likewise.
26253         (emit_use): Likewise.
26254         (emit): Likewise.
26255
26256         (emit_barrier_before): Strengthen return type from rtx to
26257         rtx_barrier *.
26258         (emit_barrier_after): Likewise.
26259         (emit_barrier): Likewise.
26260
26261         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
26262         from rtx to rtx_insn *.  Add checked casts for now when converting
26263         "last" from rtx to rtx_insn *.
26264         (emit_insn_before_noloc): Likewise for return type.
26265         (emit_jump_insn_before_noloc): Likewise.
26266         (emit_call_insn_before_noloc): Likewise.
26267         (emit_debug_insn_before_noloc): Likewise.
26268         (emit_barrier_before): Strengthen return type and local "insn"
26269         from rtx to rtx_barrier *.
26270         (emit_label_before): Strengthen return type from rtx to
26271         rtx_insn *.  Add checked cast for now when returning param
26272         (emit_pattern_after_noloc): Strengthen return type from rtx to
26273         rtx_insn *.  Add checked casts for now when converting "last" from
26274         rtx to rtx_insn *.
26275         (emit_insn_after_noloc): Strengthen return type from rtx to
26276         rtx_insn *.
26277         (emit_jump_insn_after_noloc): Likewise.
26278         (emit_call_insn_after_noloc): Likewise.
26279         (emit_debug_insn_after_noloc): Likewise.
26280         (emit_barrier_after): Strengthen return type from rtx to
26281         rtx_barrier *.
26282         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
26283         Add checked cast for now when converting "label" from rtx to
26284         rtx_insn *.
26285         (emit_pattern_after_setloc): Strengthen return type from rtx to
26286         rtx_insn *.  Add checked casts for now when converting "last" from
26287         rtx to rtx_insn *.
26288         (emit_pattern_after): Strengthen return type from rtx to
26289         rtx_insn *.
26290         (emit_insn_after_setloc): Likewise.
26291         (emit_insn_after): Likewise.
26292         (emit_jump_insn_after_setloc): Likewise.
26293         (emit_jump_insn_after): Likewise.
26294         (emit_call_insn_after_setloc): Likewise.
26295         (emit_call_insn_after): Likewise.
26296         (emit_debug_insn_after_setloc): Likewise.
26297         (emit_debug_insn_after): Likewise.
26298         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
26299         when converting "last" from rtx to rtx_insn *.
26300         (emit_pattern_before): Strengthen return type from rtx to
26301         rtx_insn *.
26302         (emit_insn_before_setloc): Likewise.
26303         (emit_insn_before): Likewise.
26304         (emit_jump_insn_before_setloc): Likewise.
26305         (emit_jump_insn_before): Likewise.
26306         (emit_call_insn_before_setloc): Likewise.
26307         (emit_call_insn_before): Likewise.
26308         (emit_debug_insn_before_setloc): Likewise.
26309         (emit_debug_insn_before): Likewise.
26310         (emit_insn): Strengthen return type and locals "last", "insn",
26311         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
26312         within cases where we know we have an insn.
26313         (emit_debug_insn): Likewise.
26314         (emit_jump_insn): Likewise.
26315         (emit_call_insn): Strengthen return type and local "insn" from rtx
26316         to rtx_insn *.
26317         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
26318         a checked cast to rtx_insn * for now on "label".
26319         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
26320         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
26321         (emit_use): Likewise.
26322         (gen_use): Likewise, also for local "seq".
26323         (emit): Likewise for return type and local "insn".
26324         (rtx_insn): Likewise for return type and local "new_rtx".
26325
26326         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
26327         from rtx to rtx_barrier *.
26328
26329         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
26330         changed return type from rtx to rtx_insn *, we must update
26331         "emit_fn" type, and this in turn means updating...
26332         (frame_insn): ...this.  Strengthen return type from rtx to
26333         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
26334
26335 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26336
26337         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
26338         rtx to rtx_jump_table_data *.  Also for local.
26339         * rtl.h (emit_jump_table_data): Likewise.
26340
26341 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26342
26343         * basic-block.h (create_basic_block_structure): Strengthen third
26344         param "bb_note" from rtx to rtx_note *.
26345         * rtl.h (emit_note_before): Strengthen return type from rtx to
26346         rtx_note *.
26347         (emit_note_after): Likewise.
26348         (emit_note): Likewise.
26349         (emit_note_copy): Likewise.  Also, strengthen param similarly.
26350         * function.h (struct rtl_data): Strengthen field
26351         "x_stack_check_probe_note" from rtx to rtx_note *.
26352
26353         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
26354         from rtx to rtx_note *.
26355         * cfgrtl.c (create_basic_block_structure): Strengthen third param
26356         "bb_note" from rtx to rtx_note *.
26357         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
26358         when calling emit_note_copy.
26359         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
26360         rtx_note *.
26361         (emit_note_after): Likewise.
26362         (emit_note_before): Likewise.
26363         (emit_note_copy): Likewise.  Also, strengthen param similarly.
26364         (emit_note): Likewise.
26365         * except.c (emit_note_eh_region_end): Likewise for return type.
26366         Strengthen local "next" from rtx to rtx_insn *.
26367         (convert_to_eh_region_ranges): Strengthen local "note"
26368         from rtx to rtx_note *.
26369         * final.c (change_scope): Likewise.
26370         (reemit_insn_block_notes): Likewise, for both locals named "note".
26371         Also, strengthen local "insn" from rtx to rtx_insn *.
26372         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
26373         rtx to rtx_note *.
26374         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
26375         strengthen local "seq" from rtx to rtx_insn *.
26376         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
26377         to rtx_note *.
26378         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
26379         vec<rtx_note *>.
26380         (get_bb_note_from_pool): Strengthen return type from rtx to
26381         rtx_note *.
26382         (sel_create_basic_block): Strengthen local "new_bb_note" from
26383         insn_t to rtx_note *.
26384         * var-tracking.c (emit_note_insn_var_location): Strengthen local
26385         "note" from rtx to rtx_note *.
26386         (emit_notes_in_bb): Likewise.
26387
26388 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26389
26390         * function.h (struct rtl_data): Strengthen field
26391         "x_parm_birth_insn" from rtx to rtx_insn *.
26392         * function.c (struct assign_parm_data_all): Strengthen fields
26393         "first_conversion_insn" and "last_conversion_insn" from rtx to
26394         rtx_insn *.
26395
26396 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26397
26398         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
26399         to rtx_insn *; also for local "var_end_seq".
26400         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
26401         (maybe_cleanup_end_of_block): Likewise for param "last" and local
26402         "insn".
26403         (expand_gimple_cond): Likewise for locals "last2" and "last".
26404         (mark_transaction_restart_calls): Likewise for local "insn".
26405         (expand_gimple_stmt): Likewise for return type and locals "last"
26406         and "insn".
26407         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
26408         (avoid_complex_debug_insns): Likewise for param "insn".
26409         (expand_debug_locations): Likewise for locals "insn", "last",
26410         "prev_insn" and "insn2".
26411         (expand_gimple_basic_block): Likewise for local "last".
26412         (construct_exit_block): Likewise for locals "head", "end",
26413         "orig_end".
26414         (pass_expand::execute): Likewise for locals "var_seq",
26415         "var_ret_seq", "next".
26416
26417 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26418
26419         * asan.h (asan_emit_stack_protection): Strengthen return type from
26420         rtx to rtx_insn *.
26421         * asan.c (asan_emit_stack_protection): Likewise.  Add local
26422         "insns" to hold the return value.
26423
26424 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26425
26426         * basic-block.h (bb_note): Strengthen return type from rtx to
26427         rtx_note *.
26428         * sched-int.h (bb_note): Likewise.
26429         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
26430
26431 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26432
26433         * rtl.h (make_insn_raw): Strengthen return type from rtx to
26434         rtx_insn *.
26435
26436         * emit-rtl.c (make_insn_raw): Strengthen return type and local
26437         "insn" from rtx to rtx_insn *.
26438         (make_debug_insn_raw): Strengthen return type from rtx to
26439         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
26440         (make_jump_insn_raw):  Strengthen return type from rtx to
26441         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
26442         (make_call_insn_raw):  Strengthen return type from rtx to
26443         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
26444         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
26445         callback from rtx to rtx_insn *; likewise for local "insn" and
26446         "next", adding a checked cast to rtx_insn in the relevant cases of
26447         the switch statement.
26448         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
26449         callback from rtx to rtx_insn *.
26450         (emit_pattern_after_setloc): Likewise.
26451         (emit_pattern_after): Likewise.
26452         (emit_pattern_before_setloc): Likewise.
26453         (emit_pattern_before): Likewise.
26454
26455 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26456
26457         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
26458         rtx_call_insn *.
26459         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
26460         accepting an rtx_insn *.
26461         (last_call_insn): Strengthen return type from rtx to
26462         rtx_call_insn *.
26463
26464 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26465
26466         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
26467         "insns" from rtx to rtx_insn *.
26468         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
26469         locals "insn" and "prev".
26470
26471 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26472
26473         * rtl.h (tablejump_p): Strengthen third param from rtx * to
26474         rtx_jump_table_data **.
26475
26476         * cfgbuild.c (make_edges): Introduce local "table", using it in
26477         place of "tmp" for jump table data.
26478         (find_bb_boundaries): Strengthen local "table" from rtx to
26479         rtx_jump_table_data *.
26480         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
26481         (outgoing_edges_match): Likewise for locals "table1" and "table2".
26482         (try_crossjump_to_edge): Likewise.
26483         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
26484         "table".
26485         (patch_jump_insn): Introduce local "table", using it in place of
26486         "tmp" for jump table data.
26487         (force_nonfallthru_and_redirect): Introduce local "table", so that
26488         call to tablejump_p can receive an rtx_jump_table_data **.  Update
26489         logic around the call to overwrite "note" appropriately if
26490         tablejump_p returns non-zero.
26491         (get_last_bb_insn): Introduce local "table", using it in place of
26492         "tmp" for jump table data.
26493         * dwarf2cfi.c (create_trace_edges): Likewise.
26494
26495         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
26496         from rtx to rtx_jump_table_data *.
26497         (create_fix_barrier): Strengthen local "tmp" from rtx to
26498         rtx_jump_table_data *.
26499         (arm_reorg): Likewise for local "table".
26500
26501         * config/s390/s390.c (s390_chunkify_start): Likewise.
26502
26503         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
26504
26505         * jump.c (delete_related_insns): Strengthen local "lab_next" from
26506         rtx to rtx_jump_table_data *.
26507
26508         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
26509         rtx_jump_table_data **.  Add a checked cast when writing through
26510         the pointer: we know there that local "table" is non-NULL and that
26511         JUMP_TABLE_DATA_P (table) holds.
26512         (label_is_jump_target_p): Introduce local "table", using it in
26513         place of "tmp" for jump table data.
26514
26515 2014-08-19  Marek Polacek  <polacek@redhat.com>
26516
26517         PR c++/62153
26518         * doc/invoke.texi: Document -Wbool-compare.
26519
26520 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26521
26522         * rtl.h (entry_of_function): Strengthen return type from rtx to
26523         rtx_insn *.
26524         * cfgrtl.c (entry_of_function): Likewise.
26525
26526 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26527
26528         * emit-rtl.h (get_insns): Strengthen return type from rtx to
26529         rtx_insn *, adding a checked cast for now.
26530         (get_last_insn): Likewise.
26531
26532 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26533
26534         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
26535         rtx_code_label *.
26536
26537         * emit-rtl.c (gen_label_rtx): Likewise.
26538
26539 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26540
26541         * rtl.h (previous_insn): Strengthen return type from rtx to
26542         rtx_insn *.
26543         (next_insn): Likewise.
26544         (prev_nonnote_insn): Likewise.
26545         (prev_nonnote_insn_bb): Likewise.
26546         (next_nonnote_insn): Likewise.
26547         (next_nonnote_insn_bb): Likewise.
26548         (prev_nondebug_insn): Likewise.
26549         (next_nondebug_insn): Likewise.
26550         (prev_nonnote_nondebug_insn): Likewise.
26551         (next_nonnote_nondebug_insn): Likewise.
26552         (prev_real_insn): Likewise.
26553         (next_real_insn): Likewise.
26554         (prev_active_insn): Likewise.
26555         (next_active_insn): Likewise.
26556
26557         * emit-rtl.c (next_insn): Strengthen return type from rtx to
26558         rtx_insn *, adding a checked cast.
26559         (previous_insn): Likewise.
26560         (next_nonnote_insn): Likewise.
26561         (next_nonnote_insn_bb): Likewise.
26562         (prev_nonnote_insn): Likewise.
26563         (prev_nonnote_insn_bb): Likewise.
26564         (next_nondebug_insn): Likewise.
26565         (prev_nondebug_insn): Likewise.
26566         (next_nonnote_nondebug_insn): Likewise.
26567         (prev_nonnote_nondebug_insn): Likewise.
26568         (next_real_insn): Likewise.
26569         (prev_real_insn): Likewise.
26570         (next_active_insn): Likewise.
26571         (prev_active_insn): Likewise.
26572
26573         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
26574         param "stepfunc" so that it returns an rtx_insn * rather than an
26575         rtx, to track the change to prev_nonnote_insn_bb, which is the
26576         only function this is called with.
26577         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
26578
26579 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
26580
26581         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
26582         assert.
26583
26584 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26585
26586         * coretypes.h (class rtx_debug_insn): Add forward declaration.
26587         (class rtx_nonjump_insn): Likewise.
26588         (class rtx_jump_insn): Likewise.
26589         (class rtx_call_insn): Likewise.
26590         (class rtx_jump_table_data): Likewise.
26591         (class rtx_barrier): Likewise.
26592         (class rtx_code_label): Likewise.
26593         (class rtx_note): Likewise.
26594
26595         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
26596         adding the invariant DEBUG_INSN_P (X).
26597         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
26598         the invariant NONJUMP_INSN_P (X).
26599         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
26600         the invariant JUMP_P (X).
26601         (class rtx_call_insn): New, a subclass of rtx_insn, adding
26602         the invariant CALL_P (X).
26603         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
26604         invariant JUMP_TABLE_DATA_P (X).
26605         (class rtx_barrier): New, a subclass of rtx_insn, adding the
26606         invariant BARRIER_P (X).
26607         (class rtx_code_label): New, a subclass of rtx_insn, adding
26608         the invariant LABEL_P (X).
26609         (class rtx_note): New, a subclass of rtx_insn, adding
26610         the invariant NOTE_P(X).
26611         (is_a_helper <rtx_debug_insn *>::test): New.
26612         (is_a_helper <rtx_nonjump_insn *>::test): New.
26613         (is_a_helper <rtx_jump_insn *>::test): New.
26614         (is_a_helper <rtx_call_insn *>::test): New.
26615         (is_a_helper <rtx_jump_table_data *>::test): New functions,
26616         overloaded for both rtx and rtx_insn *.
26617         (is_a_helper <rtx_barrier *>::test): New.
26618         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
26619         for both rtx and rtx_insn *.
26620         (is_a_helper <rtx_note *>::test): New.
26621
26622 2014-08-19  Marek Polacek  <polacek@redhat.com>
26623
26624         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
26625         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
26626         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
26627         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
26628
26629 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26630
26631         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
26632         rtx_insn *.  To help with transition, for now, convert from an
26633         access macro into a pair of functions: BND_TO, returning an
26634         rtx_insn *, and...
26635         (SET_BND_TO): New function, for use where BND_TO is used as an
26636         lvalue.
26637
26638         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
26639         SET_BND_TO.
26640         (BND_TO): New function, adding a checked cast.
26641         (SET_BND_TO): New function.
26642
26643         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
26644         SET_BND_TO.
26645         (compute_av_set_on_boundaries): Likewise.
26646
26647 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26648
26649         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
26650         destination if it is used in source.
26651         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
26652         (*popcount<mode>2_falsedep_1): Likewise.
26653
26654 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26655
26656         PR other/62168
26657         * configure.ac: Set install_gold_as_default to no first.
26658         * configure: Regenerated.
26659
26660 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26661
26662         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
26663         "note_list" field will eventually be an rtx_insn *.  To help with
26664         transition, for now, convert from an access macro into a pair of
26665         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
26666         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
26667         used as an lvalue.
26668
26669         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
26670         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
26671
26672         * sel-sched-ir.c (init_bb): Likewise.
26673         (sel_restore_notes): Likewise.
26674         (move_bb_info): Likewise.
26675         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
26676         (SET_BB_NOTE_LIST): New function.
26677
26678 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26679
26680         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
26681         field will eventually be an rtx_insn *.  To help with transition,
26682         for now, convert from an access macro into a pair of functions:
26683         VINSN_INSN_RTX, returning an rtx_insn *, and...
26684         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
26685         is used as an lvalue.
26686
26687         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
26688         SET_VINSN_INSN_RTX where it's used as an lvalue.
26689         (VINSN_INSN_RTX): New function.
26690         (SET_VINSN_INSN_RTX): New function.
26691
26692 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26693
26694         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
26695         eventually be rtx_insn *, but to help with transition, for now,
26696         convert from an access macro into a pair of functions: DEP_PRO
26697         returning an rtx_insn * and...
26698         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
26699         lvalue, returning an rtx&.
26700         (DEP_CON): Analogous changes to DEP_PRO above.
26701         (SET_DEP_CON): Likewise.
26702
26703         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
26704         an lvalue to SET_DEP_CON.
26705         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
26706         (sd_copy_back_deps): Likewise for DEP_CON.
26707         (DEP_PRO): New function, adding a checked cast for now.
26708         (DEP_CON): Likewise.
26709         (SET_DEP_PRO): New function.
26710         (SET_DEP_CON): Likewise.
26711
26712 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
26713
26714         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
26715         (extra_options): Add i386/cygwin.opt.
26716         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
26717         (CPP_SPEC): Accept -pthread.
26718         (LINK_SPEC): Ditto.
26719         (GOMP_SELF_SPECS): Update comment.
26720         * config/i386/cygwin.opt: New file for -pthread flag.
26721
26722 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26723
26724         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
26725         * df.h (DF_REF_INSN): Convert from a macro to a function, so
26726         that we can return an rtx_insn *.
26727
26728 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
26729
26730         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
26731         when building executables, not DLLs.  Add --large-address-aware
26732         under the same conditions.
26733         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
26734         when building executables, not DLLs.  Add --large-address-aware
26735         under the same conditions when using -m32.
26736
26737         * config/i386/cygwin-stdint.h: Throughout, make type
26738         definitions dependent on target architecture, not host.
26739
26740 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26741
26742         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
26743         the return type from rtx to rtx_insn *,  which will enable various
26744         conversions in followup patches.  For now this is is done by a
26745         checked cast.
26746         (NEXT_INSN): Likewise.
26747         (SET_PREV_INSN): Convert to an inline function.  This is intended
26748         for use as an lvalue, and so returns an rtx& to allow in-place
26749         modification.
26750         (SET_NEXT_INSN): Likewise.
26751
26752 2014-07-08  Mark Wielaard  <mjw@redhat.com>
26753
26754         PR debug/59051
26755         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
26756
26757 2014-08-19  Marek Polacek  <polacek@redhat.com>
26758
26759         PR c/61271
26760         * cgraphunit.c (handle_alias_pairs): Fix condition.
26761
26762 2014-08-19  Richard Biener  <rguenther@suse.de>
26763
26764         * gimple-fold.c (fold_gimple_assign): Properly build a
26765         null-pointer constant when devirtualizing addresses.
26766
26767 2014-07-07  Mark Wielaard  <mjw@redhat.com>
26768
26769         * dwarf2out.c (decl_quals): New function.
26770         (modified_type_die): Take one cv_quals argument instead of two,
26771         one for const and one for volatile.
26772         (add_type_attribute): Likewise.
26773         (generic_parameter_die): Call add_type_attribute with one modifier
26774         argument.
26775         (base_type_for_mode): Likewise.
26776         (add_bounds_info): Likewise.
26777         (add_subscript_info): Likewise.
26778         (gen_array_type_die): Likewise.
26779         (gen_descr_array_type_die): Likewise.
26780         (gen_entry_point_die): Likewise.
26781         (gen_enumeration_type_die): Likewise.
26782         (gen_formal_parameter_die): Likewise.
26783         (gen_subprogram_die): Likewise.
26784         (gen_variable_die): Likewise.
26785         (gen_const_die): Likewise.
26786         (gen_field_die): Likewise.
26787         (gen_pointer_type_die): Likewise.
26788         (gen_reference_type_die): Likewise.
26789         (gen_ptr_to_mbr_type_die): Likewise.
26790         (gen_inheritance_die): Likewise.
26791         (gen_subroutine_type_die): Likewise.
26792         (gen_typedef_die): Likewise.
26793         (force_type_die): Likewise.
26794
26795 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26796
26797         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
26798         if unset.
26799         * configure: Regenerate.
26800
26801 2014-08-19  Richard Biener  <rguenther@suse.de>
26802
26803         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
26804         DECL_EXTERNALs in BLOCKs as non-references.
26805         * tree-streamer-out.c (streamer_write_chain): Likewise.
26806
26807 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26808             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26809             Anna Tikhonova  <anna.tikhonova@intel.com>
26810             Ilya Tocar  <ilya.tocar@intel.com>
26811             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26812             Ilya Verbin  <ilya.verbin@intel.com>
26813             Kirill Yukhin  <kirill.yukhin@intel.com>
26814             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26815
26816         * config/i386/sse.md
26817         (define_mode_iterator VI48_AVX512F): Delete.
26818         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
26819         (define_mode_iterator VI2_AVX512VL): Ditto.
26820         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
26821         Delete.
26822         (define_insn
26823         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
26824         New.
26825         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
26826         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
26827         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
26828         with VI48_AVX512F_AVX512VL): New.
26829         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
26830         with VI2_AVX512VL): Ditto.
26831
26832 2014-08-19  Marek Polacek  <polacek@redhat.com>
26833
26834         * doc/invoke.texi: Document -Wc99-c11-compat.
26835
26836 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26837
26838         * rtl.h (PREV_INSN): Split macro in two: the existing one,
26839         for rvalues, and...
26840         (SET_PREV_INSN): New macro, for use as an lvalue.
26841         (NEXT_INSN, SET_NEXT_INSN): Likewise.
26842
26843         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
26844         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
26845         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
26846         (fixup_abnormal_edges): Likewise.
26847         (unlink_insn_chain): Likewise.
26848         (fixup_reorder_chain): Likewise.
26849         (cfg_layout_delete_block): Likewise.
26850         (cfg_layout_merge_blocks): Likewise.
26851         * combine.c (update_cfg_for_uncondjump): Likewise.
26852         * emit-rtl.c (link_insn_into_chain): Likewise.
26853         (remove_insn): Likewise.
26854         (delete_insns_since): Likewise.
26855         (reorder_insns_nobb): Likewise.
26856         (emit_insn_after_1): Likewise.
26857         * final.c (rest_of_clean_state): Likewise.
26858         (final_scan_insn): Likewise.
26859         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
26860         * haifa-sched.c (concat_note_lists): Likewise.
26861         (remove_notes): Likewise.
26862         (restore_other_notes): Likewise.
26863         (move_insn): Likewise.
26864         (unlink_bb_notes): Likewise.
26865         (restore_bb_notes): Likewise.
26866         * jump.c (delete_for_peephole): Likewise.
26867         * optabs.c (emit_libcall_block_1): Likewise.
26868         * reorg.c (emit_delay_sequence): Likewise.
26869         (fill_simple_delay_slots): Likewise.
26870         * sel-sched-ir.c (sel_move_insn): Likewise.
26871         (sel_remove_insn): Likewise.
26872         (get_bb_note_from_pool): Likewise.
26873         * sel-sched.c (move_nop_to_previous_block): Likewise.
26874
26875         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
26876         * config/c6x/c6x.c (gen_one_bundle): Likewise.
26877         (c6x_gen_bundles): Likewise.
26878         (hwloop_optimize): Likewise.
26879         * config/frv/frv.c (frv_function_prologue): Likewise.
26880         (frv_register_nop): Likewise.
26881         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
26882         (ia64_reorg): Likewise.
26883         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
26884         (mep_make_bundle): Likewise.
26885         (mep_bundle_insns): Likewise.
26886         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
26887         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
26888         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
26889
26890 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26891
26892         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
26893         return type from rtx to rtx_insn *.
26894         (BB_END): Likewise.
26895         (BB_HEADER): Likewise.
26896         (BB_FOOTER): Likewise.
26897         (SET_BB_HEAD): Convert to a function.
26898         (SET_BB_END): Likewise.
26899         (SET_BB_HEADER): Likewise.
26900         (SET_BB_FOOTER): Likewise.
26901
26902         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
26903         Strengthen the return type from rtx to rtx_insn *.  For now, this
26904         is done by adding a checked cast, but this will eventually
26905         become a field lookup.
26906         (BB_END): Likewise.
26907         (BB_HEADER): Likewise.
26908         (BB_FOOTER): Likewise.
26909         (SET_BB_HEAD): New function, from macro of same name.  This is
26910         intended for use as an lvalue, and so returns an rtx& to allow
26911         in-place modification.
26912         (SET_BB_END): Likewise.
26913         (SET_BB_HEADER): Likewise.
26914         (SET_BB_FOOTER): Likewise.
26915
26916 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
26917
26918         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
26919         for rvalues, and...
26920         (SET_BB_HEAD): New macro, for use as a lvalue.
26921         (BB_END, SET_BB_END): Likewise.
26922         (BB_HEADER, SET_BB_HEADER): Likewise.
26923         (BB_FOOTER, SET_BB_FOOTER): Likewise.
26924
26925         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
26926         of BB_* macros into SET_BB_* macros.
26927         (fix_crossing_unconditional_branches): Likewise.
26928         * caller-save.c (save_call_clobbered_regs): Likewise.
26929         (insert_one_insn): Likewise.
26930         * cfgbuild.c (find_bb_boundaries): Likewise.
26931         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
26932         (outgoing_edges_match): Likewise.
26933         (try_optimize_cfg): Likewise.
26934         * cfgexpand.c (expand_gimple_cond): Likewise.
26935         (expand_gimple_tailcall): Likewise.
26936         (expand_gimple_basic_block): Likewise.
26937         (construct_exit_block): Likewise.
26938         * cfgrtl.c (delete_insn): Likewise.
26939         (create_basic_block_structure): Likewise.
26940         (rtl_delete_block): Likewise.
26941         (rtl_split_block): Likewise.
26942         (emit_nop_for_unique_locus_between): Likewise.
26943         (rtl_merge_blocks): Likewise.
26944         (block_label): Likewise.
26945         (try_redirect_by_replacing_jump): Likewise.
26946         (emit_barrier_after_bb): Likewise.
26947         (fixup_abnormal_edges): Likewise.
26948         (record_effective_endpoints): Likewise.
26949         (relink_block_chain): Likewise.
26950         (fixup_reorder_chain): Likewise.
26951         (fixup_fallthru_exit_predecessor): Likewise.
26952         (cfg_layout_duplicate_bb): Likewise.
26953         (cfg_layout_split_block): Likewise.
26954         (cfg_layout_delete_block): Likewise.
26955         (cfg_layout_merge_blocks): Likewise.
26956         * combine.c (update_cfg_for_uncondjump): Likewise.
26957         * emit-rtl.c (add_insn_after): Likewise.
26958         (remove_insn): Likewise.
26959         (reorder_insns): Likewise.
26960         (emit_insn_after_1): Likewise.
26961         * haifa-sched.c (get_ebb_head_tail): Likewise.
26962         (restore_other_notes): Likewise.
26963         (move_insn): Likewise.
26964         (sched_extend_bb): Likewise.
26965         (fix_jump_move): Likewise.
26966         * ifcvt.c (noce_process_if_block): Likewise.
26967         (dead_or_predicable): Likewise.
26968         * ira.c (update_equiv_regs): Likewise.
26969         * reg-stack.c (change_stack): Likewise.
26970         * sel-sched-ir.c (sel_move_insn): Likewise.
26971         * sel-sched.c (move_nop_to_previous_block): Likewise.
26972
26973         * config/c6x/c6x.c (hwloop_optimize): Likewise.
26974         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
26975
26976 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
26977
26978         * rtl.h (for_each_rtx_in_insn): New function.
26979         * rtlanal.c (for_each_rtx_in_insn): Likewise.
26980
26981 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
26982
26983         * coretypes.h (class rtx_insn): Add forward declaration.
26984
26985         * rtl.h: Include is-a.h.
26986         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
26987         workaround to ensure gengtype knows inheritance is occurring,
26988         whilst continuing to use the pre-existing special-casing for
26989         rtx_def.
26990         (class rtx_insn): New subclass of rtx_def, adding the
26991         invariant that we're dealing with something we can sanely use
26992         INSN_UID, NEXT_INSN, PREV_INSN on.
26993         (is_a_helper <rtx_insn *>::test): New.
26994         (is_a_helper <const rtx_insn *>::test): New.
26995
26996 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
26997
26998         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
26999
27000 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
27001
27002         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
27003         comdats as extern.
27004
27005 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
27006
27007         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
27008         to BUILT_IN_UNREACHABLE.
27009
27010 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
27011
27012         PR target/62011
27013         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
27014         New tune flag.
27015         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
27016         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
27017         (ffs<mode>2): Do not expand with tzcnt for
27018         TARGET_AVOID_FALSE_DEP_FOR_BMI.
27019         (ffssi2_no_cmove): Ditto.
27020         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
27021         (ctz<mode>2): New expander.
27022         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
27023         (*ctz<mode>2_falsedep): New insn.
27024         (*ctz<mode>2): Rename from ctz<mode>2.
27025         (clz<mode>2_lzcnt): New expander.
27026         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
27027         (*clz<mode>2_lzcnt_falsedep): New insn.
27028         (*clz<mode>2): Rename from ctz<mode>2.
27029         (popcount<mode>2): New expander.
27030         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
27031         (*popcount<mode>2_falsedep): New insn.
27032         (*popcount<mode>2): Rename from ctz<mode>2.
27033         (*popcount<mode>2_cmp): Remove.
27034         (*popcountsi2_cmp_zext): Ditto.
27035
27036 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
27037
27038         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
27039         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
27040         * config/microblaze/microblaze.h
27041         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
27042
27043 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
27044
27045         PR other/62168
27046         * configure.ac: Set install_gold_as_default to no for
27047         --enable-gold=no.
27048         * configure: Regenerated.
27049
27050 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
27051
27052         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
27053         * config.in: Add undef of HAVE_isl.
27054         * configure: Regenerate.
27055         * configure.ac: Add definition of HAVE_isl.
27056         * graphite-blocking.c: Add checking of HAVE_isl.
27057         * graphite-dependences.c: Likewise.
27058         * graphite-interchange.c: Likewise.
27059         * graphite-isl-ast-to-gimple.c: Likewise.
27060         * graphite-optimize-isl.c: Likewise.
27061         * graphite-poly.c: Likewise.
27062         * graphite-scop-detection.c: Likewise.
27063         * graphite-sese-to-poly.c: Likewise.
27064         * graphite.c: Likewise.
27065         * toplev.c: Replace the checking of HAVE_cloog with the checking
27066         of HAVE_isl.
27067
27068 2014-08-18  Richard Biener  <rguenther@suse.de>
27069
27070         PR tree-optimization/62090
27071         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
27072         (fold_builtin_3): Do not fold snprintf.
27073         (fold_builtin_4): Likewise.
27074         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
27075         moved from builtins.c.
27076         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
27077         (gimple_fold_builtin): Do not fold sprintf here.
27078
27079 2014-08-18  Richard Biener  <rguenther@suse.de>
27080
27081         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
27082         code to ...
27083         (maybe_canonicalize_mem_ref_addr): ... this function.
27084         (fold_stmt_1): Apply it here before all simplification.
27085
27086 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
27087
27088         PR ipa/61800
27089         * cgraph.h (cgraph_node::create_indirect_edge): Add
27090         compute_indirect_info param.
27091         * cgraph.c (cgraph_node::create_indirect_edge): Compute
27092         indirect_info only when it is required.
27093         * cgraphclones.c (cgraph_clone_edge): Do not recompute
27094         indirect_info fore cloned indirect edge.
27095
27096 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27097             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27098             Anna Tikhonova  <anna.tikhonova@intel.com>
27099             Ilya Tocar  <ilya.tocar@intel.com>
27100             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27101             Ilya Verbin  <ilya.verbin@intel.com>
27102             Kirill Yukhin  <kirill.yukhin@intel.com>
27103             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27104
27105         * config/i386/sse.md
27106         (define_mode_iterator VI8_AVX2_AVX512BW): New.
27107         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
27108
27109 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27110             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27111             Anna Tikhonova  <anna.tikhonova@intel.com>
27112             Ilya Tocar  <ilya.tocar@intel.com>
27113             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27114             Ilya Verbin  <ilya.verbin@intel.com>
27115             Kirill Yukhin  <kirill.yukhin@intel.com>
27116             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27117
27118         * config/i386/sse.md
27119         (define_mode_iterator VF1_AVX512VL): New.
27120         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
27121         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
27122         New.
27123
27124 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27125             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27126             Anna Tikhonova  <anna.tikhonova@intel.com>
27127             Ilya Tocar  <ilya.tocar@intel.com>
27128             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27129             Ilya Verbin  <ilya.verbin@intel.com>
27130             Kirill Yukhin  <kirill.yukhin@intel.com>
27131             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27132
27133         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
27134         * config/i386/i386.md
27135         (define_code_iterator any_float): New.
27136         (define_code_attr floatsuffix): New.
27137         * config/i386/sse.md
27138         (define_mode_iterator VF1_128_256VL): New.
27139         (define_mode_iterator VF2_512_256VL): New.
27140         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
27141         TARGET check.
27142         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
27143         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
27144         New.
27145         (define_mode_attr qq2pssuff): New.
27146         (define_mode_attr sselongvecmode): New.
27147         (define_mode_attr sselongvecmodelower): New.
27148         (define_mode_attr sseintvecmode3): New.
27149         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
27150         New.
27151         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
27152         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
27153         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
27154         (define_insn "ufloatv2siv2df2<mask_name>"): New.
27155
27156 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27157             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27158             Anna Tikhonova  <anna.tikhonova@intel.com>
27159             Ilya Tocar  <ilya.tocar@intel.com>
27160             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27161             Ilya Verbin  <ilya.verbin@intel.com>
27162             Kirill Yukhin  <kirill.yukhin@intel.com>
27163             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27164
27165         * config/i386/sse.md
27166         (define_mode_iterator VF2_AVX512VL): New.
27167         (define_mode_attr sseintvecmode2): New.
27168         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
27169         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
27170         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
27171         (define_insn
27172         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
27173         Ditto.
27174         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
27175         Ditto.
27176         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
27177         Ditto.
27178
27179 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27180             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27181             Anna Tikhonova  <anna.tikhonova@intel.com>
27182             Ilya Tocar  <ilya.tocar@intel.com>
27183             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27184             Ilya Verbin  <ilya.verbin@intel.com>
27185             Kirill Yukhin  <kirill.yukhin@intel.com>
27186             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27187
27188         * config/i386/i386.md
27189         (define_insn "*movoi_internal_avx"): Add evex version.
27190         (define_insn "*movti_internal"): Ditto.
27191
27192 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27193             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27194             Anna Tikhonova  <anna.tikhonova@intel.com>
27195             Ilya Tocar  <ilya.tocar@intel.com>
27196             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27197             Ilya Verbin  <ilya.verbin@intel.com>
27198             Kirill Yukhin  <kirill.yukhin@intel.com>
27199             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27200
27201         * config/i386/i386.md
27202         (define_attr "isa"): Add avx512dq, noavx512dq.
27203         (define_attr "enabled"): Ditto.
27204         * config/i386/sse.md
27205         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
27206
27207 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27208             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27209             Anna Tikhonova  <anna.tikhonova@intel.com>
27210             Ilya Tocar  <ilya.tocar@intel.com>
27211             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27212             Ilya Verbin  <ilya.verbin@intel.com>
27213             Kirill Yukhin  <kirill.yukhin@intel.com>
27214             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27215
27216         * config/i386/i386.c
27217         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
27218         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
27219         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
27220         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
27221         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
27222         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
27223         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
27224         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
27225         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
27226         * config/i386/sse.md
27227         (define_mode_iterator VMOVE): Allow V4TI mode.
27228         (define_mode_iterator V_AVX512VL): New.
27229         (define_mode_iterator V): New handling for AVX512VL.
27230         (define_insn "avx512f_load<mode>_mask"): Delete.
27231         (define_insn "<avx512>_load<mode>_mask"): New.
27232         (define_insn "avx512f_store<mode>_mask"): Delete.
27233         (define_insn "<avx512>_store<mode>_mask"): New.
27234
27235
27236 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
27237
27238         PR sanitizer/62089
27239         * asan.c (instrument_derefs): Fix bitfield check.
27240
27241 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
27242
27243         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
27244         * config/rs6000/htm.md (ttest): Remove clobber.
27245         * config/rs6000/predicates.md (any_mask_operand): New predicate.
27246         (and_operand): Reformat.
27247         (and_2rld_operand): New predicate.
27248         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
27249         parameter.
27250         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
27251         parameter.  Handle AND directly.
27252         (rs6000_split_logical_di): Remove last parameter.
27253         (rs6000_split_logical): Remove last parameter.  Remove obsolete
27254         comment.
27255         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
27256         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
27257         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
27258         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
27259         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
27260         and 5 anonymous splitters):  Delete.
27261         (and<mode>3): New expander.
27262         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
27263         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
27264         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
27265         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
27266         (floatdisf2_internal1): Remove clobbers.
27267         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
27268         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
27269         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
27270         (and<mode>3 for BOOL_128): Remove clobber.
27271         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
27272         rs6000_split_logical.
27273         (*bool<mode>3_internal for BOOL_128): Adjust call of
27274         rs6000_split_logical.
27275         (*boolc<mode>3_internal1 for BOOL_128,
27276         *boolc<mode>3_internal2 for BOOL_128,
27277         *boolcc<mode>3_internal1 for BOOL_128,
27278         *boolcc<mode>3_internal2 for BOOL_128,
27279         *eqv<mode>3_internal1 for BOOL_128,
27280         *eqv<mode>3_internal2 for BOOL_128,
27281         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
27282         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
27283         clobber.
27284         (*vec_reload_and_reg_<mptrsize>): Delete.
27285
27286 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
27287
27288         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
27289         and split, *boolccsi3_internal3 and split): Delete.
27290         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
27291         *boolccdi3_internal3 and split): Delete.
27292         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
27293         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
27294
27295 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
27296
27297         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
27298         and split, *boolcsi3_internal3 and split): Delete.
27299         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
27300         *boolcdi3_internal3 and split): Delete.
27301         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
27302
27303 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
27304
27305         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
27306         <'u'>: Also support printing the low-order 16 bits.
27307         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
27308         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
27309         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
27310         *booldi3_internal3 and split): Delete.
27311         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
27312         *bool<mode>3_dot2): New.
27313         (two anonymous define_splits for non_logical_cint_operand): Merge.
27314
27315 2014-08-17  Marek Polacek  <polacek@redhat.com>
27316             Manuel López-Ibáñez  <manu@gcc.gnu.org>
27317
27318         PR c/62059
27319         * diagnostic.c (adjust_line): Add gcc_checking_assert.
27320         (diagnostic_show_locus): Don't print caret diagnostic
27321         if a column is larger than the line_width.
27322
27323 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
27324
27325         * common.opt: Make the ISL AST generator to be the main code generator
27326         of Graphite.
27327
27328 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
27329
27330         * wide-int.h (generic_wide_int): Declare as class instead of struct.
27331
27332 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
27333
27334         PR target/61641
27335         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
27336         Declare.
27337         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
27338         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
27339         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
27340         Define.
27341         * config/pa/pa.md (begin_brtab): Delete insn.
27342         (end_brtab): Likewise.
27343
27344 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27345
27346         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
27347
27348 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
27349
27350         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
27351         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
27352         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
27353         (get_dynamic_type): Remove.
27354         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
27355         (clear_speculation): Bring to ipa-deivrt.h
27356         (get_class_context): Rename to ...
27357         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
27358         (contains_type_p): Update.
27359         (get_dynamic_type): Rename to ...
27360         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
27361         (possible_polymorphic_call_targets): UPdate.
27362         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
27363         * ipa-prop.c (ipa_analyze_call_uses): Update.
27364
27365 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
27366
27367         * doc/invoke.texi (SH options): Document missing processor variant
27368         options.  Remove references to Hitachi.  Undocument deprecated mspace
27369         option.
27370
27371 2014-08-15  Jason Merrill  <jason@redhat.com>
27372
27373         * tree.c (type_hash_canon): Uncomment assert.
27374
27375 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27376
27377         * input.h (in_system_header_at): Add comment.
27378
27379 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27380
27381         PR fortran/44054
27382         * diagnostic.c (build_message_string): Make it extern.
27383         * diagnostic.h (build_message_string): Make it extern.
27384
27385 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
27386
27387         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
27388         load/store from/to non-floating class pseudo.
27389
27390 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27391
27392         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
27393
27394 2014-08-15  Richard Biener  <rguenther@suse.de>
27395
27396         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
27397         (get_constraint_for_ssa_var): Remove dead code.
27398         (get_constraint_for_1): Adjust.
27399         (find_what_var_points_to): Likewise.
27400         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
27401
27402 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
27403
27404         PR target/61878
27405         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
27406         (_mm512_mask_cmpge_epu32_mask): Ditto.
27407         (_mm512_cmpge_epu32_mask): Ditto.
27408         (_mm512_mask_cmpge_epi64_mask): Ditto.
27409         (_mm512_cmpge_epi64_mask): Ditto.
27410         (_mm512_mask_cmpge_epu64_mask): Ditto.
27411         (_mm512_cmpge_epu64_mask): Ditto.
27412         (_mm512_mask_cmple_epi32_mask): Ditto.
27413         (_mm512_cmple_epi32_mask): Ditto.
27414         (_mm512_mask_cmple_epu32_mask): Ditto.
27415         (_mm512_cmple_epu32_mask): Ditto.
27416         (_mm512_mask_cmple_epi64_mask): Ditto.
27417         (_mm512_cmple_epi64_mask): Ditto.
27418         (_mm512_mask_cmple_epu64_mask): Ditto.
27419         (_mm512_cmple_epu64_mask): Ditto.
27420         (_mm512_mask_cmplt_epi32_mask): Ditto.
27421         (_mm512_cmplt_epi32_mask): Ditto.
27422         (_mm512_mask_cmplt_epu32_mask): Ditto.
27423         (_mm512_cmplt_epu32_mask): Ditto.
27424         (_mm512_mask_cmplt_epi64_mask): Ditto.
27425         (_mm512_cmplt_epi64_mask): Ditto.
27426         (_mm512_mask_cmplt_epu64_mask): Ditto.
27427         (_mm512_cmplt_epu64_mask): Ditto.
27428         (_mm512_mask_cmpneq_epi32_mask): Ditto.
27429         (_mm512_mask_cmpneq_epu32_mask): Ditto.
27430         (_mm512_cmpneq_epu32_mask): Ditto.
27431         (_mm512_mask_cmpneq_epi64_mask): Ditto.
27432         (_mm512_cmpneq_epi64_mask): Ditto.
27433         (_mm512_mask_cmpneq_epu64_mask): Ditto.
27434         (_mm512_cmpneq_epu64_mask): Ditto.
27435         (_mm512_castpd_ps): Ditto.
27436         (_mm512_castpd_si512): Ditto.
27437         (_mm512_castps_pd): Ditto.
27438         (_mm512_castps_si512): Ditto.
27439         (_mm512_castsi512_ps): Ditto.
27440         (_mm512_castsi512_pd): Ditto.
27441         (_mm512_castpd512_pd128): Ditto.
27442         (_mm512_castps512_ps128): Ditto.
27443         (_mm512_castsi512_si128): Ditto.
27444         (_mm512_castpd512_pd256): Ditto.
27445         (_mm512_castps512_ps256): Ditto.
27446         (_mm512_castsi512_si256): Ditto.
27447         (_mm512_castpd128_pd512): Ditto.
27448         (_mm512_castps128_ps512): Ditto.
27449         (_mm512_castsi128_si512): Ditto.
27450         (_mm512_castpd256_pd512): Ditto.
27451         (_mm512_castps256_ps512): Ditto.
27452         (_mm512_castsi256_si512): Ditto.
27453         (_mm512_cmpeq_epu32_mask): Ditto.
27454         (_mm512_mask_cmpeq_epu32_mask): Ditto.
27455         (_mm512_mask_cmpeq_epu64_mask): Ditto.
27456         (_mm512_cmpeq_epu64_mask): Ditto.
27457         (_mm512_cmpgt_epu32_mask): Ditto.
27458         (_mm512_mask_cmpgt_epu32_mask): Ditto.
27459         (_mm512_mask_cmpgt_epu64_mask): Ditto.
27460         (_mm512_cmpgt_epu64_mask): Ditto.
27461         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
27462         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
27463         * config/i386/i386.c (enum ix86_builtins): Add
27464         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
27465         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
27466         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
27467         (bdesc_args): Add __builtin_ia32_si512_256si,
27468         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
27469         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
27470         __builtin_ia32_pd512_pd.
27471         (ix86_expand_args_builtin): Handle new FTYPEs.
27472         * config/i386/sse.md (castmode): Add 512-bit modes.
27473         (AVX512MODE2P): New.
27474         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
27475         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
27476
27477 2014-08-15  Richard Biener  <rguenther@suse.de>
27478
27479         * fold-const.c (tree_swap_operands_p): Put all constants
27480         last, also strip sign-changing NOPs when considering further
27481         canonicalization.  Canonicalize also when optimizing for size.
27482
27483 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27484
27485         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
27486         one_match > zero_match case to just before simple_sequence.
27487
27488 2014-08-15  Richard Biener  <rguenther@suse.de>
27489
27490         * data-streamer.h (streamer_string_index, string_for_index):
27491         Remove.
27492         * data-streamer-out.c (streamer_string_index): Make static.
27493         * data-streamer-in.c (string_for_index): Likewise.
27494         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
27495         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
27496
27497 2014-08-15  Richard Biener  <rguenther@suse.de>
27498
27499         PR tree-optimization/62031
27500         * tree-data-ref.c (dr_analyze_indices): Do not set
27501         DR_UNCONSTRAINED_BASE.
27502         (dr_may_alias_p): All indirect accesses have to go the
27503         formerly DR_UNCONSTRAINED_BASE path.
27504         * tree-data-ref.h (struct indices): Remove
27505         unconstrained_base member.
27506         (DR_UNCONSTRAINED_BASE): Remove.
27507
27508 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
27509
27510         PR middle-end/62092
27511         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
27512         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
27513         in OMP_CLAUSE_MAP in some outer target region.
27514
27515 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
27516
27517         * tree-ssa-loop-ivopts.c (ivopts_data): New field
27518         name_expansion_cache.
27519         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
27520         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
27521         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
27522         (difference_cannot_overflow_p): New parameter.  Use affine
27523         expansion for equality check.
27524         (iv_elimination_compare_lt): Pass new argument.
27525
27526 2014-08-14  DJ Delorie  <dj@redhat.com>
27527
27528         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
27529         variables to the accumulator.
27530
27531         * config/rl78/predicates.md (rl78_near_mem_operand): New.
27532         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
27533         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
27534         with far-far moves.
27535
27536         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
27537         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
27538         (umulqihi3_virt): Likewise.
27539         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
27540         (umulqihi3_real): Likewise.
27541
27542         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
27543
27544 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
27545
27546         PR tree-optimization/62091
27547         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
27548         function_entry_reached.
27549         (walk_aliased_vdefs): Clear it here.
27550         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
27551
27552 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
27553
27554         * ipa-utils.h (compare_virtual_tables): Declare.
27555         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
27556
27557 2014-08-14  Marek Polacek  <polacek@redhat.com>
27558
27559         DR 458
27560         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
27561         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
27562
27563 2014-08-14  Tom de Vries  <tom@codesourcery.com>
27564
27565         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
27566
27567 2014-08-14  Tom de Vries  <tom@codesourcery.com>
27568
27569         PR rtl-optimization/62004
27570         PR rtl-optimization/62030
27571         * ifcvt.c (rtx_interchangeable_p): New function.
27572         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
27573         * emit-rtl.h (mem_attrs_eq_p): Declare.
27574
27575 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
27576
27577         * graphite-scop-detection.c:
27578         Add inclusion of cp-tree.h.
27579         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
27580         in case they are pointers to object types
27581
27582 2014-08-14  Richard Biener  <rguenther@suse.de>
27583
27584         * BASE-VER: Change to 5.0.0
27585
27586 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27587             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27588             Anna Tikhonova  <anna.tikhonova@intel.com>
27589             Ilya Tocar  <ilya.tocar@intel.com>
27590             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27591             Ilya Verbin  <ilya.verbin@intel.com>
27592             Kirill Yukhin  <kirill.yukhin@intel.com>
27593             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27594
27595         * config/i386/sse.md (define_mode_attr avx512): New.
27596         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
27597         V4DI modes.
27598         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
27599         (define_mode_attr ssse3_avx2): Ditto.
27600         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
27601         (define_mode_attr avx2_avx512bw): New.
27602         (define_mode_attr ssedoublemodelower): New.
27603         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
27604         V32HI, V64QI modes.
27605         (define_mode_attr ssebytemode): Allow V8DI modes.
27606         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
27607         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
27608         (define_mode_attr ssePSmode2): New.
27609         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
27610         V16HI, V32HI modes.
27611         (define_mode_attr dbpsadbwmode): New.
27612         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
27613         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
27614         (vi8_sse4_1_avx2_avx512): New.
27615         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
27616         mode attribute.
27617         (define_mode_attr blendbits): Move before its immediate use.
27618
27619 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27620             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27621             Anna Tikhonova  <anna.tikhonova@intel.com>
27622             Ilya Tocar  <ilya.tocar@intel.com>
27623             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27624             Ilya Verbin  <ilya.verbin@intel.com>
27625             Kirill Yukhin  <kirill.yukhin@intel.com>
27626             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27627
27628         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
27629         * config/i386/subst.md
27630         (define_mode_iterator SUBST_V): Update.
27631         (define_mode_iterator SUBST_A): Ditto.
27632         (define_subst_attr "mask_operand7"): New.
27633         (define_subst_attr "mask_operand10"): New.
27634         (define_subst_attr "mask_operand_arg34") : New.
27635         (define_subst_attr "mask_expand_op3"): New.
27636         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
27637         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
27638         (define_subst_attr "mask_avx512vl_condition"): New.
27639         (define_subst_attr "round_mask_operand4"): Ditto.
27640         (define_subst_attr "round_mask_scalar_op3"): Delete.
27641         (define_subst_attr "round_mask_op4"): New.
27642         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
27643         V16SImode.
27644         (define_subst_attr "round_modev8sf_condition"): New.
27645         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
27646         <MODE>mode.
27647         (define_subst_attr "round_saeonly_mask_operand4"): New.
27648         (define_subst_attr "round_saeonly_mask_op4"): New.
27649         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
27650         V8DImode, V16SImode.
27651         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
27652         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
27653         (define_subst_attr "mask_expand4_args"): New.
27654         (define_subst "mask_expand4"): New.
27655
27656 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27657             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27658             Anna Tikhonova  <anna.tikhonova@intel.com>
27659             Ilya Tocar  <ilya.tocar@intel.com>
27660             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27661             Ilya Verbin  <ilya.verbin@intel.com>
27662             Kirill Yukhin  <kirill.yukhin@intel.com>
27663             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27664
27665         * config/i386/i386.md
27666         (define_attr "isa"): Add avx512bw,noavx512bw.
27667         (define_attr "enabled"): Ditto.
27668         (define_split): Add 32/64-bit mask logic.
27669         (define_insn "*k<logic>qi"): New.
27670         (define_insn "*k<logic>hi"): New.
27671         (define_insn "*anddi_1"): Add mask version.
27672         (define_insn "*andsi_1"): Ditto.
27673         (define_insn "*<code><mode>_1"): Ditto.
27674         (define_insn "*<code>hi_1"): Ditto.
27675         (define_insn "kxnor<mode>"): New.
27676         (define_insn "kunpcksi"): New.
27677         (define_insn "kunpckdi"): New.
27678         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
27679         (define_insn "*one_cmplhi2_1"): Ditto.
27680
27681 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27682             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27683             Anna Tikhonova  <anna.tikhonova@intel.com>
27684             Ilya Tocar  <ilya.tocar@intel.com>
27685             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27686             Ilya Verbin  <ilya.verbin@intel.com>
27687             Kirill Yukhin  <kirill.yukhin@intel.com>
27688             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27689
27690         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
27691         V32HImode.
27692
27693 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27694             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27695             Anna Tikhonova  <anna.tikhonova@intel.com>
27696             Ilya Tocar  <ilya.tocar@intel.com>
27697             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27698             Ilya Verbin  <ilya.verbin@intel.com>
27699             Kirill Yukhin  <kirill.yukhin@intel.com>
27700             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27701
27702         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
27703         registers.
27704         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
27705         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
27706         xmm/ymm16+ when availble.
27707         * config/i386/i386.h
27708         (HARD_REGNO_NREGS): Add mask regs.
27709         (VALID_AVX512F_REG_MODE): Ditto.
27710         (VALID_AVX512F_REG_MODE) : Define.
27711         (VALID_MASK_AVX512BW_MODE): Ditto.
27712         (reg_class) (MASK_REG_P(X)): Define.
27713         * config/i386/i386.md: Do not split long moves with mask register,
27714         use kmovb if avx512bw is availible.
27715         (movdi_internal): Handle mask registers.
27716
27717 2014-08-14  Richard Biener  <rguenther@suse.de>
27718
27719         PR tree-optimization/62081
27720         * tree-ssa-loop.c (pass_fix_loops): New pass.
27721         (pass_tree_loop::gate):  Do not fixup loops here.
27722         * tree-pass.h (make_pass_fix_loops): Declare.
27723         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
27724
27725 2014-08-14  Richard Biener  <rguenther@suse.de>
27726
27727         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
27728         (type_hash_canon): ... this and avoid 2nd lookup for the add.
27729
27730 2014-08-14  Richard Biener  <rguenther@suse.de>
27731
27732         PR tree-optimization/62090
27733         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
27734         (fold_builtin_2): Do not fold sprintf.
27735         (fold_builtin_3): Likewise.
27736         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
27737         moved from builtins.c.
27738         (gimple_fold_builtin): Fold sprintf.
27739
27740 2014-08-14  Richard Biener  <rguenther@suse.de>
27741
27742         PR rtl-optimization/62079
27743         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
27744         run cleanup_cfg.
27745
27746 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
27747
27748         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
27749         current_function_decl.
27750
27751 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
27752
27753         * cgraph.c (cgraph_node::function_symbol): Fix wrong
27754         cgraph_function_node to cgraph_node::function_symbol
27755         refactoring.
27756
27757 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
27758
27759         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
27760         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
27761
27762 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
27763
27764         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
27765         warning.
27766
27767 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
27768
27769         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
27770         generator.
27771
27772 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
27773
27774         PR target/62025
27775         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
27776         any registers that are used in mem_insn.
27777
27778 2014-08-12  Steve Ellcey  <sellcey@mips.com>
27779
27780         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
27781
27782 2014-08-12  Steve Ellcey  <sellcey@mips.com>
27783
27784         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
27785         (MULTILIB_DIRNAMES): Ditto.
27786         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
27787         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
27788         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
27789         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
27790         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
27791         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
27792
27793 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27794
27795         PR target/61413
27796         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
27797         of __ARM_SIZEOF_WCHAR_T.
27798
27799 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27800
27801         PR target/62098
27802         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
27803         Remove unnecessary attributes.
27804
27805 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
27806
27807         * internal-fn.c (init_internal_fns): Fix off-by-one.
27808
27809 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27810             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27811             Anna Tikhonova  <anna.tikhonova@intel.com>
27812             Ilya Tocar  <ilya.tocar@intel.com>
27813             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27814             Ilya Verbin  <ilya.verbin@intel.com>
27815             Kirill Yukhin  <kirill.yukhin@intel.com>
27816             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27817
27818         * config/i386/i386.c (standard_sse_constant_opcode): Use
27819         vpxord/vpternlog if avx512 is availible.
27820
27821 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27822
27823         PR middle-end/62103
27824         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
27825         bitfields, that is when size doesn't match the size of type or the
27826         size of the constructor.
27827
27828 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27829
27830         * config/rs6000/constraints.md (wh constraint): New constraint,
27831         for FP registers if direct move is available.
27832         (wi constraint): New constraint, for VSX/FP registers that can
27833         handle 64-bit integers.
27834         (wj constraint): New constraint for VSX/FP registers that can
27835         handle 64-bit integers for direct moves.
27836         (wk constraint): New constraint for VSX/FP registers that can
27837         handle 64-bit doubles for direct moves.
27838         (wy constraint): Make documentation match implementation.
27839
27840         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
27841         scalar_in_vmx_p field to simplify tests of whether SFmode or
27842         DFmode can go in the Altivec registers.
27843         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
27844         (rs6000_setup_reg_addr_masks): Likewise.
27845         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
27846         field, and wh/wi/wj/wk constraints.
27847         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
27848         the wh/wi/wj/wk constraints.
27849         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
27850         upper registers, prefer VSX registers unless the operation is a
27851         memory operation with REG+OFFSET addressing.
27852
27853         * config/rs6000/vsx.md (VSr mode attribute): Add support for
27854         DImode.  Change SFmode to use ww constraint instead of d to allow
27855         SF registers in the upper registers.
27856         (VSr2): Likewise.
27857         (VSr3): Likewise.
27858         (VSr5): Fix thinko in comment.
27859         (VSa): New mode attribute that is an alternative to wa, that
27860         returns the VSX register class that a mode can go in, but may not
27861         be the preferred register class.
27862         (VS_64dm): New mode attribute for appropriate register classes for
27863         referencing 64-bit elements of vectors for direct moves and normal
27864         moves.
27865         (VS_64reg): Likewise.
27866         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
27867         register allocator to only registers the data type can handle.
27868         (vsx_le_perm_load_<mode>): Likewise.
27869         (vsx_le_perm_store_<mode>): Likewise.
27870         (vsx_xxpermdi2_le_<mode>): Likewise.
27871         (vsx_xxpermdi4_le_<mode>): Likewise.
27872         (vsx_lxvd2x2_le_<mode>): Likewise.
27873         (vsx_lxvd2x4_le_<mode>): Likewise.
27874         (vsx_stxvd2x2_le_<mode>): Likewise.
27875         (vsx_add<mode>3): Likewise.
27876         (vsx_sub<mode>3): Likewise.
27877         (vsx_mul<mode>3): Likewise.
27878         (vsx_div<mode>3): Likewise.
27879         (vsx_tdiv<mode>3_internal): Likewise.
27880         (vsx_fre<mode>2): Likewise.
27881         (vsx_neg<mode>2): Likewise.
27882         (vsx_abs<mode>2): Likewise.
27883         (vsx_nabs<mode>2): Likewise.
27884         (vsx_smax<mode>3): Likewise.
27885         (vsx_smin<mode>3): Likewise.
27886         (vsx_sqrt<mode>2): Likewise.
27887         (vsx_rsqrte<mode>2): Likewise.
27888         (vsx_tsqrt<mode>2_internal): Likewise.
27889         (vsx_fms<mode>4): Likewise.
27890         (vsx_nfma<mode>4): Likewise.
27891         (vsx_eq<mode>): Likewise.
27892         (vsx_gt<mode>): Likewise.
27893         (vsx_ge<mode>): Likewise.
27894         (vsx_eq<mode>_p): Likewise.
27895         (vsx_gt<mode>_p): Likewise.
27896         (vsx_ge<mode>_p): Likewise.
27897         (vsx_xxsel<mode>): Likewise.
27898         (vsx_xxsel<mode>_uns): Likewise.
27899         (vsx_copysign<mode>3): Likewise.
27900         (vsx_float<VSi><mode>2): Likewise.
27901         (vsx_floatuns<VSi><mode>2): Likewise.
27902         (vsx_fix_trunc<mode><VSi>2): Likewise.
27903         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
27904         (vsx_x<VSv>r<VSs>i): Likewise.
27905         (vsx_x<VSv>r<VSs>ic): Likewise.
27906         (vsx_btrunc<mode>2): Likewise.
27907         (vsx_b2trunc<mode>2): Likewise.
27908         (vsx_floor<mode>2): Likewise.
27909         (vsx_ceil<mode>2): Likewise.
27910         (vsx_<VS_spdp_insn>): Likewise.
27911         (vsx_xscvspdp): Likewise.
27912         (vsx_xvcvspuxds): Likewise.
27913         (vsx_float_fix_<mode>2): Likewise.
27914         (vsx_set_<mode>): Likewise.
27915         (vsx_extract_<mode>_internal1): Likewise.
27916         (vsx_extract_<mode>_internal2): Likewise.
27917         (vsx_extract_<mode>_load): Likewise.
27918         (vsx_extract_<mode>_store): Likewise.
27919         (vsx_splat_<mode>): Likewise.
27920         (vsx_xxspltw_<mode>): Likewise.
27921         (vsx_xxspltw_<mode>_direct): Likewise.
27922         (vsx_xxmrghw_<mode>): Likewise.
27923         (vsx_xxmrglw_<mode>): Likewise.
27924         (vsx_xxsldwi_<mode>): Likewise.
27925         (vsx_xscvdpspn): Tighten constraints to only use register classes
27926         the types use.
27927         (vsx_xscvspdpn): Likewise.
27928         (vsx_xscvdpspn_scalar): Likewise.
27929
27930         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
27931         wj, and wk constraints.
27932         (GPR_REG_CLASS_P): New helper macro for register classes targeting
27933         general purpose registers.
27934
27935         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
27936         direct moves.
27937         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
27938         DImode instead of wm.  Use wk constraint for direct move of DFmode
27939         instead of wm.
27940         (extendsidi2_lfiwax): Likewise.
27941         (lfiwax): Likewise.
27942         (lfiwzx): Likewise.
27943         (movdi_internal64): Likewise.
27944
27945         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
27946         wk constraints. Make the wy constraint documentation match them
27947         implementation.
27948
27949 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
27950
27951         Replacement of isl_int by isl_val
27952         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
27953         (compute_bounds_for_param): use isl_val instead of isl_int
27954         (compute_bounds_for_loop): likewise
27955         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
27956         (build_linearized_memory_access): use isl_val instead of isl_int
27957         (pdr_stride_in_loop): likewise
27958         * graphite-optimize-isl.c:
27959         (getPrevectorMap): use isl_val instead of isl_int
27960         * graphite-poly.c:
27961         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
27962         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
27963         (extern the_isl_ctx): declare
27964         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
27965         (extract_affine_gmp): likewise
27966         (wrap): likewise
27967         (build_loop_iteration_domains): likewise
27968         (add_param_constraints): likewise
27969
27970 2014-08-11  Richard Biener  <rguenther@suse.de>
27971
27972         PR tree-optimization/62075
27973         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
27974         handle uses in patterns.
27975
27976 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27977             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27978             Anna Tikhonova  <anna.tikhonova@intel.com>
27979             Ilya Tocar  <ilya.tocar@intel.com>
27980             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27981             Ilya Verbin  <ilya.verbin@intel.com>
27982             Kirill Yukhin  <kirill.yukhin@intel.com>
27983             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27984
27985         * common/config/i386/i386-common.c
27986         (OPTION_MASK_ISA_AVX512VL_SET): Define.
27987         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
27988         (ix86_handle_option): Handle OPT_mavx512vl.
27989         * config/i386/cpuid.h (bit_AVX512VL): Define.
27990         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
27991         set -mavx512vl accordingly.
27992         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27993         OPTION_MASK_ISA_AVX512VL.
27994         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
27995         (ix86_option_override_internal): Define PTA_AVX512VL, handle
27996         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
27997         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
27998         * config/i386/i386.h (TARGET_AVX512VL): Define.
27999         (TARGET_AVX512VL_P(x)): Ditto.
28000         * config/i386/i386.opt: Add mavx512vl.
28001
28002 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
28003
28004         PR tree-optimization/62073
28005         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
28006         a basic block.
28007
28008 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
28009             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
28010             Anna Tikhonova  <anna.tikhonova@intel.com>
28011             Ilya Tocar  <ilya.tocar@intel.com>
28012             Andrey Turetskiy  <andrey.turetskiy@intel.com>
28013             Ilya Verbin  <ilya.verbin@intel.com>
28014             Kirill Yukhin  <kirill.yukhin@intel.com>
28015             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
28016
28017         * common/config/i386/i386-common.c
28018         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
28019         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
28020         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
28021         (ix86_handle_option): Handle OPT_mavx512bw.
28022         * config/i386/cpuid.h (bit_AVX512BW): Define.
28023         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
28024         set -mavx512bw accordingly.
28025         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28026         OPTION_MASK_ISA_AVX512BW.
28027         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
28028         (ix86_option_override_internal): Define PTA_AVX512BW, handle
28029         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
28030         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
28031         * config/i386/i386.h (TARGET_AVX512BW): Define.
28032         (TARGET_AVX512BW_P(x)): Ditto.
28033         * config/i386/i386.opt: Add mavx512bw.
28034
28035 2014-08-11  Richard Biener  <rguenther@suse.de>
28036
28037         PR tree-optimization/62070
28038         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
28039         Remove SSA checking.
28040
28041 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
28042
28043         * asan.c (asan_check_flags): New enum.
28044         (build_check_stmt_with_calls): Removed function.
28045         (build_check_stmt): Split inlining logic to
28046         asan_expand_check_ifn.
28047         (instrument_derefs): Rename parameter.
28048         (instrument_mem_region_access): Rename parameter.
28049         (instrument_strlen_call): Likewise.
28050         (asan_expand_check_ifn): New function.
28051         (asan_instrument): Remove old code.
28052         (pass_sanopt::execute): Change handling of
28053         asan-instrumentation-with-call-threshold.
28054         (asan_clear_shadow): Fix formatting.
28055         (asan_function_start): Likewise.
28056         (asan_emit_stack_protection): Likewise.
28057         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
28058         Update description.
28059         * internal-fn.c (expand_ASAN_CHECK): New function.
28060         * internal-fn.def (ASAN_CHECK): New internal function.
28061         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
28062         Update description.
28063         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
28064         * tree.c: Small comment fix.
28065
28066 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
28067
28068         * gimple.c (gimple_call_fnspec): Support internal functions.
28069         (gimple_call_return_flags): Use const.
28070         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
28071         * internal-fn.def: Add fnspec information.
28072         * internal-fn.h (internal_fn_fnspec): New function.
28073         (init_internal_fns): Declare new function.
28074         * internal-fn.c (internal_fn_fnspec_array): New global variable.
28075         (init_internal_fns): New function.
28076         * tree-core.h: Update macro call.
28077         * tree.c (build_common_builtin_nodes): Initialize internal fns.
28078
28079 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
28080
28081         * lto-streamer.h (struct output_block::symbol): Change from
28082         struct symtab_node to plain symtab_node.
28083         (referenced_from_this_partition_p): Change first parameter
28084         from struct symtab_node to plain symtab_node.
28085
28086 2014-08-10  Marek Polacek  <polacek@redhat.com>
28087
28088         PR c/51849
28089         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
28090
28091 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
28092
28093         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
28094         DECL correctly; do not give up on types in static storage.
28095
28096 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
28097
28098         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
28099
28100 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
28101
28102         * graphite-isl-ast-to-gimple.c:
28103         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
28104
28105         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
28106
28107 2014-08-08  Guozhi Wei  <carrot@google.com>
28108
28109         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
28110
28111 2014-08-08  Cary Coutant  <ccoutant@google.com>
28112
28113         * dwarf2out.c (get_skeleton_type_unit): Remove.
28114         (output_skeleton_debug_sections): Remove skeleton type units.
28115         (output_comdat_type_unit): Likewise.
28116         (dwarf2out_finish): Likewise.
28117
28118 2014-08-07  Yi Yang  <ahyangyi@google.com>
28119
28120         * predict.c (expr_expected_value_1): Remove the redundant assignment.
28121
28122 2014-08-08  Richard Biener  <rguenther@suse.de>
28123
28124         * lto-streamer.h (struct lto_input_block): Make it a class
28125         with a constructor.
28126         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
28127         (struct lto_function_header, struct lto_simple_header,
28128         struct lto_simple_header_with_strings,
28129         struct lto_decl_header, struct lto_function_header): Make
28130         a simple inheritance hieararchy.  Remove unused fields.
28131         (struct lto_asm_header): Remove.
28132         * lto-streamer-out.c (produce_asm): Adjust.
28133         (lto_output_toplevel_asms): Likewise.
28134         (produce_asm_for_decls): Likewise.
28135         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
28136         * data-streamer-in.c (string_for_index): Likewise.
28137         * ipa-inline-analysis.c (inline_read_section): Likewise.
28138         * ipa-prop.c (ipa_prop_read_section): Likewise.
28139         (read_replacements_section): Likewise.
28140         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28141         * lto-section-in.c (lto_create_simple_input_block): Likewise.
28142         (lto_destroy_simple_input_block): Likewise.
28143         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
28144         (lto_input_toplevel_asms): Likewise.
28145
28146 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
28147             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
28148             Anna Tikhonova  <anna.tikhonova@intel.com>
28149             Ilya Tocar  <ilya.tocar@intel.com>
28150             Andrey Turetskiy  <andrey.turetskiy@intel.com>
28151             Ilya Verbin  <ilya.verbin@intel.com>
28152             Kirill Yukhin  <kirill.yukhin@intel.com>
28153             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
28154
28155         * common/config/i386/i386-common.c
28156         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
28157         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
28158         (ix86_handle_option): Handle OPT_mavx512dq.
28159         * config/i386/cpuid.h (bit_AVX512DQ): Define.
28160         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
28161         set -mavx512dq accordingly.
28162         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28163         OPTION_MASK_ISA_AVX512DQ.
28164         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
28165         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
28166         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
28167         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
28168         * config/i386/i386.h (TARGET_AVX512DQ): Define.
28169         (TARGET_AVX512DQ_P(x)): Ditto.
28170         * config/i386/i386.opt: Add mavx512dq.
28171
28172 2014-08-08  Richard Biener  <rguenther@suse.de>
28173
28174         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
28175         target_percent, target_percent_s): Export.
28176         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
28177         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
28178         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
28179         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
28180         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
28181         Move to gimple-fold.c.
28182         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
28183         strcat and strcpy.
28184         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
28185         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
28186         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
28187         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
28188         (rewrite_call_expr_array): Remove.
28189         (fold_builtin_sprintf_chk): Likewise.
28190         (fold_builtin_snprintf_chk): Likewise.
28191         (fold_builtin_varargs): Remove handling of sprintf_chk,
28192         vsprintf_chk, snprintf_chk and vsnprintf_chk.
28193         (gimple_fold_builtin_sprintf_chk): Remove.
28194         (gimple_fold_builtin_snprintf_chk): Likewise.
28195         (gimple_fold_builtin_varargs): Likewise.
28196         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
28197         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
28198         * gimple.c (gimple_seq_add_seq_without_update): New function.
28199         * gimple.h (gimple_seq_add_seq_without_update): Declare.
28200         * gimple-fold.c: Include output.h.
28201         (gsi_replace_with_seq_vops): New function, split out from ...
28202         (gimplify_and_update_call_from_tree): ... here.
28203         (replace_call_with_value): New function.
28204         (replace_call_with_call_and_fold): Likewise.
28205         (var_decl_component_p): Moved from builtins.c.
28206         (gimple_fold_builtin_memory_op): Moved from builtins.c
28207         fold_builtin_memory_op and rewritten to GIMPLE.
28208         (gimple_fold_builtin_memset): Likewise.
28209         (gimple_fold_builtin_strcpy): Likewise.
28210         (gimple_fold_builtin_strncpy): Likewise.
28211         (gimple_fold_builtin_strcat): Likewise.
28212         (gimple_fold_builtin_fputs): Likewise.
28213         (gimple_fold_builtin_memory_chk): Likewise.
28214         (gimple_fold_builtin_stxcpy_chk): Likewise.
28215         (gimple_fold_builtin_stxncpy_chk): Likewise.
28216         (gimple_fold_builtin_snprintf_chk): Likewise.
28217         (gimple_fold_builtin_sprintf_chk): Likewise.
28218         (gimple_fold_builtin_strlen): New function.
28219         (gimple_fold_builtin_with_strlen): New function split out from
28220         gimple_fold_builtin.
28221         (gimple_fold_builtin): Change signature and handle
28222         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
28223         here.  Call gimple_fold_builtin_with_strlen.
28224         (gimple_fold_call): Adjust.
28225
28226 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
28227
28228         * calls.c (precompute_arguments): Check
28229         promoted_for_signed_and_unsigned_p and set the promoted mode.
28230         (promoted_for_signed_and_unsigned_p): New function.
28231         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
28232         and set the promoted mode.
28233         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
28234         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
28235         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
28236
28237
28238 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
28239
28240         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
28241         instead of SUBREG_PROMOTED_UNSIGNED_SET.
28242         (expand_call): Likewise.
28243         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
28244         to get promoted mode.
28245         * combine.c (record_promoted_value): Skip > 0 comparison with
28246         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
28247         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
28248         of SUBREG_PROMOTED_UNSIGNED_P.
28249         (convert_modes): Likewise.
28250         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
28251         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
28252         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
28253         SUBREG_PROMOTED_UNSIGNED_SET.
28254         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
28255         instead of SUBREG_PROMOTED_UNSIGNED_SET.
28256         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
28257         SUBREG_PROMOTED_SET.
28258         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
28259         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
28260         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
28261         of SUBREG_PROMOTED_UNSIGNED_P.
28262         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
28263         (SUBREG_PROMOTED_SET): New define.
28264         (SUBREG_PROMOTED_GET): Likewise.
28265         (SUBREG_PROMOTED_SIGN): Likewise.
28266         (SUBREG_PROMOTED_SIGNED_P): Likewise.
28267         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
28268         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
28269         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
28270         instead of SUBREG_PROMOTED_UNSIGNED_GET.
28271         (nonzero_bits1): Skip > 0 comparison with the results as
28272         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
28273         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
28274         of !SUBREG_PROMOTED_UNSIGNED_P.
28275         * simplify-rtx.c (simplify_unary_operation_1): Use new
28276         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
28277         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
28278         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
28279         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
28280
28281 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
28282
28283         * ipa-devirt.c: Include gimple-pretty-print.h
28284         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
28285         further tests.
28286         (decl_maybe_in_construction_p): Fix conditional on cdtor check
28287         (get_polymorphic_call_info): Fix return value
28288         (type_change_info): New sturcture based on ipa-prop
28289         variant.
28290         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
28291         based on ipa-prop variant.
28292         (extr_type_from_vtbl_ptr_store): New function
28293         based on ipa-prop variant.
28294         (record_known_type): New function.
28295         (check_stmt_for_type_change): New function.
28296         (get_dynamic_type): New function.
28297         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
28298         * tree-ssa-pre.c: ipa-utils.h
28299         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
28300         machinery; sanity check with ipa-prop devirtualization.
28301         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
28302         polymorphic flag.
28303
28304 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
28305
28306         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
28307         * alias.c, cfgexpand.c, cgraphbuild.c,
28308         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
28309         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
28310         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
28311         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
28312         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
28313         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
28314         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
28315         dse.c, except.c, gengtype.c, gimple-expr.c,
28316         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
28317         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
28318         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
28319         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
28320         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
28321         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
28322         pointer-set.h.
28323         * pointer-set.c: Remove file.
28324         * pointer-set.h: Remove file.
28325
28326 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28327
28328         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
28329         * config/arm/types.md (f_sels, f_seld): Delete.
28330
28331 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28332
28333         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
28334         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
28335         (aarch64_movdi_<mode>high): Likewise.
28336         (aarch64_mov<mode>high_di): Likewise.
28337         (aarch64_movdi_<mode>low): Likewise.
28338         (aarch64_mov<mode>low_di): Likewise.
28339         (aarch64_movtilow_tilow): Likewise.
28340         Add comment explaining usage of fp,simd attributes and of
28341         TARGET_FLOAT and TARGET_SIMD.
28342
28343 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
28344             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28345
28346         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
28347         Use MOVN when one of the half-words is 0xffff.
28348
28349 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
28350
28351         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
28352
28353 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28354
28355         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
28356         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
28357         (rfs_str): String corresponding to RFS_* constants.
28358         (rank_for_schedule_stats_t): New typedef.
28359         (rank_for_schedule_stats): New static variable.
28360         (rfs_result): New static function.
28361         (rank_for_schedule): Track statistics for deciding heuristics.
28362         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
28363         static functions.
28364         (ready_sort): Use them for debug printouts.
28365         (schedule_block): Init statistics state.  Print statistics on
28366         rank_for_schedule decisions.
28367
28368 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28369
28370         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
28371
28372 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
28373
28374         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
28375         constraint.
28376
28377 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
28378
28379         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
28380         function to not conflict.
28381         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
28382         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
28383         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
28384         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
28385         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
28386         of pointer_map.
28387
28388 2014-08-07  Marek Polacek  <polacek@redhat.com>
28389
28390         * fold-const.c (fold_binary_loc): Add folding of
28391         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
28392
28393 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
28394
28395         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
28396         instead of type size.
28397         (ASM_FINISH_DECLARE_OBJECT): Likewise.
28398
28399 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
28400
28401         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
28402         (*thumb1_movqi_insn): Likewise.
28403         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
28404
28405 2014-08-07  Tom de Vries  <tom@codesourcery.com>
28406
28407         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
28408         (glibc_2_11_or_earlier): Remove effective-target keywords.
28409
28410 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
28411
28412         * config/arm/arm.c (bdesc_2arg): Fix typo.
28413         (arm_atomic_assign_expand_fenv): Remove The default implementation.
28414
28415 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28416
28417         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
28418
28419 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
28420
28421         PR debug/61923
28422         * haifa-sched.c (advance_one_cycle): Fix dump.
28423         (schedule_block): Don't advance cycle if we are already at the
28424         beginning of the cycle.
28425
28426 2014-08-06  Martin Jambor  <mjambor@suse.cz>
28427
28428         PR ipa/61393
28429         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
28430
28431 2014-08-06  Richard Biener  <rguenther@suse.de>
28432
28433         PR lto/62034
28434         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
28435         SCCs here.
28436         (lto_input_tree): Pop SCCs here.
28437
28438 2014-08-06  Richard Biener  <rguenther@suse.de>
28439
28440         PR tree-optimization/61320
28441         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
28442         handle misaligned loads.
28443
28444 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
28445
28446         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
28447         (aarch64_expand_vec_perm_const): Check for dup before zip.
28448
28449 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28450
28451         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
28452         CONST_INT_P instead of GET_CODE and compare.
28453         (aarch64_select_cc_mode): Likewise.
28454         (aarch64_print_operand): Likewise.
28455         (aarch64_rtx_costs): Likewise.
28456         (aarch64_simd_valid_immediate): Likewise.
28457         (aarch64_simd_check_vect_par_cnst_half): Likewise.
28458         (aarch64_simd_emit_pair_result_insn): Likewise.
28459
28460 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
28461
28462         * gdbhooks.py (find_gcc_source_dir): New helper function.
28463         (class PassNames): New class, locating and parsing passes.def.
28464         (class BreakOnPass): New command "break-on-pass".
28465
28466 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
28467
28468         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
28469         getting olde.
28470
28471 2014-08-05  Richard Biener  <rguenther@suse.de>
28472
28473         PR rtl-optimization/61672
28474         * emit-rtl.h (mem_attrs_eq_p): Declare.
28475         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
28476         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
28477         * cfgcleanup.c (merge_memattrs): Likewise.
28478         Include emit-rtl.h.
28479
28480 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28481
28482         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
28483         rather than singleton vectors.
28484         (vqdmlsls_lane_s32): Likewise.
28485
28486 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28487
28488         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
28489         Use VSDQ_HSI mode iterator.
28490         (aarch64_sqrdmulh_laneq<mode>): Likewise.
28491         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
28492         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
28493         Use BUILTIN_VDQHS macro.
28494         (sqrdmulh_laneq): Likewise.
28495         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
28496         (vqdmlals_laneq_s32): Likewise.
28497         (vqdmlslh_laneq_s16): Likewise.
28498         (vqdmlsls_laneq_s32): Likewise.
28499         (vqdmulhh_laneq_s16): Likewise.
28500         (vqdmulhs_laneq_s32): Likewise.
28501         (vqrdmulhh_laneq_s16): Likewise.
28502         (vqrdmulhs_laneq_s32): Likewise.
28503
28504 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28505
28506         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
28507         (vmuld_laneq_f64): Likewise.
28508         (vmuls_laneq_f32): Likewise.
28509         (vmul_n_f64): Likewise.
28510         (vmuld_lane_f64): Reimplement in C.
28511         (vmuls_lane_f32): Likewise.
28512
28513 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28514
28515         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
28516         to reservation.
28517         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
28518
28519 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28520
28521         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
28522         (rbitsi2): Likewise.
28523         (*arm_rev): Set predicable and predicable_short_it attributes.
28524
28525 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28526
28527         * convert.c (convert_to_integer): Guard transformation to lrint by
28528         -fno-math-errno.
28529
28530 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
28531
28532         * config/aarch64/aarch64-builtins.c
28533         (aarch64_simd_builtin_type_mode): Delete.
28534         (v8qi_UP): Remap to V8QImode.
28535         (v4hi_UP): Remap to V4HImode.
28536         (v2si_UP): Remap to V2SImode.
28537         (v2sf_UP): Remap to V2SFmode.
28538         (v1df_UP): Remap to V1DFmode.
28539         (di_UP): Remap to DImode.
28540         (df_UP): Remap to DFmode.
28541         (v16qi_UP):V16QImode.
28542         (v8hi_UP): Remap to V8HImode.
28543         (v4si_UP): Remap to V4SImode.
28544         (v4sf_UP): Remap to V4SFmode.
28545         (v2di_UP): Remap to V2DImode.
28546         (v2df_UP): Remap to V2DFmode.
28547         (ti_UP): Remap to TImode.
28548         (ei_UP): Remap to EImode.
28549         (oi_UP): Remap to OImode.
28550         (ci_UP): Map to CImode.
28551         (xi_UP): Remap to XImode.
28552         (si_UP): Remap to SImode.
28553         (sf_UP): Remap to SFmode.
28554         (hi_UP): Remap to HImode.
28555         (qi_UP): Remap to QImode.
28556         (aarch64_simd_builtin_datum): Make mode a machine_mode.
28557         (VAR1): Build builtin name.
28558         (aarch64_init_simd_builtins): Remove dead code.
28559
28560 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
28561
28562         * graphite-isl-ast-to-gimple.c:
28563         (set_options): New function.
28564         (scop_to_isl_ast): Add calling of set_options.
28565
28566 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
28567
28568         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
28569         (analyze_iv_to_split_insn): Don't initialize them.
28570         (get_ivts_expr): Removed.
28571         (allocate_basic_variable, insert_base_initialization): Use
28572         SET_SRC instead of *get_ivts_expr.
28573         (split_iv): Use &SET_SRC instead of get_ivts_expr.
28574
28575 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
28576
28577         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
28578         (translate_isl_ast_for_loop): Add checking of the
28579         flag_loop_parallelize_all.
28580         (ast_build_before_for): New function.
28581         (scop_to_isl_ast): Add checking of the
28582         flag_loop_parallelize_all.
28583         * graphite-dependences.c: Move the defenition of the
28584         scop_get_dependences from graphite-optimize-isl.c to this file.
28585         (apply_schedule_on_deps): Add checking of the ux's emptiness.
28586         (carries_deps): Add checking of the x's value.
28587         * graphite-optimize-isl.c: Move the defenition of the
28588         scop_get_dependences to graphite-dependences.c.
28589         * graphite-poly.h: Add declarations of scop_get_dependences
28590         and carries_deps.
28591
28592 2014-08-04  Rohit  <rohitarulraj@freescale.com>
28593
28594         PR target/60102
28595         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
28596         names.
28597         (alt_reg_names): Likewise.
28598         (rs6000_dwarf_register_span): For SPE high registers, replace
28599         dwarf register numbers with GCC hard register numbers.
28600         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
28601         (rs6000_dbx_register_number): For SPE high registers, return dwarf
28602         register number for the corresponding GCC hard register number.
28603         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
28604         newly added GCC hard register numbers for SPE high registers.
28605         (DWARF_FRAME_REGISTERS):  Likewise.
28606         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
28607         (DWARF_FRAME_REGNUM): Likewise.
28608         (FIXED_REGISTERS): Likewise.
28609         (CALL_USED_REGISTERS): Likewise.
28610         (CALL_REALLY_USED_REGISTERS): Likewise.
28611         (REG_ALLOC_ORDER): Likewise.
28612         (enum reg_class): Likewise.
28613         (REG_CLASS_NAMES): Likewise.
28614         (REG_CLASS_CONTENTS): Likewise.
28615         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
28616
28617 2014-08-04  Richard Biener  <rguenther@suse.de>
28618
28619         * gimple-fold.h (gimple_fold_builtin): Remove.
28620         * gimple-fold.c (gimple_fold_builtin): Make static.
28621         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
28622         fold_stmt, not gimple_fold_builtin.
28623
28624 2014-08-04  Martin Liska <mliska@suse.cz>
28625
28626         * cgraph.h (csi_end_p): Removed.
28627         (csi_next): Likewise.
28628         (csi_node): Likewise.
28629         (csi_start): Likewise.
28630         (cgraph_node_in_set_p): Likewise.
28631         (cgraph_node_set_size): Likewise.
28632         (vsi_end_p): Likewise.
28633         (vsi_next): Likewise.
28634         (vsi_node): Likewise.
28635         (vsi_start): Likewise.
28636         (varpool_node_set_size): Likewise.
28637         (cgraph_node_set_nonempty_p): Likewise.
28638         (varpool_node_set_nonempty_p): Likewise.
28639         * cgraphunit.c (cgraph_process_new_functions): vec replaces
28640         cgraph_node_set.
28641         * ipa-inline-transform.c: Likewise.
28642         * ipa-utils.c (cgraph_node_set_new): Removed.
28643         (cgraph_node_set_add): Likewise.
28644         (cgraph_node_set_remove): Likewise.
28645         (cgraph_node_set_find): Likewise.
28646         (dump_cgraph_node_set): Likewise.
28647         (debug_cgraph_node_set): Likewise.
28648         (free_cgraph_node_set): Likewise.
28649         (varpool_node_set_new): Likewise.
28650         (varpool_node_set_add): Likewise.
28651         (varpool_node_set_remove): Likewise.
28652         (varpool_node_set_find): Likewise.
28653         (dump_varpool_node_set): Likewise.
28654         (free_varpool_node_set): Likewise.
28655         (debug_varpool_node_set): Likewise.
28656         * tree-emutls.c (struct tls_var_data):
28657         (emutls_index): Removed.
28658         (emutls_decl): Likewise.
28659         (gen_emutls_addr): Function implementation uses newly added
28660         hash_map<varpool_node *, tls_var_data>.
28661         (clear_access_vars): Likewise.
28662         (create_emultls_var): Likewise.
28663         (ipa_lower_emutls): Likewise.
28664         (reset_access): New function.
28665
28666 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
28667
28668         * config/i386/i386.c (ix86_option_override_internal): Add
28669         PTA_RDRND and PTA_MOVBE for bdver4.
28670
28671 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28672             James Greenhalgh  <james.greenhalgh@arm.com>
28673
28674         * doc/md.texi (clrsb): Document.
28675         (clz): Change reference to x into operand 1.
28676         (ctz): Likewise.
28677         (popcount): Likewise.
28678
28679 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28680
28681         PR target/61713
28682         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
28683         move to subtarget in serial version if result is ignored.
28684
28685 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28686             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28687
28688         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
28689         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
28690         (sched_analyze_insn): Update use of try_group_insn to
28691         sched_macro_fuse_insns.
28692         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
28693         arguments that are not conditional jumps.
28694
28695 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
28696
28697         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
28698         family information. Handle BTVER2 cpu with cpuid family value.
28699
28700 2014-08-04  Tom de Vries  <tom@codesourcery.com>
28701
28702         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
28703         (glibc_2_11_or_earlier): Document effective-target keywords.
28704
28705 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
28706
28707         * ipa-devirt.c (odr_type_warn_count): Add type.
28708         (possible_polymorphic_call_targets): Set it.
28709         (ipa_devirt): Use it.
28710
28711 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
28712
28713         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
28714         Document.
28715         * ipa-devirt.c: Include hash-map.h
28716         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
28717         (clear_speculation): Break out of ...
28718         (get_class_context): ... here; speed up handling obviously useless
28719         speculations.
28720         (odr_type_warn_count, decl_warn_count): New structures.
28721         (final_warning_record): New structure.
28722         (final_warning_records): New static variable.
28723         (possible_polymorphic_call_targets): Cleanup handling of
28724         speculative info; do not build speculation when user do not care;
28725         record info about warnings when asked for.
28726         (add_decl_warning): New function.
28727         (type_warning_cmp): New function.
28728         (decl_warning_cmp): New function.
28729         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
28730         (gate): Enable pass when warnings are requested.
28731         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
28732         options.
28733
28734 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
28735
28736         * hash-map.h (default_hashmap_traits::mark_key_deleted):
28737         Fix cast.
28738         (hash_map::remove): New method.
28739         (hash_map::traverse): New method.
28740         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
28741         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
28742         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
28743         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
28744         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
28745         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
28746         pointer_map.
28747
28748 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
28749
28750         * hash-set.h: new File.
28751         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
28752         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
28753         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
28754         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
28755         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
28756         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
28757         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
28758         varpool.c: Use hash_set instead of pointer_set.
28759
28760 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
28761
28762         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
28763
28764 2014-08-01  Jiong Wang <jiong.wang@arm.com>
28765
28766         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
28767         for frame access when strict_p is false.
28768
28769 2014-08-01  Renlin Li <renlin.li@arm.com>
28770 2014-08-01  Jiong Wang <jiong.wang@arm.com>
28771
28772         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
28773         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
28774         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
28775         Declaration.
28776         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
28777         predicate.
28778         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
28779         aarch64_mem_pair_offset.
28780
28781 2014-08-01  Jiong Wang <jiong.wang@arm.com>
28782
28783         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
28784         offset.
28785         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
28786         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
28787
28788 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
28789
28790         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
28791
28792 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
28793
28794         PR regression/61510
28795         * cgraphunit.c (analyze_functions): Use get_create rather than get
28796         for decls which are clones of abstract functions.
28797
28798 2014-08-01  Martin Liska  <mliska@suse.cz>
28799
28800         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
28801         * ipa-prop.h (count_formal_params): Global function created from static.
28802         * ipa-prop.c (count_formal_params): Likewise.
28803         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
28804         profiles for semantically equivalent functions.
28805         * passes.c (do_per_function): If we load body of a function
28806         during WPA, this condition should behave same.
28807         * varpool.c (ctor_for_folding): More tolerant assert for variable
28808         aliases created during WPA.
28809
28810 2014-08-01  Martin Liska  <mliska@suse.cz>
28811
28812         * doc/invoke.texi (Options That Control Optimization): Documentation
28813         for -foptimize-strlen introduced. Optimization levels default options
28814         fixed.
28815
28816 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
28817
28818         * opts.c (common_handle_option): Handle -fsanitize=alignment.
28819         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
28820         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
28821         type to bool.
28822         * stor-layout.h (min_align_of_type): New prototype.
28823         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
28824         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
28825         check.
28826         * ubsan.c: Include builtins.h.
28827         (ubsan_expand_bounds_ifn): Change return type to bool,
28828         always return true.
28829         (ubsan_expand_null_ifn): Change return type to bool, change
28830         argument to gimple_stmt_iterator *.  Handle both null and alignment
28831         sanitization, take type from ckind argument's type rather than
28832         first argument.
28833         (instrument_member_call): Removed.
28834         (instrument_mem_ref): Remove t argument, add mem and base arguments.
28835         Handle both null and alignment sanitization, don't say whole
28836         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
28837         call instead of 2 argument.
28838         (instrument_null): Adjust instrument_mem_ref caller.  Don't
28839         instrument calls here.
28840         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
28841         like SANITIZE_NULL.
28842         * stor-layout.c (min_align_of_type): New function.
28843         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
28844         Or it into SANITIZE_UNDEFINED.
28845         * doc/invoke.texi (-fsanitize=alignment): Document.
28846
28847 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28848
28849         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
28850
28851 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28852
28853         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
28854         inchash.
28855         (vn_reference_compute_hash): Dito.
28856         (vn_nary_op_compute_hash): Dito.
28857         (vn_phi_compute_hash): Dito.
28858         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
28859
28860 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28861
28862         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
28863         Rename to inchash:add_expr_commutative. Convert to inchash.
28864         (iterative_hash_hashable_expr): Rename to
28865         inchash:add_hashable_expr. Convert to inchash.
28866         (avail_expr_hash): Dito.
28867
28868 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28869
28870         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
28871         Convert to inchash.
28872
28873 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28874
28875         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
28876
28877 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28878
28879         * Makefile.in (OBJS): Add rtlhash.o
28880         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
28881         (loc_checksum): Dito.
28882         (loc_checksum_ordered): Dito.
28883         (hash_loc_operands): Dito.
28884         (hash_locs): Dito.
28885         (hash_loc_list): Dito.
28886         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
28887         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
28888         * rtlhash.c: New file.
28889         * rtlhash.h: New file.
28890
28891 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28892
28893         * inchash.h (inchash): Change inchash class to namespace.
28894         (class hash): ... Rename from inchash.
28895         (add_object): Move from macro to class template.
28896         * lto-streamer-out.c (hash_tree): Change inchash
28897         to inchash::hash.
28898         * tree.c (build_type_attribute_qual_variant): Dito.
28899         (type_hash_list): Dito.
28900         (attribute_hash_list): Dito.
28901         (iterative_hstate_expr): Rename to inchash::add_expr
28902         (build_range_type_1): Change inchash to inchash::hash
28903         and use hash::add_expr.
28904         (build_array_type_1): Dito.
28905         (build_function_type): Dito
28906         (build_method_type_directly): Dito.
28907         (build_offset_type): Dito.
28908         (build_complex_type): Dito.
28909         (make_vector_type): Dito.
28910         * tree.h (iterative_hash_expr): Dito.
28911
28912 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
28913
28914         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
28915
28916 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
28917
28918         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
28919         correct alphabetical position.
28920         (vpaddd_f64): Rewrite using builtins.
28921         (vpaddd_s64): Move to correct alphabetical position.
28922         (vpaddd_u64): New.
28923
28924 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
28925
28926         PR target/61844
28927         * config/sh/sh.c (sh_legitimate_address_p,
28928         sh_legitimize_reload_address): Handle reg+reg address modes when
28929         ALLOW_INDEXED_ADDRESS is false.
28930         * config/sh/predicates.md (general_movsrc_operand,
28931         general_movdst_operand): Likewise.
28932
28933 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
28934
28935         * config/aarch64/aarch64-builtins.c
28936         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
28937         BYTES_BIG_ENDIAN.
28938
28939 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
28940
28941         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
28942         the generated mask based on BYTES_BIG_ENDIAN.
28943         (aarch64_simd_check_vect_par_cnst_half): New.
28944         * config/aarch64/aarch64-protos.h
28945         (aarch64_simd_check_vect_par_cnst_half): New.
28946         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
28947         the check out to aarch64_simd_check_vect_par_cnst_half.
28948         (vect_par_cnst_lo_half): Likewise.
28949         * config/aarch64/aarch64-simd.md
28950         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
28951         (move_hi_quad_<mode>): Always generate a low mask.
28952
28953 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28954
28955         * doc/invoke.texi (AVR Options): Add documentation about
28956         __AVR_DEVICE_NAME__ built-in macro.
28957
28958 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
28959
28960         PR target/61948
28961         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
28962         constraints are satisfied.
28963         (<shift>di3_neon): Likewise.
28964
28965 2014-07-31  Richard Biener  <rguenther@suse.de>
28966
28967         PR tree-optimization/61964
28968         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
28969         by structural equality.
28970
28971 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
28972
28973         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
28974         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
28975         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
28976         New enums.
28977         * gcc.c (sanitize_spec_function): Support new option.
28978         (SANITIZER_SPEC): Remove now redundant check.
28979         * opts.c (common_handle_option): Support new option.
28980         (finish_options): Check for incompatibilities.
28981         * toplev.c (process_options): Split userspace-specific checks.
28982
28983 2014-07-31  Richard Biener  <rguenther@suse.de>
28984
28985         * lto-streamer.h (struct output_block): Remove global.
28986         (struct data_in): Remove labels, num_named_labels and
28987         num_unnamed_labels.
28988         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
28989         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
28990
28991 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
28992
28993         PR c++/60517
28994         * common.opt (-Wreturn-local-addr): Moved from c.opt.
28995         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
28996         (isolate_path): New argument to avoid inserting a trap.
28997         (find_implicit_erroneous_behaviour): Handle returning the address
28998         of a local variable.
28999         (find_explicit_erroneous_behaviour): Likewise.
29000
29001 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
29002
29003         PR lto/61868
29004         * toplev.c (init_random_seed): Move piece of code never called to
29005         set_random_seed.
29006         (set_random_seed): see above.
29007
29008 2014-07-31  Tom de Vries  <tom@codesourcery.com>
29009
29010         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
29011
29012 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
29013
29014         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
29015         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
29016
29017 2014-07-31  Richard Biener  <rguenther@suse.de>
29018
29019         * data-streamer.h (streamer_write_data_stream): Declare here,
29020         renamed from ...
29021         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
29022         * lto-cgraph.c (lto_output_node): Adjust.
29023         (lto_output_varpool_node): Likewise.
29024         * data-streamer-out.c (streamer_string_index): Likewise.
29025         (streamer_write_data_stream, lto_append_block): Move from ...
29026         * lto-section-out.c (lto_output_data_stream,
29027         lto_append_block): ... here.
29028
29029 2014-07-30  Mike Stump  <mikestump@comcast.net>
29030
29031         * configure.ac: Also check for popen.
29032         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
29033         * configure: Regenerate.
29034         * config.in:  Regenerate.
29035
29036 2014-07-30  Martin Jambor  <mjambor@suse.cz>
29037
29038         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
29039         parameter to gimple.
29040
29041 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29042
29043         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
29044         address as second parameter to __tpf_eh_return routine.
29045
29046 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
29047
29048         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
29049         Thumb2.
29050
29051 2014-07-30  Tom Tromey  <tromey@redhat.com>
29052
29053         PR c/59855
29054         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
29055         * doc/extend.texi (Type Attributes): Document designated_init
29056         attribute.
29057
29058 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
29059
29060         * graphite-isl-ast-to-gimple.c:
29061         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
29062         (gcc_expression_from_isl_expression): Pass type to
29063         gcc_expression_from_isl_ast_expr_id.
29064
29065 2014-07-30  Richard Biener  <rguenther@suse.de>
29066
29067         * lto-streamer.h (lto_write_data): New function.
29068         * langhooks.c (lhd_append_data): Do not free block.
29069         * lto-section-out.c (lto_write_data): New function writing
29070         raw data to the current section.
29071         (lto_write_stream): Adjust for langhook semantic change.
29072         (lto_destroy_simple_output_block): Write header directly.
29073         * lto-opts.c (lto_write_options): Write options directly.
29074         * lto-streamer-out.c (produce_asm): Write heaeder directly.
29075         (lto_output_toplevel_asms): Likewise.
29076         (copy_function_or_variable): Copy data directly.
29077         (write_global_references): Output index table directly.
29078         (lto_output_decl_state_refs): Likewise.
29079         (write_symbol): Write data directly.
29080         (produce_symtab): Adjust.
29081         (produce_asm_for_decls): Output header and refs directly.
29082
29083 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
29084
29085         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
29086         to speculative_targets
29087         (get_class_context): Fix handling of contextes without outer type;
29088         avoid matching non-polymorphic types in LTO.
29089         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
29090         parameter to speculative_targetsp; handle speculation.
29091         (dump_possible_polymorphic_call_targets): Update dumping.
29092
29093 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
29094
29095         * common.opt (Wodr): Enable by default.
29096
29097 2014-07-29  Olivier Hainque  <hainque@adacore.com>
29098
29099         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
29100
29101 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
29102
29103         PR bootstrap/61914
29104         * gengtype.c (strtoken): New function.
29105         (create_user_defined_type): Replace strtok with strtoken.
29106
29107 2014-07-29  Nathan Sidwell  <nathan@acm.org>
29108
29109         * gcov-io.c (gcov_var): Make hidden.
29110         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
29111         (gcov_do_dump): Declare.
29112         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
29113
29114 2014-07-29  Martin Jambor  <mjambor@suse.cz>
29115
29116         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
29117         parameter to gimple.
29118         (sra_modify_assign): Likewise.
29119
29120 2014-07-29  Richard Biener  <rguenther@suse.de>
29121
29122         PR middle-end/52478
29123         * expr.c (expand_expr_real_2): Revert last change.
29124
29125 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
29126
29127         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
29128         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
29129         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
29130         call.
29131         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
29132         (contains_type_p): Forward declare.
29133         (polymorphic_call_target_hasher::hash): Hash speculative info.
29134         (polymorphic_call_target_hasher::equal): Compare speculative info.
29135         (get_class_context): Handle speuclation.
29136         (contains_type_p): Update.
29137         (get_polymorphic_call_info_for_decl): Update.
29138         (walk_ssa_copies): Break out from ...
29139         (get_polymorphic_call_info): ... here; set speculative context
29140         before giving up.
29141         * ipa-prop.c (ipa_write_indirect_edge_info,
29142         ipa_read_indirect_edge_info): Stream speculative context.
29143         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
29144         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
29145         SPECULATIVE_MAYBE_DERIVED_TYPE).
29146         (possible_polymorphic_call_targets overriders): Update.
29147         (dump_possible_polymorphic_call_targets overriders): Update.
29148         (dump_possible_polymorphic_call_target_p overriders): Update.
29149
29150 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
29151
29152         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
29153         ipa-devirt path; fix thinko there.
29154
29155 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
29156
29157         * config/i386/i386.c (ix86_return_in_memory): Replace one
29158         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
29159
29160 2014-07-28  Marek Polacek  <polacek@redhat.com>
29161
29162         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
29163
29164 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
29165
29166         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
29167         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
29168         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
29169         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
29170         (USE_LD_AS_NEEDED): Likewise.
29171         (ASM_APP_ON): Likewise.
29172         (ASM_APP_OFF): Likewise.
29173         (TARGET_POSIX_IO): Likewise.
29174         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
29175         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
29176         (USE_LD_AS_NEEDED): Likewise.
29177         (ASM_APP_ON): Likewise.
29178         (ASM_APP_OFF): Likewise.
29179         (TARGET_POSIX_IO): Likewise.
29180
29181 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
29182
29183         PR middle-end/61734
29184         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
29185         operators other than the equality operators.
29186
29187 2014-07-28  Richard Biener  <rguenther@suse.de>
29188
29189         PR middle-end/52478
29190         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
29191         sure to register SImode ones, not only >= word_mode ones.
29192         * expr.c (expand_expr_real_2): When expanding -ftrapv
29193         binops do not use OPTAB_LIB_WIDEN.
29194
29195 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
29196
29197         PR middle-end/61919
29198         * tree-outof-ssa.c (insert_partition_copy_on_edge)
29199         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
29200         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
29201         inserting them in the insn stream.
29202
29203 2014-07-28  Marek Polacek  <polacek@redhat.com>
29204
29205         PR middle-end/61913
29206         * common.opt (Wodr): Add Var.
29207
29208 2014-07-28  Richard Biener  <rguenther@suse.de>
29209
29210         PR tree-optimization/61921
29211         * tree-ssa-structalias.c (create_variable_info_for_1): Check
29212         if there is a varpool node before dereferencing it.
29213
29214 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
29215
29216         * graphite-sese-to-poly.c:
29217         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
29218         id of the pbb), which contains pointer to the pbb1.
29219
29220         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
29221
29222 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
29223
29224         * graphite-isl-ast-to-gimple.c:
29225         (graphite_create_new_guard): New function.
29226         (translate_isl_ast_node_if): New function.
29227         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
29228
29229         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
29230
29231 2014-07-27  Anthony Green  <green@moxielogic.com>
29232
29233         * config.gcc: Add moxie-*-moxiebox* configuration.
29234         * config/moxie/moxiebox.h: New file.
29235
29236 2014-07-26  Andrew Pinski  <apinski@cavium.com>
29237
29238         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
29239         from the read only register.
29240
29241 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
29242
29243         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
29244         as the allocation class if it isn't likely to be spilled.
29245
29246 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
29247
29248         * rtl.h (tls_referenced_p): Declare.
29249         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
29250         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
29251         (mips_cannot_force_const_mem): Use tls_referenced_p.
29252         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
29253         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
29254         instead of pa_tls_referenced_p.
29255         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
29256         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
29257         (pa_legitimate_constant_p): Likewise.
29258         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
29259         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
29260         (rs6000_cannot_force_const_mem, rs6000_emit_move)
29261         (rs6000_address_for_altivec): Use tls_referenced_p instead of
29262         rs6000_tls_referenced_p.
29263         (rs6000_tls_symbol_ref_1): Delete.
29264
29265 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
29266
29267         PR target/44551
29268         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
29269         Optimize inverse of a VEC_CONCAT.
29270
29271 2014-07-25  Xinliang David Li  <davidxl@google.com>
29272
29273         * params.def: New parameter.
29274         * coverage.c (get_coverage_counts): Check new flag.
29275         (coverage_compute_profile_id): Check new flag.
29276         (coverage_begin_function): Check new flag.
29277         (coverage_end_function): Check new flag.
29278         * value-prof.c (coverage_node_map_initialized_p): New function.
29279         (init_node_map): Populate map with all functions.
29280         * doc/invoke.texi: Document new parameter.
29281
29282 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
29283             Richard Biener <rguenther@suse.de>
29284
29285         * lto-streamer-out.c (struct sccs): Turn to ...
29286         (class DFS): ... this one; refactor the DFS walk so it can
29287         be re-done on per-SCC basis.
29288         (DFS::DFS): New constructor.
29289         (DFS::~DFS): New destructor.
29290         (hash_tree): Add new MAP argument holding in-SCC hash values;
29291         remove POINTER_TYPE hashing hack.
29292         (scc_entry_compare): Rename to ...
29293         (DFS::scc_entry_compare): ... this one.
29294         (hash_scc): Rename to ...
29295         (DFS::hash_scc): ... this one; pass output_block instead
29296         of streamer_cache; work harder to get unique and stable SCC
29297         hashes.
29298         (DFS_write_tree): Rename to ...
29299         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
29300         (lto_output_tree): Update.
29301
29302 2014-07-25  Andi Kleen  <ak@linux.intel.com>
29303
29304         * lto-streamer-out.c (hash_tree): Convert to inchash.
29305
29306 2014-07-25  Andi Kleen  <ak@linux.intel.com>
29307
29308         * tree.c (build_type_attribute_qual_variant): Use inchash.
29309         (type_hash_list): Dito.
29310         (attribute_hash_list): Dito
29311         (iterative_hstate_expr): Dito.
29312         (iterative_hash_expr): Dito.
29313         (build_range_type_1): Dito.
29314         (build_array_type_1): Dito.
29315         (build_function_type): Dito.
29316         (build_method_type_directly): Dito.
29317         (build_offset_type): Dito.
29318         (build_complex_type): Dito.
29319         (make_vector_type): Dito.
29320         * tree.h (iterative_hash_expr): Add compat wrapper.
29321         (iterative_hstate_expr): Add.
29322
29323 2014-07-25  Andi Kleen  <ak@linux.intel.com>
29324
29325         * Makefile.in (OBJS): Add inchash.o.
29326         (PLUGIN_HEADERS): Add inchash.h.
29327         * ipa-devirt.c: Include inchash.h.
29328         * lto-streamer-out.c: Dito.
29329         * tree-ssa-dom.c: Dito.
29330         * tree-ssa-pre.c: Dito.
29331         * tree-ssa-sccvn.c: Dito.
29332         * tree-ssa-tail-merge.c: Dito.
29333         * asan.c: Dito.
29334         * tree.c (iterative_hash_hashval_t): Move to ...
29335         (iterative_hash_host_wide_int): Move to ...
29336         * inchash.c: Here. New file.
29337         * tree.h (iterative_hash_hashval_t): Move to ...
29338         (iterative_hash_host_wide_int): Move to ...
29339         * inchash.h: Here. New file.
29340
29341 2014-07-25  Richard Biener  <rguenther@suse.de>
29342
29343         PR middle-end/61762
29344         PR middle-end/61894
29345         * fold-const.c (native_encode_int): Add and handle offset
29346         parameter to do partial encodings of expr.
29347         (native_encode_fixed): Likewise.
29348         (native_encode_real): Likewise.
29349         (native_encode_complex): Likewise.
29350         (native_encode_vector): Likewise.
29351         (native_encode_string): Likewise.
29352         (native_encode_expr): Likewise.
29353         * fold-const.c (native_encode_expr): Add offset parameter
29354         defaulting to -1.
29355         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
29356         (fold_ctor_reference): Handle all reads from tcc_constant
29357         ctors.
29358
29359 2014-07-25  Richard Biener  <rguenther@suse.de>
29360
29361         * tree-inline.c (estimate_move_cost): Mark speed_p argument
29362         as possibly unused.
29363
29364 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29365
29366         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
29367
29368 2014-07-24  Kyle McMartin  <kyle@redhat.com>
29369
29370         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
29371
29372 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29373
29374         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
29375         Add prototype.
29376         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
29377         function.
29378         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
29379         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
29380         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
29381
29382 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29383
29384         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
29385         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
29386         aggregate types.  Instead, *all* aggregate types, except for single-
29387         element or homogeneous float/vector aggregates, are quadword-aligned
29388         if required by their type alignment.  Issue -Wpsabi note when a type
29389         is now treated differently than before.
29390
29391 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29392
29393         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
29394         does not fit fully into floating-point registers, and there is still
29395         space in the register parameter area, use GPRs to pass those parts
29396         of the argument.  Issue -Wpsabi note if any parameter is now treated
29397         differently than before.
29398         (rs6000_arg_partial_bytes): Update.
29399
29400 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
29401
29402         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
29403
29404 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
29405
29406         * rtl.h (target_rtl): Remove lang_dependent_initialized.
29407         * toplev.c (initialize_rtl): Don't use it.  Move previously
29408         "language-dependent" calls to...
29409         (backend_init): ...here.
29410         (lang_dependent_init_target): Don't set lang_dependent_initialized.
29411         Assert that RTL initialization hasn't happend yet.
29412
29413 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
29414
29415         PR rtl-optimization/61629
29416         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
29417         they have already been initialized.
29418
29419 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
29420
29421         PR middle-end/61268
29422         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
29423         DECL_INCOMING_RTL and entry_parm.
29424         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
29425         * calls.c (load_register_parameters): Likewise argument values.
29426         (emit_library_call_value_1, store_one_arg): Likewise argument
29427         save areas.
29428         * config/i386/i386.c (assign_386_stack_local): Likewise the local
29429         stack slot.
29430         * explow.c (validize_mem): Modify the argument in-place.
29431
29432 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29433
29434         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
29435         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
29436
29437 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29438
29439         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
29440         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
29441
29442 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29443
29444         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
29445         (aarch64_save_callee_saves): New parameter "skip_wb".
29446         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
29447
29448 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29449
29450         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
29451         "wb_candidate2".
29452         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
29453
29454 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
29455
29456         * graphite-isl-ast-to-gimple.c:
29457         (graphite_create_new_loop): Add calling of isl_id_free to properly
29458         decrement reference counts.
29459
29460         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
29461
29462 2014-07-24  Martin Liska  <mliska@suse.cz>
29463         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
29464         function used.
29465         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
29466         (rs6000_code_end): Likewise.
29467
29468 2014-07-24  Martin Liska  <mliska@suse.cz>
29469
29470         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
29471         symtab_node funtion used.
29472         (rs6000_xcoff_declare_object_name): Likewise.
29473
29474 2014-07-24  Martin Liska  <mliska@suse.cz>
29475
29476         * cgraphunit.c (compile): Correct function used.
29477
29478 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
29479
29480         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
29481         as non-indexable.
29482
29483 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
29484
29485         PR lto/61802
29486         * varasm.c (bss_initializer_p): Handle offlined ctors.
29487         (align_variable, get_variable_align): Likewise.
29488         (make_decl_one_only): Likewise.
29489         (default_binds_local_p_1): Likewise.
29490         (decl_binds_to_current_def_p): Likewise.
29491         (get_variable_section): Get constructor if it is offlined.
29492         (assemble_variable_contents): Sanity check that the caller
29493         streamed in the ctor in LTO.
29494
29495 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
29496
29497         * graphite-isl-ast-to-gimple.c:
29498         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
29499         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
29500         isl_ast_op_pdiv_r to the different case.
29501
29502         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
29503
29504 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29505
29506         PR middle-end/61876
29507         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
29508         when flag_errno_math is on.
29509
29510 2014-07-24  Martin Liska  <mliska@suse.cz>
29511
29512         * cgraph.h (varpool_node):
29513         (availability get_availability (void)):
29514         created from cgraph_variable_initializer_availability
29515         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
29516         created from: cgraph_variable_initializer_availability
29517         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
29518         (void finalize_named_section_flags (void)):
29519         created from varpool_finalize_named_section_flags
29520         (bool assemble_decl (void)): created from varpool_assemble_decl
29521         (void analyze (void)): created from varpool_analyze_node
29522         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
29523         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
29524         (void remove_initializer (void)): created from varpool_remove_initializer
29525         (tree get_constructor (void)): created from varpool_get_constructor
29526         (bool externally_visible_p (void)): created from varpool_externally_visible_p
29527         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
29528         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
29529         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
29530         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
29531         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
29532         (static bool output_variables (void)): created from varpool_output_variables
29533         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
29534         created from varpool_extra_name_alias
29535         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
29536         (static void dump_varpool (FILE *f)): created from dump_varpool
29537         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
29538         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
29539         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
29540         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
29541         (void assemble_aliases (void)): created from assemble_aliases
29542
29543 2014-07-24  Martin Liska  <mliska@suse.cz>
29544
29545         * cgraph.h (symtab_node):
29546         (void register_symbol (void)): created from symtab_register_node
29547         (void remove (void)): created from symtab_remove_node
29548         (void dump (FILE *f)): created from dump_symtab_node
29549         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
29550         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
29551         (struct ipa_ref *add_reference (symtab_node *referred_node,
29552         enum ipa_ref_use use_type)): created from add_reference
29553         (struct ipa_ref *add_reference (symtab_node *referred_node,
29554         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
29555         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
29556         gimple stmt)): created from maybe_add_reference
29557         (bool semantically_equivalent_p (symtab_node *target)): created from
29558         symtab_semantically_equivalent_p
29559         (void remove_from_same_comdat_group (void)): created from
29560         remove_from_same_comdat_group
29561         (void add_to_same_comdat_group (symtab_node *old_node)): created from
29562         symtab_add_to_same_comdat_group
29563         (void dissolve_same_comdat_group_list (void)): created from
29564         symtab_dissolve_same_comdat_group_list
29565         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
29566         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
29567         created from symtab_alias_ultimate_target
29568         (inline symtab_node *next_defined_symbol (void)): created from
29569         symtab_next_defined_symbol
29570         (bool resolve_alias (symtab_node *target)): created from
29571         symtab_resolve_alias
29572         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
29573         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
29574         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
29575         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
29576         (void set_section (const char *section)): created from set_section_1
29577         (enum availability get_availability (void)): created from symtab_node_availability
29578         (void make_decl_local (void)): created from symtab_make_decl_local
29579         (bool real_symbol_p (void)): created from symtab_read_node
29580         (can_be_discarded_p (void)): created from symtab_can_be_discarded
29581         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
29582         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
29583         symtab_in_same_comdat_p;
29584         (bool address_taken_from_non_vtable_p (void)): created from
29585         address_taken_from_non_vtable_p
29586         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
29587         (static void dump_table (FILE *)): created from dump_symtab
29588         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
29589         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
29590         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
29591         symtab_used_from_object_file_p
29592         (void dump_base (FILE *)): created from dump_symtab_base
29593         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
29594         (void unregister (void)): created from symtab_unregister_node
29595         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
29596         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
29597         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
29598         symtab_nonoverwritable_alias_1
29599         * cgraph.h (cgraph_node):
29600         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
29601         created from cgraph_remove_node_and_inline_clones
29602         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
29603         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
29604         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
29605         (cgraph_node *function_symbol (enum availability *avail = NULL)):
29606         created from cgraph_function_node
29607         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
29608         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
29609         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
29610         created from cgraph_create_clone
29611         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
29612         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
29613         created from cgraph_create_virtual_clone
29614         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
29615         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
29616         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
29617         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
29618         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
29619         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
29620         created from cgraph_function_version_info
29621         (struct cgraph_function_version_info *insert_new_function_version (void)):
29622         created from insert_new_cgraph_node_version
29623         (struct cgraph_function_version_info *function_version (void)): created from
29624         get_cgraph_node_version
29625         (void analyze (void)): created from analyze_function
29626         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
29627         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
29628         tree real_alias) cgraph_add_thunk
29629         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
29630         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
29631         created from cgraph_function_or_thunk_node
29632         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
29633         created from expand_thunk
29634         (void reset (void)): created from cgraph_reset_node
29635         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
29636         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
29637         (void remove (void)): created from cgraph_remove_node
29638         (void dump (FILE *f)): created from dump_cgraph_node
29639         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
29640         (bool get_body (void)): created from cgraph_get_body
29641         (void release_body (void)): created from cgraph_release_function_body
29642         (void unnest (void)): created from cgraph_unnest_node
29643         (void make_local (void)): created from cgraph_make_node_local
29644         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
29645         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
29646         gcov_type count, int freq)): created from cgraph_create_edge
29647         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
29648         gcov_type count, int freq)): created from cgraph_create_indirect_edge
29649         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
29650         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
29651         created from cgraph_create_edge_including_clones
29652         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
29653         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
29654         (void remove_callers (void)): created from cgraph_node_remove_callers
29655         (void remove_callees (void)): created from cgraph_node_remove_callees
29656         (enum availability get_availability (void)): created from cgraph_function_body_availability
29657         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
29658         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
29659         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
29660         (void call_duplication_hooks (cgraph_node *node2)): created from
29661         cgraph_call_node_duplication_hooks
29662         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
29663         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
29664         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
29665         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
29666         (void call_function_insertion_hooks (void)):
29667         created from cgraph_call_function_insertion_hooks
29668         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
29669         (bool local_p (void)): created from cgraph_local_node
29670         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
29671         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
29672         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
29673         (inline bool only_called_directly_or_aliased_p (void)):
29674         created from cgraph_only_called_directly_or_aliased_p
29675         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
29676         created from cgraph_will_be_removed_from_program_if_no_direct_calls
29677         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
29678         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
29679         (bool can_remove_if_no_direct_calls_p (void)):
29680         created from cgraph_can_remove_if_no_direct_calls_p
29681         (inline bool has_gimple_body_p (void)):
29682         created from cgraph_function_with_gimple_body_p
29683         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
29684         (static void dump_cgraph (FILE *f)): created from dump_cgraph
29685         (static inline void debug_cgraph (void)): created from debug_cgraph
29686         (static void record_function_versions (tree decl1, tree decl2)):
29687         created from record_function_versions
29688         (static void delete_function_version (tree decl)):
29689         created from delete_function_version
29690         (static void add_new_function (tree fndecl, bool lowered)):
29691         created from cgraph_add_new_function
29692         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
29693         (static cgraph_node * create (tree decl)): created from cgraph_create_node
29694         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
29695         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
29696         (static cgraph_node *get_for_asmname (tree asmname)):
29697         created from cgraph_node_for_asm
29698         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
29699         created from cgraph_same_body_alias
29700         (static bool used_from_object_file_p_worker (cgraph_node *node,
29701         void *): new function
29702         (static bool non_local_p (cgraph_node *node, void *)):
29703         created from cgraph_non_local_node_p_1
29704         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
29705         created from verify_cgraph
29706         (static bool make_local (cgraph_node *node, void *)):
29707         created from cgraph_make_node_local
29708         (static cgraph_node *create_alias (tree alias, tree target)):
29709         created from cgraph_create_function_alias
29710         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
29711         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
29712         created from cgraph_create_edge_1
29713         * cgraph.h (varpool_node):
29714         (void remove (void)): created from varpool_remove_node
29715         (void dump (FILE *f)): created from dump_varpool_node
29716
29717 2014-07-24  Richard Biener  <rguenther@suse.de>
29718
29719         PR ipa/61823
29720         * tree-ssa-structalias.c (create_variable_info_for_1):
29721         Use varpool_get_constructor.
29722         (create_variable_info_for): Likewise.
29723
29724 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29725
29726         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
29727         subtract outgoing area size when restoring stack_pointer_rtx.
29728
29729 2014-07-24  Nick Clifton  <nickc@redhat.com>
29730
29731         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
29732         that operations are taking place in parallel.
29733         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
29734
29735 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
29736
29737         * omp-low.c (extract_omp_for_data): Add missing break statement.
29738
29739 2014-07-24  Richard Biener  <rguenther@suse.de>
29740
29741         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
29742         * tree-inline.c (estimate_move_cost): Add speed_p parameter
29743         and adjust MOVE_RATIO query accordingly.
29744         (estimate_num_insns): Adjust callers.
29745         * ipa-prop.c (ipa_populate_param_decls): Likewise.
29746         * ipa-cp.c (gather_context_independent_values,
29747         estimate_local_effects): Likewise.
29748         * ipa-split.c (consider_split): Likewise.
29749
29750 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
29751
29752         * config/i386/driver-i386.c: Remove names of unused arguments and
29753         unnecessary unused attributes.
29754         * config/i386/host-mingw32.c: Likewise.
29755         * config/i386/i386.c: Likewise.
29756         * config/i386/winnt-stubs.c: Likewise.
29757         * config/i386/winnt.c: Likewise.
29758
29759 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29760
29761         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
29762         (aarch64_gen_loadwb_pair): New helper function.
29763         (aarch64_expand_epilogue): Simplify code using new helper functions.
29764         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
29765
29766 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29767
29768         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
29769         (aarch64_gen_storewb_pair): New helper function.
29770         (aarch64_expand_prologue): Simplify code using new helper functions.
29771         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
29772
29773 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29774
29775         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
29776         Rename to aarch64_save_callee_saves, remove restore code.
29777         (aarch64_restore_callee_saves): New function.
29778
29779 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29780
29781         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
29782         (aarch64_save_callee_saves): New function to handle reg save
29783         for both core and vectore regs.
29784
29785 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29786
29787         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
29788         (aarch64_gen_store_pair): New helper function.
29789         (aarch64_save_or_restore_callee_save_registers)
29790         (aarch64_save_or_restore_fprs): Use new helper functions.
29791
29792 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29793
29794         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
29795         (aarch64_save_or_restore_callee_save_registers)
29796         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
29797
29798 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29799
29800         * config/aarch64/aarch64.c
29801         (aarch64_save_or_restore_callee_save_registers)
29802         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
29803
29804 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29805
29806         * config/aarch64/aarch64.c
29807         (aarch64_save_or_restore_callee_save_registers)
29808         (aarch64_save_or_restore_fprs): Remove 'increment'.
29809
29810 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29811
29812         * config/aarch64/aarch64.c
29813         (aarch64_save_or_restore_callee_save_registers)
29814         (aarch64_save_or_restore_fprs): Use register offset in
29815         cfun->machine->frame.reg_offset.
29816
29817 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29818
29819         * config/aarch64/aarch64.c
29820         (aarch64_save_or_restore_callee_save_registers)
29821         (aarch64_save_or_restore_fprs): Remove base_rtx.
29822
29823 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29824
29825         * config/aarch64/aarch64.c
29826         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
29827         to 'start_offset'.  Remove local variable 'start_offset'.
29828
29829 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29830
29831         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
29832         type to HOST_WIDE_INT.
29833
29834 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29835
29836         * config/aarch64/aarch64.c (aarch64_expand_prologue)
29837         (aarch64_save_or_restore_fprs)
29838         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
29839
29840 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29841
29842         * config/arm/t-rtems-eabi: Add
29843         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
29844         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
29845         mbig-endian/mthumb/march=armv7-r, and
29846         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
29847         multilibs.
29848
29849 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29850             Chris Johns <chrisj@rtems.org>
29851             Joel Sherrill <joel.sherrill@oarcorp.com>
29852
29853         * config.gcc: Add nios2-*-rtems*.
29854         * config/nios2/rtems.h: New file.
29855         * gcc/config/nios2/t-rtems: New file.
29856
29857 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
29858
29859         PR target/61396
29860         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
29861         constant numbers, not general constants.
29862         (rs6000_expand_vector_init): Ditto.
29863
29864 2014-07-23  Nathan Sidwell  <nathan@acm.org>
29865
29866         * gcov-tool.c (gcov_list): Declare here.
29867         (set_gcov_list): Remove.
29868         (gcov_output_files): Set gcov_list directly.
29869
29870 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
29871
29872         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
29873
29874 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29875
29876         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
29877         callee-saved registers are available for padding purpose
29878         and r3 is not mandatory, then prefer use those callee-saved
29879         instead of r3.
29880
29881 2014-07-23  Richard Biener  <rguenther@suse.de>
29882
29883         * params.def (PARAM_MAX_COMBINE_INSNS): New.
29884         * combine.c: Include statistics.h and params.h.
29885         (combine_instructions): Guard three and four insn combines
29886         with max-combine-insns value.  Record statistics for combines
29887         performed.
29888         * doc/invoke.texi (max-combine-insns): Document new param.
29889
29890 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
29891
29892         * graphite-isl-ast-to-gimple.c:
29893         (translate_isl_ast_node_block): New function.
29894         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
29895
29896         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
29897         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
29898
29899 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
29900
29901         * graphite-isl-ast-to-gimple.c:
29902         (get_max_schedule_dimensions): New function.
29903         (extend_schedule): Likewise.
29904         (generate_isl_schedule): Add calling of extend_schedule and
29905         get_max_schedule_dimensions.
29906
29907 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29908
29909         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
29910         (case UNSPEC): Handle UNSPEC_RBIT.
29911
29912 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29913
29914         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
29915         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
29916
29917 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29918
29919         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
29920
29921 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
29922
29923         * graphite-isl-ast-to-gimple.c:
29924         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
29925         (ivs_params_clear):
29926         (build_iv_mapping): New function.
29927         (translate_isl_ast_node_user): Likewise.
29928         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
29929
29930         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
29931         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
29932         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
29933
29934 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
29935
29936         PR target/55701
29937         * config/arm/arm.md (setmem): New pattern.
29938         * config/arm/arm-protos.h (struct tune_params): New fields.
29939         (arm_gen_setmem): New prototype.
29940         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
29941         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
29942         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
29943         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
29944         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
29945         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
29946         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
29947         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
29948         (arm_const_inline_cost): New function.
29949         (arm_block_set_max_insns): New function.
29950         (arm_block_set_non_vect_profit_p): New function.
29951         (arm_block_set_vect_profit_p): New function.
29952         (arm_block_set_unaligned_vect): New function.
29953         (arm_block_set_aligned_vect): New function.
29954         (arm_block_set_unaligned_non_vect): New function.
29955         (arm_block_set_aligned_non_vect): New function.
29956         (arm_block_set_vect, arm_gen_setmem): New functions.
29957
29958 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
29959
29960         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
29961
29962 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
29963
29964         PR target/61855
29965         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
29966         out of #ifdef __OPTIMIZE__.
29967
29968 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
29969
29970         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
29971         different trapping status if -fnon-call-exceptions is enabled.
29972
29973 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
29974
29975         * expr.c (store_field): Handle VOIDmode for calls that return values
29976         in multiple locations.
29977
29978 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29979
29980         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
29981         (altivec_vsldoi_<mode>): Likewise.
29982
29983 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
29984
29985         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
29986         to the number of characters in the line.
29987
29988 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
29989
29990         * graphite-isl-ast-to-gimple.c: Add using of
29991         build_nonstandard_integer_type instead of int128_integer_type_node.
29992
29993 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
29994
29995         * toplev.c (output_stack_usage): Adjust the location of the warning.
29996
29997 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
29998
29999         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
30000         (*membar_storeload): Disable for LEON3.
30001
30002 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30003
30004         PR rtl-optimization/61461
30005         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
30006
30007 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
30008
30009         PR target/61794
30010         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
30011         Fix instruction constraint.
30012         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
30013
30014 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
30015
30016         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
30017
30018 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
30019
30020         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
30021         GNU coding standards.
30022         (nds32_register_move_cost): Likewise.
30023         (nds32_memory_move_cost): Likewise.
30024         (nds32_address_cost): Likewise.
30025
30026 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30027
30028         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
30029
30030 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
30031
30032         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
30033         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
30034         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
30035         (HAVE_sync_compare_and_swapqi): Define.
30036         (HAVE_sync_compare_and_swaphi): Likewise.
30037         (HAVE_sync_compare_and_swapsi): Likewise.
30038
30039 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
30040
30041         * config/mips/p5600.md: Add missing cpu tests.
30042
30043 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30044
30045         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
30046         (vmla_f64): Likewise.
30047         (vfms_f64): Likewise.
30048         (vmls_f64): Likewise.
30049
30050 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30051
30052         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
30053         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
30054
30055 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30056
30057         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
30058         (vmlal_high_lane_s32): Likewise.
30059         (vmlal_high_lane_u16): Likewise.
30060         (vmlal_high_lane_u32): Likewise.
30061         (vmlsl_high_lane_s16): Likewise.
30062         (vmlsl_high_lane_s32): Likewise.
30063         (vmlsl_high_lane_u16): Likewise.
30064         (vmlsl_high_lane_u32): Likewise.
30065
30066 2014-07-17  Terry Guo  <terry.guo@arm.com>
30067
30068         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
30069         (alus_reg): Renamed to alus_sreg.
30070         * config/arm/arm-fixed.md: Change type of non-dsp instructions
30071         from alu_reg to alu_sreg.  Change type of dsp instructions from
30072         alu_reg to alu_dsp_reg.
30073         * config/arm/thumb1.md: Likewise.
30074         * config/arm/thumb2.md: Likewise.
30075         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
30076         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
30077         with alu_sreg and alus_sreg.
30078         * config/arm/arm1026ejs.md (alu_op): Likewise.
30079         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
30080         * config/arm/arm926ejs.md (9_alu_op): Likewise.
30081         * config/arm/fa526.md (526_alu_op): Likewise.
30082         * config/arm/fa606te.md (606te_alu_op): Likewise.
30083         * config/arm/fa626te.md (626te_alu_op): Likewise.
30084         * config/arm/fa726te.md (726te_alu_op): Likewise.
30085         * config/arm/fmp626.md (mp626_alu_op): Likewise.
30086         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
30087         alu_sreg, alu_dsp_reg and alus_sreg.
30088         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
30089         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
30090         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
30091         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
30092         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
30093         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
30094         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
30095         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
30096         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
30097         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
30098         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
30099         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
30100         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
30101         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
30102         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
30103         alus_reg to alus_sreg.
30104
30105 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
30106
30107         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
30108         infinity format.
30109
30110 2014-07-17  Richard Biener  <rguenther@suse.de>
30111
30112         PR rtl-optimization/61801
30113         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
30114         don't set reg_pending_barrier if it appears in a debug-insn.
30115
30116 2014-07-16  DJ Delorie  <dj@redhat.com>
30117
30118         * config/rx/rx.c (rx_option_override): Fix alignment values.
30119         (rx_align_for_label): Likewise.
30120
30121 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
30122
30123         PR target/61737.
30124         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
30125         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
30126         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
30127         functions.
30128         (cris_print_index, cris_print_operand, cris_constant_index_p)
30129         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
30130         (cris_address_cost): Ditto last CONSTANT_P.
30131         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
30132         callers changed.  Yield cris_offsettable_symbol for non-PIC
30133         constant symbolic expressions including labels.  Yield cris_unspec
30134         for all unspecs.
30135         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
30136         target to pic_offset_table_rtx for calls that will likely go
30137         through PLT, const0_rtx when they can't.  All callers changed.
30138         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
30139         symbolic expressions to be PICified.  Remove second, redundant,
30140         assert on can_create_pseudo_p returning non-zero.  Use
30141         replace_equiv_address_nv, not replace_equiv_address, for final
30142         operand update.
30143         * config/cris/cris.md ("movsi"): Move variable t to pattern
30144         toplevel. Adjust assert for new cris_symbol_type member.  Use
30145         CONSTANT_P instead of CONSTANT_ADDRESS_P.
30146         ("*movsi_internal") <case 9>: Make check for valid unspec operands
30147         for lapc stricter.
30148         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
30149         ("call", "call_value"): Use second incoming operand as a marker
30150         for pic-offset-table-register being used.
30151         ("*expanded_call_non_v32", "*expanded_call_v32")
30152         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
30153         second incoming operand to CALL, match cris_call_type_marker.
30154         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
30155         ("*expanded_call_side"): Ditto.  Fix typo in comment.
30156         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
30157         CONSTANT_P.
30158         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
30159         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
30160         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
30161         users changed.  Add members cris_offsettable_symbol and cris_unspec.
30162         (cris_symbol_type): Rename from cris_pic_symbol_type.
30163         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
30164         just CONSTANT_P.
30165         * config/cris/cris-protos.h (cris_symbol_type_of,
30166         cris_expand_pic_call_address): Adjust prototypes.
30167         (cris_legitimate_constant_p): New prototype.
30168
30169         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
30170         an existing tmake_file.  Don't add t-slibgcc and t-linux.
30171
30172 2014-07-17  Jason Merrill  <jason@redhat.com>
30173
30174         PR c++/61623
30175         * symtab.c (symtab_remove_from_same_comdat_group): Also
30176         set_comdat_group to NULL_TREE.
30177         (verify_symtab): Fix diagnostic.
30178
30179 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
30180
30181         PR target/61662
30182         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
30183
30184 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
30185
30186         Support location tracking for built-in macro tokens
30187         * input.h (is_location_from_builtin_token): New function declaration.
30188         * input.c (is_location_from_builtin_token): New function definition.
30189         * toplev.c (general_init): Tell libcpp what the pre-defined
30190         spelling location for built-in tokens is.
30191
30192 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
30193
30194         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
30195         on the FUNCTION_DECL.
30196
30197 2014-07-16  Richard Biener  <rguenther@suse.de>
30198
30199         PR other/61782
30200         * doc/extend.texi (always_inline): Clarify.
30201
30202 2014-07-15  Eric Christopher  <echristo@gmail.com>
30203
30204         * doc/invoke.texi (Link Options): Document -z option.
30205
30206 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
30207
30208         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
30209         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
30210
30211 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
30212
30213         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
30214
30215 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
30216
30217         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
30218         varpool_assemble_decl.
30219         * varpool.c (varpool_assemble_decl): Assert that node->definition is
30220         true.
30221
30222 2014-07-15  Michael Matz  <matz@suse.de>
30223
30224         PR rtl-optimization/61772
30225         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
30226
30227 2014-07-15  Richard Biener  <rguenther@suse.de>
30228
30229         * opts.c (default_options_table): Disable bit-ccp at -Og.
30230
30231 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
30232
30233         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
30234
30235 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
30236
30237         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
30238         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
30239         call langhook for unknown declaration.
30240         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
30241         * tree.h (DECL_ARGUMENTS): Update.
30242         * print-tree.c (print_node): Update.
30243         * tree-core.h (tree_decl_non_common): Remove arguments.
30244         (tree_function_decl): Add arguments.
30245
30246 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
30247
30248         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
30249
30250 2014-07-14  Richard Biener  <rguenther@suse.de>
30251
30252         PR tree-optimization/61779
30253         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
30254         simplifying a condition.
30255
30256 2014-07-14  Richard Biener  <rguenther@suse.de>
30257
30258         * builtins.c (c_strlen): Make only_value == 2 really only
30259         affect warning generation.
30260
30261 2014-07-14  Richard Biener  <rguenther@suse.de>
30262
30263         PR tree-optimization/61757
30264         PR tree-optimization/61783
30265         PR tree-optimization/61787
30266         * tree-ssa-dom.c (record_equality): Revert canonicalization
30267         change and add comment.
30268         (propagate_rhs_into_lhs): Revert previous fix, removing
30269         loop depth restriction again.
30270
30271 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30272
30273         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
30274         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
30275         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
30276         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
30277         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
30278         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
30279         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
30280
30281 2014-07-14  Richard Biener  <rguenther@suse.de>
30282
30283         * cgraph.h (decl_in_symtab_p): Make inline.
30284
30285 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
30286
30287         PR middle-end/61294
30288         * doc/invoke.texi (-Wmemset-transposed-args): Document.
30289
30290         PR target/61656
30291         * config/i386/i386.c (classify_argument): Don't merge classes above
30292         number of words.
30293
30294 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
30295
30296         * cgraph.h (symtab_node): Add nonzero_address.
30297         (decl_in_symtab_p): Break out from ...
30298         (symtab_get_node): ... here.
30299         * fold-const.c: Include cgraph.h
30300         (tree_single_nonzero_warnv_p): Use symtab to determine
30301         if symbol is non-zero.
30302         * symtab.c (symtab_node::nonzero_address): New method.
30303
30304 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
30305
30306         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
30307         forgotten in previous commit.
30308
30309 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
30310
30311         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
30312         on builtin types.
30313         * ipa-devirt.c: Include stor-layout.h and intl.h
30314         (odr_subtypes_equivalent_p): New function.
30315         (warn_odr): New function.
30316         (warn_type_mismatch): New function.
30317         (odr_types_equivalent_p): New function.
30318         (add_type_duplicate): Use it.
30319         * common.opt (Wodr): New flag.
30320         * doc/invoke.texi (Wodr): Document new warning.
30321
30322 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
30323
30324         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
30325         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
30326         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
30327         (varpool_get_constructor): Push CTORS_IN timevar.
30328         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
30329
30330 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
30331
30332         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
30333         Remove VOID_FTYPE_PUSHORT.
30334         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
30335         Change code to USHORT_FTYPE_VOID.
30336         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
30337         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
30338         (ix86_atomic_assign_expand_fenv): Update for
30339         __builtin_ia32_fnstsw changes.
30340         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
30341         (fnstsw): Change operand 0 to nonimmediate operand.
30342
30343 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
30344
30345         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
30346         (varpool_get_constructor): New function.
30347         (varpool_ctor_useable_for_folding_p): Break out from ...
30348         (ctor_for_folding): ... here; use varpool_get_constructor.
30349         (varpool_assemble_decl): Likewise.
30350         * lto-streamer.h (struct output_block): Turn cgraph_node
30351         to symbol filed.
30352         (lto_input_variable_constructor): Declare.
30353         * ipa-visibility.c (function_and_variable_visibility): Use
30354         varpool_get_constructor.
30355         * cgraph.h (varpool_get_constructor): Declare.
30356         (varpool_ctor_useable_for_folding_p): New function.
30357         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
30358         parameter; return error_mark_node for non-trivial constructors.
30359         (lto_write_tree_1, DFS_write_tree): Update use of
30360         get_symbol_initial_value.
30361         (output_function): Update initialization of symbol.
30362         (output_constructor): New function.
30363         (copy_function): Rename to ..
30364         (copy_function_or_variable): ... this one; handle vars too.
30365         (lto_output): Output variable sections.
30366         * lto-streamer-in.c (input_constructor): New function.
30367         (lto_read_body): Rename from ...
30368         (lto_read_body_or_constructor): ... this one; handle vars too.
30369         (lto_input_variable_constructor): New function.
30370         * ipa-prop.c (ipa_prop_write_jump_functions,
30371         ipa_prop_write_all_agg_replacement): Update.
30372         * lto-cgraph.c (compute_ltrans_boundary): Use it.
30373         (output_cgraph_opt_summary): Set symbol to NULL.
30374
30375 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
30376
30377         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
30378         non-polymorphic types.
30379         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
30380         * ipa-devirt.c (types_same_for_odr): Do not explode when one
30381         of types is not polymorphic.
30382
30383 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
30384
30385         * lra-constraints.c (remove_inheritance_pseudos): Process
30386         destination pseudo too.
30387
30388 2014-07-11  Rong Xu  <xur@google.com>
30389
30390         * gcov-tool.c (gcov_output_files): Fix build error introduced in
30391         commit r212448.
30392
30393 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
30394
30395         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
30396         * config/avr/avr-devices.c (AVR_MCU): Same.
30397         (avr_mcu_types): add text start value to end of device list.
30398         * config/avr/avr-mcus.def: Add text section start for all devices.
30399         (ata5782): Add new avr5 device.
30400         (ata5831): Same.
30401         * config/avr/avr-tables.opt: Regenerate.
30402         * config/avr/avr.h: Add declaration for text section start handler.
30403         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
30404         SPEC functions.
30405         (LINK_SPEC): Include text section start handler to linker spec.
30406         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
30407         pass -Ttext option to linker if the text section start for the device
30408         is not zero.
30409         * config/avr/t-multilib: Regenerate.
30410         * doc/avr-mmcu.texi: Regenerate.
30411
30412 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
30413
30414         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
30415         * config/rs6000/aix52.h (LINK_SPEC): Same.
30416         * config/rs6000/aix53.h (LINK_SPEC): Same.
30417         * config/rs6000/aix61.h (LINK_SPEC): Same.
30418         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
30419
30420 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
30421
30422         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
30423         (graphite_verify): New function.
30424         (ivs_params_clear): New function.
30425         (gcc_expression_from_isl_ast_expr_id): New function.
30426         (gcc_expression_from_isl_expr_int): New function.
30427         (binary_op_to_tree): New function.
30428         (ternary_op_to_tree): New function.
30429         (unary_op_to_tree): New function.
30430         (nary_op_to_tree): New function.
30431         (gcc_expression_from_isl_expr_op): New function.
30432         (gcc_expression_from_isl_expression): New function.
30433         (graphite_create_new_loop): New function.
30434         (translate_isl_ast_for_loop): New function.
30435         (get_upper_bound): New function.
30436         (graphite_create_new_loop_guard): New function.
30437         (translate_isl_ast_node_for): New function.
30438         (translate_isl_ast): New function.
30439         (add_parameters_to_ivs_params): New function.
30440         (scop_to_isl_ast): New parameter ip.
30441         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
30442
30443 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
30444
30445         * config/xtensa/predicates.md (call expander): Update for
30446         DECL_SECTION_NAME being string.
30447
30448 2014-07-11  Richard Biener  <rguenther@suse.de>
30449
30450         PR middle-end/61473
30451         * builtins.c (fold_builtin_memory_op): Inline memory moves that
30452         can be implemented with a single load followed by a single store.
30453         (c_strlen): Only warn when only_value is not 2.
30454
30455 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
30456
30457         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
30458
30459 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
30460
30461         PR target/61561
30462         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
30463         (*movhi_bytes): Likewise.
30464         (*arm_movqi_insn): Likewise.
30465
30466 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
30467
30468         PR target/56858
30469         * config/alpha/alpha.c: Include tree-pass.h, context.h
30470         and pass_manager.h.
30471         (pass_data_handle_trap_shadows): New pass.
30472         (pass_handle_trap_shadows::gate): New pass gate function.
30473         (make_pass_handle_trap_shadows): New function.
30474         (rest_of_handle_trap_shadows): Ditto.
30475
30476         (alpha_align_insns_1): Rename from alpha_align_insns.
30477         (pass_data_align_insns): New pass.
30478         (pass_align_insns::gate): New pass gate function.
30479         (make_pass_aling_insns): New function.
30480         (rest_of_align_insns): Ditto.
30481         (alpha_align_insns): Ditto.
30482
30483         (alpha_option_override): Declare handle_trap_shadows info
30484         and align_insns_info.  Register handle_trap_shadows and align_insns
30485         passes here.
30486         (alpha_reorg): Do not call alpha_trap_shadows and
30487         alpha_align_insn from here.
30488
30489         (alpha_pad_function_end): Do not skip BARRIERs.
30490
30491 2014-07-10  Rong Xu  <xur@google.com>
30492
30493         Add gcov-tool: an offline gcda profile processing tool support.
30494         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
30495         (gcov_is_error): Ditto.
30496         (gcov_read_string): Ditto.
30497         (gcov_read_sync): Ditto.
30498         * gcov-io.h: Move counter defines to gcov-counter.def.
30499         * gcov-dump.c (tag_counters): Use gcov-counter.def.
30500         * coverage.c: Ditto.
30501         * gcov-tool.c: Offline gcda profile processing tool.
30502         (unlink_gcda_file): Remove one gcda file.
30503         (unlink_profile_dir): Remove gcda files from the profile path.
30504         (gcov_output_files): Output gcda files to an output dir.
30505         (profile_merge): Merge two profiles in directory.
30506         (print_merge_usage_message): Print merge usage.
30507         (merge_usage): Print merge usage and exit.
30508         (do_merge): Driver for profile merge sub-command.
30509         (profile_rewrite): Rewrite profile.
30510         (print_rewrite_usage_message): Print rewrite usage.
30511         (rewrite_usage): Print rewrite usage and exit.
30512         (do_rewrite): Driver for profile rewrite sub-command.
30513         (print_usage): Print gcov-info usage and exit.
30514         (print_version): Print gcov-info version.
30515         (process_args): Process arguments.
30516         (main): Main routine for gcov-tool.
30517         * Makefile.in: Build and install gcov-tool.
30518         * gcov-counter.def: New file split from gcov-io.h.
30519         * doc/gcc.texi: Include gcov-tool.texi.
30520         * doc/gcov-tool.texi: Document for gcov-tool.
30521
30522 2014-07-10  Richard Biener  <rguenther@suse.de>
30523
30524         PR tree-optimization/61757
30525         * tree-ssa-dom.c (loop_depth_of_name): Restore.
30526         (propagate_rhs_into_lhs): Revert part of last change.
30527
30528 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
30529
30530         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
30531         FUNCTION_DECLs.
30532
30533 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
30534
30535         PR middle-end/53590
30536         * function.c (allocate_struct_function): Revert r188667 change.
30537
30538         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
30539
30540 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
30541
30542         * doc/install.texi: Remove links to defunct package providers for
30543         Solaris.
30544
30545 2014-07-09  Tom de Vries  <tom@codesourcery.com>
30546
30547         * final.c (get_call_fndecl): Declare.
30548         (self_recursive_call_p): New function.
30549         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
30550
30551 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30552
30553         * ipa-devirt.c (record_node): Walk through aliases.
30554
30555 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30556
30557         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
30558
30559 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30560
30561         Revert:
30562         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
30563
30564 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30565
30566         * ipa-visibility.c (function_and_variable_visibility): Remove
30567         temporary hack disabling local aliases on AIX.
30568
30569 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30570
30571         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
30572         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
30573
30574 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30575
30576         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
30577         * rs6000/rs6000.c: Inline output of .set instruction.
30578         (declare_alias_data): New struct.
30579         (rs6000_declare_alias): New function.
30580         (rs6000_xcoff_declare_function_name): Use it.
30581         (rs6000_xcoff_declare_object_name): New function.
30582         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
30583         (ASM_OUTPUT_DEF): Turn to empty definition.
30584
30585 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
30586
30587         PR bootstrap/61679
30588         * hash-table.h: use hash_table::value_type instead of
30589         Descriptor::value_type in the return types of several methods.
30590
30591 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
30592
30593         * tree-pass.h (pass_data): Remove has_execute member.
30594         * passes.c (execute_one_pass): Don't check pass->has_execute.
30595         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
30596         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
30597         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
30598         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
30599         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
30600         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
30601         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
30602         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
30603         gimple-low.c, gimple-ssa-isolate-paths.c,
30604         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
30605         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
30606         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
30607         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
30608         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
30609         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
30610         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
30611         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
30612         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
30613         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
30614         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
30615         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
30616         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
30617         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
30618         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
30619         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
30620         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
30621         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
30622         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
30623         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
30624         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
30625         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
30626         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
30627         web.c: Remove initializer for pass_data::has_execute.
30628
30629 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
30630
30631         * graphite-htab.h: Use hash_map instead of hash_table.
30632         * graphite-clast-to-gimple.c: Adjust.
30633         * passes.c: Use hash_map instead of hash_table.
30634         * sese.c: Likewise.
30635         * sese.h: Remove now unused code.
30636
30637 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
30638
30639         PR target/61599
30640         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
30641         than zero.
30642
30643 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
30644
30645         PR rtl-optimization/61673
30646         * combine.c (simplify_comparison): Test just mode's sign bit
30647         in tmode rather than the sign bit and any bits above it.
30648
30649 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
30650
30651         * graphite-isl-ast-to-gimple.c (generate_isl_context):
30652         Add __isl_give to the declaration.
30653         (generate_isl_schedule): Likewise.
30654         (scop_to_isl_ast): Likewise.
30655
30656 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30657
30658         * config/arm/arm.c (cortexa5_extra_costs): New table.
30659         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
30660
30661 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
30662
30663         PR tree-optimization/61725
30664         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
30665         range, use range_includes_zerop_p instead of integer_zerop on
30666         vr0->min, only use log2 of max if min is not negative.
30667
30668 2014-07-08  Richard Biener  <rguenther@suse.de>
30669
30670         * tree-ssa-dom.h (loop_depth_of_name): Remove.
30671         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
30672         restriction on loop depth difference.
30673         (record_equality): Likewise.
30674         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
30675         (loop_depth_of_name): Remove.
30676         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
30677         restriction on loop depth difference.
30678         (init_copy_prop): Likewise.
30679
30680 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30681
30682         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
30683         parameter.
30684         (walk_aliased_vdefs): Likewise.
30685         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
30686         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
30687         (detect_type_change_from_memory_writes): Check if entry was reached.
30688
30689 2014-07-08  Richard Biener  <rguenther@suse.de>
30690
30691         PR tree-optimization/61681
30692         * tree-ssa-structalias.c (find_what_var_points_to): Expand
30693         NONLOCAL inside ESCAPED.
30694
30695 2014-07-08  Richard Biener  <rguenther@suse.de>
30696
30697         PR tree-optimization/61680
30698         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30699         Handle properly all read-write dependences with group accesses.
30700
30701 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
30702
30703         PR tree-optimization/61576
30704         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
30705         block containing reduction statement is predecessor of phi basi block.
30706
30707 2014-07-08  Marek Polacek  <polacek@redhat.com>
30708
30709         PR c/60226
30710         * fold-const.c (round_up_loc): Change the parameter type.
30711         Remove assert.
30712         * fold-const.h (round_up_loc): Adjust declaration.
30713         * stor-layout.c (finalize_record_size): Check for too large types.
30714
30715 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
30716
30717         * symtab.c: Include calls.h.
30718         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
30719
30720 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
30721
30722         * config/rs6000/rs6000.c (output_vec_const_move): Handle
30723         little-endian code generation.
30724         * config/rs6000/spe.md (spe_evmergehi): Rename to...
30725         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
30726         (spe_evmergehilo): Rename to...
30727         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
30728         (spe_evmergelo): Rename to...
30729         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
30730         (spe_evmergelohi): Rename to...
30731         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
30732         (spe_evmergehi, spe_evmergehilo): New expanders.
30733         (spe_evmergelo, spe_evmergelohi): Likewise.
30734         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
30735         (*frob_tf_ti): Likewise.
30736         (*frob_<mode>_di_2): Likewise.
30737         (*frob_tf_di_8_2): Likewise.
30738         (*frob_di_<mode>): Likewise.
30739         (*frob_ti_tf): Likewise.
30740         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
30741         (*frob_ti_<mode>_8_2): Likewise.
30742         (*frob_ti_tf_2): Likewise.
30743         (mov_si<mode>_e500_subreg0): Rename to...
30744         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
30745         endianness only.
30746         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
30747         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
30748         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
30749         the big endianness only.
30750         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
30751         (*mov_si<mode>_e500_subreg0_2): Rename to...
30752         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
30753         big big endianness only.
30754         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
30755         (*mov_si<mode>_e500_subreg4): Rename to...
30756         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
30757         endianness only.
30758         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
30759         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
30760         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
30761         the big endianness only.
30762         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
30763         pattern.
30764         (*mov_si<mode>_e500_subreg4_2): Rename to...
30765         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
30766         endianness only.
30767         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
30768         (*mov_sitf_e500_subreg8): Rename to...
30769         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
30770         endianness only.
30771         (*mov_sitf_e500_subreg8_le): New instruction pattern.
30772         (*mov_sitf_e500_subreg8_2): Rename to...
30773         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
30774         endianness only.
30775         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
30776         (*mov_sitf_e500_subreg12): Rename to...
30777         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
30778         endianness only.
30779         (*mov_sitf_e500_subreg12_le): New instruction pattern.
30780         (*mov_sitf_e500_subreg12_2): Rename to...
30781         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
30782         endianness only.
30783         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
30784
30785 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30786
30787         * asan.c (instrument_strlen_call): Do not instrument first byte
30788         in strlen if already instrumented.
30789
30790 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30791
30792         * config/arm/arm.opt (mwords-little-endian): Delete.
30793         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
30794         of TARGET_LITTLE_WORDS.
30795         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
30796         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
30797         warning.
30798         * doc/invoke.texi: Remove references to -mwords-little-endian.
30799
30800 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
30801
30802         * expmed.c (struct init_expmed_rtl): Change all fields but
30803         pow2 and cint from struct rtx_def to rtx.
30804         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
30805         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
30806         at the end again.
30807
30808 2014-07-06  Marek Polacek  <polacek@redhat.com>
30809
30810         PR c/6940
30811         * doc/invoke.texi: Document -Wsizeof-array-argument.
30812
30813 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
30814
30815         * wide-int.h (wide_int_storage): Change declaration from struct
30816         to class.
30817
30818 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
30819
30820         * cgraph.c (cgraph_create_indirect_edge): Update call of
30821         get_polymorphic_call_info.
30822         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
30823         (possible_polymorphic_call_targets): Add parameter call.
30824         (decl_maybe_in_construction_p): New predicate.
30825         (get_polymorphic_call_info): Add parameter call;
30826         use decl_maybe_in_construction_p.
30827         * gimple-fold.c (fold_gimple_assign): Update use of
30828         possible_polymorphic_call_targets.
30829         (gimple_fold_call): Likewise.
30830         * ipa-prop.c: Inlcude calls.h
30831         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
30832         (param_type_may_change_p): New predicate.
30833         (detect_type_change_from_memory_writes): Break out from ...
30834         (detect_type_change): ... this one; use param_type_may_change_p.
30835         (detect_type_change_ssa): Use param_type_may_change_p.
30836         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
30837
30838 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
30839
30840         PR target/49423
30841         * config/arm/arm-protos.h (arm_legitimate_address_p,
30842         arm_is_constant_pool_ref): Add prototypes.
30843         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
30844         (arm_is_constant_pool_ref) New function.
30845         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
30846         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
30847         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
30848         operand. Remove pool_range and neg_pool_range attributes.
30849         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
30850         pool_range and neg_pool_range attributes.
30851         * config/arm/constraints.md (Uh): New constraint.
30852         (Uq): Don't allow constant pool references.
30853
30854 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
30855
30856         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
30857         (move_lo_quad_internal_be_<mode>): Likewise.
30858         (move_lo_quad_<mode>): Convert to define_expand.
30859         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
30860         (aarch64_simd_move_hi_quad_be_<mode>): New.
30861         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
30862         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
30863         (aarch64_combinez_be<mode>): New.
30864         (aarch64_combine<mode>): Convert to define_expand.
30865         (aarch64_combine_internal<mode>): New.
30866         (aarch64_simd_combine<mode>): Remove bogus RTL description.
30867
30868 2014-07-04  Tom de Vries  <tom@codesourcery.com>
30869
30870         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
30871         combination of earlyclobber and read/write modifiers.
30872
30873 2014-07-04  Tom de Vries  <tom@codesourcery.com>
30874
30875         * config/aarch64/aarch64-simd.md
30876         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
30877
30878 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
30879
30880         PR target/61714
30881         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
30882
30883 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
30884
30885         PR middle-end/61654
30886         * cgraphunit.c (expand_thunk): Call free_dominance_info.
30887
30888         PR tree-optimization/61684
30889         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
30890         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
30891
30892 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30893             Kito Cheng  <kito@0xlab.org>
30894             Monk Chiang  <sh.chiang04@gmail.com>
30895
30896         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
30897         (nds32_symbol_load_store_p): Move to ...
30898         (nds32_fp_as_gp_check_available): Move to ...
30899         * config/nds32/nds32-fp-as-gp.c: ... here.
30900         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
30901         extern declaration.
30902
30903 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30904             Kito Cheng  <kito@0xlab.org>
30905             Monk Chiang  <sh.chiang04@gmail.com>
30906
30907         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
30908         (nds32_expand_store_multiple): Move to ...
30909         (nds32_expand_movmemqi): Move to ...
30910         * config/nds32/nds32-memory-manipulation.c: ... here.
30911
30912 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30913             Kito Cheng  <kito@0xlab.org>
30914             Monk Chiang  <sh.chiang04@gmail.com>
30915
30916         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
30917         (nds32_output_casesi_pc_relative): Move to ...
30918         (nds32_output_casesi): Move to ...
30919         (nds32_mem_format): Move to ...
30920         (nds32_output_16bit_store): Move to ...
30921         (nds32_output_16bit_load): Move to ...
30922         (nds32_output_32bit_store): Move to ...
30923         (nds32_output_32bit_load): Move to ...
30924         (nds32_output_32bit_load_s): Move to ...
30925         (nds32_output_stack_push): Move to ...
30926         (nds32_output_stack_pop): Move to ...
30927         * config/nds32/nds32-md-auxiliary.c: ... here.
30928
30929 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30930             Ling-Hua Tseng  <uranus@tinlans.org>
30931
30932         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
30933         the purpose of this file.
30934
30935 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30936             Kito Cheng  <kito@0xlab.org>
30937             Monk Chiang  <sh.chiang04@gmail.com>
30938
30939         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
30940         (nds32_address_cost): Move implementation to ...
30941         * config/nds32/nds32-cost.c: ... here.
30942         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
30943         (nds32_address_cost_impl): Declare.
30944
30945 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30946             Kito Cheng  <kito@0xlab.org>
30947             Monk Chiang  <sh.chiang04@gmail.com>
30948
30949         * config/nds32/nds32.c
30950         (nds32_consecutive_registers_load_store_p): Move to ...
30951         (nds32_valid_multiple_load_store): Move to ...
30952         (nds32_valid_stack_push_pop): Move to ...
30953         (nds32_can_use_bclr_p): Move to ...
30954         (nds32_can_use_bset_p): Move to ...
30955         (nds32_can_use_btgl_p): Move to ...
30956         (nds32_can_use_bitci_p): Move to ...
30957         * config/nds32/nds32-predicates.c: ... here.
30958
30959 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30960             Kito Cheng  <kito@0xlab.org>
30961             Monk Chiang  <sh.chiang04@gmail.com>
30962
30963         * config/nds32/nds32.c
30964         (nds32_expand_builtin_null_ftype_reg): Move to ...
30965         (nds32_expand_builtin_reg_ftype_imm): Move to ...
30966         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
30967         (nds32_init_builtins): Move implementation to ...
30968         (nds32_expand_builtin): Move implementation to ...
30969         * config/nds32/nds32-intrinsic.c: ... here.
30970         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
30971         (nds32_expand_builtin_impl): Declare.
30972
30973 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30974             Kito Cheng  <kito@0xlab.org>
30975             Monk Chiang  <sh.chiang04@gmail.com>
30976
30977         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
30978         (nds32_emit_section_tail_template): Move to ...
30979         (nds32_emit_isr_jmptbl_section): Move to ...
30980         (nds32_emit_isr_vector_section): Move to ...
30981         (nds32_emit_isr_reset_conten): Move to ...
30982         (nds32_check_isr_attrs_conflict): Move to ...
30983         (nds32_construct_isr_vectors_information): Move to ...
30984         (nds32_asm_file_start): Move implementation to ...
30985         (nds32_asm_file_end): Move implementation to ...
30986         * config/nds32/nds32-isr.c: ... here.
30987         * config/nds32/nds32-protos.h
30988         (nds32_check_isr_attrs_conflict): Declare.
30989         (nds32_construct_isr_vectors_information): Declare.
30990         (nds32_asm_file_start_for_isr): Declare.
30991         (nds32_asm_file_end_for_isr): Declare.
30992
30993 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30994             Kito Cheng  <kito@0xlab.org>
30995             Monk Chiang  <sh.chiang04@gmail.com>
30996
30997         * config.gcc (nds32*): Add new modules to extra_objs.
30998         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
30999         (nds32be-*-*): Likewise.
31000         * config/nds32/nds32-cost.c: New file.
31001         * config/nds32/nds32-fp-as-gp.c: New file.
31002         * config/nds32/nds32-intrinsic.c: New file.
31003         * config/nds32/nds32-isr.c: New file.
31004         * config/nds32/nds32-md-auxiliary.c: New file.
31005         * config/nds32/nds32-memory-manipulation.c: New file.
31006         * config/nds32/nds32-pipelines-auxiliary.c: New file.
31007         * config/nds32/nds32-predicates.c: New file.
31008         * config/nds32/t-nds32: New file.
31009
31010 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
31011
31012         PR tree-optimization/61682
31013         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
31014         using cases and when one of the operands is equal to 1.
31015
31016 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
31017
31018         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
31019         ashr<mode>3): Correct mode of operands[2].
31020         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
31021         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
31022         Correct mode of operands[2].  Fix split condition.
31023
31024 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
31025
31026         * arm.md (arch): Add armv6_or_vfpv3.
31027         (arch_enabled): Add test for the above.
31028         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
31029         on VFP9.
31030         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
31031
31032 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
31033
31034         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
31035         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
31036         HWI 1 and negate the unsigned value.
31037         * expmed.c (expand_sdiv_pow2): For modes wider than word always
31038         use AND instead of shift.
31039         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
31040
31041 2014-07-03  Marek Polacek  <polacek@redhat.com>
31042
31043         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
31044         (-fsanitize=float-divide-by-zero): Move to the table with
31045         -fsanitize=undefined suboptions.
31046         (-fsanitize=float-cast-overflow): Likewise.
31047
31048 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
31049
31050         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
31051         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
31052         endianness.
31053
31054 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31055
31056         * loop-invariant.c (struct invariant): Add a new member: eqno;
31057         (find_identical_invariants): Update eqno;
31058         (create_new_invariant): Init eqno;
31059         (get_inv_cost): Compute comp_cost with eqno;
31060
31061 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
31062
31063         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
31064         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
31065         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
31066         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
31067         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
31068
31069 2014-07-02  Christian Bruel  <christian.bruel@st.com>
31070
31071         PR target/29349
31072         PR target/53513
31073         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
31074         (make_preds_opaque): Delete.
31075         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
31076         (commit_mode_sets): New function.
31077         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
31078         Process all modes at once.
31079         * basic-block.h (pre_edge_lcm_avs): Declare.
31080         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
31081         Call clear_aux_for_edges. Fix comments.
31082         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
31083         (pre_edge_rev_lcm): Idem.
31084         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
31085         parameter.
31086         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
31087         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
31088         Idem.
31089         * config/i386/i386.c (x96_emit_mode_set): Idem.
31090         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
31091         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
31092         (fpscr_toggle) Disallow from delay slot.
31093         * target.def (emit_mode_set): Add prev_mode parameter.
31094         * doc/tm.texi: Regenerate.
31095
31096 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31097
31098         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
31099         variable i.
31100
31101 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
31102
31103         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
31104         vtable_pointer_value_to_vtable): Constify.
31105         (contains_polymorphic_type_p): Declare.
31106         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
31107         vtable_pointer_value_to_vtable): Constify.
31108         (contains_polymorphic_type_p): New predicate.
31109         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
31110         polymorphic types.
31111         (ipa_set_ancestor_jf): Likewise.
31112         (detect_type_change): Return false in easy cases.
31113         (compute_complex_assign_jump_func): Require type to contain
31114         polymorphic type.
31115         (compute_known_type_jump_func): Likewise.
31116
31117 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
31118
31119         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
31120         Remove.
31121         (type_in_anonymous_namespace_p): Constify argument.
31122         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
31123         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
31124         (main_odr_variant): New function.
31125         (hash_type_name): Make static; update assert; do not ICE on
31126         non-records.
31127         (types_same_for_odr): Bring here from tree.c; simplify and remove
31128         old structural comparing code that doesn't work for templates.
31129         (odr_hasher::equal): Update assert.
31130         (add_type_duplicate): Return true when bases should be computed;
31131         replace incomplete loader by complete; do not output duplicated
31132         warnings; do not ICE on non-records; set odr_violated flag.
31133         (get_odr_type): Be ready to replace incomplete type by complete
31134         one; work on ODR variants instead of main variants; reorder item
31135         in array so bases have still smaller indexes.
31136         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
31137         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
31138
31139 2014-07-01  Cary Coutant  <ccoutant@google.com>
31140
31141         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
31142         lookup.
31143         (resolve_addr_in_expr): When replacing the rtx in a location list
31144         entry, get a new address table entry.
31145         (dwarf2out_finish): Call index_location_lists even if there are no
31146         addr_index_table entries yet.
31147
31148 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
31149
31150         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
31151         change for not being obvious.
31152
31153 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
31154
31155         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
31156         unused argument.
31157
31158 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31159
31160         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
31161         (vcagt_f64): Likewise.
31162         (vcale_f64): Likewise.
31163         (vcaled_f64): Likewise.
31164         (vcales_f32): Likewise.
31165         (vcalt_f64): Likewise.
31166         (vcaltd_f64): Likewise.
31167         (vcalts_f32): Likewise.
31168
31169 2014-07-01  Marek Polacek  <polacek@redhat.com>
31170
31171         * doc/invoke.texi: Document -Wint-conversion.
31172
31173 2014-07-01  Marek Polacek  <polacek@redhat.com>
31174
31175         PR c/58286
31176         * doc/invoke.texi: Document -Wincompatible-pointer-types.
31177
31178 2014-07-01  Martin Liska  <mliska@suse.cz>
31179
31180         IPA REF alias refactoring
31181         * cgraph.h (iterate_direct_aliases): New function.
31182         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
31183         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
31184         FOR_EACH_ALIAS added.
31185         (cgraph_for_node_and_aliases): Likewise.
31186         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
31187         * ipa-inline.c (reset_edge_caches): Likewise.
31188         (update_caller_keys): Likewise.
31189         * trans-mem.c (ipa_tm_execute): Likewise.
31190         *varpool.c (varpool_analyze_node): Likewise.
31191         (varpool_for_node_and_aliases): Likewise.
31192         * ipa-ref.h (first_alias): New function.
31193         (last_alias): Likewise.
31194         (has_aliases_p): Likewise.
31195         * ipa-ref.c (ipa_ref::remove_reference): Removal function
31196         is sensitive to IPA_REF_ALIASes.
31197         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
31198         are put at the beginning of the list.
31199         (symtab_node::iterate_direct_aliases): New function.
31200
31201 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
31202
31203         Revert:
31204         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
31205         type is complete.
31206         (write_ts_type_common_tree_pointers): Do not stream fields not set
31207         for incomplete types; do not stream duplicated fields for variants;
31208         sanity check that variant and type match.
31209         (write_ts_type_non_common_tree_pointers): Likewise.
31210         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
31211         TYPE_SIZE whether type is complete.
31212         (lto_input_ts_type_common_tree_pointers): Do same changes as in
31213         write_ts_type_common_tree_pointers
31214         (lto_input_ts_type_non_common_tree_pointers): Likewise.
31215
31216 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
31217
31218         * var-tracking.c (add_stores): Return instead of asserting if old
31219         and new values for conditional store are the same.
31220
31221 2014-06-30  Richard Henderson  <rth@redhat.com>
31222
31223         PR rtl-opt/61608
31224         PR target/39284
31225         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
31226         the cfg if there were any changes.
31227         * passes.def: Revert move of peephole2 after reorder_blocks;
31228         move duplicate_computed_gotos before peephole2.
31229
31230 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
31231
31232         * except.c (emit_note_eh_region_end): New helper function.
31233         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
31234         emit EH_REGION_END note.
31235         * jump.c (cleanup_barriers): Do not split a call and its
31236         corresponding CALL_ARG_LOCATION note.
31237
31238 2014-06-30  Jeff Law  <law@redhat.com>
31239
31240         PR tree-optimization/61607
31241         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
31242         deeper into the SSA_NAME_VALUE chain.
31243
31244 2014-06-30  Marek Polacek  <polacek@redhat.com>
31245
31246         * convert.c (convert_to_integer): Don't instrument conversions if the
31247         function has no_sanitize_undefined attribute.
31248         * ubsan.c: Don't run the ubsan pass if the function has
31249         no_sanitize_undefined attribute.
31250
31251 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
31252
31253         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
31254         -fsanitize=undefined suboptions.
31255
31256 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
31257
31258         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
31259         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
31260         against bigendian and adjust indices.
31261
31262 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
31263
31264         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
31265
31266 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31267
31268         PR target/61633
31269         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
31270         Add alternative; make early clobber.  Adjust both split patterns
31271         to use operand 0 as the working register.
31272
31273 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
31274
31275         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
31276         as ira_object_id_map might be NULL, or 1.
31277
31278 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31279
31280         * loop-invariant.c (get_inv_cost): Handle register class.
31281         (gain_for_invariant): Check the register pressure of the inv
31282         and its overlapped register class, other than all.
31283
31284 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
31285
31286         * doc/invoke.texi (Optimize Options): Fix descriptions of
31287         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
31288
31289 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
31290
31291         * doc/extend.texi (Function Attributes): Update 'naked' attribute
31292         documentation.
31293
31294 2014-06-29  Tobias Grosser <tobias@grosser.es>
31295
31296         PR bootstrap/61650
31297         * graphite-isl-ast-to-gimple.c: Add missing guards.
31298
31299 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
31300
31301         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
31302         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
31303         * flag-types.h: Add new enum fgraphite_generator.
31304         * graphite-isl-ast-to-gimple.c: New.
31305         * graphite-isl-ast-to-gimple.h: New.
31306         * graphite.c (graphite_transform_loops): Add choice of Graphite
31307         code generator, which depends on flag_graphite_code_gen.
31308
31309 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
31310
31311         * graphite-dependences.c (subtract_commutative_associative_deps):
31312         Add NULL checking of the following variables: must_raw_no_source,
31313         may_raw_no_source, must_war_no_source, may_war_no_source,
31314         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
31315         must_war, may_war, must_waw, may_waw.
31316
31317 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
31318
31319         * graphite-clast-to-gimple.c: gloog is renamed to
31320         graphite_regenerate_ast_cloog.  gloog_error is renamed to
31321         graphite_regenerate_error.
31322         * graphite-clast-to-gimple.h: The definition of the struct
31323         bb_pbb_def is moved to graphite-htab.h.
31324         Add inclusion of the hash-table.h.
31325         * graphite-htab.h: The declaration of the function gloog is moved
31326         to graphite-clast-to-gimple.h and renamed to
31327         graphite_regenerate_ast_cloog.
31328         * graphite.c (graphite_transform_loops): gloog is renamed
31329         to graphite_regenerate_ast_cloog.
31330
31331 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
31332
31333         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
31334         type is complete.
31335         (write_ts_type_common_tree_pointers): Do not stream fields not set
31336         for incomplete types; do not stream duplicated fields for variants;
31337         sanity check that variant and type match.
31338         (write_ts_type_non_common_tree_pointers): Likewise.
31339         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
31340         TYPE_SIZE whether type is complete.
31341         (lto_input_ts_type_common_tree_pointers): Do same changes as in
31342         write_ts_type_common_tree_pointers
31343         (lto_input_ts_type_non_common_tree_pointers): Likewise.
31344
31345 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
31346
31347         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
31348
31349 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
31350
31351         * tree-inline.c (remap_type_1): Do not duplicate fields
31352         that are shared in between type and its main variant.
31353
31354 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
31355
31356         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
31357         of the type.
31358         (ipa_set_ancestor_jf) Likewise.
31359         (check_stmt_for_type_change): Check that we work on main variant.
31360         (detect_type_change): Look into main variant.
31361         (compute_known_type_jump_func): Check that main variant has BINFO.
31362
31363 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
31364
31365         * ipa-devirt.c (set_type_binfo): New function.
31366         (add_type_duplicate): Use it.
31367         (get_odr_type): Sanity check that binfos points to main variants.
31368         (get_class_context): Be sure the context's outer_type is main variant.
31369         (contains_type_p): Walk main variant.
31370         (get_polymorphic_call_info_for_decl): Set outer_type to be
31371         main variant.
31372         (get_polymorphic_call_info): Likewise.
31373         (possible_polymorphic_call_targets): Sanity check that we operate
31374         on main variant.
31375
31376 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
31377
31378         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31379
31380 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31381
31382         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
31383         accidental change due to wide-int branch merge.
31384
31385 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31386
31387         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
31388         compressed debug support.
31389         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
31390         * configure: Regenerate.
31391         * config.in: Regenerate.
31392         * common.opt (compressed_debug_sections): New enum.
31393         (gz, gz=): New options.
31394         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
31395         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
31396         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
31397         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
31398         LINK_COMPRESS_DEBUG_SPEC.
31399         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
31400         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
31401         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
31402         (Debugging Options): Document -gz[=type].
31403
31404 2014-06-27  Martin Jambor  <mjambor@suse.cz>
31405
31406         PR ipa/61160
31407         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
31408         args_to_skip, use those from node instead.  Copy args_to_skip and
31409         combined_args_to_skip from node to the new thunk.
31410         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
31411         (cgraph_create_virtual_clone): Moved computation of
31412         combined_args_to_skip...
31413         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
31414
31415 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
31416
31417         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
31418         redundant diagnostic machinary.
31419
31420 2014-06-27  Richard Biener  <rguenther@suse.de>
31421
31422         * tree-ssa-math-opts.c (bswap_replace): Fix
31423         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
31424
31425 2014-06-27  Martin Liska  <mliska@suse.cz>
31426
31427         * gimple.h (gimple_location_safe): New function introduced.
31428         * cgraphunit.c (walk_polymorphic_call_targets): Usage
31429         of gimple_location_safe replaces gimple_location.
31430         (gimple_fold_call): Likewise.
31431         * ipa-devirt.c (ipa_devirt): Likewise.
31432         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
31433         * ipa.c (walk_polymorphic_call_targets): Likewise.
31434         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31435
31436 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
31437
31438         PR tree-optimization/57233
31439         PR tree-optimization/61299
31440         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
31441         functions.
31442         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
31443         would be lowered to scalar shifts, check if corresponding
31444         shifts and vector BIT_IOR_EXPR are supported and don't lower
31445         or lower just to narrower vector type in that case.
31446         * expmed.c (expand_shift_1): Fix up handling of vector
31447         shifts and rotates.
31448
31449 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
31450
31451         PR target/61586
31452         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
31453
31454 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
31455
31456         * doc/invoke.texi (-fsemantic-interposition): Document.
31457         * common.opt (fsemantic-interposition): New flag.
31458         * varasm.c (decl_replaceable_p): Use it.
31459
31460 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31461
31462         PR target/61542
31463         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
31464         extraction other than index 3.
31465
31466 2014-06-26  Teresa Johnson  <tejohnson@google.com>
31467
31468         * doc/invoke.texi: Fix typo.
31469         * dumpfile.c: Add support for documented -fdump-* options
31470         optimized/missed/note/optall.
31471
31472 2014-06-26  Martin Jambor  <mjambor@suse.cz>
31473
31474         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
31475         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
31476         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
31477         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
31478         * opts.c (default_options_optimization): Set
31479         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
31480         * doc/invoke.texi (allow-load-data-races)
31481         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
31482         (allow-store-data-races): Document the new default.
31483
31484 2014-06-26  Martin Jambor  <mjambor@suse.cz>
31485
31486         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
31487         renamed to ipa_impossible_devirt_target.  Fix typo.
31488         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
31489         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
31490         ipa_impossible_devirt_target.
31491
31492 2014-06-26  Richard Biener  <rguenther@suse.de>
31493
31494         PR tree-optimization/61607
31495         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
31496         explaining why we restrict copies on loop depth.
31497         * tree-ssa-dom.c (cprop_operand): Remove restriction on
31498         on loop depth.
31499         (record_equivalences_from_phis): Instead add it here.
31500
31501 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
31502
31503         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
31504         (LTO_WRAPPER_OBJS): New variable.
31505         (lto-wrapper$(exeext)): Use it.
31506         * collect2.c: Include "collect-utils.h".
31507         (verbose, debug): Remove variables.
31508         (at_file_supplied): No longer static.
31509         (tool_name): New variable.
31510         (do_wait, fork_execute, maybe_unlink): Don't declare.
31511         (tool_cleanup): No longer static.
31512         (notice): Remove function.
31513         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
31514         fork_execute calls.
31515         (collect_wait, do_wait, collect_execute): Remove functions.
31516         (maybe_unlink): No longer static.
31517         * collect2.h (verbose, debug): Don't declare.
31518         (at_file_supplied): Declare.
31519         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
31520         changed.
31521         (collect_execute): Replace with implementation from collect2, plus a
31522         new arg use_atfile.  All callers changed.
31523         (collect_wait): Replace with implementation from collect2.
31524         (maybe_unlink_file): Remove function.
31525         (fork_execute): Replace with implementation from collect2, plus a
31526         new arg use_atfile.  All callers changed.
31527         (do_wait): Add call to utils_cleanup to the error path.
31528         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
31529         (tool_cleanup): Adjust declarations.
31530         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
31531         * tlink.c: Include "collect-utils.h".
31532         (tlink_execute): New arg use_atfile.  All callers changed.
31533         (tlink_init, tlink_execute): Remove declarations.
31534
31535         * collect-utils.c (save_temps): New variable.
31536         (do_wait): Use it instead of debug.  Use fatal_error.
31537         * collect-utils.h (save_temps): Declare.
31538         * collect2.c (verbose): Rename from vflag.  All uses changed.
31539         (tool_cleanup): New function, copied from collect_atexit.
31540         (collect_atexit, handler): Just call it.
31541         * collect2.h (verbose): Declaration renamed from vflag.
31542         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
31543         debug.
31544
31545         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
31546         (lto-wrapper$(exeext)): Link with collect-utils.o.
31547         * collect-utils.c: New file.
31548         * collect-utils.h: New file.
31549         * lto-wrapper.c: Include "collect-utils.h".
31550         (args_name): Delete variable.
31551         (tool_name): New variable.
31552         (tool_cleanup): New function.
31553         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
31554         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
31555         (fork_execute): Remove functions.
31556
31557 2014-06-26  Nick Clifton  <nickc@redhat.com>
31558
31559         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
31560
31561         * doc/extend.texi (Function Attributes): Fix typo in description
31562         of RX vector attribute.
31563
31564 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
31565
31566         * config.gcc (supported_defaults): Error when passing either
31567         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
31568
31569 2014-06-26  Richard Biener  <rguenther@suse.de>
31570
31571         * tree-ssa-dom.c (cprop_operand): Remove restriction on
31572         propagating volatile pointers.
31573
31574 2014-06-26  Richard Biener  <rguenther@suse.de>
31575
31576         PR tree-optimization/61607
31577         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
31578         loop if we redirected its latch edge.
31579         (thread_block_1): Do not cancel loops prematurely.
31580
31581 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
31582
31583         * toplev.c (backend_init_target): Move init_emit_regs and
31584         init_regs to...
31585         (backend_init) ... here; skip ira_init_once and backend_init_target.
31586         (target_reinit) ... and here; clear
31587         this_target_rtl->lang_dependent_initialized.
31588         (lang_dependent_init_target): Clear
31589         this_target_rtl->lang_dependent_initialized;
31590         break out rtl initialization to ...
31591         (initialize_rtl): ... here; call also backend_init_target
31592         and ira_init_once.
31593         * toplev.h (initialize_rtl): New function.
31594         * function.c: Include toplev.h
31595         (init_function_start): Call initialize_rtl.
31596         * rtl.h (target_rtl): Add target_specific_initialized,
31597         lang_dependent_initialized.
31598
31599 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
31600             Jakub Jelinek  <jakub@redhat.com>
31601
31602         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
31603
31604 2014-06-25  Tom de Vries  <tom@codesourcery.com>
31605
31606         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
31607
31608 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31609
31610         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
31611         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
31612         Issue a strict overflow warning if appropriate.
31613
31614 2014-06-25  Martin Liska  <mliska@suse.cz>
31615
31616         IPA REF refactoring
31617         * Makefile.in: Removed header file (ipa-ref-inline.h).
31618         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
31619         called.
31620         (cgraph_speculative_call_info): Likewise.
31621         (cgraph_for_node_thunks_and_aliases): Likewise.
31622         (cgraph_for_node_and_aliases): Likewise.
31623         (verify_cgraph_node): Likewise.
31624         * cgraph.h: Batch of IPA REF functions become member functions of
31625         symtab_node: add_reference, maybe_add_reference, clone_references,
31626         clone_referring, clone_reference, find_reference,
31627         remove_stmt_references, remove_all_references,
31628         remove_all_referring, dump_references, dump_referring,
31629         has_alias_p, iterate_reference, iterate_referring.
31630         * cgraphbuild.c (record_reference): New IPA REF function used.
31631         (record_type_list): Likewise.
31632         (record_eh_tables): Likewise.
31633         (mark_address): Likewise.
31634         (mark_load): Likewise.
31635         (mark_store): Likewise.
31636         (pass_build_cgraph_edges): Likewise.
31637         (rebuild_cgraph_edge): Likewise.
31638         (cgraph_rebuild_references): Likewise.
31639         (pass_remove_cgraph_callee_edges): Likewise.
31640         * cgraphclones.c (cgraph_clone_node): Likewise.
31641         (cgraph_create_virtual_clone): Likewise.
31642         (cgraph_materialize_clone): Likewise.
31643         (cgraph_materialize_all_clones): Likewise.
31644         * cgraphunit.c (cgraph_reset_node): Likewise.
31645         (cgraph_reset_node): Likewise.
31646         (analyze_function): Likewise.
31647         (assemble_thunks_and_aliases): Likewise.
31648         (expand_function): Likewise.
31649         * ipa-comdats.c (propagate_comdat_group): Likewise.
31650         (enqueue_references): Likewise.
31651         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
31652         (create_specialized_node): Likewise.
31653         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
31654         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
31655         * ipa-inline.c (reset_edge_caches): Likewise.
31656         (update_caller_keys): Likewise.
31657         (execute): Likewise.
31658         * ipa-prop.c (remove_described_reference): Likewise.
31659         (propagate_controlled_uses): Likewise.
31660         (ipa_edge_duplication_hook): Likewise.
31661         (ipa_modify_call_arguments): Likewise.
31662         * ipa-pure-const.c (propagate_pure_const): Likewise.
31663         * ipa-ref-inline.h: Header file removed, functions moved
31664         to symtab_node class.
31665         * ipa-ref.c (remove_reference): New class member function.
31666         (cannot_lead_to_return): New class member function.
31667         (referring_ref_list): Likewise.
31668         (referred_ref_list): Likewise.
31669         Rest of functions moved to symtab_node class.
31670         * ipa-ref.h: New member functions remove_reference,
31671         cannot_lead_to_return, referring_ref_list, referred_ref_list added
31672         to ipa_ref class.
31673         ipa_ref_list class has new member functions: first_reference,
31674         first_referring, clear, nreferences.
31675         * ipa-reference.c (analyze_function): New IPA REF function used.
31676         (write_node_summary_p): Likewise.
31677         (ipa_reference_write_optimization_summary): Likewise.
31678         * ipa-split.c (split_function): Likewise.
31679         * ipa-utils.c (ipa_reverse_postorder): Likewise.
31680         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
31681         (function_and_variable_visibility): Likewise.
31682         * ipa.c (has_addr_references_p): Likewise.
31683         (process_references): Argument type changed.
31684         (symtab_remove_unreachable_nodes): New IPA REF function used.
31685         (process_references): Likewise.
31686         (set_writeonly_bit): Likewise.
31687         * lto-cgraph.c: Implementation of new symtab_node member functions
31688         that uses new IPA REF functions.
31689         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
31690         function used.
31691         * lto-streamer-out.c (output_symbol_p): Likewise.
31692         * lto-streamer.h (referenced_from_this_partition_p): Argument type
31693         changed.
31694         * symtab.c: Implementation of new IPA REF API.
31695         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
31696         (ipa_tm_create_version): Likewise.
31697         (ipa_tm_execute): Likewise.
31698         * tree-emutls.c (gen_emutls_addr): Likewise.
31699         * tree-inline.c (copy_bb): Likewise.
31700         (delete_unreachable_blocks_update_callgraph): Likewise.
31701         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
31702         (varpool_for_node_and_aliases): Likewise.
31703
31704 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
31705
31706         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
31707
31708 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
31709
31710         PR bootstrap/61598
31711         * fold-const.c (fold_checksum_tree): Use a hash_table of const
31712         tree_node * instead of tree_node *.
31713         (fold): Adjust.
31714         (print_fold_checksum): Likewise.
31715         (fold_check_failed): Likewise.
31716         (debug_fold_checksum): Likewise.
31717         (fold_build1_stat_loc): Likewise.
31718         (fold_build2_stat_loc): Likewise.
31719         (fold_build3_stat_loc): Likewise.
31720         (fold_build_call_array_loc): Likewise.
31721
31722 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
31723
31724         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
31725         implementation with call to...
31726         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
31727         function.
31728         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
31729         Declare.
31730
31731 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
31732
31733         PR tree-optimization/57742
31734         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
31735         after replacing the statement.
31736
31737 2014-06-25  Nick Clifton  <nickc@redhat.com>
31738
31739         * config/v850/v850.c (GHS_default_section_names): Change to const
31740         char * type.
31741         (GHS_current_section_names): Likewise.
31742         (v850_insert_attributes): Do not build strings, just assign the
31743         names directly.  Change the type of 'chosen_section' to const
31744         char*.
31745         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
31746         directly to the array entry.
31747         * config/v850/v850.h (GHS_default_section_names): Change to const
31748         char * type.
31749         (GHS_current_section_names): Likewise.
31750
31751 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
31752
31753         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
31754         (LANG_HOOKS_DECLS): Add it.
31755         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
31756         has correct type.
31757         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
31758         * langhooks.h (struct lang_hooks_for_decls): Add
31759         omp_clause_linear_ctor hook.
31760         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
31761         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
31762         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
31763         combined simd loop use omp_clause_linear_ctor hook.
31764
31765 2014-06-24  Cong Hou  <congh@google.com>
31766
31767         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
31768         pattern recognition.
31769         (type_conversion_p): PROMOTION is true if it's a type promotion
31770         conversion, and false otherwise.  Return true if the given expression
31771         is a type conversion one.
31772         * tree-vectorizer.h: Adjust the number of patterns.
31773         * tree.def: Add SAD_EXPR.
31774         * optabs.def: Add sad_optab.
31775         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
31776         * expr.c (expand_expr_real_2): Likewise.
31777         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
31778         * gimple.c (get_gimple_rhs_num_ops): Likewise.
31779         * optabs.c (optab_for_tree_code): Likewise.
31780         * tree-cfg.c (estimate_operator_cost): Likewise.
31781         * tree-ssa-operands.c (get_expr_operands): Likewise.
31782         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
31783         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
31784         * doc/generic.texi: Add document for SAD_EXPR.
31785         * doc/md.texi: Add document for ssad and usad.
31786
31787 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
31788
31789         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
31790         qualification in cast.
31791
31792 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
31793
31794         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
31795         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
31796         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
31797         (tree_function_decl): ... here.
31798         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
31799         streaming of vindex to ...
31800         (write_ts_function_decl_tree_pointers): ... here.
31801         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
31802         Do not stream DECL_VINDEX.
31803         (lto_input_ts_function_decl_tree_pointers): Stream it here.
31804
31805 2014-06-24  Catherine Moore  <clm@codesourcery.com>
31806             Sandra Loosemore  <sandra@codesourcery.com>
31807
31808         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
31809         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
31810         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
31811
31812 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
31813
31814         * doc/invoke.texi (Warning Options): Remove duplicated
31815         -Wmaybe-uninitialized.
31816
31817 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
31818
31819         PR tree-optimization/57742
31820         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
31821         (handle_builtin_malloc, handle_builtin_memset): New functions.
31822         (strlen_optimize_stmt): Call them.
31823         * passes.def: Move strlen after loop+dom but before vrp.
31824
31825 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
31826
31827         PR target/61570
31828         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
31829         model family 6 CPU with has_longmode never use a CPU without
31830         64-bit support.
31831
31832 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
31833
31834         PR target/61570
31835         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
31836         the last change.
31837
31838 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
31839
31840         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
31841         * dominance.c (iterate_fix_dominators): Use hash_map instead of
31842         pointer_map.
31843         * hash-map.h: New file.
31844         * ipa-comdats.c: Use hash_map instead of pointer_map.
31845         * ipa.c: Likewise.
31846         * lto-section-out.c: Adjust.
31847         * lto-streamer.h: Replace pointer_map with hash_map.
31848         * symtab.c (verify_symtab): Likewise.
31849         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
31850         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
31851         * tree-streamer.h: Likewise.
31852         * tree-streamer.c: Adjust.
31853         * pointer-set.h: Remove pointer_map.
31854
31855 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
31856
31857         * hash-table.h: Add a template arg to choose between storing values
31858         and storing pointers to values, and then provide partial
31859         specializations for both.
31860         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
31861         should store, not the type values should point to.
31862         * tree-into-ssa.c (var_info_hasher): Likewise.
31863         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
31864         * tree-complex.c: Adjust.
31865         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
31866         table instead of int_tree_map *.
31867         * tree-parloops.c: Adjust.
31868         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
31869         type is being stored.
31870         * tree-vectorizer.c: Adjust.
31871
31872 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
31873
31874         * hash-table.h: Remove a layer of indirection from hash_table so that
31875         it contains the hash table's data instead of a pointer to the data.
31876         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
31877         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
31878         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
31879         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
31880         fold-const.c, gcse.c, ggc-common.c,
31881         gimple-ssa-strength-reduction.c, gimplify.c,
31882         graphite-clast-to-gimple.c, graphite-dependences.c,
31883         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
31884         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31885         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
31886         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
31887         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
31888         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
31889         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
31890         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
31891         tree-ssa-live.c, tree-ssa-loop-im.c,
31892         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
31893         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
31894         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31895         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
31896         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
31897         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
31898         vtable-verify.c, vtable-verify.h: Adjust.
31899
31900 2014-06-24  Richard Biener  <rguenther@suse.de>
31901
31902         PR tree-optimization/61572
31903         * tree-ssa-sink.c (statement_sink_location): Do not sink
31904         loads from hard registers.
31905
31906 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
31907
31908         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
31909         not mentioned in clauses use private clause if the iterator is
31910         declared in #pragma omp for simd, and when adding lastprivate
31911         instead, add it to the outer #pragma omp for too.  Diagnose
31912         if the variable is private in outer context.  For simd collapse > 1
31913         loops, replace all iterators with temporaries.
31914         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
31915         same even in collapse > 1 loops.
31916
31917         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
31918         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
31919         non-NULL.
31920         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
31921         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
31922         non-NULL.
31923         (gimplify_adjust_omp_clauses): Likewise.
31924         * omp-low.c (lower_rec_simd_input_clauses,
31925         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
31926         safelen the same as safelen(1).
31927         * tree-nested.c (convert_nonlocal_omp_clauses,
31928         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
31929         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
31930         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
31931         Fixup handling of GIMPLE_OMP_TARGET.
31932         (convert_tramp_reference_stmt, convert_gimple_call): Handle
31933         GIMPLE_OMP_TARGET.
31934
31935 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
31936
31937         PR tree-optimization/61554
31938         * tree-ssa-propagate.c: Include "bitmap.h".
31939         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
31940         properly update constructor/destructor.
31941         (substitute_and_fold_dom_walker::before_dom_children):
31942         Remove call to gimple_purge_dead_eh_edges, add bb->index to
31943         need_eh_cleaup instead.
31944         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
31945         need_eh_cleanup.
31946
31947 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
31948
31949         * varpool.c (dump_varpool_node): Dump used_by_single_function.
31950         * tree-pass.h (make_pass_ipa_single_use): New pass.
31951         * cgraph.h (used_by_single_function): New flag.
31952         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
31953         Stream it.
31954         * passes.def (pass_ipa_single_use): Scedule.
31955         * ipa.c (BOTTOM): New macro.
31956         (meet): New function
31957         (propagate_single_user): New function.
31958         (ipa_single_use): New function.
31959         (pass_data_ipa_single_use): New pass.
31960         (pass_ipa_single_use): New pass.
31961         (pass_ipa_single_use::gate): New gate.
31962         (make_pass_ipa_single_use): New function.
31963
31964 2014-06-23  Kai Tietz  <ktietz@redhat.com>
31965
31966         PR target/39284
31967         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
31968         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
31969
31970 2014-06-23  Richard Biener  <rguenther@suse.de>
31971
31972         * tree-ssa-loop.c (gate_loop): New function.
31973         (pass_tree_loop::gate): Call it.
31974         (pass_data_tree_no_loop, pass_tree_no_loop,
31975         make_pass_tree_no_loop): New.
31976         * tree-vectorizer.c: Include tree-scalar-evolution.c
31977         (pass_slp_vectorize::execute): Initialize loops and SCEV if
31978         required.
31979         (pass_slp_vectorize::clone): New method.
31980         * timevar.def (TV_TREE_NOLOOP): New.
31981         * tree-pass.h (make_pass_tree_no_loop): Declare.
31982         * passes.def (pass_tree_no_loop): New pass group with
31983         SLP vectorizer.
31984
31985 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
31986
31987         PR target/61570
31988         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
31989         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
31990
31991 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
31992
31993         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
31994         "yes" where needed.
31995
31996 2014-06-23  Alan Modra  <amodra@gmail.com>
31997
31998         PR bootstrap/61583
31999         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
32000         to zero on debug statements.
32001
32002 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
32003
32004         PR target/60825
32005         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
32006         Ignore third operand if present by marking qualifier_internal.
32007
32008         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
32009
32010         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
32011         vector extension.
32012         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
32013         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
32014         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
32015         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
32016         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
32017         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
32018         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
32019         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
32020         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
32021         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
32022         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
32023         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
32024         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
32025         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
32026         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
32027         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
32028         logic in GCC vector extensions
32029
32030         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
32031         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
32032         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
32033         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
32034         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
32035         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
32036         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
32037         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
32038         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
32039         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
32040
32041         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
32042
32043         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
32044         extensions.
32045
32046         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
32047         (vget_low_s64): Use __GET_LOW macro.
32048         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
32049         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
32050         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
32051         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
32052         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
32053
32054         (vcombine_s64): Use GCC vector extensions; remove cast.
32055         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
32056         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
32057         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
32058         Fix type signature; remove cast.
32059
32060 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
32061
32062         PR target/60825
32063         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
32064         V1DFmode.
32065         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
32066         add V1DFmode
32067         (BUILTIN_VD1): New.
32068         (BUILTIN_VD_RE): Remove.
32069         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
32070         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
32071         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
32072         variant but not df.
32073         (vreinterpretv1df*, vreinterpret*v1df): New.
32074         (vreinterpretdf*, vreinterpret*df): Remove.
32075         * config/aarch64/aarch64-simd.md (aarch64_create,
32076         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
32077         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
32078         (VD1): New.
32079         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
32080         (vcreate_f64): Remove cast, use v1df builtin.
32081         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
32082         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
32083         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
32084         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
32085         vmov_n_f64, vst1_f64): Use gcc vector extensions.
32086         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
32087         add range check using __builtin_aarch64_im_lane_boundsi.
32088         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
32089         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
32090         type signature, use gcc vector extensions.
32091         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
32092         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
32093         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
32094         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
32095         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
32096         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
32097         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
32098         vreinterpret_u64_f64): Use v1df builtin not df.
32099
32100 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
32101
32102         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
32103         vector registers.
32104
32105 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
32106
32107         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
32108         priority directly.
32109
32110 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
32111
32112         * loop-invariant.c (pre_check_invariant_p): New function.
32113         (find_invariant_insn): Call pre_check_invariant_p.
32114
32115 2014-06-22  Richard Henderson  <rth@redhat.com>
32116
32117         PR target/61565
32118         * compare-elim.c (struct comparison): Add eh_note.
32119         (find_comparison_dom_walker::before_dom_children): Don't eliminate
32120         a redundant comparison in a different EH region.  Purge EH edges if
32121         necessary.
32122
32123 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
32124
32125         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
32126         (var_shift): Use it.
32127         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
32128         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
32129         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
32130         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
32131         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
32132         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
32133         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
32134         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
32135         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
32136         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
32137         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
32138         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
32139         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
32140         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
32141         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
32142         *rotldi3_internal15be): Use the new attribute.  Merge register and
32143         integer alternatives.
32144
32145 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
32146
32147         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
32148         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
32149         split, *ashrdi3_internal3 and split): Delete, merge into...
32150         (ashr<mode>3): New expander.
32151         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
32152         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
32153
32154 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
32155
32156         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
32157         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
32158         *rotldi3_internal3 and split): Delete, merge into...
32159         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
32160         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
32161         Use "rotlw" extended mnemonic.
32162
32163 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
32164
32165         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
32166         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
32167         and split, *ashldi3_internal3 and split): Delete, merge into...
32168         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
32169         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
32170
32171 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
32172
32173         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
32174         (lshrsi3, two anonymous define_insns and define_splits,
32175         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
32176         *lshrdi3_internal3 and split): Delete, merge into...
32177         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
32178         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
32179
32180 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
32181
32182         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
32183         Remove "O" alternative.
32184
32185 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
32186
32187         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
32188         (mips_move_from_gpr_cost): Likewise.
32189         (mips_register_move_cost): Update accordingly.
32190         (mips_secondary_reload_class): Remove name of in_p.
32191
32192 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
32193
32194         PR target/61503
32195         * config/i386/i386.md (x86_64_shrd, x86_shrd,
32196         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
32197
32198 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32199
32200         * config/nios2/nios2.c: Include "builtins.h".
32201
32202 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
32203
32204         * cgraph.h (tls_model_names): New variable.
32205         * print-tree.c (print_node): Simplify.
32206         * varpool.c (tls_model_names): New variable.
32207         (dump_varpool_node): Output tls model.
32208
32209 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
32210
32211         * ipa-visibility.c (function_and_variable_visibility): Disable
32212         temporarily local aliases for some targets.
32213
32214 2014-06-20  Marek Polacek  <polacek@redhat.com>
32215
32216         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
32217         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
32218         into SANITIZE_UNDEFINED.
32219         * doc/invoke.texi: Describe -fsanitize=bounds.
32220         * gimplify.c (gimplify_call_expr): Add gimplification of internal
32221         functions created in the FEs.
32222         * internal-fn.c: Move "internal-fn.h" after "tree.h".
32223         (expand_UBSAN_BOUNDS): New function.
32224         * internal-fn.def (UBSAN_BOUNDS): New internal function.
32225         * internal-fn.h: Don't define internal functions here.
32226         * opts.c (common_handle_option): Add -fsanitize=bounds.
32227         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
32228         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
32229         * tree-core.h: Define internal functions here.
32230         (struct tree_base): Add ifn field.
32231         * tree-pretty-print.c: Include "internal-fn.h".
32232         (dump_generic_node): Handle functions without CALL_EXPR_FN.
32233         * tree.c (get_callee_fndecl): Likewise.
32234         (build_call_expr_internal_loc): New function.
32235         * tree.def (CALL_EXPR): Update description.
32236         * tree.h (CALL_EXPR_IFN): Define.
32237         (build_call_expr_internal_loc): Declare.
32238         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
32239         types.
32240         (ubsan_type_descriptor): Change bool parameter to enum
32241         ubsan_print_style.  Adjust the code.  Add handling of
32242         UBSAN_PRINT_ARRAY.
32243         (ubsan_expand_bounds_ifn): New function.
32244         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
32245         (ubsan_build_overflow_builtin): Likewise.
32246         (instrument_bool_enum_load): Likewise.
32247         (ubsan_instrument_float_cast): Likewise.
32248         * ubsan.h (enum ubsan_print_style): New enum.
32249         (ubsan_expand_bounds_ifn): Declare.
32250         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
32251
32252 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
32253
32254         * config/rs6000/rs6000.md: Append `DONE' to preparation
32255         statements of `bswap' pattern splitters.
32256
32257 2014-06-20  Tom de Vries  <tom@codesourcery.com>
32258
32259         * target.def (call_fusage_contains_non_callee_clobbers): Update
32260         definition.
32261         * doc/tm.texi: Regenerate.
32262
32263 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
32264             Max Ostapenko  <m.ostapenko@partner.samsung.com>
32265
32266         PR sanitizer/61547
32267         * asan.c (instrument_strlen_call): Fixed instrumentation of
32268         trailing byte.
32269
32270 2014-06-20  Martin Jambor  <mjambor@suse.cz>
32271
32272         PR ipa/61540
32273         * ipa-prop.c (impossible_devirt_target): New function.
32274         (try_make_edge_direct_virtual_call): Use it, also instead of
32275         asserting.
32276
32277 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
32278             Max Ostapenko  <m.ostapenko@partner.samsung.com>
32279
32280         PR sanitizer/61530
32281         * asan.c (build_check_stmt): Add condition.
32282
32283 2014-06-20  Martin Jambor  <mjambor@suse.cz>
32284
32285         PR ipa/61211
32286         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
32287         expanded clones.
32288
32289 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32290
32291         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
32292         Update comments.
32293         (VCONQ): Make comment more helpful.
32294         (VCON): Delete.
32295         * config/aarch64/aarch64-simd.md
32296         (aarch64_sqdmulh_lane<mode>):
32297         Use VCOND for operands 2.  Update lane checking and flipping logic.
32298         (aarch64_sqrdmulh_lane<mode>): Likewise.
32299         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
32300         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
32301         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
32302         attribute of operand 3 to VCOND.
32303         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
32304         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
32305         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
32306         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
32307         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
32308         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
32309         define_insn.
32310         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
32311         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
32312         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
32313         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
32314         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
32315         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
32316         operand to VCOND.  Update lane flipping and bounds checking logic.
32317         (aarch64_sqdmlal2_lane<mode>): Likewise.
32318         (aarch64_sqdmlsl_lane<mode>): Likewise.
32319         (aarch64_sqdmull_lane<mode>): Likewise.
32320         (aarch64_sqdmull2_lane<mode>): Likewise.
32321         (aarch64_sqdmlal_laneq<mode>):
32322         Replace VCON usage with VCONQ.
32323         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
32324         (aarch64_sqdmlal2_laneq<mode>): Emit
32325         aarch64_sqdmlal2_laneq<mode>_internal insn.
32326         Replace VCON with VCONQ.
32327         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
32328         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
32329         (aarch64_sqdmull_laneq<mode>): Emit
32330         aarch64_sqdmull_laneq<mode>_internal insn.
32331         Replace VCON with VCONQ.
32332         (aarch64_sqdmull2_laneq<mode>): Emit
32333         aarch64_sqdmull2_laneq<mode>_internal insn.
32334         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
32335         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
32336         of 3rd argument to int16x4_t.
32337         (vqdmlalh_lane_s16): Likewise.
32338         (vqdmlslh_lane_s16): Likewise.
32339         (vqdmull_high_lane_s16): Likewise.
32340         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
32341         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
32342         (vqdmlsl_lane_s16): Likewise.
32343         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
32344         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
32345         (vqdmlals_lane_s32): Likewise.
32346         (vqdmlsls_lane_s32): Likewise.
32347         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
32348         (vqdmulls_lane_s32): Likewise.
32349         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
32350         (vqdmlsl_lane_s32): Likewise.
32351         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
32352         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
32353         (vqrdmulhh_lane_s16): Likewise.
32354         (vqdmlsl_high_lane_s16): Likewise.
32355         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
32356         (vqdmlsl_high_lane_s32): Likewise.
32357         (vqrdmulhs_lane_s32): Likewise.
32358
32359 2014-06-20  Tom de Vries  <tom@codesourcery.com>
32360
32361         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
32362         get_call_reg_set_usage.
32363
32364 2014-06-20  Tom de Vries  <tom@codesourcery.com>
32365
32366         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
32367         it contains all call_used_regs.
32368
32369 2014-06-20  Tom de Vries  <tom@codesourcery.com>
32370
32371         * final.c (collect_fn_hard_reg_usage): Add and use variable
32372         function_used_regs.
32373
32374 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
32375
32376         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
32377         (set_init_priority, get_init_priority, set_fini_priority,
32378         get_fini_priority): New methods.
32379         * tree.c (init_priority_for_decl): Remove.
32380         (init_ttree): Do not initialize init priority.
32381         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
32382         (decl_priority_info): Remove.
32383         (decl_init_priority_insert): Rewrite.
32384         (decl_fini_priority_insert): Rewrite.
32385         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
32386         tree_priority_map_marked_p): Remove.
32387         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
32388         * lto-streamer-out.c (hash_tree): Do not hash priorities.
32389         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
32390         not output priorities.
32391         (pack_ts_function_decl_value_fields): Likewise.
32392         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
32393         not input priorities.
32394         (unpack_ts_function_decl_value_fields): Likewise.
32395         * symtab.c (symbol_priority_map): Declare.
32396         (init_priority_hash): Declare.
32397         (symtab_unregister_node): Unregister from priority hash, too.
32398         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
32399         New methods.
32400         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
32401         (symbol_priority_info): New function.
32402         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
32403         New methods.
32404         * tree-core.h (tree_priority_map): Remove.
32405
32406 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
32407
32408         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
32409         0xff to uint64_t before shifting it up.
32410
32411 2014-06-20  Julian Brown  <julian@codesourcery.com>
32412             Chung-Lin Tang  <cltang@codesourcery.com>
32413
32414         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
32415         TARGET_THUMB1_ONLY. Add comments.
32416
32417 2014-06-19  Tom de Vries  <tom@codesourcery.com>
32418
32419         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
32420         return type to void.
32421         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
32422
32423 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
32424
32425         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
32426         as "move", from depends_on.
32427
32428 2014-06-19  Terry Guo  <terry.guo@arm.com>
32429
32430         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
32431         stage.
32432
32433 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
32434
32435         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
32436         Remove cr5.
32437         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
32438
32439 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
32440
32441         PR target/61550
32442         * config/sh/sh.c (prepare_move_operands): Don't process TLS
32443         addresses here if reload in progress or completed.
32444
32445 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
32446
32447         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
32448         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
32449         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
32450         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
32451         (mips_register_priority): New function that implements the target
32452         hook TARGET_REGISTER_PRIORITY.
32453         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
32454         (mips_lra_p): Likewise for TARGET_LRA_P.
32455         (TARGET_REGISTER_PRIORITY): Define macro.
32456         (TARGET_SPILL_CLASS): Likewise.
32457         (TARGET_LRA_P): Likewise.
32458         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
32459         classes.
32460         (REG_CLASS_NAMES): Likewise.
32461         (REG_CLASS_CONTENTS): Likewise.
32462         (BASE_REG_CLASS): Use M16_SP_REGS.
32463         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
32464         New set attribute to enable alternatives depending on the register
32465         allocator used.
32466         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
32467         (*lea64): Disable pattern for MIPS16.
32468         * config/mips/mips.opt (mlra): New option.
32469
32470 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
32471
32472         * lra-constraints.c (base_to_reg): New function.
32473         (process_address): Use new function.
32474
32475 2014-06-18  Tom de Vries  <tom@codesourcery.com>
32476
32477         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
32478         * config/aarch64/aarch64.c
32479         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
32480         (aarch64_emit_call_insn): New function.
32481         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
32482         of emit_call_insn.
32483         * config/aarch64/aarch64.md (define_expand "call_internal")
32484         (define_expand "call_value_internal", define_expand "sibcall_internal")
32485         (define_expand "sibcall_value_internal"): New.
32486         (define_expand "call", define_expand "call_value")
32487         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
32488         expand variant and aarch64_emit_call_insn.
32489
32490 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
32491             Tom de Vries  <tom@codesourcery.com>
32492
32493         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
32494         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
32495         Redefine to true.
32496         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
32497         clobbers to CALL_INSN_FUNCTION_USAGE.
32498         (define_expand "sibcall_internal")
32499         (define_expand "sibcall_value_internal"): New.
32500         (define_expand "call", define_expand "call_value"): Add argument to
32501         arm_emit_call_insn.
32502         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
32503         (define_expand "sibcall_value"): Use sibcall_value_internal and
32504         arm_emit_call_insn.
32505
32506 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32507
32508         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
32509
32510 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32511
32512         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
32513         __udivmoddi4.
32514
32515 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32516
32517         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
32518         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
32519         annotations. Fix DWARF information.
32520
32521 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32522
32523         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
32524         __udivmoddi4, and fixups for negative operands.
32525
32526 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32527
32528         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
32529
32530 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32531
32532         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
32533         to __udivmoddi4.
32534
32535 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32536
32537         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
32538         manipulation.
32539
32540 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32541
32542         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
32543         describing register usage on function entry and exit.
32544
32545 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32546
32547         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
32548         (__aeabi_ldivmod): Fix whitespace.
32549
32550 2014-06-18  Andreas Schwab  <schwab@suse.de>
32551
32552         * doc/md.texi (Standard Names): Use @itemx for grouped items.
32553         Remove blank line after @item.
32554
32555 2014-06-18  Richard Henderson  <rth@redhat.com>
32556
32557         PR target/61545
32558         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
32559
32560 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32561
32562         * config/arm/arm.c (neon_vector_mem_operand): Allow register
32563         POST_MODIFY for neon loads and stores.
32564         (arm_print_operand): Output post-index register for neon loads and
32565         stores.
32566
32567 2014-06-18  Richard Biener  <rguenther@suse.de>
32568
32569         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
32570
32571 2014-06-18  Richard Biener  <rguenther@suse.de>
32572
32573         * tree-pass.h (make_pass_dce_loop): Remove.
32574         * passes.def: Replace pass_dce_loop with pass_dce.
32575         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
32576         changed free niter estimates and reset the scev cache.
32577         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
32578         make_pass_dce_loop): Remove.
32579         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
32580         (fini_copy_prop): Return whether something changed.  Always
32581         let substitute_and_fold perform DCE and free niter estimates
32582         and reset the scev cache if so.
32583         (execute_copy_prop): If sth changed schedule cleanup-cfg.
32584         (pass_data_copy_prop): Do not unconditionally schedule
32585         cleanup-cfg or update-ssa.
32586
32587 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
32588
32589         PR tree-optimization/61518
32590         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
32591         reduction var is used in reduction stmt or phi-function only.
32592
32593 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32594
32595         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
32596
32597 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32598
32599         PR tree-optimization/61517
32600         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
32601         whose rhs's first tree is the source expression instead of the
32602         expression itself.
32603         (find_bswap_or_nop): Likewise.
32604         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
32605         gimple stmt whose rhs's first tree is the source. In the memory source
32606         case, move the stmt to be replaced close to one of the original load to
32607         avoid the problem of a store between the load and the stmt's original
32608         location.
32609         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
32610         signature.
32611
32612 2014-06-18  Andreas Schwab  <schwab@suse.de>
32613
32614         PR rtl-optimization/54555
32615         * postreload.c (move2add_use_add2_insn): Substitute
32616         STRICT_LOW_PART only if it is cheaper.
32617
32618 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
32619
32620         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
32621         Do not use unspec as call operand.  Use memory_operand instead of
32622         memory_nox32_operand and add "m" operand constraint.  Disable
32623         pattern for TARGET_X32.
32624         (*sibcall_pop_memory): Ditto.
32625         (*sibcall_value_memory): Ditto.
32626         (*sibcall_value_pop_memory): Ditto.
32627         (sibcall peepholes): Merge SImode and DImode patterns using
32628         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
32629         Disable pattern for TARGET_X32.  Check if eliminated register is
32630         really dead after call insn.  Generate call RTX without unspec operand.
32631         (sibcall_value peepholes): Ditto.
32632         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
32633         instead of memory_nox32_operand.  Check if eliminated register is
32634         really dead after call insn. Generate call RTX without unspec operand.
32635         (sibcall_value_pop peepholes): Ditto.
32636         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
32637
32638 2014-06-18  Terry Guo  <terry.guo@arm.com>
32639
32640         PR target/61544
32641         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
32642         reach the head.
32643
32644 2014-06-18  Olivier Hainque  <hainque@adacore.com>
32645
32646         * tree-core.h (tree_block): Add an "end_locus" field, allowing
32647         memorization of the end of block source location.
32648         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
32649         * gimplify.c (gimplify_bind_expr): Propagate the block start and
32650         end source location info we have on the block entry/exit code we
32651         generate.
32652
32653 2014-06-18  Richard Biener  <rguenther@suse.de>
32654
32655         * common.opt (fssa-phiopt): New option.
32656         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
32657         but not with -Og.
32658         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
32659         * doc/invoke.texi (-fssa-phiopt): Document.
32660
32661 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32662
32663         * genattrtab.c (n_bypassed): New variable.
32664         (process_bypasses): Initialise n_bypassed.
32665         Count number of bypassed reservations.
32666         (make_automaton_attrs): Allocate space for bypassed reservations
32667         rather than number of bypasses.
32668
32669 2014-06-18  Richard Biener  <rguenther@suse.de>
32670
32671         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
32672         we propagated anything.
32673         (substitute_and_fold_dom_walker::before_dom_children): Something
32674         changed if we propagated into PHI arguments.
32675         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
32676         we removed a stmt.
32677
32678 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
32679
32680         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
32681         vector case.
32682         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
32683         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
32684         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
32685         Introduces alternative way of loads group permutaions.
32686         (vect_transform_grouped_load): Try alternative way of permutations.
32687
32688 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
32689
32690         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
32691         changed in ORT_TARGET region, don't jump to do_outer.
32692         (struct gimplify_adjust_omp_clauses_data): New type.
32693         (gimplify_adjust_omp_clauses_1): Adjust for data being
32694         a struct gimplify_adjust_omp_clauses_data pointer instead
32695         of tree *.  Pass pre_p as a new argument to
32696         lang_hooks.decls.omp_finish_clause hook.
32697         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
32698         splay_tree_foreach to pass both list_p and pre_p.
32699         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
32700         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
32701         gimplify_adjust_omp_clauses callers.
32702         * langhooks.c (lhd_omp_finish_clause): New function.
32703         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
32704         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
32705         * langhooks.h (struct lang_hooks_for_decls): Add a new
32706         gimple_seq * argument to omp_finish_clause hook.
32707         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
32708         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
32709         (scan_omp_parallel, lower_omp_for): When adding
32710         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
32711         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
32712         * tree-nested.c (convert_nonlocal_omp_clauses,
32713         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
32714         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
32715
32716 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
32717
32718         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
32719         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
32720
32721 2014-06-17  Xinliang David Li  <davidxl@google.com>
32722
32723         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
32724         * passes.c (pass_init_dump_file): Do not set initialize
32725         flag to false unconditionally.
32726
32727 2014-06-17  Richard Biener  <rguenther@suse.de>
32728
32729         * genopinit.c (main): Use vec<>::qsort method.
32730         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
32731         Likewise.
32732         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
32733
32734 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
32735
32736         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
32737         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
32738         (mips_move_to_gpr_cost): Remove ST_REGS case.
32739         (mips_move_from_gpr_cost): Likewise.
32740         (mips_register_move_cost): Likewise.
32741         (mips_secondary_reload_class): Likewise.
32742
32743 2014-06-17  Richard Biener  <rguenther@suse.de>
32744
32745         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
32746         (pass_all_optimizations): Move 3rd copy-prop pass from after
32747         fre to before ifcombine/phiopt.
32748
32749 2014-06-17  Richard Biener  <rguenther@suse.de>
32750
32751         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
32752         and allow all blocks to be forwarders.
32753
32754 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
32755
32756         PR target/61483
32757         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
32758         variable 'size'; calculate 'size' right in the front; use
32759         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
32760         pcum->aapcs_stack_words.
32761
32762 2014-06-17  Nick Clifton  <nickc@redhat.com>
32763
32764         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
32765         (umulhi3, mulsidi3, umulsidi3): Likewise.
32766
32767 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
32768
32769         PR middle-end/61508
32770         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
32771         check for section name.
32772
32773 2014-06-17  Richard Biener  <rguenther@suse.de>
32774
32775         * tree-ssa-propagate.c: Include domwalk.h.
32776         (substitute_and_fold): Outline main worker into a domwalker ...
32777         (substitute_and_fold_dom_walker::before_dom_children): ... here.
32778         Schedule stmts we can fully propagate for removal.  Remove
32779         poor-mans DCE.
32780         (substitute_and_fold): Apply a dominator walk to perform
32781         substitution.  Process stmts scheduled for removal here.
32782
32783 2014-06-17  Richard Biener  <rguenther@suse.de>
32784
32785         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
32786         of PHI node moving.
32787
32788 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
32789
32790         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
32791         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
32792         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
32793         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
32794         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
32795         TARGET_HARD_FLOAT.
32796         (get_fpscr) : Likewise.
32797
32798 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
32799
32800         PR rtl-optimization/61325
32801         * lra-constraints.c (valid_address_p): Add forward declaration.
32802         (simplify_operand_subreg): Check address validity before and after
32803         alter_reg of memory subreg.
32804
32805 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
32806
32807         * config/i386/i386.c (decide_alg): Correctly handle
32808         maximum size of stringop algorithm.
32809
32810 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
32811
32812         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
32813
32814 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
32815
32816         PR rtl-optimization/61522
32817         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
32818
32819 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
32820
32821         Revert:
32822         * symtab.c (symtab_node::reset_section): New method.
32823         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
32824         for localization.
32825         * cgraph.h (reset_section): Declare.
32826         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
32827         do not consider comdat locals.
32828         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
32829         for new symbol.
32830         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
32831         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
32832         reset sections of symbols dragged out of the comdats.
32833         (function_and_variable_visibility): Reset sections of
32834         localized symbols.
32835
32836 2014-06-16  Richard Biener  <rguenther@suse.de>
32837
32838         PR tree-optimization/61482
32839         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
32840         [-INF(OVF), +INF(OVF)] range.
32841
32842 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
32843
32844         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
32845         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
32846         handling 32-bit multiplication.
32847
32848 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
32849
32850         PR middle-end/61430
32851         * lra-lives.c (process_bb_lives): Skip creating copy during
32852         insn scan when src/dest has constrained to same regno.
32853
32854 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
32855
32856         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
32857         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
32858
32859 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
32860
32861         * asan.c (check_func): New function.
32862         (maybe_create_ssa_name): Likewise.
32863         (build_check_stmt_with_calls): Likewise.
32864         (use_calls_p): Likewise.
32865         (report_error_func): Change interface.
32866         (build_check_stmt): Allow non-integer lengths; add support
32867         for new parameter.
32868         (asan_instrument): Likewise.
32869         (instrument_mem_region_access): Moved code to build_check_stmt.
32870         (instrument_derefs): Likewise.
32871         (instrument_strlen_call): Likewise.
32872         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
32873         * doc/invoke.texi: Describe new parameter.
32874         * params.def: Define new parameter.
32875         * params.h: Likewise.
32876         * sanitizer.def: Describe new builtins.
32877
32878 2014-06-16  Richard Biener  <rguenther@suse.de>
32879
32880         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32881         Make all defs available at the end.
32882         (eliminate): If we remove a PHI node schedule cfg-cleanup.
32883
32884 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
32885
32886         PR plugins/45078
32887         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
32888
32889 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
32890
32891         PR bootstrap/61516
32892         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
32893         initialization.  Replace remaining use of uid.
32894
32895 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
32896
32897         * c-family/c-common.c (handle_tls_model_attribute): Use
32898         set_decl_tls_model.
32899         * c-family/c-common.c (handle_tls_model_attribute): Use
32900         set_decl_tls_model.
32901         * cgraph.h (struct varpool_node): Add tls_model.
32902         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
32903         * tree.h (DECL_TLS_MODEL): Update.
32904         (DECL_THREAD_LOCAL_P): Check that variable is static.
32905         (decl_tls_model): Declare.
32906         (set_decl_tls_model): Declare.
32907         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
32908         set symbol prorperties.
32909         (get_emutls_init_templ_addr): Cleanup.
32910         (new_emutls_decl): Update.
32911         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
32912         (lto_input_varpool_node): Likewise.
32913         * lto-streamer-out.c (hash_tree): Likewise.
32914         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
32915         not stream DECL_TLS_MODEL.
32916         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
32917         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
32918
32919 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32920
32921         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
32922
32923 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32924
32925         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
32926         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
32927         lists.
32928         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
32929         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
32930         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
32931         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
32932         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
32933         (df_get_artificial_defs, df_get_artificial_uses)
32934         (df_single_def, df_single_use): Update accordingly.
32935         (df_refs_chain_dump): Take the first element in a linked list as
32936         parameter, rather than a pointer to an array of pointers.
32937         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
32938         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
32939         (df_chain_create_bb_process_use): Likewise.
32940         (df_md_bb_local_compute_process_def): Likewise.
32941         * fwprop.c (process_defs, process_uses): Likewise.
32942         (register_active_defs, update_uses): Likewise.
32943         (forward_propagate_asm): Update for new df_ref linking.
32944         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
32945         (df_null_ref_rec, df_null_mw_rec): Likewise.
32946         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
32947         explicitly.
32948         (df_scan_free_bb_info): Remove check for null artificial_defs.
32949         (df_install_ref_incremental): Adjust for new df_ref linking.
32950         Use a single-element insertion rather than a full sort.
32951         (df_ref_chain_delete_du_chain): Take the first element
32952         in a linked list as parameter, rather than a pointer to an array of
32953         pointers.
32954         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
32955         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
32956         (df_insn_info_delete): Remove check for null defs and call to
32957         df_scan_free_mws_vec.
32958         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
32959         null rather than df_null_*_rec.
32960         (df_insn_rescan_debug_internal): Likewise, and update null
32961         checks in the same way.  Remove check for null defs.
32962         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
32963         Move a single element rather doing a full sort.
32964         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
32965         linking.
32966         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
32967         Initialize df_ref and df_mw_hardreg lists to null rather than
32968         df_null_*_rec.
32969         (df_ref_compare): Take df_refs as parameter, transferring the
32970         old interface to...
32971         (df_ref_ptr_compare): ...this new function.
32972         (df_sort_and_compress_refs): Update accordingly.
32973         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
32974         old interface to...
32975         (df_mw_ptr_compare): ...this new function.
32976         (df_sort_and_compress_mws): Update accordingly.
32977         (df_install_refs, df_install_mws): Return a linked list rather than
32978         an array of pointers.
32979         (df_refs_add_to_chains): Assert that old lists are empty rather
32980         than freeing them.
32981         (df_insn_refs_verify): Don't handle null defs speciailly.
32982         * web.c (union_match_dups): Update for new df_ref linking.
32983
32984 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32985
32986         * df.h (df_ref_create, df_ref_remove): Delete.
32987         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
32988         (df_ref_remove): Likewise.
32989
32990 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32991
32992         * df.h (df_single_def, df_single_use): New functions.
32993         * ira.c (find_moveable_pseudos): Use them.
32994
32995 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32996
32997         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
32998         * df-problems.c (df_note_bb_compute): Use it.
32999         * regstat.c (regstat_bb_compute_ri): Likewise.
33000
33001 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
33002
33003         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
33004         * cse.c (cse_extended_basic_block): Use them.
33005         * dce.c (mark_artificial_use): Likewise.
33006         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
33007         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
33008         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
33009         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
33010         (df_simulate_initialize_backwards): Likewise.
33011         (df_simulate_finalize_backwards): Likewise.
33012         (df_simulate_initialize_forwards): Likewise.
33013         (df_md_simulate_artificial_defs_at_top): Likewise.
33014         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
33015         * regrename.c (init_rename_info): Likewise.
33016         * regstat.c (regstat_bb_compute_ri): Likewise.
33017         (regstat_bb_compute_calls_crossed): Likewise.
33018
33019 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
33020
33021         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
33022         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
33023         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
33024         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
33025         * combine.c (create_log_links): Likewise.
33026         * compare-elim.c (find_flags_uses_in_insn): Likewise.
33027         (try_eliminate_compare): Likewise.
33028         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
33029         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
33030         (remove_reg_equal_equiv_notes_for_defs): Likewise.
33031         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
33032         (word_dce_process_block, dce_process_block): Likewise.
33033         * ddg.c (def_has_ccmode_p): Likewise.
33034         * df-core.c (df_bb_regno_first_def_find): Likewise.
33035         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
33036         * df-problems.c (df_rd_simulate_one_insn): Likewise.
33037         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
33038         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
33039         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
33040         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
33041         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
33042         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
33043         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
33044         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
33045         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
33046         * fwprop.c (local_ref_killed_between_p): Likewise.
33047         (all_uses_available_at, free_load_extend): Likewise.
33048         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
33049         * hw-doloop.c (scan_loop): Likewise.
33050         * ifcvt.c (dead_or_predicable): Likewise.
33051         * init-regs.c (initialize_uninitialized_regs): Likewise.
33052         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
33053         (process_bb_node_lives): Likewise.
33054         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
33055         (find_moveable_pseudos): Likewise.
33056         * loop-invariant.c (check_dependencies, record_uses): Likewise.
33057         * recog.c (peep2_find_free_register): Likewise.
33058         * ree.c (get_defs): Likewise.
33059         * regstat.c (regstat_bb_compute_ri): Likewise.
33060         (regstat_bb_compute_calls_crossed): Likewise.
33061         * sched-deps.c (find_inc, find_mem): Likewise.
33062         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
33063         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
33064         * shrink-wrap.c (requires_stack_frame_p): Likewise.
33065         (prepare_shrink_wrap): Likewise.
33066         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
33067         * web.c (union_defs, pass_web::execute): Likewise.
33068         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
33069         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
33070
33071 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
33072
33073         * lra-assign.c (assign_by_spills): Add code to assign vector regs
33074         to inheritance pseudos.
33075         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
33076
33077 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
33078
33079         PR target/61415
33080         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
33081         (BU_MISC_2): Rename to ...
33082         (BU_LDBL128_2): ... this.
33083         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
33084         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
33085         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
33086         RS6000_BTM_LDBL128.
33087         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
33088         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
33089         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
33090         (unpacktf_1): Likewise.
33091         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
33092         (__builtin_longdouble_dw1): Likewise.
33093         * doc/sourcebuild.texi (longdouble128): Document.
33094
33095 2014-06-13  Jeff Law  <law@redhat.com>
33096
33097         PR rtl-optimization/61094
33098         PR rtl-optimization/61446
33099         * ree.c (combine_reaching_defs): Get the mode for the copy from
33100         the extension insn rather than the defining insn.
33101
33102 2014-06-13  Dehao Chen  <dehao@google.com>
33103
33104         * dwarf2out.c (add_linkage_name): Emit more linkage name.
33105
33106 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
33107
33108         * doc/install.texi (--enable-linker-plugin-configure-flags)
33109         (--enable-linker-plugin-flags): Document new flags.
33110
33111 2014-06-13  Martin Jambor  <mjambor@suse.cz>
33112
33113         PR ipa/61186
33114         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
33115         cache_token if returning early.
33116
33117 2014-06-13  Nick Clifton  <nickc@redhat.com>
33118
33119         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
33120         requested alignment is active.
33121         (LABEL_ALIGN): Likewise.
33122         (LOOP_ALIGN): Likewise.
33123
33124 2014-06-13  Richard Biener  <rguenther@suse.de>
33125
33126         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33127         Rewrite to propagate the VN result into all uses where
33128         possible and to remove stmts becoming dead because of that.
33129         (eliminate): Generalize stmt removal handling, remove in
33130         reverse dominator order to support proper debug stmt
33131         generation.  Update stmts before removing stmts.
33132         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
33133
33134 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33135
33136         PR tree-optimization/61375
33137         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
33138         symbolic number cannot be represented in an uint64_t.
33139         (find_bswap_or_nop_1): Likewise.
33140
33141 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
33142
33143         * symtab.c (symtab_node::reset_section): New method.
33144         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
33145         for localization.
33146         * cgraph.h (reset_section): Declare.
33147         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
33148         do not consider comdat locals.
33149         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
33150         for new symbol.
33151         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
33152         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
33153         reset sections of symbols dragged out of the comdats.
33154         (function_and_variable_visibility): Reset sections of
33155         localized symbols.
33156
33157 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
33158
33159         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
33160         to use symtab and decl_binds_to_current_def_p
33161         * tree-vectorizer.c (increase_alignment): Increase alignment
33162         of alias target, too.
33163
33164 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
33165
33166         PR middle-end/61486
33167         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
33168         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
33169         if outer combined construct is distribute.
33170         (gimplify_omp_for): For OMP_DISTRIBUTE set
33171         gimplify_omp_ctxp->distribute.
33172         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
33173         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
33174         mapping into decl map.
33175
33176 2014-06-12  Jason Merrill  <jason@redhat.com>
33177
33178         * common.opt (fabi-version): Change default to 0.
33179
33180 2014-06-12  Jason Merrill  <jason@redhat.com>
33181
33182         * toplev.c (process_options): Reject -fabi-version=1.
33183
33184 2014-06-12  Jeff Law  <law@redhat.com>
33185
33186         PR tree-optimization/61009
33187         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
33188         value when we stop processing a block due to problematic PHIs.
33189
33190 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
33191
33192         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
33193         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
33194         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
33195         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
33196         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
33197         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
33198         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
33199         are not in the spec.
33200
33201 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
33202
33203         PR target/59843
33204         * config/aarch64/aarch64-modes.def: Add V1DFmode.
33205         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
33206         Support V1DFmode.
33207
33208 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
33209
33210         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
33211
33212 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
33213
33214         PR target/61443
33215         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
33216         loading from address spaces.
33217
33218 2014-06-12  Martin Liska  <mliska@suse.cz>
33219
33220         PR ipa/61462
33221         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
33222         statement is reachable.
33223
33224 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
33225
33226         * symtab.c (section_hash): New hash.
33227         (symtab_unregister_node): Clear section before freeing.
33228         (hash_section_hash_entry): New haser.
33229         (eq_sections): New function.
33230         (symtab_node::set_section_for_node): New method.
33231         (set_section_1): Update.
33232         (symtab_node::set_section): Take string instead of tree as parameter.
33233         (symtab_resolve_alias): Update.
33234         * cgraph.h (section_hash_entry_d): New structure.
33235         (section_hash_entry): New typedef.
33236         (cgraph_node): Change comdat_group_ to x_comdat_group,
33237         change section_ to x_section and turn into section_hash_entry;
33238         update accestors; put set_section_for_node offline.
33239         * tree.c (decl_section_name): Turn into string.
33240         (set_decl_section_name): Change parameter to be string.
33241         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
33242         * sdbout.c (sdbout_one_type): Update.
33243         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
33244         * varasm.c (IN_NAMED_SECTION, get_named_section,
33245         resolve_unique_section, hot_function_section, get_named_text_section,
33246         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
33247         make_decl_rtl, default_unique_section): Update.
33248         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
33249         (c6x_elf_unique_section): Update.
33250         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
33251         * config/pa/pa.c (pa_function_section): Update.
33252         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
33253         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
33254         * config/arc/arc.c (arc_in_small_data_p): Update.
33255         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
33256         * config/mcore/mcore.c (mcore_unique_section): Update.
33257         * config/mips/mips.c (mips16_build_function_stub): Update.
33258         (mips16_build_call_stub): Update.
33259         (mips_function_rodata_section): Update.
33260         (mips_in_small_data_p): Update.
33261         * config/score/score.c (score_in_small_data_p): Update.
33262         * config/rx/rx.c (rx_in_small_data): Update.
33263         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
33264         (rs6000_xcoff_asm_named_section): Update.
33265         (rs6000_xcoff_unique_section): Update.
33266         * config/frv/frv.c (frv_string_begins_with): Update.
33267         (frv_in_small_data_p): Update.
33268         * config/v850/v850.c (v850_encode_data_area): Update.
33269         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
33270         (bfin_handle_l1_data_attribute): Update.
33271         (bfin_handle_l2_attribute): Update.
33272         * config/mep/mep.c (mep_unique_section): Update.
33273         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
33274         Update.
33275         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
33276         (h8300_handle_tiny_data_attribute): Update.
33277         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
33278         (m32r_in_small_data_p): Update.
33279         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
33280         * config/i386/i386.c (ix86_in_large_data_p): Update.
33281         * config/i386/winnt.c (i386_pe_unique_section): Update.
33282         * config/darwin.c (darwin_function_section): Update.
33283         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
33284         * tree-emutls.c (get_emutls_init_templ_addr): Update.
33285         (new_emutls_decl): Update.
33286         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
33287         input_varpool_node): Update.
33288         (ead_string_cst): Turn to ...
33289         (read_string): ... this one.
33290         * dwarf2out.c (secname_for_decl): Update.
33291         * asan.c (asan_protect_global): Update.
33292
33293 2014-06-11  DJ Delorie  <dj@redhat.com>
33294
33295         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
33296         cache lines.
33297         * config/rx/rx.c (rx_option_override): Likewise.
33298         (rx_align_for_label): Likewise.
33299
33300         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
33301
33302 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
33303
33304         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
33305         prototype.
33306
33307 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33308
33309         * common.md: New file.
33310         * doc/md.texi: Update description of generic, machine-independent
33311         constraints.
33312         * config/s390/constraints.md (e): Delete.
33313         * Makefile.in (md_file): Include common.md.
33314         * config/m32c/t-m32c (md_file): Likewise.
33315         * genpreds.c (general_mem): New array.
33316         (generic_constraint_letters): Remove constraints now defined by
33317         common.md.
33318         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
33319         Allow the first character to be '<' or '>' as well.
33320         * genoutput.c (general_mem): New array.
33321         (indep_constraints): Remove constraints now defined by common.md.
33322         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
33323         Remove special handling of 'm'.
33324         * ira-costs.c (record_reg_classes): Remove special handling of
33325         constraints now defined by common.md.
33326         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
33327         * ira-lives.c (single_reg_class): Likewise.
33328         (ira_implicitly_set_insn_hard_regs): Likewise.
33329         * lra-constraints.c (reg_class_from_constraints): Likewise.
33330         (process_alt_operands, process_address, curr_insn_transform): Likewise.
33331         * postreload.c (reload_cse_simplify_operands): Likewise.
33332         * reload.c (push_secondary_reload, scratch_reload_class)
33333         (find_reloads, alternative_allows_const_pool_ref): Likewise.
33334         * reload1.c (maybe_fix_stack_asms): Likewise.
33335         * targhooks.c (default_secondary_reload): Likewise.
33336         * stmt.c (parse_output_constraint): Likewise.
33337         * recog.c (preprocess_constraints): Likewise.
33338         (constrain_operands, peep2_find_free_register): Likewise.
33339         (asm_operand_ok): Likewise, but add a comment saying why 'o'
33340         must be handled specially.
33341
33342 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33343
33344         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
33345         * genpreds.c (have_const_dbl_constraints): Delete.
33346         (add_constraint): Don't set it.
33347         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
33348         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
33349         constraints using the lookup_constraint logic.
33350         * ira-lives.c (single_reg_class): Likewise.
33351         * ira.c (ira_setup_alts): Likewise.
33352         * lra-constraints.c (process_alt_operands): Likewise.
33353         * recog.c (asm_operand_ok, constrain_operands): Likewise.
33354         * reload.c (find_reloads): Likewise.
33355
33356 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33357
33358         * genpreds.c (const_int_start, const_int_end): New variables.
33359         (choose_enum_order): Output CONST_INT constraints before memory
33360         constraints.
33361         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
33362         Add CT_CONST_INT.
33363         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
33364         * ira.c (ira_setup_alts): Likewise.
33365         * lra-constraints.c (process_alt_operands): Likewise.
33366         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
33367         * reload.c (find_reloads): Likewise.
33368
33369 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33370
33371         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
33372         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
33373         * recog.c (preprocess_constraints): Update accordingly.
33374
33375 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33376
33377         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
33378         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
33379         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
33380         * genpreds.c (print_type_tree): New function.
33381         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
33382         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
33383         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
33384         Write out enum constraint_type and get_constraint_type.
33385         * lra-constraints.c (satisfies_memory_constraint_p): Take a
33386         constraint_num rather than a constraint string.
33387         (satisfies_address_constraint_p): Likewise.
33388         (reg_class_from_constraints): Avoid old constraint macros.
33389         (process_alt_operands, process_address_1): Likewise.
33390         (curr_insn_transform): Likewise.
33391         * ira-costs.c (record_reg_classes): Likewise.
33392         (record_operand_costs): Likewise.
33393         * ira-lives.c (single_reg_class): Likewise.
33394         (ira_implicitly_set_insn_hard_regs): Likewise.
33395         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
33396         * postreload.c (reload_cse_simplify_operands): Likewise.
33397         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
33398         (constrain_operands, peep2_find_free_register): Likewise.
33399         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
33400         (find_reloads, alternative_allows_const_pool_ref): Likewise.
33401         * reload1.c (maybe_fix_stack_asms): Likewise.
33402         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
33403         * targhooks.c (default_secondary_reload): Likewise.
33404         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
33405         to EXTRA_CONSTRAINT_STR.
33406         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
33407
33408 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33409
33410         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
33411         (write_constraint_satisfied_p_array): ...this new function.
33412         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
33413         an array.
33414         (write_insn_preds_c): Update accordingly.
33415
33416 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33417
33418         * genpreds.c (write_lookup_constraint): Rename to...
33419         (write_lookup_constraint_1): ...this.
33420         (write_lookup_constraint_array): New function.
33421         (write_tm_preds_h): Define lookup_constraint as an inline function
33422         that uses write_lookup_constraint_array where possible.
33423         (write_insn_preds_c): Update for the changes above.
33424
33425 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33426
33427         * doc/md.texi (regclass_for_constraint): Rename to...
33428         (reg_class_for_constraint): ...this.
33429         * genpreds.c (num_constraints, enum_order, register_start)
33430         (register_end, satisfied_start, memory_start, memory_end)
33431         (address_start, address_end): New variables.
33432         (add_constraint): Count the number of constraints.
33433         (choose_enum_order): New function.
33434         (write_enum_constraint_num): Iterate over enum_order.
33435         (write_regclass_for_constraint): Rename to...
33436         (write_reg_class_for_constraint_1): ...this and update output
33437         accordingly.
33438         (write_constraint_satisfied_p): Rename to...
33439         (write_constraint_satisfied_p_1): ...this and update output
33440         accordingly.  Do nothing if all extra constraints are register
33441         constraints.
33442         (write_insn_extra_memory_constraint): Delete.
33443         (write_insn_extra_address_constraint): Delete.
33444         (write_range_function): New function.
33445         (write_tm_preds_h): Define constraint_satisfied_p and
33446         reg_class_for_constraint as inline functions that do a range check
33447         before calling the out-of-line function.  Use write_range_function
33448         to implement insn_extra_{register,memory,address}_constraint,
33449         the first of which is new.
33450         (write_insn_preds_c): Update after above changes to write_* functions.
33451         (main): Call choose_enum_order.
33452
33453 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33454
33455         PR tree-optimization/61306
33456         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
33457         expression instead of its size.
33458         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
33459         false to prevent optimization when the result is unpredictable due to
33460         arithmetic right shift of signed type with highest byte is set.
33461         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
33462         (init_symbolic_number): Likewise.
33463         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
33464         when the result is unpredictable due to sign extension.
33465
33466 2014-06-11  Terry Guo  <terry.guo@arm.com>
33467
33468         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
33469         (*thumb1_addsi3): Ditto.
33470         (*thumb_subdi3): Ditto.
33471         (thumb1_subsi3_insn): Ditto.
33472         (*thumb_mulsi3): Ditto.
33473         (*thumb_mulsi3_v6): Ditto.
33474         (*thumb1_andsi3_insn): Ditto.
33475         (thumb1_bicsi3): Ditto.
33476         (*thumb1_iorsi3_insn): Ditto.
33477         (*thumb1_xorsi3_insn): Ditto.
33478         (*thumb1_ashlsi3): Ditto.
33479         (*thumb1_ashrsi3): Ditto.
33480         (*thumb1_lshrsi3): Ditto.
33481         (*thumb1_rotrsi3): Ditto.
33482         (*thumb1_negdi2): Ditto.
33483         (*thumb1_negsi2): Ditto.
33484         (*thumb1_abssi2): Ditto.
33485         (*thumb1_neg_abssi2): Ditto.
33486         (*thumb1_one_cmplsi2): Ditto.
33487         (*thumb1_zero_extendhisi2): Ditto.
33488         (*thumb1_zero_extendqisi2): Ditto.
33489         (*thumb1_zero_extendqisi2_v6): Ditto.
33490         (thumb1_extendhisi2): Ditto.
33491         (thumb1_extendqisi2): Ditto.
33492         (*thumb1_movdi_insn): Ditto.
33493         (*thumb1_movsi_insn): Ditto.
33494         (*thumb1_movhi_insn): Ditto.
33495         (thumb_movhi_clobber): Ditto.
33496         (*thumb1_movqi_insn): Ditto.
33497         (*thumb1_movhf): Ditto.
33498         (*thumb1_movsf_insn): Ditto.
33499         (*thumb_movdf_insn): Ditto.
33500         (movmem12b): Ditto.
33501         (movmem8b): Ditto.
33502         (cbranchqi4): Ditto.
33503         (cbranchsi4_insn): Ditto.
33504         (cbranchsi4_scratch): Ditto.
33505         (*negated_cbranchsi4): Ditto.
33506         (*tbit_cbranch): Ditto.
33507         (*tlobits_cbranch): Ditto.
33508         (*tstsi3_cbranch): Ditto.
33509         (*cbranchne_decr1): Ditto.
33510         (*addsi3_cbranch): Ditto.
33511         (*addsi3_cbranch_scratch): Ditto.
33512         (*thumb_cmpdi_zero): Ditto.
33513         (cstoresi_eq0_thumb1): Ditto.
33514         (cstoresi_ne0_thumb1): Ditto.
33515         (*cstoresi_eq0_thumb1_insn): Ditto.
33516         (*cstoresi_ne0_thumb1_insn): Ditto.
33517         (cstoresi_nltu_thumb1): Ditto.
33518         (cstoresi_ltu_thumb1): Ditto.
33519         (thumb1_addsi3_addgeu): Ditto.
33520         (*thumb_jump): Ditto.
33521         (*call_reg_thumb1_v5): Ditto.
33522         (*call_reg_thumb1): Ditto.
33523         (*call_value_reg_thumb1_v5): Ditto.
33524         (*call_value_reg_thumb1): Ditto.
33525         (*call_insn): Ditto.
33526         (*call_value_insn): Ditto.
33527         (thumb1_casesi_internal_pic): Ditto.
33528         (thumb1_casesi_dispatch): Ditto.
33529         (*thumb1_indirect_jump): Ditto.
33530         (prologue_thumb1_interwork): Ditto.
33531         (*epilogue_insns): Ditto.
33532         (consttable_1): Ditto.
33533         (consttable_2): Ditto.
33534         (tablejump): Ditto.
33535         (*thumb1_tablejump): Ditto.
33536         (thumb_eh_return): Ditto.
33537         (define_peephole2): Two of them are thumb1 only and got moved into
33538         new file thumb1.md.
33539         (define_split): Six of them are thumb1 only and got moved into new
33540         file thumb1.md.
33541         * config/arm/thumb1.md: New file comprised of above thumb1 only
33542         patterns.
33543
33544 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33545
33546         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
33547         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
33548         dependencies.
33549         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
33550         (aarch64_crc_builtin_datum): New struct.
33551         (aarch64_crc_builtin_data): New.
33552         (aarch64_init_crc32_builtins): New function.
33553         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
33554         (aarch64_crc32_expand_builtin): New.
33555         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
33556         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
33557         __ARM_FEATURE_CRC32 when appropriate.
33558         (TARGET_CRC32): Define.
33559         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
33560         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
33561         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
33562         (aarch64_<crc_variant>): New pattern.
33563         * config/aarch64/arm_acle.h: New file.
33564         * config/aarch64/iterators.md (CRC): New int iterator.
33565         (crc_variant, crc_mode): New int attributes.
33566         * doc/aarch64-acle-intrinsics.texi: New file.
33567         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
33568         Include aarch64-acle-intrinsics.texi.
33569
33570 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
33571
33572         * tree-vect-data-refs.c (vect_grouped_store_supported): New
33573         check for stores group of length 3.
33574         (vect_permute_store_chain): New permutations for stores group of
33575         length 3.
33576         * tree-vect-stmts.c (vect_model_store_cost): Change cost
33577         of vec_perm_shuffle for the new permutations.
33578
33579 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
33580
33581         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
33582         table rewriting temporarily on targets not supporting ONE_ONLY.
33583
33584 2014-06-11  Richard Biener  <rguenther@suse.de>
33585
33586         PR middle-end/61437
33587         Revert
33588         2014-06-04  Richard Biener  <rguenther@suse.de>
33589
33590         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
33591         TREE_PUBLIC and DECL_EXTERNAL decls.
33592
33593 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
33594
33595         * varasm.c (set_implicit_section): New function.
33596         (resolve_unique_section): Use it to set implicit section
33597         for aliases, too.
33598         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
33599         (default_function_section): Likewise.
33600         (decl_binds_to_current_def_p): Constify argument.
33601         * varasm.h (decl_binds_to_current_def_p): Update prototype.
33602         * asan.c (asan_protect_global): Use
33603         symtab_get_node (decl)->implicit_section.
33604         * symtab.c (dump_symtab_base): Dump implicit sections.
33605         (verify_symtab_base): Verify sanity of sectoins and comdats.
33606         (symtab_resolve_alias): Alias share the section of its target.
33607         (set_section_1): New function.
33608         (symtab_node::set_section): Move here, recurse to aliases.
33609         (verify_symtab): Check for duplicated symtab lists.
33610         * tree-core.h (implicit_section_name_p): Remove.
33611         * tree-vect-data-refs.c: Include varasm.h.
33612         (vect_can_force_dr_alignment_p): Fix conditional on when
33613         decl bints to current definition; use
33614         symtab_get_node (decl)->implicit_section.
33615         * cgraph.c (cgraph_make_node_local_1): Fix section set.
33616         * cgraph.h (struct symtab_node): Add implicit_section.
33617         (set_section): Rename to ...
33618         (set_section_for_node): ... this one.
33619         (set_section): Declare.
33620         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
33621         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
33622         input_overwrite_node, input_varpool_node): Stream implicit_section.
33623         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
33624         removal; it will fail in LTO.
33625
33626 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33627
33628         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
33629         Change second alternative type to f_mcr.
33630         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
33631         and 12th alternatives' types to f_mcr and f_mrc.
33632         (*movdi_aarch64): Same for 12th and 13th alternatives.
33633         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
33634         (aarch64_movtilow_tilow): Change type to fmov.
33635
33636 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
33637
33638         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
33639         (aarch64_save_or_restore_callee_save_registers): Fix layout.
33640
33641 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33642
33643         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
33644         New expander.
33645         (aarch64_sqrdmulh_lane<mode>): Likewise.
33646         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
33647         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
33648         (aarch64_sqdmulh_laneq<mode>): New expander.
33649         (aarch64_sqrdmulh_laneq<mode>): Likewise.
33650         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
33651         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
33652         (aarch64_sqdmulh_lane<mode>): New expander.
33653         (aarch64_sqrdmulh_lane<mode>): Likewise.
33654         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
33655         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
33656         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
33657         (aarch64_sqdmlal_laneq<mode>): Likewise.
33658         (aarch64_sqdmlsl_lane<mode>): Likewise.
33659         (aarch64_sqdmlsl_laneq<mode>): Likewise.
33660         (aarch64_sqdmlal2_lane<mode>): Likewise.
33661         (aarch64_sqdmlal2_laneq<mode>): Likewise.
33662         (aarch64_sqdmlsl2_lane<mode>): Likewise.
33663         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33664         (aarch64_sqdmull_lane<mode>): Likewise.
33665         (aarch64_sqdmull_laneq<mode>): Likewise.
33666         (aarch64_sqdmull2_lane<mode>): Likewise.
33667         (aarch64_sqdmull2_laneq<mode>): Likewise.
33668
33669 2014-06-10  Richard Biener  <rguenther@suse.de>
33670
33671         PR tree-optimization/61438
33672         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
33673         (eliminate_dom_walker::before_dom_children): Only try to inhibit
33674         insertion of IVs if running PRE.
33675         (eliminate): Adjust.
33676         (pass_pre::execute): Likewise.
33677         (pass_fre::execute): Likewise.
33678
33679 2014-06-10  Richard Biener  <rguenther@suse.de>
33680
33681         PR middle-end/61456
33682         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
33683         Do not use the main variant for the type comparison.
33684         (ncr_compar): Likewise.
33685         (nonoverlapping_component_refs_p): Likewise.
33686
33687 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33688
33689         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
33690         REG_CFA_RESTORE mode.
33691
33692 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
33693
33694         * config/i386/i386.c (expand_vec_perm_pblendv): New.
33695         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
33696         expand_vec_perm_pblendv.
33697
33698 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33699
33700         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
33701         available.
33702         Simplify description of __crc32d and __crc32cd intrinsics.
33703         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
33704         availability.
33705
33706 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
33707
33708         PR lto/61334
33709         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
33710         * config.in: Regenerate.
33711         * configure: Likewise.
33712
33713 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
33714
33715         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
33716         and public vars.
33717         (intersect_static_var_sets): Remove.
33718         (propagate): Do not prune local statics.
33719
33720 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
33721
33722         PR fortran/60928
33723         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
33724         Set lastprivate_firstprivate even if omp_private_outer_ref
33725         langhook returns true.
33726         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
33727         langhook, call unshare_expr on new_var and call
33728         build_outer_var_ref to get the last argument.
33729
33730 2014-06-10  Marek Polacek  <polacek@redhat.com>
33731
33732         PR c/60988
33733         * doc/extend.texi: Add cindex for transparent_union.
33734
33735 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33736
33737         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
33738         init_symbolic_number ().
33739
33740 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
33741
33742         PR middle-end/61141
33743         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
33744         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
33745         (verify_rtl_sharing): Likewise.
33746
33747 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
33748
33749         PR c++/54442
33750         * tree.c (build_qualified_type): Use a canonical type for
33751         TYPE_CANONICAL.
33752
33753 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33754
33755         * config/arm/arm-modes.def: Remove XFmode.
33756
33757 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
33758
33759         PR target/61062
33760         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
33761         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
33762         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
33763         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
33764         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
33765         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
33766         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
33767         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
33768         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
33769
33770 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
33771
33772         * tree-core.h (tree_decl_with_vis): Remove section_name.
33773
33774 2014-06-09  Kito Cheng  <kito@0xlab.org>
33775
33776         * ira.c (ira): Don't call init_caller_save if LRA enabled
33777         since LRA use its own infrastructure to handle that.
33778
33779 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33780
33781         * symtab.c (dump_symtab_base): Update dumping.
33782         (symtab_make_decl_local): Clear only DECL_COMDAT.
33783         * tree-vect-data-refs.c (Check that variable is static before
33784         tampering with sections.
33785         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
33786         (cgraph_create_virtual_clone): Likewise.
33787         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
33788         (decl_section_name, set_decl_section_name): New accessors.
33789         (find_decls_types_r): Do not walk section name
33790         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
33791         (decl_comdat_group, decl_comdat_group_id): Constify.
33792         (decl_section_name, set_decl_section_name): Update.
33793         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
33794         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
33795         (cgraph_make_node_local_1): Clear section and comdat group.
33796         * cgraph.h (set_comdat_group): Sanity check.
33797         (get_section, set_section): New.
33798         * ipa-comdats.c (ipa_comdats): Use get_section.
33799         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
33800         * lto-streamer-out.c: Do not follow section names.
33801         * c-family/c-common.c (handle_section_attribute): Update.
33802         * lto-cgraph.c (lto_output_node): Output section.
33803         (lto_output_varpool_node): Likewise.
33804         (read_comdat_group): Rename to ...
33805         (read_identifier): ... this one.
33806         (read_string_cst): New function.
33807         (input_node, input_varpool_node): Input section names.
33808         * tree-emutls.c (get_emutls_init_templ_addr): Update.
33809         (new_emutls_decl): Update.
33810         (secname_for_decl): Check section names only of static vars.
33811         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
33812         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
33813         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
33814         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
33815         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
33816         * config/mcore/mcore.c (mcore_unique_section): Likewise.
33817         * config/mips/mips.c (mips16_build_function_stub): Likewise.
33818         * config/v850/v850.c (v850_insert_attributes): Likewise.
33819         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
33820         Likewise.
33821         (h8300_handle_tiny_data_attribute): Likewise.
33822         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
33823         (bfin_handle_l2_attribute): Likewise.
33824
33825 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33826
33827         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
33828         remove static initializer.
33829
33830 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33831
33832         * varasm.c (use_blocks_for_decl_p): Check symbol table
33833         instead of alias attribute.
33834         (place_block_symbol): Recurse on aliases.
33835
33836 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33837
33838         * ipa-visibility.c: Include varasm.h
33839         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
33840
33841 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33842
33843         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
33844         outputting aliases.
33845
33846 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
33847
33848         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
33849         from test_insn into GGC space escape via SET_SRC.
33850
33851 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
33852
33853         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
33854         call statement, if any.
33855         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
33856         statements, if any.  Tidy up.
33857
33858 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33859
33860         PR target/61431
33861         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
33862         iterators, VSX_D that handles 64-bit types, and VSX_LE that
33863         handles swapping the two 64-bit double words on little endian
33864         systems.  Include V1TImode and optionally TImode in VSX_LE so that
33865         these types are properly swapped.  Change all of the insns and
33866         splits that do the 64-bit swaps to use VSX_LE.
33867         (vsx_le_perm_load_<mode>): Likewise.
33868         (vsx_le_perm_store_<mode>): Likewise.
33869         (splitters for little endian memory operations): Likewise.
33870         (vsx_xxpermdi2_le_<mode>): Likewise.
33871         (vsx_lxvd2x2_le_<mode>): Likewise.
33872         (vsx_stxvd2x2_le_<mode>): Likewise.
33873
33874 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
33875
33876         PR target/61423
33877         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
33878         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
33879         and corresponding splitters.  Zero extend general register
33880         or memory input operand to XMM temporary.  Enable for
33881         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
33882         (floatunssi<mode>2): Update expander predicate.
33883
33884 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
33885
33886         PR rtl-optimization/61325
33887         * lra-constraints.c (process_address_1): Check scale equal to one
33888         to prevent transformation: base + scale * index => base + new_reg.
33889
33890 2014-06-06  Richard Biener  <rguenther@suse.de>
33891
33892         PR tree-optimization/59299
33893         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
33894         a def operand.
33895         (nearest_common_dominator_of_uses): Likewise.
33896         (statement_sink_location): Adjust.  Support sinking loads.
33897
33898 2014-06-06  Martin Jambor  <mjambor@suse.cz>
33899
33900         * ipa-prop.c (get_place_in_agg_contents_list): New function.
33901         (build_agg_jump_func_from_list): Likewise.
33902         (determine_known_aggregate_parts): Renamed to
33903         determine_locally_known_aggregate_parts.  Moved some functionality
33904         to the two functions above, removed bound checks.
33905
33906 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
33907
33908         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
33909         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
33910         (aarch64_progress_pointer): Likewise.
33911         (aarch64_copy_one_part_and_move_pointers): Likewise.
33912         (aarch64_expand_movmen): Likewise.
33913         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
33914         * config/aarch64/aarch64.md (movmem<mode>): New.
33915
33916 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
33917
33918         * targhooks.c (default_add_stmt_cost): Call target specific
33919         hook instead of default one.
33920
33921 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33922
33923         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
33924         endianness instead of host endianness.
33925         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
33926         comments.
33927
33928 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
33929
33930         PR debug/53927
33931         * function.c (instantiate_decls): Process the saved static chain.
33932         (expand_function_start): If not optimizing, save the static chain
33933         onto the stack.
33934         * tree-nested.c (convert_all_function_calls): Always create the static
33935         chain for nested functions if not optimizing.
33936
33937 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
33938
33939         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
33940
33941 2014-06-06  Richard Biener  <rguenther@suse.de>
33942
33943         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
33944         (construct_init_block): Likewise.
33945         (construct_exit_block): Likewise.
33946         (pass_expand::execute): Likewise.
33947         * graphite.c (graphite_transforms): Replace check for current_loops
33948         with a check for > 1 loops.
33949         (pass_graphite_transforms::execute): Adjust.
33950         * ipa-split.c (split_function): Remove check for current_loops.
33951         * omp-low.c (expand_parallel_call): Likewise.
33952         (expand_omp_for_init_counts): Likewise.
33953         (extract_omp_for_update_vars): Likewise.
33954         (expand_omp_for_generic): Likewise.
33955         (expand_omp_sections): Likewise.
33956         (expand_omp_target): Likewise.
33957         * tracer.c (tail_duplicate): Likewise.
33958         (pass_tracer::execute): Likewise.
33959         * trans-mem.c (expand_transaction): Likewise.
33960         * tree-complex.c (expand_complex_div_wide): Likewise.
33961         * tree-eh.c (lower_resx): Likewise.
33962         (cleanup_empty_eh_merge_phis): Likewise.
33963         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
33964         current_loops with a check for > 1 loops.
33965         (pass_predcom::execute): Adjust.
33966         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
33967         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
33968         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
33969         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
33970         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
33971         * tree-switch-conversion.c (process_switch): Likewise.
33972         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
33973         * tree-vrp.c (vrp_visit_phi_node): Likewise.
33974         (execute_vrp): Likewise.
33975         * ubsan.c (ubsan_expand_null_ifn): Likewise.
33976
33977 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
33978
33979         * rtl.h (insn_location): Declare.
33980         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
33981         with UNKNOWN_LOCATION.
33982         * emit-rtl.c (insn_location): New function.
33983         * final.c (notice_source_line): Check that the instruction has a
33984         location before retrieving it and use insn_location.
33985         * modulo-sched.c (loop_single_full_bb_p): Likewise.
33986         * print-rtl.c (print_rtx): Likewise.
33987
33988 2014-06-06  Richard Biener  <rguenther@suse.de>
33989
33990         * passes.def: Move 2nd VRP pass before phi-only-cprop.
33991
33992 2014-06-06  Christian Bruel  <christian.bruel@st.com>
33993
33994         PR tree-optimization/43934
33995         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
33996         cost.
33997
33998 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
33999
34000         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
34001         return NO_REGS for extra address and memory constraints.  Handle
34002         operands that match (or are equivalent to something that matches)
34003         extra constant constraints.  Ignore other non-register operands.
34004
34005 2014-06-06  Alan Modra  <amodra@gmail.com>
34006
34007         PR target/61300
34008         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
34009         * doc/tm.texi: Regenerate.
34010         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
34011         Use throughout in place of REG_PARM_STACK_SPACE.
34012         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
34013         "incoming" param.  Pass to rs6000_function_parms_need_stack.
34014         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
34015         prototype_p when incoming.  Use function decl when incoming
34016         to handle K&R style functions.
34017         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
34018         (INCOMING_REG_PARM_STACK_SPACE): Define.
34019
34020 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
34021
34022         PR target/52472
34023         * cfgexpand.c (expand_debug_expr): Use address space of nested
34024         TREE_TYPE for ADDR_EXPR and MEM_REF.
34025
34026 2014-06-05  Jeff Law  <law@redhat.com>
34027
34028         PR tree-optimization/61289
34029         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
34030         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
34031         looking for those which match LHS.  All callers changed.
34032         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
34033         parameters and code which manipulated them.  All callers changed.
34034         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
34035         and DST_MAP parameters.  Simplify invalidation code by just calling
34036         invalidate_equivalences.  All callers changed.
34037         (thread_across_edge): Simplify now that we don't need to maintain
34038         the map of equivalences to invalidate.
34039
34040 2014-06-05  Kai Tietz  <ktietz@redhat.com>
34041             Richard Henderson  <rth@redhat.com>
34042
34043         PR target/46219
34044         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
34045         checking for !TARGET_X32.
34046         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
34047         (sibcall_intern): New define_insn, plus required peepholes.
34048         (sibcall_pop_intern): Likewise.
34049         (sibcall_value_intern): Likewise.
34050         (sibcall_value_pop_intern): Likewise.
34051
34052 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
34053
34054         * tree-inline.c (tree_function_versioning): Check DF info existence
34055         before accessing it.
34056
34057 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34058
34059         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
34060         frame_size.
34061         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
34062         aarch64_frame hard_fp_offset and frame_size.
34063         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
34064         frame_size; remove original_frame_size.
34065         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
34066         (aarch64_initial_elimination_offset): Remove frame_size and
34067         offset.  Use aarch64_frame frame_size.
34068
34069 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34070             Jiong Wang  <jiong.wang@arm.com>
34071             Renlin  <renlin.li@arm.com>
34072
34073         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
34074         initialization of R30 offset.  Update offset.  Iterate core
34075         regisers upto X30.  Remove X29, X30 specific code.
34076
34077 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34078             Jiong Wang  <jiong.wang@arm.com>
34079
34080         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
34081         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
34082         (aarch64_register_saved_on_entry): Adjust test.
34083
34084 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34085
34086         * config/aarch64/aarch64.h (machine_function): Move
34087         saved_varargs_size from here...
34088         (aarch64_frame): ... to here.
34089
34090         * config/aarch64/aarch64.c (aarch64_expand_prologue)
34091         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
34092         (aarch64_initial_elimination_offset)
34093         (aarch64_setup_incoming_varargs): Adjust location of
34094         saved_varargs_size.
34095
34096 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34097
34098         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
34099         layout comment.
34100
34101 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
34102             Prachi Godbole  <Prachi.Godbole@imgtec.com>
34103
34104         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
34105         mips32r5 entry to use PROCESSOR_P5600.
34106         * config/mips/mips-tables.opt: Regenerate.
34107         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
34108         * config/mips/mips.c (mips_fmadd_bypass): New function.
34109         (mips_rtx_cost_data): Add costs for p5600.
34110         (mips_issue_rate): Add support for p5600.
34111         (mips_multipass_dfa_lookahead): Likewise.
34112         * config/mips/mips.h (TUNE_P5600): New define.
34113         (TUNE_MACC_CHAINS): Add TUNE_P5600.
34114         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
34115         * config/mips/mips.md: Include p5600.md.
34116         (processor): Add p5600.
34117         * config/mips/p5600.md: New file.
34118
34119 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
34120
34121         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
34122         * config/i386/predicates.md (palignr_operand): New.
34123         Indicates if permutation is suitable for palignr instruction.
34124
34125 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
34126
34127         PR tree-optimization/61319
34128         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
34129         stmt belongs to loop.
34130
34131 2014-06-05  Richard Biener  <rguenther@suse.de>
34132
34133         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
34134         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
34135         (lookup_tmp_var): Adjust.
34136         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
34137
34138 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34139
34140         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
34141
34142 2014-06-05  Marek Polacek  <polacek@redhat.com>
34143
34144         PR c/49706
34145         * doc/invoke.texi: Document -Wlogical-not-parentheses.
34146
34147 2014-06-04  Tom de Vries  <tom@codesourcery.com>
34148
34149         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
34150         CONST_INT.
34151
34152 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
34153
34154         PR tree-optimization/61385
34155         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
34156
34157 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
34158
34159         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
34160         changed to use fatal_error.
34161         (main): Ensure lto_wrapper_cleanup is run atexit.
34162
34163 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
34164
34165         * lra-constraints.c (valid_address_p): Move earlier in file.
34166         (address_eliminator): New structure.
34167         (satisfies_memory_constraint_p): New function.
34168         (satisfies_address_constraint_p): Likewise.
34169         (process_alt_operands, process_address, curr_insn_transform): Use them.
34170
34171 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
34172
34173         * lra-int.h (lra_static_insn_data): Make operand_alternative a
34174         const pointer.
34175         (target_lra_int, default_target_lra_int, this_target_lra_int)
34176         (op_alt_data): Delete.
34177         * lra.h (lra_init): Delete.
34178         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
34179         (init_insn_code_data_once): Remove op_alt_data handling.
34180         (finish_insn_code_data_once): Likewise.
34181         (init_op_alt_data): Delete.
34182         (get_static_insn_data): Initialize operand_alternative to null.
34183         (free_insn_recog_data): Cast operand_alternative before freeing it.
34184         (setup_operand_alternative): Take the operand_alternative as
34185         parameter and assume it isn't already cached in the static
34186         insn data.
34187         (lra_set_insn_recog_data): Update accordingly.
34188         (lra_init): Delete.
34189         * ira.c (ira_init): Don't call lra_init.
34190         * target-globals.h (this_target_lra_int): Declare.
34191         (target_globals): Remove lra_int.
34192         (restore_target_globals): Update accordingly.
34193         * target-globals.c: Don't include lra-int.h.
34194         (default_target_globals, save_target_globals): Remove lra_int.
34195
34196 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
34197
34198         * recog.h (operand_alternative): Convert reg_class, reject,
34199         matched and matches into bitfields.
34200         (preprocess_constraints): New overload.
34201         (preprocess_insn_constraints): New function.
34202         (preprocess_constraints): Take the insn as parameter.
34203         (recog_op_alt): Change into a pointer.
34204         (target_recog): Add x_op_alt.
34205         * recog.c (asm_op_alt): New variable.
34206         (recog_op_alt): Change into a pointer.
34207         (preprocess_constraints): New overload, replacing the old function
34208         definition with one that doesn't use global state.
34209         (preprocess_insn_constraints): New function.
34210         (preprocess_constraints): Use them.  Take the insn as parameter.
34211         Use asm_op_alt for asms.
34212         (recog_init): Free existing x_op_alt entries.
34213         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
34214         pointer const.
34215         (make_early_clobber_and_input_conflicts): Likewise.
34216         (process_bb_node_lives): Pass the insn to process_constraints.
34217         * reg-stack.c (check_asm_stack_operands): Likewise.
34218         (subst_asm_stack_regs): Likewise.
34219         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
34220         * regrename.c (build_def_use): Likewise.
34221         * sched-deps.c (sched_analyze_insn): Likewise.
34222         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
34223         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
34224         (note_invalid_constants): Likewise.
34225         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
34226         (ix86_legitimate_combined_insn): Make operand_alternative pointer
34227         const.
34228
34229 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
34230
34231         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
34232         * ira-lives.c (check_and_make_def_conflict): Check for disabled
34233         alternatives.
34234         (make_early_clobber_and_input_conflicts): Likewise.
34235         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
34236
34237 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
34238
34239         * recog.h (alternative_class): New function.
34240         (which_op_alt): Return a const recog_op_alt.
34241         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
34242         (subst_asm_stack_regs): Likewise.
34243         * config/arm/arm.c (note_invalid_constants): Likewise.
34244         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
34245         the operand_alternative; use alternative class instead.
34246         * sel-sched.c (get_reg_class): Likewise.
34247         * regrename.c (build_def_use): Likewise.
34248         (hide_operands, restore_operands, record_out_operands): Update type
34249         accordingly.
34250
34251 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
34252
34253         * recog.h (recog_op_alt): Convert to a flat array.
34254         (which_op_alt): New function.
34255         * recog.c (recog_op_alt): Convert to a flat array.
34256         (preprocess_constraints): Update accordingly, grouping all
34257         operands of the same alternative together, rather than the
34258         other way around.
34259         * ira-lives.c (check_and_make_def_conflict): Likewise.
34260         (make_early_clobber_and_input_conflicts): Likewise.
34261         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
34262         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
34263         (subst_asm_stack_regs): Likewise.
34264         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
34265         * regrename.c (hide_operands, record_out_operands): Likewise.
34266         (build_def_use): Likewise.
34267         * sel-sched.c (get_reg_class): Likewise.
34268         * config/arm/arm.c (note_invalid_constants): Likewise.
34269
34270 2014-06-04  Jason Merrill  <jason@redhat.com>
34271
34272         PR c++/51253
34273         PR c++/61382
34274         * gimplify.c (gimplify_arg): Non-static.
34275         * gimplify.h: Declare it.
34276
34277 2014-06-04  Richard Biener  <rguenther@suse.de>
34278
34279         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
34280         TREE_PUBLIC and DECL_EXTERNAL decls.
34281
34282 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
34283
34284         * regcprop.c (copyprop_hardreg_forward_1): Account for
34285         HARD_REGNO_CALL_PART_CLOBBERED.
34286
34287 2014-06-04  Richard Biener  <rguenther@suse.de>
34288
34289         * configure.ac: Check whether the underlying type of int64_t
34290         is long or long long.
34291         * configure: Regenerate.
34292         * config.in: Likewise.
34293         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
34294         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
34295
34296 2014-06-04  Richard Biener  <rguenther@suse.de>
34297
34298         PR tree-optimization/60098
34299         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
34300         we hit a kill.
34301         (dse_optimize_stmt): Simplify, now that we found a kill
34302         earlier.
34303
34304 2014-06-04  Richard Biener  <rguenther@suse.de>
34305
34306         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
34307         of accesses with non-invariant address.
34308
34309 2014-06-04  Martin Liska  <mliska@suse.cz>
34310
34311         * cgraph.h (cgraph_make_wrapper): New function introduced.
34312         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
34313         * ipa-inline.h (inline_analyze_function): The function is global.
34314         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
34315
34316 2014-06-04  Martin Liska  <mliska@suse.cz>
34317
34318         * tree.h (private_lookup_attribute_starting): New function.
34319         (lookup_attribute_starting): Likewise.
34320         * tree.c (private_lookup_attribute_starting): Likewise.
34321
34322 2014-06-04  Martin Liska  <mliska@suse.cz>
34323
34324         * cgraph.h (expand_thunk): New argument added.
34325         (address_taken_from_non_vtable_p): New global function.
34326         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
34327         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
34328         * cgraphunit.c (analyze_function): Likewise.
34329         (assemble_thunks_and_aliases): Argument added to call.
34330         (expand_thunk): New argument forces to produce GIMPLE thunk.
34331
34332 2014-06-04  Martin Liska  <mliska@suse.cz>
34333
34334         * coverage.h (coverage_compute_cfg_checksum): Argument added.
34335         * coverage.c (coverage_compute_cfg_checksum): Likewise.
34336         * profile.c (branch_prob): Likewise.
34337
34338 2014-06-04  Martin Jambor  <mjambor@suse.cz>
34339
34340         PR ipa/61340
34341         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
34342         handler for switch on an ipa_ref_use enum.
34343         * ipa-reference.c (analyze_function): Likewise.
34344
34345 2014-06-04  Kai Tietz  <ktietz@redhat.com>
34346
34347         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
34348         from old call-instruction.
34349
34350 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
34351
34352         * config/aarch64/aarch64.c (aarch64_classify_address)
34353         (aarch64_legitimize_reload_address): Support full addressing modes
34354         for vector modes.
34355         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
34356         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
34357
34358 2014-06-03  Andrew Pinski  <apinski@cavium.com>
34359
34360         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
34361         for OP0.
34362
34363 2014-06-03  Andrew Pinski  <apinski@cavium.com>
34364
34365         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
34366         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
34367
34368 2014-06-03  Kai Tietz  <ktietz@redhat.com>
34369
34370         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
34371         for 64-bit ms-abi.
34372
34373 2014-06-03  Dehao Chen  <dehao@google.com>
34374
34375         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
34376         the same loop.
34377
34378 2014-06-03  Marek Polacek  <polacek@redhat.com>
34379
34380         PR c/60439
34381         * doc/invoke.texi: Document -Wswitch-bool.
34382         * function.c (stack_protect_epilogue): Cast controlling expression of
34383         the switch to int.
34384         * gengtype.c (walk_type): Generate switch expression with its
34385         controlling expression cast to int.
34386
34387 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
34388
34389         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
34390         and attiny841.
34391         * config/avr/avr-tables.opt: Regenerate.
34392         * config/avr/t-multilib: Regenerate.
34393         * doc/avr-mmcu.texi: Regenerate.
34394
34395 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
34396             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
34397
34398         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
34399         (ata6617c, ata664251): Add new avr35 devices.
34400         (ata6612c): Add new avr4 device.
34401         (ata6613c, ata6614q): Add new avr5 devices.
34402         * config/avr/avr-tables.opt: Regenerate.
34403         * config/avr/t-multilib: Regenerate.
34404         * doc/avr-mmcu.texi: Regenerate.
34405
34406 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
34407
34408         * gcc/config/aarch64/aarch64-builtins.c
34409         (aarch64_types_binop_ssu_qualifiers): New static data.
34410         (TYPES_BINOP_SSU): Define.
34411         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
34412         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
34413         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
34414         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
34415         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
34416         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
34417         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
34418         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
34419         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
34420         suffix to builtin function name, remove cast.
34421         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
34422         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
34423         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
34424
34425 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
34426
34427         * gcc/config/aarch64/aarch64-builtins.c
34428         (aarch64_types_binop_uus_qualifiers,
34429         aarch64_types_shift_to_unsigned_qualifiers,
34430         aarch64_types_unsigned_shiftacc_qualifiers): Define.
34431         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
34432         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
34433         sqshlu_n, uqshl_n): Update qualifiers.
34434         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
34435         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
34436         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
34437         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
34438         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
34439         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
34440         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
34441         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
34442         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
34443         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
34444         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
34445         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
34446         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
34447         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
34448         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
34449         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
34450         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
34451         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
34452         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
34453         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
34454         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
34455         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
34456         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
34457         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
34458         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
34459         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
34460         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
34461
34462 2014-06-03  Teresa Johnson  <tejohnson@google.com>
34463
34464         * tree-sra.c (modify_function): Record caller nodes after rebuild.
34465
34466 2014-06-02  Jason Merrill  <jason@redhat.com>
34467
34468         PR c++/61020
34469         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
34470
34471 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
34472
34473         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
34474         location == 0.
34475
34476 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
34477
34478         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
34479         New pattern.
34480         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
34481         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
34482         * config/aarch64/iterators.md (REVERSE): New iterator.
34483         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
34484         (rev_op): New int_attribute.
34485         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
34486         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
34487         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
34488         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
34489         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
34490         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
34491         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
34492         Replace temporary __asm__ with __builtin_shuffle.
34493
34494 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
34495
34496         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
34497         mips64r5.
34498         * config/mips/mips-tables.opt: Regenerate.
34499         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
34500         to use mips_isa_rev rather than ISA_MIPS32R2.
34501         * config/mips/mips.h (ISA_MIPS32R3): New define.
34502         (ISA_MIPS32R5): New define.
34503         (ISA_MIPS64R3): New define.
34504         (ISA_MIPS64R5): New define.
34505         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
34506         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
34507         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
34508         and mips64r5.
34509         (MIPS_ISA_SYNCI_SPEC): Likewise.
34510         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
34511         (LINK_SPEC): Added mips32r3 and mips32r5.
34512         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
34513         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
34514         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
34515         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
34516         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
34517         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
34518         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
34519
34520 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
34521
34522         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
34523         options.
34524         * config/mips/mips.opt (mxpa): New option.
34525         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
34526         assembler.
34527
34528 2014-06-03  Martin Jambor  <mjambor@suse.cz>
34529
34530         PR ipa/61160
34531         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
34532         thunks.
34533
34534 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34535
34536         PR tree-optimization/61328
34537         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
34538         initialization from find_bswap_or_nop_1.
34539         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
34540         in source_expr2 before using the size value the function sets. Also
34541         make use of init_symbolic_number () in both the old place and
34542         find_bswap_or_nop_load () to avoid reading uninitialized memory when
34543         doing recursion in the GIMPLE_BINARY_RHS case.
34544
34545 2014-06-03  Richard Biener  <rguenther@suse.de>
34546
34547         PR tree-optimization/61383
34548         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
34549         stmts can't trap.
34550
34551 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
34552
34553         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
34554         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
34555         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
34556         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
34557         in this file.
34558         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
34559         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
34560         * system.h: ...here and make it unconditional.
34561         * target.def (conditional_register_usage): Mention
34562         define_register_constraint instead of old-style constraint macros.
34563         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
34564         * doc/tm.texi: Regenerate.
34565         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
34566         protected by !USE_MD_CONSTRAINTS.
34567         * config/frv/frv.md: Remove quote from old version of documentation.
34568         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
34569         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
34570         CONST_DOUBLE_OK_FOR_LETTER.
34571         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
34572
34573 2014-06-02  Andrew Pinski  <apinski@cavium.com>
34574
34575         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
34576         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
34577         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
34578         file whose name depends on -mabi= and -mbig-endian.
34579         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
34580         Handle LP64 better and handle ilp32 too.
34581         (MULTILIB_OPTIONS): Delete.
34582         (MULTILIB_DIRNAMES): Delete.
34583
34584 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
34585
34586         * expr.h: Remove prototypes of functions defined in builtins.c.
34587         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
34588         Remove prototypes of functions defined in builtins.c.
34589         * builtins.h: Update prototype list to include all exported functions.
34590         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
34591         no_c99_libc_has_function): Move to targhooks.c
34592         (build_string_literal, build_call_expr_loc_array,
34593         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
34594         to tree.c.
34595         (expand_builtin_object_size, fold_builtin_object_size): Make static.
34596         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
34597         no_c99_libc_has_function): Relocate from builtins.c.
34598         * tree.c: Include builtins.h.
34599         (build_call_expr_loc_array, build_call_expr_loc_vec,
34600         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
34601         from builtins.c.
34602         * fold-const.h (fold_fma): Move prototype to builtins.h.
34603         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
34604         * asan.c: Include builtins.h.
34605         * cfgexpand.c: Likewise.
34606         * convert.c: Likewise.
34607         * emit-rtl.c: Likewise.
34608         * except.c: Likewise.
34609         * expr.c: Likewise.
34610         * fold-const.c: Likewise.
34611         * gimple-fold.c: Likewise.
34612         * gimple-ssa-strength-reduction.c: Likewise.
34613         * gimplify.c: Likewise.
34614         * ipa-inline.c: Likewise.
34615         * ipa-prop.c: Likewise.
34616         * lto-streamer-out.c: Likewise.
34617         * stmt.c: Likewise.
34618         * tree-inline.c: Likewise.
34619         * tree-object-size.c: Likewise.
34620         * tree-sra.c: Likewise.
34621         * tree-ssa-ccp.c: Likewise.
34622         * tree-ssa-forwprop.c: Likewise.
34623         * tree-ssa-loop-ivcanon.c: Likewise.
34624         * tree-ssa-loop-ivopts.c: Likewise.
34625         * tree-ssa-math-opts.c: Likewise.
34626         * tree-ssa-reassoc.c: Likewise.
34627         * tree-ssa-threadedge.c: Likewise.
34628         * tree-streamer-in.c: Likewise.
34629         * tree-vect-data-refs.c: Likewise.
34630         * tree-vect-patterns.c: Likewise.
34631         * tree-vect-stmts.c: Likewise.
34632         * config/aarch64/aarch64.c: Likewise.
34633         * config/alpha/alpha.c: Likewise.
34634         * config/arc/arc.c: Likewise.
34635         * config/arm/arm.c: Likewise.
34636         * config/avr/avr.c: Likewise.
34637         * config/bfin/bfin.c: Likewise.
34638         * config/c6x/c6x.c: Likewise.
34639         * config/cr16/cr16.c: Likewise.
34640         * config/cris/cris.c: Likewise.
34641         * config/epiphany/epiphany.c: Likewise.
34642         * config/fr30/fr30.c: Likewise.
34643         * config/frv/frv.c: Likewise.
34644         * config/h8300/h8300.c: Likewise.
34645         * config/i386/i386.c: Likewise.
34646         * config/i386/winnt.c: Likewise.
34647         * config/ia64/ia64.c: Likewise.
34648         * config/iq2000/iq2000.c: Likewise.
34649         * config/lm32/lm32.c: Likewise.
34650         * config/m32c/m32c.c: Likewise.
34651         * config/m32r/m32r.c: Likewise.
34652         * config/m68k/m68k.c: Likewise.
34653         * config/mcore/mcore.c: Likewise.
34654         * config/mep/mep.c: Likewise.
34655         * config/microblaze/microblaze.c: Likewise.
34656         * config/mips/mips.c: Likewise.
34657         * config/mmix/mmix.c: Likewise.
34658         * config/mn10300/mn10300.c: Likewise.
34659         * config/moxie/moxie.c: Likewise.
34660         * config/msp430/msp430.c: Likewise.
34661         * config/nds32/nds32.c: Likewise.
34662         * config/pa/pa.c: Likewise.
34663         * config/pdp11/pdp11.c: Likewise.
34664         * config/picochip/picochip.c: Likewise.
34665         * config/rl78/rl78.c: Likewise.
34666         * config/rs6000/rs6000.c: Likewise.
34667         * config/rx/rx.c: Likewise.
34668         * config/s390/s390.c: Likewise.
34669         * config/score/score.c: Likewise.
34670         * config/sh/sh.c: Likewise.
34671         * config/sparc/sparc.c: Likewise.
34672         * config/spu/spu.c: Likewise.
34673         * config/stormy16/stormy16.c: Likewise.
34674         * config/tilegx/tilegx.c: Likewise.
34675         * config/tilepro/tilepro.c: Likewise.
34676         * config/v850/v850.c: Likewise.
34677         * config/vax/vax.c: Likewise.
34678         * config/xtensa/xtensa.c: Likewise.
34679
34680 2014-06-02  Jeff Law  <law@redhat.com>
34681
34682         PR rtl-optimization/61094
34683         * ree.c (combine_reaching_defs): Do not reextend an insn if it
34684         was marked as do_no_reextend.  If a copy is needed to eliminate
34685         an extension, then mark it as do_not_reextend.
34686
34687 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34688
34689         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
34690
34691 2014-06-02  Richard Henderson  <rth@redhat.com>
34692
34693         PR target/61336
34694         * config/alpha/alpha.c (print_operand_address): Allow symbolic
34695         addresses inside asms.  Use output_operand_lossage instead of
34696         gcc_unreachable.
34697
34698 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
34699
34700         PR target/61239
34701         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
34702         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
34703
34704 2014-06-02  Tom de Vries  <tom@codesourcery.com>
34705
34706         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
34707         case that x has VOIDmode.
34708
34709 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
34710
34711         * varasm.c (copy_constant): Delete function.
34712         (build_constant_desc): Don't call it.
34713
34714 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34715
34716         PR target/61154
34717         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
34718         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
34719         with immediate_operand.
34720
34721 2014-06-02  Andreas Schwab  <schwab@suse.de>
34722
34723         * config/ia64/ia64.c
34724         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
34725         pending_data_specs first.
34726
34727 2014-06-02  Richard Biener  <rguenther@suse.de>
34728
34729         PR tree-optimization/61378
34730         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
34731         valueized_anything.
34732
34733 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
34734
34735         * config/i386/constraints.md (Bw): Rename from 'w'.
34736         (Bz): Rename from 'z'.
34737         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
34738
34739 2014-06-01  Kai Tietz  <ktietz@redhat.com>
34740
34741         PR target/61377
34742         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
34743         * config/i386/i386.md (sibcall_insn_operand): Use Bs
34744         instead of m constraint.
34745
34746 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
34747
34748         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
34749         a separate alternative where the scratch operand 2 is marked as
34750         early clobber.
34751
34752 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
34753
34754         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
34755         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
34756         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
34757         and __builtins_arm_get_fpscr.
34758         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
34759         __builtins_arm_get_fpscr.
34760         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
34761         __builtins_arm_ldfpscr.
34762         (arm_atomic_assign_expand_fenv): New function.
34763         * config/arm/vfp.md (set_fpscr): New pattern.
34764         (get_fpscr) : Likewise.
34765         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
34766         VUNSPEC_SET_FPSCR.
34767         * doc/extend.texi (AARCH64 Built-in Functions) : Document
34768         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
34769
34770 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
34771
34772         * asan.c (report_error_func): Add SLOW_P argument, use
34773         BUILT_IN_ASAN_*_N if set.
34774         (build_check_stmt): Likewise.
34775         (instrument_derefs): If T has insufficient alignment,
34776         force same handling as for odd sizes.
34777
34778         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
34779         BUILT_IN_ASAN_REPORT_STORE_N): New.
34780         * asan.c (struct asan_mem_ref): Change access_size type to
34781         HOST_WIDE_INT.
34782         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
34783         update_mem_ref_hash_table): Likewise.
34784         (asan_mem_ref_hasher::hash): Hash in a HWI.
34785         (report_error_func): Change size_in_bytes argument to HWI.
34786         Use *_N builtins if size_in_bytes is larger than 16 or not power of
34787         two.
34788         (build_shadow_mem_access): New function.
34789         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
34790         Handle size_in_bytes not power of two or larger than 16.
34791         (instrument_derefs): Don't give up if size_in_bytes is not
34792         power of two or is larger than 16.
34793
34794 2014-05-30  Kai Tietz  <ktietz@redhat.com>
34795
34796         PR target/60104
34797         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
34798         for sibling-tail-calls.
34799         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
34800         to its use.
34801         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
34802         (sibcall_insn_operand): Add check for sibcall_memory_operand.
34803
34804 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
34805
34806         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
34807         * config/avr/avr-tables.opt: Regenerate.
34808         * config/avr/t-multilib: Regenerate.
34809         * doc/avr-mmcu.texi: Regenerate.
34810
34811 2014-05-30  Ian Lance Taylor  <iant@google.com>
34812
34813         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
34814         target("sse").
34815
34816 2014-05-30  Tom de Vries  <tom@codesourcery.com>
34817
34818         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
34819         Redefine as true.
34820
34821 2014-05-30  Tom de Vries  <tom@codesourcery.com>
34822
34823         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
34824         * lra.c (initialize_lra_reg_info_element): Add init of
34825         actual_call_used_reg_set field.
34826         (lra): Call lra_create_live_ranges before lra_inheritance for
34827         -fuse-caller-save.
34828         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
34829         -fuse-caller-save.
34830         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
34831         instead of call_used_reg_set for -fuse-caller-save.
34832         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
34833
34834 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34835
34836         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
34837         to mov_imm.
34838         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
34839
34840 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
34841
34842         * ira.c (ira_get_dup_out_num): Check for output operands at
34843         the start of the loop.  Handle cases where an included alternative
34844         follows an excluded one.
34845
34846 2014-05-29  Mike Stump  <mikestump@comcast.net>
34847
34848         PR debug/61352
34849         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
34850         post ld passes when lto is used.
34851
34852 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
34853
34854         PR rtl-optimization/61325
34855         * lra-constraints.c (process_address): Rename to process_address_1.
34856         (process_address): New function.
34857
34858 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
34859
34860         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
34861         TYPES_BINOPV): New static data.
34862         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
34863         New builtin.
34864         * config/aarch64/aarch64-simd.md (aarch64_ext,
34865         aarch64_im_lane_boundsi): New patterns.
34866         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
34867         patterns for EXT.
34868         (aarch64_evpc_ext): New function.
34869
34870         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
34871
34872         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
34873         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
34874         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
34875         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
34876         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
34877
34878 2014-05-29  Tom de Vries  <tom@codesourcery.com>
34879
34880         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
34881
34882 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
34883             Richard Sandiford  <rdsandiford@googlemail.com>
34884
34885         * arm/iterators.md (shiftable_ops): New code iterator.
34886         (t2_binop0, arith_shift_insn): New code attributes.
34887         * arm/predicates.md (shift_nomul_operator): New predicate.
34888         * arm/arm.md (insn_enabled): Delete.
34889         (enabled): Remove insn_enabled test.
34890         (*arith_shiftsi): Delete.  Replace with ...
34891         (*<arith_shift_insn>_multsi): ... new pattern.
34892         (*<arith_shift_insn>_shiftsi): ... new pattern.
34893         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
34894
34895 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
34896             Tom de Vries  <tom@codesourcery.com>
34897
34898         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
34899         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
34900         clobber.
34901         (mips_split_call): Use POST_CALL_TMP_REG.
34902         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
34903
34904 2014-05-29  Tom de Vries  <tom@codesourcery.com>
34905
34906         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
34907         with #ifdef STACK_REGS.
34908
34909 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
34910
34911         * varasm.c (get_variable_section): Walk aliases.
34912         (place_block_symbol): Walk aliases.
34913
34914 2014-05-28  Tom de Vries  <tom@codesourcery.com>
34915
34916         Revert:
34917         2014-05-28  Tom de Vries  <tom@codesourcery.com>
34918
34919         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
34920         * lra.c (initialize_lra_reg_info_element): Add init of
34921         actual_call_used_reg_set field.
34922         (lra): Call lra_create_live_ranges before lra_inheritance for
34923         -fuse-caller-save.
34924         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
34925         -fuse-caller-save.
34926         * lra-constraints.c (need_for_call_save_p): Use
34927         actual_call_used_reg_set instead of call_used_reg_set for
34928         -fuse-caller-save.
34929         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
34930
34931 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
34932
34933         * doc/md.texi: Document that the % constraint character must
34934         be at the beginning of the string.
34935         * genoutput.c (validate_insn_alternatives): Check that '=',
34936         '+' and '%' only appear at the beginning of a constraint.
34937         * ira.c (commutative_constraint_p): Delete.
34938         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
34939         at the start of the string.
34940         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
34941         duplicate '='s.
34942         * config/arm/neon.md (bicdi3_neon): Likewise.
34943         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
34944         (slt_si, sltu_si): Likewise.
34945         * config/vax/vax.md (sbcdi3): Likewise.
34946         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
34947         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
34948         (mul64): Move '%' to beginning of constraint.
34949         * config/arm/arm.md (*xordi3_insn): Likewise.
34950         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
34951         (xorsi3): Likewise.
34952
34953 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
34954
34955         * doc/md.texi: Document the restrictions on the "enabled" attribute.
34956
34957 2014-05-28  Jason Merrill  <jason@redhat.com>
34958
34959         PR c++/47202
34960         * cgraph.h (symtab_node::get_comdat_group_id): New.
34961         * cgraphunit.c (analyze_functions): Call it.
34962         * symtab.c (dump_symtab_node): Likewise.
34963         * tree.c (decl_comdat_group_id): New.
34964         * tree.h: Declare it.
34965         * lto-streamer-out.c (write_symbol): Use it.
34966         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
34967
34968 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
34969
34970         PR bootstrap/PR61146
34971         * wide-int.cc: Do not include longlong.h when compiling with clang.
34972
34973 2014-05-28  Richard Biener  <rguenther@suse.de>
34974
34975         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
34976         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
34977         (vrp_visit_assignment_or_call): Print less vertical space.
34978         (vrp_visit_stmt): Likewise.
34979         (vrp_visit_phi_node): Likewise.  For a PHI argument with
34980         VR_VARYING range consider recording it as copy.
34981
34982 2014-05-28  Richard Biener  <rguenther@suse.de>
34983
34984         Revert
34985         2014-05-28  Richard Biener  <rguenther@suse.de>
34986
34987         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
34988
34989 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34990
34991         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
34992         sufficiently aligned and an offset is used at the same time.
34993         (expand_expr_real_1): Likewise.
34994
34995 2014-05-28  Richard Biener  <rguenther@suse.de>
34996
34997         PR middle-end/61045
34998         * fold-const.c (fold_comparison): When folding
34999         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
35000         the sign of the remaining constant operand stays the same.
35001
35002 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
35003
35004         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
35005         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
35006         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
35007         to the assembler.
35008         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
35009         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
35010         (m32bit-doubles) Likewise.
35011         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
35012         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
35013         option for RL78.
35014
35015 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35016
35017         * configure.ac ($gcc_cv_ld_clearcap): New test.
35018         * configure: Regenerate.
35019         * config.in: Regenerate.
35020         * config/sol2.opt (mclear-hwcap): New option.
35021         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
35022         * config/sol2-clearcap.map: Moved here from
35023         testsuite/gcc.target/i386/clearcap.map.
35024         * config/sol2-clearcapv2.map: Move here from
35025         gcc.target/i386/clearcapv2.map.
35026         * config/t-sol2 (install): Depend on install-clearcap-map.
35027         (install-clearcap-map): New target.
35028         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
35029         -mclear-hwcap.
35030
35031 2014-05-28  Richard Biener  <rguenther@suse.de>
35032
35033         * hwint.h (*_HALF_WIDE_INT*): Move to ...
35034         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
35035         ... here and remove the rest.
35036         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35037
35038 2014-05-28  Richard Biener  <rguenther@suse.de>
35039
35040         PR tree-optimization/61335
35041         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
35042         new range fails, drop to varying.
35043
35044 2014-05-28  Olivier Hainque  <hainque@adacore.com>
35045
35046         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
35047         (CPP_SPEC): Add entry for -mcpu=8548.
35048         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
35049         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
35050
35051 2014-05-28  Tom de Vries  <tom@codesourcery.com>
35052
35053         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35054         * lra.c (initialize_lra_reg_info_element): Add init of
35055         actual_call_used_reg_set field.
35056         (lra): Call lra_create_live_ranges before lra_inheritance for
35057         -fuse-caller-save.
35058         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35059         -fuse-caller-save.
35060         * lra-constraints.c (need_for_call_save_p): Use
35061         actual_call_used_reg_set instead of call_used_reg_set for
35062         -fuse-caller-save.
35063         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35064
35065 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
35066             Tom de Vries  <tom@codesourcery.com>
35067
35068         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
35069         to gccoptlist.
35070         (@item -fuse-caller-save): New item.
35071
35072 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
35073             Tom de Vries  <tom@codesourcery.com>
35074
35075         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
35076         OPT_fuse_caller_save.
35077
35078 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
35079             Tom de Vries  <tom@codesourcery.com>
35080
35081         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
35082         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
35083         get_call_reg_set_usage.
35084         * resource.c (mark_set_resources, mark_target_live_regs): Use
35085         get_call_reg_set_usage.
35086         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
35087         field.
35088         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
35089         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
35090         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
35091         * ira-build.c (ira_create_allocno): Init
35092         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
35093         (create_cap_allocno, propagate_allocno_info)
35094         (propagate_some_info_from_allocno)
35095         (copy_info_to_removed_store_destinations): Handle
35096         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
35097         * ira-costs.c (ira_tune_allocno_costs): Use
35098         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
35099
35100 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
35101             Tom de Vries  <tom@codesourcery.com>
35102
35103         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
35104         and function_used_regs_valid fields.
35105         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
35106         find_all_hard_reg_sets.
35107         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
35108         (get_call_reg_set_usage): New function.
35109         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
35110         * regs.h (get_call_reg_set_usage): Declare.
35111
35112 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
35113
35114         PR libgcc/61152
35115         * config/dbx.h (License): Add Runtime Library Exception.
35116         * config/newlib-stdint.h (License): Same.
35117         * config/rtems.h (License): Same
35118         * config/initfini-array.h (License): Same
35119         * config/v850/v850.h (License): Same.
35120         * config/v850/v850-opts.h (License): Same
35121         * config/v850/rtems.h (License): Same.
35122
35123 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
35124
35125         PR target/61044
35126         * doc/extend.texi (Local Labels): Note that label differences are
35127         not supported for AVR.
35128
35129 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
35130             Olivier Hainque  <hainque@adacore.com>
35131
35132         * rtl.h (set_for_reg_notes): Declare.
35133         * emit-rtl.c (set_for_reg_notes): New function.
35134         (set_unique_reg_note): Use it.
35135         * optabs.c (add_equal_note): Likewise
35136
35137 2014-05-27  Andrew Pinski  <apinski@cavium.com>
35138
35139         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
35140         Use <w> for the register in assembly template.
35141         (stack_protect_test): Use the mode of operands[0] for the result.
35142         (stack_protect_test_<mode>): Use <w> for the register
35143         in assembly template.
35144
35145 2014-05-27  DJ Delorie  <dj@redhat.com>
35146
35147         * config/rx/rx.c (add_vector_labels): New.
35148         (rx_output_function_prologue): Call it.
35149         (rx_handle_func_attribute): Don't require empty arguments.
35150         (rx_handle_vector_attribute): New.
35151         (rx_attribute_table): Add "vector" attribute.
35152         * doc/extend.texi (interrupt, vector): Document new/changed
35153         RX-specific attributes.
35154
35155         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
35156
35157 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
35158
35159         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
35160         predicate to detect a negative quotient.
35161
35162 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
35163
35164         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
35165         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
35166         Add X - Y CMP 0 to X CMP Y transformation.
35167         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
35168
35169 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
35170
35171         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
35172         before printing.
35173
35174 2014-05-27  Steve Ellcey  <sellcey@mips.com>
35175
35176         * config/mips/mips.c: Add include of cgraph.h.
35177
35178 2014-05-27  Richard Biener  <rguenther@suse.de>
35179
35180         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
35181
35182 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
35183
35184         PR libgcc/61152
35185         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
35186         * config/arm/arm-cores.def (License): Same.
35187         * config/arm/arm-opts.h (License): Same.
35188         * config/arm/aout.h (License): Same.
35189         * config/arm/bpabi.h (License): Same.
35190         * config/arm/elf.h (License): Same.
35191         * config/arm/linux-elf.h (License): Same.
35192         * config/arm/linux-gas.h (License): Same.
35193         * config/arm/netbsd-elf.h (License): Same.
35194         * config/arm/uclinux-eabi.h (License): Same.
35195         * config/arm/uclinux-elf.h (License): Same.
35196         * config/arm/vxworks.h (License): Same.
35197
35198 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35199
35200         * config/arm/neon.md (neon_bswap<mode>): New pattern.
35201         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
35202         (arm_init_neon_builtins): Handle NEON_BSWAP.
35203         Define required type nodes.
35204         (arm_expand_neon_builtin): Handle NEON_BSWAP.
35205         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
35206         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
35207         * config/arm/iterators.md (VDQHSD): New mode iterator.
35208
35209 2014-05-27  Richard Biener  <rguenther@suse.de>
35210
35211         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
35212         Try using literal operands when comparing value-ranges failed.
35213
35214 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
35215
35216         * ira.c (commutative_operand): Adjust for change to recog_data.
35217         [Missing from previous commit.]
35218
35219 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
35220
35221         * system.h (TEST_BIT): New macro.
35222         * recog.h (alternative_mask): New type.
35223         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
35224         (recog_data_d): Replace alternative_enabled_p array with
35225         enabled_alternatives.
35226         (target_recog): New structure.
35227         (default_target_recog, this_target_recog): Declare.
35228         (get_enabled_alternatives, recog_init): Likewise.
35229         * recog.c (default_target_recog, this_target_recog): New variables.
35230         (get_enabled_alternatives): New function.
35231         (extract_insn): Use it.
35232         (recog_init): New function.
35233         (preprocess_constraints, constrain_operands): Adjust for change to
35234         recog_data.
35235         * postreload.c (reload_cse_simplify_operands): Likewise.
35236         * reload.c (find_reloads): Likewise.
35237         * ira-costs.c (record_reg_classes): Likewise.
35238         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
35239         all alternatives after a disabled one would be skipped.
35240         (ira_implicitly_set_insn_hard_regs): Likewise.
35241         * ira.c (ira_setup_alts): Adjust for change to recog_data.
35242         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
35243         with enabled_alternatives.
35244         * lra.c (free_insn_recog_data): Update accordingly.
35245         (lra_update_insn_recog_data): Likewise.
35246         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
35247         * lra-constraints.c (process_alt_operands): Likewise.  Handle
35248         only_alternative as part of the enabled mask.
35249         * target-globals.h (this_target_recog): Declare.
35250         (target_globals): Add a recog field.
35251         (restore_target_globals): Restore this_target_recog.
35252         * target-globals.c: Include recog.h.
35253         (default_target_globals): Initialize recog field.
35254         (save_target_globals): Likewise.
35255         * reginfo.c (reinit_regs): Call recog_init.
35256         * toplev.c (backend_init_target): Likewise.
35257
35258 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
35259
35260         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
35261         rather than any named insn's code.
35262
35263 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
35264
35265         PR libgcc/61152
35266         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
35267         * config/arm/arm-cores.def (License): Same.
35268
35269 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
35270
35271         * tree.h (decl_comdat_group): Declare.
35272         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
35273         * tree.c (decl_comdat_group): Here.
35274
35275 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
35276
35277         PR rtl-optimization/61222
35278         * combine.c (simplify_shift_const_1): When moving a PLUS outside
35279         the shift, truncate the PLUS operand to the result mode.
35280
35281 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
35282
35283         PR target/61271
35284         * config/i386/i386.c (ix86_rtx_costs)
35285         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
35286         Fix condition.
35287
35288 2014-05-26  Martin Jambor  <mjambor@suse.cz>
35289
35290         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
35291         subreg uses.
35292
35293 2014-05-26  Richard Biener  <rguenther@suse.de>
35294
35295         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
35296         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
35297         Provide specializations.
35298         (wi::int_traits <HOST_WIDE_INT>,
35299         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
35300
35301 2014-05-26  Alan Modra  <amodra@gmail.com>
35302
35303         PR target/61098
35304         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
35305         params and return a bool.  Remove dead code.  Update comment.
35306         Assert we have a const_int source.  Remove bogus code from
35307         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
35308         handling of constants > 2G and reg_equal note, from..
35309         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
35310         return value.  Update comment.  If we can, use a new pseudo
35311         for intermediate calculations.
35312         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
35313         prototype.
35314         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
35315         call to rs6000_emit_set_const in splitter.
35316         (movdi_internal64+2, +3): Likewise.
35317
35318 2014-05-26  Richard Biener  <rguenther@suse.de>
35319
35320         * system.h: Define __STDC_FORMAT_MACROS before
35321         including inttypes.h.
35322         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
35323         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
35324         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
35325         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
35326         HOST_WIDEST_INT_C): Remove.
35327         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
35328         if C99 inttypes.h is not available.
35329         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
35330         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
35331         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
35332         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
35333         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
35334         (struct output_info): Likewise.
35335         (print_statistics): Adjust.
35336         (dump_bitmap_statistics): Likewise.
35337         * bt-load.c (migrate_btr_defs): Print with PRId64.
35338         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
35339         (MAX_SAFE_MULTIPLIER): Adjust.
35340         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
35341         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
35342         dump_cgraph_node): Likewise.
35343         * final.c (dump_basic_block_info): Likewise.
35344         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
35345         * gcov.c (format_gcov): Likewise.
35346         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
35347         for calculation.
35348         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
35349         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
35350         (inline_small_functions, dump_overall_stats, dump_inline_stats):
35351         Use PRId64 for dumping.
35352         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
35353         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
35354         (add_allocno_hard_regs): Adjust.
35355         * loop-doloop.c (doloop_modify): Print using PRId64.
35356         * loop-iv.c (inverse): Compute in uint64_t.
35357         (determine_max_iter, iv_number_of_iterations): Likewise.
35358         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
35359         Print using PRId64.
35360         * lto-streamer-out.c (write_symbol): Use uint64_t.
35361         * mcf.c (CAP_INFINITY): Use int64_t maximum.
35362         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
35363         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
35364         * modulo-sched.c (const_iteration_count): Use int64_t.
35365         (sms_schedule): Dump using PRId64.
35366         * predict.c (dump_prediction): Likewise.
35367         * pretty-print.h (pp_widest_integer): Remove.
35368         * profile.c (get_working_sets, is_edge_inconsistent,
35369         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
35370         * tree-pretty-print.c (pp_double_int): Remove case handling
35371         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
35372         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
35373         and adjust users.
35374         (pass_optimize_bswap::execute): Remove restriction on hosts.
35375         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
35376         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
35377         * tree.c (widest_int_cst_value): Remove.
35378         * tree.h (widest_int_cst_value): Likewise.
35379         * value-prof.c (dump_histogram_value): Print using PRId64.
35380         * gengtype.c (main): Also inject int64_t.
35381         * ggc-page.c (struct max_alignment): Use int64_t.
35382         * alloc-pool.c (struct allocation_object_def): Likewise.
35383         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
35384         for computation.
35385         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
35386         * doc/tm.texi: Regenerated.
35387         * gengtype-lex.l (IWORD): Handle [u]int64_t.
35388         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
35389         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
35390         mmix_output_register_setting): Use [u]int64_t in prototypes.
35391         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
35392         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
35393         mmix_output_octa, mmix_output_shifted_value): Adjust.
35394         (mmix_intval): Adjust.  Remove unreachable case.
35395         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
35396
35397 2014-05-26  Richard Biener  <rguenther@suse.de>
35398
35399         * configure.ac: Drop __int64 type check.  Insist that we
35400         found uint64_t and int64_t.
35401         * hwint.h (HOST_BITS_PER___INT64): Remove.
35402         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
35403         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
35404         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
35405         (HOST_WIDEST_FAST_INT): Remove __int64 case.
35406         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
35407         for dst_q_src_df_rms_cdt.
35408         * configure: Regenerate.
35409         * config.in: Likewise.
35410
35411 2014-05-26  Michael Tautschnig  <mt@debian.org>
35412
35413         PR target/61249
35414         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
35415         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
35416
35417 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
35418
35419         PR rtl-optimization/61278
35420         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
35421
35422 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
35423
35424         PR rtl-optimization/61220
35425         Part of PR rtl-optimization/61225
35426         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
35427         insn; skip split_edge for a block with only one successor.
35428
35429 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35430
35431         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
35432         for variables.
35433
35434 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35435
35436         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
35437         (update_vtable_references): New function.
35438         (function_and_variable_visibility): Rewrite also vtable initializers.
35439         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
35440
35441 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35442
35443         * ggc.h (ggc_grow): New function.
35444         * ggc-none.c (ggc_grow): New function.
35445         * ggc-page.c (ggc_grow): Likewise.
35446
35447 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35448
35449         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
35450         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
35451         comdat_can_be_unshared_p, cgraph_externally_visible_p,
35452         varpool_externally_visible_p, can_replace_by_local_alias,
35453         update_visibility_by_resolution_info, function_and_variable_visibility,
35454         pass_data_ipa_function_and_variable_visibility,
35455         make_pass_ipa_function_and_variable_visibility,
35456         whole_program_function_and_variable_visibility,
35457         pass_data_ipa_whole_program_visibility,
35458         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
35459         * cgraph.h (cgraph_local_node_p): Declare.
35460         * ipa-visibility.c: New file.
35461         * Makefile.in (OBJS): Add ipa-visiblity.o
35462
35463 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35464
35465         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
35466         that var decl is available.
35467
35468 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35469
35470         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
35471         symtab_node pointer.
35472         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
35473         (find_decls_types_r): Do not walk COMDAT_GROUP.
35474         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
35475         * varasm.c (make_decl_one_only): Use set_comdat_group;
35476         create node if needed.
35477         * ipa-inline-transform.c (save_inline_function_body): Update
35478         way we decl->symtab mapping.
35479         * symtab.c (symtab_hash, hash_node, eq_node
35480         symtab_insert_node_to_hashtable): Remove.
35481         (symtab_register_node): Update.
35482         (symtab_unregister_node): Update.
35483         (symtab_get_node): Reimplement as inline function.
35484         (symtab_add_to_same_comdat_group): Update.
35485         (symtab_dissolve_same_comdat_group_list): Update.
35486         (dump_symtab_base): Update.
35487         (verify_symtab_base): Update.
35488         (symtab_make_decl_local): Update.
35489         (fixup_same_cpp_alias_visibility): Update.
35490         (symtab_nonoverwritable_alias): Update.
35491         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
35492         * ipa.c (update_visibility_by_resolution_info): UPdate.
35493         * bb-reorder.c: Include cgraph.h
35494         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
35495         with comdat groups.
35496         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
35497         * cgraph.c (cgraph_get_create_node): Update.
35498         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
35499         and comdat_group_.
35500         (symtab_get_node): Make inline.
35501         (symtab_insert_node_to_hashtable): Remove.
35502         (symtab_can_be_discarded): Update.
35503         (decl_comdat_group): New function.
35504         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
35505         Update.
35506         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
35507         comdat group name.
35508         (read_comdat_group): New function.
35509         (input_node, input_varpool_node): Use it.
35510         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
35511         comdat groups.
35512         * mips.c (mips_start_unique_function): Likewise.
35513         (ix86_code_end): Likewise.
35514         (rs6000_code_end): Likweise.
35515         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
35516
35517 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35518
35519         * gengtype-state.c (fatal_reading_state): Bring offline.
35520         * optabs.c (widening_optab_handler): Bring offline.
35521         * optabs.h (widening_optab_handler): Likewise.
35522         * final.c (get_attr_length_1): Likewise.
35523
35524 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35525
35526         * sched-int.h (sd_iterator_cond): Manually tail recurse.
35527
35528 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35529
35530         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
35531         (ppc440-compare): Include shift with dot.
35532         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
35533         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
35534         without dot.
35535         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
35536         without dot.
35537         (e6500_sfx2): Include it.
35538         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
35539         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
35540         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
35541         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
35542         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
35543         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
35544         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
35545         *lshiftrt_internal1le, *lshiftrt_internal1be,
35546         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
35547         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
35548         *rotldi3_internal10le, *rotldi3_internal10be,
35549         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
35550         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
35551         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
35552         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
35553         define_insns): Use type "shift" in the appropriate alternatives.
35554
35555 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35556
35557         * config/rs6000/rs6000.md (type): Add "logical".  Delete
35558         "fast_compare".
35559         (dot): Adjust comment.
35560         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
35561         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
35562         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
35563         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
35564         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
35565         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
35566         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
35567         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
35568
35569         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
35570         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
35571         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
35572         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
35573         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
35574         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
35575         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
35576         * config/rs6000/8540.md (ppc8540_su): Adjust.
35577         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
35578         cell-cmp-microcoded): Adjust.
35579         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
35580         * config/rs6000/e500mc.md (e500mc_su): Adjust.
35581         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
35582         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
35583         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
35584         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
35585         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
35586         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
35587         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
35588         Adjust.
35589         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
35590         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
35591         Adjust.  Adjust comment.
35592         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
35593         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
35594
35595 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35596
35597         * config/rs6000/rs6000.md (type): Add "add".
35598         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
35599         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
35600         define_insns): Use it.
35601         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
35602
35603         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
35604         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
35605         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
35606         * config/rs6000/601.md (ppc601-integer): Adjust.
35607         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
35608         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
35609         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
35610         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
35611         * config/rs6000/8540.md (ppc8540_su): Adjust.
35612         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
35613         cell-cmp-microcoded): Adjust.
35614         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
35615         * config/rs6000/e500mc.md (e500mc_su): Adjust.
35616         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
35617         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
35618         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
35619         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
35620         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
35621         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
35622         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
35623         Adjust.
35624         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
35625         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
35626         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
35627         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
35628
35629 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35630
35631         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
35632         "delayed_compare", "var_delayed_compare".
35633         (var_shift): New attribute.
35634         (cell_micro): Adjust.
35635         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
35636         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
35637         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
35638         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
35639         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
35640         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
35641         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
35642         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
35643         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
35644         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
35645         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
35646         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
35647         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
35648         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
35649         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
35650         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
35651         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
35652         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
35653         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
35654         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
35655         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
35656         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
35657         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
35658         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
35659         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
35660
35661         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
35662         * config/rs6000/440.md (ppc440-integer): Adjust.
35663         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
35664         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
35665         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
35666         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
35667         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
35668         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
35669         * config/rs6000/8540.md (ppc8540_su): Adjust.
35670         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
35671         cell-cmp-microcoded): Adjust.
35672         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
35673         * config/rs6000/e500mc.md (e500mc_su): Adjust.
35674         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
35675         e500mc64_delayed): Adjust.
35676         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
35677         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
35678         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
35679         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
35680         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
35681         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
35682         power6-delayed-compare, power6-var-delayed-compare): Adjust.
35683         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
35684         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
35685         Adjust comment.
35686         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
35687         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
35688
35689 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35690
35691         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
35692         (bits): New mode_attr.
35693         (idiv_ldiv): Delete mode_attr.
35694         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
35695         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
35696         rs6000_adjust_priority, is_nonpipeline_insn,
35697         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
35698
35699         * config/rs6000/40x.md (ppc403-idiv): Adjust.
35700         * config/rs6000/440.md (ppc440-idiv): Adjust.
35701         * config/rs6000/476.md (ppc476-idiv): Adjust.
35702         * config/rs6000/601.md (ppc601-idiv): Adjust.
35703         * config/rs6000/603.md (ppc603-idiv): Adjust.
35704         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
35705         ppc620-ldiv): Adjust.
35706         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
35707         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
35708         * config/rs6000/8540.md (ppc8540_divide): Adjust.
35709         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
35710         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
35711         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
35712         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
35713         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
35714         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
35715         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
35716         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
35717         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
35718         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
35719         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
35720         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
35721         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
35722         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
35723         * config/rs6000/titan.md (titan_fxu_div): Adjust.
35724
35725 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35726
35727         * config/rs6000/rs6000.md (type): Delete "insert_word",
35728         "insert_dword".  Add "insert".
35729         (size): Update comment.
35730         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
35731         insn_must_be_first_in_group): Adjust.
35732         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
35733         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
35734         *insvsi_internal6, insvdi_internal): Adjust.
35735
35736         * config/rs6000/40x.md (ppc403-integer): Adjust.
35737         * config/rs6000/440.md (ppc440-integer): Adjust.
35738         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
35739         * config/rs6000/601.md (ppc601-integer): Adjust.
35740         * config/rs6000/603.md (ppc603-integer): Adjust.
35741         * config/rs6000/6xx.md (ppc604-integer): Adjust.
35742         * config/rs6000/7450.md (ppc7450-integer): Adjust.
35743         * config/rs6000/7xx.md (ppc750-integer): Adjust.
35744         * config/rs6000/8540.md (ppc8540_su): Adjust.
35745         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
35746         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
35747         * config/rs6000/e500mc.md (e500mc_su): Adjust.
35748         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
35749         * config/rs6000/e5500.md (e5500_sfx): Adjust.
35750         * config/rs6000/e6500.md (e6500_sfx): Adjust.
35751         * config/rs6000/mpc.md (mpccore-integer): Adjust.
35752         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
35753         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
35754         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
35755         * config/rs6000/power7.md (power7-integer): Adjust.
35756         * config/rs6000/power8.md (power8-1cyc): Adjust.
35757         * config/rs6000/rs64.md (rs64a-integer): Adjust.
35758         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
35759
35760 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35761
35762         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
35763         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
35764         (size): New attribute.
35765         (dot): New attribute.
35766         (cell_micro): Adjust.
35767         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
35768         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
35769         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
35770         umuldi3_highpart): Adjust.
35771         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
35772         rs6000_adjust_priority, is_nonpipeline_insn,
35773         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
35774
35775         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
35776         ppc405-imul3): Adjust.
35777         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
35778         * config/rs6000/476.md (ppc476-imul): Adjust.
35779         * config/rs6000/601.md (ppc601-imul): Adjust.
35780         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
35781         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
35782         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
35783         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
35784         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
35785         Adjust.
35786         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
35787         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
35788         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
35789         cell-imul): Adjust.
35790         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
35791         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
35792         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
35793         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
35794         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
35795         * config/rs6000/mpc.md (mpccore-imul): Adjust.
35796         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
35797         power4-lmul, power4-imul, power4-imul3): Adjust.
35798         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
35799         power5-lmul, power5-imul, power5-imul3): Adjust.
35800         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
35801         power6-lmul, power6-imul, power6-imul3): Adjust.
35802         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
35803         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
35804
35805         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
35806         rs64a-lmul): Adjust.
35807         * config/rs6000/titan.md (titan_imul): Adjust.
35808
35809 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35810
35811         * config/rs6000/rs6000.md (type): Add new value "halfmul".
35812         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
35813         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
35814         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
35815         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
35816         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
35817         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
35818         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
35819         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
35820         * config/rs6000/titan.md: Delete nonsensical comment.
35821         (titan_imul): Add type imul3.
35822         (titan_mulhw): Remove type imul3; add type halfmul.
35823
35824 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35825
35826         * config/rs6000/rs6000.md (type): Reorder, reformat.
35827
35828 2014-05-23  Martin Jambor  <mjambor@suse.cz>
35829
35830         PR tree-optimization/53787
35831         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
35832         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
35833         analysis_done, update all uses.
35834         * ipa-prop.c: Include domwalk.h
35835         (param_analysis_info): Removed.
35836         (param_aa_status): New type.
35837         (ipa_bb_info): Likewise.
35838         (func_body_info): Likewise.
35839         (ipa_get_bb_info): New function.
35840         (aa_overwalked): Likewise.
35841         (find_dominating_aa_status): Likewise.
35842         (parm_bb_aa_status_for_bb): Likewise.
35843         (parm_preserved_before_stmt_p): Changed to use new param AA info.
35844         (load_from_unmodified_param): Accept func_body_info as a parameter
35845         instead of parms_ainfo.
35846         (parm_ref_data_preserved_p): Changed to use new param AA info.
35847         (parm_ref_data_pass_through_p): Likewise.
35848         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
35849         (compute_complex_assign_jump_func): Changed to use new param AA info.
35850         (compute_complex_ancestor_jump_func): Likewise.
35851         (ipa_compute_jump_functions_for_edge): Likewise.
35852         (ipa_compute_jump_functions): Removed.
35853         (ipa_compute_jump_functions_for_bb): New function.
35854         (ipa_analyze_indirect_call_uses): Likewise, moved variable
35855         declarations down.
35856         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
35857         and info, moved variable declarations down.
35858         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
35859         node and info.
35860         (ipa_analyze_stmt_uses): Likewise.
35861         (ipa_analyze_params_uses): Removed.
35862         (ipa_analyze_params_uses_in_bb): New function.
35863         (ipa_analyze_controlled_uses): Likewise.
35864         (free_ipa_bb_info): Likewise.
35865         (analysis_dom_walker): New class.
35866         (ipa_analyze_node): Handle node-specific forbidden analysis,
35867         initialize and free func_body_info, use dominator walker.
35868         (ipcp_modif_dom_walker): New class.
35869         (ipcp_transform_function): Create and free func_body_info, use
35870         ipcp_modif_dom_walker, moved a lot of functionality there.
35871
35872 2014-05-23  Marek Polacek  <polacek@redhat.com>
35873             Jakub Jelinek  <jakub@redhat.com>
35874
35875         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
35876         * gcc.c (sanitize_spec_function): Likewise.
35877         * convert.c (convert_to_integer): Include "ubsan.h".  Add
35878         floating-point to integer instrumentation.
35879         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
35880         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
35881         SANITIZE_NONDEFAULT.
35882         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
35883         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
35884         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
35885         * ubsan.c: Include "realmpfr.h" and "dfp.h".
35886         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
35887         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
35888         float/double/long double.
35889         (ubsan_instrument_float_cast): New function.
35890         * ubsan.h (ubsan_instrument_float_cast): Declare.
35891
35892 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
35893
35894         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
35895         predicate.
35896         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
35897         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
35898         Adjust for tailcalling through registers.
35899         * config/aarch64/aarch64.h (enum reg_class): New caller save
35900         register class.
35901         (REG_CLASS_NAMES): Likewise.
35902         (REG_CLASS_CONTENTS): Likewise.
35903         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
35904         Allow tailcalling without decls.
35905
35906 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
35907
35908         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
35909         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
35910
35911         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
35912         gsi, and variables v_* to v*.
35913
35914 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
35915
35916         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
35917
35918 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
35919
35920         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
35921         * omp-low.c: Update accordingly.
35922
35923         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
35924         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
35925         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
35926         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
35927         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
35928         GF_OMP_TARGET_KIND_UPDATE.
35929
35930         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
35931         Explicitly enumerate the expected region types.
35932
35933 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35934
35935         PR other/56955
35936         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
35937         documentation; the old documentation didn't clearly state the
35938         constraints on the contents of the pointed-to storage.
35939
35940 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35941
35942         Fix bootstrap error on ia64
35943         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
35944         Return default value.
35945
35946 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35947
35948         PR tree-optimization/54733
35949         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
35950         (CMPNOP): Define.
35951         (find_bswap_or_nop_load): New.
35952         (find_bswap_1): Renamed to ...
35953         (find_bswap_or_nop_1): This. Also add support for memory source.
35954         (find_bswap): Renamed to ...
35955         (find_bswap_or_nop): This. Also add support for memory source and
35956         detection of bitwise operations equivalent to load in target
35957         endianness.
35958         (execute_optimize_bswap): Likewise. Also move its leading comment back
35959         in place and split statement transformation into ...
35960         (bswap_replace): This.
35961
35962 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
35963
35964         PR rtl-optimization/61215
35965         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
35966         simplify_gen_subreg until final substitution.
35967
35968 2014-05-23  Alan Modra  <amodra@gmail.com>
35969
35970         PR target/61231
35971         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
35972         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
35973         Use "Y" constraint rather than "m".
35974
35975 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
35976
35977         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
35978         define.
35979         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
35980         New function declaration.
35981         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
35982         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
35983         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
35984         (aarch64_init_builtins) : Initialize builtins
35985         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
35986         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
35987         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
35988         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
35989         and __builtins_aarch64_set_fpsr.
35990         (aarch64_atomic_assign_expand_fenv): New function.
35991         * config/aarch64/aarch64.md (set_fpcr): New pattern.
35992         (get_fpcr) : Likewise.
35993         (set_fpsr) : Likewise.
35994         (get_fpsr) : Likewise.
35995         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
35996         and UNSPECV_SET_FPSR.
35997         * doc/extend.texi (AARCH64 Built-in Functions) : Document
35998         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
35999         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
36000
36001 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
36002
36003         PR rtl-optimization/60969
36004         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
36005         constraints.  Set up mem cost for NO_REGS case.
36006
36007 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
36008
36009         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
36010
36011 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
36012
36013         * config/darwin.c: Include "lto-section-names.h".
36014         (LTO_SEGMENT_NAME): Don't define.
36015         * config/i386/winnt.c: Include "lto-section-names.h".
36016         * lto-streamer.c: Include "lto-section-names.h".
36017         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
36018         * lto-wrapper.c: Include "lto-section-names.h".
36019         (LTO_SECTION_NAME_PREFIX): Don't define.
36020         * lto-section-names.h: New file.
36021         * cgraphunit.c: Include "lto-section-names.h".
36022
36023 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
36024
36025         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
36026
36027 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
36028
36029         PR target/61208
36030         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
36031
36032 2014-05-22  Nick Clifton  <nickc@redhat.com>
36033
36034         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
36035
36036 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
36037
36038         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
36039         -> (T)A transformation to integer types.
36040
36041 2014-05-22  Teresa Johnson  <tejohnson@google.com>
36042
36043         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
36044         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
36045         (gcov_rewrite): Use gcov_nonruntime_assert.
36046         (gcov_open): Ditto.
36047         (gcov_write_words): Ditto.
36048         (gcov_write_length): Ditto.
36049         (gcov_read_words): Use gcov_nonruntime_assert, and remove
36050         gcc_assert from IN_LIBGCOV code.
36051         (gcov_read_summary): Use gcov_error to flag profile corruption.
36052         (gcov_sync): Use gcov_nonruntime_assert.
36053         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
36054         (gcov_histo_index): Use gcov_nonruntime_assert.
36055         (static void gcov_histogram_merge): Ditto.
36056         (compute_working_sets): Ditto.
36057         * gcov-io.h (gcov_nonruntime_assert): Define.
36058         (gcov_error): Define for !IN_LIBGCOV
36059
36060 2014-05-22  Richard Biener  <rguenther@suse.de>
36061
36062         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
36063         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
36064         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
36065         and deallocation site.
36066         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36067         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
36068         passing through the incoming points-to set.
36069         (handle_lhs_call): Use flags argument instead of recomputing it.
36070         (find_func_aliases_for_call): Call handle_lhs_call with proper
36071         call return flags.
36072
36073 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
36074
36075         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
36076         all padding bits in REAL_VALUE_TYPE are cleared.
36077
36078 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36079
36080         Cleanup and improve multipass_dfa_lookahead_guard
36081         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
36082         (core2i7_first_cycle_multipass_begin,)
36083         (core2i7_first_cycle_multipass_issue,)
36084         (core2i7_first_cycle_multipass_backtrack): Update signature.
36085         * config/ia64/ia64.c
36086         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
36087         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
36088         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
36089         hook definition.
36090         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
36091         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
36092         values.
36093         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
36094         return values.
36095         * doc/tm.texi: Regenerate.
36096         * doc/tm.texi.in
36097         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
36098         * haifa-sched.c (ready_try): Make signed to allow negative values.
36099         (rebug_ready_list_1): Update.
36100         (choose_ready): Simplify.
36101         (sched_extend_ready_list): Update.
36102
36103 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36104
36105         Remove IA64 speculation tweaking flags
36106         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
36107         speculation tuning flags.
36108         (msched-prefer-non-data-spec-insns,)
36109         (msched-prefer-non-control-spec-insns): Obsolete options.
36110         * haifa-sched.c (choose_ready): Remove handling of
36111         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
36112         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
36113         and PREFER_NON_DATA_SPEC.
36114         * sel-sched.c (process_spec_exprs): Remove handling of
36115         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
36116
36117 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36118
36119         Improve scheduling debug output
36120         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
36121         (advance_one_cycle): Update.
36122         (schedule_insn, queue_to_ready): Add debug printouts.
36123         (debug_ready_list_1): New static function.
36124         (debug_ready_list): Update.
36125         (max_issue): Add debug printouts.
36126         (dump_insn_stream): New static function.
36127         (schedule_block): Use it.  Also better indent printouts.
36128
36129 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36130
36131         Fix sched_insn debug counter
36132         * haifa-sched.c (schedule_insn): Update.
36133         (struct haifa_saved_data): Add nonscheduled_insns_begin.
36134         (save_backtrack_point, restore_backtrack_point): Update.
36135         (first_nonscheduled_insn): New static function.
36136         (queue_to_ready, choose_ready): Use it.
36137         (schedule_block): Init nonscheduled_insns_begin.
36138         (sched_emit_insn): Update.
36139
36140
36141 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
36142
36143         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
36144         to GENERAL_REGS.
36145         (aarch64_secondary_reload) : LikeWise.
36146         (aarch64_class_max_nregs) : Remove CORE_REGS.
36147         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
36148         (REG_CLASS_NAMES) : Likewise.
36149         (REG_CLASS_CONTENTS) : LikeWise.
36150         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
36151
36152 2014-05-21  Guozhi Wei  <carrot@google.com>
36153
36154         PR target/61202
36155         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
36156         constraint.
36157         (vqdmulhq_n_s16): Likewise.
36158
36159 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
36160
36161         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
36162
36163 2014-05-21  Marek Polacek  <polacek@redhat.com>
36164
36165         PR sanitizer/61272
36166         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
36167
36168 2014-05-21  Martin Jambor  <mjambor@suse.cz>
36169
36170         * doc/invoke.texi (Optimize Options): Document parameters
36171         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
36172         ipa-cp-array-index-hint-bonus.
36173
36174 2014-05-21  Mark Wielaard  <mjw@redhat.com>
36175
36176         PR debug/16063
36177         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
36178         version >= 3 or not strict DWARF.
36179         * langhooks.h (struct lang_hooks_for_types): Add
36180         enum_underlying_base_type.
36181         * langhooks.c (lhd_enum_underlying_base_type): New function.
36182         * gcc/langhooks.h (struct lang_hooks_for_types): Add
36183         enum_underlying_base_type.
36184         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
36185         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
36186         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
36187
36188 2014-05-21  Richard Biener  <rguenther@suse.de>
36189
36190         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
36191
36192 2014-05-21  John Marino  <gnugcc@marino.st>
36193
36194         * config.gcc (*-*-dragonfly*): New target.
36195         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
36196         * configure: Regenerate.
36197         * config/dragonfly-stdint.h: New.
36198         * config/dragonfly.h: New.
36199         * config/dragonfly.opt: New.
36200         * config/i386/dragonfly.h: New.
36201         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
36202
36203 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
36204
36205         * tree.def (VOID_CST): New.
36206         * tree-core.h (TI_VOID): New.
36207         * tree.h (void_node): New.
36208         * tree.c (tree_node_structure_for_code, tree_code_size)
36209         (iterative_hash_expr): Handle VOID_CST.
36210         (build_common_tree_nodes): Initialize void_node.
36211
36212 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
36213
36214         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
36215         functions.
36216         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
36217
36218         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
36219         more places.
36220
36221         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
36222         flag_reorder_blocks_and_partition.
36223         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
36224
36225 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
36226
36227         PR target/54236
36228         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
36229         constraints.
36230         (*addc_r_t): Add new insn_and_split.
36231
36232 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
36233
36234         PR middle-end/61252
36235         * omp-low.c (handle_simd_reference): New function.
36236         (lower_rec_input_clauses): Use it.  Defer adding reference
36237         initialization even for reduction without placeholder if in simd,
36238         handle it properly later on.
36239
36240 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
36241
36242         PR tree-optimization/60899
36243         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
36244         assume all static symbols will have definition wile parsing and
36245         check the do have definition later in compilation; check that
36246         variable referring symbol will be output before concluding that
36247         reference is safe; be conservative for referring local statics;
36248         be more precise about when comdat is output in other partition.
36249
36250 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
36251
36252         PR bootstrap/60984
36253         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
36254         parameter.
36255         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
36256         (ipa_inline): Loop inline_to_all_callers until no more aliases
36257         are removed.
36258
36259 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
36260
36261         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
36262         set writeonly flag only for vars actually written to.
36263
36264 2014-05-20  Dehao Chen  <dehao@google.com>
36265
36266         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
36267         and callee count to get clone count.
36268         * tree-inline.c (expand_call_inline): Use callee count instead of bb
36269         count in copy_body.
36270
36271 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
36272
36273         PR rtl-optimization/61243
36274         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
36275
36276 2014-05-20  Xinliang David Li  <davidxl@google.com>
36277
36278         * cgraphunit.c (walk_polymorphic_call_targets): Add
36279         dbgcnt and fopt-info support.
36280         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
36281         * ipa-devirt.c (ipa_devirt): Ditto.
36282         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
36283         * ipa.c (walk_polymorphic_call_targets): Ditto.
36284         * gimple-fold.c (fold_gimple_assign): Ditto.
36285         (gimple_fold_call): Ditto.
36286         * dbgcnt.def: New counter.
36287
36288 2014-05-20  DJ Delorie  <dj@redhat.com>
36289
36290         * config/msp430/msp430.md (split): Don't allow subregs when
36291         splitting SImode adds.
36292         (andneghi): Fix subtraction logic.
36293         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
36294
36295 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
36296
36297         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
36298         symbols.
36299         * except.c (switch_to_exception_section, resolve_unique_section,
36300         get_named_text_section, default_function_rodata_section,
36301         align_variable, get_block_for_decl, default_section_type_flags):
36302         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
36303         * symtab.c (symtab_add_to_same_comdat_group,
36304         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
36305         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
36306         Likewise.
36307         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
36308         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
36309         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
36310         (c6x_function_in_section_p): Likewise.
36311         * config/darwin.c (machopic_select_section): Likewise.
36312         * config/arm/arm.c (arm_function_in_section_p): Likewise.
36313         * config/mips/mips.c (mips_function_rodata_section): Likewise.
36314         * config/mep/mep.c (mep_select_section): LIkewise.
36315         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
36316
36317 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
36318
36319         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
36320         EH region of calls to pure functions that can throw an exception.
36321         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
36322         (copy_reference_ops_from_call): Also copy the EH region of the call if
36323         it can throw an exception.
36324
36325 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36326
36327         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
36328         nested VEC_SELECTs that are inverses of each other.
36329
36330 2014-05-20  Richard Biener  <rguenther@suse.de>
36331
36332         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
36333         (extract_and_process_scc_for_name): not here.
36334         (cond_dom_walker::before_dom_children): Only process
36335         stmts that end the BB in interesting ways.
36336         (run_scc_vn): Mark param uses as visited.
36337
36338 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36339
36340         * config/arm/arm.md (arith_shiftsi): Do not predicate for
36341         arm_restrict_it.
36342
36343 2014-05-20  Nick Clifton  <nickc@redhat.com>
36344
36345         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
36346         (msp430_gimplify_va_arg_expr): New function.
36347         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
36348
36349         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
36350         operand 0 in order to prevent confusion about the number of
36351         registers involved.
36352
36353 2014-05-20  Richard Biener  <rguenther@suse.de>
36354
36355         PR tree-optimization/61221
36356         * tree-ssa-pre.c (el_to_update): Remove.
36357         (eliminate_dom_walker::before_dom_children): Handle released
36358         VDEFs by value-numbering them to the associated VUSE.  Update
36359         stmt immediately for substituted call address.
36360         (eliminate): Remove delayed stmt updating code.
36361         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
36362         possibly late re-numbered vuses.
36363         (vn_reference_lookup_2): Adjust.
36364         (vn_reference_lookup_pieces): Likewise.
36365         (vn_reference_lookup): Likewise.
36366
36367 2014-05-20  Richard Biener  <rguenther@suse.de>
36368
36369         * config.gcc: Remove need_64bit_hwint.
36370         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
36371         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
36372         it to be true.
36373         * config.in: Regenerate.
36374         * configure: Likewise.
36375
36376 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
36377
36378         * doc/extend.texi: Create Label Attributes section,
36379         move all label attributes into it and reference it.
36380
36381 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
36382
36383         * arm.c (thumb1_reorg): When scanning backwards skip anything
36384         that's not a proper insn.
36385
36386 2014-05-19  Richard Biener  <rguenther@suse.de>
36387
36388         PR tree-optimization/61221
36389         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
36390         Do nothing for unreachable blocks.
36391         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
36392         Improve unreachability detection.
36393
36394 2014-05-19  Richard Biener  <rguenther@suse.de>
36395
36396         PR tree-optimization/61209
36397         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
36398
36399 2014-05-19  Nick Clifton  <nickc@redhat.com>
36400
36401         * except.c (init_eh): Fix computation of builtin setjmp buffer
36402         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
36403
36404 2014-05-19  Richard Biener  <rguenther@suse.de>
36405
36406         PR tree-optimization/61184
36407         * tree-vrp.c (is_negative_overflow_infinity): Use
36408         TREE_OVERFLOW_P and do that check first.
36409         (is_positive_overflow_infinity): Likewise.
36410         (is_overflow_infinity): Likewise.
36411         (vrp_operand_equal_p): Properly treat operands with
36412         differing overflow as not equal.
36413
36414 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
36415
36416         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
36417         shift simplification where it was intended.
36418
36419 2014-05-19  Christian Bruel  <christian.bruel@st.com>
36420
36421         PR target/61195
36422         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
36423
36424 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
36425
36426         PR target/61084
36427         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
36428         than wide_int.
36429
36430 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
36431
36432         * reg-notes.def (CROSSING_JUMP): Likewise.
36433         * rtl.h (rtx_def): Update comment for jump flag.
36434         (CROSSING_JUMP_P): Define.
36435         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
36436         of a REG_CROSSING_JUMP note.
36437         * cfghooks.c (tidy_fallthru_edges): Likewise.
36438         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
36439         * emit-rtl.c (try_split): Likewise.
36440         * haifa-sched.c (sched_create_recovery_edges): Likewise.
36441         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
36442         * jump.c (redirect_jump_2): Likewise.
36443         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
36444         (relax_delay_slots): Likewise.
36445         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
36446         (bbit_di): Likewise.
36447         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
36448         * config/sh/sh.md (jump_compact): Likewise.
36449         * bb-reorder.c (rotate_loop): Likewise.
36450         (pass_duplicate_computed_gotos::execute): Likewise.
36451         (add_reg_crossing_jump_notes): Rename to...
36452         (update_crossing_jump_flags): ...this.
36453         (pass_partition_blocks::execute): Update accordingly.
36454
36455 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
36456
36457         * tree.h: Remove extraneous template <>.
36458
36459 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
36460
36461         * ipa.c (symtab_remove_unreachable_nodes): Remove
36462         symbol from comdat group if its body was eliminated.
36463         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
36464         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
36465         (symtab_unregister_node): ... this one.
36466         (verify_symtab_base): More strict checking of comdats.
36467         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
36468
36469 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
36470
36471         * tree-pass.h (make_pass_ipa_comdats): New pass.
36472         * timevar.def (TV_IPA_COMDATS): New timevar.
36473         * passes.def (pass_ipa_comdats): Add.
36474         * Makefile.in (OBJS): Add ipa-comdats.o
36475         * ipa-comdats.c: New file.
36476
36477 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
36478
36479         * ipa.c (update_visibility_by_resolution_info): New function.
36480         (function_and_variable_visibility): Use it.
36481
36482 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
36483
36484         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
36485         New functions.
36486         (FOR_EACH_DEFINED_SYMBOL): New macro.
36487         (varpool_first_static_initializer, varpool_next_static_initializer,
36488         varpool_first_defined_variable, varpool_next_defined_variable):
36489         Fix comments.
36490         (symtab_in_same_comdat_p): Correctly deal with inline functions.
36491
36492 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36493
36494         * ggc-page.c (ggc_handle_finalizers): Add comment.
36495
36496 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36497
36498         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
36499         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
36500         (ggc_internal_cleared_alloc): Likewise.
36501         * ggc-page.c (finalizer): New class.
36502         (vec_finalizer): Likewise.
36503         (globals::finalizers): New member.
36504         (globals::vec_finalizers): Likewise.
36505         (ggc_internal_alloc): Record the finalizer if any for the block being
36506         allocated.
36507         (ggc_handle_finalizers): New function.
36508         (ggc_collect): Call ggc_handle_finalizers.
36509         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
36510         finalizer.
36511         (ggc_internal_cleared_alloc): Likewise.
36512         (finalize): New function.
36513         (need_finalization_p): Likewise.
36514         (ggc_alloc): Install the type's destructor as the finalizer if it
36515         might do something.
36516         (ggc_cleared_alloc): Likewise.
36517         (ggc_vec_alloc): Likewise.
36518         (ggc_cleared_vec_alloc): Likewise.
36519
36520 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36521
36522         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
36523
36524 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36525
36526         * alias.c (record_alias_subset): Adjust.
36527         * bitmap.c (bitmap_element_allocate): Likewise.
36528         (bitmap_gc_alloc_stat): Likewise.
36529         * cfg.c (init_flow): Likewise.
36530         (alloc_block): Likewise.
36531         (unchecked_make_edge): Likewise.
36532         * cfgloop.c (alloc_loop): Likewise.
36533         (flow_loops_find): Likewise.
36534         (rescan_loop_exit): Likewise.
36535         * cfgrtl.c (init_rtl_bb_info): Likewise.
36536         * cgraph.c (insert_new_cgraph_node_version): Likewise.
36537         (cgraph_allocate_node): Likewise.
36538         (cgraph_create_edge_1): Likewise.
36539         (cgraph_allocate_init_indirect_info): Likewise.
36540         * cgraphclones.c (cgraph_clone_edge): Likewise.
36541         * cgraphunit.c (add_asm_node): Likewise.
36542         (init_lowered_empty_function): Likewise.
36543         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
36544         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
36545         (alpha_use_linkage): Likewise.
36546         * config/arc/arc.c (arc_init_machine_status): Likewise.
36547         * config/arm/arm.c (arm_init_machine_status): Likewise.
36548         * config/avr/avr.c (avr_init_machine_status): Likewise.
36549         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
36550         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
36551         * config/cris/cris.c (cris_init_machine_status): Likewise.
36552         * config/darwin.c (machopic_indirection_name): Likewise.
36553         (darwin_build_constant_cfstring): Likewise.
36554         (darwin_enter_string_into_cfstring_table): Likewise.
36555         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
36556         * config/frv/frv.c (frv_init_machine_status): Likewise.
36557         * config/i386/i386.c (get_dllimport_decl): Likewise.
36558         (ix86_init_machine_status): Likewise.
36559         (assign_386_stack_local): Likewise.
36560         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
36561         (i386_pe_maybe_record_exported_symbol): Likewise.
36562         (i386_pe_record_stub): Likewise.
36563         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
36564         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
36565         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
36566         (m32c_note_pragma_address): Likewise.
36567         * config/mep/mep.c (mep_init_machine_status): Likewise.
36568         (mep_note_pragma_flag): Likewise.
36569         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
36570         (mips16_local_alias): Likewise.
36571         (mips_init_machine_status): Likewise.
36572         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
36573         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
36574         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
36575         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
36576         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
36577         * config/pa/pa.c (pa_init_machine_status): Likewise.
36578         (pa_get_deferred_plabel): Likewise.
36579         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
36580         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
36581         (rs6000_init_machine_status): Likewise.
36582         (output_toc): Likewise.
36583         * config/s390/s390.c (s390_init_machine_status): Likewise.
36584         * config/score/score.c (score_output_external): Likewise.
36585         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
36586         * config/spu/spu.c (spu_init_machine_status): Likewise.
36587         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
36588         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
36589         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
36590         * coverage.c (coverage_end_function): Likewise.
36591         * dbxout.c (dbxout_init): Likewise.
36592         * doc/gty.texi: Don't mention variable_size attribute.
36593         * dwarf2cfi.c (new_cfi): Adjust.
36594         (new_cfi_row): Likewise.
36595         (copy_cfi_row): Likewise.
36596         (create_cie_data): Likewise.
36597         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
36598         (new_loc_descr): Likewise.
36599         (find_AT_string_in_table): Likewise.
36600         (add_addr_table_entry): Likewise.
36601         (new_die): Likewise.
36602         (add_var_loc_to_decl): Likewise.
36603         (clone_die): Likewise.
36604         (clone_as_declaration): Likewise.
36605         (break_out_comdat_types): Likewise.
36606         (new_loc_list): Likewise.
36607         (add_loc_descr_to_each): Likewise.
36608         (add_location_or_const_value_attribute): Likewise.
36609         (add_linkage_name): Likewise.
36610         (lookup_filename): Likewise.
36611         (dwarf2out_var_location): Likewise.
36612         (new_line_info_table): Likewise.
36613         (dwarf2out_init): Likewise.
36614         (mem_loc_descriptor): Likewise.
36615         (loc_descriptor): Likewise.
36616         (add_const_value_attribute): Likewise.
36617         (tree_add_const_value_attribute): Likewise.
36618         (comp_dir_string): Likewise.
36619         (dwarf2out_vms_debug_main_pointer): Likewise.
36620         (string_cst_pool_decl): Likewise.
36621         * emit-rtl.c (set_mem_attrs): Likewise.
36622         (get_reg_attrs): Likewise.
36623         (start_sequence): Likewise.
36624         (init_emit): Likewise.
36625         (init_emit_regs): Likewise.
36626         * except.c (init_eh_for_function): Likewise.
36627         (gen_eh_region): Likewise.
36628         (gen_eh_region_catch): Likewise.
36629         (gen_eh_landing_pad): Likewise.
36630         (add_call_site): Likewise.
36631         * function.c (add_frame_space): Likewise.
36632         (insert_temp_slot_address): Likewise.
36633         (assign_stack_temp_for_type): Likewise.
36634         (get_hard_reg_initial_val): Likewise.
36635         (allocate_struct_function): Likewise.
36636         (prepare_function_start): Likewise.
36637         (types_used_by_var_decl_insert): Likewise.
36638         * gengtype.c (variable_size_p): Remove function.
36639         (enum alloc_quantity): Remove enum.
36640         (write_typed_alloc_def): Remove function.
36641         (write_typed_struct_alloc_def): Likewise.
36642         (write_typed_typedef_alloc_def): Likewise.
36643         (write_typed_alloc_defns): Likewise.
36644         (main): Adjust.
36645         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
36646         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
36647         * ggc.h (ggc_alloc): new function.
36648         (ggc_cleared_alloc): Likewise.
36649         (ggc_vec_alloc): Template on type of vector element, and remove
36650         element size argument.
36651         (ggc_cleared_vec_alloc): Likewise.
36652         * gimple.c (gimple_build_omp_for): Adjust.
36653         (gimple_copy): Likewise.
36654         * ipa-cp.c (get_replacement_map): Likewise.
36655         (find_aggregate_values_for_callers_subset): Likewise.
36656         (known_aggs_to_agg_replacement_list): Likewise.
36657         * ipa-devirt.c (get_odr_type): Likewise.
36658         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
36659         (read_agg_replacement_chain): Likewise.
36660         * loop-iv.c (get_simple_loop_desc): Likewise.
36661         * lto-cgraph.c (input_node_opt_summary): Likewise.
36662         * lto-section-in.c (lto_new_in_decl_state): Likewise.
36663         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
36664         (input_eh_region): Likewise.
36665         (input_eh_lp): Likewise.
36666         (input_cfg): Likewise.
36667         * optabs.c (set_optab_libfunc): Likewise.
36668         (init_tree_optimization_optabs): Likewise.
36669         (set_conv_libfunc): Likewise.
36670         * passes.c (do_per_function_toporder): Likewise.
36671         * rtl.h: Don't use variable_size gty attribute.
36672         * sese.c (if_region_set_false_region): Adjust.
36673         * stringpool.c (gt_pch_save_stringpool): Likewise.
36674         * target-globals.c (save_target_globals): Likewise.
36675         * toplev.c (general_init): Likewise.
36676         * trans-mem.c (record_tm_replacement): Likewise.
36677         (split_bb_make_tm_edge): Likewise.
36678         * tree-cfg.c (move_sese_region_to_fn): Likewise.
36679         * tree-data-ref.h (lambda_vector_new): Likewise.
36680         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
36681         * tree-iterator.c (tsi_link_before): Likewise.
36682         (tsi_link_after): Likewise.
36683         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
36684         * tree-ssa-loop-niter.c (record_estimate): Likewise.
36685         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
36686         * tree-ssa-operands.h: Don't use variable_size gty attribute.
36687         * tree-ssa.c (init_tree_ssa): Adjust.
36688         * tree-ssanames.c (set_range_info): Likewise.
36689         (get_ptr_info): Likewise.
36690         (duplicate_ssa_name_ptr_info): Likewise.
36691         (duplicate_ssa_name_range_info): Likewise.
36692         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
36693         (unpack_ts_fixed_cst_value_fields): Likewise.
36694         * tree.c (build_fixed): Likewise.
36695         (build_real): Likewise.
36696         (build_string): Likewise.
36697         (decl_priority_info): Likewise.
36698         (decl_debug_expr_insert): Likewise.
36699         (decl_value_expr_insert): Likewise.
36700         (decl_debug_args_insert): Likewise.
36701         (type_hash_add): Likewise.
36702         (build_omp_clause): Likewise.
36703         * ubsan.c (decl_for_type_insert): Likewise.
36704         * varasm.c (get_unnamed_section): Likewise.
36705         (get_noswitch_section): Likewise.
36706         (get_section): Likewise.
36707         (get_block_for_section): Likewise.
36708         (create_block_symbol): Likewise.
36709         (build_constant_desc): Likewise.
36710         (create_constant_pool): Likewise.
36711         (force_const_mem): Likewise.
36712         (record_tm_clone_pair): Likewise.
36713         * varpool.c (varpool_create_empty_node): Likewise.
36714
36715 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36716
36717         * dwarf2out.c (tree_add_const_value_attribute): Call
36718         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
36719         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
36720         instead of ggc_internal_<x>alloc_stat.
36721         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
36722         (ggc_realloc): Likewise.
36723         * ggc-none.c (ggc_internal_alloc): Likewise.
36724         (ggc_internal_cleared_alloc): Likewise.
36725         * ggc-page.c: Likewise.
36726         * ggc.h (ggc_internal_alloc_stat): Likewise.
36727         (ggc_internal_alloc): Remove macro.
36728         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
36729         (ggc_internal_cleared_alloc): Remove macro.
36730         (GGC_RESIZEVEC): Adjust.
36731         (ggc_resizevar): Remove macro.
36732         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
36733         (ggc_internal_cleared_vec_alloc_stat): Likewise.
36734         (ggc_internal_vec_cleared_alloc): Remove macro.
36735         (ggc_alloc_atomic_stat): Drop _stat suffix.
36736         (ggc_alloc_atomic): Remove macro.
36737         (ggc_alloc_cleared_atomic): Remove macro.
36738         (ggc_alloc_string_stat): Drop _stat suffix.
36739         (ggc_alloc_string): Remove macro.
36740         (ggc_alloc_rtx_def_stat): Adjust.
36741         (ggc_alloc_tree_node_stat): Likewise.
36742         (ggc_alloc_cleared_tree_node_stat): Likewise.
36743         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
36744         (ggc_alloc_cleared_simd_clone_stat): Likewise.
36745         * gimple.c (gimple_build_omp_for): Likewise.
36746         (gimple_copy): Likewise.
36747         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
36748         * toplev.c (realloc_for_line_map): Adjust.
36749         * tree-data-ref.h (lambda_vector_new): Likewise.
36750         * tree-phinodes.c (allocate_phi_node): Likewise.
36751         * tree.c (grow_tree_vec_stat): Likewise.
36752         * vec.h (va_gc::reserve): Adjust.
36753
36754 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
36755
36756         * config/microblaze/microblaze.c (break_handler): New Declaration.
36757         (microblaze_break_function_p,microblaze_is_break_handler): New.
36758         (compute_frame_size): Use microblaze_break_function_p.
36759         Add the test of break_handler.
36760         (microblaze_function_prologue) : Add the test of variable
36761         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
36762         (microblaze_function_epilogue) : Add the test of break_handler.
36763         (microblaze_globalize_label) : Add the test of break_handler.
36764         Check the name by BREAK_HANDLER_NAME.
36765
36766         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
36767
36768         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
36769         microblaze_is_break_handler test.
36770         (call_internal1,call_value_intern): Use microblaze_break_function_p.
36771         Use SYMBOL_REF_DECL.
36772
36773         * config/microblaze/microblaze-protos.h
36774         (microblaze_break_function_p,microblaze_is_break_handler):
36775         New Declaration.
36776
36777         * doc/extend.texi (MicroBlaze break_handler Functions): Document
36778         new MicroBlaze break_handler functions.
36779
36780 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
36781
36782         * doc/extend.texi (Size of an asm): Move node text according
36783         to its @menu entry position.
36784
36785 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
36786
36787         PR tree-optimization/61140
36788         PR tree-optimization/61150
36789         PR tree-optimization/61197
36790         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
36791
36792 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
36793
36794         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
36795
36796 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
36797
36798         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
36799         __SIZEOF_INT128__ is defined.
36800
36801 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
36802
36803         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
36804         (rs6000_delegitimize_address): Use it.
36805
36806 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
36807
36808         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
36809         inplace argument.  Store the new address in the original MEM when true.
36810         * emit-rtl.c (change_address_1): Likewise.
36811         (adjust_address_1, adjust_automodify_address_1, offset_address):
36812         Update accordingly.
36813         * rtl.h (plus_constant): Add an inplace argument.
36814         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
36815         when true.  Avoid generating (plus X (const_int 0)).
36816         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
36817         in-place.  Pass true to plus_constant.
36818         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
36819
36820 2014-05-16  Dehao Chen  <dehao@google.com>
36821
36822         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
36823
36824 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
36825
36826         PR target/54089
36827         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
36828         patterns.
36829         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
36830
36831 2014-05-16  Dehao Chen  <dehao@google.com>
36832
36833         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
36834         optimize_function_for_size_p.
36835         * regs.h (REG_FREQ_FROM_BB): Likewise.
36836
36837 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
36838
36839         PR target/51244
36840         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
36841         negt_reg_operand cases.
36842         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
36843         predicate.
36844         * config/sh/predicates.md (cbranch_treg_value): Simplify.
36845
36846 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
36847
36848         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
36849         target variants.
36850
36851 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
36852
36853         Revert:
36854         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
36855
36856         * tree-cfg.c (dump_function_to_file): Dump the return type of
36857         functions, in a line to itself before the function body, mimicking
36858         the layout of a C function.
36859
36860 2014-05-16  Dehao Chen  <dehao@google.com>
36861
36862         * cfghooks.c (make_forwarder_block): Use direct computation to
36863         get fall-through edge's count and frequency.
36864
36865 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
36866
36867         * config/arc/arc.c (arc_init): Fix typo in error message.
36868         * config/i386/i386.c (ix86_expand_builtin): Likewise.
36869         (split_stack_prologue_scratch_regno): Likewise.
36870         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
36871         word from error message.
36872
36873 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36874
36875         * ira-costs.c: Fix typo in comment.
36876
36877 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
36878
36879         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
36880
36881 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
36882
36883         * varpool.c (dump_varpool_node): Dump write-only flag.
36884         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
36885         write-only flag.
36886         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
36887         write-only variables.
36888         * ipa.c (process_references): New function.
36889         (set_readonly_bit): New function.
36890         (set_writeonly_bit): New function.
36891         (clear_addressable_bit): New function.
36892         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
36893         fix handling of aliases.
36894         * cgraph.h (struct varpool_node): Add writeonly flag.
36895
36896 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
36897
36898         PR rtl-optimization/60969
36899         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
36900         Calculate costs for this case.
36901
36902 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
36903
36904         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
36905         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
36906
36907 2014-05-16  Richard Biener  <rguenther@suse.de>
36908
36909         PR tree-optimization/61194
36910         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
36911         bool patterns ending in a COND_EXPR.
36912
36913 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36914
36915         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
36916
36917 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36918
36919         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
36920         where we were unable to cost an RTX.
36921
36922 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36923
36924         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
36925         HIGH, LO_SUM.
36926
36927 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36928             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36929
36930         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
36931
36932 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36933             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36934
36935         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
36936         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
36937
36938 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36939             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36940
36941         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
36942         operators.
36943
36944 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36945             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36946
36947         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
36948         DIV/MOD.
36949
36950 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36951             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36952
36953         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
36954         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
36955
36956 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36957             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36958
36959         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
36960         rotates and shifts.
36961
36962 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36963             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36964
36965         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
36966         ZERO_EXTEND and SIGN_EXTEND better.
36967
36968 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36969             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36970
36971         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
36972         logical operations.
36973
36974 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36975             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36976
36977         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
36978         costs when costing loads and stores to memory.
36979
36980 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36981             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
36982
36983         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
36984         for SET RTX.
36985
36986 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36987
36988         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
36989
36990 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36991             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36992
36993         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
36994         to...
36995         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
36996         well formed.
36997         (aarch64_rtx_mult_cost): New.
36998         (aarch64_rtx_costs): Use it, refactor as appropriate.
36999
37000 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
37001             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
37002
37003         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
37004         emit instructions, return number of instructions which would
37005         be emitted.
37006         (aarch64_add_constant): Update call to aarch64_build_constant.
37007         (aarch64_output_mi_thunk): Likewise.
37008         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
37009         a CONST_DOUBLE.
37010
37011 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
37012
37013         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
37014         (TARGET_RTX_COSTS): Call it.
37015
37016 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
37017
37018         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
37019         (cortexa57_vector_cost): Likewise.
37020         (cortexa57_tunings): Use them.
37021
37022 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
37023
37024         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
37025         (cpu_addrcost_table): Use it.
37026         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
37027         (aarch64_address_cost): Rewrite using aarch64_classify_address,
37028         move it.
37029
37030 2014-05-16  Richard Biener  <rguenther@suse.de>
37031
37032         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
37033         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
37034         (visit_phi): Ignore edges marked as not executable.
37035         (class cond_dom_walker): New.
37036         (cond_dom_walker::before_dom_children): Value-number
37037         control statements and mark successor edges as not
37038         executable if possible.
37039         (run_scc_vn): First walk all control statements in
37040         dominator order, marking edges as not executable.
37041         * tree-inline.c (copy_edges_for_bb): Be not confused
37042         about random edge flags.
37043
37044 2014-05-16  Richard Biener  <rguenther@suse.de>
37045
37046         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
37047
37048 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
37049
37050         PR target/61193
37051         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
37052         (__TM_simple_begin): Use it.
37053         (__TM_begin): Likewise.
37054
37055 2014-05-15  Martin Jambor  <mjambor@suse.cz>
37056
37057         PR ipa/61085
37058         * ipa-prop.c (update_indirect_edges_after_inlining): Check
37059         type_preserved flag when the indirect edge is polymorphic.
37060
37061 2014-05-15  Martin Jambor  <mjambor@suse.cz>
37062
37063         PR tree-optimization/61090
37064         * tree-sra.c (sra_modify_expr): Pass the current gsi to
37065         build_ref_for_model.
37066
37067 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37068
37069         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
37070         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
37071
37072 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
37073
37074         PR tree-optimization/61158
37075         * fold-const.c (fold_binary_loc): If X is zero-extended and
37076         shiftc >= prec, make sure zerobits is all ones instead of
37077         invoking undefined behavior.
37078
37079 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
37080
37081         * regcprop.h: New file.
37082         * regcprop.c (skip_debug_insn_p): New decl.
37083         (replace_oldest_value_reg): Check skip_debug_insn_p.
37084         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
37085         * shrink-wrap.c: Include regcprop.h.
37086         (prepare_shrink_wrap): Call
37087         copyprop_hardreg_forward_bb_without_debug_insn.
37088
37089 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
37090
37091         * shrink-wrap.h: Update comment.
37092         * shrink-wrap.c: Update comment.
37093         (next_block_for_reg): Rename to live_edge_for_reg.
37094         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
37095         (move_insn_for_shrink_wrap): Split live_edge.
37096         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
37097
37098 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
37099
37100         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
37101         Delete.
37102         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
37103         * config/sparc/sparc.md (fptype_ut699): New attribute.
37104         (in_branch_delay): Return false if -mfix-ut699 is specified and
37105         fptype_ut699 is set to single.
37106         (truncdfsf2): Add fptype_ut699 attribute.
37107         (fix_truncdfsi2): Likewise.
37108         (floatsisf2): Change fptype attribute.
37109         (fix_truncsfsi2): Likewise.
37110         (negtf2_notv9): Delete.
37111         (negtf2_v9): Likewise.
37112         (negtf2_hq): New instruction.
37113         (negtf2): New instruction and splitter.
37114         (negdf2_notv9): Rewrite.
37115         (abstf2_notv9): Delete.
37116         (abstf2_hq_v9): Likewise.
37117         (abstf2_v9): Likewise.
37118         (abstf2_hq): New instruction.
37119         (abstf2): New instruction and splitter.
37120         (absdf2_notv9): Rewrite.
37121
37122 2014-05-14  Cary Coutant  <ccoutant@google.com>
37123
37124         PR debug/61013
37125         * opts.c (common_handle_option): Don't special-case "-g".
37126         (set_debug_level): Default to at least level 2 with "-g".
37127
37128 2014-05-14  DJ Delorie  <dj@redhat.com>
37129
37130         * config/msp430/msp430.c (msp430_builtin): Add
37131         MSP430_BUILTIN_DELAY_CYCLES.
37132         (msp430_init_builtins): Register void __delay_cycles(long long).
37133         (msp430_builtin_decl): Add it.
37134         (cg_magic_constant): New.
37135         (msp430_expand_delay_cycles): New.
37136         (msp430_expand_builtin): Call it.
37137         (msp430_print_operand_raw): Change integer printing from "int" to
37138         HOST_WIDE_INT.
37139         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
37140         (delay_cycles_start): New.
37141         (delay_cycles_end): New.
37142         (delay_cycles_32): New.
37143         (delay_cycles_32x): New.
37144         (delay_cycles_16): New.
37145         (delay_cycles_16x): New.
37146         (delay_cycles_2): New.
37147         (delay_cycles_1): New.
37148         * doc/extend.texi: Document __delay_cycles().
37149
37150 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
37151
37152         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
37153         length attribute computation.
37154
37155 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
37156
37157         PR debug/61188
37158         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
37159
37160 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
37161
37162         PR target/61084
37163         * config/sparc/sparc.md: Fix types of low and high in DI constant
37164         splitter.  Use gen_int_mode in some other splitters.
37165
37166 2014-05-14  Martin Jambor  <mjambor@suse.cz>
37167
37168         PR ipa/60897
37169         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
37170
37171 2014-05-14  James Norris  <jnorris@codesourcery.com>
37172
37173         * omp-low.c (expand_parallel_call): Remove shadow variable.
37174         (expand_omp_taskreg): Likewise.
37175
37176 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
37177
37178         * common/config/i386/i386-common.c
37179         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
37180         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
37181         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
37182         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
37183         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
37184         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
37185         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
37186         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
37187         xsavecintrin.h, xsavesintrin.h.
37188         (x86_64-*-*): Ditto.
37189         * config/i386/clflushoptintrin.h: New.
37190         * config/i386/xsavecintrin.h: Ditto.
37191         * config/i386/xsavesintrin.h: Ditto.
37192         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
37193         (bit_XSAVES): Ditto.
37194         (bit_XSAVES): Ditto.
37195         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
37196         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
37197         -mno-clflushopt.
37198         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
37199         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
37200         OPTION_MASK_ISA_XSAVES.
37201         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
37202         -mxsavec, -mxsaves.
37203         (PTA_CLFLUSHOPT) Define.
37204         (PTA_XSAVEC): Ditto.
37205         (PTA_XSAVES): Ditto.
37206         (ix86_option_override_internal): Handle new options.
37207         (ix86_valid_target_attribute_inner_p): Ditto.
37208         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
37209         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
37210         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
37211         (bdesc_special_args): Add __builtin_ia32_xsaves,
37212         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
37213         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
37214         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
37215         (ix86_expand_builtin): Handle new builtins.
37216         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
37217         (TARGET_CLFLUSHOPT_P): Ditto.
37218         (TARGET_XSAVEC): Ditto.
37219         (TARGET_XSAVEC_P): Ditto.
37220         (TARGET_XSAVES): Ditto.
37221         (TARGET_XSAVES_P): Ditto.
37222         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
37223         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
37224         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
37225         (ANY_XRSTOR): New.
37226         (ANY_XRSTOR64): Ditto.
37227         (xrstor): Ditto.
37228         (xrstor): Change into <xrstor>.
37229         (xrstor_rex64): Change into <xrstor>_rex64.
37230         (xrstor64): Change into <xrstor>64
37231         (clflushopt): New.
37232         * config/i386/i386.opt (mclflushopt): New.
37233         (mxsavec): Ditto.
37234         (mxsaves): Ditto.
37235         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
37236         xsavecintrin.h.
37237         * doc/invoke.texi: Document new options.
37238
37239 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
37240
37241         PR rtl-optimization/60866
37242         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
37243         Default it to -1.  Pass it down to init_simplejump_data.
37244         (init_simplejump_data): New parameter old_seqno.  Pass it down
37245         to get_seqno_for_a_jump.
37246         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
37247         initializing new jump seqno as a last resort.  Add comment.
37248         (sel_redirect_edge_and_branch): Save old seqno of the conditional
37249         jump and pass it down to sel_init_new_insn.
37250         (sel_redirect_edge_and_branch_force): Likewise.
37251
37252 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
37253
37254         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
37255         shifted values to avoid build warning.
37256
37257 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
37258
37259         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
37260         * cfgrtl.c (rtl_merge_blocks): Fix comment.
37261         (cfg_layout_merge_blocks): Likewise.
37262         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
37263
37264 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
37265
37266         PR rtl-optimization/60901
37267         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
37268         bb predecessor belongs to the same scheduling region.  Adjust comment.
37269
37270 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
37271
37272         * doc/sourcebuild.texi: (dfp_hw): Document.
37273         (p8vector_hw): Likewise.
37274         (powerpc_eabi_ok): Likewise.
37275         (powerpc_elfv2): Likewise.
37276         (powerpc_htm_ok): Likewise.
37277         (ppc_recip_hw): Likewise.
37278         (vsx_hw): Likewise.
37279
37280 2014-05-13  Cary Coutant  <ccoutant@google.com>
37281
37282         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
37283
37284 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
37285
37286         * gengtype-parse.c (require3): Eliminate in favor of...
37287         (require4): New.
37288         (require_template_declaration): Update to support optional single *
37289         on a type.
37290
37291         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
37292         (create_user_defined_type): Handle a single level of explicit
37293         pointerness within template arguments.
37294         (struct write_types_data): Add field "kind".
37295         (filter_type_name): Handle "*" character.
37296         (write_user_func_for_structure_ptr): Require a write_types_data
37297         rather than just a prefix string, so that we can look up the kind
37298         of the wtd and use it as an index into wrote_user_func_for_ptr,
37299         ensuring that such functions are written at most once.  Support
37300         subclasses by invoking the marking function of the ultimate base class.
37301         (write_user_func_for_structure_body): Require a write_types_data
37302         rather than just a prefix string, so that we can pass this to
37303         write_user_func_for_structure_ptr.
37304         (write_func_for_structure): Likewise.
37305         (ggc_wtd): Add initializer of new "kind" field.
37306         (pch_wtd): Likewise.
37307
37308         * gengtype.h (enum write_types_kinds): New.
37309         (struct type): Add field wrote_user_func_for_ptr to the "s"
37310         union member.
37311
37312 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
37313
37314         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
37315         instead of const_binop.
37316         (fold_binary_loc): Likewise.
37317
37318 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
37319
37320         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
37321         calculation to match get_ref_base_and_extent.
37322
37323 2014-05-13  Catherine Moore  <clm@codesourcery.com>
37324             Sandra Loosemore  <sandra@codesourcery.com>
37325
37326         * configure.ac: Fix assembly for explicit JALR relocation check.
37327         * configure: Regenerate.
37328
37329 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37330
37331         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
37332         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
37333         Remove associated type declarations and initialisations.
37334         (arm_expand_neon_builtin): Likewise.
37335         (neon_emit_pair_result_insn): Delete.
37336         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
37337         * config/arm/neon.md (neon_vtrn<mode>): Delete.
37338         (neon_vzip<mode>): Likewise.
37339         (neon_vuzp<mode>): Likewise.
37340
37341 2014-05-13  Richard Biener  <rguenther@suse.de>
37342
37343         PR ipa/60973
37344         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
37345         it needs revisiting whether the call still may be tail-called.
37346
37347 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37348
37349         * rtl.def (SYMBOL_REF): Remove middle "0" field.
37350         * rtl.h (block_symbol): Reduce number of fields to 2.
37351         (rtx_def): Add u2.symbol_ref_flags.
37352         (SYMBOL_REF_FLAGS): Use it.
37353         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
37354         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
37355         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
37356         Lower index of SYMBOL_REF_DATA.
37357         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
37358         Print SYMBOL_REF_FLAGS at the same time.
37359         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
37360
37361 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37362
37363         * rtl.def (VAR_LOCATION): Remove "i" field.
37364         * rtl.h (rtx_def): Add u2.var_location_status.
37365         (PAT_VAR_LOCATION_STATUS): Use it.
37366         (gen_rtx_VAR_LOCATION): Declare.
37367         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
37368         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
37369         * var-tracking.c (emit_note_insn_var_location): Remove casts.
37370
37371 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37372
37373         * rtl.def (scratch): Fix outdated comment and remove "0" field.
37374         * gengtype.c (adjust_field_rtx_def): Update accordingly.
37375
37376 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37377
37378         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
37379         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
37380         * rtl.h (rtx_def): Add insn_uid to u2 field.
37381         (RTX_FLAG_CHECK8): Delete in favor of...
37382         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
37383         (INSN_DELETED_P): Update accordingly.
37384         (INSN_UID): Use u2.insn_uid.
37385         (INSN_CHAIN_CODE_P): Define.
37386         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
37387         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
37388         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
37389         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
37390         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
37391         indices accordingly.
37392         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
37393         Update indices for insn-chain rtxes.
37394         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
37395         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
37396         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
37397         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
37398         * combine.c (try_combine): Likewise.
37399         * ira.c (setup_prohibited_mode_move_regs): Likewise.
37400
37401 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37402
37403         * rtl.def (REG): Remove middle field.
37404         * rtl.h (rtx_def): Add orignal_regno to u2.
37405         (ORIGINAL_REGNO): Use it instead of field 1.
37406         (REG_ATTRS): Lower field index accordingly.
37407         * gengtype.c (adjust_field_rtx_def): Remove handling of
37408         ORIGINAL_REGNO.  Move REG_ATTRS index down.
37409         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
37410         code that prints the REGNO.
37411
37412 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37413
37414         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
37415         GENERATOR_FILE.
37416
37417 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37418
37419         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
37420
37421 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
37422
37423         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
37424         (alloc_iv): Lower base expressions containing ADDR_EXPR.
37425
37426 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
37427
37428         * config/aarch64/aarch64-protos.h
37429         (aarch64_hard_regno_caller_save_mode): New prototype.
37430         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
37431         New function.
37432         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
37433
37434 2014-05-13  Christian Bruel  <christian.bruel@st.com>
37435
37436         * target.def (mode_switching): New hook vector.
37437         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
37438         (mode_exit, modepriority_to_mode): Likewise.
37439         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
37440         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
37441         * target.h: Include tm.h and hard-reg-set.h.
37442         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
37443         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
37444         * doc/tm.texi Regenerate.
37445         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
37446         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
37447         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
37448         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
37449         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
37450         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
37451         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
37452         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
37453         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
37454         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
37455         (ix86_emit_mode_set): Hookify.
37456         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
37457         Delete.
37458         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
37459         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
37460         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
37461         (epiphany_mode_priority_to_mode): Remove declaration.
37462         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
37463         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
37464         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
37465         Likewise.
37466         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
37467         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
37468         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
37469
37470 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
37471
37472         PR target/61060
37473         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
37474         is const0_rtx, return immediately.  Don't test count == 0 when
37475         it is always true.
37476
37477 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
37478
37479         * Makefile.in: add shrink-wrap.o.
37480         * config/i386/i386.c: include "shrink-wrap.h"
37481         * function.c: Likewise.
37482         (requires_stack_frame_p, next_block_for_reg,
37483         move_insn_for_shrink_wrap, prepare_shrink_wrap,
37484         dup_block_and_redirect): Move to shrink-wrap.c
37485         (thread_prologue_and_epilogue_insns): Extract three code segments
37486         as functions in shrink-wrap.c
37487         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
37488         shrink-wrap.h
37489         * shrink-wrap.c: New file.
37490         * shrink-wrap.h: New file.
37491
37492 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
37493
37494         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
37495         reference to Solaris.
37496
37497 2014-05-12  Mike Stump  <mikestump@comcast.net>
37498
37499         PR other/31778
37500         * genattrtab.c (filename): Add.
37501         (convert_set_attr_alternative): Improve error message.
37502         (check_defs): Restore read_md_filename for error messages.
37503         (gen_insn): Save filename.
37504
37505 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
37506
37507         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
37508         -fno-local-ivars and -fivar-visibility.
37509         * c-family/c.opt: Make -Wshadow also implicitly enable
37510         -Wshadow-ivar.
37511
37512 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
37513
37514         * doc/tm.texi: Remove reference to deleted macro.
37515         * doc/tm.texi.in: Likewise.
37516
37517 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
37518
37519         PR target/60991
37520         * config/avr/avr.c (avr_out_store_psi): Use correct constant
37521         to restore Y.
37522
37523 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
37524
37525         PR libgcc/61152
37526         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
37527         * config/arm/aout.h (License): Same.
37528         * config/arm/bpabi.h (License): Same.
37529         * config/arm/elf.h (License): Same.
37530         * config/arm/linux-elf.h (License): Same.
37531         * config/arm/linux-gas.h (License): Same.
37532         * config/arm/netbsd-elf.h (License): Same.
37533         * config/arm/uclinux-eabi.h (License): Same.
37534         * config/arm/uclinux-elf.h (License): Same.
37535         * config/arm/vxworks.h (License): Same.
37536
37537 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
37538
37539         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
37540         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
37541         number of operands to 3.
37542         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
37543         * tree-nested.c (convert_nonlocal_omp_clauses,
37544         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
37545         * gimplify.c (gimplify_scan_omp_clauses): Handle
37546         OMP_CLAUSE_LINEAR_STMT.
37547         * omp-low.c (lower_rec_input_clauses): Fix typo.
37548         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
37549         cast between Fortran boolean_type_node and C _Bool if
37550         needed.
37551
37552 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
37553
37554         PR tree-optimization/61136
37555         * wide-int.h (multiple_of_p): Define a version that doesn't return
37556         the quotient.
37557         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
37558         integer_zerop/const_binop pair.
37559         (multiple_of_p): Likewise, converting both operands to widest_int
37560         precision.
37561
37562 2014-05-09  Teresa Johnson  <tejohnson@google.com>
37563
37564         * cgraphunit.c (analyze_functions): Use correct dump file.
37565
37566 2014-05-09  Florian Weimer  <fweimer@redhat.com>
37567
37568         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
37569         expand_used_vars.
37570         (stack_protect_return_slot_p): New function.
37571         (expand_used_vars): Call stack_protect_decl_p and
37572         stack_protect_return_slot_p for -fstack-protector-strong.
37573
37574 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
37575         Andrew Haley <aph@redhat.com>
37576         Richard Sandiford <rdsandiford@googlemail.com>
37577
37578         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
37579         pages.
37580
37581 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
37582
37583         PR middle-end/61111
37584         * fold-const.c (fold_binary_loc): Changed width of mask.
37585
37586 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
37587
37588         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
37589         unsigned int initializers for regno_in, regno_out.
37590
37591 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
37592
37593         PR target/61055
37594         * config/avr/avr.md (cc): Add new attribute set_vzn.
37595         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
37596         Set cc insn attribute to set_vzn instead of set_zn for alternatives
37597         with INC, DEC or NEG.
37598         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
37599         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
37600         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
37601
37602 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37603
37604         Revert:
37605         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37606
37607         * wide-int.cc (UTItype): Define.
37608         (UDWtype): Define for appropriate W_TYPE_SIZE.
37609
37610 2014-05-09  Richard Biener  <rguenther@suse.de>
37611
37612         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
37613         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
37614         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
37615         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
37616         ssa_propagate): Adjust.
37617
37618 2014-05-08  Jeff Law  <law@redhat.com>
37619
37620         PR tree-optimization/61009
37621         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
37622         tri-state rather than a boolean.  When a block is too big to
37623         thread through, inform caller via negative return value.
37624         (thread_across_edge): If a block was too big for normal threading,
37625         then it's too big for a joiner too, so remove temporary equivalences
37626         and return immediately.
37627
37628 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
37629             Matthias Klose  <doko@ubuntu.com>
37630
37631         PR driver/61106
37632         * optc-gen.awk: Fix option handling for -Wunused-parameter.
37633
37634 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
37635
37636         PR target/59952
37637         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
37638
37639 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
37640
37641         PR target/61092
37642         * config/alpha/alpha.c: Include gimple-iterator.h.
37643         (alpha_gimple_fold_builtin): New function.  Move
37644         ALPHA_BUILTIN_UMULH folding from ...
37645         (alpha_fold_builtin): ... here.
37646         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
37647
37648 2014-05-08  Wei Mi  <wmi@google.com>
37649
37650         PR target/58066
37651         * config/i386/i386.c (ix86_compute_frame_layout): Update
37652         preferred_stack_boundary for call, expanded from tls descriptor.
37653         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
37654         to depend on SP register.
37655         (*tls_local_dynamic_base_32_gnu): Ditto.
37656         (*tls_local_dynamic_32_once): Ditto.
37657         (tls_global_dynamic_64_<mode>): Set
37658         ix86_tls_descriptor_calls_expanded_in_cfun.
37659         (tls_local_dynamic_base_64_<mode>): Ditto.
37660         (tls_global_dynamic_32): Set
37661         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
37662         to depend on SP register.
37663         (tls_local_dynamic_base_32): Ditto.
37664
37665 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37666
37667         * config/arm/arm_neon.h: Update comment.
37668         * config/arm/neon-docgen.ml: Delete.
37669         * config/arm/neon-gen.ml: Delete.
37670         * doc/arm-neon-intrinsics.texi: Update comment.
37671
37672 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37673
37674         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
37675         and v4sf versions.
37676         (vand, vorr, veor, vorn, vbic): Remove.
37677         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
37678         iterator.
37679         (neon_vsub_unspec): Likewise.
37680         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
37681
37682 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37683
37684         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
37685         (vadd_s16): Likewise.
37686         (vadd_s32): Likewise.
37687         (vadd_f32): Likewise.
37688         (vadd_u8): Likewise.
37689         (vadd_u16): Likewise.
37690         (vadd_u32): Likewise.
37691         (vadd_s64): Likewise.
37692         (vadd_u64): Likewise.
37693         (vaddq_s8): Likewise.
37694         (vaddq_s16): Likewise.
37695         (vaddq_s32): Likewise.
37696         (vaddq_s64): Likewise.
37697         (vaddq_f32): Likewise.
37698         (vaddq_u8): Likewise.
37699         (vaddq_u16): Likewise.
37700         (vaddq_u32): Likewise.
37701         (vaddq_u64): Likewise.
37702         (vmul_s8): Likewise.
37703         (vmul_s16): Likewise.
37704         (vmul_s32): Likewise.
37705         (vmul_f32): Likewise.
37706         (vmul_u8): Likewise.
37707         (vmul_u16): Likewise.
37708         (vmul_u32): Likewise.
37709         (vmul_p8): Likewise.
37710         (vmulq_s8): Likewise.
37711         (vmulq_s16): Likewise.
37712         (vmulq_s32): Likewise.
37713         (vmulq_f32): Likewise.
37714         (vmulq_u8): Likewise.
37715         (vmulq_u16): Likewise.
37716         (vmulq_u32): Likewise.
37717         (vsub_s8): Likewise.
37718         (vsub_s16): Likewise.
37719         (vsub_s32): Likewise.
37720         (vsub_f32): Likewise.
37721         (vsub_u8): Likewise.
37722         (vsub_u16): Likewise.
37723         (vsub_u32): Likewise.
37724         (vsub_s64): Likewise.
37725         (vsub_u64): Likewise.
37726         (vsubq_s8): Likewise.
37727         (vsubq_s16): Likewise.
37728         (vsubq_s32): Likewise.
37729         (vsubq_s64): Likewise.
37730         (vsubq_f32): Likewise.
37731         (vsubq_u8): Likewise.
37732         (vsubq_u16): Likewise.
37733         (vsubq_u32): Likewise.
37734         (vsubq_u64): Likewise.
37735         (vand_s8): Likewise.
37736         (vand_s16): Likewise.
37737         (vand_s32): Likewise.
37738         (vand_u8): Likewise.
37739         (vand_u16): Likewise.
37740         (vand_u32): Likewise.
37741         (vand_s64): Likewise.
37742         (vand_u64): Likewise.
37743         (vandq_s8): Likewise.
37744         (vandq_s16): Likewise.
37745         (vandq_s32): Likewise.
37746         (vandq_s64): Likewise.
37747         (vandq_u8): Likewise.
37748         (vandq_u16): Likewise.
37749         (vandq_u32): Likewise.
37750         (vandq_u64): Likewise.
37751         (vorr_s8): Likewise.
37752         (vorr_s16): Likewise.
37753         (vorr_s32): Likewise.
37754         (vorr_u8): Likewise.
37755         (vorr_u16): Likewise.
37756         (vorr_u32): Likewise.
37757         (vorr_s64): Likewise.
37758         (vorr_u64): Likewise.
37759         (vorrq_s8): Likewise.
37760         (vorrq_s16): Likewise.
37761         (vorrq_s32): Likewise.
37762         (vorrq_s64): Likewise.
37763         (vorrq_u8): Likewise.
37764         (vorrq_u16): Likewise.
37765         (vorrq_u32): Likewise.
37766         (vorrq_u64): Likewise.
37767         (veor_s8): Likewise.
37768         (veor_s16): Likewise.
37769         (veor_s32): Likewise.
37770         (veor_u8): Likewise.
37771         (veor_u16): Likewise.
37772         (veor_u32): Likewise.
37773         (veor_s64): Likewise.
37774         (veor_u64): Likewise.
37775         (veorq_s8): Likewise.
37776         (veorq_s16): Likewise.
37777         (veorq_s32): Likewise.
37778         (veorq_s64): Likewise.
37779         (veorq_u8): Likewise.
37780         (veorq_u16): Likewise.
37781         (veorq_u32): Likewise.
37782         (veorq_u64): Likewise.
37783         (vbic_s8): Likewise.
37784         (vbic_s16): Likewise.
37785         (vbic_s32): Likewise.
37786         (vbic_u8): Likewise.
37787         (vbic_u16): Likewise.
37788         (vbic_u32): Likewise.
37789         (vbic_s64): Likewise.
37790         (vbic_u64): Likewise.
37791         (vbicq_s8): Likewise.
37792         (vbicq_s16): Likewise.
37793         (vbicq_s32): Likewise.
37794         (vbicq_s64): Likewise.
37795         (vbicq_u8): Likewise.
37796         (vbicq_u16): Likewise.
37797         (vbicq_u32): Likewise.
37798         (vbicq_u64): Likewise.
37799         (vorn_s8): Likewise.
37800         (vorn_s16): Likewise.
37801         (vorn_s32): Likewise.
37802         (vorn_u8): Likewise.
37803         (vorn_u16): Likewise.
37804         (vorn_u32): Likewise.
37805         (vorn_s64): Likewise.
37806         (vorn_u64): Likewise.
37807         (vornq_s8): Likewise.
37808         (vornq_s16): Likewise.
37809         (vornq_s32): Likewise.
37810         (vornq_s64): Likewise.
37811         (vornq_u8): Likewise.
37812         (vornq_u16): Likewise.
37813         (vornq_u32): Likewise.
37814         (vornq_u64): Likewise.
37815
37816 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37817
37818         * wide-int.cc (UTItype): Define.
37819         (UDWtype): Define for appropriate W_TYPE_SIZE.
37820
37821 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
37822
37823         PR tree-optimization/59100
37824         * tree-ssa-phiopt.c: Include tree-inline.h.
37825         (neutral_element_p, absorbing_element_p): New functions.
37826         (value_replacement): Handle conditional binary operations with a
37827         neutral or absorbing element.
37828
37829 2014-05-08  Richard Biener  <rguenther@suse.de>
37830
37831         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
37832         folding the expression.
37833         (valueize_expr): Remove.
37834         (visit_reference_op_load): Do not valueize the result of
37835         vn_get_expr_for.
37836         (simplify_binary_expression): Likewise.
37837         (simplify_unary_expression): Likewise.
37838
37839 2014-05-08  Richard Biener  <rguenther@suse.de>
37840
37841         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
37842         looking at TYPE_ARG_TYPES.
37843
37844 2014-05-08  Richard Biener  <rguenther@suse.de>
37845
37846         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
37847         pointer propagation special-case.
37848
37849 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
37850
37851         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
37852         core part of address expressions.
37853
37854 2014-05-08  Alan Modra  <amodra@gmail.com>
37855
37856         PR target/60737
37857         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
37858         loads and stores when -mno-strict-align at any alignment.
37859         (expand_block_clear): Similarly.  Also correct calculation of
37860         instruction count.
37861
37862 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37863
37864         PR middle-end/39246
37865         * tree-complex.c (expand_complex_move): Keep line info when expanding
37866         complex move.
37867         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
37868         of complex expression. Use new argument to display correct location
37869         for values coming from phi statement.
37870         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
37871         (warn_uninitialized_phi): Pass location of phi argument to
37872         warn_uninit.
37873         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
37874         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
37875
37876 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
37877
37878         * config/rs6000/predicates.md (indexed_address_mem): New.
37879         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
37880         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
37881         fpstore_ux, fpstore_u.
37882         (sign_extend, indexed, update): New.
37883         (cell_micro): Adjust.
37884         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
37885         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
37886         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
37887         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
37888         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
37889         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
37890         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
37891         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
37892         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
37893         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
37894         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
37895         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
37896         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
37897         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
37898         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
37899
37900         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
37901         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
37902         *vsx_extract_<mode>_store): Adjust.
37903         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
37904         is_cracked_insn, insn_must_be_first_in_group,
37905         insn_must_be_last_in_group): Adjust.
37906
37907         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
37908         Adjust.
37909         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
37910         ppc440-fpstore): Adjust.
37911         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
37912         ppc476-fpstore): Adjust.
37913         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
37914         ppc601-fpstore): Adjust.
37915         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
37916         Adjust.
37917         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
37918         Adjust.
37919         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
37920         ppc7450-fpstore): Adjust.
37921         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
37922         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
37923         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
37924         Adjust.
37925         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
37926         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
37927         cell-fpstore, cell-fpstore-update): Adjust.
37928         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
37929         ppce300c3_store, ppce300c3_fpstore): Adjust.
37930         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
37931         e500mc_fpstore): Adjust.
37932         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
37933         e500mc64_store, e500mc64_fpstore): Adjust.
37934         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
37935         e5500_fpstore): Adjust.
37936         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
37937         e6500_fpstore): Adjust.
37938         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
37939         Adjust.
37940         * config/rs6000/power4.md (power4-load, power4-load-ext,
37941         power4-load-ext-update, power4-load-ext-update-indexed,
37942         power4-load-update-indexed, power4-load-update, power4-fpload,
37943         power4-fpload-update, power4-store, power4-store-update,
37944         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
37945         Adjust.
37946         * config/rs6000/power5.md (power5-load, power5-load-ext,
37947         power5-load-ext-update, power5-load-ext-update-indexed,
37948         power5-load-update-indexed, power5-load-update, power5-fpload,
37949         power5-fpload-update, power5-store, power5-store-update,
37950         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
37951         Adjust.
37952         * config/rs6000/power6.md (power6-load, power6-load-ext,
37953         power6-load-update, power6-load-update-indexed,
37954         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
37955         power6-fpload-update, power6-store, power6-store-update,
37956         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
37957         Adjust.
37958         * config/rs6000/power7.md (power7-load, power7-load-ext,
37959         power7-load-update, power7-load-update-indexed,
37960         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
37961         power7-fpload-update, power7-store, power7-store-update,
37962         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
37963         Adjust.
37964         * config/rs6000/power8.md (power8-load, power8-load-update,
37965         power8-load-ext, power8-load-ext-update, power8-fpload,
37966         power8-fpload-update, power8-store, power8-store-update-indexed,
37967         power8-fpstore, power8-fpstore-update): Adjust.
37968         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
37969         Adjust.
37970         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
37971         titan_lsu_store, titan_lsu_fpstore): Adjust.
37972         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
37973
37974 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
37975
37976         PR target/60884
37977         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
37978         unrolled byte insns.  Emit address increments after move insns.
37979
37980 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
37981
37982         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
37983         const_gimple, rather than a gimple.
37984         (gimple_call_builtin_p): Likewise, for the three variants.
37985
37986         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
37987         (gimple_call_builtin_p): Likewise, for the three variants.
37988
37989 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
37990
37991         PR tree-optimization/61095
37992         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
37993
37994 2014-05-07  Richard Biener  <rguenther@suse.de>
37995
37996         PR tree-optimization/61034
37997         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
37998         (maybe_skip_until): Use translate to take into account
37999         lattices when trying to do disambiguations.
38000         (get_continuation_for_phi_1): Likewise.
38001         (get_continuation_for_phi): Adjust for added translate arguments.
38002         (walk_non_aliased_vuses): Likewise.
38003         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
38004         (walk_non_aliased_vuses): Likewise.
38005         (call_may_clobber_ref_p_1): Declare.
38006         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
38007         calls.  Stop early if we are only supposed to disambiguate.
38008         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
38009
38010 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
38011
38012         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
38013         Emit an error when the function has arguments.
38014
38015 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
38016
38017         * cfgloop.h (unswitch_loops): Remove.
38018         * doc/passes.texi: Remove references to loop-unswitch.c
38019         * timevar.def (TV_LOOP_UNSWITCH): Remove.
38020
38021 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
38022
38023         * tree-vect-data-refs.c (vect_grouped_load_supported): New
38024         check for loads group of length 3.
38025         (vect_permute_load_chain): New permutations for loads group of
38026         length 3.
38027         * tree-vect-stmts.c (vect_model_load_cost): Change cost
38028         of vec_perm_shuffle for the new permutations.
38029
38030 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
38031
38032         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
38033         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
38034         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
38035         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
38036         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
38037         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
38038         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
38039         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
38040
38041 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
38042
38043         * loop-unswitch.c: Delete.
38044
38045 2014-05-07  Richard Biener  <rguenther@suse.de>
38046
38047         * config.gcc: Always set need_64bit_hwint to yes.
38048
38049 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
38050
38051         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
38052         of using optimize_size.
38053
38054 2014-05-06  Mike Stump  <mikestump@comcast.net>
38055
38056         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
38057
38058 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
38059
38060         * config/i386/sse.md (*mov<mode>_internal)
38061         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
38062         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
38063         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
38064         (*<code><mode>3, *andnot<mode>3<mask_name>)
38065         (<mask_codefor><code><mode>3<mask_name>): Only consider
38066         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
38067
38068 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
38069
38070         Revert:
38071         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
38072
38073         * lra-constraints.c (valid_address_p): Move earlier in file.
38074         Add a constraint argument to the address_info version.
38075         (satisfies_memory_constraint_p): New function.
38076         (satisfies_address_constraint_p): Likewise.
38077         (process_alt_operands, curr_insn_transform): Use them.
38078         (process_address): Pass the constraint to valid_address_p when
38079         checking address operands.
38080
38081 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
38082
38083         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
38084         to their respective blocks.  Fix inadvertent use of "node".
38085
38086 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
38087
38088         * emit-rtl.c (init_derived_machine_modes): New functionm, split
38089         out from...
38090         (init_emit_once): ...here.
38091         * rtl.h (init_derived_machine_modes): Declare.
38092         * toplev.c (do_compile): Call it even if no_backend.
38093
38094 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
38095             Mike Stump  <mikestump@comcast.net>
38096             Richard Sandiford  <rdsandiford@googlemail.com>
38097             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38098
38099         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
38100         (rtx_equal_for_memref_p): Update comment.
38101         (adjust_offset_for_component_ref): Use wide-int interfaces.
38102         * builtins.c (get_object_alignment_2): Likewise.
38103         (c_readstr): Likewise.
38104         (target_char_cast): Add comment.
38105         (determine_block_size): Use wide-int interfaces.
38106         (expand_builtin_signbit): Likewise.
38107         (fold_builtin_int_roundingfn): Likewise.
38108         (fold_builtin_bitop): Likewise.
38109         (fold_builtin_bswap): Likewise.
38110         (fold_builtin_logarithm): Use signop.
38111         (fold_builtin_pow): Likewise.
38112         (fold_builtin_memory_op): Use wide-int interfaces.
38113         (fold_builtin_object_size): Likewise.
38114         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
38115         nb_iterations_estimate.
38116         (record_niter_bound): Use wide-int interfaces.
38117         (get_estimated_loop_iterations_int): Likewise.
38118         (get_estimated_loop_iterations): Likewise.
38119         (get_max_loop_iterations): Likewise.
38120         * cfgloop.h: Include wide-int.h.
38121         (struct nb_iter_bound): Change bound to widest_int.
38122         (struct loop): Change nb_iterations_upper_bound and
38123         nb_iterations_estimate to widest_int.
38124         (record_niter_bound): Switch to use widest_int.
38125         (get_estimated_loop_iterations): Likewise.
38126         (get_max_loop_iterations): Likewise.
38127         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
38128         update for wide-int.
38129         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
38130         * combine.c (try_combine): Likewise.
38131         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
38132         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
38133         interfaces.
38134         (aarch64_float_const_representable_p): Likewise.
38135         * config/arc/arc.c: Include wide-int.h.
38136         (arc_can_use_doloop_p): Use wide-int interfaces.
38137         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
38138         (vfp3_const_double_index): Likewise.
38139         * config/avr/avr.c (avr_out_round): Likewise.
38140         (avr_fold_builtin): Likewise.
38141         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
38142         (bfin_can_use_doloop_p): Likewise.
38143         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
38144         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
38145         * config/i386/i386.c: Include wide-int.h.
38146         (ix86_data_alignment): Use wide-int interfaces.
38147         (ix86_local_alignment): Likewise.
38148         (ix86_emit_swsqrtsf): Update real_from_integer.
38149         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
38150         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
38151         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
38152         (zero_constant): Likewise.
38153         (input_operand): Likewise.
38154         (splat_input_operand): Likewise.
38155         (non_logical_cint_operand): Change const_double to const_wide_int.
38156         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
38157         (easy_altivec_constant): Remove comment.
38158         (paired_expand_vector_init): Use CONSTANT_P.
38159         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
38160         (rs6000_emit_move): Update checks.
38161         (rs6000_aggregate_candidate): Use wide-int interfaces.
38162         (rs6000_expand_ternop_builtin): Likewise.
38163         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
38164         (rs6000_assemble_integer): Likewise.
38165         (rs6000_hash_constant): Likewise.
38166         (output_toc): Likewise.
38167         (rs6000_rtx_costs): Likewise.
38168         (rs6000_emit_swrsqrt); Update call to real_from_integer.
38169         * config/rs6000/rs6000-c.c: Include wide-int.h.
38170         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
38171         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
38172         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
38173         Handle CONST_WIDE_INT.
38174         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
38175         Use tree_fits_uhwi_p.
38176         * config/sparc/sparc.c: Include wide-int.h.
38177         (sparc_fold_builtin): Use wide-int interfaces.
38178         * config/vax/vax.c: Include wide-int.h.
38179         (vax_float_literal): Use real_from_integer.
38180         * coretypes.h (struct hwivec_def): New.
38181         (hwivec): New.
38182         (const_hwivec): New.
38183         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
38184         (equiv_constant): Handle CONST_WIDE_INT.
38185         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
38186         (cselib_hash_rtx): Handle CONST_WIDE_INT.
38187         * dbxout.c (stabstr_U): Use wide-int interfaces.
38188         (dbxout_type): Update to use cst_fits_shwi_p.
38189         * defaults.h (LOG2_BITS_PER_UNIT): Define.
38190         (TARGET_SUPPORTS_WIDE_INT): Add default.
38191         * dfp.c: Include wide-int.h.
38192         (decimal_real_to_integer2): Use wide-int interfaces and rename to
38193         decimal_real_to_integer.
38194         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
38195         decimal_real_to_integer.
38196         * doc/generic.texi (Constant expressions): Update for wide_int.
38197         * doc/rtl.texi (const_double): Likewise.
38198         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
38199         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
38200         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
38201         (REAL_VALUE_FROM_INT): Remove.
38202         (TARGET_SUPPORTS_WIDE_INT): New.
38203         * doc/tm.texi: Regenerate.
38204         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
38205         * double-int.h: Include wide-int.h.
38206         (struct wi::int_traits): New.
38207         * dwarf2out.c (get_full_len): New.
38208         (dw_val_equal_p): Add case dw_val_class_wide_int.
38209         (size_of_loc_descr): Likewise.
38210         (output_loc_operands): Likewise.
38211         (insert_double): Remove.
38212         (insert_wide_int): New.
38213         (add_AT_wide): New.
38214         (print_die): Add case dw_val_class_wide_int.
38215         (attr_checksum): Likewise.
38216         (attr_checksum_ordered): Likewise.
38217         (same_dw_val_p): Likewise.
38218         (size_of_die): Likewise.
38219         (value_format): Likewise.
38220         (output_die): Likewise.
38221         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
38222         Use wide-int.
38223         (clz_loc_descriptor): Use wide-int interfaces.
38224         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
38225         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
38226         (round_up_to_align): Use wide-int interfaces.
38227         (field_byte_offset): Likewise.
38228         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
38229         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
38230         CONST_DOUBLE handling.  Use wide-int interfaces.
38231         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
38232         (gen_enumeration_type_die): Use add_AT_wide.
38233         (hash_loc_operands): Add case dw_val_class_wide_int.
38234         (compare_loc_operands): Likewise.
38235         * dwarf2out.h: Include wide-int.h.
38236         (wide_int_ptr): New.
38237         (enum dw_val_class): Add dw_val_class_wide_int.
38238         (struct dw_val_struct): Add val_wide.
38239         * emit-rtl.c (const_wide_int_htab): New.
38240         (const_wide_int_htab_hash): New.
38241         (const_wide_int_htab_eq): New.
38242         (lookup_const_wide_int): New.
38243         (const_double_htab_hash): Use wide-int interfaces.
38244         (const_double_htab_eq): Likewise.
38245         (rtx_to_double_int): Conditionally compile for wide-int.
38246         (immed_double_int_const): Rename to immed_wide_int_const and
38247         update for wide-int.
38248         (immed_double_const): Conditionally compile for wide-int.
38249         (init_emit_once): Use wide-int interfaces.
38250         * explow.c (plus_constant): Likewise.
38251         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
38252         (lshift_value): Use wide-int interfaces.
38253         (expand_mult): Likewise.
38254         (choose_multiplier): Likewise.
38255         (expand_smod_pow2): Likewise.
38256         (make_tree): Likewise.
38257         * expr.c (convert_modes): Consolidate handling of constants.
38258         Use wide-int interfaces.
38259         (emit_group_load_1): Add note.
38260         (store_expr): Update comment.
38261         (get_inner_reference): Use wide-int interfaces.
38262         (expand_constructor): Update comment.
38263         (expand_expr_real_2): Use wide-int interfaces.
38264         (expand_expr_real_1): Likewise.
38265         (reduce_to_bit_field_precision): Likewise.
38266         (const_vector_from_tree): Likewise.
38267         * final.c: Include wide-int-print.h.
38268         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
38269         * fixed-value.c: Include wide-int.h.
38270         (fixed_from_string): Use wide-int interfaces.
38271         (fixed_to_decimal): Likewise.
38272         (fixed_convert_from_real): Likewise.
38273         (real_convert_from_fixed): Likewise.
38274         * fold-const.h (mem_ref_offset): Return an offset_int.
38275         (div_if_zero_remainder): Remove code parameter.
38276         * fold-const.c (div_if_zero_remainder): Remove code parameter.
38277         Use wide-int interfaces.
38278         (may_negate_without_overflow_p): Use wide-int interfaces.
38279         (negate_expr_p): Likewise.
38280         (fold_negate_expr): Likewise.
38281         (int_const_binop_1): Likewise.
38282         (const_binop): Likewise.
38283         (fold_convert_const_int_from_int): Likewise.
38284         (fold_convert_const_int_from_real): Likewise.
38285         (fold_convert_const_int_from_fixed): Likewise.
38286         (fold_convert_const_fixed_from_int): Likewise.
38287         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
38288         (sign_bit_p): Use wide-int interfaces.
38289         (make_range_step): Likewise.
38290         (build_range_check): Likewise.  Pass an integer of the correct type
38291         instead of using integer_one_node.
38292         (range_predecessor): Pass an integer of the correct type instead
38293         of using integer_one_node.
38294         (range_successor): Likewise.
38295         (merge_ranges): Likewise.
38296         (unextend): Use wide-int interfaces.
38297         (extract_muldiv_1): Likewise.
38298         (fold_div_compare): Likewise.
38299         (fold_single_bit_test): Likewise.
38300         (fold_sign_changed_comparison): Likewise.
38301         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
38302         (fold_plusminus_mult_expr): Use wide-int interfaces.
38303         (native_encode_int): Likewise.
38304         (native_interpret_int): Likewise.
38305         (fold_unary_loc): Likewise.
38306         (pointer_may_wrap_p): Likewise.
38307         (size_low_cst): Likewise.
38308         (mask_with_tz): Likewise.
38309         (fold_binary_loc): Likewise.
38310         (fold_ternary_loc): Likewise.
38311         (multiple_of_p): Likewise.
38312         (tree_call_nonnegative_warnv_p): Update calls to
38313         tree_int_cst_min_precision and real_from_integer.
38314         (fold_negate_const): Use wide-int interfaces.
38315         (fold_abs_const): Likewise.
38316         (fold_relational_const): Use tree_int_cst_lt.
38317         (round_up_loc): Use wide-int interfaces.
38318         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
38319         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
38320         * gengtype.c: Remove include of double-int.h.
38321         (do_typedef): Use wide-int interfaces.
38322         (open_base_files): Add wide-int.h.
38323         (main): Add offset_int and widest_int typedefs.
38324         * gengtype-lex.l: Handle "^".
38325         (CXX_KEYWORD): Add "static".
38326         * gengtype-parse.c (require3): New.
38327         (require_template_declaration): Handle constant template arguments
38328         and nested templates.
38329         * gengtype-state.c: Don't include "double-int.h".
38330         * genpreds.c (write_one_predicate_function): Update comment.
38331         (write_tm_constrs_h): Add check for hval and lval use in
38332         CONST_WIDE_INT.
38333         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
38334         (add_to_sequence): Likewise.
38335         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
38336         and const_double_operand.
38337         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
38338         interfaces.
38339         * gimple-fold.c (get_base_constructor): Likewise.
38340         (fold_array_ctor_reference): Likewise.
38341         (fold_nonarray_ctor_reference): Likewise.
38342         (fold_const_aggregate_ref_1): Likewise.
38343         (gimple_val_nonnegative_real_p): Likewise.
38344         (gimple_fold_indirect_ref): Likewise.
38345         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
38346         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
38347         (struct slsr_cand_d): Change index to be widest_int.
38348         (struct incr_info_d): Change incr to be widest_int.
38349         (alloc_cand_and_find_basis): Use wide-int interfaces.
38350         (slsr_process_phi): Likewise.
38351         (backtrace_base_for_ref): Likewise.  Return a widest_int.
38352         (restructure_reference): Take a widest_int instead of a double_int.
38353         (slsr_process_ref): Use wide-int interfaces.
38354         (create_mul_ssa_cand): Likewise.
38355         (create_mul_imm_cand): Likewise.
38356         (create_add_ssa_cand): Likewise.
38357         (create_add_imm_cand): Take a widest_int instead of a double_int.
38358         (slsr_process_add): Use wide-int interfaces.
38359         (slsr_process_cast): Likewise.
38360         (slsr_process_copy): Likewise.
38361         (dump_candidate): Likewise.
38362         (dump_incr_vec): Likewise.
38363         (replace_ref): Likewise.
38364         (cand_increment): Likewise.  Return a widest_int.
38365         (cand_abs_increment): Likewise.
38366         (replace_mult_candidate): Take a widest_int instead of a double_int.
38367         (replace_unconditional_candidate): Use wide-int interfaces.
38368         (incr_vec_index): Take a widest_int instead of a double_int.
38369         (create_add_on_incoming_edge): Likewise.
38370         (create_phi_basis): Use wide-int interfaces.
38371         (replace_conditional_candidate): Likewise.
38372         (record_increment): Take a widest_int instead of a double_int.
38373         (record_phi_increments): Use wide-int interfaces.
38374         (phi_incr_cost): Take a widest_int instead of a double_int.
38375         (lowest_cost_path): Likewise.
38376         (total_savings): Likewise.
38377         (analyze_increments): Use wide-int interfaces.
38378         (ncd_with_phi): Take a widest_int instead of a double_int.
38379         (ncd_of_cand_and_phis): Likewise.
38380         (nearest_common_dominator_for_cands): Likewise.
38381         (insert_initializers): Use wide-int interfaces.
38382         (all_phi_incrs_profitable): Likewise.
38383         (replace_one_candidate): Likewise.
38384         (replace_profitable_candidates): Likewise.
38385         * godump.c: Include wide-int-print.h.
38386         (go_output_typedef): Use wide-int interfaces.
38387         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
38388         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
38389         (build_loop_iteration_domains): Likewise.
38390         * hooks.h: Include wide-int.h rather than double-int.h.
38391         (hook_bool_dint_dint_uint_bool_true): Delete.
38392         (hook_bool_wint_wint_uint_bool_true): Declare.
38393         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
38394         (hook_bool_wint_wint_uint_bool_true): New.
38395         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
38396         interfaces.
38397         (ubsan_expand_si_overflow_mul_check): Likewise.
38398         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
38399         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
38400         (get_ancestor_addr_info): Likewise.
38401         (ipa_modify_call_arguments): Likewise.
38402         * loop-doloop.c (doloop_modify): Likewise.
38403         (doloop_optimize): Likewise.
38404         * loop-iv.c (iv_number_of_iterations): Likewise.
38405         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
38406         (unroll_loop_constant_iterations): Likewise.
38407         (decide_unroll_runtime_iterations): Likewise.
38408         (unroll_loop_runtime_iterations): Likewise.
38409         (decide_peel_simple): Likewise.
38410         (decide_unroll_stupid): Likewise.
38411         * lto-streamer-in.c (streamer_read_wi): Add.
38412         (input_cfg): Use wide-int interfaces.
38413         (lto_input_tree_1): Likewise.
38414         * lto-streamer-out.c (streamer_write_wi): Add.
38415         (hash_tree): Use wide-int interfaces.
38416         (output_cfg): Likewise.
38417         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
38418         (GTFILES): Add wide-int.h and signop.h.
38419         (TAGS): Look for .cc files too.
38420         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
38421         * optabs.c (expand_subword_shift): Likewise.
38422         (expand_doubleword_shift): Likewise.
38423         (expand_absneg_bit): Likewise.
38424         (expand_copysign_absneg): Likewise.
38425         (expand_copysign_bit): Likewise.
38426         * postreload.c (reload_cse_simplify_set): Likewise.
38427         * predict.c (predict_iv_comparison): Likewise.
38428         * pretty-print.h: Include wide-int-print.h.
38429         (pp_wide_int) New.
38430         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
38431         * print-tree.c: Include wide-int-print.h.
38432         (print_node_brief): Use wide-int interfaces.
38433         (print_node): Likewise.
38434         * read-rtl.c (validate_const_wide_int): New.
38435         (read_rtx_code): Add CONST_WIDE_INT case.
38436         * real.c: Include wide-int.h.
38437         (real_to_integer2): Delete.
38438         (real_to_integer): New function, returning a wide_int.
38439         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
38440         (ten_to_ptwo): Update call to real_from_integer.
38441         (real_digit): Likewise.
38442         * real.h: Include signop.h, wide-int.h and insn-modes.h.
38443         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
38444         (REAL_VALUE_TO_INT): Delete.
38445         (real_to_integer): Declare a wide-int form.
38446         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
38447         * recog.c (const_int_operand): Improve comment.
38448         (const_scalar_int_operand): New.
38449         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
38450         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
38451         (split_double): Likewise.
38452         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
38453         (rtx_size): Likewise.
38454         (rtx_alloc_stat_v): New.
38455         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
38456         (cwi_output_hex): New.
38457         (iterative_hash_rtx): Handle CONST_WIDE_INT.
38458         (cwi_check_failed_bounds): New.
38459         * rtl.def (CONST_WIDE_INT): New.
38460         * rtl.h: Include <utility> and wide-int.h.
38461         (struct hwivec_def): New.
38462         (CWI_GET_NUM_ELEM): New.
38463         (CWI_PUT_NUM_ELEM): New.
38464         (struct rtx_def): Add num_elem and hwiv.
38465         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
38466         (CASE_CONST_UNIQUE): Likewise.
38467         (CASE_CONST_ANY): Likewise.
38468         (CONST_SCALAR_INT_P): Likewise.
38469         (CONST_WIDE_INT_P): New.
38470         (CWI_ELT): New.
38471         (HWIVEC_CHECK): New.
38472         (cwi_check_failed_bounds): New.
38473         (CWI_ELT): New.
38474         (HWIVEC_CHECK): New.
38475         (CONST_WIDE_INT_VEC) New.
38476         (CONST_WIDE_INT_NUNITS) New.
38477         (CONST_WIDE_INT_ELT) New.
38478         (rtx_mode_t): New type.
38479         (wi::int_traits <rtx_mode_t>): New.
38480         (wi::shwi): New.
38481         (wi::min_value): New.
38482         (wi::max_value): New.
38483         (rtx_alloc_v) New.
38484         (const_wide_int_alloc): New.
38485         (immed_wide_int_const): New.
38486         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
38487         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
38488         * signop.h: New file.
38489         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
38490         (simplify_const_unary_operation): Use wide-int interfaces.
38491         (simplify_binary_operation_1): Likewise.
38492         (simplify_const_binary_operation): Likewise.
38493         (simplify_const_relational_operation): Likewise.
38494         (simplify_immed_subreg): Likewise.
38495         * stmt.c (expand_case): Likewise.
38496         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
38497         signop rather than a bool.
38498         * stor-layout.c (layout_type): Use wide-int interfaces.
38499         (initialize_sizetypes): Update calls to
38500         set_min_and_max_values_for_integral_type.
38501         (set_min_and_max_values_for_integral_type): Take a signop rather
38502         than a bool.  Use wide-int interfaces.
38503         (fixup_signed_type): Update accordingly.  Remove
38504         HOST_BITS_PER_DOUBLE_INT limit.
38505         (fixup_unsigned_type): Likewise.
38506         * system.h (STATIC_CONSTANT_P): New.
38507         (STATIC_ASSERT): New.
38508         * target.def (can_use_doloop_p): Take widest_ints rather than
38509         double_ints.
38510         * target.h: Include wide-int.h rather than double-int.h.
38511         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
38512         than double_ints.
38513         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
38514         rather than INT_CST_LT_UNSIGNED.
38515         (can_use_doloop_if_innermost): Take widest_ints rather than
38516         double_ints.
38517         * tree-affine.c: Include wide-int-print.h.
38518         (double_int_ext_for_comb): Delete.
38519         (wide_int_ext_for_comb): New.
38520         (aff_combination_zero): Use wide-int interfaces.
38521         (aff_combination_const): Take a widest_int instead of a double_int.
38522         (aff_combination_elt): Use wide-int interfaces.
38523         (aff_combination_scale): Take a widest_int instead of a double_int.
38524         (aff_combination_add_elt): Likewise.
38525         (aff_combination_add_cst): Likewise.
38526         (aff_combination_add): Use wide-int interfaces.
38527         (aff_combination_convert): Likewise.
38528         (tree_to_aff_combination): Likewise.
38529         (add_elt_to_tree): Take a widest_int instead of a double_int.
38530         (aff_combination_to_tree): Use wide-int interfaces.
38531         (aff_combination_remove_elt): Likewise.
38532         (aff_combination_add_product): Take a widest_int instead of
38533         a double_int.
38534         (aff_combination_mult): Use wide-int interfaces.
38535         (aff_combination_expand): Likewise.
38536         (double_int_constant_multiple_p): Delete.
38537         (wide_int_constant_multiple_p): New.
38538         (aff_combination_constant_multiple_p): Take a widest_int pointer
38539         instead of a double_int pointer.
38540         (print_aff): Use wide-int interfaces.
38541         (get_inner_reference_aff): Take a widest_int pointer
38542         instead of a double_int pointer.
38543         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
38544         * tree-affine.h: Include wide-int.h.
38545         (struct aff_comb_elt): Change type of coef to widest_int.
38546         (struct affine_tree_combination): Change type of offset to widest_int.
38547         (double_int_ext_for_comb): Delete.
38548         (wide_int_ext_for_comb): New.
38549         (aff_combination_const): Use widest_int instead of double_int.
38550         (aff_combination_scale): Likewise.
38551         (aff_combination_add_elt): Likewise.
38552         (aff_combination_constant_multiple_p): Likewise.
38553         (get_inner_reference_aff): Likewise.
38554         (aff_comb_cannot_overlap_p): Likewise.
38555         (aff_combination_zero_p): Use wide-int interfaces.
38556         * tree.c: Include tree.h.
38557         (init_ttree): Use make_int_cst.
38558         (tree_code_size): Removed code for INTEGER_CST case.
38559         (tree_size): Add INTEGER_CST case.
38560         (make_node_stat): Update comment.
38561         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
38562         (build_int_cst_type): Use wide-int interfaces.
38563         (double_int_to_tree): Likewise.
38564         (double_int_fits_to_tree_p): Delete.
38565         (force_fit_type_double): Delete.
38566         (force_fit_type): New.
38567         (int_cst_hash_hash): Use wide-int interfaces.
38568         (int_cst_hash_eq): Likewise.
38569         (build_int_cst_wide): Delete.
38570         (wide_int_to_tree): New.
38571         (cache_integer_cst): Use wide-int interfaces.
38572         (build_low_bits_mask): Likewise.
38573         (cst_and_fits_in_hwi): Likewise.
38574         (real_value_from_int_cst): Likewise.
38575         (make_int_cst_stat): New.
38576         (integer_zerop): Use wide_int interfaces.
38577         (integer_onep): Likewise.
38578         (integer_all_onesp): Likewise.
38579         (integer_pow2p): Likewise.
38580         (integer_nonzerop): Likewise.
38581         (tree_log2): Likewise.
38582         (tree_floor_log2): Likewise.
38583         (tree_ctz): Likewise.
38584         (int_size_in_bytes): Likewise.
38585         (mem_ref_offset): Return an offset_int rather than a double_int.
38586         (build_type_attribute_qual_variant): Use wide_int interfaces.
38587         (type_hash_eq): Likewise
38588         (tree_int_cst_equal): Likewise.
38589         (tree_int_cst_lt): Delete.
38590         (tree_int_cst_compare): Likewise.
38591         (tree_fits_shwi_p): Use wide_int interfaces.
38592         (tree_fits_uhwi_p): Likewise.
38593         (tree_int_cst_sign_bit): Likewise.
38594         (tree_int_cst_sgn): Likewise.
38595         (tree_int_cst_min_precision): Take a signop rather than a bool.
38596         (simple_cst_equal): Use wide_int interfaces.
38597         (compare_tree_int): Likewise.
38598         (iterative_hash_expr): Likewise.
38599         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
38600         INT_CST_LT.
38601         (get_type_static_bounds): Use wide_int interfaces.
38602         (tree_int_cst_elt_check_failed): New.
38603         (build_common_tree_nodes): Reordered to set prec before filling in
38604         value.
38605         (int_cst_value): Check cst_and_fits_in_hwi.
38606         (widest_int_cst_value): Use wide_int interfaces.
38607         (upper_bound_in_type): Likewise.
38608         (lower_bound_in_type): Likewise.
38609         (num_ending_zeros): Likewise.
38610         (drop_tree_overflow): Likewise.
38611         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
38612         (gen_conditions_for_pow_cst_base): Likewise.
38613         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
38614         (group_case_labels_stmt): Use wide-int interfaces.
38615         (verify_gimple_assign_binary): Likewise.
38616         (print_loop): Likewise.
38617         * tree-chrec.c (tree_fold_binomial): Likewise.
38618         * tree-core.h (struct tree_base): Add int_length.
38619         (struct tree_int_cst): Change rep of value.
38620         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
38621         (dr_may_alias_p): Likewise.
38622         (max_stmt_executions_tree): Likewise.
38623         * tree.def (INTEGER_CST): Update comment.
38624         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
38625         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
38626         * tree-dump.c: Include wide-int.h and wide-int-print.h.
38627         (dequeue_and_dump): Use wide-int interfaces.
38628         * tree.h: Include wide-int.h.
38629         (NULL_TREE): Moved to earlier loc in file.
38630         (TREE_INT_CST_ELT_CHECK): New.
38631         (tree_int_cst_elt_check_failed): New.
38632         (TYPE_SIGN): New.
38633         (TREE_INT_CST): Delete.
38634         (TREE_INT_CST_LOW): Use wide-int interfaces.
38635         (TREE_INT_CST_HIGH): Delete.
38636         (TREE_INT_CST_NUNITS): New.
38637         (TREE_INT_CST_EXT_NUNITS): Likewise.
38638         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
38639         (TREE_INT_CST_ELT): Likewise.
38640         (INT_CST_LT): Delete.
38641         (tree_int_cst_elt_check): New (two forms).
38642         (type_code_size): Update comment.
38643         (make_int_cst_stat, make_int_cst): New.
38644         (tree_to_double_int): Delete.
38645         (double_int_fits_to_tree_p): Delete.
38646         (force_fit_type_double): Delete.
38647         (build_int_cstu): Replace with out-of-line function.
38648         (build_int_cst_wide): Delete.
38649         (tree_int_cst_lt): Define inline.
38650         (tree_int_cst_le): New.
38651         (tree_int_cst_compare): Define inline.
38652         (tree_int_cst_min_precision): Take a signop rather than a bool.
38653         (wi::int_traits <const_tree>): New.
38654         (wi::int_traits <tree>): New.
38655         (wi::extended_tree): New.
38656         (wi::int_traits <wi::extended_tree>): New.
38657         (wi::to_widest): New.
38658         (wi::to_offset): New.
38659         (wi::fits_to_tree_p): New.
38660         (wi::min_value): New.
38661         (wi::max_value): New.
38662         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
38663         (copy_tree_body_r): Likewise.
38664         * tree-object-size.c (compute_object_offset): Likewise.
38665         (addr_object_size): Likewise.
38666         * tree-predcom.c: Include wide-int-print.h.
38667         (struct dref_d): Change type of offset to widest_int.
38668         (dump_dref): Call wide-int printer.
38669         (aff_combination_dr_offset): Use wide-int interfaces.
38670         (determine_offset): Take a widest_int pointer rather than a
38671         double_int pointer.
38672         (split_data_refs_to_components): Use wide-int interfaces.
38673         (suitable_component_p): Likewise.
38674         (order_drefs): Likewise.
38675         (add_ref_to_chain): Likewise.
38676         (valid_initializer_p): Likewise.
38677         (determine_roots_comp): Likewise.
38678         * tree-pretty-print.c: Include wide-int-print.h.
38679         (dump_generic_node): Use wide-int interfaces.
38680         * tree-sra.c (sra_ipa_modify_expr): Likewise.
38681         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
38682         (move_fixed_address_to_symbol): Likewise.
38683         (move_hint_to_base): Likewise.
38684         (move_pointer_to_base): Likewise.
38685         (move_variant_to_index): Likewise.
38686         (most_expensive_mult_to_index): Likewise.
38687         (addr_to_parts): Likewise.
38688         (copy_ref_info): Likewise.
38689         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
38690         (indirect_refs_may_alias_p): Likewise.
38691         (stmt_kills_ref_p_1): Likewise.
38692         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
38693         * tree-ssa-ccp.c: Update comment at top of file.  Include
38694         wide-int-print.h.
38695         (struct prop_value_d): Change type of mask to widest_int.
38696         (extend_mask): New function.
38697         (dump_lattice_value): Use wide-int interfaces.
38698         (get_default_value): Likewise.
38699         (set_constant_value): Likewise.
38700         (set_value_varying): Likewise.
38701         (valid_lattice_transition): Likewise.
38702         (set_lattice_value): Likewise.
38703         (value_to_double_int): Delete.
38704         (value_to_wide_int): New.
38705         (get_value_from_alignment): Use wide-int interfaces.
38706         (get_value_for_expr): Likewise.
38707         (do_dbg_cnt): Likewise.
38708         (ccp_finalize): Likewise.
38709         (ccp_lattice_meet): Likewise.
38710         (bit_value_unop_1): Use widest_ints rather than double_ints.
38711         (bit_value_binop_1): Likewise.
38712         (bit_value_unop): Use wide-int interfaces.
38713         (bit_value_binop): Likewise.
38714         (bit_value_assume_aligned): Likewise.
38715         (evaluate_stmt): Likewise.
38716         (ccp_fold_stmt): Likewise.
38717         (visit_cond_stmt): Likewise.
38718         (ccp_visit_stmt): Likewise.
38719         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
38720         (constant_pointer_difference): Likewise.
38721         (associate_pointerplus): Likewise.
38722         (combine_conversions): Likewise.
38723         * tree-ssa-loop.h: Include wide-int.h.
38724         (struct tree_niter_desc): Change type of max to widest_int.
38725         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
38726         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
38727         (remove_redundant_iv_tests): Likewise.
38728         (canonicalize_loop_induction_variables): Likewise.
38729         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
38730         (constant_multiple_of): Take a widest_int pointer instead of
38731         a double_int pointer.
38732         (get_computation_aff): Use wide-int interfaces.
38733         (ptr_difference_cost): Likewise.
38734         (difference_cost): Likewise.
38735         (get_loop_invariant_expr_id): Likewise.
38736         (get_computation_cost_at): Likewise.
38737         (iv_elimination_compare_lt): Likewise.
38738         (may_eliminate_iv): Likewise.
38739         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
38740         instead of double_int.
38741         (max_loop_iterations): Likewise.
38742         (max_stmt_executions): Likewise.
38743         (estimated_stmt_executions): Likewise.
38744         * tree-ssa-loop-niter.c: Include wide-int-print.h.
38745         (split_to_var_and_offset): Use wide-int interfaces.
38746         (determine_value_range): Likewise.
38747         (bound_difference_of_offsetted_base): Likewise.
38748         (bounds_add): Take a widest_int instead of a double_int.
38749         (number_of_iterations_ne_max): Use wide-int interfaces.
38750         (number_of_iterations_ne): Likewise.
38751         (number_of_iterations_lt_to_ne): Likewise.
38752         (assert_loop_rolls_lt): Likewise.
38753         (number_of_iterations_lt): Likewise.
38754         (number_of_iterations_le): Likewise.
38755         (number_of_iterations_cond): Likewise.
38756         (number_of_iterations_exit): Likewise.
38757         (finite_loop_p): Likewise.
38758         (derive_constant_upper_bound_assign): Likewise.
38759         (derive_constant_upper_bound): Return a widest_int.
38760         (derive_constant_upper_bound_ops): Likewise.
38761         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
38762         (record_estimate): Take a widest_int rather than a double_int.
38763         (record_nonwrapping_iv): Use wide-int interfaces.
38764         (double_int_cmp): Delete.
38765         (wide_int_cmp): New.
38766         (bound_index): Take a widest_int rather than a double_int.
38767         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
38768         (maybe_lower_iteration_bound): Likewise.
38769         (estimate_numbers_of_iterations_loop): Likewise.
38770         (estimated_loop_iterations): Take a widest_int pointer than than
38771         a double_int pointer.
38772         (estimated_loop_iterations_int): Use wide-int interfaces.
38773         (max_loop_iterations): Take a widest_int pointer than than
38774         a double_int pointer.
38775         (max_loop_iterations_int): Use wide-int interfaces.
38776         (max_stmt_executions): Take a widest_int pointer than than
38777         a double_int pointer.
38778         (estimated_stmt_executions): Likewise.
38779         (n_of_executions_at_most): Use wide-int interfaces.
38780         (scev_probably_wraps_p): Likewise.
38781         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
38782         to real_to_integer.
38783         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
38784         interfaces.
38785         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
38786         double_ints.  Adjust for trailing_wide_ints <3> representation.
38787         (set_nonzero_bits): Likewise.
38788         (get_range_info): Return wide_ints rather than double_ints.
38789         Adjust for trailing_wide_ints <3> representation.
38790         (get_nonzero_bits): Likewise.
38791         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
38792         representation.
38793         * tree-ssanames.h (struct range_info_def): Replace min, max and
38794         nonzero_bits with a trailing_wide_ints <3>.
38795         (set_range_info): Use wide_int_refs rather than double_ints.
38796         (set_nonzero_bits): Likewise.
38797         (get_range_info): Return wide_ints rather than double_ints.
38798         (get_nonzero_bits): Likewise.
38799         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
38800         * tree-ssa-pre.c (phi_translate_1): Likewise.
38801         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
38802         (acceptable_pow_call): Likewise.
38803         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
38804         interfaces.
38805         (vn_reference_fold_indirect): Likewise.
38806         (vn_reference_maybe_forwprop_address): Likewise.
38807         (valueize_refs_1): Likewise.
38808         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
38809         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
38810         tree_int_cst_lt and tree_int_cst_le.
38811         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
38812         interfaces.
38813         (streamer_alloc_tree): Likewise.
38814         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
38815         (streamer_write_tree_header): Likewise.
38816         (streamer_write_integer_cst): Likewise.
38817         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
38818         (build_constructors): Likewise.
38819         (array_value_type): Likewise.
38820         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
38821         (vect_check_gather): Likewise.
38822         * tree-vect-generic.c (build_replicated_const): Likewise.
38823         (expand_vector_divmod): Likewise.
38824         * tree-vect-loop.c (vect_transform_loop): Likewise.
38825         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
38826         (vect_do_peeling_for_alignment): Likewise.
38827         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
38828         * tree-vrp.c: Include wide-int.h.
38829         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
38830         (extract_range_from_assert): Use wide-int interfaces.
38831         (vrp_int_const_binop): Likewise.
38832         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
38833         double_int pointers.
38834         (ranges_from_anti_range): Use wide-int interfaces.
38835         (quad_int_cmp): Delete.
38836         (quad_int_pair_sort): Likewise.
38837         (extract_range_from_binary_expr_1): Use wide-int interfaces.
38838         (extract_range_from_unary_expr_1): Likewise.
38839         (adjust_range_with_scev): Likewise.
38840         (masked_increment): Take and return wide_ints rather than double_ints.
38841         (register_edge_assert_for_2): Use wide-int interfaces.
38842         (check_array_ref): Likewise.
38843         (search_for_addr_array): Likewise.
38844         (maybe_set_nonzero_bits): Likewise.
38845         (union_ranges): Pass an integer of the correct type instead of
38846         using integer_one_node.
38847         (intersect_ranges): Likewise.
38848         (simplify_truth_ops_using_ranges): Likewise.
38849         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
38850         (range_fits_type_p): Likewise.
38851         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
38852         a bool.
38853         (simplify_conversion_using_ranges): Use wide-int interfaces.
38854         (simplify_float_conversion_using_ranges): Likewise.
38855         (vrp_finalize): Likewise.
38856         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
38857         (gimple_stringops_transform): Likewise.
38858         * varasm.c (decode_addr_const): Likewise.
38859         (const_hash_1): Likewise.
38860         (const_rtx_hash_1): Likewise
38861         (output_constant): Likewise.
38862         (array_size_for_constructor): Likewise.
38863         (output_constructor_regular_field): Likewise.
38864         (output_constructor_bitfield): Likewise.
38865         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
38866         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
38867         GENERATOR_FILEs.
38868         * gencheck.c: Define BITS_PER_UNIT.
38869         * wide-int.cc: New.
38870         * wide-int.h: New.
38871         * wide-int-print.cc: New.
38872         * wide-int-print.h: New.
38873
38874 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38875
38876         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
38877
38878 2014-05-06  Richard Biener  <rguenther@suse.de>
38879
38880         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
38881         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
38882         (TODO_verify_all): Adjust.
38883         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
38884         TODO_verify_stmts and TODO_verify_rtl_sharing.
38885         * bb-reorder.c: Likewise.
38886         * cfgexpand.c: Likewise.
38887         * cprop.c: Likewise.
38888         * cse.c: Likewise.
38889         * function.c: Likewise.
38890         * fwprop.c: Likewise.
38891         * gcse.c: Likewise.
38892         * gimple-ssa-isolate-paths.c: Likewise.
38893         * gimple-ssa-strength-reduction.c: Likewise.
38894         * ipa-split.c: Likewise.
38895         * loop-init.c: Likewise.
38896         * loop-unroll.c: Likewise.
38897         * lower-subreg.c: Likewise.
38898         * modulo-sched.c: Likewise.
38899         * postreload-gcse.c: Likewise.
38900         * predict.c: Likewise.
38901         * recog.c: Likewise.
38902         * sched-rgn.c: Likewise.
38903         * store-motion.c: Likewise.
38904         * tracer.c: Likewise.
38905         * trans-mem.c: Likewise.
38906         * tree-call-cdce.c: Likewise.
38907         * tree-cfg.c: Likewise.
38908         * tree-cfgcleanup.c: Likewise.
38909         * tree-complex.c: Likewise.
38910         * tree-eh.c: Likewise.
38911         * tree-emutls.c: Likewise.
38912         * tree-if-conv.c: Likewise.
38913         * tree-into-ssa.c: Likewise.
38914         * tree-loop-distribution.c: Likewise.
38915         * tree-object-size.c: Likewise.
38916         * tree-parloops.c: Likewise.
38917         * tree-pass.h: Likewise.
38918         * tree-sra.c: Likewise.
38919         * tree-ssa-ccp.c: Likewise.
38920         * tree-ssa-copy.c: Likewise.
38921         * tree-ssa-copyrename.c: Likewise.
38922         * tree-ssa-dce.c: Likewise.
38923         * tree-ssa-dom.c: Likewise.
38924         * tree-ssa-dse.c: Likewise.
38925         * tree-ssa-forwprop.c: Likewise.
38926         * tree-ssa-ifcombine.c: Likewise.
38927         * tree-ssa-loop-ch.c: Likewise.
38928         * tree-ssa-loop-ivcanon.c: Likewise.
38929         * tree-ssa-loop.c: Likewise.
38930         * tree-ssa-math-opts.c: Likewise.
38931         * tree-ssa-phiopt.c: Likewise.
38932         * tree-ssa-phiprop.c: Likewise.
38933         * tree-ssa-pre.c: Likewise.
38934         * tree-ssa-reassoc.c: Likewise.
38935         * tree-ssa-sink.c: Likewise.
38936         * tree-ssa-strlen.c: Likewise.
38937         * tree-ssa-tail-merge.c: Likewise.
38938         * tree-ssa-uncprop.c: Likewise.
38939         * tree-switch-conversion.c: Likewise.
38940         * tree-tailcall.c: Likewise.
38941         * tree-vect-generic.c: Likewise.
38942         * tree-vectorizer.c: Likewise.
38943         * tree-vrp.c: Likewise.
38944         * tsan.c: Likewise.
38945         * var-tracking.c: Likewise.
38946         * bt-load.c: Likewise.
38947         * cfgcleanup.c: Likewise.
38948         * combine-stack-adj.c: Likewise.
38949         * combine.c: Likewise.
38950         * compare-elim.c: Likewise.
38951         * config/epiphany/resolve-sw-modes.c: Likewise.
38952         * config/i386/i386.c: Likewise.
38953         * config/mips/mips.c: Likewise.
38954         * config/s390/s390.c: Likewise.
38955         * config/sh/sh_treg_combine.cc: Likewise.
38956         * config/sparc/sparc.c: Likewise.
38957         * dce.c: Likewise.
38958         * dse.c: Likewise.
38959         * final.c: Likewise.
38960         * ifcvt.c: Likewise.
38961         * mode-switching.c: Likewise.
38962         * passes.c: Likewise.
38963         * postreload.c: Likewise.
38964         * ree.c: Likewise.
38965         * reg-stack.c: Likewise.
38966         * regcprop.c: Likewise.
38967         * regrename.c: Likewise.
38968         * web.c: Likewise.
38969
38970 2014-05-06  Richard Biener  <rguenther@suse.de>
38971
38972         PR middle-end/61070
38973         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
38974         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
38975
38976 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
38977
38978         PR ipa/60965
38979         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
38980
38981 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
38982             Tom de Vries  <tom@codesourcery.com>
38983
38984         * target.def (call_fusage_contains_non_callee_clobbers): New
38985         DEFHOOKPOD.
38986         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
38987         Hooks to @menu.
38988         (@node Miscellaneous Register Hooks): New node.
38989         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
38990         * doc/tm.texi: Regenerate.
38991
38992 2014-05-05  Marek Polacek  <polacek@redhat.com>
38993
38994         PR driver/61065
38995         * opts.c (common_handle_option): Call error_at instead of warning_at.
38996
38997 2014-05-05  Richard Biener  <rguenther@suse.de>
38998
38999         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
39000         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
39001         under the TODO_verify_il umbrella.
39002
39003 2014-05-05  Richard Biener  <rguenther@suse.de>
39004
39005         * passes.c (execute_function_todo): Move TODO_verify_flow under
39006         the TODO_verify_ul umbrella.
39007
39008 2014-05-05  Richard Biener  <rguenther@suse.de>
39009
39010         PR middle-end/61010
39011         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
39012         X & CST away from a CST that is the mask of a mode.
39013
39014 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
39015
39016         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
39017         int argument to enum machine_mode.
39018         (picochip_class_max_nregs): Ditto.
39019         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
39020         (picochip_class_max_nregs): Ditto.
39021
39022 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39023
39024         * target.def: Add new target hook.
39025         * doc/tm.texi: Regenerate.
39026         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
39027         * targhooks.c (default_keep_leaf_when_profiled): New function.
39028
39029         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
39030         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
39031
39032 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
39033
39034         PR tree-optimization/60363
39035         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
39036         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
39037         (update_destination_phis): New parameter.
39038         (create_edge_and_update_destination_phis): Ditto.
39039         (ssa_fix_duplicate_block_edges): Pass new arguments.
39040         (thread_single_edge): Ditto.
39041
39042 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
39043
39044         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
39045         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
39046         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
39047         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
39048         Use RS6000_BTM_HARD_FLOAT.
39049         (BU_MISC_2): Likewise.
39050         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
39051         RS6000_BTM_HARD_FLOAT.
39052         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
39053         is explicitly used.
39054         (rs6000_invalid_builtin): Add hard floating builtin support.
39055         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
39056         hard float builtins.
39057         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
39058
39059 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
39060
39061         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
39062         Add missing function* argument.
39063
39064 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
39065
39066         * lra-constraints.c (valid_address_p): Move earlier in file.
39067         Add a constraint argument to the address_info version.
39068         (satisfies_memory_constraint_p): New function.
39069         (satisfies_address_constraint_p): Likewise.
39070         (process_alt_operands, curr_insn_transform): Use them.
39071         (process_address): Pass the constraint to valid_address_p when
39072         checking address operands.
39073
39074 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
39075
39076         * config/mips/mips.c (mips_isa_rev): New variable.
39077         (mips_set_architecture): Set it.
39078         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
39079         from mips_isa_rev.
39080         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
39081         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
39082         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
39083         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
39084         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
39085         conditions in terms of mips_isa_rev.
39086         (mips_isa_rev): Declare.
39087
39088 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
39089
39090         * config/sh/sh-mem.cc: Use tabs instead of spaces.
39091         (prob_unlikely, prob_likely): Make variables const.
39092
39093 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
39094
39095         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
39096
39097 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
39098
39099         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
39100
39101 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
39102
39103         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
39104         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
39105         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
39106         functions.
39107         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
39108         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
39109         sh_pass_in_reg_p.
39110         Replace usage of ROUND_REG with sh_round_reg.
39111         Use CEIL instead of ROUND_ADVANCE.
39112
39113 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
39114
39115         PR target/61026
39116         * config/sh/sh.c: Include stdlib headers before everything else.
39117
39118 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
39119
39120         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
39121         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
39122         (gimplify_adjust_omp_clauses): Simd region is never
39123         directly nested in combined parallel.  Instead, for linear
39124         with copyin/copyout, if in combined for simd loop, make decl
39125         firstprivate/lastprivate on OMP_FOR.
39126         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
39127         expand_omp_for_static_chunk): When setting endvar, also set
39128         fd->loop.v to the same value.
39129
39130 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
39131
39132         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
39133
39134 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
39135
39136         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
39137         expression.
39138
39139 2014-05-02  Marek Polacek  <polacek@redhat.com>
39140
39141         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
39142
39143 2014-05-02  Kito Cheng  <kito@0xlab.org>
39144
39145         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
39146         to a C expression marco.
39147         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
39148         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
39149         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
39150         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
39151         HONOR_REG_ALLOC_ORDER.
39152         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
39153
39154 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
39155
39156         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
39157
39158 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
39159
39160         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
39161
39162 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
39163
39164         * tree-if-conv.c (is_cond_scalar_reduction): New function.
39165         (convert_scalar_cond_reduction): Likewise.
39166         (predicate_scalar_phi): Add recognition and transformation
39167         of simple conditioanl reduction to be vectorizable.
39168
39169 2014-05-01  Marek Polacek  <polacek@redhat.com>
39170
39171         PR c/43245
39172         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
39173
39174 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
39175
39176         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
39177         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
39178         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
39179         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
39180         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
39181         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
39182         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
39183         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
39184
39185 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
39186
39187         * config/arc/arc.opt (mlra): Move comment above option name
39188         to avoid mis-parsing as language options.
39189
39190 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39191
39192         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
39193         * config/sol2.h: ... here.
39194         * config/sol2-10.h: Remove.
39195
39196         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
39197         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
39198         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
39199         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
39200         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
39201         * config/sol2.h: ... here.
39202         (SECTION_NAME_FORMAT): Don't redefine.
39203         (STARTFILE_ARCH32_SPEC): Rename to ...
39204         (STARTFILE_ARCH_SPEC): ... this.
39205         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
39206         * config/sparc/sol2.h: ... here.
39207         (SECTION_NAME_FORMAT): Don't undef.
39208         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
39209         (SUBTARGET_EXTRA_SPECS): Remove.
39210         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
39211
39212         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
39213         (MD_STARTFILE_PREFIX): Remove.
39214         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
39215         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
39216         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
39217         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
39218         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
39219         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
39220         * config/i386/sol2.h: ... here.
39221         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
39222         * config/i386/sol2-bi.h: Remove.
39223         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
39224         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
39225
39226         * config/i386/t-sol2-64: Rename to ...
39227         * config/i386/t-sol2: ... this.
39228         * config/sparc/t-sol2-64: Rename to ...
39229         * config/sparc/t-sol2: ... this.
39230
39231         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
39232         sol2_tm_file_head, sol2_tm_file_tail.
39233         Include ${cpu_type}/sol2.h before sol2.h.
39234         Remove sol2-10.h.
39235         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
39236         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
39237         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
39238         Reflect i386/t-sol2-64 renaming.
39239         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
39240         Reflect sparc/t-sol2-64 renaming.
39241
39242 2014-04-30  Richard Biener  <rguenther@suse.de>
39243
39244         * passes.c (execute_function_todo): Move TODO_verify_stmts
39245         and TODO_verify_ssa under the TODO_verify_il umbrella.
39246         * tree-ssa.h (verify_ssa): Adjust prototype.
39247         * tree-ssa.c (verify_ssa): Add parameter to tell whether
39248         we should verify SSA operands.
39249         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
39250         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
39251         whether we should verify whether not throwing stmts have EH info.
39252         * graphite-scop-detection.c (create_sese_edges): Adjust.
39253         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
39254         * tree-eh.c (lower_try_finally_switch): Do not add the
39255         default case label twice.
39256
39257 2014-04-30  Marek Polacek  <polacek@redhat.com>
39258
39259         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
39260         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
39261         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
39262         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
39263
39264 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
39265
39266         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
39267         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
39268         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
39269         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
39270         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
39271         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
39272         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
39273         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
39274
39275 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
39276
39277         * tree-cfg.c (dump_function_to_file): Dump the return type of
39278         functions, in a line to itself before the function body, mimicking
39279         the layout of a C function.
39280
39281 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
39282
39283         PR tree-optimization/60971
39284         * tree-tailcall.c (process_assignment): Reject conversions which
39285         reduce precision.
39286
39287 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
39288
39289         * calls.c (initialize_argument_information): Always treat
39290         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
39291         (expand_call): Likewise.
39292         (emit_library_call_calue_1): Likewise.
39293         * expr.c (PUSH_ARGS_REVERSED): Do not define.
39294         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
39295         code accordingly.
39296
39297 2014-04-29  Nick Clifton  <nickc@redhat.com>
39298
39299         * config/msp430/msp430.md (umulsidi): Fix typo.
39300         (mulhisi3): Enable even inside interrupt handlers.
39301         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
39302         bigger return address pushed in large mode.
39303
39304 2014-04-29  Nick Clifton  <nickc@redhat.com>
39305
39306         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
39307         (arc_init_reg_tables): Use a machine_mode enum to iterate over
39308         available modes.
39309         * config/m32r/m32r.c (init_reg_tables): Likewise.
39310         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
39311         enum to hold the modes.
39312
39313 2014-04-29  Richard Biener  <rguenther@suse.de>
39314
39315         * dominance.c (free_dominance_info): Add overload with
39316         function parameter.
39317         (dom_info_state): Likewise.
39318         (dom_info_available_p): Likewise.
39319         * basic-block.h (free_dominance_info, dom_info_state,
39320         dom_info_available_p): Declare overloads.
39321         * passes.c (execute_function_todo): Verify that verifiers
39322         don't change dominator info state.  Drop dominator info
39323         for IPA pass invocations.
39324         * cgraph.c (release_function_body): Restore asserts that
39325         dominator information is released.
39326
39327 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
39328
39329         * doc/invoke.texi: Fix typo.
39330         * tree-vrp.c: Fix typos.
39331         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
39332
39333 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
39334
39335         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
39336
39337 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
39338
39339         * config/aarch64/aarch64-builtins.c
39340         (aarch64_types_storestruct_lane_qualifiers): New.
39341         (TYPES_STORESTRUCT_LANE): Likewise.
39342         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
39343         (st3_lane): Likewise.
39344         (st4_lane): Likewise.
39345         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
39346         (vec_store_lanesci_lane<mode>): Likewise.
39347         (vec_store_lanesxi_lane<mode>): Likewise.
39348         (aarch64_st2_lane<VQ:mode>): Likewise.
39349         (aarch64_st3_lane<VQ:mode>): Likewise.
39350         (aarch64_st4_lane<VQ:mode>): Likewise.
39351         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
39352         * config/aarch64/arm_neon.h
39353         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
39354         use new macro arguments.
39355         (__ST3_LANE_FUNC): Likewise.
39356         (__ST4_LANE_FUNC): Likewise.
39357         * config/aarch64/iterators.md (V_TWO_ELEM): New.
39358         (V_THREE_ELEM): Likewise.
39359         (V_FOUR_ELEM): Likewise.
39360
39361 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
39362
39363         * doc/gimple.texi: Replace the description of the now-defunct
39364         union gimple_statement_d with a diagram showing the
39365         gimple_statement_base class hierarchy and its relationships to
39366         the GSS_ and GIMPLE_ enums.
39367
39368 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
39369
39370         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
39371         * config/aarch64/aarch64.c
39372         (aarch64_cannot_change_mode_class): Weaken conditions.
39373         (aarch64_modes_tieable_p): New.
39374         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
39375
39376 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
39377
39378         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
39379         (loadsync_<mode>): Change mode.
39380         (load_quadpti, store_quadpti): New.
39381         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
39382         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
39383
39384 2014-04-28  Martin Jambor  <mjambor@suse.cz>
39385
39386         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
39387         same alias type as the original statement.
39388         (subreplacement_assignment_data): New type.
39389         (handle_unscalarized_data_in_subtree): New type of parameter,
39390         generate new memory accesses with same alias type as the original
39391         statement.
39392         (load_assign_lhs_subreplacements): Likewise.
39393         (sra_modify_constructor_assign): Generate new memory accesses with
39394         same alias type as the original statement.
39395
39396 2014-04-28  Richard Biener  <rguenther@suse.de>
39397
39398         * tree-pass.h (TODO_verify_il): Define.
39399         (TODO_verify_all): Complete properly.
39400         * passes.c (execute_function_todo): Move existing loop-closed
39401         SSA verification under TODO_verify_il.
39402         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
39403         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
39404         Fix tree sharing issue.
39405
39406 2014-04-28  Richard Biener  <rguenther@suse.de>
39407
39408         PR middle-end/60092
39409         * builtins.def (DEF_C11_BUILTIN): Add.
39410         (BUILT_IN_ALIGNED_ALLOC): Likewise.
39411         * coretypes.h (enum function_class): Add function_c11_misc.
39412         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
39413         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
39414         (call_may_clobber_ref_p_1): Likewise.
39415         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
39416         (mark_all_reaching_defs_necessary_1): Likewise.
39417         (propagate_necessity): Likewise.
39418         (eliminate_unnecessary_stmts): Likewise.
39419         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
39420
39421 2014-04-28  Richard Biener  <rguenther@suse.de>
39422
39423         * tree-vrp.c (vrp_var_may_overflow): Remove.
39424         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
39425         with overflow immediately bump to one before that value and
39426         let iteration figure out overflow status.
39427
39428 2014-04-28  Richard Biener  <rguenther@suse.de>
39429
39430         * configure.ac: Do valgrind header checks unconditionally.
39431         Add --enable-valgrind-annotations.
39432         * system.h: Guard valgrind header inclusion with
39433         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
39434         * alloc-pool.c (pool_alloc, pool_free): Use
39435         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
39436         to guard possibly dead code.
39437         * config.in: Regenerated.
39438         * configure: Likewise.
39439
39440 2014-04-28  Jeff Law  <law@redhat.com>
39441
39442         PR tree-optimization/60902
39443         * tree-ssa-threadedge.c
39444         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
39445         over real defs when invalidating outputs from statements that do not
39446         produce useful outputs for threading.
39447
39448 2014-04-28  Richard Biener  <rguenther@suse.de>
39449
39450         PR tree-optimization/60979
39451         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
39452         SCOPs that end in a block with a successor with abnormal
39453         predecessors.
39454
39455 2014-04-28  Richard Biener  <rguenther@suse.de>
39456
39457         * tree-pass.h (execute_pass_list): Adjust prototype.
39458         * passes.c (pass_manager::execute_early_local_passes): Adjust.
39459         (do_per_function): Change callback signature, push all actual
39460         work to the callbals.
39461         (do_per_function_toporder): Likewise.
39462         (execute_function_dump): Adjust.
39463         (execute_function_todo): Likewise.
39464         (clear_last_verified): Likewise.
39465         (verify_curr_properties): Likewise.
39466         (update_properties_after_pass): Likewise.
39467         (execute_pass_list_1): Split out from ...
39468         (execute_pass_list): ... here.  Adjust.
39469         (execute_ipa_pass_list): Likewise.
39470         * cgraphunit.c (cgraph_add_new_function): Adjust.
39471         (analyze_function): Likewise.
39472         (expand_function): Likewise.
39473         * cgraph.c (release_function_body): Free dominance info
39474         here instead of asserting it was magically freed elsewhere.
39475
39476 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
39477
39478         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
39479         * configure: Regenerate.
39480         * config/sparc/sparc.opt (muser-mode): New option.
39481         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
39482         for LEON3.
39483         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
39484         * doc/invoke.texi (SPARC options): Document -muser-mode.
39485
39486 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
39487
39488         * cselib.c (find_slot_memmode): Delete.
39489         (cselib_hasher): Change compare_type to a struct.
39490         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
39491         constants.
39492         (preserve_constants_and_equivs): Adjust for new compare_type.
39493         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
39494         (wrap_constant): Delete.
39495         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
39496
39497 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
39498
39499         * doc/install.texi (Building with profile feedback): Remove
39500         outdated sentence.
39501
39502 2014-04-26  Tom de Vries  <tom@codesourcery.com>
39503
39504         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
39505         array accesses.
39506
39507 2014-04-25  Cary Coutant  <ccoutant@google.com>
39508
39509         PR debug/60929
39510         * dwarf2out.c (should_move_die_to_comdat): A type definition
39511         can contain a subprogram definition, but don't move it to a
39512         comdat unit.
39513         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
39514         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
39515         from original DIE.
39516         (clone_tree_hash): Rename to...
39517         (clone_tree_partial): ...this; change callers.  Copy
39518         DW_TAG_subprogram DIEs as declarations.
39519         (copy_decls_walk): Don't copy children of a declaration into a
39520         type unit.
39521
39522 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
39523
39524         PR target/60969
39525         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
39526         alternative 12.
39527
39528 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
39529
39530         * config/arm/predicates.md (call_insn_operand): Add long_call check.
39531         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
39532         reg for long_call.
39533         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
39534         restriction.
39535
39536 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39537
39538         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
39539
39540 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
39541
39542         PR tree-optimization/60930
39543         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
39544         creating a multiply candidate by folding two constant
39545         multiplicands when the result overflows.
39546
39547 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
39548
39549         PR tree-optimization/60960
39550         * tree-vect-generic.c (expand_vector_operation): Only call
39551         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
39552
39553 2014-04-25  Tom de Vries  <tom@codesourcery.com>
39554
39555         * expr.c (clobber_reg_mode): New function.
39556         * expr.h (clobber_reg): New function.
39557
39558 2014-04-25  Tom de Vries  <tom@codesourcery.com>
39559
39560         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
39561         clobbers.
39562
39563 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
39564             Tom de Vries  <tom@codesourcery.com>
39565
39566         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
39567         handle.
39568         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
39569         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
39570         new argument to find_all_hard_reg_sets call.
39571
39572 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39573
39574         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
39575         Use HOST_WIDE_INT_C for mask literal.
39576         (aarch_rev16_shleft_mask_imm_p): Likewise.
39577
39578 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
39579
39580         PR target/60941
39581         * config/sparc/sparc.md (ashlsi3_extend): Delete.
39582
39583 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
39584
39585         PR preprocessor/56540
39586         * config/i386/i386-c.c (ix86_target_macros): Define
39587         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
39588
39589 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39590
39591         * configure.ac (tga_func): Remove.
39592         (LIB_TLS_SPEC): Remove.
39593         * configure: Regenerate.
39594         * config.in: Regenerate.
39595         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
39596
39597 2014-04-25  Richard Biener  <rguenther@suse.de>
39598
39599         PR ipa/60912
39600         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
39601         call stmt use/clobber sets during stmt walk instead of
39602         walking the possibly incomplete set of caller edges.
39603
39604 2014-04-25  Richard Biener  <rguenther@suse.de>
39605
39606         PR ipa/60911
39607         * passes.c (apply_ipa_transforms): Inline into only caller ...
39608         (execute_one_pass): ... here.  Properly bring in function
39609         bodies for nodes we want to apply IPA transforms to.
39610
39611 2014-04-24  Cong Hou  <congh@google.com>
39612
39613         PR tree-optimization/60896
39614         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
39615         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
39616         (vect_mark_pattern_stmts): Set the def type of all statements in
39617         PATTERN_DEF_SEQ as vect_internal_def.
39618
39619 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
39620
39621         * doc/extend.texi (PowerPC Built-in Functions): Document new
39622         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
39623         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
39624
39625         * config/rs6000/predicates.md (const_0_to_3_operand): New
39626         predicate to match 0..3 integer constants.
39627
39628         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
39629         to support adding miscellaneous builtin functions.
39630         (BU_DFP_MISC_2): Likewise.
39631         (BU_P7_MISC_1): Likewise.
39632         (BU_P7_MISC_2): Likewise.
39633         (BU_P8V_MISC_3): Likewise.
39634         (BU_MISC_1): Likewise.
39635         (BU_MISC_2): Likewise.
39636         (DIVWE): Add extended divide builtin functions.
39637         (DIVWEO): Likewise.
39638         (DIVWEU): Likewise.
39639         (DIVWEUO): Likewise.
39640         (DIVDE): Likewise.
39641         (DIVDEO): Likewise.
39642         (DIVDEU): Likewise.
39643         (DIVDEUO): Likewise.
39644         (DXEX): Add decimal floating-point builtin functions.
39645         (DXEXQ): Likewise.
39646         (DDEDPD): Likewise.
39647         (DDEDPDQ): Likewise.
39648         (DENBCD): Likewise.
39649         (DENBCDQ): Likewise.
39650         (DIEX): Likewise.
39651         (DIEXQ): Likewise.
39652         (DSCLI): Likewise.
39653         (DSCLIQ): Likewise.
39654         (DSCRI): Likewise.
39655         (DSCRIQ): Likewise.
39656         (CDTBCD): Add new BCD builtin functions.
39657         (CBCDTD): Likewise.
39658         (ADDG6S): Likewise.
39659         (BCDADD): Likewise.
39660         (BCDADD_LT): Likewise.
39661         (BCDADD_EQ): Likewise.
39662         (BCDADD_GT): Likewise.
39663         (BCDADD_OV): Likewise.
39664         (BCDSUB): Likewise.
39665         (BCDSUB_LT): Likewise.
39666         (BCDSUB_EQ): Likewise.
39667         (BCDSUB_GT): Likewise.
39668         (BCDSUB_OV): Likewise.
39669         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
39670         (UNPACK_TD): Likewise.
39671         (PACK_TF): Likewise.
39672         (UNPACK_TF): Likewise.
39673         (UNPACK_TF_0): Likewise.
39674         (UNPACK_TF_1): Likewise.
39675         (PACK_V1TI): Likewise.
39676         (UNPACK_V1TI): Likewise.
39677
39678         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
39679         support for decimal floating point builtin functions.
39680         (rs6000_expand_ternop_builtin): Add checks for the new builtin
39681         functions that take constant arguments.
39682         (rs6000_invalid_builtin): Add decimal floating point builtin support.
39683         (rs6000_init_builtins): Setup long double, _Decimal64, and
39684         _Decimal128 types for new builtin functions.
39685         (builtin_function_type): Set the unsigned flags appropriately for
39686         the new builtin functions.
39687         (rs6000_opt_masks): Add support for decimal floating point builtin
39688         functions.
39689
39690         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
39691         floating point builtin functions.
39692         (RS6000_BTM_COMMON): Likewise.
39693         (RS6000_BTI_long_double): Likewise.
39694         (RS6000_BTI_dfloat64): Likewise.
39695         (RS6000_BTI_dfloat128): Likewise.
39696         (long_double_type_internal_node): Likewise.
39697         (dfloat64_type_internal_node): Likewise.
39698         (dfloat128_type_internal_node): Likewise.
39699
39700         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
39701         2.07 bcd arithmetic instructions.
39702         (UNSPEC_BCDSUB): Likewise.
39703         (UNSPEC_BCD_OVERFLOW): Likewise.
39704         (UNSPEC_BCD_ADD_SUB): Likewise.
39705         (bcd_add_sub): Likewise.
39706         (BCD_TEST): Likewise.
39707         (bcd<bcd_add_sub>): Likewise.
39708         (bcd<bcd_add_sub>_test): Likewise.
39709         (bcd<bcd_add_sub>_test2): Likewise.
39710         (bcd<bcd_add_sub>_<code>): Likewise.
39711         (peephole2 for combined bcd ops): Likewise.
39712
39713         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
39714         decimal floating point builtin functions.
39715         (UNSPEC_DENBCD): Likewise.
39716         (UNSPEC_DXEX): Likewise.
39717         (UNSPEC_DIEX): Likewise.
39718         (UNSPEC_DSCLI): Likewise.
39719         (UNSPEC_DSCRI): Likewise.
39720         (D64_D128): Likewise.
39721         (dfp_suffix): Likewise.
39722         (dfp_ddedpd_<mode>): Likewise.
39723         (dfp_denbcd_<mode>): Likewise.
39724         (dfp_dxex_<mode>): Likewise.
39725         (dfp_diex_<mode>): Likewise.
39726         (dfp_dscli_<mode>): Likewise.
39727         (dfp_dscri_<mode>): Likewise.
39728
39729         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
39730         builtin functions.
39731         (UNSPEC_CDTBCD): Likewise.
39732         (UNSPEC_CBCDTD): Likewise.
39733         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
39734         (UNSPEC_DIVEO): Likewise.
39735         (UNSPEC_DIVEU): Likewise.
39736         (UNSPEC_DIVEUO): Likewise.
39737         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
39738         pack/unpack 128-bit types.
39739         (UNSPEC_PACK_128BIT): Likewise.
39740         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
39741         (udiv<mode>3): Use idiv_ldiv mode attribute.
39742         (div<mode>3): Likewise.
39743         (addg6s): Add new BCD builtin functions.
39744         (cdtbcd): Likewise.
39745         (cbcdtd): Likewise.
39746         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
39747         (div_extend): Likewise.
39748         (div<div_extend>_<mode>"): Likewise.
39749         (FP128_64): Add support for new builtin functions to pack/unpack
39750         128-bit types.
39751         (unpack<mode>): Likewise.
39752         (unpacktf_0): Likewise.
39753         (unpacktf_1): Likewise.
39754         (unpack<mode>_dm): Likewise.
39755         (unpack<mode>_nodm): Likewise.
39756         (pack<mode>): Likewise.
39757         (unpackv1ti): Likewise.
39758         (packv1ti): Likewise.
39759
39760 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
39761
39762         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
39763         is disabled.
39764
39765 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
39766
39767         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
39768         * gimplify.c (omp_is_private): Change last argument's type to int.
39769         Only diagnose lastprivate if the simd argument is 1, only diagnose
39770         linear if the simd argument is 2.
39771         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
39772         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
39773         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
39774         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
39775         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
39776         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
39777         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
39778         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
39779         * tree-nested.c (convert_nonlocal_omp_clauses,
39780         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
39781
39782 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
39783
39784         PR target/60822
39785         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
39786         operand 1.
39787
39788 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
39789
39790         * flag-types.h (enum ivar_visibility): Add.
39791
39792 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
39793
39794         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
39795         function * argument.
39796
39797 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
39798
39799         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
39800
39801 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
39802             Tom de Vries  <tom@codesourcery.com>
39803
39804         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
39805         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
39806         reg-note.
39807         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
39808         * emit-rtl.c (try_split): Same.
39809
39810 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
39811             Tom de Vries  <tom@codesourcery.com>
39812
39813         * common.opt (fuse-caller-save): New option.
39814
39815 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
39816
39817         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
39818         elements for big-endian.
39819
39820 2014-04-24  Richard Biener  <rguenther@suse.de>
39821
39822         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
39823         during TER and instead use the sepops interface for expanding
39824         non-GIMPLE_SINGLE_RHS.
39825
39826 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39827
39828         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
39829         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
39830
39831 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39832
39833         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
39834         assembler 64-bit option.
39835         * configure: Regenerate.
39836
39837 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39838
39839         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
39840         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
39841         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
39842         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
39843         (TARGET_CRYPTO): Take TARGET_SIMD into account.
39844
39845 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39846
39847         * config/aarch64/aarch64-builtins.c
39848         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
39849         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
39850         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
39851         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
39852         builtins.
39853         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
39854         (Vrevsuff): New mode attribute.
39855
39856 2014-04-24  Terry Guo  <terry.guo@arm.com>
39857
39858         * config/arm/arm.h (machine_function): Define variable
39859         after_arm_reorg here.
39860         * config/arm/arm.c (after_arm_reorg): Remove the definition.
39861         (arm_split_constant): Update the way to access variable
39862         after_arm_reorg.
39863         (arm_reorg): Ditto.
39864         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
39865
39866 2014-04-23  Tom de Vries  <tom@codesourcery.com>
39867
39868         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
39869
39870 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
39871
39872         * is-a.h: Update comments to reflect the following changes to the
39873         "pointerness" of the API, making the template parameter match the
39874         return type, allowing use of is-a.h with typedefs of pointers.
39875         (is_a_helper::cast): Return a T rather then a pointer to a T, so
39876         that the return type matches the parameter to the is_a_helper.
39877         (as_a): Likewise.
39878         (dyn_cast): Likewise.
39879
39880         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
39881         pointer from the is-a.h API.
39882
39883         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
39884         (is_a_helper <cgraph_node *>::test): ...this, matching change to
39885         is-a.h API.
39886         (is_a_helper <varpool_node>::test): Likewise, convert to...
39887         (is_a_helper <varpool_node *>::test): ...this.
39888
39889         (varpool_first_variable): Update for removal of implicit pointer
39890         from the is-a.h API.
39891         (varpool_next_variable): Likewise.
39892         (varpool_first_static_initializer): Likewise.
39893         (varpool_next_static_initializer): Likewise.
39894         (varpool_first_defined_variable): Likewise.
39895         (varpool_next_defined_variable): Likewise.
39896         (cgraph_first_defined_function): Likewise.
39897         (cgraph_next_defined_function): Likewise.
39898         (cgraph_first_function): Likewise.
39899         (cgraph_next_function): Likewise.
39900         (cgraph_first_function_with_gimple_body): Likewise.
39901         (cgraph_next_function_with_gimple_body): Likewise.
39902         (cgraph_alias_target): Likewise.
39903         (varpool_alias_target): Likewise.
39904         (cgraph_function_or_thunk_node): Likewise.
39905         (varpool_variable_node): Likewise.
39906         (symtab_real_symbol_p): Likewise.
39907         * cgraphunit.c (referred_to_p): Likewise.
39908         (analyze_functions): Likewise.
39909         (handle_alias_pairs): Likewise.
39910         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
39911         * gimple-ssa.h (gimple_vuse_op): Likewise.
39912         (gimple_vdef_op): Likewise.
39913         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
39914         * gimple.c (gimple_build_asm_1): Likewise.
39915         (gimple_build_try): Likewise.
39916         (gimple_build_resx): Likewise.
39917         (gimple_build_eh_dispatch): Likewise.
39918         (gimple_build_omp_for): Likewise.
39919         (gimple_omp_for_set_clauses): Likewise.
39920
39921         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
39922         (is_a_helper <gimple_statement_asm *>::test): ...this.
39923         (is_a_helper <gimple_statement_bind>::test): Convert to...
39924         (is_a_helper <gimple_statement_bind *>::test): ...this.
39925         (is_a_helper <gimple_statement_call>::test): Convert to...
39926         (is_a_helper <gimple_statement_call *>::test): ...this.
39927         (is_a_helper <gimple_statement_catch>::test): Convert to...
39928         (is_a_helper <gimple_statement_catch *>::test): ...this.
39929         (is_a_helper <gimple_statement_resx>::test): Convert to...
39930         (is_a_helper <gimple_statement_resx *>::test): ...this.
39931         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
39932         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
39933         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
39934         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
39935         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
39936         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
39937         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
39938         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
39939         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
39940         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
39941         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
39942         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
39943         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
39944         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
39945         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
39946         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
39947         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
39948         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
39949         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
39950         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
39951         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
39952         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
39953         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
39954         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
39955         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
39956         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
39957         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
39958         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
39959         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
39960         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
39961         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
39962         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
39963         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
39964         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
39965         (is_a_helper <gimple_statement_phi>::test): Convert to...
39966         (is_a_helper <gimple_statement_phi *>::test): ...this.
39967         (is_a_helper <gimple_statement_transaction>::test): Convert to...
39968         (is_a_helper <gimple_statement_transaction *>::test): ...this.
39969         (is_a_helper <gimple_statement_try>::test): Convert to...
39970         (is_a_helper <gimple_statement_try *>::test): ...this.
39971         (is_a_helper <gimple_statement_wce>::test): Convert to...
39972         (is_a_helper <gimple_statement_wce *>::test): ...this.
39973         (is_a_helper <const gimple_statement_asm>::test): Convert to...
39974         (is_a_helper <const gimple_statement_asm *>::test): ...this.
39975         (is_a_helper <const gimple_statement_bind>::test): Convert to...
39976         (is_a_helper <const gimple_statement_bind *>::test): ...this.
39977         (is_a_helper <const gimple_statement_call>::test): Convert to...
39978         (is_a_helper <const gimple_statement_call *>::test): ...this.
39979         (is_a_helper <const gimple_statement_catch>::test): Convert to...
39980         (is_a_helper <const gimple_statement_catch *>::test): ...this.
39981         (is_a_helper <const gimple_statement_resx>::test): Convert to...
39982         (is_a_helper <const gimple_statement_resx *>::test): ...this.
39983         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
39984         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
39985         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
39986         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
39987         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
39988         Convert to...
39989         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
39990         ...this.
39991         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
39992         Convert to...
39993         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
39994         ...this.
39995         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
39996         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
39997         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
39998         to...
39999         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
40000         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
40001         to...
40002         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
40003         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
40004         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
40005         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
40006         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
40007         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
40008         to...
40009         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
40010         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
40011         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
40012         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
40013         to...
40014         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
40015         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
40016         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
40017         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
40018         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
40019         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
40020         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
40021         (is_a_helper <const gimple_statement_phi>::test): Convert to...
40022         (is_a_helper <const gimple_statement_phi *>::test): ...this.
40023         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
40024         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
40025         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
40026         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
40027         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
40028         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
40029         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
40030         to...
40031         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
40032         ...this.
40033         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
40034         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
40035
40036         (gimple_use_ops): Update for removal of implicit pointer from the
40037         is-a.h API.
40038         (gimple_set_use_ops): Likewise.
40039         (gimple_vuse): Likewise.
40040         (gimple_vdef): Likewise.
40041         (gimple_vuse_ptr): Likewise.
40042         (gimple_vdef_ptr): Likewise.
40043         (gimple_set_vuse): Likewise.
40044         (gimple_set_vdef): Likewise.
40045         (gimple_omp_return_set_lhs): Likewise.
40046         (gimple_omp_return_lhs): Likewise.
40047         (gimple_omp_return_lhs_ptr): Likewise.
40048         (gimple_call_fntype): Likewise.
40049         (gimple_call_set_fntype): Likewise.
40050         (gimple_call_set_internal_fn): Likewise.
40051         (gimple_call_use_set): Likewise.
40052         (gimple_call_clobber_set): Likewise.
40053         (gimple_bind_vars): Likewise.
40054         (gimple_bind_set_vars): Likewise.
40055         (gimple_bind_body_ptr): Likewise.
40056         (gimple_bind_set_body): Likewise.
40057         (gimple_bind_add_stmt): Likewise.
40058         (gimple_bind_block): Likewise.
40059         (gimple_bind_set_block): Likewise.
40060         (gimple_asm_ninputs): Likewise.
40061         (gimple_asm_noutputs): Likewise.
40062         (gimple_asm_nclobbers): Likewise.
40063         (gimple_asm_nlabels): Likewise.
40064         (gimple_asm_input_op): Likewise.
40065         (gimple_asm_input_op_ptr): Likewise.
40066         (gimple_asm_output_op): Likewise.
40067         (gimple_asm_output_op_ptr): Likewise.
40068         (gimple_asm_set_output_op): Likewise.
40069         (gimple_asm_clobber_op): Likewise.
40070         (gimple_asm_set_clobber_op): Likewise.
40071         (gimple_asm_label_op): Likewise.
40072         (gimple_asm_set_label_op): Likewise.
40073         (gimple_asm_string): Likewise.
40074         (gimple_catch_types): Likewise.
40075         (gimple_catch_types_ptr): Likewise.
40076         (gimple_catch_handler_ptr): Likewise.
40077         (gimple_catch_set_types): Likewise.
40078         (gimple_catch_set_handler): Likewise.
40079         (gimple_eh_filter_types): Likewise.
40080         (gimple_eh_filter_types_ptr): Likewise.
40081         (gimple_eh_filter_failure_ptr): Likewise.
40082         (gimple_eh_filter_set_types): Likewise.
40083         (gimple_eh_filter_set_failure): Likewise.
40084         (gimple_eh_must_not_throw_fndecl): Likewise.
40085         (gimple_eh_must_not_throw_set_fndecl): Likewise.
40086         (gimple_eh_else_n_body_ptr): Likewise.
40087         (gimple_eh_else_e_body_ptr): Likewise.
40088         (gimple_eh_else_set_n_body): Likewise.
40089         (gimple_eh_else_set_e_body): Likewise.
40090         (gimple_try_eval_ptr): Likewise.
40091         (gimple_try_cleanup_ptr): Likewise.
40092         (gimple_try_set_eval): Likewise.
40093         (gimple_try_set_cleanup): Likewise.
40094         (gimple_wce_cleanup_ptr): Likewise.
40095         (gimple_wce_set_cleanup): Likewise.
40096         (gimple_phi_capacity): Likewise.
40097         (gimple_phi_num_args): Likewise.
40098         (gimple_phi_result): Likewise.
40099         (gimple_phi_result_ptr): Likewise.
40100         (gimple_phi_set_result): Likewise.
40101         (gimple_phi_arg): Likewise.
40102         (gimple_phi_set_arg): Likewise.
40103         (gimple_resx_region): Likewise.
40104         (gimple_resx_set_region): Likewise.
40105         (gimple_eh_dispatch_region): Likewise.
40106         (gimple_eh_dispatch_set_region): Likewise.
40107         (gimple_omp_critical_name): Likewise.
40108         (gimple_omp_critical_name_ptr): Likewise.
40109         (gimple_omp_critical_set_name): Likewise.
40110         (gimple_omp_for_clauses): Likewise.
40111         (gimple_omp_for_clauses_ptr): Likewise.
40112         (gimple_omp_for_set_clauses): Likewise.
40113         (gimple_omp_for_collapse): Likewise.
40114         (gimple_omp_for_index): Likewise.
40115         (gimple_omp_for_index_ptr): Likewise.
40116         (gimple_omp_for_set_index): Likewise.
40117         (gimple_omp_for_initial): Likewise.
40118         (gimple_omp_for_initial_ptr): Likewise.
40119         (gimple_omp_for_set_initial): Likewise.
40120         (gimple_omp_for_final): Likewise.
40121         (gimple_omp_for_final_ptr): Likewise.
40122         (gimple_omp_for_set_final): Likewise.
40123         (gimple_omp_for_incr): Likewise.
40124         (gimple_omp_for_incr_ptr): Likewise.
40125         (gimple_omp_for_set_incr): Likewise.
40126         (gimple_omp_for_pre_body_ptr): Likewise.
40127         (gimple_omp_for_set_pre_body): Likewise.
40128         (gimple_omp_parallel_clauses): Likewise.
40129         (gimple_omp_parallel_clauses_ptr): Likewise.
40130         (gimple_omp_parallel_set_clauses): Likewise.
40131         (gimple_omp_parallel_child_fn): Likewise.
40132         (gimple_omp_parallel_child_fn_ptr): Likewise.
40133         (gimple_omp_parallel_set_child_fn): Likewise.
40134         (gimple_omp_parallel_data_arg): Likewise.
40135         (gimple_omp_parallel_data_arg_ptr): Likewise.
40136         (gimple_omp_parallel_set_data_arg): Likewise.
40137         (gimple_omp_task_clauses): Likewise.
40138         (gimple_omp_task_clauses_ptr): Likewise.
40139         (gimple_omp_task_set_clauses): Likewise.
40140         (gimple_omp_task_child_fn): Likewise.
40141         (gimple_omp_task_child_fn_ptr): Likewise.
40142         (gimple_omp_task_set_child_fn): Likewise.
40143         (gimple_omp_task_data_arg): Likewise.
40144         (gimple_omp_task_data_arg_ptr): Likewise.
40145         (gimple_omp_task_set_data_arg): Likewise.
40146         (gimple_omp_taskreg_clauses): Likewise.
40147         (gimple_omp_taskreg_clauses_ptr): Likewise.
40148         (gimple_omp_taskreg_set_clauses): Likewise.
40149         (gimple_omp_taskreg_child_fn): Likewise.
40150         (gimple_omp_taskreg_child_fn_ptr): Likewise.
40151         (gimple_omp_taskreg_set_child_fn): Likewise.
40152         (gimple_omp_taskreg_data_arg): Likewise.
40153         (gimple_omp_taskreg_data_arg_ptr): Likewise.
40154         (gimple_omp_taskreg_set_data_arg): Likewise.
40155         (gimple_omp_task_copy_fn): Likewise.
40156         (gimple_omp_task_copy_fn_ptr): Likewise.
40157         (gimple_omp_task_set_copy_fn): Likewise.
40158         (gimple_omp_task_arg_size): Likewise.
40159         (gimple_omp_task_arg_size_ptr): Likewise.
40160         (gimple_omp_task_set_arg_size): Likewise.
40161         (gimple_omp_task_arg_align): Likewise.
40162         (gimple_omp_task_arg_align_ptr): Likewise.
40163         (gimple_omp_task_set_arg_align): Likewise.
40164         (gimple_omp_single_clauses): Likewise.
40165         (gimple_omp_single_clauses_ptr): Likewise.
40166         (gimple_omp_single_set_clauses): Likewise.
40167         (gimple_omp_target_clauses): Likewise.
40168         (gimple_omp_target_clauses_ptr): Likewise.
40169         (gimple_omp_target_set_clauses): Likewise.
40170         (gimple_omp_target_child_fn): Likewise.
40171         (gimple_omp_target_child_fn_ptr): Likewise.
40172         (gimple_omp_target_set_child_fn): Likewise.
40173         (gimple_omp_target_data_arg): Likewise.
40174         (gimple_omp_target_data_arg_ptr): Likewise.
40175         (gimple_omp_target_set_data_arg): Likewise.
40176         (gimple_omp_teams_clauses): Likewise.
40177         (gimple_omp_teams_clauses_ptr): Likewise.
40178         (gimple_omp_teams_set_clauses): Likewise.
40179         (gimple_omp_sections_clauses): Likewise.
40180         (gimple_omp_sections_clauses_ptr): Likewise.
40181         (gimple_omp_sections_set_clauses): Likewise.
40182         (gimple_omp_sections_control): Likewise.
40183         (gimple_omp_sections_control_ptr): Likewise.
40184         (gimple_omp_sections_set_control): Likewise.
40185         (gimple_omp_for_set_cond): Likewise.
40186         (gimple_omp_for_cond): Likewise.
40187         (gimple_omp_atomic_store_set_val): Likewise.
40188         (gimple_omp_atomic_store_val): Likewise.
40189         (gimple_omp_atomic_store_val_ptr): Likewise.
40190         (gimple_omp_atomic_load_set_lhs): Likewise.
40191         (gimple_omp_atomic_load_lhs): Likewise.
40192         (gimple_omp_atomic_load_lhs_ptr): Likewise.
40193         (gimple_omp_atomic_load_set_rhs): Likewise.
40194         (gimple_omp_atomic_load_rhs): Likewise.
40195         (gimple_omp_atomic_load_rhs_ptr): Likewise.
40196         (gimple_omp_continue_control_def): Likewise.
40197         (gimple_omp_continue_control_def_ptr): Likewise.
40198         (gimple_omp_continue_set_control_def): Likewise.
40199         (gimple_omp_continue_control_use): Likewise.
40200         (gimple_omp_continue_control_use_ptr): Likewise.
40201         (gimple_omp_continue_set_control_use): Likewise.
40202         (gimple_transaction_body_ptr): Likewise.
40203         (gimple_transaction_label): Likewise.
40204         (gimple_transaction_label_ptr): Likewise.
40205         (gimple_transaction_set_body): Likewise.
40206         (gimple_transaction_set_label): Likewise.
40207
40208         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
40209         * ipa-inline-analysis.c (inline_write_summary): Likewise.
40210         * ipa-ref.c (ipa_record_reference): Likewise.
40211         * ipa-reference.c (analyze_function): Likewise.
40212         (ipa_reference_write_optimization_summary): Likewise.
40213         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
40214         (address_taken_from_non_vtable_p): Likewise.
40215         (comdat_can_be_unshared_p_1): Likewise.
40216         * lto-cgraph.c (lto_output_ref): Likewise.
40217         (add_references): Likewise.
40218         (compute_ltrans_boundary): Likewise.
40219         (output_symtab): Likewise.
40220         (input_ref): Likewise.
40221         (input_cgraph_1): Likewise.
40222         (output_cgraph_opt_summary): Likewise.
40223         * lto-streamer-out.c (lto_output): Likewise.
40224         (output_symbol_p): Likewise.
40225         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
40226         (lsei_start_function_in_partition): Likewise.
40227         (lsei_next_variable_in_partition): Likewise.
40228         (lsei_start_variable_in_partition): Likewise.
40229         * symtab.c (insert_to_assembler_name_hash): Likewise.
40230         (unlink_from_assembler_name_hash): Likewise.
40231         (symtab_unregister_node): Likewise.
40232         (symtab_remove_node): Likewise.
40233         (dump_symtab_node): Likewise.
40234         (verify_symtab_base): Likewise.
40235         (verify_symtab_node): Likewise.
40236         (symtab_make_decl_local): Likewise.
40237         (symtab_alias_ultimate_target): Likewise.
40238         (symtab_resolve_alias): Likewise.
40239         (symtab_get_symbol_partitioning_class): Likewise.
40240         * tree-phinodes.c (allocate_phi_node): Likewise.
40241         (reserve_phi_args_for_new_edge): Likewise.
40242         (remove_phi_args): Likewise.
40243         * varpool.c (varpool_node_for_asm): Likewise.
40244         (varpool_remove_unreferenced_decls): Likewise.
40245
40246 2014-04-23  Jeff Law  <law@redhat.com>
40247
40248         PR tree-optimization/60902
40249         * tree-ssa-threadedge.c
40250         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
40251         invalidate outputs from statements that do not produce useful
40252         outputs for threading.
40253
40254 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
40255
40256         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
40257         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
40258         machine descriptions for Stack Smashing Protector.
40259
40260 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
40261
40262         * aarch64.md (<optab>_rol<mode>3): New pattern.
40263         (<optab>_rolsi3_uxtw): Likewise.
40264         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
40265
40266 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
40267
40268         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
40269         (arm_cortex_a12_tune): Likewise.
40270
40271 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40272
40273         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
40274
40275 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40276
40277         * config/arm/arm.md (arm_rev16si2): New pattern.
40278         (arm_rev16si2_alt): Likewise.
40279         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
40280
40281 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40282
40283         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
40284         (rev16<mode>2_alt): Likewise.
40285         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
40286         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
40287         (aarch_rev16_shleft_mask_imm_p): Likewise.
40288         (aarch_rev16_p_1): Likewise.
40289         (aarch_rev16_p): Likewise.
40290         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
40291         (aarch_rev16_shright_mask_imm_p): Likewise.
40292         (aarch_rev16_shleft_mask_imm_p): Likewise.
40293
40294 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40295
40296         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
40297         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
40298         rev cost.
40299         (cortex_a53_extra_costs): Likewise.
40300         (cortex_a57_extra_costs): Likewise.
40301         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
40302         (cortexa7_extra_costs): Likewise.
40303         (cortexa8_extra_costs): Likewise.
40304         (cortexa12_extra_costs): Likewise.
40305         (cortexa15_extra_costs): Likewise.
40306         (v7m_extra_costs): Likewise.
40307         (arm_new_rtx_costs): Handle BSWAP.
40308
40309 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40310
40311         * config/arm/arm.c (cortexa8_extra_costs): New table.
40312         (arm_cortex_a8_tune): New tuning struct.
40313         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
40314
40315 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40316
40317         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
40318
40319 2014-04-23  Richard Biener  <rguenther@suse.de>
40320
40321         * Makefile.in (OBJS): Remove loop-unswitch.o.
40322         * tree-pass.h (make_pass_rtl_unswitch): Remove.
40323         * passes.def (pass_rtl_unswitch): Likewise.
40324         * loop-init.c (gate_rtl_unswitch): Likewise.
40325         (rtl_unswitch): Likewise.
40326         (pass_data_rtl_unswitch): Likewise.
40327         (pass_rtl_unswitch): Likewise.
40328         (make_pass_rtl_unswitch): Likewise.
40329         * rtl.h (reversed_condition): Likewise.
40330         (compare_and_jump_seq): Likewise.
40331         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
40332         and make static.
40333         * loop-unroll.c (compare_and_jump_seq): Likewise.
40334
40335 2014-04-23  Richard Biener  <rguenther@suse.de>
40336
40337         PR tree-optimization/60903
40338         * tree-ssa-loop-im.c (analyze_memory_references): Remove
40339         commented code block.
40340         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
40341         loop flags to newly created BBs and edges.
40342
40343 2014-04-23  Nick Clifton  <nickc@redhat.com>
40344
40345         * config/msp430/msp430.c (msp430_handle_option): Move function
40346         to msp430-common.c
40347         (msp430_option_override): Simplify mcu and mcpu option handling.
40348         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
40349         support for -mhwmult command line option.
40350         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
40351         -mhwmult command line option.
40352         (msp430_hwmult_enabled): Delete.
40353         (msp43o_output_labelref): Add support for -mhwmult command line option.
40354         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
40355         (umulsidi3): Likewise.
40356         * config/msp430/msp430.opt (mmcu): Add Report attribute.
40357         (mcpu, mlarge, msmall): Likewise.
40358         (mhwmult): New option.
40359         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
40360         prototype.
40361         (msp430_is_f5_mcu): Remove prototype.
40362         (msp430_use_f5_series_hwmult): Add prototype.
40363         * config/msp430/msp430-opts.h: New file.
40364         * common/config/msp430: New directory.
40365         * common/config/msp430/msp430-common.c: New file.
40366         * config.gcc (msp430): Remove target_has_targetm_common.
40367         * doc/invoke.texi: Document -mhwmult command line option.
40368
40369 2014-04-23  Nick Clifton  <nickc@redhat.com>
40370
40371         * config/i386/cygwin.h (ENDFILE_SPEC): Include
40372         default-manifest.o if it can be found in the search path.
40373         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
40374
40375 2014-04-23  Terry Guo  <terry.guo@arm.com>
40376
40377         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
40378
40379 2014-04-23  Richard Biener  <rguenther@suse.de>
40380
40381         PR middle-end/60895
40382         * tree-inline.c (declare_return_variable): Use mark_addressable.
40383
40384 2014-04-23  Richard Biener  <rguenther@suse.de>
40385
40386         PR middle-end/60891
40387         * loop-init.c (loop_optimizer_init): Make sure to apply
40388         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
40389
40390 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
40391
40392         PR sanitizer/60275
40393         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
40394         New options.
40395         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
40396         if flag_sanitize_undefined_trap_on_error.
40397         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
40398         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
40399         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
40400         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
40401         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
40402         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
40403         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
40404         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
40405         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
40406         * ubsan.c (ubsan_instrument_unreachable): Return
40407         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
40408         (ubsan_expand_null_ifn): Emit __builtin_trap ()
40409         if flag_sanitize_undefined_trap_on_error and
40410         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
40411         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
40412         instrument_bool_enum_load): Emit __builtin_trap () if
40413         flag_sanitize_undefined_trap_on_error and
40414         __builtin_handle_*_abort () if !flag_sanitize_recover.
40415         * doc/invoke.texi (-fsanitize-recover,
40416         -fsanitize-undefined-trap-on-error): Document.
40417
40418 2014-04-22  Christian Bruel  <christian.bruel@st.com>
40419
40420         * config/sh/sh.md (mov<mode>): Replace movQIHI.
40421         Force immediates to SImode.
40422
40423 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
40424
40425         * config/nios2/nios2.md (UNSPEC_ROUND): New.
40426         (lroundsfsi2): New.
40427         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
40428         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
40429         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
40430         (nios2_fpu_insn): Add entry for round.
40431         (N2FPU_NO_ERRNO_P): Define.
40432         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
40433         flag_errno_math.
40434         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
40435
40436 2014-04-22  Richard Henderson  <rth@redhat.com>
40437
40438         * config/aarch64/aarch64 (addti3, subti3): New expanders.
40439         (add<GPI>3_compare0): Remove leading * from name.
40440         (add<GPI>3_carryin): Likewise.
40441         (sub<GPI>3_compare0): Likewise.
40442         (sub<GPI>3_carryin): Likewise.
40443         (<su_optab>mulditi3): New expander.
40444         (multi3): New expander.
40445         (madd<GPI>): Remove leading * from name.
40446
40447 2014-04-22  Martin Jambor  <mjambor@suse.cz>
40448
40449         * cgraphclones.c (cgraph_function_versioning): Copy
40450         ipa_transforms_to_apply instead of asserting it is empty.
40451
40452 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
40453
40454         PR target/60868
40455         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
40456         on count_exp to get mode.
40457
40458 2014-04-22  Andrew Pinski  <apinski@cavium.com>
40459
40460         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
40461         Handle TLS for ILP32.
40462         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
40463         (tlsie_small_<mode>): this and handle PTR.
40464         (tlsie_small_sidi): New pattern.
40465         (tlsle_small): Change to an expand to handle ILP32.
40466         (tlsle_small_<mode>): New pattern.
40467         (tlsdesc_small): Rename to ...
40468         (tlsdesc_small_<mode>): this and handle PTR.
40469
40470 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40471
40472         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
40473
40474 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
40475
40476         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
40477         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
40478         (aarch64_types_signed_poly_qualifiers): Likewise.
40479         (aarch64_types_unsigned_signed_qualifiers): Likewise.
40480         (aarch64_types_poly_signed_qualifiers): Likewise.
40481         (TYPES_REINTERP_SS): Type macro added.
40482         (TYPES_REINTERP_SU): Likewise.
40483         (TYPES_REINTERP_SP): Likewise.
40484         (TYPES_REINTERP_US): Likewise.
40485         (TYPES_REINTERP_PS): Likewise.
40486         (aarch64_fold_builtin): New expression folding added.
40487         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
40488         Declarations removed.
40489         (REINTERP_SS): Declarations added.
40490         (REINTERP_US): Likewise.
40491         (REINTERP_PS): Likewise.
40492         (REINTERP_SU): Likewise.
40493         (REINTERP_SP): Likewise.
40494         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
40495         (vreinterpretq_p8_f64): Likewise.
40496         (vreinterpret_p16_f64): Likewise.
40497         (vreinterpretq_p16_f64): Likewise.
40498         (vreinterpret_f32_f64): Likewise.
40499         (vreinterpretq_f32_f64): Likewise.
40500         (vreinterpret_f64_f32): Likewise.
40501         (vreinterpret_f64_p8): Likewise.
40502         (vreinterpret_f64_p16): Likewise.
40503         (vreinterpret_f64_s8): Likewise.
40504         (vreinterpret_f64_s16): Likewise.
40505         (vreinterpret_f64_s32): Likewise.
40506         (vreinterpret_f64_s64): Likewise.
40507         (vreinterpret_f64_u8): Likewise.
40508         (vreinterpret_f64_u16): Likewise.
40509         (vreinterpret_f64_u32): Likewise.
40510         (vreinterpret_f64_u64): Likewise.
40511         (vreinterpretq_f64_f32): Likewise.
40512         (vreinterpretq_f64_p8): Likewise.
40513         (vreinterpretq_f64_p16): Likewise.
40514         (vreinterpretq_f64_s8): Likewise.
40515         (vreinterpretq_f64_s16): Likewise.
40516         (vreinterpretq_f64_s32): Likewise.
40517         (vreinterpretq_f64_s64): Likewise.
40518         (vreinterpretq_f64_u8): Likewise.
40519         (vreinterpretq_f64_u16): Likewise.
40520         (vreinterpretq_f64_u32): Likewise.
40521         (vreinterpretq_f64_u64): Likewise.
40522         (vreinterpret_s64_f64): Likewise.
40523         (vreinterpretq_s64_f64): Likewise.
40524         (vreinterpret_u64_f64): Likewise.
40525         (vreinterpretq_u64_f64): Likewise.
40526         (vreinterpret_s8_f64): Likewise.
40527         (vreinterpretq_s8_f64): Likewise.
40528         (vreinterpret_s16_f64): Likewise.
40529         (vreinterpretq_s16_f64): Likewise.
40530         (vreinterpret_s32_f64): Likewise.
40531         (vreinterpretq_s32_f64): Likewise.
40532         (vreinterpret_u8_f64): Likewise.
40533         (vreinterpretq_u8_f64): Likewise.
40534         (vreinterpret_u16_f64): Likewise.
40535         (vreinterpretq_u16_f64): Likewise.
40536         (vreinterpret_u32_f64): Likewise.
40537         (vreinterpretq_u32_f64): Likewise.
40538
40539 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
40540
40541         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
40542         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
40543         (vreinterpret_p8_s8): Likewise.
40544         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
40545         (vreinterpret_p8_s16): Likewise.
40546         (vreinterpret_p8_s32): Likewise.
40547         (vreinterpret_p8_s64): Likewise.
40548         (vreinterpret_p8_f32): Likewise.
40549         (vreinterpret_p8_u8): Likewise.
40550         (vreinterpret_p8_u16): Likewise.
40551         (vreinterpret_p8_u32): Likewise.
40552         (vreinterpret_p8_u64): Likewise.
40553         (vreinterpret_p8_p16): Likewise.
40554         (vreinterpretq_p8_s8): Likewise.
40555         (vreinterpretq_p8_s16): Likewise.
40556         (vreinterpretq_p8_s32): Likewise.
40557         (vreinterpretq_p8_s64): Likewise.
40558         (vreinterpretq_p8_f32): Likewise.
40559         (vreinterpretq_p8_u8): Likewise.
40560         (vreinterpretq_p8_u16): Likewise.
40561         (vreinterpretq_p8_u32): Likewise.
40562         (vreinterpretq_p8_u64): Likewise.
40563         (vreinterpretq_p8_p16): Likewise.
40564         (vreinterpret_p16_s8): Likewise.
40565         (vreinterpret_p16_s16): Likewise.
40566         (vreinterpret_p16_s32): Likewise.
40567         (vreinterpret_p16_s64): Likewise.
40568         (vreinterpret_p16_f32): Likewise.
40569         (vreinterpret_p16_u8): Likewise.
40570         (vreinterpret_p16_u16): Likewise.
40571         (vreinterpret_p16_u32): Likewise.
40572         (vreinterpret_p16_u64): Likewise.
40573         (vreinterpret_p16_p8): Likewise.
40574         (vreinterpretq_p16_s8): Likewise.
40575         (vreinterpretq_p16_s16): Likewise.
40576         (vreinterpretq_p16_s32): Likewise.
40577         (vreinterpretq_p16_s64): Likewise.
40578         (vreinterpretq_p16_f32): Likewise.
40579         (vreinterpretq_p16_u8): Likewise.
40580         (vreinterpretq_p16_u16): Likewise.
40581         (vreinterpretq_p16_u32): Likewise.
40582         (vreinterpretq_p16_u64): Likewise.
40583         (vreinterpretq_p16_p8): Likewise.
40584         (vreinterpret_f32_s8): Likewise.
40585         (vreinterpret_f32_s16): Likewise.
40586         (vreinterpret_f32_s32): Likewise.
40587         (vreinterpret_f32_s64): Likewise.
40588         (vreinterpret_f32_u8): Likewise.
40589         (vreinterpret_f32_u16): Likewise.
40590         (vreinterpret_f32_u32): Likewise.
40591         (vreinterpret_f32_u64): Likewise.
40592         (vreinterpret_f32_p8): Likewise.
40593         (vreinterpret_f32_p16): Likewise.
40594         (vreinterpretq_f32_s8): Likewise.
40595         (vreinterpretq_f32_s16): Likewise.
40596         (vreinterpretq_f32_s32): Likewise.
40597         (vreinterpretq_f32_s64): Likewise.
40598         (vreinterpretq_f32_u8): Likewise.
40599         (vreinterpretq_f32_u16): Likewise.
40600         (vreinterpretq_f32_u32): Likewise.
40601         (vreinterpretq_f32_u64): Likewise.
40602         (vreinterpretq_f32_p8): Likewise.
40603         (vreinterpretq_f32_p16): Likewise.
40604         (vreinterpret_s64_s8): Likewise.
40605         (vreinterpret_s64_s16): Likewise.
40606         (vreinterpret_s64_s32): Likewise.
40607         (vreinterpret_s64_f32): Likewise.
40608         (vreinterpret_s64_u8): Likewise.
40609         (vreinterpret_s64_u16): Likewise.
40610         (vreinterpret_s64_u32): Likewise.
40611         (vreinterpret_s64_u64): Likewise.
40612         (vreinterpret_s64_p8): Likewise.
40613         (vreinterpret_s64_p16): Likewise.
40614         (vreinterpretq_s64_s8): Likewise.
40615         (vreinterpretq_s64_s16): Likewise.
40616         (vreinterpretq_s64_s32): Likewise.
40617         (vreinterpretq_s64_f32): Likewise.
40618         (vreinterpretq_s64_u8): Likewise.
40619         (vreinterpretq_s64_u16): Likewise.
40620         (vreinterpretq_s64_u32): Likewise.
40621         (vreinterpretq_s64_u64): Likewise.
40622         (vreinterpretq_s64_p8): Likewise.
40623         (vreinterpretq_s64_p16): Likewise.
40624         (vreinterpret_u64_s8): Likewise.
40625         (vreinterpret_u64_s16): Likewise.
40626         (vreinterpret_u64_s32): Likewise.
40627         (vreinterpret_u64_s64): Likewise.
40628         (vreinterpret_u64_f32): Likewise.
40629         (vreinterpret_u64_u8): Likewise.
40630         (vreinterpret_u64_u16): Likewise.
40631         (vreinterpret_u64_u32): Likewise.
40632         (vreinterpret_u64_p8): Likewise.
40633         (vreinterpret_u64_p16): Likewise.
40634         (vreinterpretq_u64_s8): Likewise.
40635         (vreinterpretq_u64_s16): Likewise.
40636         (vreinterpretq_u64_s32): Likewise.
40637         (vreinterpretq_u64_s64): Likewise.
40638         (vreinterpretq_u64_f32): Likewise.
40639         (vreinterpretq_u64_u8): Likewise.
40640         (vreinterpretq_u64_u16): Likewise.
40641         (vreinterpretq_u64_u32): Likewise.
40642         (vreinterpretq_u64_p8): Likewise.
40643         (vreinterpretq_u64_p16): Likewise.
40644         (vreinterpret_s8_s16): Likewise.
40645         (vreinterpret_s8_s32): Likewise.
40646         (vreinterpret_s8_s64): Likewise.
40647         (vreinterpret_s8_f32): Likewise.
40648         (vreinterpret_s8_u8): Likewise.
40649         (vreinterpret_s8_u16): Likewise.
40650         (vreinterpret_s8_u32): Likewise.
40651         (vreinterpret_s8_u64): Likewise.
40652         (vreinterpret_s8_p8): Likewise.
40653         (vreinterpret_s8_p16): Likewise.
40654         (vreinterpretq_s8_s16): Likewise.
40655         (vreinterpretq_s8_s32): Likewise.
40656         (vreinterpretq_s8_s64): Likewise.
40657         (vreinterpretq_s8_f32): Likewise.
40658         (vreinterpretq_s8_u8): Likewise.
40659         (vreinterpretq_s8_u16): Likewise.
40660         (vreinterpretq_s8_u32): Likewise.
40661         (vreinterpretq_s8_u64): Likewise.
40662         (vreinterpretq_s8_p8): Likewise.
40663         (vreinterpretq_s8_p16): Likewise.
40664         (vreinterpret_s16_s8): Likewise.
40665         (vreinterpret_s16_s32): Likewise.
40666         (vreinterpret_s16_s64): Likewise.
40667         (vreinterpret_s16_f32): Likewise.
40668         (vreinterpret_s16_u8): Likewise.
40669         (vreinterpret_s16_u16): Likewise.
40670         (vreinterpret_s16_u32): Likewise.
40671         (vreinterpret_s16_u64): Likewise.
40672         (vreinterpret_s16_p8): Likewise.
40673         (vreinterpret_s16_p16): Likewise.
40674         (vreinterpretq_s16_s8): Likewise.
40675         (vreinterpretq_s16_s32): Likewise.
40676         (vreinterpretq_s16_s64): Likewise.
40677         (vreinterpretq_s16_f32): Likewise.
40678         (vreinterpretq_s16_u8): Likewise.
40679         (vreinterpretq_s16_u16): Likewise.
40680         (vreinterpretq_s16_u32): Likewise.
40681         (vreinterpretq_s16_u64): Likewise.
40682         (vreinterpretq_s16_p8): Likewise.
40683         (vreinterpretq_s16_p16): Likewise.
40684         (vreinterpret_s32_s8): Likewise.
40685         (vreinterpret_s32_s16): Likewise.
40686         (vreinterpret_s32_s64): Likewise.
40687         (vreinterpret_s32_f32): Likewise.
40688         (vreinterpret_s32_u8): Likewise.
40689         (vreinterpret_s32_u16): Likewise.
40690         (vreinterpret_s32_u32): Likewise.
40691         (vreinterpret_s32_u64): Likewise.
40692         (vreinterpret_s32_p8): Likewise.
40693         (vreinterpret_s32_p16): Likewise.
40694         (vreinterpretq_s32_s8): Likewise.
40695         (vreinterpretq_s32_s16): Likewise.
40696         (vreinterpretq_s32_s64): Likewise.
40697         (vreinterpretq_s32_f32): Likewise.
40698         (vreinterpretq_s32_u8): Likewise.
40699         (vreinterpretq_s32_u16): Likewise.
40700         (vreinterpretq_s32_u32): Likewise.
40701         (vreinterpretq_s32_u64): Likewise.
40702         (vreinterpretq_s32_p8): Likewise.
40703         (vreinterpretq_s32_p16): Likewise.
40704         (vreinterpret_u8_s8): Likewise.
40705         (vreinterpret_u8_s16): Likewise.
40706         (vreinterpret_u8_s32): Likewise.
40707         (vreinterpret_u8_s64): Likewise.
40708         (vreinterpret_u8_f32): Likewise.
40709         (vreinterpret_u8_u16): Likewise.
40710         (vreinterpret_u8_u32): Likewise.
40711         (vreinterpret_u8_u64): Likewise.
40712         (vreinterpret_u8_p8): Likewise.
40713         (vreinterpret_u8_p16): Likewise.
40714         (vreinterpretq_u8_s8): Likewise.
40715         (vreinterpretq_u8_s16): Likewise.
40716         (vreinterpretq_u8_s32): Likewise.
40717         (vreinterpretq_u8_s64): Likewise.
40718         (vreinterpretq_u8_f32): Likewise.
40719         (vreinterpretq_u8_u16): Likewise.
40720         (vreinterpretq_u8_u32): Likewise.
40721         (vreinterpretq_u8_u64): Likewise.
40722         (vreinterpretq_u8_p8): Likewise.
40723         (vreinterpretq_u8_p16): Likewise.
40724         (vreinterpret_u16_s8): Likewise.
40725         (vreinterpret_u16_s16): Likewise.
40726         (vreinterpret_u16_s32): Likewise.
40727         (vreinterpret_u16_s64): Likewise.
40728         (vreinterpret_u16_f32): Likewise.
40729         (vreinterpret_u16_u8): Likewise.
40730         (vreinterpret_u16_u32): Likewise.
40731         (vreinterpret_u16_u64): Likewise.
40732         (vreinterpret_u16_p8): Likewise.
40733         (vreinterpret_u16_p16): Likewise.
40734         (vreinterpretq_u16_s8): Likewise.
40735         (vreinterpretq_u16_s16): Likewise.
40736         (vreinterpretq_u16_s32): Likewise.
40737         (vreinterpretq_u16_s64): Likewise.
40738         (vreinterpretq_u16_f32): Likewise.
40739         (vreinterpretq_u16_u8): Likewise.
40740         (vreinterpretq_u16_u32): Likewise.
40741         (vreinterpretq_u16_u64): Likewise.
40742         (vreinterpretq_u16_p8): Likewise.
40743         (vreinterpretq_u16_p16): Likewise.
40744         (vreinterpret_u32_s8): Likewise.
40745         (vreinterpret_u32_s16): Likewise.
40746         (vreinterpret_u32_s32): Likewise.
40747         (vreinterpret_u32_s64): Likewise.
40748         (vreinterpret_u32_f32): Likewise.
40749         (vreinterpret_u32_u8): Likewise.
40750         (vreinterpret_u32_u16): Likewise.
40751         (vreinterpret_u32_u64): Likewise.
40752         (vreinterpret_u32_p8): Likewise.
40753         (vreinterpret_u32_p16): Likewise.
40754         (vreinterpretq_u32_s8): Likewise.
40755         (vreinterpretq_u32_s16): Likewise.
40756         (vreinterpretq_u32_s32): Likewise.
40757         (vreinterpretq_u32_s64): Likewise.
40758         (vreinterpretq_u32_f32): Likewise.
40759         (vreinterpretq_u32_u8): Likewise.
40760         (vreinterpretq_u32_u16): Likewise.
40761         (vreinterpretq_u32_u64): Likewise.
40762         (vreinterpretq_u32_p8): Likewise.
40763         (vreinterpretq_u32_p16): Likewise.
40764
40765 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
40766
40767         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
40768         Pattern extended.
40769         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
40770         (sqabs): Likewise.
40771         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
40772         (vqnegd_s64): Likewise.
40773         (vqabs_s64): Likewise.
40774         (vqabsd_s64): Likewise.
40775
40776 2014-04-22  Richard Henderson  <rth@redhat.com>
40777
40778         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
40779         computation to the top of the loop.
40780
40781 2014-04-22  Renlin  <renlin.li@arm.com>
40782             Jiong Wang  <jiong.wang@arm.com>
40783
40784         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
40785         * config/aarch64/aarch64.c (aarch64_layout_frame)
40786         (aarch64_initial_elimination_offset): Likewise.
40787
40788 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40789
40790         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
40791         Fix indentation.
40792
40793 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
40794
40795         * machmode.h (bitwise_mode_for_mode): Declare.
40796         * stor-layout.h (bitwise_type_for_mode): Likewise.
40797         * stor-layout.c (bitwise_mode_for_mode): New function.
40798         (bitwise_type_for_mode): Likewise.
40799         * builtins.c (fold_builtin_memory_op): Use it instead of
40800         int_mode_for_mode and build_nonstandard_integer_type.
40801
40802 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40803
40804         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
40805         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
40806         (*-*-solaris2*): Simplify.
40807         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
40808         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
40809         *-*-solaris2.9* handling.
40810
40811         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
40812         as bug.
40813         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
40814         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
40815         handling, simplify.
40816         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
40817         * configure: Regenerate.
40818
40819         * config/i386/sol2-9.h: Remove.
40820
40821         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
40822         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
40823         Remove Solaris 9 references.
40824
40825 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
40826
40827         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
40828         (floatuns<GPI:mode><GPF:mode>2): Remove.
40829         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
40830         and floatuns conversions.
40831         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
40832         and floatuns conversions.
40833         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
40834         (w1,w2): New mode attributes for inequal width conversions.
40835
40836 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
40837
40838         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
40839         the output asm format.
40840
40841 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
40842
40843         * config/aarch64/aarch64-simd.md
40844         (aarch64_cm<optab>di): Always split.
40845         (*aarch64_cm<optab>di): New.
40846         (aarch64_cmtstdi): Always split.
40847         (*aarch64_cmtstdi): New.
40848
40849 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
40850
40851         PR tree-optimization/60823
40852         * omp-low.c (ipa_simd_modify_function_body): Go through
40853         all SSA_NAMEs and for those refering to vector arguments
40854         which are going to be replaced adjust SSA_NAME_VAR and,
40855         if it is a default definition, change it into a non-default
40856         definition assigned at the beginning of function from new_decl.
40857         (ipa_simd_modify_stmt_ops): Rewritten.
40858         * tree-dfa.c (set_ssa_default_def): When removing default def,
40859         check for NULL loc instead of NULL *loc.
40860
40861 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40862
40863         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
40864         restrictions on core registers for DImode values in Thumb2.
40865
40866 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
40867
40868         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
40869         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
40870
40871 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
40872
40873         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
40874         (*iordi_notzesidi_di): Likewise.
40875         (*iordi_notsesidi_di): Likewise.
40876
40877 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
40878
40879         * config/arm/arm-protos.h (tune_params): New struct members.
40880         * config/arm/arm.c: Initialise tune_params per processor.
40881         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
40882         for speed, based on new tune_params.
40883
40884 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
40885
40886         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
40887         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
40888         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
40889         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
40890         * config/aarch64/arm_neon.h (vrnd_f64): Added.
40891         (vrnda_f64): Likewise.
40892         (vrndi_f64): Likewise.
40893         (vrndm_f64): Likewise.
40894         (vrndn_f64): Likewise.
40895         (vrndp_f64): Likewise.
40896         (vrndx_f64): Likewise.
40897
40898 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
40899
40900         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
40901         GET_MODE_SIZE argument is enum machine_mode.
40902
40903 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
40904
40905         PR target/60910
40906         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
40907         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
40908
40909 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
40910
40911         PR middle-end/60281
40912         * asan.c (asan_emit_stack_protection): Force the base to align to
40913         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
40914         appropriate bits if STRICT_ALIGNMENT.
40915         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
40916         when asan is on.
40917         (expand_used_vars): Leave a space in the stack frame for alignment
40918         if STRICT_ALIGNMENT.
40919
40920 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
40921
40922         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
40923         than a gimple.
40924         (gimple_store_p): Likewise.
40925         (gimple_assign_load_p): Likewise.
40926         (gimple_assign_cast_p): Likewise.
40927         (gimple_clobber_p): Likewise.
40928
40929         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
40930         rather than a gimple.
40931         (gimple_assign_cast_p): Likewise.
40932
40933 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
40934
40935         PR target/60735
40936         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
40937         If mode is DDmode and TARGET_E500_DOUBLE allow move.
40938
40939         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
40940         more debug information for E500 if -mdebug=reg.
40941
40942 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
40943
40944         PR target/60909
40945         * config/i386/i386.c (ix86_expand_builtin)
40946         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
40947         register for target RTX.
40948         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
40949
40950 2014-04-18  Cong Hou  <congh@google.com>
40951
40952         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
40953         the widen-mult pattern by handling two operands with different sizes,
40954         and operands whose size is smaller than half of the result type.
40955
40956 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
40957
40958         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
40959         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
40960         (do_estimate_edge_time): Compute it.
40961         * ipa-inline.c (want_inline_small_function_p): Bypass
40962         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
40963
40964 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
40965
40966         * ipa-inline.c (spec_rem): New static variable.
40967         (dump_overall_stats): New function.
40968         (dump_inline_stats): New function.
40969
40970 2014-04-18  Richard Henderson  <rth@redhat.com>
40971
40972         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
40973         to GET_MODE_SIZE, not a reg_class_t.
40974
40975 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
40976
40977         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
40978         (vsx_xxmrglw_<mode>): Likewise.
40979
40980 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
40981
40982         PR target/60876
40983         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
40984         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
40985         (rs6000_init_hard_regno_mode_ok): Likewise.
40986
40987 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
40988
40989         * ipa-inline.c (inline_small_functions): Account only non-cold
40990         functions.
40991         * doc/invoke.texi (inline-unit-growth): Update documentation.
40992
40993 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
40994
40995         * config/rs6000/rs6000.md (addti3, subti3): New.
40996
40997 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
40998
40999         PR target/60863
41000         * config/i386/i386.c (ix86_expand_clear): Remove outdated
41001         comment.  Check optimize_insn_for_size_p instead of
41002         optimize_insn_for_speed_p.
41003
41004 2014-04-17  Martin Jambor  <mjambor@suse.cz>
41005
41006         * gimple-iterator.c (gsi_start_edge): New function.
41007         * gimple-iterator.h (gsi_start_edge): Declare.
41008         * tree-sra.c (single_non_eh_succ): New function.
41009         (disqualify_ops_if_throwing_stmt): Renamed to
41010         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
41011         having one non-EH successor BB.
41012         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
41013         generate loads into replacements.
41014         (sra_modify_assign): Likewise and and also use the simple path for
41015         such statements.
41016         (sra_modify_function_body): Commit statements on edges.
41017
41018 2014-04-17  Richard Biener  <rguenther@suse.de>
41019
41020         PR middle-end/60849
41021         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
41022         comparison results and add clarifying comment.
41023
41024 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
41025
41026         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
41027         (blank_mode): Initialize it.
41028         (emit_mode_size_inline, emit_mode_nunits_inline,
41029         emit_mode_inner_inline): New functions.
41030         (emit_insn_modes_h): Call them and surround their output with
41031         #if GCC_VERSION >= 4001 ... #endif.
41032         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
41033         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
41034         mode_* arrays if the argument is __builtin_constant_p.
41035         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
41036         is enum machine_mode.
41037
41038 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
41039
41040         * passes.c (opt_pass::execute): Adjust.
41041         (pass_manager::execute_pass_mode_switching): Likewise.
41042         (early_local_passes::execute): Likewise.
41043         (execute_one_pass): Pass cfun to the pass's execute method.
41044         * tree-pass.h (opt_pass::execute): Add function * argument.
41045         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
41046         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
41047         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
41048         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
41049         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
41050         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
41051         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
41052         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
41053         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
41054         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
41055         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
41056         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
41057         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
41058         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
41059         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
41060         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
41061         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
41062         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
41063         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
41064         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
41065         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
41066         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
41067         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
41068         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
41069         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
41070         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
41071         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
41072         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
41073         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
41074         Adjust.
41075
41076 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
41077
41078         * passes.c (opt_pass::gate): Take function * argument.
41079         (gate_all_early_local_passes): Merge into
41080         (early_local_passes::gate): this.
41081         (gate_all_early_optimizations): Merge into
41082         (all_early_optimizations::gate): this.
41083         (gate_all_optimizations): Mege into
41084         (all_optimizations::gate): this.
41085         (gate_all_optimizations_g): Merge into
41086         (all_optimizations_g::gate): this.
41087         (gate_rest_of_compilation): Mege into
41088         (rest_of_compilation::gate): this.
41089         (gate_postreload): Merge into
41090         (postreload::gate): this.
41091         (dump_one_pass): Pass cfun to the pass's gate method.
41092         (execute_ipa_summary_passes): Likewise.
41093         (execute_one_pass): Likewise.
41094         (ipa_write_summaries_2): Likewise.
41095         (ipa_write_optimization_summaries_1): Likewise.
41096         (ipa_read_summaries_1): Likewise.
41097         (ipa_read_optimization_summaries_1): Likewise.
41098         (execute_ipa_stmt_fixups): Likewise.
41099         * tree-pass.h (opt_pass::gate): Add function * argument.
41100         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
41101         combine-stack-adj.c, combine.c, compare-elim.c,
41102         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
41103         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
41104         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
41105         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
41106         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
41107         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
41108         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
41109         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
41110         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
41111         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
41112         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
41113         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
41114         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
41115         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
41116         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
41117         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
41118         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
41119         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
41120         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
41121         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
41122         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
41123         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
41124         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
41125         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
41126         var-tracking.c, vtable-verify.c, web.c: Adjust.
41127
41128 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
41129
41130         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
41131         * configure: Regenerate.
41132
41133 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
41134
41135         * passes.c (dump_one_pass): don't check pass->has_gate.
41136         (execute_ipa_summary_passes): Likewise.
41137         (execute_one_pass): Likewise.
41138         (ipa_write_summaries_2): Likewise.
41139         (ipa_write_optimization_summaries_1): Likewise.
41140         (ipa_read_optimization_summaries_1): Likewise.
41141         (execute_ipa_stmt_fixups): Likewise.
41142         * tree-pass.h (pass_data::has_gate): Remove.
41143         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
41144         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
41145         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
41146         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
41147         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
41148         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
41149         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
41150         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
41151         gimple-low.c, gimple-ssa-isolate-paths.c,
41152         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
41153         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
41154         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
41155         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
41156         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
41157         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
41158         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
41159         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
41160         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
41161         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
41162         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
41163         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
41164         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
41165         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
41166         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
41167         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
41168         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
41169         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
41170         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
41171         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
41172         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
41173         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
41174         Adjust.
41175
41176 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
41177
41178         * pass_manager.h (pass_manager::register_dump_files_1): Remove
41179         declaration.
41180         * passes.c (pass_manager::register_dump_files_1): Merge into
41181         (pass_manager::register_dump_files): this, and remove its handling of
41182         properties since the pass always has the properties anyway.
41183         (pass_manager::pass_manager): Adjust.
41184
41185 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
41186
41187         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
41188         * passes.c (pass_manager::register_dump_files_1): Remove dead code
41189         dealing with properties.
41190         (pass_manager::register_dump_files): Adjust.
41191
41192 2014-03-20  Mark Wielaard  <mjw@redhat.com>
41193
41194         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
41195         then represent the bound as normal constant value.
41196
41197 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
41198
41199         PR target/60847
41200         Forward port from 4.8 branch
41201         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
41202
41203         * config/i386/bmiintrin.h (_blsi_u32): New.
41204         (_blsi_u64): Ditto.
41205         (_blsr_u32): Ditto.
41206         (_blsr_u64): Ditto.
41207         (_blsmsk_u32): Ditto.
41208         (_blsmsk_u64): Ditto.
41209         (_tzcnt_u32): Ditto.
41210         (_tzcnt_u64): Ditto.
41211
41212 2014-04-17  Kito Cheng  <kito@0xlab.org>
41213
41214         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
41215
41216 2014-04-17  Richard Biener  <rguenther@suse.de>
41217
41218         PR middle-end/60849
41219         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
41220         boolean results for comparisons.
41221
41222 2014-04-17  Richard Biener  <rguenther@suse.de>
41223
41224         PR tree-optimization/60836
41225         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
41226         initial PHI args to be gimple values.
41227
41228 2014-04-17  Richard Biener  <rguenther@suse.de>
41229
41230         PR tree-optimization/60841
41231         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
41232         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
41233         of stmts to SLP build.
41234         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
41235         (vect_analyze_slp): Likewise.
41236         (vect_analyze_slp_instance): Likewise.
41237         (vect_build_slp_tree): Limit overall SLP tree growth.
41238         * tree-vectorizer.h (vect_analyze_data_refs,
41239         vect_analyze_slp): Adjust prototypes.
41240
41241 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
41242
41243         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
41244         Silvermont.
41245
41246 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
41247
41248         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
41249         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
41250         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
41251         for TARGET_SLOW_PSHUFB
41252
41253 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
41254
41255         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
41256         * config/i386/i386.c (intel_cost): Ditto.
41257
41258 2014-04-17  Joey Ye  <joey.ye@arm.com>
41259
41260         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
41261
41262 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
41263
41264         * opts.c (common_handle_option): Disable -fipa-reference coorectly
41265         with -fuse-profile.
41266
41267 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
41268
41269         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
41270         (type_all_derivations_known_p): New predicate.
41271         (type_all_ctors_visible_p): New predicate.
41272         (type_possibly_instantiated_p): New predicate.
41273         (get_odr_type): Compute all_derivations_known.
41274         (dump_odr_type): Dump the flag.
41275         (maybe_record_type): Cleanup.
41276         (record_target_from_binfo): Add bases_to_consider array;
41277         record bases for types w/o instances and skip CXX destructor.
41278         (possible_polymorphic_call_targets_1): Add bases_to_consider
41279         and consider_construction parameters; check if type may have instance.
41280         (get_polymorphic_call_info): Set maybe_in_construction to true
41281         when we know nothing.
41282         (record_targets_from_bases): Skip CXX destructors; they are
41283         never called for types in construction.
41284         (possible_polymorphic_call_targets): Do not record target when
41285         type may not have instance.
41286
41287 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
41288
41289         PR ipa/60854
41290         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
41291         external aliases alive, too.
41292
41293 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
41294
41295         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
41296         definition.
41297
41298 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
41299
41300         * final.c (compute_alignments): Do not apply loop alignment to a block
41301         falling through to the exit.
41302
41303 2014-04-16  Catherine Moore  <clm@codesourcery.com>
41304
41305         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
41306         Adjust constraints for microMIPS store patterns.
41307
41308 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
41309
41310         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
41311
41312 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
41313
41314         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
41315         (append_use): Run at -O0.
41316         (append_vdef): Likewise.
41317         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
41318         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
41319
41320 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
41321
41322         PR tree-optimization/60844
41323         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
41324         (propagate_op_to_single_use, remove_visited_stmt_chain,
41325         linearize_expr, repropagate_negates, reassociate_bb): Use it
41326         instead of gsi_remove.
41327
41328 2014-04-16  Martin Jambor  <mjambor@suse.cz>
41329
41330         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
41331         ipa_transforms_to_apply.
41332         (cgraph_function_versioning): Assert that old_node has empty
41333         ipa_transforms_to_apply.
41334         * trans-mem.c (ipa_tm_create_version): Likewise.
41335         * tree-inline.c (tree_function_versioning): Do not duplicate
41336         ipa_transforms_to_apply.
41337
41338 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
41339
41340         PR target/60817
41341         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
41342         x86_64-*-* cases.
41343         Pass necessary as flags on 64-bit Solaris/x86.
41344         Use lowercase relocs for x86_64-*-*.
41345         * configure: Regenerate.
41346
41347 2014-04-15  Jan Hubicka  <jh@suse.cz>
41348
41349         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
41350         (maybe_record_node, likely_target_p): Use it.
41351
41352 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41353
41354         PR target/60839
41355         Revert following patch
41356
41357         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
41358
41359         PR target/60735
41360         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
41361         software floating point or no floating point registers, do not
41362         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
41363         in GPRs that occurs after we tested for GPRs that would never be
41364         true.
41365
41366         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
41367         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
41368         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
41369         specifically allow DDmode, since that does not use the SPE SIMD
41370         instructions.
41371
41372 2014-03-21  Mark Wielaard  <mjw@redhat.com>
41373
41374         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
41375         as unsigned or int depending on type and value used.
41376
41377 2014-04-15  Richard Biener  <rguenther@suse.de>
41378
41379         PR rtl-optimization/56965
41380         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
41381         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
41382         ... here.
41383         * alias.c (true_dependence_1): Do not call
41384         nonoverlapping_component_refs_p.
41385         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
41386         nonoverlapping_component_refs_p.
41387         (indirect_refs_may_alias_p): Likewise.
41388
41389 2014-04-15  Teresa Johnson  <tejohnson@google.com>
41390
41391         * cfg.c (dump_bb_info): Fix flags check.
41392         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
41393
41394 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41395
41396         PR rtl-optimization/60663
41397         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
41398         avoid 0 cost.
41399
41400 2014-04-15  Richard Biener  <rguenther@suse.de>
41401
41402         * lto-streamer.h (LTO_major_version): Bump to 4.
41403
41404 2014-04-15  Richard Biener  <rguenther@suse.de>
41405
41406         * common.opt (lto_partition_model): New enum.
41407         (flto-partition=): Merge separate options with a single with argument,
41408         add -flto-partition=one support.
41409         * flag-types.h (enum lto_partition_model): Declare.
41410         * opts.c (finish_options): Remove duplicate -flto-partition=
41411         option check.
41412         * lto-wrapper.c (run_gcc): Adjust.
41413
41414 2014-04-15  Richard Biener  <rguenther@suse.de>
41415
41416         * alias.c (ncr_compar): New function.
41417         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
41418
41419 2014-04-15  Richard Biener  <rguenther@suse.de>
41420
41421         * alias.c (record_component_aliases): Do not walk BINFOs.
41422
41423 2014-04-15  Richard Biener  <rguenther@suse.de>
41424
41425         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
41426         Add struct function argument and adjust.
41427         (find_func_aliases_for_call): Likewise.
41428         (find_func_aliases): Likewise.
41429         (find_func_clobbers): Likewise.
41430         (intra_create_variable_infos): Likewise.
41431         (compute_points_to_sets): Likewise.
41432         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
41433
41434 2014-04-15  Richard Biener  <rguenther@suse.de>
41435
41436         * tree.c (iterative_hash_expr): Use enum tree_code_class
41437         to store TREE_CODE_CLASS.
41438         (tree_block): Likewise.
41439         (tree_set_block): Likewise.
41440         * tree.h (fold_build_pointer_plus_loc): Use
41441         convert_to_ptrofftype_loc.
41442
41443 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
41444
41445         PR plugins/59335
41446         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
41447         added in 4.9.
41448
41449 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
41450
41451         * cfgloop.h (struct loop): Move force_vectorize down.
41452         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
41453         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
41454         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
41455         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
41456         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
41457         * tree-core.h (enum annot_expr_kind): Add new kind values.
41458         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
41459         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
41460         kinds.
41461         * tree.def (ANNOTATE_EXPR): Tweak comment.
41462
41463 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
41464
41465         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
41466         cxa_pure_virtual).
41467
41468 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
41469
41470         * tree.h (TYPE_IDENTIFIER): Declare.
41471         * tree.c (subrange_type_for_debug_p): Use it.
41472         * godump.c (go_format_type): Likewise.
41473         * dwarf2out.c (is_cxx_auto, modified_type_die,
41474         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
41475         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
41476
41477 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
41478
41479         PR lto/60820
41480         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
41481
41482 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
41483
41484         * config/i386/i386.c (examine_argument): Return bool.  Return true if
41485         parameter should be passed in memory.
41486         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
41487         (construct_container): Update calls to examine_argument.
41488         (function_arg_advance_64): Ditto.
41489         (return_in_memory_32): Merge with ix86_return_in_memory.
41490         (return_in_memory_64): Ditto.
41491         (return_in_memory_ms_64): Ditto.
41492
41493 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
41494
41495         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
41496         * coverage.c (coverage_compute_profile_id): Handle externally visible
41497         symbols.
41498
41499 2014-04-14  Martin Jambor  <mjambor@suse.cz>
41500
41501         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
41502         DECL_DISREGARD_INLINE_LIMITS functions.
41503
41504 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
41505
41506         PR target/60827
41507         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
41508
41509 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
41510
41511         PR target/60827
41512         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
41513         optimize_insn_for_speed_p instead of
41514         optimize_function_for_speed_p.
41515
41516 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
41517
41518         * doc/invoke.texi (free): Document AArch64.
41519
41520 2014-04-14  Richard Biener  <rguenther@suse.de>
41521
41522         PR tree-optimization/60042
41523         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
41524         (insert_into_preds_of_block): Do not prevent PHI insertion
41525         for REFERENCE exprs here ...
41526         (eliminate_dom_walker::before_dom_children): ... but prevent
41527         their use here under similar conditions when applied to the
41528         IL after PRE optimizations.
41529
41530 2014-04-14  Richard Biener  <rguenther@suse.de>
41531
41532         * passes.def: Move early points-to after early SRA.
41533
41534 2014-04-14  Richard Biener  <rguenther@suse.de>
41535
41536         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
41537         check for which sign-changes we allow when forwarding
41538         a converted value into a switch.
41539
41540 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
41541
41542         * stor-layout.c (place_field): Finalize non-constant offset for the
41543         field, if any.
41544
41545 2014-04-14  Richard Biener  <rguenther@suse.de>
41546
41547         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
41548         as argument.
41549         (expand_switch_using_bit_tests_p): Likewise.
41550         (process_switch): Compute and pass on speed_p based on the
41551         switch stmt.
41552         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
41553         optimize_bb_for_speed_p.
41554
41555 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
41556
41557         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
41558         * function.h (struct function): Rename has_force_vect_loops into
41559         has_force_vectorize_loops.
41560         * lto-streamer-in.c (input_cfg): Adjust for renaming.
41561         (input_struct_function_base): Likewise.
41562         * lto-streamer-out.c (output_cfg): Likewise.
41563         (output_struct_function_base): Likewise.
41564         * omp-low.c (expand_omp_simd): Likewise.
41565         * tree-cfg.c (move_sese_region_to_fn): Likewise.
41566         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
41567         (version_loop_for_if_conversion): Likewise.
41568         (tree_if_conversion): Likewise.
41569         (main_tree_if_conversion): Likewise.
41570         (gate_tree_if_conversion): Likewise.
41571         * tree-inline.c (copy_loops): Likewise.
41572         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
41573         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
41574         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
41575         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
41576         * tree-vectorizer.c (vectorize_loops): Likewise.
41577         * tree-vectorizer.h (unlimited_cost_model): Likewise.
41578
41579 2014-04-14  Richard Biener  <rguenther@suse.de>
41580
41581         PR lto/60720
41582         * lto-streamer-out.c (wrap_refs): New function.
41583         (lto_output): Wrap symbol references in global initializes in
41584         type-preserving MEM_REFs.
41585
41586 2014-04-14  Christian Bruel  <christian.bruel@st.com>
41587
41588         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
41589
41590 2014-04-14  Christian Bruel  <christian.bruel@st.com>
41591
41592         * config/sh/sh.md (setmemqi): New expand pattern.
41593         * config/sh/sh.h (CLEAR_RATIO): Define.
41594         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
41595         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
41596
41597 2014-04-14  Richard Biener  <rguenther@suse.de>
41598
41599         PR middle-end/55022
41600         * fold-const.c (negate_expr_p): Don't negate directional rounding
41601         division.
41602         (fold_negate_expr): Likewise.
41603
41604 2014-04-14  Richard Biener  <rguenther@suse.de>
41605
41606         PR tree-optimization/59817
41607         PR tree-optimization/60453
41608         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
41609         recursion to catch all CHRECs in the scalar evolution and restrict
41610         the predicate for the remains appropriately.
41611
41612 2014-04-12  Catherine Moore  <clm@codesourcery.com>
41613
41614         * config/mips/constraints.md: Add new register constraint "kb".
41615         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
41616         (*movhi_internal): Likewise.
41617         (*movqi_internal): Likewise.
41618         * config/mips/mips.h (M16_STORE_REGS): New register class.
41619         (REG_CLASS_NAMES): Add M16_STORE_REGS.
41620         (REG_CLASS_CONTENTS): Likewise.
41621         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
41622
41623 2014-04-11  Tobias Burnus  <burnus@net-b.de>
41624
41625         PR c/60194
41626         * doc/invoke.texi (-Wformat-signedness): Document it.
41627         (Wformat=2): Mention that this enables -Wformat-signedness.
41628
41629 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41630
41631         * common/config/epiphany/epiphany-common.c
41632         (epiphany_option_optimization_table): Enable section anchors by
41633         default at -O1 or higher.
41634         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
41635         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
41636         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
41637         carries no extra cost.
41638         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
41639         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
41640         * config/epiphany/predicates.md (memclob_operand): New predicate.
41641         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
41642         Use memclob_operand predicate and X constraint for operand 3.
41643
41644 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41645
41646         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
41647         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
41648         its operands.
41649
41650 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41651
41652         PR rtl-optimization/60651
41653         * mode-switching.c (optimize_mode_switching): Make sure to emit
41654         sets of a lower numbered entity before sets of a higher numbered
41655         entity to a mode of the same or lower priority.
41656         When creating a seginfo for a basic block that starts with a code
41657         label, move the insertion point past the code label.
41658         (new_seginfo): Document and enforce requirement that
41659         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
41660         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
41661         * doc/tm.texi: Regenerate.
41662
41663 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41664
41665         PR target/60811
41666         * config/arc/arc.c (arc_save_restore): Fix assert typo.
41667
41668 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
41669
41670         * BASE-VER: Set to 4.10.0.
41671
41672 2014-04-11  Tobias Burnus  <burnus@net-b.de>
41673
41674         PR other/59055
41675         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
41676         * doc/gcc.texi (Service): Update description in the @menu
41677         * doc/invoke.texi (Option Summary): Remove misplaced and
41678         duplicated @menu.
41679
41680 2014-04-11  Steve Ellcey  <sellcey@mips.com>
41681             Jakub Jelinek  <jakub@redhat.com>
41682
41683         PR middle-end/60556
41684         * expr.c (convert_move): Use emit_store_flag_force instead of
41685         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
41686         argument to it.
41687
41688 2014-04-11  Richard Biener  <rguenther@suse.de>
41689
41690         PR middle-end/60797
41691         * varasm.c (assemble_alias): Avoid endless error reporting
41692         recursion by setting TREE_ASM_WRITTEN.
41693
41694 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41695
41696         * config/s390/s390.md: Add a splitter for NOT rtx.
41697
41698 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
41699
41700         PR rtl-optimization/60663
41701         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
41702
41703 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
41704             Jakub Jelinek  <jakub@redhat.com>
41705
41706         PR lto/60567
41707         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
41708         flag from decl_node to node.
41709
41710 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41711
41712         PR debug/60655
41713         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
41714         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
41715         ameliorating the cases where it can be.
41716
41717 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
41718
41719         Revert
41720         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
41721
41722         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
41723         (loadsync_<mode>): Change mode.
41724         (load_quadpti, store_quadpti): New.
41725         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
41726         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
41727         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
41728
41729 2014-04-09  Cong Hou  <congh@google.com>
41730
41731         PR testsuite/60773
41732         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
41733         documentation.
41734
41735 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41736
41737         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
41738         instead of vnor to exploit possible fusion opportunity in the
41739         future.
41740         (altivec_expand_vec_perm_const_le): Likewise.
41741
41742 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
41743
41744         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
41745         (loadsync_<mode>): Change mode.
41746         (load_quadpti, store_quadpti): New.
41747         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
41748         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
41749
41750 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
41751
41752         PR target/60763
41753         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
41754         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
41755         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
41756
41757 2014-04-08  Richard Biener  <rguenther@suse.de>
41758
41759         PR middle-end/60706
41760         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
41761         a 64bit widest int print double-int similar to on HWI64 hosts.
41762
41763 2014-04-08  Richard Biener  <rguenther@suse.de>
41764
41765         PR tree-optimization/60785
41766         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
41767         default defs properly.
41768
41769 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
41770
41771         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
41772         (Weffc++): Likewise.
41773
41774 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
41775
41776         * ipa-devirt.c (maybe_record_node): When node is not recorded,
41777         set completep to false rather than true.
41778
41779 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
41780
41781         PR target/60504
41782         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
41783         ARM_TARGET2_DWARF_FORMAT.
41784
41785 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
41786
41787         PR target/60609
41788         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
41789         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
41790         ADDR_DIFF_VEC.
41791
41792 2014-04-07  Richard Biener  <rguenther@suse.de>
41793
41794         PR tree-optimization/60766
41795         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
41796         (may_eliminate_iv): Convert cand_value_at result to desired type.
41797
41798 2014-04-07  Jason Merrill  <jason@redhat.com>
41799
41800         PR c++/60731
41801         * common.opt (-fno-gnu-unique): Add.
41802         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
41803
41804 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41805
41806         * haifa-sched.c: Fix outdated function reference and minor
41807         grammar errors in introductory comment.
41808
41809 2014-04-07  Richard Biener  <rguenther@suse.de>
41810
41811         PR middle-end/60750
41812         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
41813         for noreturn calls.
41814         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
41815
41816 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
41817
41818         PR debug/55794
41819         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
41820         size accounting for thunks.
41821         (pa_asm_output_mi_thunk): Use final_start_function() and
41822         final_end_function() to output function start and end directives.
41823
41824 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
41825
41826         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
41827         device specific ISA/ feature information. Remove short_sp and
41828         errata_skip ds.  Add avr_device_specific_features enum to have device
41829         specific info.
41830         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
41831         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
41832         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
41833         updated device specific info.
41834         * config/avr/avr-mcus.def: Merge device specific details to
41835         dev_attribute field.
41836         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
41837         errata_skip.
41838         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
41839         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
41840         assembler if RMW isa supported by current device.
41841         * config/avr/genmultilib.awk: Update as device info structure changed.
41842         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
41843
41844 2014-04-04  Cong Hou  <congh@google.com>
41845
41846         PR tree-optimization/60656
41847         * tree-vect-stmts.c (supportable_widening_operation):
41848         Fix a bug that elements in a vector with vect_used_by_reduction
41849         property are incorrectly reordered when the operation on it is not
41850         consistant with the one in reduction operation.
41851
41852 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
41853
41854         PR rtl-optimization/60155
41855         * gcse.c (record_set_data): New function.
41856         (single_set_gcse): New function.
41857         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
41858         (hoist_code): Likewise.
41859         (get_pressure_class_and_nregs): Likewise.
41860
41861 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
41862
41863         * explow.c (probe_stack_range): Emit a final optimization blockage.
41864
41865 2014-04-04  Anthony Green  <green@moxielogic.com>
41866
41867         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
41868         typos.
41869
41870 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
41871
41872         PR ipa/59626
41873         * lto-cgraph.c (input_overwrite_node): Check that partitioning
41874         flags are set only during streaming.
41875         * ipa.c (process_references, walk_polymorphic_call_targets,
41876         symtab_remove_unreachable_nodes): Drop bodies of always inline
41877         after early inlining.
41878         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
41879
41880 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
41881         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41882
41883         PR debug/60655
41884         * dwarf2out.c (const_ok_for_output_1): Reject expressions
41885         containing a NOT.
41886
41887 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41888
41889         PR bootstrap/60743
41890         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
41891         duration.
41892         (cortex_a53_fdivd): Likewise.
41893
41894 2014-04-04  Martin Jambor  <mjambor@suse.cz>
41895
41896         PR ipa/60640
41897         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
41898         Adjust all callers.
41899         * cgraph.c (clone_of_p): Also return true if thunks match.
41900         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
41901         cgraph_function_or_thunk_node and an obsolete comment.
41902         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
41903         file.
41904         (build_function_decl_skip_args): Likewise.
41905         (set_new_clone_decl_and_node_flags): New function.
41906         (duplicate_thunk_for_node): Likewise.
41907         (redirect_edge_duplicating_thunks): Likewise.
41908         (cgraph_clone_node): New parameter args_to_skip, pass it to
41909         redirect_edge_duplicating_thunks which is called instead of
41910         cgraph_redirect_edge_callee.
41911         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
41912         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
41913
41914 2014-04-04  Jeff Law  <law@redhat.com>
41915
41916         PR target/60657
41917         * config/arm/predicates.md (const_int_I_operand): New predicate.
41918         (const_int_M_operand): Similarly.
41919         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
41920         const_int_operand.
41921         (insv_t2, extv_reg, extzv_t2): Likewise.
41922         (load_multiple_with_writeback): Similarly for const_int_I_operand.
41923         (pop_multiple_with_writeback_and_return): Likewise.
41924         (vfp_pop_multiple_with_writeback): Likewise
41925
41926 2014-04-04  Richard Biener  <rguenther@suse.de>
41927
41928         PR ipa/60746
41929         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
41930         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
41931         non-GIMPLE_LABELs.
41932         * gimplify.h (gimple_add_tmp_var_fn): Declare.
41933         * gimplify.c (gimple_add_tmp_var_fn): New function.
41934         * gimple-expr.h (create_tmp_reg_fn): Declare.
41935         * gimple-expr.c (create_tmp_reg_fn): New function.
41936         * gimple-low.c (record_vars_into): Don't change cfun.
41937         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
41938         code generation without cfun.
41939
41940 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
41941
41942         PR bootstrap/60719
41943         * Makefile.in (install-driver): Fix shell scripting.
41944
41945 2014-04-03  Cong Hou  <congh@google.com>
41946
41947         PR tree-optimization/60505
41948         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
41949         threshold of number of iterations below which no vectorization
41950         will be done.
41951         * tree-vect-loop.c (new_loop_vec_info):
41952         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
41953         * tree-vect-loop.c (vect_analyze_loop_operations):
41954         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
41955         * tree-vect-loop.c (vect_transform_loop):
41956         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
41957         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
41958         of iterations of the loop and see if we should build the epilogue.
41959
41960 2014-04-03  Richard Biener  <rguenther@suse.de>
41961
41962         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
41963         (streamer_tree_cache_create): Adjust.
41964         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
41965         to allow optional nodes array.
41966         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
41967         (streamer_tree_cache_append): Likewise.
41968         (streamer_tree_cache_create): Create nodes array optionally
41969         as specified by parameter.
41970         * lto-streamer-out.c (create_output_block): Avoid maintaining
41971         the node array in the writer cache.
41972         (DFS_write_tree): Remove assertion.
41973         (produce_asm_for_decls): Free the out decl state hash table early.
41974         * lto-streamer-in.c (lto_data_in_create): Adjust for
41975         streamer_tree_cache_create prototype change.
41976
41977 2014-04-03  Richard Biener  <rguenther@suse.de>
41978
41979         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
41980         set TREE_CHAIN to NULL_TREE.
41981
41982 2014-04-03  Richard Biener  <rguenther@suse.de>
41983
41984         PR tree-optimization/60740
41985         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
41986         over all GIMPLE_COND operands.
41987
41988 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
41989
41990         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
41991         (Weffc++): Remove Scott's numbering, merge lists and reference
41992         Wnon-virtual-dtor.
41993
41994 2014-04-03  Nick Clifton  <nickc@redhat.com>
41995
41996         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
41997         properly.
41998
41999 2014-04-03  Martin Jambor  <mjambor@suse.cz>
42000
42001         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
42002         mention gcc_unreachable before failing.
42003         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
42004         removed symbols.
42005
42006 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
42007
42008         PR ipa/60659
42009         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
42010         inconsistent code and instead mark the context inconsistent.
42011         (possible_polymorphic_call_targets): For inconsistent contexts
42012         return empty complete list.
42013
42014 2014-04-02  Anthony Green  <green@moxielogic.com>
42015
42016         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
42017         (extendqisi2, extendhisi2): Define.
42018         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
42019         (WCHAR_TYPE): Change to unsigned int.
42020
42021 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42022
42023         PR tree-optimization/60733
42024         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
42025         insertion point for PHI candidates to be the end of the feeding
42026         block for the PHI argument.
42027
42028 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
42029
42030         PR rtl-optimization/60650
42031         * lra-constraints.c (process_alt_operands): Decrease reject for
42032         earlyclobber matching.
42033
42034 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42035
42036         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
42037
42038 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
42039
42040         * config/spu/spu.c (pad_bb): Do not crash when the last
42041         insn is CODE_FOR_blockage.
42042
42043 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
42044
42045         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
42046         lies outside the target mode.
42047
42048 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
42049
42050         PR target/60735
42051         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
42052         software floating point or no floating point registers, do not
42053         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
42054         in GPRs that occurs after we tested for GPRs that would never be
42055         true.
42056
42057         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
42058         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
42059         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
42060         specifically allow DDmode, since that does not use the SPE SIMD
42061         instructions.
42062
42063 2014-04-02  Richard Biener  <rguenther@suse.de>
42064
42065         PR middle-end/60729
42066         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
42067         MODE_INTs.  Properly use negv_optab.
42068         (expand_abs): Likewise.
42069
42070 2014-04-02  Richard Biener  <rguenther@suse.de>
42071
42072         PR bootstrap/60719
42073         * Makefile.in (install-driver): Guard extra installs with special
42074         names properly.
42075
42076 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
42077
42078         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
42079         Document vec_vgbbd.
42080
42081 2014-04-01  Richard Henderson  <rth@redhat.com>
42082
42083         PR target/60704
42084         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
42085         alternative enabled before register allocation.
42086
42087 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
42088
42089         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
42090         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
42091         typo.
42092         (nios2_large_got_address): Remove unneeded 'sym' parameter.
42093         (nios2_got_address): Update nios2_large_got_address call site.
42094         (nios2_delegitimize_address): New function.
42095         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
42096         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
42097         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
42098
42099 2014-04-01  Martin Husemann  <martin@duskware.de>
42100
42101         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
42102         for -mabi=32.
42103
42104 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
42105
42106         PR rtl-optimization/60604
42107         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
42108         check from register_operand.
42109         (register_operand): Redefine in terms of general_operand.
42110         (nonmemory_operand): Use register_operand for the non-constant cases.
42111
42112 2014-04-01  Richard Biener  <rguenther@suse.de>
42113
42114         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
42115
42116 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42117
42118         * doc/invoke.texi (mapp-regs): Clarify.
42119
42120 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
42121
42122         * config/i386/avx512fintrin.h (__v32hi): Define type.
42123         (__v64qi): Likewise.
42124         (_mm512_set1_epi8): Define.
42125         (_mm512_set1_epi16): Define.
42126         (_mm512_set4_epi32): Define.
42127         (_mm512_set4_epi64): Define.
42128         (_mm512_set4_pd): Define.
42129         (_mm512_set4_ps): Define.
42130         (_mm512_setr4_epi64): Define.
42131         (_mm512_setr4_epi32): Define.
42132         (_mm512_setr4_pd): Define.
42133         (_mm512_setr4_ps): Define.
42134         (_mm512_setzero_epi32): Define.
42135
42136 2014-03-31  Martin Jambor  <mjambor@suse.cz>
42137
42138         PR middle-end/60647
42139         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
42140         callsite_arguments_match_p.  Updated all callers.  Also check types of
42141         corresponding formal parameters and actual arguments.
42142         (not_all_callers_have_enough_arguments_p) Renamed to
42143         some_callers_have_mismatched_arguments_p.
42144
42145 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
42146
42147         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
42148
42149 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
42150
42151         PR target/60034
42152         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
42153         section anchor.
42154
42155 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
42156
42157         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
42158         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
42159         Split out
42160         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
42161         Use FMAMODE_NOVF512 mode iterator.
42162         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
42163         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
42164         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
42165         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
42166         Split out
42167         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
42168         Use VF_128_256 mode iterator.
42169         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
42170         Ditto.
42171
42172 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
42173
42174         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
42175         static chain if needed.
42176
42177 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
42178
42179         PR target/60697
42180         * lra-constraints.c (index_part_to_reg): New.
42181         (process_address): Use it.
42182
42183 2014-03-27  Jeff Law  <law@redhat.com>
42184             Jakub Jelinek  <jakub@redhat.com>
42185
42186         PR target/60648
42187         * expr.c (do_tablejump): Use simplify_gen_binary rather than
42188         gen_rtx_{PLUS,MULT} to build up the address expression.
42189
42190         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
42191         creating non-canonical RTL.
42192
42193 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
42194
42195         PR ipa/60243
42196         * ipa-inline.c (want_inline_small_function_p): Short circuit large
42197         functions; reorganize to make cheap checks first.
42198         (inline_small_functions): Do not estimate growth when dumping;
42199         it is expensive.
42200         * ipa-inline.h (inline_summary): Add min_size.
42201         (growth_likely_positive): New function.
42202         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
42203         (set_cond_stmt_execution_predicate): Cleanup.
42204         (estimate_edge_size_and_time): Compute min_size.
42205         (estimate_calls_size_and_time): Likewise.
42206         (estimate_node_size_and_time): Likewise.
42207         (inline_update_overall_summary): Update min_size.
42208         (do_estimate_edge_time): Likewise.
42209         (do_estimate_edge_size): Update.
42210         (do_estimate_edge_hints): Update.
42211         (growth_likely_positive): New function.
42212
42213 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
42214
42215         PR target/60693
42216         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
42217         also if addr has VOIDmode.
42218
42219 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42220
42221         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
42222         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
42223         Declare extern.
42224         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
42225         instructions as well as AdvancedSIMD loads.
42226
42227 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42228
42229         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
42230         Use crypto_aese type.
42231         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
42232         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
42233         crypto_aese, crypto_aesmc.  Move to types.md.
42234         * config/arm/types.md (crypto_aes): Split into crypto_aese,
42235         crypto_aesmc.
42236         * config/arm/iterators.md (crypto_type): Likewise.
42237
42238 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
42239
42240         * cgraph.c: Include expr.h and tree-dfa.h.
42241         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
42242         remove LHS.
42243
42244 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
42245
42246         PR target/60675
42247         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
42248         regs from checking multi-reg pseudos.
42249
42250 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
42251
42252         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
42253
42254 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
42255
42256         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
42257         if it would clobber the stack pointer, even temporarily.
42258
42259 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
42260
42261         * mode-switching.c: Make small adjustments to the top comment.
42262
42263 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
42264
42265         * config/rs6000/constraints.md (wD constraint): New constraint to
42266         match the constant integer to get the top DImode/DFmode out of a
42267         vector in a VSX register.
42268
42269         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
42270         match the constant integer to get the top DImode/DFmode out of a
42271         vector in a VSX register.
42272
42273         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
42274         for ISA 2.07.
42275
42276         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
42277         vbpermq builtins.
42278
42279         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
42280         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
42281
42282         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
42283         Optimize vec_extract of 64-bit values, where the value being
42284         extracted is in the top word, where we can use scalar
42285         instructions.  Add direct move and store support.  Combine the big
42286         endian/little endian vector select load support into a single insn.
42287         (vsx_extract_<mode>_internal1): Likewise.
42288         (vsx_extract_<mode>_internal2): Likewise.
42289         (vsx_extract_<mode>_load): Likewise.
42290         (vsx_extract_<mode>_store): Likewise.
42291         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
42292         combined into vsx_extract_<mode>_load.
42293         (vsx_extract_<mode>_one_le): Likewise.
42294
42295         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
42296         define the top 64-bit vector element.
42297
42298         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
42299         constraint.
42300
42301         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
42302         Document vec_vbpermq builtin.
42303
42304         PR target/60672
42305         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
42306         enable use of xxsldwi and xxpermdi builtin functions.
42307         (vec_xxpermdi): Likewise.
42308
42309         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
42310         Document use of vec_xxsldwi and vec_xxpermdi builtins.
42311
42312 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
42313
42314         PR rtl-optimization/60650
42315         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
42316         first_p.  Use it.
42317         (find_spills_for): New.
42318         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
42319         Spill all pseudos on the second iteration.
42320
42321 2014-03-27  Marek Polacek  <polacek@redhat.com>
42322
42323         PR c/50347
42324         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
42325         types.
42326
42327 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42328
42329         * config/s390/s390.c (s390_can_use_return_insn): Check for
42330         call-saved FPRs on 31 bit.
42331
42332 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
42333
42334         PR middle-end/60682
42335         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
42336         if they need regimplification, just drop them instead of
42337         calling gimple_regimplify_operands on them.
42338
42339 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
42340
42341         PR target/60580
42342         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
42343         (aarch64_frame_pointer_required): Adjust logic.
42344         (aarch64_can_eliminate): Adjust logic.
42345         (aarch64_override_options_after_change): Adjust logic.
42346
42347 2014-03-27  Dehao Chen  <dehao@google.com>
42348
42349         * ipa-inline.c (early_inliner): Update node's inline info.
42350
42351 2014-03-26  Dehao Chen  <dehao@google.com>
42352
42353         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
42354         compiler inserted conditional jumps for NAN float check.
42355
42356 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
42357
42358         * ubsan.h (ubsan_create_data): Change second argument's type
42359         to const location_t *.
42360         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
42361         _("<unknown>").
42362         (ubsan_create_data): Change second argument to const location_t *PLOC.
42363         Create Loc field whenever PLOC is non-NULL.
42364         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
42365         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
42366         callers.
42367
42368         PR other/59545
42369         * real.c (real_to_integer2): Change type of low to UHWI.
42370
42371 2014-03-26  Tobias Burnus  <burnus@net-b.de>
42372
42373         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
42374         (CILK_SELF_SPECS): New define.
42375         (driver_self_specs): Use it.
42376
42377 2014-03-26  Richard Biener  <rguenther@suse.de>
42378
42379         * tree-pretty-print.c (percent_K_format): Implement special
42380         case for LTO and its stripped down BLOCK tree.
42381
42382 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
42383
42384         PR sanitizer/60636
42385         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
42386
42387         * tree-vrp.c (simplify_internal_call_using_ranges): If only
42388         one range is range_int_cst_p, but not both, at least optimize
42389         addition/subtraction of 0 and multiplication by 0 or 1.
42390         * gimple-fold.c (gimple_fold_call): Fold
42391         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
42392         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
42393         INTEGER_CSTs, try to fold at least x * 0 and y - y.
42394
42395 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
42396
42397         PR rtl-optimization/60452
42398         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
42399         <case REG>: Return 1 for invalid offsets from the frame pointer.
42400
42401 2014-03-26  Marek Polacek  <polacek@redhat.com>
42402
42403         PR c/37428
42404         * doc/extend.texi (C Extensions): Mention variable-length arrays in
42405         a structure/union.
42406
42407 2014-03-26  Marek Polacek  <polacek@redhat.com>
42408
42409         PR c/39525
42410         * doc/extend.texi (Designated Inits): Describe what happens to omitted
42411         field members.
42412
42413 2014-03-26  Marek Polacek  <polacek@redhat.com>
42414
42415         PR other/59545
42416         * ira-color.c (update_conflict_hard_regno_costs): Perform the
42417         multiplication in unsigned type.
42418
42419 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
42420
42421         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
42422
42423 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
42424
42425         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
42426
42427 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
42428
42429         PR ipa/60315
42430         * cif-code.def (UNREACHABLE) New code.
42431         * ipa-inline.c (inline_small_functions): Skip edges to
42432         __builtlin_unreachable.
42433         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
42434         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
42435         predicate to __bulitin_unreachable.
42436         (set_cond_stmt_execution_predicate): Fix issue when
42437         invert_tree_comparison returns ERROR_MARK.
42438         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
42439         propagate to inline clones.
42440         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
42441         to unreachable.
42442         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
42443         * cgraphclones.c (cgraph_clone_node): If call destination is already
42444         ureachable, do not redirect it back.
42445         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
42446         unreachable.
42447
42448 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
42449
42450         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
42451         Do not modify inline clones.
42452
42453 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
42454
42455         * config/i386/i386.md (general_sext_operand): New mode attr.
42456         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
42457         don't generate (sign_extend (const_int)).
42458         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
42459         operands[2].  Use We constraint instead of <i> and
42460         <general_sext_operand> predicate instead of <general_operand>.
42461         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
42462         * config/i386/constraints.md (We): New constraint.
42463         * config/i386/predicates.md (x86_64_sext_operand,
42464         sext_operand): New predicates.
42465
42466 2014-03-25  Martin Jambor  <mjambor@suse.cz>
42467
42468         PR ipa/60600
42469         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
42470         inconsistent devirtualizations to __builtin_unreachable.
42471
42472 2014-03-25  Marek Polacek  <polacek@redhat.com>
42473
42474         PR c/35449
42475         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
42476
42477 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
42478
42479         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
42480         order of elements for big-endian.
42481
42482 2014-03-25  Richard Biener  <rguenther@suse.de>
42483
42484         PR middle-end/60635
42485         * gimplify-me.c (gimple_regimplify_operands): Update the
42486         re-gimplifed stmt.
42487
42488 2014-03-25  Martin Jambor  <mjambor@suse.cz>
42489
42490         PR ipa/59176
42491         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
42492         (lto_output_varpool_node): Likewise.
42493         (input_overwrite_node): Likewise.
42494         (input_varpool_node): Likewise.
42495
42496 2014-03-25  Richard Biener  <rguenther@suse.de>
42497
42498         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
42499         (run_gcc): Likewise.
42500
42501 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
42502
42503         * combine.c (simplify_compare_const): Add MODE argument.
42504         Handle mode_width 0 as very large mode_width.
42505         (try_combine, simplify_comparison): Adjust callers.
42506
42507         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
42508         type to avoid signed integer overflow.
42509         * explow.c (plus_constant): Likewise.
42510
42511 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
42512
42513         * doc/generic.texi: Correct typos.
42514
42515 2014-03-24  Tobias Burnus  <burnus@net-b.de>
42516
42517         * doc/invoke.texi (-flto): Expand section about
42518         using static libraries with LTO.
42519
42520 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42521
42522         PR rtl-optimization/60501
42523         * optabs.def (addptr3_optab): New optab.
42524         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
42525         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
42526         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
42527
42528         * lra.c (emit_add3_insn): Use the addptr pattern if available.
42529
42530         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
42531
42532 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
42533
42534         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
42535         _mm512_set1_pd.
42536
42537         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
42538         (_mm256_undefined_ps): Define.
42539         (_mm256_undefined_pd): Define.
42540         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
42541         (_mm_undefined_pd): Define.
42542         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
42543         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
42544         (_mm512_undefined_ps): Define.
42545         (_mm512_undefined_pd): Define.
42546         Use _mm*_undefined_*.
42547         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
42548
42549 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
42550
42551         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
42552         (lshr_simd): DI mode added.
42553         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
42554         (aarch64_ushr_simddi): Likewise.
42555         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
42556         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
42557         (vshrd_n_u64): Likewise.
42558
42559 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42560
42561         * Makefile.in (s-macro_list): Depend on cc1.
42562
42563 2014-03-23  Teresa Johnson  <tejohnson@google.com>
42564
42565         * ipa-utils.c (ipa_print_order): Use specified dump file.
42566
42567 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
42568
42569         PR rtl-optimization/60601
42570         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
42571
42572         * gcc.c (eval_spec_function): Initialize save_growing_value.
42573
42574 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
42575
42576         PR sanitizer/60613
42577         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
42578         code == MINUS_EXPR, never swap op0 with op1.
42579
42580         * toplev.c (init_local_tick): Avoid signed integer multiplication
42581         overflow.
42582         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
42583         shift by first operand's bitsize.
42584
42585 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
42586
42587         PR target/60610
42588         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
42589         redefine to 1 or 0.
42590         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
42591         TARGET_ISA_64BIT_P(x).
42592
42593 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42594
42595         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
42596         pattern for vector nor instead of subtract from splat(-1).
42597         (altivec_expand_vec_perm_const_le): Likewise.
42598
42599 2014-03-21  Richard Henderson  <rth@twiddle.net>
42600
42601         PR target/60598
42602         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
42603         related insns after epilogue_completed.
42604
42605 2014-03-21  Martin Jambor  <mjambor@suse.cz>
42606
42607         PR ipa/59176
42608         * cgraph.h (symtab_node): New flag body_removed.
42609         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
42610         when removing bodies.
42611         * symtab.c (dump_symtab_base): Dump body_removed flag.
42612         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
42613         had their bodies removed.
42614
42615 2014-03-21  Martin Jambor  <mjambor@suse.cz>
42616
42617         PR ipa/60419
42618         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
42619         in the border.
42620
42621 2014-03-21  Richard Biener  <rguenther@suse.de>
42622
42623         PR tree-optimization/60577
42624         * tree-core.h (struct tree_base): Document nothrow_flag use
42625         in DECL_NONALIASED.
42626         * tree.h (DECL_NONALIASED): New.
42627         (may_be_aliased): Adjust.
42628         * coverage.c (build_var): Set DECL_NONALIASED.
42629
42630 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
42631
42632         * expr.c (expand_expr_real_1): Remove outdated comment.
42633
42634 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
42635
42636         PR middle-end/60597
42637         * ira.c (adjust_cleared_regs): Call copy_rtx on
42638         *reg_equiv[REGNO (loc)].src_p before passing it to
42639         simplify_replace_fn_rtx.
42640
42641         PR target/60568
42642         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
42643         into CONST, put pic register as first operand of PLUS.  Use
42644         gen_const_mem for both 32-bit and 64-bit PIC got loads.
42645
42646 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
42647
42648         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
42649
42650 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
42651
42652         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
42653         around for store forwarding issue in the FPU on the UT699.
42654         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
42655         loads and operations if -mfix-ut699 is specified.
42656         (divtf3_hq): Tweak attribute.
42657         (sqrttf2_hq): Likewise.
42658
42659 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
42660
42661         * calls.c (store_one_arg): Remove incorrect const qualification on the
42662         type of the temporary.
42663         * cfgexpand.c (expand_return): Likewise.
42664         * expr.c (expand_constructor): Likewise.
42665         (expand_expr_real_1): Likewise.
42666
42667 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
42668
42669         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
42670         of parts.
42671
42672 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
42673
42674         PR target/60039
42675         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
42676
42677 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
42678
42679         * config/arm/aarch-common-protos.h
42680         (alu_cost_table): Fix spelling of "extend".
42681         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
42682
42683 2014-03-19  Richard Biener  <rguenther@suse.de>
42684
42685         PR middle-end/60553
42686         * tree-core.h (tree_type_common): Re-order pointer members
42687         to reduce recursion depth during GC walks.
42688
42689 2014-03-19  Marek Polacek  <polacek@redhat.com>
42690
42691         PR sanitizer/60569
42692         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
42693         before accessing it.
42694
42695 2014-03-19  Richard Biener  <rguenther@suse.de>
42696
42697         PR lto/59543
42698         * lto-streamer-in.c (input_function): In WPA stage do not drop
42699         debug stmts.
42700
42701 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
42702
42703         PR tree-optimization/60559
42704         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
42705         with build_zero_cst assignment.
42706
42707 2014-03-18  Kai Tietz  <ktietz@redhat.com>
42708
42709         PR rtl-optimization/56356
42710         * sdbout.c (sdbout_parms): Verify that parms'
42711         incoming argument is valid.
42712         (sdbout_reg_parms): Likewise.
42713
42714 2014-03-18  Richard Henderson  <rth@redhat.com>
42715
42716         PR target/60562
42717         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
42718         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
42719         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
42720
42721 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
42722
42723         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
42724         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
42725         Italicize plugin event names in description.  Explain that
42726         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
42727         Remind that no GCC functions should be called after PLUGIN_FINISH.
42728         Explain what pragmas with expansion are.
42729
42730 2014-03-18  Martin Liska  <mliska@suse.cz>
42731
42732         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
42733         gimple call statement is update.
42734         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
42735         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
42736
42737 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
42738
42739         PR sanitizer/60557
42740         * ubsan.c (ubsan_instrument_unreachable): Call
42741         initialize_sanitizer_builtins.
42742         (ubsan_pass): Likewise.
42743
42744         PR sanitizer/60535
42745         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
42746         varpool_finalize_decl instead of rest_of_decl_compilation.
42747
42748 2014-03-18  Richard Biener  <rguenther@suse.de>
42749
42750         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
42751         by using bitmap_and_compl instead of bitmap_and_compl_into.
42752         (df_rd_transfer_function): Likewise.
42753
42754 2014-03-18  Richard Biener  <rguenther@suse.de>
42755
42756         * doc/lto.texi (fresolution): Fix typo.
42757
42758 2014-03-18  Richard Biener  <rguenther@suse.de>
42759
42760         * doc/invoke.texi (flto): Update for changes in 4.9.
42761
42762 2014-03-18  Richard Biener  <rguenther@suse.de>
42763
42764         * doc/loop.texi: Remove section on the removed lambda framework.
42765         Update loop docs with recent changes in preserving loop structure.
42766
42767 2014-03-18  Richard Biener  <rguenther@suse.de>
42768
42769         * doc/lto.texi (-fresolution): Document.
42770
42771 2014-03-18  Richard Biener  <rguenther@suse.de>
42772
42773         * doc/contrib.texi: Adjust my name.
42774
42775 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
42776
42777         PR ipa/58721
42778         * internal-fn.c: Include diagnostic-core.h.
42779         (expand_BUILTIN_EXPECT): New function.
42780         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
42781         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
42782         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
42783         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
42784         IFN_BUILTIN_EXPECT.
42785         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
42786         Revert 3 argument __builtin_expect code.
42787         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
42788         * gimple-fold.c (gimple_fold_call): Likewise.
42789         * tree.h (fold_builtin_expect): New prototype.
42790         * builtins.c (build_builtin_expect_predicate): Add predictor
42791         argument, if non-NULL, create 3 argument __builtin_expect.
42792         (fold_builtin_expect): No longer static.  Add ARG2 argument,
42793         pass it through to build_builtin_expect_predicate.
42794         (fold_builtin_2): Adjust caller.
42795         (fold_builtin_3): Handle BUILT_IN_EXPECT.
42796         * internal-fn.def (BUILTIN_EXPECT): New.
42797
42798 2014-03-18  Tobias Burnus  <burnus@net-b.de>
42799
42800         PR ipa/58721
42801         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
42802         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
42803         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
42804
42805 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
42806
42807         PR ipa/58721
42808         * predict.c (combine_predictions_for_bb): Fix up formatting.
42809         (expr_expected_value_1, expr_expected_value): Add predictor argument,
42810         fill what it points to if non-NULL.
42811         (tree_predict_by_opcode): Adjust caller, use the predictor.
42812         * predict.def (PRED_COMPARE_AND_SWAP): Add.
42813
42814 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
42815
42816         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
42817         proper constant for the store mode.
42818
42819 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
42820
42821         * symtab.c (change_decl_assembler_name): Fix transparent alias
42822         chain construction.
42823
42824 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
42825
42826         * config/aarch64/aarch64.c: Correct the comments about the
42827         aarch64 stack layout.
42828
42829 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
42830
42831         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
42832         check for GF_OMP_FOR_KIND_FOR.
42833
42834 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
42835
42836         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
42837         ymm and zmm register names.
42838
42839 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
42840
42841         PR target/60516
42842         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
42843         note creation for the 2010-08-31 changes.
42844
42845 2014-03-17  Marek Polacek  <polacek@redhat.com>
42846
42847         PR middle-end/60534
42848         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
42849         as -fno-tree-loop-vectorize.
42850         (expand_omp_simd): Likewise.
42851
42852 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
42853
42854         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
42855         (eligible_for_call_delay): New prototype.
42856         * config/sparc/sparc.c (tls_call_delay): Rename into...
42857         (eligible_for_call_delay): ...this.  Return false if the instruction
42858         cannot be put in the delay slot of a branch.
42859         (eligible_for_restore_insn): Simplify.
42860         (eligible_for_return_delay): Return false if the instruction cannot be
42861         put in the delay slot of a branch and simplify.
42862         (eligible_for_sibcall_delay): Return false if the instruction cannot be
42863         put in the delay slot of a branch.
42864         * config/sparc/sparc.md (fix_ut699): New attribute.
42865         (tls_call_delay): Delete.
42866         (in_call_delay): Reimplement.
42867         (eligible_for_sibcall_delay): Rename into...
42868         (in_sibcall_delay): ...this.
42869         (eligible_for_return_delay): Rename into...
42870         (in_return_delay): ...this.
42871         (in_branch_delay): Reimplement.
42872         (in_uncond_branch_delay): Delete.
42873         (in_annul_branch_delay): Delete.
42874
42875 2014-03-14  Richard Henderson  <rth@redhat.com>
42876
42877         PR target/60525
42878         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
42879         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
42880         (*floathi<X87MODEF>2_i387_with_temp): Remove.
42881         (floathi splitters): Remove.
42882         (float<SWI48x>xf2): New pattern.
42883         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
42884         code that tried to handle DImode for 32-bit, but which was excluded
42885         by the pattern's condition.  Drop allocation of stack temporary.
42886         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
42887         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
42888         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
42889         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
42890         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
42891         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
42892         (*float<SWI48><MODEF>2_sse_interunit): Remove.
42893         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
42894         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
42895         (*float<SWI48x><X87MODEF>2_i387): Remove.
42896         (all float _with_temp splitters): Remove.
42897         (*float<SWI48x><MODEF>2_i387): New pattern.
42898         (*float<SWI48><MODEF>2_sse): New pattern.
42899         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
42900         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
42901
42902 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
42903             Marek Polacek  <polacek@redhat.com>
42904
42905         PR middle-end/60484
42906         * common.opt (dump_base_name_prefixed): New Variable.
42907         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
42908         if x_dump_base_name_prefixed is already set, set it at the end.
42909
42910 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
42911
42912         PR rtl-optimization/60508
42913         * lra-constraints.c (get_reload_reg): Add new parameter
42914         in_subreg_p.
42915         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
42916         Pass the new parameter values.
42917
42918 2014-03-14  Richard Biener  <rguenther@suse.de>
42919
42920         * common.opt: Revert unintented changes from r205065.
42921         * opts.c: Likewise.
42922
42923 2014-03-14  Richard Biener  <rguenther@suse.de>
42924
42925         PR middle-end/60518
42926         * cfghooks.c (split_block): Properly adjust all loops the
42927         block was a latch of.
42928
42929 2014-03-14  Martin Jambor  <mjambor@suse.cz>
42930
42931         PR lto/60461
42932         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
42933         and simplify it.
42934
42935 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
42936
42937         PR target/59396
42938         * config/avr/avr.c (avr_set_current_function): Pass function name
42939         through default_strip_name_encoding before sanity checking instead
42940         of skipping the first char of the assembler name.
42941
42942 2014-03-13  Richard Henderson  <rth@redhat.com>
42943
42944         PR debug/60438
42945         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
42946         (ix86_force_to_memory, ix86_free_from_memory): Remove.
42947         * config/i386/i386-protos.h: Likewise.
42948         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
42949         in the expander instead of a splitter.
42950         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
42951         any possibility of requiring a memory.
42952         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
42953         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
42954         (fp branch splitters): Update for ix86_split_fp_branch.
42955         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
42956         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
42957         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
42958         (*fop_<MODEF>_2_i387): Remove f/r alternative.
42959         (*fop_<MODEF>_3_i387): Likewise.
42960         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
42961         (splitters for the fop_* register patterns): Remove.
42962         (fscalexf4_i387): Rename from *fscalexf4_i387.
42963         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
42964
42965 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
42966
42967         PR tree-optimization/59779
42968         * tree-dfa.c (get_ref_base_and_extent): Use double_int
42969         type for bitsize and maxsize instead of HOST_WIDE_INT.
42970
42971 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
42972
42973         PR rtl-optimization/57320
42974         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
42975         the CFG after thread_prologue_and_epilogue_insns.
42976
42977 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
42978
42979         PR rtl-optimization/57189
42980         * lra-constraints.c (process_alt_operands): Disfavor spilling
42981         vector pseudos.
42982
42983 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
42984
42985         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
42986
42987 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
42988
42989         PR tree-optimization/59025
42990         PR middle-end/60418
42991         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
42992         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
42993
42994 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
42995
42996         PR target/60486
42997         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
42998         calls of avr_out_plus_1.
42999
43000 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
43001
43002         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
43003         BB's single pred and update the father loop's latch info later.
43004
43005 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
43006
43007         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
43008         (VEC_M): Likewise.
43009         (VEC_N): Likewise.
43010         (VEC_R): Likewise.
43011         (VEC_base): Likewise.
43012         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
43013         registers, we need to swap double words in little endian mode.
43014
43015         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
43016         to be a container mode for 128-bit integer operations added in ISA
43017         2.07.  Unlike TImode and PTImode, the preferred register set is
43018         the Altivec/VMX registers for the 128-bit operations.
43019
43020         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
43021         declarations.
43022         (rs6000_split_128bit_ok_p): Likewise.
43023
43024         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
43025         macros for creating ISA 2.07 normal and overloaded builtin
43026         functions with 3 arguments.
43027         (BU_P8V_OVERLOAD_3): Likewise.
43028         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
43029         for use as overloaded functions.
43030         (VPERM_1TI_UNS): Likewise.
43031         (VSEL_1TI): Likewise.
43032         (VSEL_1TI_UNS): Likewise.
43033         (ST_INTERNAL_1ti): Likewise.
43034         (LD_INTERNAL_1ti): Likewise.
43035         (XXSEL_1TI): Likewise.
43036         (XXSEL_1TI_UNS): Likewise.
43037         (VPERM_1TI): Likewise.
43038         (VPERM_1TI_UNS): Likewise.
43039         (XXPERMDI_1TI): Likewise.
43040         (SET_1TI): Likewise.
43041         (LXVD2X_V1TI): Likewise.
43042         (STXVD2X_V1TI): Likewise.
43043         (VEC_INIT_V1TI): Likewise.
43044         (VEC_SET_V1TI): Likewise.
43045         (VEC_EXT_V1TI): Likewise.
43046         (EQV_V1TI): Likewise.
43047         (NAND_V1TI): Likewise.
43048         (ORC_V1TI): Likewise.
43049         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
43050         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
43051         overloaded builtin.
43052         (VADDUQM): Likewise.
43053         (VSUBCUQ): Likewise.
43054         (VADDEUQM): Likewise.
43055         (VADDECUQ): Likewise.
43056         (VSUBEUQM): Likewise.
43057         (VSUBECUQ): Likewise.
43058
43059         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
43060         __int128_t and __uint128_t types.
43061         (__uint128_type): Likewise.
43062         (altivec_categorize_keyword): Add support for vector __int128_t,
43063         vector __uint128_t, vector __int128, and vector unsigned __int128
43064         as a container type for TImode operations that need to be done in
43065         VSX/Altivec registers.
43066         (rs6000_macro_to_expand): Likewise.
43067         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
43068         to support 128-bit integer instructions vaddcuq, vadduqm,
43069         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
43070         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
43071
43072         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
43073         for V1TImode, and set up preferences to use VSX/Altivec registers.
43074         Setup VSX reload handlers.
43075         (rs6000_debug_reg_global): Likewise.
43076         (rs6000_init_hard_regno_mode_ok): Likewise.
43077         (rs6000_preferred_simd_mode): Likewise.
43078         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
43079         (easy_altivec_constant): Likewise.
43080         (output_vec_const_move): Likewise.
43081         (rs6000_expand_vector_set): Convert V1TImode set and extract to
43082         simple move.
43083         (rs6000_expand_vector_extract): Likewise.
43084         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
43085         addressing.
43086         (rs6000_const_vec): Add support for V1TImode.
43087         (rs6000_emit_le_vsx_load): Swap double words when loading or
43088         storing TImode/V1TImode.
43089         (rs6000_emit_le_vsx_store): Likewise.
43090         (rs6000_emit_le_vsx_move): Likewise.
43091         (rs6000_emit_move): Add support for V1TImode.
43092         (altivec_expand_ld_builtin): Likewise.
43093         (altivec_expand_st_builtin): Likewise.
43094         (altivec_expand_vec_init_builtin): Likewise.
43095         (altivec_expand_builtin): Likewise.
43096         (rs6000_init_builtins): Add support for V1TImode type.  Add
43097         support for ISA 2.07 128-bit integer builtins.  Define type names
43098         for the VSX/Altivec vector types.
43099         (altivec_init_builtins): Add support for overloaded vector
43100         functions with V1TImode type.
43101         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
43102         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
43103         external function.
43104         (rs6000_split_128bit_ok_p): Likewise.
43105         (rs6000_handle_altivec_attribute): Create V1TImode from vector
43106         __int128_t and vector __uint128_t.
43107
43108         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
43109         and mode attributes.
43110         (VSX_M): Likewise.
43111         (VSX_M2): Likewise.
43112         (VSm): Likewise.
43113         (VSs): Likewise.
43114         (VSr): Likewise.
43115         (VSv): Likewise.
43116         (VS_scalar): Likewise.
43117         (VS_double): Likewise.
43118         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
43119
43120         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
43121         we support the ISA 2.07 128-bit integer arithmetic instructions.
43122         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
43123         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
43124         and TImode types for use with the builtin functions.
43125         (V1TI_type_node): Likewise.
43126         (unsigned_V1TI_type_node): Likewise.
43127         (intTI_type_internal_node): Likewise.
43128         (uintTI_type_internal_node): Likewise.
43129
43130         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
43131         128-bit builtin functions.
43132         (UNSPEC_VADDEUQM): Likewise.
43133         (UNSPEC_VADDECUQ): Likewise.
43134         (UNSPEC_VSUBCUQ): Likewise.
43135         (UNSPEC_VSUBEUQM): Likewise.
43136         (UNSPEC_VSUBECUQ): Likewise.
43137         (VM): Add V1TImode to vector mode iterators.
43138         (VM2): Likewise.
43139         (VI_unit): Likewise.
43140         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
43141         (altivec_vaddcuq): Likewise.
43142         (altivec_vsubuqm): Likewise.
43143         (altivec_vsubcuq): Likewise.
43144         (altivec_vaddeuqm): Likewise.
43145         (altivec_vaddecuq): Likewise.
43146         (altivec_vsubeuqm): Likewise.
43147         (altivec_vsubecuq): Likewise.
43148
43149         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
43150         mode iterators.
43151         (BOOL_128): Likewise.
43152         (BOOL_REGS_OUTPUT): Likewise.
43153         (BOOL_REGS_OP1): Likewise.
43154         (BOOL_REGS_OP2): Likewise.
43155         (BOOL_REGS_UNARY): Likewise.
43156         (BOOL_REGS_AND_CR0): Likewise.
43157
43158         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
43159         128-bit integer builtin support.
43160         (vec_vadduqm): Likewise.
43161         (vec_vaddecuq): Likewise.
43162         (vec_vaddeuqm): Likewise.
43163         (vec_vsubecuq): Likewise.
43164         (vec_vsubeuqm): Likewise.
43165         (vec_vsubcuq): Likewise.
43166         (vec_vsubuqm): Likewise.
43167
43168         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43169         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
43170         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
43171         128-bit integer add/subtract to ISA 2.07.
43172
43173 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
43174
43175         * config/arc/arc.c (arc_predicate_delay_insns):
43176         Fix third argument passed to conditionalize_nonjump.
43177
43178 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
43179
43180         * config/aarch64/aarch64-builtins.c
43181         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
43182         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
43183         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
43184         instead of __builtin_lfloor.
43185         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
43186
43187 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
43188
43189         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
43190         (tree_ssa_ifcombine_bb_1): New function.
43191         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
43192         is an empty forwarder block to then_bb or vice versa and then_bb
43193         and else_bb are effectively swapped.
43194
43195 2014-03-12  Christian Bruel  <christian.bruel@st.com>
43196
43197         PR target/60264
43198         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
43199         REG_CFA_DEF_CFA note.
43200         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
43201         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
43202
43203 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
43204
43205         PR tree-optimization/60454
43206         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
43207
43208 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43209
43210         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
43211         Do not define target_cpu_default2 to generic.
43212         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
43213         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
43214         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
43215
43216 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
43217             Marc Glisse  <marc.glisse@inria.fr>
43218
43219         PR tree-optimization/60502
43220         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
43221         instead of build_low_bits_mask.
43222
43223 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
43224
43225         PR middle-end/60482
43226         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
43227         if there are multiple uses, but op doesn't live on E edge.
43228         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
43229         clobber stmts before __builtin_unreachable.
43230
43231 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
43232
43233         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
43234         hard_frame_pointer_rtx.
43235         * cse.c (cse_insn): Remove volatile check.
43236         * cselib.c (cselib_process_insn): Likewise.
43237         * dse.c (scan_insn): Likewise.
43238
43239 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
43240
43241         * config/arc/arc.c (conditionalize_nonjump): New function,
43242         broken out of ...
43243         (arc_ifcvt): ... this.
43244         (arc_predicate_delay_insns): Use it.
43245
43246 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
43247
43248         * config/arc/predicates.md (extend_operand): During/after reload,
43249         allow const_int_operand.
43250         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
43251         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
43252         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
43253         to "i".
43254         (umulsi3_highpart_i): Likewise.
43255
43256 2014-03-11  Richard Biener  <rguenther@suse.de>
43257
43258         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
43259         Add asserts to guard possible wrong-code bugs.
43260
43261 2014-03-11  Richard Biener  <rguenther@suse.de>
43262
43263         PR tree-optimization/60429
43264         PR tree-optimization/60485
43265         * tree-ssa-structalias.c (set_union_with_increment): Properly
43266         take into account all fields that overlap the shifted vars.
43267         (do_sd_constraint): Likewise.
43268         (do_ds_constraint): Likewise.
43269         (get_constraint_for_ptr_offset): Likewise.
43270
43271 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
43272
43273         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
43274         (nios2_compute_frame_layout):
43275         Add calculation of cfun->machine->fp_save_offset.
43276         (nios2_expand_prologue): Correct setting of frame pointer register
43277         in prologue.
43278         (nios2_expand_epilogue): Update recovery of stack pointer from
43279         frame pointer accordingly.
43280         (nios2_initial_elimination_offset): Update calculation of offset
43281         for eliminating to HARD_FRAME_POINTER_REGNUM.
43282
43283 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
43284
43285         PR ipa/60457
43286         * ipa.c (symtab_remove_unreachable_nodes): Don't call
43287         cgraph_get_create_node on VAR_DECLs.
43288
43289 2014-03-10  Richard Biener  <rguenther@suse.de>
43290
43291         PR middle-end/60474
43292         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
43293
43294 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
43295
43296         * config/vms/vms.opt (vms_float_format): New variable.
43297
43298 2014-03-08  Tobias Burnus  <burnus@net-b.de>
43299
43300         * doc/invoke.texi (-fcilkplus): Update implementation status.
43301
43302 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
43303             Richard Biener  <rguenther@suse.de>
43304
43305         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
43306         consistently accross all TUs.
43307         (run_gcc): Enable -fshort-double automatically at link at link-time
43308         and disallow override.
43309
43310 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
43311
43312         PR target/58271
43313         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
43314         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
43315         if they can't be used.
43316
43317 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
43318
43319         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
43320         for Solaris 11/x86 ld.
43321         * configure: Regenerate.
43322
43323 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
43324
43325         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
43326         (LIB_TLS_SPEC): Save as ld_tls_libs.
43327         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
43328         (HAVE_AS_IX86_TLSLDM): New test.
43329         * configure, config.in: Regenerate.
43330         * config/i386/i386.c (legitimize_tls_address): Fall back to
43331         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
43332         cannot support TLS_MODEL_LOCAL_DYNAMIC.
43333         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
43334         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
43335
43336 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
43337
43338         * common.opt (fira-loop-pressure): Mark as optimization.
43339
43340 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
43341
43342         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
43343         an OpenMP mappable type.
43344
43345 2014-03-06  Matthias Klose  <doko@ubuntu.com>
43346
43347         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
43348         MULTILIB_OSDIRNAMES is not defined.
43349
43350 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
43351             Meador Inge  <meadori@codesourcery.com>
43352
43353         PR target/58595
43354         * config/arm/arm.c (arm_tls_symbol_p): Remove.
43355         (arm_legitimize_address): Call legitimize_tls_address for any
43356         arm_tls_referenced_p expression, handle constant addend.  Call it
43357         before testing for !TARGET_ARM.
43358         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
43359
43360 2014-03-06  Richard Biener  <rguenther@suse.de>
43361
43362         PR middle-end/60445
43363         PR lto/60424
43364         PR lto/60427
43365         Revert
43366         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
43367
43368         * tree-streamer.c (record_common_node): Assert we don't record
43369         nodes with type double.
43370         (preload_common_node): Skip type double, complex double and double
43371         pointer since it is now frontend dependent due to fshort-double option.
43372
43373 2014-03-06  Richard Biener  <rguenther@suse.de>
43374
43375         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
43376         or -fno-lto is specified and the linker has full plugin support.
43377         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
43378         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
43379         * lto-wrapper.c (merge_and_complain): Merge compile-time
43380         optimization levels.
43381         (run_gcc): And pass it through to the link options.
43382
43383 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
43384
43385         PR debug/60381
43386         Revert:
43387         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
43388         PR debug/59992
43389         * cselib.c (remove_useless_values): Skip to avoid quadratic
43390         behavior if the condition moved from...
43391         (cselib_process_insn): ... here holds.
43392
43393 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
43394
43395         PR plugins/59335
43396         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
43397         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
43398
43399         PR plugins/59335
43400         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
43401         (TM_H): Add x86-tune.def.
43402
43403 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43404
43405         * config/aarch64/aarch64.c (generic_tunings):
43406         Use cortexa57_extra_costs.
43407
43408 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
43409
43410         PR lto/60404
43411         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
43412         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
43413         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
43414         cost for in_lto_p.
43415
43416 2014-03-04  Heiher  <r@hev.cc>
43417
43418         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
43419         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
43420
43421 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
43422
43423         * config/i386/predicates.md (const2356_operand): Change to ...
43424         (const2367_operand): ... this.
43425         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
43426         const2367_operand.
43427         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43428         (*avx512pf_scatterpf<mode>sf): Ditto.
43429         (avx512pf_scatterpf<mode>df): Ditto.
43430         (*avx512pf_scatterpf<mode>df_mask): Ditto.
43431         (*avx512pf_scatterpf<mode>df): Ditto.
43432         * config/i386/i386.c (ix86_expand_builtin): Update
43433         incorrect hint operand error message.
43434
43435 2014-03-04  Richard Biener  <rguenther@suse.de>
43436
43437         * lto-section-in.c (lto_get_section_data): Fix const cast.
43438
43439 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
43440
43441         * tree-streamer.c (record_common_node): Assert we don't record
43442         nodes with type double.
43443         (preload_common_node): Skip type double, complex double and double
43444         pointer since it is now frontend dependent due to fshort-double option.
43445
43446 2014-03-04  Richard Biener  <rguenther@suse.de>
43447
43448         PR lto/60405
43449         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
43450         (lto_input_toplevel_asms): Likewise.
43451         * lto-section-in.c (lto_get_section_data): Instead do it here
43452         for every section.
43453
43454 2014-03-04  Richard Biener  <rguenther@suse.de>
43455
43456         PR tree-optimization/60382
43457         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
43458         dead PHIs a reduction.
43459
43460 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
43461
43462         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
43463         hint value.
43464         (_mm_prefetch): Move out of GCC target("sse") pragma.
43465         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
43466         GCC target("prfchw") pragma.
43467         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
43468         for locality <= 2.
43469         * config/i386/i386.c (ix86_option_override_internal): Enable
43470         -mprfchw with -mprefetchwt1.
43471
43472 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
43473
43474         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
43475         Mark as varying.
43476
43477 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
43478
43479         * opts.h (CL_PCH_IGNORE): Define.
43480         * targhooks.c (option_affects_pch_p):
43481         Return false for options that have CL_PCH_IGNORE set.
43482         * opt-functions.awk: Process PchIgnore.
43483         * doc/options.texi: Document PchIgnore.
43484
43485         * config/arc/arc.opt (misize): Add PchIgnore property.
43486
43487 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43488
43489         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
43490         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
43491         constraint on constants to permit them being loaded into
43492         GENERAL_REGS or BASE_REGS.
43493
43494 2014-03-03  Nick Clifton  <nickc@redhat.com>
43495
43496         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
43497         anti-cacnonical alternatives.
43498         (negandhi3_real): New pattern.
43499         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
43500
43501 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
43502
43503         * config/avr/avr-mcus.def: Remove atxmega16x1.
43504         * config/avr/avr-tables.opt: Regenerate.
43505         * config/avr/t-multilib: Regenerate.
43506         * doc/avr-mmcu.texi: Regenerate.
43507
43508 2014-03-03  Tobias Grosser  <tobias@grosser.es>
43509             Mircea Namolaru  <mircea.namolaru@inria.fr>
43510
43511         PR tree-optimization/58028
43512         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
43513         scalar dimensions.
43514
43515 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
43516
43517         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
43518         not handled by recognizers.
43519
43520 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
43521
43522         PR middle-end/60175
43523         * function.c (expand_function_end): Don't emit
43524         clobber_return_register sequence if clobber_after is a BARRIER.
43525         * cfgexpand.c (construct_exit_block): Append instructions before
43526         return_label to prev_bb.
43527
43528 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43529
43530         * config/rs6000/constraints.md: Document reserved use of "wc".
43531
43532 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
43533
43534         PR ipa/60150
43535         * ipa.c (function_and_variable_visibility): When dissolving comdat
43536         group, also set all symbols to local.
43537
43538 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
43539
43540         PR ipa/60306
43541
43542         Revert:
43543         2013-12-14  Jan Hubicka  <jh@suse.cz>
43544         PR middle-end/58477
43545         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
43546
43547 2014-03-02  Jon Beniston  <jon@beniston.com>
43548
43549         PR bootstrap/48230
43550         PR bootstrap/50927
43551         PR bootstrap/52466
43552         PR target/46898
43553         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
43554         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
43555         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
43556         (simple_return, *simple_return): New patterns
43557         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
43558         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
43559
43560 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
43561
43562         * dwarf2out.c (gen_subprogram_die): Tidy.
43563
43564 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
43565
43566         PR target/60071
43567         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
43568         (*mov_t_msb_neg_negc): ... this new insn.
43569
43570 2014-02-28  Jason Merrill  <jason@redhat.com>
43571
43572         PR c++/58678
43573         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
43574         function.
43575
43576 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
43577
43578         PR c++/60314
43579         * dwarf2out.c (decltype_auto_die): New static.
43580         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
43581         (gen_type_die_with_usage): Handle 'decltype(auto)'.
43582         (is_cxx_auto): Likewise.
43583
43584 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
43585
43586         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
43587         we are not using general regs only.
43588
43589 2014-02-28  Richard Biener  <rguenther@suse.de>
43590
43591         PR target/60280
43592         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
43593         previous fix and only allow to remove trivial pre-headers
43594         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
43595         (remove_forwarder_block): Properly update the latch of a loop.
43596
43597 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
43598
43599         PR debug/59992
43600         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
43601         (cselib_preserved_hash_table): New.
43602         (preserve_constants_and_equivs): Move preserved vals to it.
43603         (cselib_find_slot): Look it up first.
43604         (cselib_init): Initialize it.
43605         (cselib_finish): Release it.
43606         (dump_cselib_table): Dump it.
43607
43608 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
43609
43610         PR debug/59992
43611         * cselib.c (remove_useless_values): Skip to avoid quadratic
43612         behavior if the condition moved from...
43613         (cselib_process_insn): ... here holds.
43614
43615 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
43616
43617         PR debug/57232
43618         * var-tracking.c (vt_initialize): Apply the same condition to
43619         preserve the CFA base value.
43620
43621 2014-02-28  Joey Ye  <joey.ye@arm.com>
43622
43623         PR target/PR60169
43624         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
43625         if reload in progress or completed.
43626
43627 2014-02-28  Tobias Burnus  <burnus@net-b.de>
43628
43629         PR middle-end/60147
43630         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
43631         NAMELIST_DECL.
43632
43633 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
43634
43635         * doc/tm.texi.in (Condition Code Status): Update documention for
43636         relative locations of cc0-setter and cc0-user.
43637
43638 2014-02-27  Jeff Law  <law@redhat.com>
43639
43640         PR rtl-optimization/52714
43641         * combine.c (try_combine): When splitting an unrecognized PARALLEL
43642         into two independent simple sets, if I3 is a jump, ensure the
43643         pattern we place into I3 is a (set (pc) ...).
43644
43645 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
43646             Jeff Law  <law@redhat.com>
43647
43648         PR rtl-optimization/49847
43649         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
43650         are in different blocks.
43651         * doc/tm.texi (Condition Code Status): Update documention for
43652         relative locations of cc0-setter and cc0-user.
43653
43654 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
43655
43656         PR target/59222
43657         * lra.c (lra_emit_add): Check SUBREG too.
43658
43659 2014-02-27  Andreas Schwab  <schwab@suse.de>
43660
43661         * config/m68k/m68k.c (m68k_option_override): Disable
43662         -flive-range-shrinkage for classic m68k.
43663         (m68k_override_options_after_change): Likewise.
43664
43665 2014-02-27  Marek Polacek  <polacek@redhat.com>
43666
43667         PR middle-end/59223
43668         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
43669         -Wmaybe-uninitialized.
43670
43671 2014-02-27  Alan Modra  <amodra@gmail.com>
43672
43673         PR target/57936
43674         * reload1.c (emit_input_reload_insns): When reload_override_in,
43675         set old to rl->in_reg when rl->in_reg is a subreg.
43676
43677 2014-02-26  Richard Biener  <rguenther@suse.de>
43678
43679         PR bootstrap/60343
43680         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
43681
43682 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
43683
43684         * common/config/i386/predicates.md (const1256_operand): Remove.
43685         (const2356_operand): New.
43686         (const_1_to_2_operand): Remove.
43687         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
43688         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
43689         (*avx512pf_gatherpf<mode>sf): Ditto.
43690         (avx512pf_gatherpf<mode>df): Ditto.
43691         (*avx512pf_gatherpf<mode>df_mask): Ditto.
43692         (*avx512pf_gatherpf<mode>df): Ditto.
43693         (avx512pf_scatterpf<mode>sf): Ditto.
43694         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43695         (*avx512pf_scatterpf<mode>sf): Ditto.
43696         (avx512pf_scatterpf<mode>df): Ditto.
43697         (*avx512pf_scatterpf<mode>df_mask): Ditto.
43698         (*avx512pf_scatterpf<mode>df): Ditto.
43699         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
43700
43701 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
43702
43703         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
43704         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
43705         (_mm512_mask_testn_epi64_mask): Move to ...
43706         * config/i386/avx512cdintrin.h: Here.
43707         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
43708         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
43709         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
43710         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
43711         TARGET_AVX512F from TARGET_AVX512CD.
43712
43713 2014-02-26  Richard Biener  <rguenther@suse.de>
43714
43715         PR ipa/60327
43716         * ipa.c (walk_polymorphic_call_targets): Properly guard
43717         call to inline_update_overall_summary.
43718
43719 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
43720
43721         PR target/60280
43722         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
43723         and latches only if requested.  Fix latch if it is removed.
43724         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
43725         LOOPS_HAVE_PREHEADERS.
43726
43727 2014-02-25  Andrew Pinski  <apinski@cavium.com>
43728
43729         * builtins.c (expand_builtin_thread_pointer): Create a new target
43730         when the target is NULL.
43731
43732 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
43733
43734         PR rtl-optimization/60317
43735         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
43736         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
43737         * lra-assigns.c: Include params.h.
43738         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
43739         other reload pseudos considerations.
43740
43741 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43742
43743         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
43744         to use canonical form for nor<mode>3.
43745
43746 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43747
43748         PR target/55426
43749         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
43750         conversions.
43751
43752 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
43753
43754         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
43755         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
43756         (ix86_handle_option): Handle OPT_mprefetchwt1.
43757         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
43758         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
43759         PREFETCHWT1 CPUID.
43760         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
43761         OPTION_MASK_ISA_PREFETCHWT1.
43762         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
43763         (PTA_PREFETCHWT1): New.
43764         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
43765         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
43766         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
43767         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
43768         (*prefetch_avx512pf_<mode>_: Change into ...
43769         (*prefetch_prefetchwt1_<mode>: This.
43770         * config/i386/i386.opt (mprefetchwt1): New.
43771         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
43772         (_mm_prefetch): Handle intent to write.
43773         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
43774
43775 2014-02-25  Richard Biener  <rguenther@suse.de>
43776
43777         PR middle-end/60291
43778         * emit-rtl.c (mem_attrs_htab): Remove.
43779         (mem_attrs_htab_hash): Likewise.
43780         (mem_attrs_htab_eq): Likewise.
43781         (set_mem_attrs): Always allocate new mem-attrs when something changed.
43782         (init_emit_once): Do not allocate mem_attrs_htab.
43783
43784 2014-02-25  Richard Biener  <rguenther@suse.de>
43785
43786         PR lto/60319
43787         * lto-opts.c (lto_write_options): Output non-explicit conservative
43788         -fwrapv, -fno-trapv and -fno-strict-overflow.
43789         * lto-wrapper.c (merge_and_complain): Handle merging those options.
43790         (run_gcc): And pass them through.
43791
43792 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
43793
43794         * sel-sched.c (calculate_new_fences): New parameter ptime.
43795         Calculate it as a maximum over all fence cycles.
43796         (sel_sched_region_2): Adjust the call to calculate_new_fences.
43797         Print the final schedule timing when sched_verbose.
43798
43799 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
43800
43801         PR rtl-optimization/60292
43802         * sel-sched.c (fill_vec_av_set): Do not reset target availability
43803         bit fot the fence instruction.
43804
43805 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
43806
43807         * calls.h: Fix typo in comment.
43808
43809 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
43810
43811         * config/pa/pa.c (pa_output_move_double): Don't valididate when
43812         adjusting offsetable addresses.
43813
43814 2014-02-24  Guozhi Wei  <carrot@google.com>
43815
43816         * sparseset.h (sparseset_pop): Fix the wrong index.
43817
43818 2014-02-24  Walter Lee  <walt@tilera.com>
43819
43820         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
43821         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
43822         triplet.
43823         * common/config/tilegx/tilegx-common.c
43824         (TARGET_DEFAULT_TARGET_FLAGS): Define.
43825         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
43826         (LINK_SPEC): Ditto.
43827         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
43828         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
43829         (tilegx_gimplify_va_arg_expr): Handle big endian.
43830         (tilegx_expand_unaligned_load): Ditto.
43831         (tilegx_expand_unaligned_store): Ditto.
43832         (TARGET_RETURN_IN_MSB): New.
43833         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
43834         (TARGET_ENDIAN_DEFAULT): New.
43835         (TARGET_BIG_ENDIAN): Handle big endian.
43836         (BYTES_BIG_ENDIAN): Ditto.
43837         (WORDS_BIG_ENDIAN): Ditto.
43838         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
43839         (ENDIAN_SPEC): New.
43840         (EXTRA_SPECS): New.
43841         * config/tilegx/tilegx.md (extv): Handle big endian.
43842         (extzv): Ditto.
43843         (insn_st<n>): Ditto.
43844         (insn_st<n>_add<bitsuffix>): Ditto.
43845         (insn_stnt<n>): Ditto.
43846         (insn_stnt<n>_add<bitsuffix>):Ditto.
43847         (vec_interleave_highv8qi): Handle big endian.
43848         (vec_interleave_highv8qi_be): New.
43849         (vec_interleave_highv8qi_le): New.
43850         (insn_v1int_h): Handle big endian.
43851         (vec_interleave_lowv8qi): Handle big endian.
43852         (vec_interleave_lowv8qi_be): New.
43853         (vec_interleave_lowv8qi_le): New.
43854         (insn_v1int_l): Handle big endian.
43855         (vec_interleave_highv4hi): Handle big endian.
43856         (vec_interleave_highv4hi_be): New.
43857         (vec_interleave_highv4hi_le): New.
43858         (insn_v2int_h): Handle big endian.
43859         (vec_interleave_lowv4hi): Handle big endian.
43860         (vec_interleave_lowv4hi_be): New.
43861         (vec_interleave_lowv4hi_le): New.
43862         (insn_v2int_l): Handle big endian.
43863         (vec_interleave_highv2si): Handle big endian.
43864         (vec_interleave_highv2si_be): New.
43865         (vec_interleave_highv2si_le): New.
43866         (insn_v4int_h): Handle big endian.
43867         (vec_interleave_lowv2si): Handle big endian.
43868         (vec_interleave_lowv2si_be): New.
43869         (vec_interleave_lowv2si_le): New.
43870         (insn_v4int_l): Handle big endian.
43871         * config/tilegx/tilegx.opt (mbig-endian): New option.
43872         (mlittle-endian): New option.
43873         * doc/install.texi: Document tilegxbe-linux.
43874         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
43875
43876 2014-02-24  Martin Jambor  <mjambor@suse.cz>
43877
43878         PR ipa/60266
43879         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
43880         there are no parameter descriptors.
43881
43882 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
43883
43884         PR rtl-optimization/60268
43885         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
43886         initialization to ...
43887         (sched_rgn_init): ... here.
43888         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
43889
43890 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
43891
43892         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
43893         names.
43894
43895 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
43896
43897         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
43898         definition.
43899
43900 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
43901
43902         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
43903         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
43904
43905 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
43906
43907         * config/microblaze/predicates.md: Add cmp_op predicate.
43908         * config/microblaze/microblaze.md: Add branch_compare instruction
43909         which uses cmp_op predicate and emits cmp insn before branch.
43910         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
43911         to microblaze_expand_conditional_branch and consolidate logic.
43912         (microblaze_expand_conditional_branch): emit branch_compare
43913         insn instead of handling cmp op separate from branch insn.
43914
43915 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43916
43917         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
43918         to permit subregs.
43919
43920 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43921
43922         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
43923         define_insn with define_expand and new define_insn
43924         *altivec_lve<VI_char>x_internal.
43925         (altivec_stve<VI_char>x): Replace define_insn with define_expand
43926         and new define_insn *altivec_stve<VI_char>x_internal.
43927         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
43928         prototype.
43929         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
43930         lve*x built-ins.
43931         (altivec_expand_stvex_be): New function.
43932
43933 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
43934
43935         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
43936         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
43937         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
43938         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
43939
43940 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
43941
43942         PR target/60298
43943         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
43944         instead of emit_move_insn.
43945
43946 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43947
43948         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
43949         vspltw with vsldoi.
43950         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
43951         gen_altivec_vsumsws.
43952
43953 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43954
43955         * config/rs6000/altivec.md (altivec_lvxl): Rename as
43956         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
43957         (altivec_lvxl_<mode>): New define_expand incorporating
43958         -maltivec=be semantics where needed.
43959         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
43960         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
43961         semantics where needed.
43962         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
43963         (altivec_stvx_<mode>): New define_expand incorporating
43964         -maltivec=be semantics where needed.
43965         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
43966         VM2 iterator instead of V4SI.
43967         (altivec_stvxl_<mode>): New define_expand incorporating
43968         -maltivec=be semantics where needed.
43969         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
43970         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
43971         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
43972         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
43973         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
43974         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
43975         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
43976         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
43977         ALTIVEC_BUILTIN_STVXL.
43978         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
43979         (altivec_expand_stvx_be): Likewise.
43980         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
43981         (altivec_expand_lvx_be): Likewise.
43982         (altivec_expand_stvx_be): Likewise.
43983         (altivec_expand_builtin): Add cases for
43984         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
43985         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
43986         (altivec_init_builtins): Add definitions for
43987         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
43988         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
43989
43990 2014-02-21  Catherine Moore  <clm@codesourcery.com>
43991
43992         * doc/invoke.texi (mvirt, mno-virt): Document.
43993         * config/mips/mips.opt (mvirt): New option.
43994         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
43995
43996 2014-02-21  Richard Biener  <rguenther@suse.de>
43997
43998         PR tree-optimization/60276
43999         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
44000         (STMT_VINFO_MIN_NEG_DIST): New macro.
44001         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
44002         STMT_VINFO_MIN_NEG_DIST.
44003         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
44004         made for negative dependence distances still hold.
44005
44006 2014-02-21  Richard Biener  <rguenther@suse.de>
44007
44008         PR middle-end/60291
44009         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
44010         DECL_INITIAL for globals not in the current function context.
44011
44012 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
44013
44014         PR tree-optimization/56490
44015         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
44016         * tree-ssa-uninit.c: Include params.h.
44017         (compute_control_dep_chain): Add num_calls argument, return false
44018         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
44019         num_calls to recursive call.
44020         (find_predicates): Change dep_chain into normal array,
44021         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
44022         variable and adjust compute_control_dep_chain caller.
44023         (find_def_preds): Likewise.
44024
44025 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
44026
44027         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
44028         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
44029
44030 2014-02-21  Nick Clifton  <nickc@redhat.com>
44031
44032         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
44033         (pushhi1): Likewise.
44034         (popqi1): Add mode to pre_dec.
44035         (pophi1): Likewise.
44036
44037 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
44038
44039         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
44040         mode for mask of V8SFmode permutation.
44041
44042 2014-02-20  Richard Henderson  <rth@redhat.com>
44043
44044         PR c++/60272
44045         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
44046         a new pseudo for OLDVAL.
44047
44048 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
44049
44050         PR target/57896
44051         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
44052         gen_reg_rtx if d->testing_p.
44053         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
44054         if d->testing_p and we will certainly return true.
44055         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
44056         if d->testing_p.
44057
44058 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
44059
44060         * emit-rtl.c (gen_reg_rtx): Assert that
44061         crtl->emit.regno_pointer_align_length is non-zero.
44062
44063 2014-02-20  Richard Henderson  <rth@redhat.com>
44064
44065         PR c++/60272
44066         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
44067         on failure the store back into EXPECT.
44068
44069 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
44070             Sandra Loosemore  <sandra@codesourcery.com>
44071
44072         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
44073         * config/nios2/nios2.c (nios2_function_profiler): Add
44074         -fPIC (flag_pic == 2) support.
44075         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
44076         (nios2_large_offset_p): New function.
44077         (nios2_unspec_reloc_p): Move up position, update to use
44078         nios2_large_offset_p.
44079         (nios2_unspec_address): Remove function.
44080         (nios2_unspec_offset): New function.
44081         (nios2_large_got_address): New function.
44082         (nios2_got_address): Add large offset support.
44083         (nios2_legitimize_tls_address): Update usage of removed and new
44084         functions.
44085         (nios2_symbol_binds_local_p): New function.
44086         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
44087         (nios2_legitimize_address): Update to use nios2_large_offset_p.
44088         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
44089         (nios2_print_operand): Merge H/L processing, add hiadj/lo
44090         processing for (const (unspec ...)).
44091         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
44092
44093 2014-02-20  Richard Biener  <rguenther@suse.de>
44094
44095         * tree-cfg.c (replace_uses_by): Mark altered BBs before
44096         doing the substitution.
44097         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
44098
44099 2014-02-20  Martin Jambor  <mjambor@suse.cz>
44100
44101         PR ipa/55260
44102         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
44103         info when checking whether lattices are bottom.
44104
44105 2014-02-20  Richard Biener  <rguenther@suse.de>
44106
44107         PR middle-end/60221
44108         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
44109         regions at -O0.
44110
44111 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
44112
44113         PR ipa/58555
44114         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
44115         parameter specifying the scaling.
44116         (inline_call): Update.
44117         (want_inline_recursively): Guard division by zero.
44118         (recursive_inlining): Update.
44119         * ipa-inline.h (clone_inlined_nodes): Update.
44120
44121 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
44122
44123         PR target/60204
44124         * config/i386/i386.c (classify_argument): Pass structures of size
44125         64 bytes or less in register.
44126
44127 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
44128             Kirill Yukhin  <kirill.yukhin@intel.com>
44129
44130         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
44131         (_mm_rcp28_round_ss): Ditto.
44132         (_mm_rsqrt28_round_sd): Ditto.
44133         (_mm_rsqrt28_round_ss): Ditto.
44134         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
44135         (_mm_rcp14_round_ss): Ditto.
44136         (_mm_rsqrt14_round_sd): Ditto.
44137         (_mm_rsqrt14_round_ss): Ditto.
44138         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
44139         the first input operand, get rid of match_dup.
44140         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
44141         attribute to sse.
44142         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
44143         Ditto.
44144         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
44145         operand as the first input operand, set type attribute.
44146         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
44147         Set type attribute.
44148         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
44149         operand as the first input operand, set type attribute.
44150
44151 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44152
44153         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
44154         bit of zero.
44155
44156 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
44157
44158         PR target/60207
44159         * config/i386/i386.c (construct_container): Remove TFmode check
44160         for X86_64_INTEGER_CLASS.
44161
44162 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
44163
44164         PR target/59794
44165         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
44166         only when -Wpsabi is enabled.
44167
44168 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
44169
44170         PR target/59799
44171         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
44172         passing arrays in registers are the same as for structs, so remove the
44173         special case for them.
44174
44175 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
44176
44177         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
44178         destination type, extract only the valid bits if the source type is not
44179         integral and has a different mode.
44180
44181 2014-02-19  Richard Biener  <rguenther@suse.de>
44182
44183         PR ipa/60243
44184         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
44185         for all calls.
44186
44187 2014-02-19  Richard Biener  <rguenther@suse.de>
44188
44189         PR ipa/60243
44190         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
44191         (ipa_modify_call_arguments): Emit an argument load explicitely and
44192         preserve virtual SSA form there and for the replacement call.
44193         Do not update SSA form nor free dominance info.
44194
44195 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
44196
44197         * ipa.c (function_and_variable_visibility): Also clear WEAK
44198         flag when disolving COMDAT_GROUP.
44199
44200 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
44201
44202         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
44203         * ipa-prop.c (ipa_set_jf_known_type): Return early when
44204         not devirtualizing.
44205         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
44206         do more sanity checks.
44207         (detect_type_change): Return true when giving up early.
44208         (compute_complex_assign_jump_func): Fix type parameter of
44209         ipa_set_ancestor_jf.
44210         (compute_complex_ancestor_jump_func): Likewise.
44211         (update_jump_functions_after_inlining): Fix updating of
44212         ancestor function.
44213         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
44214
44215 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
44216
44217         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
44218         inline clones when edge disappears.
44219
44220 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
44221
44222         PR target/60203
44223         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
44224         Split 64-bit moves into 2 patterns.  Do not allow the use of
44225         direct move for TDmode in little endian, since the decimal value
44226         has little endian bytes within a word, but the 64-bit pieces are
44227         ordered in a big endian fashion, and normal subreg's of TDmode are
44228         not allowed.
44229         (mov<mode>_64bit_dm): Likewise.
44230         (movtd_64bit_nodm): Likewise.
44231
44232 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
44233
44234         PR tree-optimization/60174
44235         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
44236         statement of an SSA_NAME that occurs in an abnormal PHI node.
44237
44238 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
44239
44240         PR sanitizer/60142
44241         * final.c (SEEN_BB): Remove.
44242         (SEEN_NOTE, SEEN_EMITTED): Renumber.
44243         (final_scan_insn): Don't force_source_line on second
44244         NOTE_INSN_BASIC_BLOCK.
44245
44246 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
44247
44248         PR target/60205
44249         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
44250         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
44251         (type_natural_mode): Warn ABI change when %zmm register is not
44252         available for AVX512F vector value passing.
44253
44254 2014-02-18  Kai Tietz  <ktietz@redhat.com>
44255
44256         PR target/60193
44257         * config/i386/i386.c (ix86_expand_prologue): Use value in
44258         rax register as displacement when restoring %r10 or %rax.
44259         Fix wrong offset when restoring both registers.
44260
44261 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
44262
44263         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
44264         assertion with conditional return.
44265
44266 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
44267             Uros Bizjak  <ubizjak@gmail.com>
44268
44269         PR driver/60233
44270         * config/i386/driver-i386.c (host_detect_local_cpu): If
44271         YMM state is not saved by the OS, also clear has_f16c.  Move
44272         CPUID 0x80000001 handling before YMM state saving checking.
44273
44274 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
44275
44276         PR rtl-optimization/58960
44277         * haifa-sched.c (alloc_global_sched_pressure_data): New,
44278         factored out from ...
44279         (sched_init): ... here.
44280         (free_global_sched_pressure_data): New, factored out from ...
44281         (sched_finish): ... here.
44282         * sched-int.h (free_global_sched_pressure_data): Declare.
44283         * sched-rgn.c (nr_regions_initial): New static global.
44284         (haifa_find_rgns): Initialize it.
44285         (schedule_region): Disable sched-pressure for the newly
44286         generated regions.
44287
44288 2014-02-17  Richard Biener  <rguenther@suse.de>
44289
44290         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
44291         release SSA defs of pattern stmts.
44292
44293 2014-02-17  Richard Biener  <rguenther@suse.de>
44294
44295         * tree-inline.c (expand_call_inline): Release the virtual
44296         operand defined by the call we are about to inline.
44297
44298 2014-02-17  Richard Biener  <rguenther@suse.de>
44299
44300         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
44301
44302 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
44303             Ilya Tocar  <ilya.tocar@intel.com>
44304
44305         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
44306         arguments order in builtin.
44307         (_mm512_permutexvar_epi64): Ditto.
44308         (_mm512_mask_permutexvar_epi64): Ditto
44309         (_mm512_maskz_permutexvar_epi32): Ditto
44310         (_mm512_permutexvar_epi32): Ditto
44311         (_mm512_mask_permutexvar_epi32): Ditto
44312
44313 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44314
44315         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
44316         (p8_vmrgow): Likewise.
44317
44318 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44319
44320         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
44321         endian targets.
44322
44323 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
44324
44325         PR target/60203
44326         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
44327         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
44328         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
44329         using direct move instructions on ISA 2.07.  Also adjust
44330         instruction length for 64-bit.
44331         (mov<mode>_64bit, TFmode/TDmode): Likewise.
44332         (mov<mode>_32bit, TFmode/TDmode): Likewise.
44333
44334 2014-02-15  Alan Modra  <amodra@gmail.com>
44335
44336         PR target/58675
44337         PR target/57935
44338         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
44339         find_replacement on parts of insn rtl that might be reloaded.
44340
44341 2014-02-15  Richard Biener  <rguenther@suse.de>
44342
44343         PR tree-optimization/60183
44344         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
44345         (tree_ssa_phiprop): Calculate and free post-dominators.
44346
44347 2014-02-14  Jeff Law  <law@redhat.com>
44348
44349         PR rtl-optimization/60131
44350         * ree.c (get_extended_src_reg): New function.
44351         (combine_reaching_defs): Use it rather than assuming location of REG.
44352         (find_and_remove_re): Verify first operand of extension is
44353         a REG before adding the insns to the copy list.
44354
44355 2014-02-14  Roland McGrath  <mcgrathr@google.com>
44356
44357         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
44358         * configure: Regenerated.
44359         * config.in: Regenerated.
44360         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
44361         instead of ASM_SHORT.
44362
44363 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
44364             Richard Earnshaw  <rearnsha@arm.com>
44365
44366         PR rtl-optimization/59535
44367         * lra-constraints.c (process_alt_operands): Encourage alternative
44368         when unassigned pseudo class is superset of the alternative class.
44369         (inherit_reload_reg): Don't inherit when optimizing for code size.
44370         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
44371         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
44372         modes not less than 4 for Thumb1.
44373
44374 2014-02-14  Kyle McMartin  <kyle@redhat.com>
44375
44376         PR pch/60010
44377         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
44378
44379 2014-02-14  Richard Biener  <rguenther@suse.de>
44380
44381         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
44382         (get_frame_arg): Drop the assert with langhook types_compatible_p.
44383         Do not strip INDIRECT_REFs.
44384
44385 2014-02-14  Richard Biener  <rguenther@suse.de>
44386
44387         PR lto/60179
44388         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
44389         DECL_FUNCTION_SPECIFIC_TARGET.
44390         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
44391         * tree-streamer-out.c (pack_ts_target_option): Remove.
44392         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
44393         (write_ts_function_decl_tree_pointers): Do not stream
44394         DECL_FUNCTION_SPECIFIC_TARGET.
44395         * tree-streamer-in.c (unpack_ts_target_option): Remove.
44396         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
44397         (lto_input_ts_function_decl_tree_pointers): Do not stream
44398         DECL_FUNCTION_SPECIFIC_TARGET.
44399
44400 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
44401
44402         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
44403         (get_initial_def_for_induction, vectorizable_induction): Ignore
44404         debug stmts when looking for exit_phi.
44405         (vectorizable_live_operation): Fix up condition.
44406
44407 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
44408
44409         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
44410         nreverse() because it changes the content of original tree list.
44411
44412 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
44413
44414         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
44415         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
44416
44417 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
44418
44419         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
44420         GNU coding standards.
44421
44422 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
44423
44424         PR debug/60152
44425         * dwarf2out.c (gen_subprogram_die): Don't call
44426         add_calling_convention_attribute if subr_die is old_die.
44427
44428 2014-02-13  Sharad Singhai  <singhai@google.com>
44429
44430         * doc/optinfo.texi: Fix order of nodes.
44431
44432 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
44433
44434         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
44435         operands[2], not operands[3].
44436
44437 2014-02-13  Richard Biener  <rguenther@suse.de>
44438
44439         PR bootstrap/59878
44440         * doc/install.texi (ISL): Update recommended version to 0.12.2,
44441         mention the possibility of an in-tree build.
44442         (CLooG): Update recommended version to 0.18.1, mention the
44443         possibility of an in-tree build and clarify that the ISL
44444         bundled with CLooG does not work.
44445
44446 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
44447
44448         PR target/43546
44449         * expr.c (compress_float_constant): If x is a hard register,
44450         extend into a pseudo and then move to x.
44451
44452 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
44453
44454         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
44455         caused by bad second argument to warning_at() with -mhotpatch and
44456         nested functions (e.g. with gfortran).
44457
44458 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
44459
44460         * opts.c (option_name): Remove "enabled by default" rider.
44461
44462 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
44463
44464         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
44465
44466 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
44467             Uros Bizjak  <ubizjak@gmail.com>
44468
44469         PR target/60151
44470         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
44471         * configure: Regenerated.
44472
44473 2014-02-12  Richard Biener  <rguenther@suse.de>
44474
44475         * vec.c (vec_prefix::calculate_allocation): Move as
44476         inline variant to vec.h.
44477         (vec_prefix::calculate_allocation_1): New out-of-line version.
44478         * vec.h (vec_prefix::calculate_allocation_1): Declare.
44479         (vec_prefix::m_has_auto_buf): Rename to ...
44480         (vec_prefix::m_using_auto_storage): ... this.
44481         (vec_prefix::calculate_allocation): Inline the easy cases
44482         and dispatch to calculate_allocation_1 which doesn't need the
44483         prefix address.
44484         (va_heap::reserve): Use gcc_checking_assert.
44485         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
44486         m_using_auto_storage.
44487         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
44488         member and adjust.
44489         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
44490         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
44491         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
44492
44493 2014-02-12  Richard Biener  <rguenther@suse.de>
44494
44495         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
44496         when we found a dependence.
44497
44498 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
44499
44500         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
44501         common code...
44502         (maybe_fold_stmt): ... into this new function.
44503         * omp-low.c (lower_omp): Update comment.
44504
44505         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
44506         last use.
44507
44508         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
44509         dereference.
44510
44511 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
44512
44513         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
44514         identifiers in comments.
44515         (cortexa53_extra_costs): Likewise.
44516         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
44517         (cortexa7_extra_costs): Likewise.
44518         (cortexa12_extra_costs): Likewise.
44519         (cortexa15_extra_costs): Likewise.
44520         (v7m_extra_costs): Likewise.
44521
44522 2014-02-12  Richard Biener  <rguenther@suse.de>
44523
44524         PR middle-end/60092
44525         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
44526         of posix_memalign being successful.
44527         (lower_stmt): Restrict lowering of posix_memalign to when
44528         -ftree-bit-ccp is enabled.
44529
44530 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
44531
44532         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
44533         arg_loc.
44534         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
44535
44536 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
44537
44538         PR rtl-optimization/60116
44539         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
44540         other_insn once the combination has been validated.
44541
44542 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
44543
44544         PR lto/59468
44545         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
44546         and wrapper.
44547         * ipa-devirt.c: Include demangle.h
44548         (odr_violation_reported): New static variable.
44549         (add_type_duplicate): Update odr_violations.
44550         (maybe_record_node): Add completep parameter; update it.
44551         (record_target_from_binfo): Add COMPLETEP parameter;
44552         update it as needed.
44553         (possible_polymorphic_call_targets_1): Likewise.
44554         (struct polymorphic_call_target_d): Add nonconstruction_targets;
44555         rename FINAL to COMPLETE.
44556         (record_targets_from_bases): Sanity check we found the binfo;
44557         fix COMPLETEP updating.
44558         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
44559         parameter, fix computing of COMPLETEP.
44560         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
44561         at LTO time do demangling.
44562         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
44563         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
44564         parameter.
44565         (gimple_get_virt_method_for_binfo): Likewise.
44566         * gimple-fold.h (gimple_get_virt_method_for_binfo,
44567         gimple_get_virt_method_for_vtable): Update prototypes.
44568
44569 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
44570
44571         PR target/49008
44572         * genautomata.c (add_presence_absence): Fix typo with
44573         {final_}presence_list.
44574
44575 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
44576
44577         PR target/60137
44578         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
44579         for VSX/Altivec vectors that land in GPR registers.
44580
44581 2014-02-11  Richard Henderson  <rth@redhat.com>
44582             Jakub Jelinek  <jakub@redhat.com>
44583
44584         PR debug/59776
44585         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
44586         around drhs if type conversion to lacc->type is not useless.
44587
44588 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44589
44590         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
44591         tuning struct.
44592         (cortex-a57.cortex-a53): Likewise.
44593         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
44594
44595 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44596
44597         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
44598         arm_restrict_it.
44599
44600 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
44601
44602         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
44603         add_options_for_arm_vfp3.
44604
44605 2014-02-11  Jeff Law  <law@redhat.com>
44606
44607         PR middle-end/54041
44608         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
44609         object with an undesirable mode.
44610
44611 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
44612
44613         PR libgomp/60107
44614         * config/i386/sol2-9.h: New file.
44615         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
44616         *-*-solaris2.9*): Use it.
44617
44618 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
44619
44620         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
44621         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
44622
44623 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
44624
44625         * config/microblaze/microblaze.c: Extend mcpu version format
44626
44627 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
44628
44629         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
44630
44631 2014-02-10  Richard Henderson  <rth@redhat.com>
44632
44633         PR target/59927
44634         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
44635         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
44636         ms-abi vs -mno-accumulate-outgoing-args.
44637         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
44638         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
44639         respect to ms-abi.
44640
44641 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
44642
44643         PR middle-end/60080
44644         * cfgexpand.c (expand_asm_operands): Attach source location to
44645         ASM_INPUT rtx objects.
44646         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
44647
44648 2014-02-10  Nick Clifton  <nickc@redhat.com>
44649
44650         * config/mn10300/mn10300.c (popcount): New function.
44651         (mn10300_expand_prologue): Include saved registers in stack usage
44652         count.
44653
44654 2014-02-10  Jeff Law  <law@redhat.com>
44655
44656         PR middle-end/52306
44657         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
44658         when changing the SET_DEST of a prior insn to avoid an input reload.
44659
44660 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44661
44662         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
44663         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
44664         -mcall-openbsd, or -mcall-linux.
44665         (CC1_ENDIAN_BIG_SPEC): Remove.
44666         (CC1_ENDIAN_LITTLE_SPEC): Remove.
44667         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
44668         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
44669         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
44670         and %cc1_endian_default.
44671         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
44672
44673 2014-02-10  Richard Biener  <rguenther@suse.de>
44674
44675         PR tree-optimization/60115
44676         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
44677         MEM_REF handling.  Properly verify that the accesses are not
44678         out of the objects bound.
44679
44680 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44681
44682         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
44683         coretex to cortex.
44684
44685 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
44686
44687         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
44688         proper constants and fix formatting.
44689         (possible_polymorphic_call_targets): Fix formatting.
44690
44691 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
44692             Ilya Tocar  <ilya.tocar@intel.com>
44693
44694         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
44695         (_mm512_loadu_epi32): Renamed into...
44696         (_mm512_loadu_si512): This.
44697         (_mm512_storeu_epi32): Renamed into...
44698         (_mm512_storeu_si512): This.
44699         (_mm512_maskz_ceil_ps): Removed.
44700         (_mm512_maskz_ceil_pd): Ditto.
44701         (_mm512_maskz_floor_ps): Ditto.
44702         (_mm512_maskz_floor_pd): Ditto.
44703         (_mm512_floor_round_ps): Ditto.
44704         (_mm512_floor_round_pd): Ditto.
44705         (_mm512_ceil_round_ps): Ditto.
44706         (_mm512_ceil_round_pd): Ditto.
44707         (_mm512_mask_floor_round_ps): Ditto.
44708         (_mm512_mask_floor_round_pd): Ditto.
44709         (_mm512_mask_ceil_round_ps): Ditto.
44710         (_mm512_mask_ceil_round_pd): Ditto.
44711         (_mm512_maskz_floor_round_ps): Ditto.
44712         (_mm512_maskz_floor_round_pd): Ditto.
44713         (_mm512_maskz_ceil_round_ps): Ditto.
44714         (_mm512_maskz_ceil_round_pd): Ditto.
44715         (_mm512_expand_pd): Ditto.
44716         (_mm512_expand_ps): Ditto.
44717         * config/i386/i386.c (ix86_builtins): Remove
44718         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
44719         (bdesc_args): Ditto.
44720         * config/i386/predicates.md (const1256_operand): New.
44721         (const_1_to_2_operand): Ditto.
44722         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44723         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44724         (*avx512pf_gatherpf<mode>sf): Ditto.
44725         (avx512pf_gatherpf<mode>df): Ditto.
44726         (*avx512pf_gatherpf<mode>df_mask): Ditto.
44727         (*avx512pf_gatherpf<mode>df): Ditto.
44728         (avx512pf_scatterpf<mode>sf): Ditto.
44729         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44730         (*avx512pf_scatterpf<mode>sf): Ditto.
44731         (avx512pf_scatterpf<mode>df): Ditto.
44732         (*avx512pf_scatterpf<mode>df_mask): Ditto.
44733         (*avx512pf_scatterpf<mode>df): Ditto.
44734         (avx512f_expand<mode>): Removed.
44735         (<shift_insn><mode>3<mask_name>): Change predicate type.
44736
44737 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
44738
44739         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
44740         not at the end of datarefs vector use ordered_remove to avoid
44741         reordering datarefs vector.
44742
44743         PR c/59984
44744         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
44745         mark local addressable non-static vars as GOVD_PRIVATE
44746         instead of GOVD_LOCAL.
44747         * omp-low.c (lower_omp_for): Move gimple_bind_vars
44748         and BLOCK_VARS of gimple_bind_block to new_stmt rather
44749         than copying them.
44750
44751         PR middle-end/60092
44752         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
44753         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
44754         assume_aligned or alloc_align attributes.
44755         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
44756         arguments.  Handle also assume_aligned and alloc_align attributes.
44757         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
44758         calls to functions with assume_aligned or alloc_align attributes.
44759         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
44760
44761 2014-02-08  Terry Guo  <terry.guo@arm.com>
44762
44763         * doc/invoke.texi: Document ARM -march=armv7e-m.
44764
44765 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
44766
44767         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
44768         flag on __cilkrts_rethrow builtin.
44769
44770         PR ipa/60026
44771         * ipa-cp.c (determine_versionability): Fail at -O0
44772         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
44773         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
44774
44775         Revert:
44776         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
44777
44778         PR ipa/60026
44779         * tree-inline.c (copy_forbidden): Fail for
44780         __attribute__((optimize (0))) functions.
44781
44782 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
44783
44784         * varpool.c: Include pointer-set.h.
44785         (varpool_remove_unreferenced_decls): Variables in other partitions
44786         will not be output; be however careful to not lose information
44787         about partitioning.
44788
44789 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
44790
44791         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
44792         lookup in the vtable constructor.
44793
44794 2014-02-07  Jeff Law  <law@redhat.com>
44795
44796         PR target/40977
44797         * config/m68k/m68k.md (ashldi_extsi): Turn into a
44798         define_insn_and_split.
44799
44800         * ipa-inline.c (inline_small_functions): Fix typos.
44801
44802 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
44803
44804         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
44805         (s390_can_use_return_insn): Declare.
44806         * config/s390/s390.h (EPILOGUE_USES): Define.
44807         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
44808         instructions.
44809         (s390_chunkify_start): Handle return JUMP_LABELs.
44810         (s390_early_mach): Emit a main_pool instruction on the entry edge.
44811         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
44812         (s390_can_use_return_insn): New functions.
44813         (s390_fix_long_loop_prediction): Handle conditional returns.
44814         (TARGET_SET_UP_BY_PROLOGUE): Define.
44815         * config/s390/s390.md (ANY_RETURN): New code iterator.
44816         (*creturn, *csimple_return, return, simple_return): New patterns.
44817
44818 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
44819
44820         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
44821         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
44822         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
44823         REG_CFA_RESTORE list when deciding not to restore a register.
44824
44825 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
44826
44827         * config/s390/s390.c: Include tree-pass.h and context.h.
44828         (s390_early_mach): New function, split out from...
44829         (s390_emit_prologue): ...here.
44830         (pass_data_s390_early_mach): New pass structure.
44831         (pass_s390_early_mach): New class.
44832         (s390_option_override): Create and register early_mach pass.
44833         Move to end of file.
44834
44835 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
44836
44837         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
44838         to match for the exit block.
44839
44840 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44841
44842         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
44843         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
44844         Reject misaligned operands.
44845
44846 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44847
44848         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
44849
44850 2014-02-07  Richard Biener  <rguenther@suse.de>
44851
44852         PR middle-end/60092
44853         * gimple-low.c (lower_builtin_posix_memalign): New function.
44854         (lower_stmt): Call it to lower posix_memalign in a way
44855         to make alignment info accessible.
44856
44857 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
44858
44859         PR c++/60082
44860         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
44861         __builtin_setjmp_receiver.
44862
44863 2014-02-07  Richard Biener  <rguenther@suse.de>
44864
44865         PR middle-end/60092
44866         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
44867         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
44868         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
44869         Handle BUILT_IN_POSIX_MEMALIGN.
44870         (find_func_clobbers): Likewise.
44871         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
44872         (call_may_clobber_ref_p_1): Likewise.
44873
44874 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
44875
44876         PR ipa/59918
44877         * ipa-devirt.c (record_target_from_binfo): Remove overactive
44878         sanity check.
44879
44880 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
44881
44882         PR ipa/59469
44883         * lto-cgraph.c (lto_output_node): Use
44884         symtab_get_symbol_partitioning_class.
44885         (lto_output_varpool_node): likewise.
44886         (symtab_get_symbol_partitioning_class): Move here from
44887         lto/lto-partition.c
44888         * cgraph.h (symbol_partitioning_class): Likewise.
44889         (symtab_get_symbol_partitioning_class): Declare.
44890
44891 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
44892
44893         * ggc.h (ggc_internal_cleared_alloc): New macro.
44894         * vec.h (vec_safe_copy): Handle memory stats.
44895         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
44896         * target-globals.c (save_target_globals): Likewise.
44897
44898 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
44899
44900         PR target/60077
44901         * expr.c (emit_move_resolve_push): Export; be bit more selective
44902         on when to clear alias set.
44903         * expr.h (emit_move_resolve_push): Declare.
44904         * function.h (struct function): Add tail_call_marked.
44905         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
44906         * config/i386/i386-protos.h (ix86_expand_push): Remove.
44907         * config/i386/i386.md (TImode move expander): De not call
44908         ix86_expand_push.
44909         (FP push expanders): Preserve memory attributes.
44910         * config/i386/sse.md (push<mode>1): Remove.
44911         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
44912         (ix86_expand_push): Remove.
44913         * config/i386/mmx.md (push<mode>1): Remove.
44914
44915 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
44916
44917         PR rtl-optimization/60030
44918         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
44919         lopart with paradoxical subreg before shifting it up by hprec.
44920
44921 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44922
44923         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
44924         Remove extra newline at end of file.
44925         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
44926         (arm_issue_rate): Handle cortexa57.
44927         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
44928         (cortex-a57.cortex-a53): Likewise.
44929
44930 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
44931
44932         PR target/59575
44933         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
44934         don't record in REG_FRAME_RELATED_EXPR registers not set in that
44935         bitmask.
44936         (arm_expand_prologue): Adjust all callers.
44937         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
44938         info, registers also at the lowest numbered registers side.  Use
44939         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
44940         XEXP.
44941
44942         PR debug/59992
44943         * var-tracking.c (adjust_mems): Before adding a SET to
44944         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
44945
44946 2014-02-06  Alan Modra  <amodra@gmail.com>
44947
44948         PR target/60032
44949         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
44950         change SDmode to DDmode when lra_in_progress.
44951
44952 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
44953
44954         PR middle-end/59150
44955         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
44956         free_data_ref on the dr first, and before goto again also set dr
44957         to the next dr.  For simd_lane_access, free old datarefs[i] before
44958         overwriting it.  For get_vectype_for_scalar_type failure, don't
44959         free_data_ref if simd_lane_access.
44960
44961         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
44962
44963         PR target/60062
44964         * tree.h (opts_for_fn): New inline function.
44965         (opt_for_fn): Define.
44966         * config/i386/i386.c (ix86_function_regparm): Use
44967         opt_for_fn (decl, optimize) instead of optimize.
44968
44969 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44970
44971         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
44972         for SYMBOL_REF in large memory model.
44973
44974 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44975
44976         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
44977         and crypto support.
44978         (cortex-a57): Likewise.
44979         (cortex-a57.cortex-a53): Likewise.
44980
44981 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
44982             Kugan Vivekanandarajah  <kuganv@linaro.org>
44983
44984         * config/arm/arm.c (arm_vector_alignment_reachable): Check
44985         unaligned_access.
44986         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
44987
44988 2014-02-06  Richard Biener  <rguenther@suse.de>
44989
44990         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
44991         set_loop_copy and initialize_original_copy_tables.
44992
44993 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
44994
44995         * config/aarch64/aarch64-simd.md
44996         (aarch64_ashr_simddi): Change QI to SI.
44997
44998 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
44999             Jakub Jelinek  <jakub@redhat.com>
45000
45001         PR middle-end/60013
45002         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
45003         of the dataflow.
45004
45005 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45006
45007         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
45008         CODE_FOR_altivec_vpku[hw]um to
45009         CODE_FOR_altivec_vpku[hw]um_direct.
45010         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
45011         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
45012         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
45013         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
45014
45015 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45016
45017         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
45018         generation for -maltivec=be.
45019         (altivec_vsumsws): Simplify redundant test.
45020
45021 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45022
45023         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
45024         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
45025         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
45026         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
45027         gen_altivec_vpkuwum.
45028         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
45029         BYTES_BIG_ENDIAN.
45030         (altivec_vpks<VI_char>ss): Likewise.
45031         (altivec_vpks<VI_char>us): Likewise.
45032         (altivec_vpku<VI_char>us): Likewise.
45033         (altivec_vpku<VI_char>um): Likewise.
45034         (altivec_vpku<VI_char>um_direct): New (copy of
45035         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
45036         internal use).
45037         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
45038         target is little endian and -maltivec=be is not specified.
45039         (*altivec_vupkhs<VU_char>_direct): New (copy of
45040         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
45041         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
45042         target is little endian and -maltivec=be is not specified.
45043         (*altivec_vupkls<VU_char>_direct): New (copy of
45044         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
45045         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
45046         little endian and -maltivec=be is not specified.
45047         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
45048         little endian and -maltivec=be is not specified.
45049
45050 2014-02-05  Richard Henderson  <rth@redhat.com>
45051
45052         PR debug/52727
45053         * combine-stack-adj.c: Revert r206943.
45054         * sched-int.h (struct deps_desc): Add last_args_size.
45055         * sched-deps.c (init_deps): Initialize it.
45056         (sched_analyze_insn): Add OUTPUT dependencies between insns that
45057         contain REG_ARGS_SIZE notes.
45058
45059 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
45060
45061         * lto-cgraph.c (asm_nodes_output): Make global.
45062         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
45063         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
45064         (driver_handle_option): Handle OPT_fwpa.
45065
45066 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
45067
45068         PR ipa/59947
45069         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
45070         a comment typo and formatting issue.  If odr_hash hasn't been
45071         created, return vNULL and set *completep to false.
45072
45073         PR middle-end/57499
45074         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
45075         bb with no successors.
45076
45077 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
45078
45079         PR target/59718
45080         * doc/invoke.texi (-march): Clarify documentation for ARM.
45081         (-mtune): Likewise.
45082         (-mcpu): Likewise.
45083
45084 2014-02-05  Richard Biener  <rguenther@suse.de>
45085
45086         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
45087         when not vectorizing because of too many alias checks.
45088         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
45089         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
45090
45091 2014-02-05  Nick Clifton  <nickc@redhat.com>
45092
45093         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
45094         accept extended registers in any mode when compiling for the MN10300.
45095
45096 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
45097
45098         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
45099         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
45100         sanitization attributes.
45101         (can_inline_edge_p): Likewise.
45102         (sanitize_attrs_match_for_inline_p): New function.
45103
45104 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
45105
45106         * ipa-prop.c (detect_type_change): Shor circuit testing of
45107         type changes on THIS pointer.
45108
45109 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
45110
45111         PR target/59777
45112         * config/pa/pa.c (legitimize_tls_address): Return original address
45113         if not passed a SYMBOL_REF rtx.
45114         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
45115         addresses.
45116         (pa_emit_move_sequence): Simplify TLS source operands.
45117         (pa_legitimate_constant_p): Reject all TLS constants.
45118         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
45119         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
45120
45121 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
45122
45123         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
45124         groups when we know they are controlled by LTO.
45125         * varasm.c (default_binds_local_p_1): If object is in other partition,
45126         it will be resolved locally.
45127
45128 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
45129
45130         * config/host-linux.c (linux_gt_pch_use_address): Don't
45131         use SSIZE_MAX because it is not always defined.
45132
45133 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
45134
45135         PR bootstrap/59913
45136         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
45137         threshold for pseudo splitting.
45138         (update_ebb_live_info): Process call argument hard registers and
45139         hard registers from insn definition too.
45140         (max_small_class_regs_num): New constant.
45141         (inherit_in_ebb): Update live hard regs through EBBs.  Update
45142         reloads_num only for small register classes.  Don't split for
45143         outputs of jumps.
45144
45145 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
45146
45147         PR ipa/60058
45148         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
45149         is non-null.
45150
45151 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
45152
45153         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
45154         visibility is safe.
45155
45156 2014-02-04  Marek Polacek  <polacek@redhat.com>
45157
45158         * gdbinit.in (pel): Define.
45159
45160 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
45161
45162         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
45163         behavior.
45164
45165 2014-02-04  Richard Biener  <rguenther@suse.de>
45166
45167         PR lto/59723
45168         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
45169         in function context local.
45170         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
45171         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
45172         similar to LTO_imported_decl_ref.
45173
45174 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
45175
45176         PR tree-optimization/60002
45177         * cgraphclones.c (build_function_decl_skip_args): Clear
45178         DECL_LANG_SPECIFIC.
45179
45180         PR tree-optimization/60023
45181         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
45182         false to gsi_replace.
45183         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
45184         has been in some EH region and vec_stmt could throw, add
45185         vec_stmt into the same EH region.
45186         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
45187         has no lhs, ignore it.
45188         * internal-fn.c (expand_MASK_LOAD): Likewise.
45189
45190         PR ipa/60026
45191         * tree-inline.c (copy_forbidden): Fail for
45192         __attribute__((optimize (0))) functions.
45193
45194         PR other/58712
45195         * omp-low.c (simd_clone_struct_copy): If from->inbranch
45196         is set, copy one less argument.
45197         (expand_simd_clones): Don't subtract clone_info->inbranch
45198         from simd_clone_struct_alloc argument.
45199
45200         PR rtl-optimization/57915
45201         * recog.c (simplify_while_replacing): If all unary/binary/relational
45202         operation arguments are constant, attempt to simplify those.
45203
45204         PR middle-end/59261
45205         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
45206         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
45207
45208 2014-02-04  Richard Biener  <rguenther@suse.de>
45209
45210         PR tree-optimization/60012
45211         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
45212         TBAA disambiguation to all DDRs.
45213
45214 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
45215
45216         PR target/59788
45217         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
45218         (LINK_SPEC): Use it for -shared, -shared-libgcc.
45219
45220 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
45221
45222         PR ipa/59882
45223         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
45224
45225 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
45226
45227         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
45228         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
45229
45230 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
45231
45232         PR ipa/59831
45233         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
45234         to figure out targets of polymorphic calls with known decl.
45235         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
45236         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
45237         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
45238         (get_polymorphic_call_info): ... here.
45239         (get_polymorphic_call_info_from_invariant): New function.
45240
45241 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
45242
45243         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
45244         lookup via vtable pointer; check for type consistency
45245         and turn inconsitent facts into UNREACHABLE.
45246         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
45247         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
45248         type inconsistent querries; return UNREACHABLE instead.
45249
45250 2014-02-03  Richard Henderson  <rth@twiddle.net>
45251
45252         PR tree-opt/59924
45253         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
45254         already processed this node.
45255         (normalize_one_pred_1): Pass along mark_set.
45256         (normalize_one_pred): Create and destroy a pointer_set_t.
45257         (normalize_one_pred_chain): Likewise.
45258
45259 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
45260
45261         PR gcov-profile/58602
45262         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
45263
45264 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
45265
45266         PR ipa/59831
45267         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
45268         -fno-devirtualize; try to devirtualize by the knowledge of
45269         virtual table pointer given by aggregate propagation.
45270         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
45271         (ipa_print_node_jump_functions): Dump also offset that
45272         is relevant for polymorphic calls.
45273         (determine_known_aggregate_parts): Add arg_type parameter; use it
45274         instead of determining the type from pointer type.
45275         (ipa_compute_jump_functions_for_edge): Update call of
45276         determine_known_aggregate_parts.
45277         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
45278         (gimple_get_virt_method_for_binfo): ... here; simplify using
45279         vtable_pointer_value_to_vtable.
45280         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
45281         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
45282         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
45283         (vtable_pointer_value_to_vtable): Break out from ...; handle also
45284         POINTER_PLUS_EXPR.
45285         (vtable_pointer_value_to_binfo): ... here.
45286         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
45287
45288 2014-02-03  Teresa Johnson  <tejohnson@google.com>
45289
45290         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
45291         redef of outer loop index variable.
45292
45293 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
45294
45295         PR c++/53017
45296         PR c++/59211
45297         * doc/extend.texi (Function Attributes): Typo.
45298
45299 2014-02-03  Cong Hou  <congh@google.com>
45300
45301         PR tree-optimization/60000
45302         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
45303         if the vectorized statement is a store.  A store statement can only
45304         appear at the end of pattern statements.
45305
45306 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
45307
45308         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
45309         (ix86_option_override_internal): Default long double to 64-bit for
45310         32-bit Bionic and to 128-bit for 64-bit Bionic.
45311
45312         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
45313         TARGET_LONG_DOUBLE_128 is true.
45314         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
45315
45316         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
45317         (mlong-double-64): Negate -mlong-double-128.
45318         (mlong-double-128): New option.
45319
45320         * config/i386/i386-c.c (ix86_target_macros): Define
45321         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
45322
45323         * doc/invoke.texi: Document -mlong-double-128.
45324
45325 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
45326
45327         PR rtl-optimization/60024
45328         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
45329
45330 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
45331
45332         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
45333
45334 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
45335
45336         PR rtl-optimization/57662
45337         * sel-sched.c (code_motion_path_driver): Do not mark already not
45338         existing blocks in the visiting bitmap.
45339
45340 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
45341
45342         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
45343         on the insn being emitted.
45344
45345 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
45346             Will Deacon  <will.deacon@arm.com>
45347
45348         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
45349
45350 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
45351
45352         * config/arm/arm-tables.opt: Regenerate.
45353
45354 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45355
45356         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
45357         for vector types other than V16QImode.
45358         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
45359         define_expand, and call altivec_expand_vec_perm_le when producing
45360         code with little endian element order.
45361         (*altivec_vperm_<mode>_internal): New insn having previous
45362         behavior of altivec_vperm_<mode>.
45363         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
45364         altivec_expand_vec_perm_le when producing code with little endian
45365         element order.
45366         (*altivec_vperm_<mode>_uns_internal): New insn having previous
45367         behavior of altivec_vperm_<mode>_uns.
45368
45369 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45370
45371         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
45372         (altivec_vsumsws): Add handling for -maltivec=be with a little
45373         endian target.
45374         (altivec_vsumsws_direct): New.
45375         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
45376         gen_altivec_vsumsws.
45377
45378 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
45379
45380         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
45381         vtable_pointer_value_to_binfo): New functions.
45382         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
45383         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
45384
45385 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
45386
45387         * config/nios2/nios2.md (load_got_register): Initialize GOT
45388         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
45389         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
45390
45391 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
45392
45393         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
45394         preserverd by passthrough, do not propagate the type.
45395
45396 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
45397
45398         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
45399         (mips_atomic_assign_expand_fenv): New function.
45400         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
45401
45402 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
45403
45404         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
45405         (__builtin_mips_set_fcsr): Likewise.
45406         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
45407         MIPS_USI_FTYPE_VOID.
45408         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
45409         (mips16_expand_set_fcsr): Likewise.
45410         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
45411         (mips16_set_fcsr_stub): Likewise.
45412         (mips16_get_fcsr_one_only_stub): New class.
45413         (mips16_set_fcsr_one_only_stub): Likewise.
45414         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
45415         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
45416         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
45417         (hard_float): New availability predicate.
45418         (mips_builtins): Add get_fcsr and set_fcsr.
45419         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
45420         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
45421         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
45422         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
45423         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
45424         patterns.
45425
45426 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
45427
45428         * config/mips/mips.c (mips_one_only_stub): New class.
45429         (mips_need_mips16_rdhwr_p): Replace with...
45430         (mips16_rdhwr_stub): ...this new variable.
45431         (mips16_stub_call_address): New function.
45432         (mips16_rdhwr_one_only_stub): New class.
45433         (mips_expand_thread_pointer): Use mips16_stub_call_address.
45434         (mips_output_mips16_rdhwr): Delete.
45435         (mips_finish_stub): New function.
45436         (mips_code_end): Use it to handle rdhwr stubs.
45437
45438 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
45439
45440         PR target/60017
45441         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
45442         when calculating size of integer atomic types.
45443
45444 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45445
45446         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
45447
45448 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
45449
45450         PR tree-optimization/60003
45451         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
45452         * profile.c (branch_prob): Use gimple_call_builtin_p
45453         to check for BUILT_IN_SETJMP_RECEIVER.
45454         * tree-inline.c (copy_bb): Call notice_special_calls.
45455
45456 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
45457
45458         PR bootstrap/59985
45459         * lra-constraints.c (process_alt_operands): Update reload_sum only
45460         on the first pass.
45461
45462 2014-01-31  Richard Henderson  <rth@redhat.com>
45463
45464         PR middle-end/60004
45465         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
45466         until after else_eh is processed.
45467
45468 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
45469
45470         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
45471         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
45472         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
45473         in smmintrin.h, remove them.
45474         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
45475         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
45476         * config/i386/i386.md (ROUND_SAE): Fix value.
45477         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
45478         (const48_operand): New.
45479         * config/i386/subst.md (round), (round_expand): Use
45480         const_4_or_8_to_11_operand.
45481         (round_saeonly), (round_saeonly_expand): Use const48_operand.
45482
45483 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
45484
45485         * config/i386/constraints.md (Yk): Swap meaning with k.
45486         * config/i386/i386.md (movhi_internal): Change Yk to k.
45487         (movqi_internal): Ditto.
45488         (*k<logic><mode>): Ditto.
45489         (*andhi_1): Ditto.
45490         (*andqi_1): Ditto.
45491         (kandn<mode>): Ditto.
45492         (*<code>hi_1): Ditto.
45493         (*<code>qi_1): Ditto.
45494         (kxnor<mode>): Ditto.
45495         (kortestzhi): Ditto.
45496         (kortestchi): Ditto.
45497         (kunpckhi): Ditto.
45498         (*one_cmplhi2_1): Ditto.
45499         (*one_cmplqi2_1): Ditto.
45500         * config/i386/sse.md (): Change k to Yk.
45501         (avx512f_load<mode>_mask): Ditto.
45502         (avx512f_blendm<mode>): Ditto.
45503         (avx512f_store<mode>_mask): Ditto.
45504         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
45505         (avx512f_storedqu<mode>_mask): Ditto.
45506         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
45507         Ditto.
45508         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
45509         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
45510         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
45511         (avx512f_maskcmp<mode>3): Ditto.
45512         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
45513         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
45514         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
45515         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
45516         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
45517         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
45518         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
45519         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
45520         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
45521         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
45522         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
45523         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
45524         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
45525         (vec_extract_lo_<mode>_maskm): Ditto.
45526         (vec_extract_hi_<mode>_maskm): Ditto.
45527         (avx512f_vternlog<mode>_mask): Ditto.
45528         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
45529         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
45530         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
45531         (avx512f_<code>v8div16qi2_mask): Ditto.
45532         (avx512f_<code>v8div16qi2_mask_store): Ditto.
45533         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
45534         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
45535         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
45536         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
45537         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
45538         (*avx512pf_gatherpf<mode>df_mask): Ditto.
45539         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
45540         (*avx512pf_scatterpf<mode>df_mask): Ditto.
45541         (avx512cd_maskb_vec_dupv8di): Ditto.
45542         (avx512cd_maskw_vec_dupv16si): Ditto.
45543         (avx512f_vpermi2var<mode>3_maskz): Ditto.
45544         (avx512f_vpermi2var<mode>3_mask): Ditto.
45545         (avx512f_vpermi2var<mode>3_mask): Ditto.
45546         (avx512f_vpermt2var<mode>3_maskz): Ditto.
45547         (*avx512f_gathersi<mode>): Ditto.
45548         (*avx512f_gathersi<mode>_2): Ditto.
45549         (*avx512f_gatherdi<mode>): Ditto.
45550         (*avx512f_gatherdi<mode>_2): Ditto.
45551         (*avx512f_scattersi<mode>): Ditto.
45552         (*avx512f_scatterdi<mode>): Ditto.
45553         (avx512f_compress<mode>_mask): Ditto.
45554         (avx512f_compressstore<mode>_mask): Ditto.
45555         (avx512f_expand<mode>_mask): Ditto.
45556         * config/i386/subst.md (mask): Change k to Yk.
45557         (mask_scalar_merge): Ditto.
45558         (sd): Ditto.
45559
45560 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
45561
45562         * doc/extend.texi (Vector Extensions): Document ?: in C++.
45563
45564 2014-01-31  Richard Biener  <rguenther@suse.de>
45565
45566         PR middle-end/59990
45567         * builtins.c (fold_builtin_memory_op): Make sure to not
45568         use a floating-point mode or a boolean or enumeral type for
45569         the copy operation.
45570
45571 2014-01-30  DJ Delorie  <dj@redhat.com>
45572
45573         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
45574         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
45575         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
45576         whenever main() has an epilogue.
45577
45578 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45579
45580         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
45581         unused variable "field".
45582         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
45583         (vsx_mergeh_<mode>): Likewise.
45584         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
45585         (altivec_vmrghh): Likewise.
45586         (altivec_vmrghw): Likewise.
45587         (altivec_vmrglb): Likewise.
45588         (altivec_vmrglh): Likewise.
45589         (altivec_vmrglw): Likewise.
45590         (altivec_vspltb): Add missing uses.
45591         (altivec_vsplth): Likewise.
45592         (altivec_vspltw): Likewise.
45593         (altivec_vspltsf): Likewise.
45594
45595 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
45596
45597         PR target/59923
45598         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
45599         frame related instructions.
45600
45601 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
45602
45603         PR rtl-optimization/59959
45604         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
45605         any reload of register whose subreg is invalid.
45606
45607 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
45608
45609         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
45610         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
45611         Add missing return type - void.
45612
45613 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45614
45615         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
45616         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
45617         remove element index adjustment for endian (now handled in vsx.md
45618         and altivec.md).
45619         (altivec_expand_vec_perm_const): Use
45620         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
45621         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
45622         (vsx_xxspltw_<mode>): Adjust element index for little endian.
45623         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
45624         define_expand and a new define_insn *altivec_vspltb_internal;
45625         adjust for -maltivec=be on a little endian target.
45626         (altivec_vspltb_direct): New.
45627         (altivec_vsplth): Divide into a define_expand and a new
45628         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
45629         little endian target.
45630         (altivec_vsplth_direct): New.
45631         (altivec_vspltw): Divide into a define_expand and a new
45632         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
45633         little endian target.
45634         (altivec_vspltw_direct): New.
45635         (altivec_vspltsf): Divide into a define_expand and a new
45636         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
45637         a little endian target.
45638
45639 2014-01-30  Richard Biener  <rguenther@suse.de>
45640
45641         PR tree-optimization/59993
45642         * tree-ssa-forwprop.c (associate_pointerplus): Check we
45643         can propagate form the earlier stmt and avoid the transform
45644         when the intermediate result is needed.
45645
45646 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
45647
45648         * README.Portability: Fix typo.
45649
45650 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
45651
45652         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
45653         comparison_operator with ordered_comparison_operator.
45654
45655 2014-01-30  Nick Clifton  <nickc@redhat.com>
45656
45657         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
45658         Rename to mn10300_store_multiple_regs.
45659         * config/mn10300/mn10300.c: Likewise.
45660         * config/mn10300/mn10300.md (store_movm): Fix typo: call
45661         store_multiple_regs.
45662         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
45663         Call mn10300_store_multiple_regs.
45664
45665 2014-01-30  Nick Clifton  <nickc@redhat.com>
45666             DJ Delorie  <dj@redhat.com>
45667
45668         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
45669         %fp 2 to keep registers after it properly word-aligned.
45670         (rl78_alloc_physical_registers_umul): Handle the case where both
45671         input operands are the same.
45672
45673 2014-01-30  Richard Biener  <rguenther@suse.de>
45674
45675         PR tree-optimization/59903
45676         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
45677         check properly.
45678
45679 2014-01-30  Jason Merrill  <jason@redhat.com>
45680
45681         PR c++/59633
45682         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
45683
45684         PR c++/59645
45685         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
45686
45687 2014-01-30  Richard Biener  <rguenther@suse.de>
45688
45689         PR tree-optimization/59951
45690         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
45691
45692 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
45693
45694         PR target/59784
45695         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
45696         SFmode to DFmode case.
45697
45698 2014-01-29  DJ Delorie  <dj@redhat.com>
45699
45700         * config/msp430/msp430.opt (-minrt): New.
45701         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
45702         if -minrt given.
45703         (ENDFILE_SPEC): Likewise.
45704
45705 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
45706
45707         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
45708         (estimate_function_body_sizes): Use it.
45709
45710 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
45711
45712         PR c++/58561
45713         * dwarf2out.c (is_cxx_auto): New.
45714         (is_base_type): Use it.
45715         (gen_type_die_with_usage): Likewise.
45716
45717 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45718
45719         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
45720         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
45721         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
45722         -maltivec=be with LE targets.
45723         (vsx_mergeh_<mode>): Likewise.
45724         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
45725         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
45726         (altivec_vmrghb): Replace with define_expand and new
45727         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
45728         (altivec_vmrghb_direct): New define_insn.
45729         (altivec_vmrghh): Replace with define_expand and new
45730         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
45731         (altivec_vmrghh_direct): New define_insn.
45732         (altivec_vmrghw): Replace with define_expand and new
45733         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
45734         (altivec_vmrghw_direct): New define_insn.
45735         (*altivec_vmrghsf): Adjust for endianness.
45736         (altivec_vmrglb): Replace with define_expand and new
45737         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
45738         (altivec_vmrglb_direct): New define_insn.
45739         (altivec_vmrglh): Replace with define_expand and new
45740         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
45741         (altivec_vmrglh_direct): New define_insn.
45742         (altivec_vmrglw): Replace with define_expand and new
45743         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
45744         (altivec_vmrglw_direct): New define_insn.
45745         (*altivec_vmrglsf): Adjust for endianness.
45746         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
45747         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
45748         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
45749         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
45750         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
45751         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
45752         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
45753         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
45754
45755 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
45756
45757         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
45758         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
45759         whitespace.
45760
45761 2014-01-29  Richard Biener  <rguenther@suse.de>
45762
45763         PR tree-optimization/58742
45764         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
45765         associate_pointerplus_align.
45766         (associate_pointerplus_diff): New function.
45767         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
45768         and associate_pointerplus_diff.
45769
45770 2014-01-29  Richard Biener  <rguenther@suse.de>
45771
45772         * lto-streamer.h (LTO_major_version): Bump to 3.
45773         (LTO_minor_version): Reset to 0.
45774
45775 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
45776
45777         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
45778         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
45779         (arm_file_start): Generate correct asm header for armv7ve.
45780         * config/arm/bpabi.h: Add multilib support for armv7ve.
45781         * config/arm/driver-arm.c: Change the architectures of cortex-a7
45782         and cortex-a15 to armv7ve.
45783         * config/arm/t-aprofile: Add multilib support for armv7ve.
45784         * doc/invoke.texi: Document -march=armv7ve.
45785
45786 2014-01-29  Richard Biener  <rguenther@suse.de>
45787
45788         PR tree-optimization/58742
45789         * tree-ssa-forwprop.c (associate_plusminus): Return true
45790         if we changed sth, defer EH cleanup to ...
45791         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
45792         (simplify_mult): New function.
45793
45794 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
45795
45796         PR middle-end/59917
45797         PR tree-optimization/59920
45798         * tree.c (build_common_builtin_nodes): Remove
45799         __builtin_setjmp_dispatcher initialization.
45800         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
45801         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
45802         instead of gsi_after_labels + manually skipping debug stmts.
45803         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
45804         ignore bbs with IFN_ABNORMAL_DISPATCHER.
45805         * tree-inline.c (copy_edges_for_bb): Remove
45806         can_make_abnormal_goto argument, instead add abnormal_goto_dest
45807         argument.  Ignore computed_goto_p stmts.  Don't call
45808         make_abnormal_goto_edges.  If a call might need abnormal edges
45809         for non-local gotos, see if it already has an edge to
45810         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
45811         with true argument, don't do anything then, otherwise add
45812         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
45813         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
45814         caller.
45815         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
45816         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
45817         (lower_stmt): Don't set data->calls_builtin_setjmp.
45818         (lower_builtin_setjmp): Adjust comment.
45819         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
45820         * tree-cfg.c (found_computed_goto): Remove.
45821         (factor_computed_gotos): Remove.
45822         (make_goto_expr_edges): Return bool, true for computed gotos.
45823         Don't call make_abnormal_goto_edges.
45824         (build_gimple_cfg): Don't set found_computed_goto, don't call
45825         factor_computed_gotos.
45826         (computed_goto_p): No longer static.
45827         (make_blocks): Don't set found_computed_goto.
45828         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
45829         (make_edges): If make_goto_expr_edges returns true, push bb
45830         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
45831         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
45832         vector.  Record mapping between bbs and OpenMP regions if there
45833         are any, adjust make_gimple_omp_edges caller.  Call
45834         handle_abnormal_edges.
45835         (make_abnormal_goto_edges): Remove.
45836         * tree-cfg.h (make_abnormal_goto_edges): Remove.
45837         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
45838         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
45839         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
45840         * internal-fn.def (ABNORMAL_DISPATCHER): New.
45841         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
45842         filling *region also set *region_idx to (*region)->entry->index.
45843
45844         PR other/58712
45845         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
45846         For REGs set ORIGINAL_REGNO.
45847
45848 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
45849
45850         * doc/md.texi: Mention that a target shouldn't implement
45851         vec_widen_(s|u)mul_even/odd pair if it is less efficient
45852         than hi/lo pair.
45853
45854 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
45855
45856         PR tree-optimization/59594
45857         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
45858         a copy of the datarefs vector rather than the vector itself.
45859
45860 2014-01-28  Jason Merrill  <jason@redhat.com>
45861
45862         PR c++/53756
45863         * dwarf2out.c (auto_die): New static.
45864         (gen_type_die_with_usage): Handle C++1y 'auto'.
45865         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
45866         on definition.
45867
45868 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
45869
45870         PR target/59672
45871         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
45872         (SPEC_X32): Likewise.
45873         (SPEC_64): Likewise.
45874         * config/i386/i386.c (ix86_option_override_internal): Turn off
45875         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
45876         for TARGET_16BIT.
45877         (x86_file_start): Output .code16gcc for TARGET_16BIT.
45878         * config/i386/i386.h (TARGET_16BIT): New macro.
45879         (TARGET_16BIT_P): Likewise.
45880         * config/i386/i386.opt: Add m16.
45881         * doc/invoke.texi: Document -m16.
45882
45883 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
45884
45885         PR preprocessor/59935
45886         * input.c (location_get_source_line): Bail out on when line number
45887         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
45888
45889 2014-01-28  Richard Biener  <rguenther@suse.de>
45890
45891         PR tree-optimization/58742
45892         * tree-ssa-forwprop.c (associate_plusminus): Handle
45893         pointer subtraction of the form (T)(P + A) - (T)P.
45894
45895 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
45896
45897         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
45898         at const_int_cost.
45899
45900 2014-01-28  Richard Biener  <rguenther@suse.de>
45901
45902         Revert
45903         2014-01-28  Richard Biener  <rguenther@suse.de>
45904
45905         PR rtl-optimization/45364
45906         PR rtl-optimization/59890
45907         * var-tracking.c (local_get_addr_clear_given_value): Handle
45908         already cleared slot.
45909         (val_reset): Handle not allocated local_get_addr_cache.
45910         (vt_find_locations): Use post-order on the inverted CFG.
45911
45912 2014-01-28  Richard Biener  <rguenther@suse.de>
45913
45914         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
45915
45916 2014-01-28  Richard Biener  <rguenther@suse.de>
45917
45918         PR rtl-optimization/45364
45919         PR rtl-optimization/59890
45920         * var-tracking.c (local_get_addr_clear_given_value): Handle
45921         already cleared slot.
45922         (val_reset): Handle not allocated local_get_addr_cache.
45923         (vt_find_locations): Use post-order on the inverted CFG.
45924
45925 2014-01-28  Alan Modra  <amodra@gmail.com>
45926
45927         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
45928         * configure.ac <recursive call for build != host>: Define
45929         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
45930         and LD_FOR_BUILD too.
45931         * configure: Regenerate.
45932
45933 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
45934
45935         * config/i386/i386.c (get_builtin_code_for_version): Separate
45936         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
45937         Broadwell from Haswell.
45938
45939 2014-01-27  Steve Ellcey  <sellcey@mips.com>
45940
45941         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
45942         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
45943         * config/mips/mips.c (mips_option_override): Change setting
45944         of TARGET_DSP.
45945         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
45946         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
45947         Change from Mask to Var.
45948
45949 2014-01-27  Jeff Law  <law@redhat.com>
45950
45951         * ipa-inline.c (inline_small_functions): Fix typo.
45952
45953 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
45954
45955         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
45956         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
45957         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
45958         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
45959         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
45960         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
45961         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
45962         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
45963         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
45964         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
45965         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
45966         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
45967         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
45968         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
45969         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
45970         (_mm512_storeu_epi64): Ditto.
45971         (_mm512_cmpge_epi32_mask): Ditto.
45972         (_mm512_cmpge_epu32_mask): Ditto.
45973         (_mm512_cmpge_epi64_mask): Ditto.
45974         (_mm512_cmpge_epu64_mask): Ditto.
45975         (_mm512_cmple_epi32_mask): Ditto.
45976         (_mm512_cmple_epu32_mask): Ditto.
45977         (_mm512_cmple_epi64_mask): Ditto.
45978         (_mm512_cmple_epu64_mask): Ditto.
45979         (_mm512_cmplt_epi32_mask): Ditto.
45980         (_mm512_cmplt_epu32_mask): Ditto.
45981         (_mm512_cmplt_epi64_mask): Ditto.
45982         (_mm512_cmplt_epu64_mask): Ditto.
45983         (_mm512_cmpneq_epi32_mask): Ditto.
45984         (_mm512_cmpneq_epu32_mask): Ditto.
45985         (_mm512_cmpneq_epi64_mask): Ditto.
45986         (_mm512_cmpneq_epu64_mask): Ditto.
45987         (_mm512_expand_pd): Ditto.
45988         (_mm512_expand_ps): Ditto.
45989         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
45990         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
45991         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
45992         * config/i386/i386.c (ix86_builtins): Add
45993         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
45994         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
45995         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
45996         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
45997         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
45998         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
45999         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
46000         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
46001         IX86_BUILTIN_PMOVUSQW512_MEM.
46002         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
46003         __builtin_ia32_pmovsqd512mem_mask,
46004         __builtin_ia32_pmovqd512mem_mask,
46005         __builtin_ia32_pmovusqw512mem_mask,
46006         __builtin_ia32_pmovsqw512mem_mask,
46007         __builtin_ia32_pmovqw512mem_mask,
46008         __builtin_ia32_pmovusdw512mem_mask,
46009         __builtin_ia32_pmovsdw512mem_mask,
46010         __builtin_ia32_pmovdw512mem_mask,
46011         __builtin_ia32_pmovqb512mem_mask,
46012         __builtin_ia32_pmovusqb512mem_mask,
46013         __builtin_ia32_pmovsqb512mem_mask,
46014         __builtin_ia32_pmovusdb512mem_mask,
46015         __builtin_ia32_pmovsdb512mem_mask,
46016         __builtin_ia32_pmovdb512mem_mask.
46017         (bdesc_args): Add __builtin_ia32_expanddf512,
46018         __builtin_ia32_expandsf512.
46019         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
46020         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
46021         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
46022         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
46023         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
46024         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
46025         (avx512f_<code>v8div16qi2_mask_store): This.
46026         (avx512f_expand<mode>): New.
46027
46028 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
46029
46030         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
46031         New.
46032         (_mm512_mask_prefetch_i64gather_pd): Ditto.
46033         (_mm512_prefetch_i32scatter_pd): Ditto.
46034         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
46035         (_mm512_prefetch_i64scatter_pd): Ditto.
46036         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
46037         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
46038         (_mm512_mask_prefetch_i64gather_ps): Ditto.
46039         (_mm512_prefetch_i32scatter_ps): Ditto.
46040         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
46041         (_mm512_prefetch_i64scatter_ps): Ditto.
46042         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
46043         * config/i386/i386-builtin-types.def: Define
46044         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
46045         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
46046         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
46047         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
46048         IX86_BUILTIN_SCATTERPFQPD.
46049         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
46050         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
46051         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
46052         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
46053         __builtin_ia32_scatterpfqps.
46054         (ix86_expand_builtin): Expand new built-ins.
46055         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
46056         fix memory access data type.
46057         (*avx512pf_gatherpf<mode>_mask): Ditto.
46058         (*avx512pf_gatherpf<mode>): Ditto.
46059         (avx512pf_scatterpf<mode>): Ditto.
46060         (*avx512pf_scatterpf<mode>_mask): Ditto.
46061         (*avx512pf_scatterpf<mode>): Ditto.
46062         (GATHER_SCATTER_SF_MEM_MODE): New.
46063         (avx512pf_gatherpf<mode>df): Ditto.
46064         (*avx512pf_gatherpf<mode>df_mask): Ditto.
46065         (*avx512pf_scatterpf<mode>df): Ditto.
46066
46067 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
46068
46069         PR bootstrap/59934
46070         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
46071         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
46072         reached.
46073
46074 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
46075
46076         * common/config/arm/arm-common.c
46077         (arm_rewrite_mcpu): Handle multiple names.
46078         * config/arm/arm.h
46079         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
46080
46081 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
46082
46083         * gimple-builder.h (create_gimple_tmp): Delete.
46084
46085 2014-01-27  Christian Bruel  <christian.bruel@st.com>
46086
46087         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
46088         words comparisons.
46089
46090 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
46091
46092         * config/pa/pa.md (call): Generate indirect long calls to non-local
46093         functions when outputing 32-bit code.
46094         (call_value): Likewise except for special call to buggy powf function.
46095
46096         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
46097         portable runtime and PIC indirect calls.
46098         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
46099         and PIC call sequences.  Use ldo instead of blr to set return register
46100         in PIC call sequence.
46101
46102 2014-01-25  Walter Lee  <walt@tilera.com>
46103
46104         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
46105         avoid clobbering a live register.
46106
46107 2014-01-25  Walter Lee  <walt@tilera.com>
46108
46109         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
46110         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
46111         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
46112         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
46113
46114 2014-01-25  Walter Lee  <walt@tilera.com>
46115
46116         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
46117         arguments on even registers.
46118         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
46119         STACK_BOUNDARY.
46120         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
46121         (BIGGEST_ALIGNMENT): Ditto.
46122         (BIGGEST_FIELD_ALIGNMENT): Ditto.
46123
46124 2014-01-25  Walter Lee  <walt@tilera.com>
46125
46126         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
46127         insns before bundling.
46128         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
46129
46130 2014-01-25  Walter Lee  <walt@tilera.com>
46131
46132         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
46133         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
46134         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
46135
46136 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
46137
46138         * config/mips/constraints.md (kl): Delete.
46139         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
46140         define expands, using...
46141         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
46142         instructions for MIPS16.
46143         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
46144         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
46145
46146 2014-01-25  Walter Lee  <walt@tilera.com>
46147
46148         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
46149         (clzdi2): Ditto.
46150         (ffsdi2): Ditto.
46151
46152 2014-01-25  Walter Lee  <walt@tilera.com>
46153
46154         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
46155         (TARGET_EXPAND_TO_RTL_HOOK): Define.
46156
46157 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
46158
46159         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
46160         Handle XOR.
46161
46162 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
46163
46164         * print-rtl.c (in_call_function_usage): New var.
46165         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
46166         EXPR_LIST mode as mode and not as reg note name.
46167
46168         PR middle-end/59561
46169         * cfgloopmanip.c (copy_loop_info): If
46170         loop->warned_aggressive_loop_optimizations, make sure
46171         the flag is set in target loop too.
46172
46173 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
46174
46175         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
46176         flag_cilkplus.
46177         * builtins.def: Likewise.
46178         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
46179         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
46180         * ira.c (ira_setup_eliminable_regset): Likewise.
46181         * omp-low.c (gate_expand_omp): Likewise.
46182         (execute_lower_omp): Likewise.
46183         (diagnose_sb_0): Likewise.
46184         (gate_diagnose_omp_blocks): Likewise.
46185         (simd_clone_clauses_extract): Likewise.
46186         (gate): Likewise.
46187
46188 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
46189
46190         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
46191         correction for little endian...
46192         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
46193         here.
46194
46195 2014-01-24  Jeff Law  <law@redhat.com>
46196
46197         PR tree-optimization/59919
46198         * tree-vrp.c (find_assert_locations_1): Do not register asserts
46199         for non-returning calls.
46200
46201 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
46202
46203         * common/config/aarch64/aarch64-common.c
46204         (aarch64_rewrite_mcpu): Handle multiple names.
46205         * config/aarch64/aarch64.h
46206         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
46207
46208 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
46209
46210         * input.c (add_file_to_cache_tab): Handle the case where fopen
46211         returns NULL.
46212
46213 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
46214
46215         PR target/59929
46216         * config/i386/i386.md (pushsf splitter): Get stack adjustment
46217         from push operand if code of push isn't PRE_DEC.
46218
46219 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
46220
46221         PR target/59909
46222         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
46223         -mquad-memory-atomic.  Update -mquad-memory documentation to say
46224         it is only used for non-atomic loads/stores.
46225
46226         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
46227         -mquad-memory or -mquad-memory-atomic switches.
46228
46229         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
46230         -mquad-memory-atomic to ISA 2.07 support.
46231
46232         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
46233         to separate support of normal quad word memory operations (ldq, stq)
46234         from the atomic quad word memory operations.
46235
46236         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
46237         support to separate non-atomic quad word operations from atomic
46238         quad word operations.  Disable non-atomic quad word operations in
46239         little endian mode so that we don't have to swap words after the
46240         load and before the store.
46241         (quad_load_store_p): Add comment about atomic quad word support.
46242         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
46243         options printed with -mdebug=reg.
46244
46245         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
46246         -mquad-memory-atomic as the test for whether we have quad word
46247         atomic instructions.
46248         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
46249         or -mp8-vector are used, allow byte/half-word atomic operations.
46250
46251         * config/rs6000/sync.md (load_lockedti): Insure that the address
46252         is a proper indexed or indirect address for the lqarx instruction.
46253         On little endian systems, swap the hi/lo registers after the lqarx
46254         instruction.
46255         (load_lockedpti): Use indexed_or_indirect_operand predicate to
46256         insure the address is valid for the lqarx instruction.
46257         (store_conditionalti): Insure that the address is a proper indexed
46258         or indirect address for the stqcrx. instruction.  On little endian
46259         systems, swap the hi/lo registers before doing the stqcrx.
46260         instruction.
46261         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
46262         insure the address is valid for the stqcrx. instruction.
46263
46264         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
46265         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
46266         type of quad memory support is available.
46267
46268 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
46269
46270         PR regression/59915
46271         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
46272         there is a danger of looping.
46273
46274 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
46275
46276         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
46277         force flag_ira_loop_pressure if set via command line.
46278
46279 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
46280
46281         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
46282         (ashr_simd): New builtin handling DI mode.
46283         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
46284         (aarch64_sshr_simddi): New match pattern.
46285         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
46286         (vshrd_n_s64): Likewise.
46287         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
46288
46289 2014-01-23  Nick Clifton  <nickc@redhat.com>
46290
46291         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
46292         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
46293         favour of mcu specific scripts.
46294         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
46295         430x multilibs.
46296
46297 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
46298             Alex Velenko  <Alex.Velenko@arm.com>
46299
46300         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
46301         (vaddv_s16): Likewise.
46302         (vaddv_s32): Likewise.
46303         (vaddv_u8): Likewise.
46304         (vaddv_u16): Likewise.
46305         (vaddv_u32): Likewise.
46306         (vaddvq_s8): Likewise.
46307         (vaddvq_s16): Likewise.
46308         (vaddvq_s32): Likewise.
46309         (vaddvq_s64): Likewise.
46310         (vaddvq_u8): Likewise.
46311         (vaddvq_u16): Likewise.
46312         (vaddvq_u32): Likewise.
46313         (vaddvq_u64): Likewise.
46314         (vaddv_f32): Likewise.
46315         (vaddvq_f32): Likewise.
46316         (vaddvq_f64): Likewise.
46317         (vmaxv_f32): Likewise.
46318         (vmaxv_s8): Likewise.
46319         (vmaxv_s16): Likewise.
46320         (vmaxv_s32): Likewise.
46321         (vmaxv_u8): Likewise.
46322         (vmaxv_u16): Likewise.
46323         (vmaxv_u32): Likewise.
46324         (vmaxvq_f32): Likewise.
46325         (vmaxvq_f64): Likewise.
46326         (vmaxvq_s8): Likewise.
46327         (vmaxvq_s16): Likewise.
46328         (vmaxvq_s32): Likewise.
46329         (vmaxvq_u8): Likewise.
46330         (vmaxvq_u16): Likewise.
46331         (vmaxvq_u32): Likewise.
46332         (vmaxnmv_f32): Likewise.
46333         (vmaxnmvq_f32): Likewise.
46334         (vmaxnmvq_f64): Likewise.
46335         (vminv_f32): Likewise.
46336         (vminv_s8): Likewise.
46337         (vminv_s16): Likewise.
46338         (vminv_s32): Likewise.
46339         (vminv_u8): Likewise.
46340         (vminv_u16): Likewise.
46341         (vminv_u32): Likewise.
46342         (vminvq_f32): Likewise.
46343         (vminvq_f64): Likewise.
46344         (vminvq_s8): Likewise.
46345         (vminvq_s16): Likewise.
46346         (vminvq_s32): Likewise.
46347         (vminvq_u8): Likewise.
46348         (vminvq_u16): Likewise.
46349         (vminvq_u32): Likewise.
46350         (vminnmv_f32): Likewise.
46351         (vminnmvq_f32): Likewise.
46352         (vminnmvq_f64): Likewise.
46353
46354 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
46355
46356         * config/aarch64/aarch64-simd.md
46357         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
46358         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
46359         (*aarch64_mul3_elt<mode>): Likewise.
46360         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
46361         (*aarch64_mul3_elt_to_64v2df): Likewise.
46362         (*aarch64_mla_elt<mode>): Likewise.
46363         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
46364         (*aarch64_mls_elt<mode>): Likewise.
46365         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
46366         (*aarch64_fma4_elt<mode>): Likewise.
46367         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
46368         (*aarch64_fma4_elt_to_64v2df): Likewise.
46369         (*aarch64_fnma4_elt<mode>): Likewise.
46370         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
46371         (*aarch64_fnma4_elt_to_64v2df): Likewise.
46372         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
46373         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
46374         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
46375         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
46376         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
46377         (aarch64_sqdmull_lane<mode>_internal): Likewise.
46378         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
46379
46380 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
46381
46382         * config/aarch64/aarch64-simd.md
46383         (aarch64_be_checked_get_lane<mode>): New define_expand.
46384         * config/aarch64/aarch64-simd-builtins.def
46385         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
46386         New builtin definition.
46387         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
46388         Use new safe be builtin.
46389
46390 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
46391
46392         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
46393         New define_insn.
46394         (aarch64_be_st1<mode>): Likewise.
46395         (aarch_ld1<VALL:mode>): Define_expand modified.
46396         (aarch_st1<VALL:mode>): Likewise.
46397         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
46398         (UNSPEC_ST1): Likewise.
46399
46400 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
46401
46402         * config/microblaze/microblaze.md: Add trap insn and attribute
46403
46404 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
46405
46406         PR preprocessor/58580
46407         * input.h (location_get_source_line): Take an additional line_size
46408         parameter.
46409         (void diagnostics_file_cache_fini): Declare new function.
46410         * input.c (struct fcache): New type.
46411         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
46412         New static constants.
46413         (diagnostic_file_cache_init, total_lines_num)
46414         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
46415         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
46416         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
46417         (get_next_line, read_next_line, goto_next_line, read_line_num):
46418         New static function definitions.
46419         (diagnostic_file_cache_fini): New function.
46420         (location_get_source_line): Take an additional output line_len
46421         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
46422         read_line_num.
46423         * diagnostic.c (diagnostic_finish): Call
46424         diagnostic_file_cache_fini.
46425         (adjust_line): Take an additional input parameter for the length
46426         of the line, rather than calculating it with strlen.
46427         (diagnostic_show_locus): Adjust the use of
46428         location_get_source_line and adjust_line with respect to their new
46429         signature.  While displaying a line now, do not stop at the first
46430         null byte.  Rather, display the zero byte as a space and keep
46431         going until we reach the size of the line.
46432         * Makefile.in: Add vec.o to OBJS-libcommon
46433
46434 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
46435             Ilya Tocar  <ilya.tocar@intel.com>
46436
46437         * config/i386/avx512fintrin.h (_mm512_kmov): New.
46438         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
46439         (__builtin_ia32_kmov16): Ditto.
46440         * config/i386/i386.md (UNSPEC_KMOV): New.
46441         (kmovw): Ditto.
46442
46443 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
46444
46445         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
46446         (_mm512_storeu_si512): Ditto.
46447
46448 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
46449
46450         PR target/52125
46451         * rtl.h (get_referenced_operands): Declare.
46452         * recog.c (get_referenced_operands): New function.
46453         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
46454         operands have been referenced when recording LO_SUM references.
46455
46456 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
46457
46458         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
46459
46460 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
46461
46462         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
46463         Enable for generic and recent AMD targets.
46464
46465 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
46466
46467         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
46468         ARG_SIZE note when adjustment was eliminated.
46469
46470 2014-01-22  Jeff Law  <law@redhat.com>
46471
46472         PR tree-optimization/59597
46473         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
46474         in file.  Accept new argument REGISTERING and use it to modify
46475         dump output appropriately.
46476         (register_jump_thread): Corresponding changes.
46477         (mark_threaded_blocks): Reinstate code to cancel unprofitable
46478         thread paths involving joiner blocks.  Add code to dump cancelled
46479         jump threading paths.
46480
46481 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
46482
46483         PR rtl-optimization/59477
46484         * lra-constraints.c (inherit_in_ebb): Process call for living hard
46485         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
46486
46487 2014-01-22  Tom Tromey  <tromey@redhat.com>
46488
46489         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
46490         PARAMS.
46491         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
46492
46493 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
46494
46495         PR rtl-optimization/59896
46496         * lra-constraints.c (process_alt_operands): Check unused note for
46497         matched operands of insn with no output reloads.
46498
46499 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
46500
46501         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
46502         (mips_move_from_gpr_cost): Likewise.
46503
46504 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
46505
46506         PR rtl-optimization/59858
46507         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
46508         ira_class_hard_regs_num.
46509         (process_alt_operands): Increase reject for dying matched operand.
46510
46511 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
46512
46513         PR target/59003
46514         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
46515         smaller than size, perform several stores or loads and stores
46516         at dst + count - size to store or copy all of size bytes, rather
46517         than just last modesize bytes.
46518
46519 2014-01-20  DJ Delorie  <dj@redhat.com>
46520
46521         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
46522         that CLOBBERs are REGs before propogating their values.
46523
46524 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
46525
46526         PR middle-end/59789
46527         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
46528         (cgraph_inline_failed_type): New function.
46529         * cgraph.h (DEFCIFCODE): Add type.
46530         (cgraph_inline_failed_type_t): New enum.
46531         (cgraph_inline_failed_type): New prototype.
46532         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
46533         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
46534         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
46535         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
46536         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
46537         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
46538         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
46539         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
46540         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
46541         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
46542         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
46543         OPTIMIZATION_MISMATCH.
46544         * tree-inline.c (expand_call_inline): Emit errors during
46545         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
46546
46547 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
46548
46549         PR target/59685
46550         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
46551         mode attribute in insn output.
46552
46553 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
46554
46555         * output.h (output_constant): Delete.
46556         * varasm.c (output_constant): Make private.
46557
46558 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
46559
46560         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
46561
46562 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
46563
46564         PR middle-end/59860
46565         * tree.h (fold_builtin_strcat): New prototype.
46566         * builtins.c (fold_builtin_strcat): No longer static.  Add len
46567         argument, if non-NULL, don't call c_strlen.  Optimize
46568         directly into __builtin_memcpy instead of __builtin_strcpy.
46569         (fold_builtin_2): Adjust fold_builtin_strcat caller.
46570         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
46571
46572 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
46573
46574         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
46575         for SImode_address_operand operands, having only a REG argument.
46576
46577 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
46578
46579         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
46580         loader name using mbig-endian.
46581         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
46582
46583 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
46584
46585         * doc/invoke.texi (-march): Clarify documentation for AArch64.
46586         (-mtune): Likewise.
46587         (-mcpu): Likewise.
46588
46589 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
46590
46591         * config/aarch64/aarch64-protos.h
46592         (aarch64_cannot_change_mode_class_ptr): Declare.
46593         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
46594         aarch64_cannot_change_mode_class_ptr): New.
46595         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
46596         backend hook aarch64_cannot_change_mode_class.
46597
46598 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
46599
46600         * common/config/aarch64/aarch64-common.c
46601         (aarch64_handle_option): Don't handle any option order logic here.
46602         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
46603         selected_cpu, warn on architecture version mismatch.
46604         (aarch64_override_options): Fix parsing order for option strings.
46605
46606 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
46607             Iain Sandoe  <iain@codesourcery.com>
46608
46609         PR bootstrap/59496
46610         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
46611         warning.  Amend comment to reflect current functionality.
46612
46613 2014-01-20  Richard Biener  <rguenther@suse.de>
46614
46615         PR middle-end/59860
46616         * builtins.c (fold_builtin_strcat): Remove case better handled
46617         by tree-ssa-strlen.c.
46618
46619 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
46620
46621         * config/aarch64/aarch64.opt
46622         (mcpu, march, mtune): Make case-insensitive.
46623
46624 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
46625
46626         PR target/59880
46627         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
46628         if operands[1] is a REG or ZERO_EXTEND of a REG.
46629
46630 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
46631
46632         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
46633
46634 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
46635
46636         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
46637         long non-pic millicode calls.
46638
46639 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
46640
46641         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
46642
46643 2014-01-19  Kito Cheng  <kito@0xlab.org>
46644
46645         * builtins.c (expand_movstr): Check movstr expand done or fail.
46646
46647 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
46648             H.J. Lu  <hongjiu.lu@intel.com>
46649
46650         PR target/59379
46651         * config/i386/i386.md (*lea<mode>): Zero-extend return register
46652         to DImode for zero-extended addresses.
46653
46654 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
46655
46656         PR rtl-optimization/57763
46657         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
46658         on the new indirect jump_insn and increment LABEL_NUSES (label).
46659
46660 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
46661
46662         PR bootstrap/59580
46663         PR bootstrap/59583
46664         * config.gcc (x86_archs): New variable.
46665         (x86_64_archs): Likewise.
46666         (x86_cpus): Likewise.
46667         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
46668         --with-arch/--with-cpu= options.
46669         Support --with-arch=/--with-cpu={nehalem,westmere,
46670         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
46671
46672 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
46673
46674         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
46675         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
46676
46677 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
46678
46679         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
46680
46681 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
46682
46683         PR target/58944
46684         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
46685         clear cpp_get_options (parse_in)->warn_unused_macros for
46686         ix86_target_macros_internal with cpp_define.
46687
46688 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
46689
46690         * jump.c (delete_related_insns): Keep (use (insn))s.
46691         * reorg.c (redundant_insn): Check for barriers too.
46692
46693 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
46694
46695         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
46696
46697 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
46698
46699         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
46700         call to $$dyncall when TARGET_LONG_CALLS is true.
46701
46702 2014-01-17  Jeff Law  <law@redhat.com>
46703
46704         * ree.c (combine_set_extension): Temporarily disable test for
46705         changing number of hard registers.
46706
46707 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
46708
46709         PR middle-end/58125
46710         * ipa-inline-analysis.c (inline_free_summary):
46711         Do not free summary of aliases.
46712
46713 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
46714
46715         PR middle-end/59706
46716         * gimplify.c (gimplify_expr): Use create_tmp_var
46717         instead of create_tmp_var_raw.  If cond doesn't have
46718         integral type, don't add the IFN_ANNOTATE builtin at all.
46719
46720 2014-01-17  Martin Jambor  <mjambor@suse.cz>
46721
46722         PR ipa/59736
46723         * ipa-cp.c (prev_edge_clone): New variable.
46724         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
46725         Also resize prev_edge_clone vector.
46726         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
46727         (ipcp_edge_removal_hook): New function.
46728         (ipcp_driver): Register ipcp_edge_removal_hook.
46729
46730 2014-01-17  Andrew Pinski  <apinski@cavium.com>
46731             Steve Ellcey  <sellcey@mips.com>
46732
46733         PR target/59462
46734         * config/mips/mips.c (mips_print_operand): Check operand mode instead
46735         of operator mode.
46736
46737 2014-01-17  Jeff Law  <law@redhat.com>
46738
46739         PR middle-end/57904
46740         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
46741         so that pass_ccp runs first.
46742
46743 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
46744
46745         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
46746         (ix86_adjust_cost): Use !TARGET_XXX.
46747         (do_reorder_for_imul): Likewise.
46748         (swap_top_of_ready_list): Likewise.
46749         (ix86_sched_reorder): Likewise.
46750
46751 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
46752
46753         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
46754         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
46755         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
46756         (intel_memset): New.  Duplicate slm_memset.
46757         (intel_cost): New.  Duplicate slm_cost.
46758         (m_INTEL): New macro.
46759         (processor_target_table): Add "intel".
46760         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
46761         with PROCESSOR_INTEL for "intel".
46762         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
46763         PROCESSOR_SILVERMONT.
46764         (ix86_issue_rate): Likewise.
46765         (ix86_adjust_cost): Likewise.
46766         (ia32_multipass_dfa_lookahead): Likewise.
46767         (swap_top_of_ready_list): Likewise.
46768         (ix86_sched_reorder): Likewise.
46769         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
46770         instead of TARGET_OPT_AGU.
46771         * config/i386/i386.h (TARGET_INTEL): New.
46772         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
46773         (processor_type): Add PROCESSOR_INTEL.
46774         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
46775         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
46776
46777 2014-01-17  Marek Polacek  <polacek@redhat.com>
46778
46779         PR c/58346
46780         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
46781         size is zero.
46782
46783 2014-01-17  Richard Biener  <rguenther@suse.de>
46784
46785         PR tree-optimization/46590
46786         * opts.c (default_options_table): Add entries for
46787         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
46788         all enabled at -O1 but not for -Og.
46789         * common.opt (fbranch-count-reg): Remove Init(1).
46790         (fmove-loop-invariants): Likewise.
46791         (ftree-pta): Likewise.
46792
46793 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
46794
46795         * config/i386/i386.c (ix86_data_alignment): For compatibility with
46796         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
46797         decls to at least the GCC 4.8 used alignments.
46798
46799         PR fortran/59440
46800         * tree-nested.c (convert_nonlocal_reference_stmt,
46801         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
46802         of GIMPLE_BIND stmts, adjust associated decls.
46803
46804 2014-01-17  Richard Biener  <rguenther@suse.de>
46805
46806         PR tree-optimization/46590
46807         * vec.h (vec<>::bseach): New member function implementing
46808         binary search according to C89 bsearch.
46809         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
46810         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
46811         bitmap pointer again.  Make accesses_in_loop a flat array.
46812         (mem_ref_obstack): New global.
46813         (outermost_indep_loop): Adjust for mem_ref->stored changes.
46814         (mark_ref_stored): Likewise.
46815         (ref_indep_loop_p_2): Likewise.
46816         (set_ref_stored_in_loop): New helper function.
46817         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
46818         (memref_free): Adjust.
46819         (record_mem_ref_loc): Simplify.
46820         (gather_mem_refs_stmt): Adjust.
46821         (sort_locs_in_loop_postorder_cmp): New function.
46822         (analyze_memory_references): Sort accesses_in_loop after
46823         loop postorder number.
46824         (find_ref_loc_in_loop_cmp): New function.
46825         (for_all_locs_in_loop): Find relevant cluster of locs in
46826         accesses_in_loop and iterate without recursion.
46827         (execute_sm): Avoid uninit warning.
46828         (struct ref_always_accessed): Simplify.
46829         (ref_always_accessed::operator ()): Likewise.
46830         (ref_always_accessed_p): Likewise.
46831         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
46832         loop postorder numbers here.
46833         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
46834         numbers.
46835
46836 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
46837
46838         PR c++/57945
46839         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
46840         on decls for which assemble_alias has been called.
46841
46842 2014-01-17  Nick Clifton  <nickc@redhat.com>
46843
46844         * config/msp430/msp430.opt: (mcpu): New option.
46845         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
46846         (msp430_option_override): Parse target_cpu.  If the MCU name
46847         matches a generic string, clear target_mcu.
46848         (msp430_attr): Allow numeric interrupt values up to 63.
46849         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
46850         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
46851         option.
46852         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
46853         Add mcpu matches.
46854         * config/msp430/msp430.md (popm): Use %J rather than %I.
46855         (addsi3): Use msp430_nonimmediate_operand for operand 2.
46856         (addhi_cy_i): Use immediate_operand for operand 2.
46857         * doc/invoke.texi: Document -mcpu option.
46858
46859 2014-01-17  Richard Biener  <rguenther@suse.de>
46860
46861         PR rtl-optimization/38518
46862         * df.h (df_analyze_loop): Declare.
46863         * df-core.c: Include cfgloop.h.
46864         (df_analyze_1): Split out main part of df_analyze.
46865         (df_analyze): Adjust.
46866         (loop_inverted_post_order_compute): New function.
46867         (loop_post_order_compute): Likewise.
46868         (df_analyze_loop): New function avoiding whole-function
46869         postorder computes.
46870         * loop-invariant.c (find_defs): Use df_analyze_loop.
46871         (find_invariants): Adjust.
46872         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
46873
46874 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
46875
46876         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
46877         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
46878
46879 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
46880
46881         * ipa-ref.c (ipa_remove_stmt_references): Fix references
46882         traversal when removing references.
46883
46884 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
46885
46886         PR ipa/59775
46887         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
46888
46889 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
46890
46891         PR middle-end/56791
46892         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
46893         pushing a reload for an autoinc when we had previously reloaded an
46894         inner part of the address.
46895
46896 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
46897
46898         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
46899         field.
46900         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
46901         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
46902         when not giving up or versioning for alias only because of
46903         loop->safelen.
46904         (vect_analyze_data_ref_dependences): Set to true.
46905         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
46906         is a GIMPLE_PHI.
46907         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
46908         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
46909         to the condition.
46910
46911         PR middle-end/58344
46912         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
46913
46914         PR target/59839
46915         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
46916         operand 0 predicate for gathers, use a new pseudo as subtarget.
46917
46918 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
46919
46920         PR middle-end/59609
46921         * lra-constraints.c (process_alt_operands): Add printing debug info.
46922         Check absence of input/output reloads for matched operands too.
46923
46924 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
46925
46926         PR rtl-optimization/59835
46927         * ira.c (ira_init_register_move_cost): Increase cost for
46928         impossible modes.
46929
46930 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
46931
46932         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
46933
46934 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
46935
46936         PR target/59780
46937         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
46938         non-register objects.  Use gen_(high/low)part more consistently.
46939         Fix assertions.
46940
46941 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
46942
46943         PR target/59844
46944         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
46945         endian support, remove tests for WORDS_BIG_ENDIAN.
46946         (p8_mfvsrd_3_<mode>): Likewise.
46947         (reload_gpr_from_vsx<mode>): Likewise.
46948         (reload_gpr_from_vsxsf): Likewise.
46949         (p8_mfvsrd_4_disf): Likewise.
46950
46951 2014-01-16  Richard Biener  <rguenther@suse.de>
46952
46953         PR rtl-optimization/46590
46954         * lcm.c (compute_antinout_edge): Use postorder iteration.
46955         (compute_laterin): Use inverted postorder iteration.
46956
46957 2014-01-16  Nick Clifton  <nickc@redhat.com>
46958
46959         PR middle-end/28865
46960         * varasm.c (output_constant): Return the number of bytes actually
46961         emitted.
46962         (output_constructor_array_range): Update the field size with the
46963         number of bytes emitted by output_constant.
46964         (output_constructor_regular_field): Likewise.  Also do not
46965         complain if the total number of bytes emitted is now greater
46966         than the expected fieldpos.
46967         * output.h (output_constant): Update prototype and descriptive comment.
46968
46969 2014-01-16  Marek Polacek  <polacek@redhat.com>
46970
46971         PR middle-end/59827
46972         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
46973         it is error_mark_node.
46974
46975 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
46976
46977         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
46978         VALID_AVX256_REG_OR_OI_MODE.
46979
46980 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
46981
46982         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
46983         current procedure should be profiled.
46984
46985 2014-01-15  Andrew Pinski  <apinski@cavium.com>
46986
46987         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
46988         of moving from/to the STACK_REG register class.
46989
46990 2014-01-15  Richard Henderson  <rth@redhat.com>
46991
46992         PR debug/54694
46993         * reginfo.c (global_regs_decl): Globalize.
46994         * rtl.h (global_regs_decl): Declare.
46995         * ira.c (do_reload): Diagnose frame_pointer_needed and it
46996         reserved via global_regs.
46997
46998 2014-01-15  Teresa Johnson  <tejohnson@google.com>
46999
47000         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
47001
47002 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
47003
47004         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
47005         and vmulosh rather than call gen_vec_widen_smult_*.
47006         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
47007         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
47008         (vec_widen_smult_even_v16qi): Likewise.
47009         (vec_widen_umult_even_v8hi): Likewise.
47010         (vec_widen_smult_even_v8hi): Likewise.
47011         (vec_widen_umult_odd_v16qi): Likewise.
47012         (vec_widen_smult_odd_v16qi): Likewise.
47013         (vec_widen_umult_odd_v8hi): Likewise.
47014         (vec_widen_smult_odd_v8hi): Likewise.
47015         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
47016         vmuloub rather than call gen_vec_widen_umult_*.
47017         (vec_widen_umult_lo_v16qi): Likewise.
47018         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
47019         vmulosb rather than call gen_vec_widen_smult_*.
47020         (vec_widen_smult_lo_v16qi): Likewise.
47021         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
47022         rather than call gen_vec_widen_umult_*.
47023         (vec_widen_umult_lo_v8hi): Likewise.
47024         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
47025         rather than call gen_vec_widen_smult_*.
47026         (vec_widen_smult_lo_v8hi): Likewise.
47027
47028 2014-01-15  Jeff Law  <law@redhat.com>
47029
47030         PR tree-optimization/59747
47031         * ree.c (find_and_remove_re): Properly handle case where a second
47032         eliminated extension requires widening a copy created for elimination
47033         of a prior extension.
47034         (combine_set_extension): Ensure that the number of hard regs needed
47035         for a destination register does not change when we widen it.
47036
47037 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
47038
47039         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
47040         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
47041         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
47042         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
47043         (avr-*-rtems*): Likewise.
47044         (bfin*-rtems*): Likewise.
47045         (moxie-*-rtems*): Likewise.
47046         (h8300-*-rtems*): Likewise.
47047         (i[34567]86-*-rtems*): Likewise.
47048         (lm32-*-rtems*): Likewise.
47049         (m32r-*-rtems*): Likewise.
47050         (m68k-*-rtems*): Likewise.
47051         (microblaze*-*-rtems*): Likewise.
47052         (mips*-*-rtems*): Likewise.
47053         (powerpc-*-rtems*): Likewise.
47054         (sh-*-rtems*): Likewise.
47055         (sparc-*-rtems*): Likewise.
47056         (sparc64-*-rtems*): Likewise.
47057         (v850-*-rtems*): Likewise.
47058         (m32c-*-rtems*): Likewise.
47059
47060 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
47061
47062         PR rtl-optimization/59511
47063         * ira.c (ira_init_register_move_cost): Use memory costs for some
47064         cases of register move cost calculations.
47065         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
47066         instead of BB frequency.
47067         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
47068         * lra-assigns.c (find_hard_regno_for): Ditto.
47069
47070 2014-01-15  Richard Biener  <rguenther@suse.de>
47071
47072         PR tree-optimization/59822
47073         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
47074         (vectorizable_load): Use it to hoist defs of uses of invariant
47075         loads out of the loop.
47076
47077 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
47078             Kugan Vivekanandarajah  <kuganv@linaro.org>
47079
47080         PR target/59695
47081         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
47082         truncation.
47083
47084 2014-01-15  Richard Biener  <rguenther@suse.de>
47085
47086         PR rtl-optimization/59802
47087         * lcm.c (compute_available): Use inverted postorder to seed
47088         the initial worklist.
47089
47090 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47091
47092         PR target/59803
47093         * config/s390/s390.c (s390_preferred_reload_class): Don't return
47094         ADDR_REGS for invalid symrefs in non-PIC code.
47095
47096 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
47097
47098         PR other/58712
47099         * builtins.c (determine_block_size): Initialize *probable_max_size
47100         even if len_rtx is CONST_INT.
47101
47102 2014-01-14  Andrew Pinski  <apinski@cavium.com>
47103
47104         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
47105         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
47106         (cortexa53_tunings): Likewise.
47107         (aarch64_sched_issue_rate): New function.
47108         (TARGET_SCHED_ISSUE_RATE): Define.
47109
47110 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
47111
47112         * ira-costs.c (find_costs_and_classes): Add missed
47113         ira_init_register_move_cost_if_necessary.
47114
47115 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
47116
47117         PR target/59787
47118         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
47119
47120 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
47121
47122         PR target/59794
47123         * config/i386/i386.c (type_natural_mode): Add a bool parameter
47124         to indicate if type is used for function return value.  Warn ABI
47125         change if the vector mode isn't available for function return value.
47126         (ix86_function_arg_advance): Pass false to type_natural_mode.
47127         (ix86_function_arg): Likewise.
47128         (ix86_gimplify_va_arg): Likewise.
47129         (function_arg_32): Don't warn ABI change.
47130         (ix86_function_value): Pass true to type_natural_mode.
47131         (ix86_return_in_memory): Likewise.
47132         (ix86_struct_value_rtx): Removed.
47133         (TARGET_STRUCT_VALUE_RTX): Likewise.
47134
47135 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
47136
47137         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
47138         converting a conditional jump into a conditional return.
47139
47140 2014-01-14  Richard Biener  <rguenther@suse.de>
47141
47142         PR tree-optimization/58921
47143         PR tree-optimization/59006
47144         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
47145         hoisting invariant stmts.
47146         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
47147         invariant loads on the preheader edge if possible.
47148
47149 2014-01-14  Joey Ye  <joey.ye@arm.com>
47150
47151         * doc/plugin.texi (Building GCC plugins): Update to C++.
47152
47153 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
47154
47155         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
47156         (_mm_rcp28_round_ss): Ditto.
47157         (_mm_rsqrt28_round_sd): Ditto.
47158         (_mm_rsqrt28_round_ss): Ditto.
47159         (_mm_rcp28_sd): Ditto.
47160         (_mm_rcp28_ss): Ditto.
47161         (_mm_rsqrt28_sd): Ditto.
47162         (_mm_rsqrt28_ss): Ditto.
47163         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
47164         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
47165         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
47166         (IX86_BUILTIN_RCP28SD): Ditto.
47167         (IX86_BUILTIN_RCP28SS): Ditto.
47168         (IX86_BUILTIN_RSQRT28SD): Ditto.
47169         (IX86_BUILTIN_RSQRT28SS): Ditto.
47170         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
47171         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
47172         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
47173         (ix86_expand_special_args_builtin): Expand new FTYPE.
47174         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
47175         (srcp14<mode>): Make insn unary.
47176         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
47177         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
47178         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
47179         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
47180         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
47181         Fix rounding: make it SAE only.
47182         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
47183         Ditto.
47184         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
47185         Ditto.
47186         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
47187         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
47188         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
47189         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
47190         (round_saeonly_mask_scalar_operand4): Ditto.
47191         (round_saeonly_mask_scalar_op3): Ditto.
47192         (round_saeonly_mask_scalar_op4): Ditto.
47193
47194 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
47195
47196         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
47197         Implement -maltivec=be for vec_insert and vec_extract.
47198
47199 2014-01-10  DJ Delorie  <dj@redhat.com>
47200
47201         * config/msp430/msp430.md (call_internal): Don't allow memory
47202         references with SP as the base register.
47203         (call_value_internal): Likewise.
47204         * config/msp430/constraints.md (Yc): New.  For memory references
47205         that don't use SP as a base register.
47206
47207         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
47208         "an integer without a # prefix"
47209         * config/msp430/msp430.md (epilogue_helper): Use it.
47210
47211 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
47212
47213         PR target/59617
47214         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
47215         AVX512F gather builtins.
47216         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
47217         on gather decls with INTEGER_TYPE masktype.
47218         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
47219         directly into the builtin rather than hoisting it before loop.
47220
47221         PR tree-optimization/59387
47222         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
47223         (scev_const_prop): If folded_casts and type has undefined overflow,
47224         use force_gimple_operand instead of force_gimple_operand_gsi and
47225         for each added stmt if it is assign with
47226         arith_code_with_undefined_signed_overflow, call
47227         rewrite_to_defined_overflow.
47228         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
47229         gimple-fold.h instead.
47230         (arith_code_with_undefined_signed_overflow,
47231         rewrite_to_defined_overflow): Moved to ...
47232         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
47233         rewrite_to_defined_overflow): ... here.  No longer static.
47234         Include gimplify-me.h.
47235         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
47236         rewrite_to_defined_overflow): New prototypes.
47237
47238 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
47239
47240         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
47241
47242 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
47243
47244         * builtins.c (get_object_alignment_2): Minor tweak.
47245         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
47246
47247 2014-01-13  Christian Bruel  <christian.bruel@st.com>
47248
47249         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
47250         optimized non constant lengths.
47251
47252 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
47253
47254         PR libgomp/59194
47255         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
47256         load as __atomic_load_N if possible.
47257
47258 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
47259
47260         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
47261         target parameter.
47262         (rs6000_expand_builtin): Adjust call.
47263
47264 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
47265
47266         PR target/58115
47267         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
47268         * config/rs6000/rs6000.c: Include target-globals.h.
47269         (rs6000_set_current_function): Instead of doing target_reinit
47270         unconditionally, use save_target_globals_default_opts and
47271         restore_target_globals.
47272
47273         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
47274         FPSCR.
47275         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
47276         (rs6000_expand_builtin): Handle mffs and mtfsf.
47277         (rs6000_init_builtins): Define mffs and mtfsf.
47278         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
47279         (rs6000_mffs): New pattern.
47280         (rs6000_mtfsf): New pattern.
47281
47282 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
47283
47284         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
47285         Start narrowing with START.  Apply candidate-use pair
47286         and check overall cost in narrowing.
47287         (iv_ca_prune): Pass new argument.
47288
47289 2014-01-10  Jeff Law  <law@redhat.com>
47290
47291         PR middle-end/59743
47292         * ree.c (combine_reaching_defs): Ensure the defining statement
47293         occurs before the extension when optimizing extensions with
47294         different source and destination hard registers.
47295
47296 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
47297
47298         PR ipa/58585
47299         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
47300         vtables into the type inheritance graph.
47301
47302 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
47303
47304         PR rtl-optimization/59754
47305         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
47306         modes in the REGNO != REGNO case.
47307
47308 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
47309
47310         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
47311
47312 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
47313
47314         PR tree-optimization/59745
47315         * tree-predcom.c (tree_predictive_commoning_loop): Call
47316         free_affine_expand_cache if giving up because components is NULL.
47317
47318         * target-globals.c (save_target_globals): Allocate < 4KB structs using
47319         GC in payload of target_globals struct instead of allocating them on
47320         the heap and the larger structs separately using GC.
47321         * target-globals.h (struct target_globals): Make regs, hard_regs,
47322         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
47323         of GTY((skip)) and change type to void *.
47324         (reset_target_globals): Cast loads from those fields to corresponding
47325         types.
47326
47327 2014-01-10  Steve Ellcey  <sellcey@mips.com>
47328
47329         PR plugins/59335
47330         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
47331         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
47332         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
47333
47334 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
47335
47336         PR target/59744
47337         * aarch64-modes.def (CC_Zmode): New flags mode.
47338         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
47339         represents an equality.
47340         (aarch64_get_condition_code): Handle CC_Zmode.
47341         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
47342
47343 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47344
47345         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
47346         extraction in good case.
47347
47348 2014-01-10  Richard Biener  <rguenther@suse.de>
47349
47350         PR tree-optimization/59374
47351         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
47352         checking after SLP discovery.  Mark stmts not participating
47353         in any SLP instance properly.
47354
47355 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
47356
47357         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
47358         when handling a SET rtx.
47359
47360 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
47361
47362         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
47363         (cortex-a57): Likewise.
47364         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
47365
47366 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
47367
47368         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
47369         non-iwmmxt builtins.
47370
47371 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
47372
47373         PR ipa/58252
47374         PR ipa/59226
47375         * ipa-devirt.c record_target_from_binfo): Take as argument
47376         stack of binfos and lookup matching one for virtual inheritance.
47377         (possible_polymorphic_call_targets_1): Update.
47378
47379 2014-01-10  Huacai Chen  <chenhc@lemote.com>
47380
47381         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
47382         kernel strings for Loongson-2E/2F/3A.
47383
47384 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
47385
47386         PR middle-end/59670
47387         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
47388         is_gimple_call before calling gimple_call_internal_p.
47389
47390 2014-01-09  Steve Ellcey  <sellcey@mips.com>
47391
47392         * Makefile.in (TREE_FLOW_H): Remove.
47393         (TREE_SSA_H): Add file names from tree-flow.h.
47394         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
47395         * tree.h: Remove tree-flow.h reference.
47396         * hash-table.h: Remove tree-flow.h reference.
47397         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
47398         reference with tree-ssa-loop.h.
47399
47400 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
47401
47402         * doc/invoke.texi: Add -maltivec={be,le} options, and document
47403         default element-order behavior for -maltivec.
47404         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
47405         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
47406         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
47407         when targeting big endian, at least for now.
47408         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
47409
47410 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
47411
47412         PR middle-end/47735
47413         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
47414         var satisfies use_register_for_decl, just take into account type
47415         alignment, rather than decl alignment.
47416
47417         PR tree-optimization/59622
47418         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
47419         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
47420         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
47421         Don't devirtualize for inplace at all.  For targets.length () == 1,
47422         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
47423
47424 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
47425
47426         * config/i386/i386.md (cpu): Remove the unused btver1.
47427
47428 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
47429
47430         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
47431
47432 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
47433
47434         PR target/58115
47435         * tree-core.h (struct target_globals): New forward declaration.
47436         (struct tree_target_option): Add globals field.
47437         * tree.h (TREE_TARGET_GLOBALS): Define.
47438         (prepare_target_option_nodes_for_pch): New prototype.
47439         * target-globals.h (struct target_globals): Define even if
47440         !SWITCHABLE_TARGET.
47441         * tree.c (prepare_target_option_node_for_pch,
47442         prepare_target_option_nodes_for_pch): New functions.
47443         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
47444         * config/i386/i386.c: Include target-globals.h.
47445         (ix86_set_current_function): Instead of doing target_reinit
47446         unconditionally, use save_target_globals_default_opts and
47447         restore_target_globals.
47448
47449 2014-01-09  Richard Biener  <rguenther@suse.de>
47450
47451         PR tree-optimization/59715
47452         * tree-cfg.h (split_critical_edges): Declare.
47453         * tree-cfg.c (split_critical_edges): Export.
47454         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
47455
47456 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
47457
47458         * cfgexpand.c (expand_stack_vars): Optionally disable
47459         asan stack protection.
47460         (expand_used_vars): Likewise.
47461         (partition_stack_vars): Likewise.
47462         * asan.c (asan_emit_stack_protection): Optionally disable
47463         after return stack usage.
47464         (instrument_derefs): Optionally disable memory access instrumentation.
47465         (instrument_builtin_call): Likewise.
47466         (instrument_strlen_call): Likewise.
47467         (asan_protect_global): Optionally disable global variables protection.
47468         * doc/invoke.texi: Added doc for new options.
47469         * params.def: Added new options.
47470         * params.h: Likewise.
47471
47472 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
47473
47474         PR rtl-optimization/59724
47475         * ifcvt.c (cond_exec_process_if_block): Don't call
47476         flow_find_head_matching_sequence with 0 longest_match.
47477         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
47478         non-active insns if !stop_after.
47479         (try_head_merge_bb): Revert 2014-01-07 changes.
47480
47481 2014-01-08  Jeff Law  <law@redhat.com>
47482
47483         * ree.c (get_sub_rtx): New function, extracted from...
47484         (merge_def_and_ext): Here.
47485         (combine_reaching_defs): Use get_sub_rtx.
47486
47487 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
47488
47489         * cgraph.h (varpool_variable_node): Do not choke on null node.
47490
47491 2014-01-08  Catherine Moore  <clm@codesourcery.com>
47492
47493         * config/mips/mips.md (simple_return): Attempt to use JRC
47494         for microMIPS.
47495         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
47496
47497 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
47498
47499         PR rtl-optimization/59137
47500         * reorg.c (steal_delay_list_from_target): Call update_block for
47501         elided insns.
47502         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
47503
47504 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
47505
47506         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
47507         two duplicate entries.
47508
47509 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
47510
47511         Revert:
47512         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
47513
47514         * config/mips/mips.c (mips_truncated_op_cost): New function.
47515         (mips_rtx_costs): Adjust test for BADDU.
47516         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
47517
47518         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
47519
47520         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
47521         (*baddu_si): ...this new pattern.
47522
47523 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
47524
47525         PR ipa/59722
47526         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
47527
47528 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
47529
47530         PR middle-end/57748
47531         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
47532         inner_reference_p.
47533         (expand_expr, expand_normal): Adjust.
47534         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
47535         inner_reference_p. Use inner_reference_p to expand inner references.
47536         (store_expr): Adjust.
47537         * cfgexpand.c (expand_call_stmt): Adjust.
47538
47539 2014-01-08  Rong Xu  <xur@google.com>
47540
47541         * gcov-io.c (gcov_var): Move from gcov-io.h.
47542         (gcov_position): Ditto.
47543         (gcov_is_error): Ditto.
47544         (gcov_rewrite): Ditto.
47545         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
47546         only part to libgcc/libgcov.h.
47547
47548 2014-01-08  Marek Polacek  <polacek@redhat.com>
47549
47550         PR middle-end/59669
47551         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
47552
47553 2014-01-08  Marek Polacek  <polacek@redhat.com>
47554
47555         PR sanitizer/59667
47556         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
47557
47558 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
47559
47560         PR rtl-optimization/59649
47561         * stor-layout.c (get_mode_bounds): For BImode return
47562         0 and STORE_FLAG_VALUE.
47563
47564 2014-01-08  Richard Biener  <rguenther@suse.de>
47565
47566         PR middle-end/59630
47567         * gimple.h (is_gimple_builtin_call): Remove.
47568         (gimple_builtin_call_types_compatible_p): New.
47569         (gimple_call_builtin_p): New overload.
47570         * gimple.c (is_gimple_builtin_call): Remove.
47571         (validate_call): Rename to ...
47572         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
47573         check return types.
47574         (validate_type): New static function.
47575         (gimple_call_builtin_p): New overload and adjust.
47576         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
47577         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
47578         (gimple_fold_stmt_to_constant_1): Likewise.
47579         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
47580
47581 2014-01-08  Richard Biener  <rguenther@suse.de>
47582
47583         PR middle-end/59471
47584         * gimplify.c (gimplify_expr): Gimplify register-register type
47585         VIEW_CONVERT_EXPRs to separate stmts.
47586
47587 2014-01-07  Jeff Law  <law@redhat.com>
47588
47589         PR middle-end/53623
47590         * ree.c (combine_set_extension): Handle case where source
47591         and destination registers in an extension insn are different.
47592         (combine_reaching_defs): Allow source and destination registers
47593         in extension to be different under limited circumstances.
47594         (add_removable_extension): Remove restriction that the
47595         source and destination registers in the extension are the same.
47596         (find_and_remove_re): Emit a copy from the extension's
47597         destination to its source after the defining insn if
47598         the source and destination registers are different.
47599
47600         PR middle-end/59285
47601         * ifcvt.c (merge_if_block): If we are merging a block with more than
47602         one successor with a block with no successors, remove any BARRIER
47603         after the second block.
47604
47605 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
47606
47607         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
47608
47609 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
47610
47611         PR target/59652
47612         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
47613         for 14-bit register offsets when INT14_OK_STRICT is false.
47614
47615 2014-01-07  Roland Stigge  <stigge@antcom.de>
47616             Michael Meissner  <meissner@linux.vnet.ibm.com>
47617
47618         PR 57386/target
47619         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
47620         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
47621
47622 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
47623
47624         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
47625         -mcpu.
47626
47627 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
47628
47629         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
47630         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
47631         rtx is const0_rtx or not.
47632
47633 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
47634
47635         PR target/58115
47636         * target-globals.c (save_target_globals): Remove this_fn_optab
47637         handling.
47638         * toplev.c: Include optabs.h.
47639         (target_reinit): Temporarily restore the global options if another
47640         set of options are in force.
47641
47642 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
47643
47644         PR rtl-optimization/58668
47645         * cfgcleanup.c (flow_find_cross_jump): Don't count
47646         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
47647         to determine what is counted.
47648         (flow_find_head_matching_sequence): Use active_insn_p to determine
47649         what is counted.
47650         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
47651         counting change.
47652         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
47653         determine what is counted.
47654
47655         PR tree-optimization/59643
47656         * tree-predcom.c (split_data_refs_to_components): If one dr is
47657         read and one write, determine_offset fails and the write isn't
47658         in the bad component, just put the read into the bad component.
47659
47660 2014-01-07  Mike Stump  <mikestump@comcast.net>
47661             Jakub Jelinek  <jakub@redhat.com>
47662
47663         PR pch/59436
47664         * tree-core.h (struct tree_optimization_option): Change optabs
47665         type from unsigned char * to void *.
47666         * optabs.c (init_tree_optimization_optabs): Adjust
47667         TREE_OPTIMIZATION_OPTABS initialization.
47668
47669 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
47670
47671         PR target/59644
47672         * config/i386/i386.h (struct machine_function): Add
47673         no_drap_save_restore field.
47674         * config/i386/i386.c (ix86_save_reg): Use
47675         !cfun->machine->no_drap_save_restore instead of
47676         crtl->stack_realign_needed.
47677         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
47678         this function clears frame_pointer_needed.  Set
47679         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
47680         and DRAP reg is needed.
47681
47682 2014-01-06  Marek Polacek  <polacek@redhat.com>
47683
47684         PR c/57773
47685         * doc/implement-c.texi: Mention that other integer types are
47686         permitted as bit-field types in strictly conforming mode.
47687
47688 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
47689
47690         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
47691         is newly allocated.
47692
47693 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
47694
47695         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
47696
47697 2014-01-06  Martin Jambor  <mjambor@suse.cz>
47698
47699         PR ipa/59008
47700         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
47701         to int.
47702         * ipa-prop.c (ipa_print_node_params): Fix indentation.
47703
47704 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
47705
47706         PR debug/59350
47707         PR debug/59510
47708         * var-tracking.c (add_stores): Preserve the value of the source even if
47709         we don't record the store.
47710
47711 2014-01-06  Terry Guo  <terry.guo@arm.com>
47712
47713         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
47714
47715 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
47716
47717         PR bootstrap/59541
47718         * config/darwin.c (darwin_function_section): Adjust return values to
47719         correspond to optimisation changes made in r206070.
47720
47721 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
47722
47723         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
47724         from prefetch_block tune setting.
47725         (nocona_cost): Correct size of prefetch block to 64.
47726
47727 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
47728
47729         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
47730         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
47731         used to save the static chain register in the computation of the offset
47732         from which the FP registers need to be restored.
47733
47734 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
47735
47736         PR tree-optimization/59519
47737         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
47738         ICE if get_current_def (current_new_name) is already non-NULL, as long
47739         as it is a phi result of some other phi in *new_exit_bb that has
47740         the same argument.
47741
47742         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
47743         or vmovdqu* for misaligned_operand.
47744         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
47745         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
47746         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
47747         aligned_mem for AVX512F masked aligned load and store builtins and for
47748         non-temporal moves.
47749
47750 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
47751
47752         PR tree-optimization/59651
47753         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
47754         Address range for negative step should be added by TYPE_SIZE_UNIT.
47755
47756 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
47757
47758         * config/m68k/m68k.c (handle_move_double): Handle pushes with
47759         overlapping registers also for registers other than the stack pointer.
47760
47761 2014-01-03  Marek Polacek  <polacek@redhat.com>
47762
47763         PR other/59661
47764         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
47765         __builtin_FILE.
47766
47767 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
47768
47769         PR target/59625
47770         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
47771         asm goto as jump.
47772
47773         * config/i386/i386.md (MODE_SIZE): New mode attribute.
47774         (push splitter): Use <P:MODE_SIZE> instead of
47775         GET_MODE_SIZE (<P:MODE>mode).
47776         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
47777         (mov -1, reg peephole2): Likewise.
47778         * config/i386/sse.md (*mov<mode>_internal,
47779         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
47780         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
47781         *<code><mode>3, *andnot<mode>3<mask_name>,
47782         <mask_codefor><code><mode>3<mask_name>): Likewise.
47783         * config/i386/subst.md (mask_mode512bit_condition,
47784         sd_mask_mode512bit_condition): Likewise.
47785
47786 2014-01-02  Xinliang David Li  <davidxl@google.com>
47787
47788         PR tree-optimization/59303
47789         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
47790         (dump_predicates): Better output format.
47791         (pred_equal_p): New function.
47792         (is_neq_relop_p): Ditto.
47793         (is_neq_zero_form_p): Ditto.
47794         (pred_expr_equal_p): Ditto.
47795         (pred_neg_p): Ditto.
47796         (simplify_pred): Ditto.
47797         (simplify_preds_2): Ditto.
47798         (simplify_preds_3): Ditto.
47799         (simplify_preds_4): Ditto.
47800         (simplify_preds): Ditto.
47801         (push_pred): Ditto.
47802         (push_to_worklist): Ditto.
47803         (get_pred_info_from_cmp): Ditto.
47804         (is_degenerated_phi): Ditto.
47805         (normalize_one_pred_1): Ditto.
47806         (normalize_one_pred): Ditto.
47807         (normalize_one_pred_chain): Ditto.
47808         (normalize_preds): Ditto.
47809         (normalize_cond_1): Remove function.
47810         (normalize_cond): Ditto.
47811         (is_gcond_subset_of): Ditto.
47812         (is_subset_of_any): Ditto.
47813         (is_or_set_subset_of): Ditto.
47814         (is_and_set_subset_of): Ditto.
47815         (is_norm_cond_subset_of): Ditto.
47816         (pred_chain_length_cmp): Ditto.
47817         (convert_control_dep_chain_into_preds): Type change.
47818         (find_predicates): Ditto.
47819         (find_def_preds): Ditto.
47820         (destroy_predicates_vecs): Ditto.
47821         (find_matching_predicates_in_rest_chains): Ditto.
47822         (use_pred_not_overlap_with_undef_path_pred): Ditto.
47823         (is_pred_expr_subset): Ditto.
47824         (is_pred_chain_subset_of): Ditto.
47825         (is_included_in): Ditto.
47826         (is_superset_of): Ditto.
47827
47828 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
47829
47830         Update copyright years.
47831
47832 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
47833
47834         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
47835         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
47836         config/arc/arc.md, config/arc/arc.opt,
47837         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
47838         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
47839         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
47840         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
47841         config/linux-protos.h, config/linux.c, config/winnt-c.c,
47842         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
47843         vtable-verify.c, vtable-verify.h: Use the standard form for the
47844         copyright notice.
47845
47846 2014-01-02  Tobias Burnus  <burnus@net-b.de>
47847
47848         * gcc.c (process_command): Update copyright notice dates.
47849         * gcov-dump.c: Ditto.
47850         * gcov.c: Ditto.
47851         * doc/cpp.texi: Bump @copying's copyright year.
47852         * doc/cppinternals.texi: Ditto.
47853         * doc/gcc.texi: Ditto.
47854         * doc/gccint.texi: Ditto.
47855         * doc/gcov.texi: Ditto.
47856         * doc/install.texi: Ditto.
47857         * doc/invoke.texi: Ditto.
47858
47859 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
47860
47861         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
47862
47863 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
47864
47865         * config/i386/sse.md (*mov<mode>_internal): Guard
47866         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
47867
47868         PR rtl-optimization/59647
47869         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
47870         new_rtx into UNSIGNED_FLOAT rtxes.
47871 \f
47872 Copyright (C) 2014 Free Software Foundation, Inc.
47873
47874 Copying and distribution of this file, with or without modification,
47875 are permitted in any medium without royalty provided the copyright
47876 notice and this notice are preserved.