godump.c (precision_to_units): New helper function.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-10-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2
3         * godump.c (precision_to_units): New helper function.
4         (go_append_artificial_name): Ditto.
5         (go_append_decl_name): Ditto.
6         (go_append_bitfield): Ditto.
7         (go_get_uinttype_for_precision): Ditto.
8         (go_append_padding): Ditto.
9         (go_force_record_alignment): Ditto.
10         (go_format_type): Represent unions with an array of uints of the size
11         of the alignment in go.  This fixes the 'random' size of the union's
12         representation using just the first field.
13         (go_format_type): Add argument that indicates whether a record is
14         nested (used for generation of artificial go names).
15         (go_output_fndecl): Adapt to new go_format_type signature.
16         (go_output_typedef): Ditto.
17         (go_output_var): Ditto.
18         (go_output_var): Prefer to output type as alias (typedef).
19         (go_format_type): Bitfields in records are simulated as arrays of bytes
20         in go.
21
22         * godump.c (go_format_type): Fix handling of arrays with zero elements.
23
24 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
25
26         * cgraph.h: Flatten.  Remove all include files.
27         (symbol_table::initialize): Move to cgraph.c.
28         * cgraph.c: Adjust include files.
29         (symbol_table::initialize): Relocate from cgraph.h.
30         * gengtype.c (open_base_files): Adjust include files.
31         * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
32         included files.
33         * ipa-inline.h: Remove all include files.
34         * ipa-prop.h: Ditto.
35         * ipa-reference.h: Ditto.
36         * ipa-utils.h: Ditto:
37         * lto-streamer.h: Remove cgraph.h from include list.
38         * asan.c: Adjust include files.
39         * auto-profile.c: Ditto.
40         * bb-reorder.c: Ditto.
41         * calls.c: Ditto.
42         * cfgexpand.c: Ditto.
43         * cgraphbuild.c: Ditto.
44         * cgraphclones.c: Ditto.
45         * cgraphunit.c: Ditto.
46         * combine.c: Ditto.
47         * coverage.c: Ditto.
48         * data-streamer.c: Ditto.
49         * data-streamer-in.c: Ditto.
50         * data-streamer-out.c: Ditto.
51         * dbxout.c: Ditto.
52         * dwarf2out.c: Ditto.
53         * except.c: Ditto.
54         * expr.c: Ditto.
55         * final.c: Ditto.
56         * fold-const.c: Ditto.
57         * ggc-page.c: Ditto.
58         * gimple-fold.c: Ditto.
59         * gimple-iterator.c: Ditto.
60         * gimple-pretty-print.c: Ditto.
61         * gimple-streamer-in.c: Ditto.
62         * gimple-streamer-out.c: Ditto.
63         * gimplify.c: Ditto.
64         * ipa.c: Ditto.
65         * ipa-comdats.c: Ditto.
66         * ipa-cp.c: Ditto.
67         * ipa-devirt.c: Ditto.
68         * ipa-icf.c: Ditto.
69         * ipa-icf-gimple.c: Ditto.
70         * ipa-inline-analysis.c: Ditto.
71         * ipa-inline.c: Ditto.
72         * ipa-inline-transform.c: Ditto.
73         * ipa-polymorphic-call.c: Ditto.
74         * ipa-profile.c: Ditto.
75         * ipa-prop.c: Ditto.
76         * ipa-pure-const.c: Ditto.
77         * ipa-ref.c: Ditto.
78         * ipa-reference.c: Ditto.
79         * ipa-split.c: Ditto.
80         * ipa-utils.c: Ditto.
81         * ipa-visibility.c: Ditto.
82         * langhooks.c: Ditto.
83         * lto-cgraph.c: Ditto.
84         * lto-compress.c: Ditto.
85         * lto-opts.c: Ditto.
86         * lto-section-in.c: Ditto.
87         * lto-section-out.c: Ditto.
88         * lto-streamer.c: Ditto.
89         * lto-streamer-in.c: Ditto.
90         * lto-streamer-out.c: Ditto.
91         * omp-low.c: Ditto.
92         * opts-global.c: Ditto.
93         * passes.c: Ditto.
94         * predict.c: Ditto.
95         * print-tree.c: Ditto.
96         * profile.c: Ditto.
97         * ree.c: Ditto.
98         * stor-layout.c: Ditto.
99         * symtab.c: Ditto.
100         * toplev.c: Ditto.
101         * trans-mem.c: Ditto.
102         * tree.c: Ditto.
103         * tree-cfg.c: Ditto.
104         * tree-eh.c: Ditto.
105         * tree-emutls.c: Ditto.
106         * tree-inline.c: Ditto.
107         * tree-nested.c: Ditto.
108         * tree-pretty-print.c: Ditto.
109         * tree-profile.c: Ditto.
110         * tree-sra.c: Ditto.
111         * tree-ssa-alias.c: Ditto.
112         * tree-ssa-loop-ivcanon.c: Ditto.
113         * tree-ssa-loop-ivopts.c: Ditto.
114         * tree-ssa-pre.c: Ditto.
115         * tree-ssa-structalias.c: Ditto.
116         * tree-streamer.c: Ditto.
117         * tree-streamer-in.c: Ditto.
118         * tree-streamer-out.c: Ditto.
119         * tree-switch-conversion.c: Ditto.
120         * tree-tailcall.c: Ditto.
121         * tree-vect-data-refs.c: Ditto.
122         * tree-vectorizer.c: Ditto.
123         * tree-vect-stmts.c: Ditto.
124         * tsan.c: Ditto.
125         * ubsan.c: Ditto.
126         * value-prof.c: Ditto.
127         * varasm.c: Ditto.
128         * varpool.c: Ditto.
129         * config/arm/arm.c: Ditto.
130         * config/bfin/bfin.c: Ditto.
131         * config/c6x/c6x.c: Ditto.
132         * config/cris/cris.c: Ditto.
133         * config/darwin.c: Ditto.
134         * config/darwin-c.c: Ditto.
135         * config/i386/i386.c: Ditto.
136         * config/i386/winnt.c: Ditto.
137         * config/microblaze/microblaze.c: Ditto.
138         * config/mips/mips.c: Ditto.
139         * config/rs6000/rs6000.c: Ditto.
140         * config/rx/rx.c: Ditto.
141
142 2014-10-28  Richard Biener  <rguenther@suse.de>
143
144         * gimple-fold.h (follow_single_use_edges): Declare.
145         * gimple-fold.c (follow_single_use_edges): New function.
146         (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
147         * tree-ssa-propagate.c
148         (substitute_and_fold_dom_walker::before_dom_children): Allow
149         following single-use edges when folding stmts we propagated into.
150
151 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
152             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
153             Anna Tikhonova  <anna.tikhonova@intel.com>
154             Ilya Tocar  <ilya.tocar@intel.com>
155             Andrey Turetskiy  <andrey.turetskiy@intel.com>
156             Ilya Verbin  <ilya.verbin@intel.com>
157             Kirill Yukhin  <kirill.yukhin@intel.com>
158             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
159
160         * config/i386/avx512bwintrin.h: New.
161         * config/i386/avx512dqintrin.h: Ditto.
162         * config/i386/avx512vlbwintrin.h: Ditto.
163         * config/i386/avx512vldqintrin.h: Ditto.
164         * config/i386/avx512vlintrin.h: Ditto.
165         * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
166         avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
167
168 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
169             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
170             Anna Tikhonova  <anna.tikhonova@intel.com>
171             Ilya Tocar  <ilya.tocar@intel.com>
172             Andrey Turetskiy  <andrey.turetskiy@intel.com>
173             Ilya Verbin  <ilya.verbin@intel.com>
174             Kirill Yukhin  <kirill.yukhin@intel.com>
175             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
176
177         * config/i386/i386.c
178         (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
179         avx_shufpd256_mask, avx_vpermilv2df_mask.
180
181 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
182             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
183             Anna Tikhonova  <anna.tikhonova@intel.com>
184             Ilya Tocar  <ilya.tocar@intel.com>
185             Andrey Turetskiy  <andrey.turetskiy@intel.com>
186             Ilya Verbin  <ilya.verbin@intel.com>
187             Kirill Yukhin  <kirill.yukhin@intel.com>
188             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
189
190         * config/i386/i386.c
191         (ix86_init_mmx_sse_builtins):
192         Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
193         __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
194         __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
195         __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
196         __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
197         __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
198         __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
199         __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
200         __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
201         __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
202         __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
203         __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
204         __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
205         __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
206         __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
207         __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
208         __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
209         __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
210
211 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
212             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
213             Anna Tikhonova  <anna.tikhonova@intel.com>
214             Ilya Tocar  <ilya.tocar@intel.com>
215             Andrey Turetskiy  <andrey.turetskiy@intel.com>
216             Ilya Verbin  <ilya.verbin@intel.com>
217             Kirill Yukhin  <kirill.yukhin@intel.com>
218             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
219
220         * config/i386/i386.c
221         (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
222         IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
223         IX86_BUILTIN_GATHER3ALTDIV8SI.
224         (ix86_expand_builtin):
225         Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
226         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
227         IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
228         IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
229         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
230         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
231         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
232         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
233         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
234         IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
235         IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
236         IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
237         IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
238         IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
239         IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
240         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
241         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
242         IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
243         (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
244         V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
245
246 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
247             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
248             Anna Tikhonova  <anna.tikhonova@intel.com>
249             Ilya Tocar  <ilya.tocar@intel.com>
250             Andrey Turetskiy  <andrey.turetskiy@intel.com>
251             Ilya Verbin  <ilya.verbin@intel.com>
252             Kirill Yukhin  <kirill.yukhin@intel.com>
253             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
254
255         * config/i386/i386-builtin-types.def
256         (SHORT): New.
257         (V32HI): Ditto.
258         (V12QI): Ditto.
259         (V14QI): Ditto.
260         (V32SI): Ditto.
261         (V8UDI): Ditto.
262         (V16USI): Ditto.
263         (V32UHI): Ditto.
264         (PSHORT): Ditto.
265         (PV32QI): Ditto.
266         (PV32HI): Ditto.
267         (PV64QI): Ditto.
268         (PCV8HI): Ditto.
269         (PCV16QI): Ditto.
270         (PCV16HI): Ditto.
271         (PCV32QI): Ditto.
272         (PCV32HI): Ditto.
273         (PCV64QI): Ditto.
274         (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
275         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
276         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
277         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
278         (V16SF_FTYPE_V16HI): Ditto.
279         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
280         (V16SF_FTYPE_V16SI): Ditto.
281         (V4DI_FTYPE_V4DI): Ditto.
282         (V16SI_FTYPE_V16SF): Ditto.
283         (V8DI_FTYPE_PV2DI): Ditto.
284         (V8DF_FTYPE_PV2DF): Ditto.
285         (V4DI_FTYPE_PV2DI): Ditto.
286         (V4DF_FTYPE_PV2DF): Ditto.
287         (V16SI_FTYPE_PV2SI): Ditto.
288         (V16SF_FTYPE_PV2SF): Ditto.
289         (V8SF_FTYPE_FLOAT): Ditto.
290         (V4SF_FTYPE_FLOAT): Ditto.
291         (V4DF_FTYPE_DOUBLE): Ditto.
292         (V8SF_FTYPE_PV4SF): Ditto.
293         (V8SI_FTYPE_PV4SI): Ditto.
294         (V4SI_FTYPE_PV2SI): Ditto.
295         (V8SF_FTYPE_PV2SF): Ditto.
296         (V8SI_FTYPE_PV2SI): Ditto.
297         (V16SF_FTYPE_PV8SF): Ditto.
298         (V16SI_FTYPE_PV8SI): Ditto.
299         (V8DI_FTYPE_V8SF): Ditto.
300         (V4DI_FTYPE_V4SF): Ditto.
301         (V2DI_FTYPE_V4SF): Ditto.
302         (V64QI_FTYPE_QI): Ditto.
303         (V32HI_FTYPE_HI): Ditto.
304         (V16UHI_FTYPE_V16UHI): Ditto.
305         (V32UHI_FTYPE_V32UHI): Ditto.
306         (V2UDI_FTYPE_V2UDI): Ditto.
307         (V4UDI_FTYPE_V4UDI): Ditto.
308         (V8UDI_FTYPE_V8UDI): Ditto.
309         (V4USI_FTYPE_V4USI): Ditto.
310         (V16USI_FTYPE_V16USI): Ditto.
311         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
312         (V2DF_FTYPE_V8DF_INT): Ditto.
313         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
314         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
315         (V8DF_FTYPE_V8DF_INT): Ditto.
316         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
317         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
318         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
319         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
320         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
321         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
322         (V8DI_FTYPE_V8DI_INT): Ditto.
323         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
324         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
325         (V8SF_FTYPE_V16SF_INT): Ditto.
326         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
327         (V64QI_FTYPE_V32HI_V32HI): Ditto.
328         (V32HI_FTYPE_V16SI_V16SI): Ditto.
329         (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
330         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
331         (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
332         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
333         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
334         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
335         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
336         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
337         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
338         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
339         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
340         (V32HI_FTYPE_V64QI_V64QI): Ditto.
341         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
342         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
343         (V32HI_FTYPE_V32HI_V32HI): Ditto.
344         (V32HI_FTYPE_V32HI_INT): Ditto.
345         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
346         (V16SI_FTYPE_V32HI_V32HI): Ditto.
347         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
348         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
349         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
350         (V8SI_FTYPE_V16SI_INT): Ditto.
351         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
352         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
353         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
354         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
355         (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
356         (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
357         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
358         (V8DI_FTYPE_V16SI_V16SI): Ditto.
359         (V8DI_FTYPE_V64QI_V64QI): Ditto.
360         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
361         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
362         (V2DI_FTYPE_V8DI_INT): Ditto.
363         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
364         (QI_FTYPE_QI): Ditto.
365         (SI_FTYPE_SI): Ditto.
366         (DI_FTYPE_DI): Ditto.
367         (HI_FTYPE_V16QI): Ditto.
368         (SI_FTYPE_V32QI): Ditto.
369         (DI_FTYPE_V64QI): Ditto.
370         (QI_FTYPE_V8HI): Ditto.
371         (HI_FTYPE_V16HI): Ditto.
372         (SI_FTYPE_V32HI): Ditto.
373         (QI_FTYPE_V4SI): Ditto.
374         (QI_FTYPE_V8SI): Ditto.
375         (HI_FTYPE_V16SI): Ditto.
376         (QI_FTYPE_V2DI): Ditto.
377         (QI_FTYPE_V4DI): Ditto.
378         (QI_FTYPE_V8DI): Ditto.
379         (V16QI_FTYPE_HI): Ditto.
380         (V32QI_FTYPE_SI): Ditto.
381         (V64QI_FTYPE_DI): Ditto.
382         (V8HI_FTYPE_QI): Ditto.
383         (V16HI_FTYPE_HI): Ditto.
384         (V32HI_FTYPE_SI): Ditto.
385         (V4SI_FTYPE_QI): Ditto.
386         (V4SI_FTYPE_HI): Ditto.
387         (V8SI_FTYPE_QI): Ditto.
388         (V8SI_FTYPE_HI): Ditto.
389         (V2DI_FTYPE_QI): Ditto.
390         (V4DI_FTYPE_QI): Ditto.
391         (QI_FTYPE_QI_QI): Ditto.
392         (SI_FTYPE_SI_SI): Ditto.
393         (DI_FTYPE_DI_DI): Ditto.
394         (QI_FTYPE_QI_INT): Ditto.
395         (SI_FTYPE_SI_INT): Ditto.
396         (DI_FTYPE_DI_INT): Ditto.
397         (HI_FTYPE_V16QI_V16QI): Ditto.
398         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
399         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
400         (SI_FTYPE_V32QI_V32QI): Ditto.
401         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
402         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
403         (DI_FTYPE_V64QI_V64QI): Ditto.
404         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
405         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
406         (QI_FTYPE_V8HI_V8HI): Ditto.
407         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
408         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
409         (HI_FTYPE_V16HI_V16HI): Ditto.
410         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
411         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
412         (SI_FTYPE_V32HI_V32HI): Ditto.
413         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
414         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
415         (QI_FTYPE_V4SI_V4SI): Ditto.
416         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
417         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
418         (QI_FTYPE_V8SI_V8SI): Ditto.
419         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
420         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
421         (QI_FTYPE_V2DI_V2DI): Ditto.
422         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
423         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
424         (QI_FTYPE_V4DI_V4DI): Ditto.
425         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
426         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
427         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
428         (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
429         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
430         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
431         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
432         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
433         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
434         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
435         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
436         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
437         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
438         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
439         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
440         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
441         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
442         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
443         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
444         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
445         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
446         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
447         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
448         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
449         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
450         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
451         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
452         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
453         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
454         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
455         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
456         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
457         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
458         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
459         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
460         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
461         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
462         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
463         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
464         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
465         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
466         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
467         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
468         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
469         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
470         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
471         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
472         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
473         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
474         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
475         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
476         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
477         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
478         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
479         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
480         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
481         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
482         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
483         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
484         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
485         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
486         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
487         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
488         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
489         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
490         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
491         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
492         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
493         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
494         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
495         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
496         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
497         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
498         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
499         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
500         (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
501         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
502         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
503         (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
504         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
505         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
506         (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
507         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
508         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
509         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
510         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
511         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
512         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
513         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
514         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
515         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
516         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
517         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
518         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
519         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
520         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
521         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
522         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
523         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
524         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
525         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
526         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
527         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
528         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
529         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
530         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
531         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
532         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
533         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
534         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
535         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
536         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
537         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
538         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
539         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
540         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
541         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
542         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
543         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
544         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
545         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
546         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
547         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
548         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
549         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
550         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
551         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
552         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
553         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
554         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
555         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
556         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
557         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
558         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
559         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
560         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
561         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
562         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
563         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
564         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
565         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
566         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
567         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
568         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
569         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
570         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
571         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
572         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
573         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
574         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
575         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
576         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
577         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
578         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
579         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
580         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
581         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
582         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
583         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
584         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
585         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
586         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
587         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
588         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
589         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
590         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
591         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
592         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
593         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
594         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
595         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
596         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
597         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
598         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
599         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
600         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
601         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
602         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
603         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
604         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
605         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
606         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
607         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
608         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
609         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
610         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
611         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
612         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
613         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
614         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
615         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
616         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
617         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
618         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
619         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
620         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
621         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
622         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
623         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
624         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
625         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
626         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
627         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
628         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
629         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
630         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
631         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
632         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
633         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
634         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
635         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
636         (QI_FTYPE_V8DF_INT): Ditto.
637         (QI_FTYPE_V4DF_INT): Ditto.
638         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
639         (QI_FTYPE_V2DF_INT): Ditto.
640         (HI_FTYPE_V16SF_INT): Ditto.
641         (QI_FTYPE_V8SF_INT): Ditto.
642         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
643         (QI_FTYPE_V4SF_INT): Ditto.
644         (QI_FTYPE_V8DF_INT_QI): Ditto.
645         (QI_FTYPE_V4DF_INT_QI): Ditto.
646         (QI_FTYPE_V2DF_INT_QI): Ditto.
647         (HI_FTYPE_V16SF_INT_HI): Ditto.
648         (QI_FTYPE_V8SF_INT_QI): Ditto.
649         (QI_FTYPE_V4SF_INT_QI): Ditto.
650         (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
651         (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
652         (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
653         (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
654         (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
655         (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
656         (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
657         (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
658         (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
659         (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
660         (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
661         (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
662         (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
663         (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
664         (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
665         (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
666         (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
667         (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
668         (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
669         (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
670         (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
671         (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
672         (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
673         (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
674         (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
675         (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
676         (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
677         (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
678         (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
679         (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
680         (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
681         (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
682         (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
683         (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
684         (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
685         (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
686         (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
687         (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
688         (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
689         (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
690         (V8DI_FTYPE_V8DI_INT): Ditto.
691         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
692         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
693         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
694         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
695         (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
696         (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
697         (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
698         (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
699         (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
700         (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
701         (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
702         (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
703         (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
704         (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
705         * config/i386/i386.c (ix86_builtins):
706         Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
707         IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
708         IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
709         IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
710         IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
711         IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
712         IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
713         IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
714         IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
715         IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
716         IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
717         IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
718         IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
719         IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
720         IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
721         IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
722         IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
723         IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
724         IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
725         IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
726         IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
727         IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
728         IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
729         IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
730         IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
731         IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
732         IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
733         IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
734         IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
735         IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
736         IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
737         IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
738         IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
739         IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
740         IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
741         IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
742         IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
743         IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
744         IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
745         IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
746         IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
747         IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
748         IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
749         IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
750         IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
751         IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
752         IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
753         IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
754         IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
755         IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
756         IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
757         IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
758         IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
759         IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
760         IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
761         IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
762         IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
763         IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
764         IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
765         IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
766         IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
767         IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
768         IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
769         IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
770         IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
771         IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
772         IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
773         IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
774         IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
775         IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
776         IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
777         IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
778         IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
779         IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
780         IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
781         IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
782         IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
783         IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
784         IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
785         IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
786         IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
787         IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
788         IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
789         IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
790         IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
791         IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
792         IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
793         IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
794         IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
795         IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
796         IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
797         IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
798         IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
799         IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
800         IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
801         IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
802         IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
803         IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
804         IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
805         IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
806         IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
807         IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
808         IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
809         IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
810         IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
811         IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
812         IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
813         IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
814         IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
815         IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
816         IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
817         IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
818         IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
819         IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
820         IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
821         IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
822         IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
823         IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
824         IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
825         IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
826         IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
827         IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
828         IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
829         IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
830         IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
831         IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
832         IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
833         IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
834         IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
835         IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
836         IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
837         IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
838         IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
839         IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
840         IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
841         IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
842         IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
843         IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
844         IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
845         IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
846         IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
847         IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
848         IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
849         IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
850         IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
851         IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
852         IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
853         IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
854         IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
855         IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
856         IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
857         IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
858         IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
859         IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
860         IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
861         IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
862         IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
863         IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
864         IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
865         IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
866         IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
867         IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
868         IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
869         IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
870         IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
871         IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
872         IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
873         IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
874         IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
875         IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
876         IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
877         IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
878         IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
879         IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
880         IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
881         IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
882         IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
883         IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
884         IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
885         IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
886         IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
887         IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
888         IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
889         IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
890         IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
891         IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
892         IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
893         IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
894         IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
895         IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
896         IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
897         IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
898         IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
899         IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
900         IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
901         IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
902         IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
903         IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
904         IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
905         IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
906         IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
907         IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
908         IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
909         IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
910         IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
911         IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
912         IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
913         IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
914         IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
915         IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
916         IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
917         IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
918         IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
919         IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
920         IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
921         IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
922         IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
923         IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
924         IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
925         IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
926         IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
927         IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
928         IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
929         IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
930         IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
931         IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
932         IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
933         IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
934         IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
935         IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
936         IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
937         IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
938         IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
939         IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
940         IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
941         IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
942         IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
943         IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
944         IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
945         IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
946         IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
947         IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
948         IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
949         IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
950         IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
951         IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
952         IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
953         IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
954         IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
955         IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
956         IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
957         IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
958         IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
959         IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
960         IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
961         IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
962         IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
963         IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
964         IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
965         IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
966         IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
967         IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
968         IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
969         IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
970         IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
971         IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
972         IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
973         IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
974         IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
975         IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
976         IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
977         IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
978         IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
979         IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
980         IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
981         IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
982         IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
983         IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
984         IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
985         IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
986         IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
987         IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
988         IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
989         IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
990         IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
991         IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
992         IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
993         IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
994         IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
995         IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
996         IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
997         IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
998         IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
999         IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
1000         IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
1001         IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
1002         IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
1003         IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
1004         IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
1005         IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
1006         IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
1007         IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
1008         IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
1009         IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
1010         IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
1011         IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
1012         IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
1013         IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
1014         IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
1015         IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
1016         IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
1017         IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
1018         IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
1019         IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
1020         IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
1021         IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
1022         IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
1023         IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
1024         IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
1025         IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
1026         IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
1027         IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
1028         IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
1029         IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
1030         IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
1031         IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
1032         IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
1033         IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
1034         IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
1035         IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
1036         IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
1037         IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
1038         IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
1039         IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
1040         IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
1041         IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
1042         IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
1043         IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
1044         IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
1045         IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
1046         IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
1047         IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
1048         IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
1049         IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
1050         IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
1051         IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
1052         IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
1053         IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
1054         IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
1055         IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
1056         IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
1057         IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
1058         IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
1059         IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
1060         IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
1061         IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
1062         IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
1063         IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
1064         IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
1065         IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
1066         IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
1067         IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
1068         IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
1069         IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
1070         IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
1071         IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
1072         IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
1073         IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
1074         IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
1075         IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
1076         IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
1077         IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
1078         IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
1079         IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
1080         IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
1081         IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
1082         IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
1083         IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
1084         IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
1085         IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
1086         IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
1087         IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
1088         IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
1089         IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
1090         IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
1091         IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
1092         IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
1093         IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
1094         IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
1095         IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
1096         IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
1097         IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
1098         IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
1099         IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
1100         IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
1101         IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
1102         IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
1103         IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
1104         IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
1105         IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
1106         IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
1107         IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
1108         IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
1109         IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
1110         IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
1111         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
1112         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
1113         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
1114         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
1115         IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
1116         IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
1117         IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
1118         IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
1119         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
1120         IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
1121         IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
1122         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
1123         IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
1124         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
1125         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
1126         IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
1127         IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
1128         IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
1129         IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
1130         IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
1131         IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
1132         IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
1133         IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
1134         IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
1135         IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
1136         IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
1137         IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
1138         IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
1139         IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
1140         IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
1141         IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
1142         IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
1143         IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
1144         IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
1145         IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
1146         IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
1147         IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
1148         IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
1149         IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
1150         IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
1151         IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
1152         IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
1153         IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
1154         IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
1155         IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
1156         IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
1157         IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
1158         IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
1159         IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
1160         IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
1161         IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
1162         IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
1163         IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
1164         IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
1165         IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
1166         IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
1167         IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
1168         IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
1169         IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
1170         IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
1171         IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
1172         IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
1173         IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
1174         IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
1175         IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
1176         IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
1177         IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
1178         IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
1179         IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
1180         IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
1181         IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
1182         IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
1183         IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
1184         IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
1185         IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
1186         IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
1187         IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
1188         IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
1189         IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
1190         IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
1191         IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
1192         IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
1193         IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
1194         IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
1195         IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
1196         IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
1197         (bdesc_special_args):
1198         Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
1199         __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
1200         __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
1201         __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
1202         __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
1203         __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
1204         __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
1205         __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
1206         __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
1207         __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
1208         __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
1209         __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
1210         __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
1211         __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
1212         __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
1213         __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
1214         __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
1215         __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
1216         __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
1217         __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
1218         __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
1219         __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
1220         __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
1221         __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
1222         __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
1223         __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
1224         __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
1225         __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
1226         __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
1227         __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
1228         __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
1229         __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
1230         __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
1231         __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
1232         __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
1233         __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
1234         __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
1235         __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
1236         __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
1237         __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
1238         __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
1239         __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
1240         __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
1241         __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
1242         __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
1243         __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
1244         __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
1245         __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
1246         __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
1247         __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
1248         __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
1249         __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
1250         __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
1251         __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
1252         __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
1253         __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
1254         __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
1255         __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
1256         __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
1257         __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
1258         __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
1259         __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
1260         __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
1261         __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
1262         __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
1263         __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
1264         __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
1265         __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
1266         __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
1267         __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
1268         __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
1269         __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
1270         __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
1271         __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
1272         __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
1273         __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
1274         __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
1275         __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
1276         __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
1277         __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
1278         __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
1279         __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
1280         __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
1281         __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
1282         __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
1283         __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
1284         __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
1285         __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
1286         __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
1287         __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
1288         __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
1289         __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
1290         __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
1291         __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
1292         __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
1293         __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
1294         __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
1295         __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
1296         __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
1297         __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
1298         __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
1299         __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
1300         __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
1301         __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
1302         __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
1303         __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
1304         __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
1305         __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
1306         __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
1307         __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
1308         __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
1309         __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
1310         __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
1311         __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
1312         __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
1313         __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
1314         __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
1315         __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
1316         __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
1317         __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
1318         __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
1319         __builtin_ia32_reducesd, __builtin_ia32_reducess,
1320         __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
1321         __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
1322         __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
1323         __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
1324         __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
1325         __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
1326         __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
1327         __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
1328         __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
1329         __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
1330         __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
1331         __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
1332         __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
1333         __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
1334         __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
1335         __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
1336         __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
1337         __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
1338         __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
1339         __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
1340         __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
1341         __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
1342         __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
1343         __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
1344         __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
1345         __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
1346         __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
1347         __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
1348         __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
1349         __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
1350         __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
1351         __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
1352         __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
1353         __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
1354         __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
1355         __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
1356         __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
1357         __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
1358         __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
1359         __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
1360         __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
1361         __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
1362         __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
1363         __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
1364         __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
1365         __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
1366         __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
1367         __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
1368         __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
1369         __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
1370         __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
1371         __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
1372         __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
1373         __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
1374         __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
1375         __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
1376         __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
1377         __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
1378         __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
1379         __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
1380         __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
1381         __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
1382         __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
1383         __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
1384         __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
1385         __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
1386         __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
1387         __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
1388         __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
1389         __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
1390         __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
1391         __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
1392         __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
1393         __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
1394         __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
1395         __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
1396         __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
1397         __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
1398         __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
1399         __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
1400         __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
1401         __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
1402         __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
1403         __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
1404         __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
1405         __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
1406         __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
1407         __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
1408         __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
1409         __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
1410         __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
1411         __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
1412         __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
1413         __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
1414         __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
1415         __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
1416         __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
1417         __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
1418         __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
1419         __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
1420         __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
1421         __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
1422         __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
1423         __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
1424         __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
1425         __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
1426         __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
1427         __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
1428         __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
1429         __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
1430         __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
1431         __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
1432         __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
1433         __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
1434         __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
1435         __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
1436         __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
1437         __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
1438         __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
1439         __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
1440         __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
1441         __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
1442         __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
1443         __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
1444         __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
1445         __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
1446         __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
1447         __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
1448         __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
1449         __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
1450         __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
1451         __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
1452         __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
1453         __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
1454         __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
1455         __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
1456         __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
1457         __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
1458         __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
1459         __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
1460         __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
1461         __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
1462         __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
1463         __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
1464         __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
1465         __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
1466         __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
1467         __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
1468         __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
1469         __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
1470         __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
1471         __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
1472         __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
1473         __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
1474         __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
1475         __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
1476         __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
1477         __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
1478         __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
1479         __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
1480         __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
1481         __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
1482         __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
1483         __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
1484         __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
1485         __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
1486         __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
1487         __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
1488         __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
1489         __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
1490         __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
1491         __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
1492         __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
1493         __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
1494         __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
1495         __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
1496         __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
1497         __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
1498         __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
1499         __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
1500         __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
1501         __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
1502         __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
1503         __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
1504         __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
1505         __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
1506         __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
1507         __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
1508         __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
1509         __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
1510         __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
1511         __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
1512         __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
1513         __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
1514         __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
1515         __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
1516         __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
1517         __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
1518         __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
1519         __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
1520         __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
1521         __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
1522         __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
1523         __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
1524         __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
1525         __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
1526         __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
1527         __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
1528         __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
1529         __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
1530         __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
1531         __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
1532         __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
1533         __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
1534         __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
1535         __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
1536         __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
1537         __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
1538         __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
1539         __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
1540         __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
1541         __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
1542         __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
1543         __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
1544         __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
1545         __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
1546         __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
1547         __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
1548         __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
1549         __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
1550         __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
1551         __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
1552         __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
1553         __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
1554         __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
1555         __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
1556         __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
1557         __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
1558         __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
1559         __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
1560         __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
1561         __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
1562         __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
1563         __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
1564         __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
1565         __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
1566         __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
1567         __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
1568         __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
1569         __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
1570         __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
1571         __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
1572         __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
1573         __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
1574         __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
1575         __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
1576         __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
1577         __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
1578         __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
1579         __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
1580         __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
1581         __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
1582         __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
1583         __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
1584         __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
1585         __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
1586         __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
1587         __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
1588         __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
1589         __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
1590         __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
1591         __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
1592         __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
1593         __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
1594         __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
1595         __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
1596         __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
1597         __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
1598         __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
1599         __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
1600         __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
1601         __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
1602         __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
1603         __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
1604         __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
1605         __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
1606         __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
1607         __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
1608         __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
1609         __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
1610         __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
1611         __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
1612         __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
1613         __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
1614         __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
1615         __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
1616         __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
1617         __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
1618         __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
1619         __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
1620         __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
1621         __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
1622         __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
1623         __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
1624         __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
1625         __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
1626         __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
1627         __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
1628         __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
1629         __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
1630         __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
1631         __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
1632         __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
1633         __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
1634         __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
1635         __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
1636         __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
1637         __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
1638         __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
1639         __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
1640         __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
1641         __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
1642         __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
1643         __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
1644         __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
1645         __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
1646         __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
1647         __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
1648         __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
1649         __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
1650         __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
1651         __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
1652         __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
1653         __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
1654         __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
1655         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
1656         __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
1657         __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
1658         __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
1659         __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
1660         __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
1661         __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
1662         __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
1663         __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
1664         __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
1665         __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
1666         __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
1667         __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
1668         __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
1669         __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
1670         __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
1671         __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
1672         __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
1673         __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
1674         __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
1675         (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
1676         DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
1677         V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
1678         V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
1679         HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
1680         HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
1681         V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
1682         SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
1683         QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
1684         V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
1685         V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
1686         V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
1687         V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
1688         V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
1689         V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
1690         V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
1691         V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
1692         V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
1693         V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
1694         V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
1695         V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
1696         V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
1697         V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
1698         V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
1699         V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
1700         V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
1701         V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
1702         V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
1703         V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
1704         V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
1705         V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
1706         V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
1707         V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
1708         V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
1709         HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
1710         DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
1711         HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
1712         QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
1713         QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
1714         V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
1715         V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
1716         V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
1717         V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
1718         V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
1719         V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
1720         V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
1721         V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
1722         V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
1723         V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
1724         V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
1725         V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
1726         V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
1727         V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
1728         V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
1729         V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
1730         V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
1731         V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
1732         V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
1733         V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
1734         QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
1735         HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
1736         QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
1737         V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
1738         V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
1739         V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
1740         V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
1741         V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
1742         V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
1743         V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
1744         V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
1745         V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
1746         V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
1747         V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
1748         V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
1749         V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
1750         V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
1751         V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
1752         V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
1753         V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
1754         V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
1755         V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
1756         V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
1757         QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
1758         QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
1759         QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
1760         SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
1761         SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
1762         QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
1763         V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
1764         V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
1765         V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
1766         V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
1767         V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
1768         V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
1769         V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
1770         V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
1771         V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
1772         V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
1773         V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
1774         V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
1775         V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
1776         V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
1777         V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
1778         V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
1779         V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
1780         V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
1781         V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
1782         V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
1783         V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
1784         V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
1785         V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
1786         V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
1787         V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
1788         VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
1789         VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
1790         VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
1791         VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
1792         VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
1793         VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
1794         VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
1795         VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
1796         VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
1797         VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
1798         VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
1799         VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
1800         V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
1801         V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
1802         V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
1803         V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
1804         V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
1805         V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
1806         V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
1807
1808 2014-10-28  Jakub Jelinek  <jakub@redhat.com>
1809
1810         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
1811         type for the left shift in CASE_CONVERT case.
1812
1813 2014-10-28  Max Ostapenko  <m.ostapenko@partner.samsung.com>
1814
1815         * asan.h (asan_intercepted_p): New function.
1816         * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
1817         hash value construction.  Call iterative_hash_expr instead of explicit
1818         hash building.
1819         (asan_mem_ref_hasher::equal): Change condition.
1820         (has_mem_ref_been_instrumented): Likewise.
1821         (update_mem_ref_hash_table): Likewise.
1822         (maybe_update_mem_ref_hash_table): New function.
1823         (instrument_strlen_call): Removed.
1824         (get_mem_refs_of_builtin_call): Handle new parameter.
1825         (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
1826         of instrument_mem_region_access if intercepted_p is true.
1827         (instrument_mem_region_access): Instrument only base with len instead of
1828         base and end with 1.
1829         (build_check_stmt): Remove start_instrumented and end_instrumented
1830         parameters.
1831         (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
1832         ASAN_CHECK_END_INSTRUMENTED.  Change ASAN_CHECK_LAST.
1833         (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
1834         * builtins.c (expand_builtin): Include asan.h.  Don't expand string/memory
1835         builtin functions that have interceptors if ASan is enabled.
1836
1837 2014-10-28  Richard Biener  <rguenther@suse.de>
1838
1839         PR middle-end/63665
1840         * fold-const.c (fold_comparison): Properly guard simplifying
1841         against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
1842
1843 2014-10-28  Alan Lawrence  <alan.lawrence@arm.com>
1844
1845         * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
1846         * fold-const.c (const_binop): Likewise.
1847         * cfgexpand.c (expand_debug_expr): Likewise.
1848         * tree-inline.c (estimate_operator_cost): Likewise.
1849         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1850         * optabs.c (optab_for_tree_code): Likewise.
1851         (expand_vec_shift_expr): Likewise, update comment.
1852         * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
1853         * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
1854         * optabs.def: Remove vec_shl_optab.
1855         * doc/md.texi: Remove references to vec_shr_m.
1856
1857 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
1858
1859         * asan.c (report_error_func): Add noabort path.
1860         (check_func): Ditto.  Formatting.
1861         (asan_expand_check_ifn): Handle noabort path.
1862         * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
1863         to default value.
1864         * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
1865         * opts.c (finish_options): Reword comment.
1866         * sanitizer.def: Add noabort ASan builtins.
1867
1868 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
1869
1870         * asan.c (set_asan_shadow_offset): New function.
1871         (asan_shadow_offset): Likewise.
1872         (asan_emit_stack_protection): Call asan_shadow_offset.
1873         (build_shadow_mem_access): Likewise.
1874         * asan.h (set_asan_shadow_offset): Declare.
1875         * common.opt (fasan-shadow-offset): New option.
1876         (frandom-seed): Fixed parameter name.
1877         * doc/invoke.texi (fasan-shadow-offset): Describe new option.
1878         (frandom-seed): Fixed parameter name.
1879         * opts-global.c (handle_common_deferred_options): Handle
1880         -fasan-shadow-offset.
1881         * opts.c (common_handle_option): Likewise.
1882
1883 2014-10-27  Jiong Wang <jiong.wang@arm.com>
1884
1885         PR target/63442
1886         * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
1887
1888 2014-10-27  DJ Delorie  <dj@redhat.com>
1889
1890         * tree.c (build_common_tree_nodes): Don't even store the
1891         __int128 types if they're not supported.
1892
1893 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1894
1895         * config/i386/i386.c (ix86_loop_memcount): Delete.
1896         (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
1897
1898 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1899
1900         * config/i386/i386.c (find_constant_1): Delete.
1901         (find_constant): Use FOR_EACH_SUBRTX.
1902
1903 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1904
1905         * config/i386/i386.c (extended_reg_mentioned_1): Delete.
1906         (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
1907
1908 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1909
1910         * config/i386/i386.c: Include rtl-iter.h
1911         (ix86_check_avx256_register): Take a const_rtx and return a bool.
1912         (ix86_check_avx256_stores): Update call accordingly.
1913         (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
1914         (ix86_avx_u128_mode_needed): Likewise.  Use FOR_EACH_SUBRTX.
1915
1916 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1917
1918         * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
1919         Take an rtx and return a bool.
1920         * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
1921         Use FOR_EACH_SUBRTX_VAR.
1922         * config/alpha/predicates.md (some_small_symbolic_operand): Update
1923         accordingly.
1924
1925 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1926
1927         * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
1928         a bool.
1929         * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
1930         (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX.  Return a bool.
1931
1932 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1933
1934         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
1935         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
1936
1937 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1938
1939         * config/alpha/alpha.c: Include rtl-iter.h.
1940         (split_small_symbolic_operand_1): Delete.
1941         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
1942
1943 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1944
1945         * config/s390/s390.c: Include rtl-iter.h.
1946         (check_dpu): Delete.
1947         (s390_loop_unroll_adjust): Only iterate over patterns.
1948         Use FOR_EACH_SUBRTX.
1949
1950 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1951
1952         * config/spu/spu.c: Include rtl-iter.h
1953         (ea_symbol_ref): Replace with...
1954         (ea_symbol_ref_p): ...this new function.
1955         (spu_legitimate_address_p): Update call accordingly.
1956         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
1957
1958 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1959             Tom Tromey  <tromey@redhat.com>
1960
1961         * aclocal.m4, configure: Rebuild.
1962         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
1963         * configure.ac: Use GCC_ENABLE_PLUGINS.
1964         * stor-layout.c (finish_bitfield_layout): Now public.  Change
1965         argument type to 'tree'.
1966         (finish_record_layout): Update.
1967         * stor-layout.h (finish_bitfield_layout): Declare.
1968
1969 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
1970
1971         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
1972         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
1973         Restore, enable for bigendian, update to use __builtin..._scal...
1974
1975 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
1976
1977         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
1978         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
1979         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
1980         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
1981
1982         * config/aarch64/aarch64-simd.md
1983         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
1984         (reduc_<maxmin_uns>_internal<mode>): ...this.
1985         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
1986         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
1987
1988         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
1989         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
1990         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
1991
1992         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
1993         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
1994         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
1995         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
1996         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
1997         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
1998         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
1999         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
2000
2001 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2002
2003         * config/aarch64/aarch64-simd-builtins.def
2004         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
2005         Remove.
2006         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
2007
2008         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
2009         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
2010
2011         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
2012         (aarch64_reduc_plus_internal<mode>): ...this.
2013
2014         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
2015         (aarch64_reduc_plus_internalv2si): ...this.
2016
2017         (reduc_splus_<mode>/V2F): Rename to...
2018         (aarch64_reduc_plus_internal<mode>): ...this.
2019
2020         * config/aarch64/iterators.md
2021         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
2022         (UNSPEC_ADDV): New.
2023         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
2024
2025         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
2026         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
2027         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
2028         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
2029         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
2030
2031 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2032
2033         PR tree-optimization/61114
2034         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
2035         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
2036
2037         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
2038         back to old reduc_... + BIT_FIELD_REF only if not.
2039
2040         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
2041         return the reduce-to-scalar (reduc_..._scal) optab.
2042         (scalar_reduc_to_vector): New.
2043
2044         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
2045         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
2046         New.
2047
2048         * optabs.h (scalar_reduc_to_vector): Declare.
2049
2050         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
2051         to either scalar or vector.
2052
2053 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2054
2055         PR tree-optimization/61114
2056         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
2057         extract_bit_field around optab result.
2058
2059         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
2060         scalar not vector.
2061
2062         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
2063         for REDUC_{MIN,MAX,PLUS}_EXPR.
2064
2065         * tree-vect-loop.c (vect_analyze_loop): Update comment.
2066         (vect_create_epilog_for_reduction): For direct vector reduction, use
2067         result of tree code directly without extract_bit_field.
2068
2069         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
2070         comment.
2071
2072 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
2073
2074         * basic-block.h: Remove all includes.
2075         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
2076         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
2077         * Makefile.in (GTFILES): Add cfg.h to list.
2078         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
2079         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
2080         * genconditions.c (write_header): Add predict.h and basic-block.h to
2081         lits of includes.
2082         * genemit.c (main): Ditto.
2083         * genpreds.c (write_insn_preds_c): Ditto.
2084         * genrecog.c (write_header): Ditto.
2085         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
2086         to list of includes.
2087         * alias.c: Adjust include files.
2088         * asan.c: Ditto.
2089         * auto-inc-dec.c: Ditto.
2090         * auto-profile.c: Ditto.
2091         * bb-reorder.c: Ditto.
2092         * bt-load.c: Ditto.
2093         * builtins.c: Ditto.
2094         * caller-save.c: Ditto.
2095         * calls.c: Ditto.
2096         * cfg.c: Ditto.
2097         * cfganal.c: Ditto.
2098         * cfgbuild.c: Ditto.
2099         * cfgcleanup.c: Ditto.
2100         * cfgexpand.c: Ditto.
2101         * cfghooks.c: Ditto.
2102         * cfgloop.c: Ditto.
2103         * cfgloopanal.c: Ditto.
2104         * cfgloopmanip.c: Ditto.
2105         * cfgrtl.c: Ditto.
2106         * cgraphbuild.c: Ditto.
2107         * cgraphclones.c: Ditto.
2108         * cgraphunit.c: Ditto.
2109         * combine-stack-adj.c: Ditto.
2110         * combine.c: Ditto.
2111         * compare-elim.c: Ditto.
2112         * coverage.c: Ditto.
2113         * cprop.c: Ditto.
2114         * cse.c: Ditto.
2115         * cselib.c: Ditto.
2116         * data-streamer-in.c: Ditto.
2117         * data-streamer-out.c: Ditto.
2118         * data-streamer.c: Ditto.
2119         * dce.c: Ditto.
2120         * ddg.c: Ditto.
2121         * ddg.h: Ditto.
2122         * df-core.c: Ditto.
2123         * df-problems.c: Ditto.
2124         * df-scan.c: Ditto.
2125         * df.h: Ditto.
2126         * dojump.c: Ditto.
2127         * dominance.c: Ditto.
2128         * domwalk.c: Ditto.
2129         * dse.c: Ditto.
2130         * dwarf2cfi.c: Ditto.
2131         * emit-rtl.c: Ditto.
2132         * et-forest.c: Ditto.
2133         * except.c: Ditto.
2134         * expmed.c: Ditto.
2135         * expr.c: Ditto.
2136         * final.c: Ditto.
2137         * fold-const.c: Ditto.
2138         * function.c: Ditto.
2139         * fwprop.c: Ditto.
2140         * gcc-plugin.h: Ditto.
2141         * gcse.c: Ditto.
2142         * generic-match-head.c: Ditto.
2143         * ggc-page.c: Ditto.
2144         * gimple-builder.c: Ditto.
2145         * gimple-expr.c: Ditto.
2146         * gimple-fold.c: Ditto.
2147         * gimple-iterator.c: Ditto.
2148         * gimple-low.c: Ditto.
2149         * gimple-match-head.c: Ditto.
2150         * gimple-pretty-print.c: Ditto.
2151         * gimple-ssa-isolate-paths.c: Ditto.
2152         * gimple-ssa-strength-reduction.c: Ditto.
2153         * gimple-streamer-in.c: Ditto.
2154         * gimple-streamer-out.c: Ditto.
2155         * gimple-streamer.h: Ditto.
2156         * gimple-walk.c: Ditto.
2157         * gimple.c: Ditto.
2158         * gimplify-me.c: Ditto.
2159         * gimplify.c: Ditto.
2160         * graph.c: Ditto.
2161         * graphite-blocking.c: Ditto.
2162         * graphite-clast-to-gimple.c: Ditto.
2163         * graphite-dependences.c: Ditto.
2164         * graphite-interchange.c: Ditto.
2165         * graphite-isl-ast-to-gimple.c: Ditto.
2166         * graphite-optimize-isl.c: Ditto.
2167         * graphite-poly.c: Ditto.
2168         * graphite-scop-detection.c: Ditto.
2169         * graphite-sese-to-poly.c: Ditto.
2170         * graphite.c: Ditto.
2171         * haifa-sched.c: Ditto.
2172         * hw-doloop.c: Ditto.
2173         * ifcvt.c: Ditto.
2174         * init-regs.c: Ditto.
2175         * internal-fn.c: Ditto.
2176         * ipa-cp.c: Ditto.
2177         * ipa-devirt.c: Ditto.
2178         * ipa-icf-gimple.c: Ditto.
2179         * ipa-icf.c: Ditto.
2180         * ipa-inline-analysis.c: Ditto.
2181         * ipa-inline.c: Ditto.
2182         * ipa-polymorphic-call.c: Ditto.
2183         * ipa-profile.c: Ditto.
2184         * ipa-prop.c: Ditto.
2185         * ipa-pure-const.c: Ditto.
2186         * ipa-reference.c: Ditto.
2187         * ipa-split.c: Ditto.
2188         * ipa-utils.c: Ditto.
2189         * ipa.c: Ditto.
2190         * ira-build.c: Ditto.
2191         * ira-color.c: Ditto.
2192         * ira-conflicts.c: Ditto.
2193         * ira-costs.c: Ditto.
2194         * ira-emit.c: Ditto.
2195         * ira-lives.c: Ditto.
2196         * ira.c: Ditto.
2197         * jump.c: Ditto.
2198         * lcm.c: Ditto.
2199         * loop-doloop.c: Ditto.
2200         * loop-init.c: Ditto.
2201         * loop-invariant.c: Ditto.
2202         * loop-iv.c: Ditto.
2203         * loop-unroll.c: Ditto.
2204         * lower-subreg.c: Ditto.
2205         * lra-assigns.c: Ditto.
2206         * lra-coalesce.c: Ditto.
2207         * lra-constraints.c: Ditto.
2208         * lra-eliminations.c: Ditto.
2209         * lra-lives.c: Ditto.
2210         * lra-spills.c: Ditto.
2211         * lra.c: Ditto.
2212         * lto-cgraph.c: Ditto.
2213         * lto-compress.c: Ditto.
2214         * lto-opts.c: Ditto.
2215         * lto-section-in.c: Ditto.
2216         * lto-section-out.c: Ditto.
2217         * lto-streamer-in.c: Ditto.
2218         * lto-streamer-out.c: Ditto.
2219         * lto-streamer.c: Ditto.
2220         * mcf.c: Ditto.
2221         * mode-switching.c: Ditto.
2222         * modulo-sched.c: Ditto.
2223         * omp-low.c: Ditto.
2224         * optabs.c: Ditto.
2225         * opts-global.c: Ditto.
2226         * passes.c: Ditto.
2227         * postreload-gcse.c: Ditto.
2228         * postreload.c: Ditto.
2229         * predict.c: Ditto.
2230         * print-rtl.c: Ditto.
2231         * profile.c: Ditto.
2232         * recog.c: Ditto.
2233         * ree.c: Ditto.
2234         * reg-stack.c: Ditto.
2235         * regcprop.c: Ditto.
2236         * regcprop.h: Ditto.
2237         * reginfo.c: Ditto.
2238         * regrename.c: Ditto.
2239         * regstat.c: Ditto.
2240         * reload.c: Ditto.
2241         * reload1.c: Ditto.
2242         * reorg.c: Ditto.
2243         * resource.c: Ditto.
2244         * rtlanal.c: Ditto.
2245         * sched-deps.c: Ditto.
2246         * sched-ebb.c: Ditto.
2247         * sched-int.h: Ditto.
2248         * sched-rgn.c: Ditto.
2249         * sched-vis.c: Ditto.
2250         * sel-sched-dump.c: Ditto.
2251         * sel-sched-ir.c: Ditto.
2252         * sel-sched-ir.h: Ditto.
2253         * sel-sched.c: Ditto.
2254         * sese.c: Ditto.
2255         * shrink-wrap.c: Ditto.
2256         * stack-ptr-mod.c: Ditto.
2257         * stmt.c: Ditto.
2258         * store-motion.c: Ditto.
2259         * symtab.c: Ditto.
2260         * toplev.c: Ditto.
2261         * tracer.c: Ditto.
2262         * trans-mem.c: Ditto.
2263         * tree-affine.c: Ditto.
2264         * tree-call-cdce.c: Ditto.
2265         * tree-cfg.c: Ditto.
2266         * tree-cfgcleanup.c: Ditto.
2267         * tree-chrec.c: Ditto.
2268         * tree-complex.c: Ditto.
2269         * tree-data-ref.c: Ditto.
2270         * tree-dfa.c: Ditto.
2271         * tree-eh.c: Ditto.
2272         * tree-emutls.c: Ditto.
2273         * tree-if-conv.c: Ditto.
2274         * tree-inline.c: Ditto.
2275         * tree-into-ssa.c: Ditto.
2276         * tree-loop-distribution.c: Ditto.
2277         * tree-nested.c: Ditto.
2278         * tree-nrv.c: Ditto.
2279         * tree-object-size.c: Ditto.
2280         * tree-outof-ssa.c: Ditto.
2281         * tree-parloops.c: Ditto.
2282         * tree-phinodes.c: Ditto.
2283         * tree-predcom.c: Ditto.
2284         * tree-pretty-print.c: Ditto.
2285         * tree-profile.c: Ditto.
2286         * tree-scalar-evolution.c: Ditto.
2287         * tree-sra.c: Ditto.
2288         * tree-ssa-address.c: Ditto.
2289         * tree-ssa-alias.c: Ditto.
2290         * tree-ssa-ccp.c: Ditto.
2291         * tree-ssa-coalesce.c: Ditto.
2292         * tree-ssa-copy.c: Ditto.
2293         * tree-ssa-copyrename.c: Ditto.
2294         * tree-ssa-dce.c: Ditto.
2295         * tree-ssa-dom.c: Ditto.
2296         * tree-ssa-dse.c: Ditto.
2297         * tree-ssa-forwprop.c: Ditto.
2298         * tree-ssa-ifcombine.c: Ditto.
2299         * tree-ssa-live.c: Ditto.
2300         * tree-ssa-loop-ch.c: Ditto.
2301         * tree-ssa-loop-im.c: Ditto.
2302         * tree-ssa-loop-ivcanon.c: Ditto.
2303         * tree-ssa-loop-ivopts.c: Ditto.
2304         * tree-ssa-loop-manip.c: Ditto.
2305         * tree-ssa-loop-niter.c: Ditto.
2306         * tree-ssa-loop-prefetch.c: Ditto.
2307         * tree-ssa-loop-unswitch.c: Ditto.
2308         * tree-ssa-loop.c: Ditto.
2309         * tree-ssa-math-opts.c: Ditto.
2310         * tree-ssa-operands.c: Ditto.
2311         * tree-ssa-phiopt.c: Ditto.
2312         * tree-ssa-phiprop.c: Ditto.
2313         * tree-ssa-pre.c: Ditto.
2314         * tree-ssa-propagate.c: Ditto.
2315         * tree-ssa-reassoc.c: Ditto.
2316         * tree-ssa-sccvn.c: Ditto.
2317         * tree-ssa-sink.c: Ditto.
2318         * tree-ssa-strlen.c: Ditto.
2319         * tree-ssa-structalias.c: Ditto.
2320         * tree-ssa-tail-merge.c: Ditto.
2321         * tree-ssa-ter.c: Ditto.
2322         * tree-ssa-threadedge.c: Ditto.
2323         * tree-ssa-threadupdate.c: Ditto.
2324         * tree-ssa-uncprop.c: Ditto.
2325         * tree-ssa-uninit.c: Ditto.
2326         * tree-ssa.c: Ditto.
2327         * tree-ssanames.c: Ditto.
2328         * tree-stdarg.c: Ditto.
2329         * tree-streamer-in.c: Ditto.
2330         * tree-streamer-out.c: Ditto.
2331         * tree-streamer.c: Ditto.
2332         * tree-switch-conversion.c: Ditto.
2333         * tree-tailcall.c: Ditto.
2334         * tree-vect-data-refs.c: Ditto.
2335         * tree-vect-generic.c: Ditto.
2336         * tree-vect-loop-manip.c: Ditto.
2337         * tree-vect-loop.c: Ditto.
2338         * tree-vect-patterns.c: Ditto.
2339         * tree-vect-slp.c: Ditto.
2340         * tree-vect-stmts.c: Ditto.
2341         * tree-vectorizer.c: Ditto.
2342         * tree-vrp.c: Ditto.
2343         * tree.c: Ditto.
2344         * tsan.c: Ditto.
2345         * ubsan.c: Ditto.
2346         * valtrack.c: Ditto.
2347         * valtrack.h: Ditto.
2348         * value-prof.c: Ditto.
2349         * var-tracking.c: Ditto.
2350         * varasm.c: Ditto.
2351         * varpool.c: Ditto.
2352         * vtable-verify.c: Ditto.
2353         * web.c: Ditto.
2354         * config/aarch64/aarch64-builtins.c: Ditto.
2355         * config/aarch64/aarch64.c: Ditto.
2356         * config/alpha/alpha.c: Ditto.
2357         * config/arc/arc.c: Ditto.
2358         * config/arm/arm.c: Ditto.
2359         * config/avr/avr.c: Ditto.
2360         * config/bfin/bfin.c: Ditto.
2361         * config/c6x/c6x.c: Ditto.
2362         * config/cr16/cr16.c: Ditto.
2363         * config/cris/cris.c: Ditto.
2364         * config/darwin-c.c: Ditto.
2365         * config/darwin.c: Ditto.
2366         * config/epiphany/epiphany.c: Ditto.
2367         * config/epiphany/mode-switch-use.c: Ditto.
2368         * config/epiphany/resolve-sw-modes.c: Ditto.
2369         * config/fr30/fr30.c: Ditto.
2370         * config/frv/frv.c: Ditto.
2371         * config/h8300/h8300.c: Ditto.
2372         * config/i386/i386.c: Ditto.
2373         * config/i386/winnt.c: Ditto.
2374         * config/ia64/ia64.c: Ditto.
2375         * config/iq2000/iq2000.c: Ditto.
2376         * config/lm32/lm32.c: Ditto.
2377         * config/m32c/m32c.c: Ditto.
2378         * config/m32r/m32r.c: Ditto.
2379         * config/m68k/m68k.c: Ditto.
2380         * config/mcore/mcore.c: Ditto.
2381         * config/mep/mep.c: Ditto.
2382         * config/microblaze/microblaze.c: Ditto.
2383         * config/mips/mips.c: Ditto.
2384         * config/mmix/mmix.c: Ditto.
2385         * config/mn10300/mn10300.c: Ditto.
2386         * config/moxie/moxie.c: Ditto.
2387         * config/msp430/msp430.c: Ditto.
2388         * config/nds32/nds32-cost.c: Ditto.
2389         * config/nds32/nds32-fp-as-gp.c: Ditto.
2390         * config/nds32/nds32-intrinsic.c: Ditto.
2391         * config/nds32/nds32-isr.c: Ditto.
2392         * config/nds32/nds32-md-auxiliary.c: Ditto.
2393         * config/nds32/nds32-memory-manipulation.c: Ditto.
2394         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
2395         * config/nds32/nds32-predicates.c: Ditto.
2396         * config/nds32/nds32.c: Ditto.
2397         * config/nios2/nios2.c: Ditto.
2398         * config/pa/pa.c: Ditto.
2399         * config/pdp11/pdp11.c: Ditto.
2400         * config/rl78/rl78.c: Ditto.
2401         * config/rs6000/rs6000.c: Ditto.
2402         * config/rx/rx.c: Ditto.
2403         * config/s390/s390.c: Ditto.
2404         * config/sh/sh-mem.cc: Ditto.
2405         * config/sh/sh.c: Ditto.
2406         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
2407         * config/sh/sh_treg_combine.cc: Ditto.
2408         * config/sparc/sparc.c: Ditto.
2409         * config/spu/spu.c: Ditto.
2410         * config/stormy16/stormy16.c: Ditto.
2411         * config/tilegx/tilegx.c: Ditto.
2412         * config/tilepro/tilepro.c: Ditto.
2413         * config/v850/v850.c: Ditto.
2414         * config/vax/vax.c: Ditto.
2415         * config/xtensa/xtensa.c: Ditto.
2416
2417 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2418
2419         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
2420         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2421         Remove using preprocessor directives.
2422
2423 2014-10-27  Richard Biener  <rguenther@suse.de>
2424
2425         * match.pd (0 % X): Properly use the iterator iterating over
2426         all modulo operators.
2427         (X % 1): Likewise.
2428
2429 2014-10-27  Richard Biener  <rguenther@suse.de>
2430
2431         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
2432         (lattice): New global.
2433         (fwprop_ssa_val): New function.
2434         (fold_all_stmts): Likewise.
2435         (pass_forwprop::execute): Finally fold all stmts.
2436
2437 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2438
2439         PR c++/53061
2440         * doc/invoke.texi (fmessage-length): Update text to match reality.
2441
2442 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2443
2444         * config/microblaze/microblaze.c: Include rtl-iter.h.
2445         (microblaze_tls_referenced_p_1): Delete.
2446         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
2447
2448 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2449
2450         * config/mips/mips.c (mips_at_reg_p): Delete.
2451         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
2452
2453 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2454
2455         * config/mips/mips.c (mips_record_lo_sum): Replace with...
2456         (mips_record_lo_sums): ...this new function.
2457         (mips_reorg_process_insns): Update accordingly.
2458
2459 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2460
2461         * config/mips/mips.c (mips_sim_insn): Update comment.
2462         (mips_sim_wait_regs_2): Delete.
2463         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
2464
2465 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2466
2467         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
2468         and return a bool.  Iterate over all subrtxes here.
2469         (r10k_needs_protection_p): Update accordingly.
2470
2471 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2472
2473         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
2474         rather than an rtx pointer.  Change type of insn from "void *"
2475         to its real type.  Return bool rather than int.  Iterate over
2476         all subrtxes here.
2477         (r10k_needs_protection_p_store): Update accordingly.
2478         (r10k_needs_protection_p): Likewise.
2479
2480 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2481
2482         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
2483         (mips16_rewrite_pool_refs): Take the insn and constant pool as
2484         parameters.  Iterate over the instruction's pattern and return void.
2485         (mips16_lay_out_constants): Update accordingly.
2486
2487 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2488
2489         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
2490         (mips_refers_to_kernel_reg_p): ...this new function.
2491         (mips_expand_prologue): Update accordingly.
2492
2493 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2494
2495         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
2496         as a parameter instead of the containing MEM.  Iterate over all
2497         subrtxes.  Don't return a value.
2498         (mips_rewrite_small_data): Update call accordingly.
2499
2500 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2501
2502         * config/mips/mips.c: Include rtl-iter.h.
2503         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
2504         Take the context as a parameter instead of the containing MEM.
2505         Iterate over all subrtxes.
2506         (mips_small_data_pattern_p): Update call accordingly.
2507
2508 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2509
2510         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
2511         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
2512
2513 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2514
2515         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
2516         return a bool.  Replace "void *" with specific type.  Iterate
2517         over all subrtxes.
2518         (mep_store_data_bypass_1): Update calls accordingly.
2519
2520 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2521
2522         * config/mep/mep.c: Include rtl-iter.h.
2523         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
2524         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
2525
2526 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2527
2528         * config/xtensa/xtensa.c: Include rtl-iter.h.
2529         (xtensa_tls_referenced_p_1): Delete.
2530         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
2531
2532 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2533
2534         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
2535         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
2536
2537 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2538
2539         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
2540         rtx as argument and return the number of changes.
2541         * config/sh/sh.c: Include rtl-iter.h.
2542         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
2543         over all subrtxes.  Return the number of changes made.
2544         * config/sh/sh.md: Update caller accordingly.
2545
2546 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2547
2548         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
2549         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
2550
2551 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2552
2553         * config/m68k/m68k.c: Include rtl-iter.h.
2554         (m68k_final_prescan_insn_1): Delete.
2555         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
2556
2557 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
2558
2559         PR tree-optimization/63641
2560         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
2561         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
2562
2563 2014-10-25  Alan Modra  <amodra@gmail.com>
2564
2565         PR rtl-optimization/63615
2566         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
2567         decomposing PLUS or MINUS if operands are not placed adjacent
2568         in the "ops" array.
2569
2570 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
2571
2572         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
2573         not allow e500 double in registers not satisyfing
2574         SPE_SIMD_REGNO_P.
2575
2576 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
2577
2578         * dwarf2out.c (declare_in_namespace): Only emit external
2579         declarations in the local scope once.
2580
2581 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
2582
2583         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
2584
2585 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
2586
2587         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
2588         update uses to use new macro arguments.
2589         (__LD3_LANE_FUNC): Likewise.
2590         (__LD4_LANE_FUNC): Likewise.
2591
2592 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
2593
2594         * config/aarch64/aarch64-builtins.c
2595         (aarch64_types_loadstruct_lane_qualifiers): Define.
2596         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
2597         ld4_lane): New builtins.
2598         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
2599         New pattern.
2600         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
2601         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
2602         (aarch64_ld2_lane<mode>): New expand.
2603         (aarch64_ld3_lane<mode>): Likewise.
2604         (aarch64_ld4_lane<mode>): Likewise.
2605         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
2606         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
2607
2608 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
2609
2610         * avr-protos.h (avr_out_sign_extend): New.
2611         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
2612         (avr_out_sign_extend): New function.
2613         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
2614         (extendhisi2, extendpsisi2): Use it.
2615         (adjust_len) [sext]: New.
2616
2617 2014-10-24  Martin Liska  <mliska@suse.cz>
2618
2619         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
2620         added.
2621
2622 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2623
2624         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
2625         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
2626         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
2627         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
2628
2629 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2630
2631         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
2632         do while (0).
2633         * config/aarch64/aarch64.c (is_mem_p): Delete.
2634         (is_memory_op): Rename to...
2635         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
2636         (dep_between_memop_and_curr): Assert that the input is a SET.
2637         (aarch64_madd_needs_nop): Add comment.  Do not call
2638         dep_between_memop_and_curr on NULL body.
2639         (aarch64_final_prescan_insn): Add comment.
2640         Include rtl-iter.h.
2641
2642 2014-10-24  Richard Biener  <rguenther@suse.de>
2643
2644         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
2645         to genmatch BUILD_LIBS instead.
2646
2647 2014-10-24  Richard Biener  <rguenther@suse.de>
2648
2649         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
2650         and build_call_expr_loc.
2651         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
2652         non_lvalue_loc to build it for GENERIC.
2653         (decision_tree::gen_generic): Add location argument to
2654         generic_simplify prototype.
2655         (capture_info): New class.
2656         (capture_info::capture_info): New constructor.
2657         (capture_info::walk_match): New method.
2658         (capture_info::walk_result): New method.
2659         (capture_info::walk_c_expr): New method.
2660         (dt_simplify::gen): Handle preserving side-effects for
2661         GENERIC code generation.
2662         (decision_tree::gen_generic): Do not reject operands
2663         with TREE_SIDE_EFFECTS.
2664         * generic-match.h: New file.
2665         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
2666         * match.pd: Add some constant folding patterns from fold-const.c.
2667         * fold-const.c: Include generic-match.h.
2668         (fold_unary_loc): Dispatch to generic_simplify.
2669         (fold_ternary_loc): Likewise.
2670         (fold_binary_loc): Likewise.  Remove patterns now implemented
2671         by generic_simplify.
2672         * gimple-fold.c (replace_stmt_with_simplification): New function.
2673         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
2674         (no_follow_ssa_edges): New function.
2675         (fold_stmt): New overload with valueization hook.  Use
2676         no_follow_ssa_edges for the overload without hook.
2677         (fold_stmt_inplace): Likewise.
2678         * gimple-fold.h (no_follow_ssa_edges): Declare.
2679
2680 2014-10-24  Felix Yang  <felix.yang@huawei.com>
2681         Jiji Jiang  <jiangjiji@huawei.com>
2682
2683         PR target/63173
2684         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
2685         (__LD3R_FUNC): Ditto.
2686         (__LD4R_FUNC): Ditto.
2687         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
2688          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
2689          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
2690          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
2691          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
2692          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
2693         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
2694          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
2695          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
2696          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
2697          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
2698          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
2699         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
2700          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
2701          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
2702          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
2703          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
2704          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
2705         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
2706         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
2707         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
2708         builtins.
2709         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
2710         (aarch64_simd_ld3r<mode>): Likewise.
2711         (aarch64_simd_ld4r<mode>): Likewise.
2712         (aarch64_ld2r<mode>): New expand.
2713         (aarch64_ld3r<mode>): Likewise.
2714         (aarch64_ld4r<mode>): Likewise.
2715
2716 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2717
2718         * rtlanal.c (get_base_term): Handle SCRATCH.
2719
2720 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2721
2722         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
2723         register pressure.
2724
2725 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2726
2727         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
2728         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
2729         (max_issue, choose_ready, sched_init): Update.
2730
2731 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2732
2733         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
2734         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
2735         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
2736         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
2737         (print_rank_for_schedule_stats): Print out elements of ready list that
2738         ended up on their respective places due to each of the sorting
2739         heuristics.
2740         (ready_sort): Update.
2741         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
2742         (schedule_block): Update.
2743
2744 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2745
2746         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
2747         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
2748         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
2749         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
2750         (model_start_schedule): Update.
2751         (sched_pressure_start_bb): New static function.  Calculate
2752         sched_class_regs_num.
2753         (schedule_block): Use it.
2754         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
2755
2756 2014-10-24  Richard Biener  <rguenther@suse.de>
2757
2758         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
2759         host library and make sure to pull in the required libintl
2760         and libiconv dependencies.
2761
2762 2014-10-24  Richard Biener  <rguenther@suse.de>
2763
2764         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
2765
2766 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
2767
2768         PR bootstrap/63632
2769         * collect2.c (main): Filter out -fno-lto.
2770
2771 2014-10-24  Martin Liska  <mliska@suse.cz>
2772
2773         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
2774         division by zero in dumps.
2775         (sem_item_optimizer::merge_classes): Ditto.
2776
2777 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
2778
2779         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
2780
2781 2014-10-23  Ian Lance Taylor  <iant@google.com>
2782
2783         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
2784
2785 2014-10-23  Ian Lance Taylor  <iant@google.com>
2786
2787         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
2788
2789 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
2790
2791         PR debug/63623
2792         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
2793         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
2794         instead of only handling autoinc in dest if it is a MEM.
2795         (vt_stack_adjustments): Fix up formatting.
2796
2797 2014-10-23  DJ Delorie  <dj@redhat.com>
2798
2799         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
2800         independend of -mlarge.
2801         * config/msp430/constraints.md (Ys): Update comment.
2802
2803 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
2804
2805         PR target/63534
2806         PR target/63618
2807         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
2808         while it is pseudo.
2809         * dse.c (deletable_insn_p): Likewise.
2810
2811 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
2812
2813         * config/avr/avr.c: Fix GNU coding rules and typos.
2814         * config/avr/avr.h: Dito.
2815         * config/avr/avr-c.c: Dito.
2816         * config/avr/avr.md: Dito.
2817
2818 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2819
2820         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
2821         New.
2822         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
2823         iterator.
2824         (define_expand "abs<mode>2"): Ditto.
2825
2826 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2827
2828         * tree-core.h (tree_var_decl): Extend `function_code' field
2829         by one bit, move `regdecl_flag' field to ...
2830         (tree_decl_with_vis): Here.
2831         * tree.h (DECL_STATIC_CHAIN): Update struct name.
2832
2833 2014-10-23  Richard Biener  <rguenther@suse.de>
2834
2835         * Makefile.in (BUILD_CPPLIB): Add.
2836         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
2837         Drop LIBIBERTY.
2838
2839 2014-10-23  Richard Biener  <rguenther@suse.de>
2840
2841         * fold-const.c (fold_binary_loc): Preserve side-effects of
2842         X - X when simplifying to 0.
2843         * stor-layout.c (finish_bitfield_representative): Strip
2844         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
2845
2846 2014-10-22  Richard Biener  <rguenther@suse.de>
2847             Tobias Burnus <burnus@net-b.de>
2848
2849         PR lto/63603
2850         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
2851
2852 2014-10-22  Dehao Chen  <dehao@google.com>
2853
2854         * auto-profile.c: Change order of header files.
2855
2856 2014-10-22  Guozhi Wei  <carrot@google.com>
2857
2858         PR tree-optimization/63530
2859         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
2860         pointer alignment according to DR_MISALIGNMENT.
2861
2862 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
2863
2864         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
2865
2866 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
2867
2868         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
2869         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
2870         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
2871         * dominance.h: New.  Add prototypes for dominance.c.
2872         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
2873         * cfghooks.h: (struct profile_record) Relocate here.
2874         Relocate 2 prototypes from basic-block.h.
2875         * basic-block.h: Move prototypes and struct to new header files.
2876         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
2877         * rtl.h: Move a few prototypes to new header files.
2878         * cfgcleanup.c (merge_memattrs): Make static.
2879         * genopinit.c (main): Add predict.h to list of includes.
2880         * predict.h: Update prototype list to match predict.c.
2881         * predict.c (maybe_hot_count_p): Export.
2882         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
2883         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
2884         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
2885         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
2886         * profile.h: Adjust prototypes.
2887         * ifcvt.h: New.  Relocate struct ce_if_block here.
2888         * ifcvt.c: Include ifcvt.h.
2889         * config/frv/frv.c: Include ifcvt.h.
2890         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
2891
2892 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2893
2894         * lra.c (lra): Remove call to recog_init.
2895         * config/i386/i386.md (preferred_for_speed): New attribute
2896         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
2897         "enabled".  Remove check for sched1.
2898
2899 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2900
2901         * recog.h (recog_data_d): Remove enabled_alternatives.
2902         * recog.c (extract_insn): Don't set it.
2903         * reload.c (find_reloads): Call get_enabled_alternatives.
2904
2905 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2906
2907         * recog.h (constrain_operands): Add an alternative_mask parameter.
2908         (constrain_operands_cached): Likewise.
2909         (get_preferred_alternatives): Declare new form.
2910         * recog.c (get_preferred_alternatives): New bb-taking instance.
2911         (constrain_operands): Take the set of available alternatives as
2912         a parameter.
2913         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
2914         (extract_constrain_insn_cached): Update calls to constrain_operands.
2915         * caller-save.c (reg_save_code): Likewise.
2916         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2917         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2918         * ree.c (combine_reaching_defs): Likewise.
2919         * reload.c (can_reload_into): Likewise.
2920         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
2921         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
2922         (emit_insn_if_valid_for_reload): Likewise.
2923         * reorg.c (fill_slots_from_thread): Likewise.
2924         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
2925         * config/pa/pa.c (pa_can_combine_p): Likewise.
2926         * config/rl78/rl78.c (insn_ok_now): Likewise.
2927         * config/sh/sh.md (define_peephole2): Likewise.
2928         * final.c (final_scan_insn): Update call to constrain_operands_cached.
2929
2930 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2931
2932         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
2933         attributes.
2934         * genattr.c (main): Handle "preferred_for_size" and
2935         "preferred_for_speed" in the same way as "enabled".
2936         * recog.h (bool_attr): New enum.
2937         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
2938         (get_preferred_alternatives, check_bool_attrs): Declare.
2939         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
2940         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
2941         New functions.
2942         (get_enabled_alternatives): Use get_bool_attr_mask.
2943         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
2944         instead of recog_data.enabled_alternatives.
2945         * ira.c (ira_setup_alts): Likewise.
2946         * postreload.c (reload_cse_simplify_operands): Likewise.
2947         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2948         * ira-lives.c (preferred_alternatives): New variable.
2949         (process_bb_node_lives): Set it.
2950         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
2951         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
2952         of recog_data.enabled_alternatives.
2953         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
2954         to preferred_alternatives.
2955         * lra-constraints.c (process_alt_operands): Update accordingly.
2956         * lra.c (lra_set_insn_recog_data): Likewise.
2957         (lra_update_insn_recog_data): Assert check_bool_attrs.
2958
2959 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2960
2961         * recog.h (extract_constrain_insn): Declare.
2962         * recog.c (extract_constrain_insn): New function.
2963         * lra.c (check_rtl): Use it.
2964         * postreload.c (reload_cse_simplify_operands): Likewise.
2965         * reg-stack.c (check_asm_stack_operands): Likewise.
2966         (subst_asm_stack_regs): Likewise.
2967         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
2968         * regrename.c (build_def_use): Likewise.
2969         * sel-sched.c (get_reg_class): Likewise.
2970         * config/arm/arm.c (note_invalid_constants): Likewise.
2971         * config/s390/predicates.md (execute_operation): Likewise.
2972
2973 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
2974             Yury Gribov  <y.gribov@samsung.com>
2975
2976         * common.opt (flag_sanitize_recover): New variable.
2977         (fsanitize-recover): Remove Var/Init, deprecate.
2978         (fsanitize-recover=): New option.
2979         * doc/invoke.texi (fsanitize-recover): Update docs.
2980         * opts.c (finish_options): Use opts->x_flag_sanitize
2981         instead of flag_sanitize.  Prohibit -fsanitize-recover
2982         for anything besides UBSan.  Formatting.
2983         (common_handle_option): Handle OPT_fsanitize_recover_
2984         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
2985         instead of flag_sanitize.
2986         * asan.c (pass_sanopt::execute): Fix up formatting.
2987         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
2988         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
2989         instrument_bool_enum_load, ubsan_instrument_float_cast,
2990         instrument_nonnull_arg, instrument_nonnull_return): Check
2991         bits in flag_sanitize_recover bitmask instead of
2992         flag_sanitize_recover as bool flag.
2993
2994 2014-10-22  Jiong Wang <jiong.wang@arm.com>
2995
2996         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
2997
2998 2014-10-22  Renlin Li <renlin.li@arm.com>
2999
3000         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
3001         __ARM_FEATURE_IDIV__.
3002
3003 2014-10-22  Richard Biener  <rguenther@suse.de>
3004
3005         * Makefile.in (s-match): Adjust dependencies to only catch
3006         match.pd.
3007
3008 2014-10-22  Richard Biener  <rguenther@suse.de>
3009         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3010
3011         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
3012         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
3013         (gimple-match.c): Generate by triggering s-match.
3014         (generic-match.c): Likewise.
3015         (s-match): Rule to build gimple-match.c and generic-match.c
3016         by running the genmatch generator program.
3017         (build/hash-table.o): Dependencies to build hash-table.c for the host.
3018         (build/genmatch.o): Dependencies to build genmatch.
3019         (genprog): Add match.
3020         (build/genmatch): Likewise.
3021         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
3022         * generic-match-head.c: New file.
3023         * gimple-match-head.c: Likewise.
3024         * gimple-match.h: Likewise.
3025         * genmatch.c: Likewise.
3026         * match.pd: Likewise.
3027         * builtins.h (fold_builtin_n): Export.
3028         * builtins.c (fold_builtin_n): Likewise.
3029         * gimple-fold.h (gimple_build): Declare various overloads.
3030         (gimple_simplify): Likewise.
3031         (gimple_convert): Re-implement in terms of gimple_build.
3032         * gimple-fold.c (gimple_convert): Remove.
3033         (gimple_build): New functions.
3034         * doc/match-and-simplify.texi: New file.
3035         * doc/gccint.texi: Add menu item Match and Simplify and include
3036         match-and-simplify.texi.
3037
3038 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
3039
3040         PR target/63594
3041         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
3042         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
3043         even for just TARGET_AVX2, not only for
3044         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
3045         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
3046         otherwise build it using concatenation of 256-bit
3047         broadcast.
3048         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
3049         avx512 broadcast patterns.
3050         (vec_dup<mode>): Likewise.  For avx2 use
3051         v<sseintprefix>broadcast<bcstscalarsuff> instead of
3052         vbroadcast<ssescalarmodesuffix>.
3053         (AVX2_VEC_DUP_MODE): New mode iterator.
3054         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
3055         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
3056
3057         PR target/63542
3058         * config/i386/i386.c (ix86_pic_register_p): Also return
3059         true if x is a hard register with ORIGINAL_REGNO equal to
3060         pic_offset_table_rtx pseudo REGNO.
3061         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
3062         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
3063
3064 2014-10-22  Alan Modra  <amodra@gmail.com>
3065
3066         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
3067         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
3068         (gcc_obstack_init): Use obstack_specify_allocation in place of
3069         _obstack_begin.
3070         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
3071         (regexp_representation): Likewise.
3072         * godump.c (go_output_type): Likewise.
3073
3074 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
3075
3076         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
3077         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
3078         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
3079
3080 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
3081
3082         * doc/invoke.texi (pedantic-errors): Explain better.
3083
3084 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
3085             Vidya Praveen <vidya.praveen@atmel.com>
3086             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
3087             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
3088             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
3089
3090         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
3091         __MEMX for avrtiny.
3092         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
3093         (avr_nonconst_pointer_addrspace): Likewise.
3094         * config/avr/avr.h (AVR_HAVE_LPM): Define.
3095
3096         Added AVRTINY architecture to avr target.
3097         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
3098         (base_arch_s): member added for AVRTINY architecture.
3099         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
3100         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
3101         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
3102         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
3103         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
3104         in callee saved register list.
3105         (avr_option_override): CCP address updated for AVRTINY.
3106         (avr_init_expanders): tmp and zero rtx initialized as per arch.
3107         Reset avr_have_dimode if AVRTINY.
3108         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
3109         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
3110         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
3111         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
3112         (expand_epilogue): Likewise.
3113         (avr_print_operand): Print CCP address in case of AVRTINY also.
3114         <TBD>bad address
3115         (function_arg_regno_p): Check different register list for arguments
3116         if AVRTINY.
3117         (init_cumulative_args): Check for AVRTINY to update number of argument
3118         registers.
3119         (tiny_valid_direct_memory_access_range): New function. Return false if
3120         direct memory access range is not in accepted range for AVRTINY.
3121         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
3122         indirect load (with displacement) for AVRTINY.
3123         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
3124         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
3125         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
3126         indirect load (no displacement) for AVRTINY.
3127         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
3128         indirect load (with displacement) for AVRTINY.
3129         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
3130         indirect load for pre-decrement address.
3131         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
3132         functions. Update instruction length for AVRTINY.
3133         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
3134         SImode.
3135         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
3136         (out_movsi_r_mr): Likewise, for SImode.
3137         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
3138         indirect store (no displacement) for AVRTINY.
3139         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
3140         indirect store (with displacement) for AVRTINY.
3141         (out_movsi_mr_r): Emit out insn for IO address store. Update store
3142         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
3143         store functions.
3144         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
3145         indirect load (no displacement) for PSImode in AVRTINY.
3146         (avr_out_load_psi_reg_disp_tiny): New function to handle register
3147         indirect load (with displacement) for PSImode in AVRTINY.
3148         (avr_out_load_psi): Call PSImode register indirect load functions for
3149         AVRTINY. Update instruction length for AVRTINY.
3150         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
3151         indirect store (no displacement) for PSImode in AVRTINY.
3152         (avr_out_store_psi_reg_disp_tiny): New function to handle register
3153         indirect store (with displacement) for PSImode in AVRTINY.
3154         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
3155         register indirect store functions for AVRTINY.
3156         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
3157         register indirect store (with displacement) for AVRTINY.
3158         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
3159         register indirect store function for QImode in AVRTINY.
3160         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
3161         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
3162         indirect store (no displacement) for HImode in AVRTINY.
3163         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
3164         indirect store (with displacement) for HImode in AVRTINY.
3165         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
3166         indirect store for post-increment address in HImode.
3167         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
3168         register indirect store function for HImode in AVRTINY.
3169         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
3170         in case of AVRTINY.
3171         (order_regs_for_local_alloc): Updated register allocation order for
3172         AVRTINY.
3173         (avr_conditional_register_usage): New function. It is a target hook
3174         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
3175         used registers list and register allocation order for AVRTINY.
3176         (avr_return_in_memory): Update return value size for AVRTINY.
3177         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
3178         for AVRTINY arch and tiny program memory base address.
3179         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
3180         (avr_texinfo): Added description for AVRTINY arch.
3181         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
3182         STATIC_CHAIN_REGNUM for AVRTINY.
3183         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
3184         * config/avr/avr.md: Added constants for tmp/ zero registers in
3185         AVRTINY. Attributes for AVRTINY added.
3186         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
3187         memory access range.
3188         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
3189         in AVRTINY memory access range.
3190         (*mov<mode>): Likewise for HImode and SImode.
3191         (*movsf): Likewise for SFmode.
3192         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
3193         not have sbiw.
3194         * config/avr/avr-protos.h: Added function prototype for
3195         tiny_valid_direct_memory_access_range.
3196         * config/avr/avr-tables.opt: Regenerate.
3197         * gcc/config/avr/t-multilib: Regenerate.
3198         * doc/avr-mmcu.texi: Regenerate.
3199
3200 2014-10-21  Andrew Pinski  <apinski@cavium.com>
3201
3202         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
3203         available option also.
3204         * config/aarch64/aarch64-cost-tables.h: New file.
3205         * config/aarch64/aarch64-cores.def (thunderx): New core.
3206         * config/aarch64/aarch64-tune.md: Regenerate.
3207         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
3208         of config/arm/aarch-cost-tables.h.
3209         (thunderx_regmove_cost): New variable.
3210         (thunderx_tunings): New variable.
3211
3212 2014-10-21  Dehao Chen  <dehao@google.com>
3213
3214         * auto-profile.c: New file.
3215         * auto-profile.h: New file.
3216         * basic-block.h (maybe_hot_count_p): New export func.
3217         (add_working_set): New export func.
3218         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
3219         (GCOV_TAG_AFDO_FUNCTION): Likewise.
3220         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
3221         * opts.c (enable_fdo_optimizations): New func.
3222         (common_handle_option): Handle -fauto-profile flag.
3223         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
3224         (class pass_early_inline): Export early_inliner.
3225         (early_inliner): Likewise.
3226         (pass_early_inline::execute): Likewise.
3227         * ipa-inline.h (early_inliner): Likewise.
3228         * predict.c (maybe_hot_count_p): New export func.
3229         (counts_to_freqs): AutoFDO logic.
3230         (rebuild_frequencies): Likewise.
3231         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
3232         * profile.c (add_working_set): New func.
3233         * Makefile.in (auto-profile.o): New object file.
3234         * passes.def (pass_ipa_auto_profile): New pass.
3235         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
3236         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
3237         * toplev.c (compile_file): AutoFDO logic.
3238         * doc/invoke.texi (-fauto-profile): New doc.
3239         * coverage.c (coverage_init): AutoFDO logic.
3240         * common.opt (-fauto-profile): New flag.
3241         * timevar.def (TV_IPA_AUTOFDO): New tag.
3242         * value-prof.c (gimple_alloc_histogram_value): New export func.
3243         (check_ic_target): Likewise.
3244         * value-prof.h (gimple_alloc_histogram_value): Likewise.
3245         (check_ic_target): Likewise.
3246
3247 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
3248
3249         * cgraph.c (cgraph_c_finalize): New function.
3250         * cgraph.h (cgraph_c_finalize): New prototype.
3251         (cgraphunit_c_finalize): New prototype.
3252         * cgraphunit.c (first_analyzed): Move from analyze_functions
3253         to file-scope.
3254         (first_analyzed_var): Likewise.
3255         (analyze_functions): Move static variables into file-scope.
3256         (cgraphunit_c_finalize): New function.
3257         * diagnostic.c (diagnostic_finish): Free the memory for
3258         context->classify_diagnostic and context->printer, running the
3259         destructor for the latter.
3260         (bt_stop): Use toplev::main.
3261         * dwarf2out.c (dwarf2out_finalize): New function.
3262         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
3263         * gcse.c (gcse_c_finalize): New function.
3264         * gcse.h (gcse_c_finalize): New prototype.
3265         * ggc-page.c (init_ggc): Make idempotent.
3266         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
3267         * ipa-cp.c (ipa_cp_c_finalize): New function.
3268         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
3269         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
3270         a field of class pass_ipa_pure_const.
3271         (node_duplication_hook_holder): Likewise.
3272         (node_removal_hook_holder): Likewise.
3273         (register_hooks): Convert to method...
3274         (pass_ipa_pure_const::register_hooks): ...here, converting
3275         static variable init_p into...
3276         (pass_ipa_pure_const::init_p): ...new field.
3277         (pure_const_generate_summary): Update invocation of
3278         register_hooks to invoke as a method of current_pass.
3279         (pure_const_read_summary): Likewise.
3280         (propagate): Convert to...
3281         (pass_ipa_pure_const::execute): ...method.
3282         * ipa-reference.c (ipa_init): Move static bool init_p from here
3283         to...
3284         (ipa_init_p): New file-scope variable, so that it can be reset
3285         when repeatedly invoking the compiler within one process by...
3286         (ipa_reference_c_finalize): New function.
3287         * ipa-reference.h (ipa_reference_c_finalize): New.
3288         * main.c (main): Replace invocation of toplev_main with
3289         construction of a toplev instance, and call its "main" method.
3290         * params.c (global_init_params): Add an assert that
3291         params_finished is false.
3292         (params_c_finalize): New.
3293         * params.h (params_c_finalize): New.
3294         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
3295         invoking generate_summary, for the benefit of pass_ipa_pure_const.
3296         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
3297         before calling write_summary hook.
3298         (ipa_write_optimization_summaries_1): Likewise when calling
3299         write_optimization_summary hook.
3300         (ipa_read_summaries_1): Likewise for read_summary hook.
3301         (ipa_read_optimization_summaries_1): Likewise for
3302         read_optimization_summary hook.
3303         (execute_ipa_stmt_fixups): Likewise.
3304         * stringpool.c (init_stringpool): Clean up if we're called more
3305         than once.
3306         * timevar.c (timevar_init): Ignore repeated calls.
3307         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
3308         "ipa-prop.h".
3309         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
3310         (initialize_rtl): Move static local "initialized_once"
3311         into file scope, and rename to...
3312         (rtl_initialized): New variable.
3313         (do_compile): Move timevar initialization from here to
3314         toplev::start_timevars.
3315         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
3316         toplev::finalize): New functions.
3317         (toplev_main): Rename to...
3318         (toplev::main): ...this.
3319         * toplev.h (class toplev): New class.
3320
3321 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
3322
3323         * loop-doloop.c: Include loop-unroll.h.
3324
3325 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
3326
3327         * cfg.h: New.  Header file for cfg.c.
3328         * cfganal.h: New.  Header file for cfganal.c.
3329         * lcm.h: New.  Header file for lcm.c.
3330         * loop-unroll.h: New.  Header file for loop-unroll.h.
3331         * cfgloop.h: (unroll_loops): Remove prototype.
3332         * basic-block.h: Move prototypes and structs to new header files.
3333         Include cfg.h, cfganal.h, and lcm.h.
3334         * loop-init.c: Include loop-unroll.h.
3335         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
3336         * modulo-sched.c: Include loop-unroll.h.
3337
3338 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3339
3340         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
3341         MARKER_BYTE_UNKNOWN markers when handling casts.
3342
3343 2014-10-21  Richard Biener  <rguenther@suse.de>
3344
3345         * tree-ssa-phiopt.c (value_replacement): Properly verify we
3346         are the non-singleton PHI.
3347
3348 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
3349
3350         PR tree-optimization/63563
3351         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
3352         if either dra or drb stmts are not normal loads/stores.
3353
3354 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
3355
3356         * config/i386/i386.c (expand_vec_perm_1): Fix
3357         expand_vec_perm_palignr case.
3358         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
3359         VI1_AVX512.
3360
3361 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3362
3363         * cfgloopanal.c (seq_cost): Delete.
3364         * rtl.h (seq_cost): New prototype.
3365         * rtlanal.c (seq_cost): New function.
3366         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
3367
3368 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
3369
3370         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
3371         * basic-block.h: Remove prototypes for cfgrtl.c.
3372         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
3373         prototypes to cfgrtl.h.
3374         * profile.h (profile_info): Add extern export declaration.
3375         * rtl.h: Remove prototypes for cfgrtl.h.
3376         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
3377         * ipa-inline.c: Include profile.h.
3378         * loop-unroll.c: Ditto.
3379         * modulo-sched.c: Ditto.
3380         * postreload-gcse.c: Ditto.
3381         * predict.c: Ditto.
3382         * sched-ebb.c: Ditto.
3383         * sched-rgn.c: Ditto.
3384         * tracer.c: Ditto.
3385         * tree-ssa-loop-ivcanon.c: Ditto.
3386
3387 2014-10-20  Richard Biener  <rguenther@suse.de>
3388
3389         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
3390         operands to get a def operand kind match.  Signal mismatches
3391         to the parent so we can try swapping its operands.
3392         (vect_build_slp_tree): Try swapping operands if they have
3393         a mismatched operand kind.
3394
3395 2014-10-20  Alan Modra  <amodra@gmail.com>
3396
3397         PR debug/60655
3398         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
3399         Increase "ops" array size.  Correct array size tests.  Init
3400         n_constants in loop.  Break out of innermost loop when finding
3401         a trivial CONST expression.
3402
3403 2014-10-20  Martin Liska  <mliska@suse.cz>
3404
3405         PR ipa/63583
3406         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
3407         Gimple tempate string is compared.
3408
3409 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
3410
3411         * varasm.c (const_alias_set): Remove.
3412         (init_varasm_once): Remove initialization of const_alias_set.
3413         (build_constant_desc): Do not set alias set to const_alias_set.
3414
3415 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
3416
3417         * configure: Regenerate.
3418         * configure.ac: Move the test for section attribute specifier "e" in GAS
3419         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
3420         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
3421         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
3422         ifdef HAVE_GAS_SECTION_EXCLUDE.
3423
3424 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
3425
3426         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
3427         match_operand expression.
3428
3429 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3430             David Edelsohn  <dje.gcc@gmail.com>
3431
3432         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
3433         function.
3434         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
3435
3436 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3437
3438         * doc/invoke.texi (Options to Request or Suppress Warnings):
3439         Explain options precedence.
3440         (Wtrampolines): Do not indent paragraph.
3441
3442 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
3443
3444         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
3445         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
3446         (pa_jump_in_call_delay): Likewise.
3447         * config/pa/pa.c (pa_option_override): Remove jump in call delay
3448         override.
3449         (pa_output_millicode_call): Remove support for jump in call delay.
3450         (pa_output_call): Likewise.
3451         (pa_jump_in_call_delay): Delete.
3452         (pa_following_call): Likewise.
3453         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
3454         (uncond_branch): Remove following call check from attribute length.
3455
3456 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
3457
3458         PR target/53513
3459         * config/sh/sh-modes.def (PSI): Remove.
3460         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
3461         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
3462         (sh_reorg): Remove commented out FPSCR code.
3463         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
3464         insn instead of move insn.
3465         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
3466         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
3467         handling.
3468         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
3469         (sh1_builtin_p): Uncomment.
3470         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
3471         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
3472         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
3473         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
3474         (general_movsrc_operand, general_movdst_operand): Disallow
3475         fpscr_operand.
3476         * config/sh/sh.md (FPSCR_FR): New constant.
3477         (push_fpscr): Emit sts_fpscr insn.
3478         (pop_fpscr): Emit lds_fpscr_insn.
3479         (movsi_ie): Disallow FPSCR operands.
3480         (fpu_switch, unnamed related split, extend_psi_si,
3481         truncate_si_psi): Remove insns.
3482         (lds_fpscr, sts_fpscr): New insns.
3483         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
3484
3485 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
3486
3487         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
3488         (clone_inlined_nodes): Do not overwrite the clone if above predicate
3489         returns true.
3490
3491 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
3492
3493         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
3494         (expand_vec_perm_d): Ditto.
3495         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
3496         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
3497         V4DFmode.
3498         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
3499         (ix86_expand_sse_unpack): Handle V64QImode.
3500         (expand_vec_perm_blend): Update conditions for TARGET, handle
3501         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
3502         (expand_vec_perm_pshufb): Handle V64QImode.
3503         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
3504         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
3505         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
3506         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
3507         (ix86_expand_vecop_qihi): Handle V64QImode.
3508         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
3509         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
3510         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
3511         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
3512         (mul<mode>3): Use VI1_AVX512.
3513         (<sse2_avx2>_packsswb): Ditto.
3514         (<sse2_avx2>_packuswb): Ditto.
3515         (<ssse3_avx2>_pshufb<mode>3): Ditto.
3516         (<shift_insn><mode>3): Ditto.
3517
3518 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
3519
3520         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
3521         conditions to fix bootstrap.
3522
3523 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
3524
3525         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
3526
3527 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3528             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3529             Anna Tikhonova  <anna.tikhonova@intel.com>
3530             Ilya Tocar  <ilya.tocar@intel.com>
3531             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3532             Ilya Verbin  <ilya.verbin@intel.com>
3533             Kirill Yukhin  <kirill.yukhin@intel.com>
3534             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3535
3536         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
3537         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
3538         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
3539         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
3540         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
3541         (define_expand "vec_init<mode>"): Use VF48_I1248.
3542
3543 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3544             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3545             Anna Tikhonova  <anna.tikhonova@intel.com>
3546             Ilya Tocar  <ilya.tocar@intel.com>
3547             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3548             Ilya Verbin  <ilya.verbin@intel.com>
3549             Kirill Yukhin  <kirill.yukhin@intel.com>
3550             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3551
3552         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
3553         expand_sse2_mulvxdi3.
3554
3555 2014-10-17  Richard Biener  <rguenther@suse.de>
3556
3557         * fold-const.c (fold_comparison): Remove redundant constant
3558         folding and operand swapping.
3559         (fold_binary_loc): Do comparison operand swapping here.
3560         (fold_ternary_loc): Canonicalize operand order for
3561         commutative ternary operations.
3562         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
3563         and FMA_EXPR.
3564
3565 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
3566
3567         PR tree-optimization/63464
3568         * gimple.h (gimple_seq_discard): New prototype.
3569         * gimple.c: Include stringpool.h and tree-ssanames.h.
3570         (gimple_seq_discard): New function.
3571         * optabs.h (lshift_cheap_p): New prototype.
3572         * optabs.c (lshift_cheap_p): New function, moved from...
3573         * tree-switch-conversion.c (lshift_cheap_p): ... here.
3574         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
3575         (reassoc_branch_fixups): New variable.
3576         (update_range_test): Add otherrangep and seq arguments.
3577         Unshare exp.  If otherrange is NULL, use for other ranges
3578         array of pointers pointed by otherrangep instead.
3579         Emit seq before gimplified statements for tem.
3580         (optimize_range_tests_diff): Adjust update_range_test
3581         caller.
3582         (optimize_range_tests_xor): Likewise.  Fix up comment.
3583         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
3584         functions.
3585         (optimize_range_tests): Adjust update_range_test caller.
3586         Call optimize_range_tests_to_bit_test.
3587         (branch_fixup): New function.
3588         (execute_reassoc): Call branch_fixup.
3589
3590         PR tree-optimization/63302
3591         * tree-ssa-reassoc.c (optimize_range_tests_xor,
3592         optimize_range_tests_diff): Use !integer_pow2p () instead of
3593         tree_log2 () < 0.
3594
3595 2014-10-17  Martin Liska  <mliska@suse.cz>
3596
3597         * ipa-icf.c (sem_function::merge): Local flags are set to false
3598         to enforce equal calling convention to be used.
3599         * opts.c (common_handle_option): Indentation fix.
3600
3601 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
3602
3603         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
3604
3605 2014-10-17  Tom de Vries  <tom@codesourcery.com>
3606
3607         PR rtl-optimization/61605
3608         * regcprop.c (copyprop_hardreg_forward_1): Use
3609         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
3610
3611 2014-10-17  Tom de Vries  <tom@codesourcery.com>
3612
3613         PR rtl-optimization/61605
3614         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
3615         notice stores for noops.  Don't regard noops as copies.
3616
3617 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
3618
3619         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
3620         register in a special way.
3621         (__cpuid_count): Ditto.
3622         * config/i386/driver-i386.h: Protect with
3623         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
3624         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
3625         is required to compile the function.
3626
3627 2014-10-16  DJ Delorie  <dj@redhat.com>
3628
3629         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
3630         integers.
3631
3632         * config/rs6000/rs6000-c.c (rid_int128): New.
3633         (rs6000_macro_to_expand): Use instead of RID_INT128.
3634
3635 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
3636
3637         * function.h: Flatten file.  Remove includes, adjust prototypes to
3638         reflect only what is in function.h.
3639         (enum direction, struct args_size, struct locate_and_pad_arg_data,
3640         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
3641         from expr.h.
3642         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
3643         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
3644         prototypes to predict.h.
3645         (init_varasm_status): Move prototype to varasm.h.
3646         * expr.h: Adjust include files.
3647         (enum direction, struct args_size, struct locate_and_pad_arg_data,
3648         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
3649         to function.h.
3650         (locate_and_pad_parm): Move prototype to function.h.
3651         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
3652         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
3653         assign_temp, reposition_prologue_and_epilogue_notes,
3654         prologue_epilogue_contains, sibcall_epilogue_contains,
3655         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
3656         set_return_jump_label): Move prototypes to function.h.
3657         * predict.h (optimize_function_for_size_p,
3658         optimize_function_for_speed_p): Relocate prototypes from function.h.
3659         * shrink-wrap.h (emit_return_into_block, active_insn_between,
3660         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
3661         function.h.
3662         * varasm.h (init_varasm_status): Relocate prototype from function.h.
3663         * genattrtab.c (write_header): Add predict.h to include list.
3664         * genconditions.c (write_header): Add predict.h to include list.
3665         * genemit.c (main): Adjust header file includes.
3666         * gengtype.c (ifiles): Add flattened function.h header files.
3667         * genoutput.c (output_prologue): Add predict.h to include list.
3668         * genpreds.c (write_insn_preds_c): Adjust header file includes.
3669         * genrecog.c (write_header): Add flattened function.h header files.
3670         * alias.c: Adjust include files.
3671         * auto-inc-dec.c: Likewise.
3672         * basic-block.h: Likewise.
3673         * bb-reorder.c: Likewise.
3674         * bt-load.c: Likewise.
3675         * builtins.c: Likewise.
3676         * caller-save.c: Likewise.
3677         * calls.c: Likewise.
3678         * cfgbuild.c: Likewise.
3679         * cfgcleanup.c: Likewise.
3680         * cfgexpand.c: Likewise.
3681         * cfgloop.c: Likewise.
3682         * cfgloop.h: Likewise.
3683         * cfgrtl.c: Likewise.
3684         * cgraph.h: Likewise.
3685         * cgraphclones.c: Likewise.
3686         * cgraphunit.c: Likewise.
3687         * combine-stack-adj.c: Likewise.
3688         * combine.c: Likewise.
3689         * coverage.c: Likewise.
3690         * cprop.c: Likewise.
3691         * cse.c: Likewise.
3692         * cselib.c: Likewise.
3693         * dbxout.c: Likewise.
3694         * ddg.c: Likewise.
3695         * df-core.c: Likewise.
3696         * df-problems.c: Likewise.
3697         * df-scan.c: Likewise.
3698         * dojump.c: Likewise.
3699         * dwarf2cfi.c: Likewise.
3700         * dwarf2out.c: Likewise.
3701         * emit-rtl.c: Likewise.
3702         * except.c: Likewise.
3703         * explow.c: Likewise.
3704         * expr.c: Likewise.
3705         * final.c: Likewise.
3706         * function.c: Likewise.
3707         * gcse.c: Likewise.
3708         * gimple-fold.c: Likewise.
3709         * gimple-low.c: Likewise.
3710         * gimple-streamer.h: Likewise.
3711         * haifa-sched.c: Likewise.
3712         * ifcvt.c: Likewise.
3713         * ira.c: Likewise.
3714         * jump.c: Likewise.
3715         * lcm.c: Likewise.
3716         * loop-invariant.c: Likewise.
3717         * lra-assigns.c: Likewise.
3718         * lra-coalesce.c: Likewise.
3719         * lra-constraints.c: Likewise.
3720         * lra-eliminations.c: Likewise.
3721         * lra-lives.c: Likewise.
3722         * lra-spills.c: Likewise.
3723         * lra.c: Likewise.
3724         * lto-cgraph.c: Likewise.
3725         * lto-section-in.c: Likewise.
3726         * lto-section-out.c: Likewise.
3727         * lto-streamer-in.c: Likewise.
3728         * lto-streamer-out.c: Likewise.
3729         * mode-switching.c: Likewise.
3730         * modulo-sched.c: Likewise.
3731         * omp-low.c: Likewise.
3732         * optabs.c: Likewise.
3733         * passes.c: Likewise.
3734         * postreload-gcse.c: Likewise.
3735         * postreload.c: Likewise.
3736         * predict.c: Likewise.
3737         * profile.c: Likewise.
3738         * recog.c: Likewise.
3739         * ree.c: Likewise.
3740         * reg-stack.c: Likewise.
3741         * regcprop.c: Likewise.
3742         * reginfo.c: Likewise.
3743         * regrename.c: Likewise.
3744         * reload.c: Likewise.
3745         * reload1.c: Likewise.
3746         * reorg.c: Likewise.
3747         * resource.c: Likewise.
3748         * rtlanal.c: Likewise.
3749         * sched-deps.c: Likewise.
3750         * sched-ebb.c: Likewise.
3751         * sched-rgn.c: Likewise.
3752         * sel-sched-dump.c: Likewise.
3753         * sel-sched-ir.c: Likewise.
3754         * sel-sched.c: Likewise.
3755         * shrink-wrap.c: Likewise.
3756         * simplify-rtx.c: Likewise.
3757         * statistics.c: Likewise.
3758         * stmt.c: Likewise.
3759         * stor-layout.c: Likewise.
3760         * store-motion.c: Likewise.
3761         * symtab.c: Likewise.
3762         * targhooks.c: Likewise.
3763         * toplev.c: Likewise.
3764         * trans-mem.c: Likewise.
3765         * tree-cfg.c: Likewise.
3766         * tree-cfgcleanup.c: Likewise.
3767         * tree-dfa.c: Likewise.
3768         * tree-eh.c: Likewise.
3769         * tree-inline.c: Likewise.
3770         * tree-into-ssa.c: Likewise.
3771         * tree-nested.c: Likewise.
3772         * tree-nrv.c: Likewise.
3773         * tree-profile.c: Likewise.
3774         * tree-ssa-alias.c: Likewise.
3775         * tree-ssa-ccp.c: Likewise.
3776         * tree-ssa-copy.c: Likewise.
3777         * tree-ssa-copyrename.c: Likewise.
3778         * tree-ssa-dom.c: Likewise.
3779         * tree-ssa-operands.c: Likewise.
3780         * tree-ssa-propagate.c: Likewise.
3781         * tree-ssa-structalias.c: Likewise.
3782         * tree-ssa-tail-merge.c: Likewise.
3783         * tree-ssa-threadedge.c: Likewise.
3784         * tree-ssa-threadupdate.c: Likewise.
3785         * tree-ssa-uncprop.c: Likewise.
3786         * tree-ssa-uninit.c: Likewise.
3787         * tree-ssa.c: Likewise.
3788         * tree-stdarg.c: Likewise.
3789         * tree-tailcall.c: Likewise.
3790         * tree.c: Likewise.
3791         * tsan.c: Likewise.
3792         * valtrack.c: Likewise.
3793         * varasm.c: Likewise.
3794         * vmsdbgout.c: Likewise.
3795         * web.c: Likewise.
3796         * config/aarch64/aarch64.c: Add flattened includes from function.h.
3797         * config/alpha/alpha.c: Likewise.
3798         * config/arc/arc.c: Likewise.
3799         * config/arm/arm.c: Likewise.
3800         * config/avr/avr-log.c: Likewise.
3801         * config/avr/avr.c: Likewise.
3802         * config/bfin/bfin.c: Likewise.
3803         * config/c6x/c6x.c: Likewise.
3804         * config/cr16/cr16.c: Likewise.
3805         * config/cris/cris.c: Likewise.
3806         * config/darwin.c: Likewise.
3807         * config/epiphany/epiphany.c: Likewise.
3808         * config/epiphany/mode-switch-use.c: Likewise.
3809         * config/epiphany/resolve-sw-modes.c: Likewise.
3810         * config/fr30/fr30.c: Likewise.
3811         * config/frv/frv.c: Likewise.
3812         * config/h8300/h8300.c: Likewise.
3813         * config/i386/i386.c: Likewise.
3814         * config/ia64/ia64.c: Likewise.
3815         * config/iq2000/iq2000.c: Likewise.
3816         * config/lm32/lm32.c: Likewise.
3817         * config/m32c/m32c.c: Likewise.
3818         * config/m32r/m32r.c: Likewise.
3819         * config/m68k/m68k.c: Likewise.
3820         * config/mcore/mcore.c: Likewise.
3821         * config/mep/mep-pragma.c: Likewise.
3822         * config/mep/mep.c: Likewise.
3823         * config/microblaze/microblaze.c: Likewise.
3824         * config/mips/mips.c: Likewise.
3825         * config/mmix/mmix.c: Likewise.
3826         * config/mn10300/mn10300.c: Likewise.
3827         * config/moxie/moxie.c: Likewise.
3828         * config/msp430/msp430.c: Likewise.
3829         * config/nds32/nds32-cost.c: Likewise.
3830         * config/nds32/nds32-fp-as-gp.c: Likewise.
3831         * config/nds32/nds32-intrinsic.c: Likewise.
3832         * config/nds32/nds32-isr.c: Likewise.
3833         * config/nds32/nds32-md-auxiliary.c: Likewise.
3834         * config/nds32/nds32-memory-manipulation.c: Likewise.
3835         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3836         * config/nds32/nds32-predicates.c: Likewise.
3837         * config/nds32/nds32.c: Likewise.
3838         * config/nios2/nios2.c: Likewise.
3839         * config/pa/pa.c: Likewise.
3840         * config/pdp11/pdp11.c: Likewise.
3841         * config/rl78/rl78.c: Likewise.
3842         * config/rs6000/rs6000.c: Likewise.
3843         * config/rx/rx.c: Likewise.
3844         * config/s390/s390.c: Likewise.
3845         * config/score/score.c: Likewise.
3846         * config/sh/sh.c: Likewise.
3847         * config/sparc/sparc.c: Likewise.
3848         * config/spu/spu.c: Likewise.
3849         * config/stormy16/stormy16.c: Likewise.
3850         * config/tilegx/tilegx.c: Likewise.
3851         * config/tilepro/tilepro.c: Likewise.
3852         * config/v850/v850.c: Likewise.
3853         * config/vax/vax.c: Likewise.
3854         * config/xtensa/xtensa.c: Likewise.
3855
3856 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
3857
3858         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
3859         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
3860
3861 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
3862
3863         * config/sh/sh-protos.h (fldi_ok): Remove.
3864         * config/sh/sh.c (fldi_ok): Likewise.
3865         (sh_secondary_reload): Don't use fldi_ok.
3866         * config/sh/constraints.md (G constraint, H constraint): Don't use
3867         fldi_ok.
3868
3869 2014-10-16  Martin Liska  <mliska@suse.cz>
3870
3871         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
3872         Cast to unsigned long.
3873         (sem_item_optimizer::dump_cong_classes): Likewise.
3874
3875 2014-10-16  Tom de Vries  <tom@codesourcery.com>
3876
3877         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
3878         with SSA_NAME_IN_FREELIST.
3879
3880 2014-10-16  Richard Biener  <rguenther@suse.de>
3881
3882         PR middle-end/63554
3883         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
3884         (fold_builtin_strncat_chk): Move ...
3885         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
3886         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
3887
3888 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
3889
3890         PR target/59401
3891         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
3892         GBR to 0.
3893
3894 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3895             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3896             Anna Tikhonova  <anna.tikhonova@intel.com>
3897             Ilya Tocar  <ilya.tocar@intel.com>
3898             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3899             Ilya Verbin  <ilya.verbin@intel.com>
3900             Kirill Yukhin  <kirill.yukhin@intel.com>
3901             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3902
3903         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
3904         V64QI modes.
3905
3906 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3907             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3908             Anna Tikhonova  <anna.tikhonova@intel.com>
3909             Ilya Tocar  <ilya.tocar@intel.com>
3910             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3911             Ilya Verbin  <ilya.verbin@intel.com>
3912             Kirill Yukhin  <kirill.yukhin@intel.com>
3913             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3914
3915         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
3916         V16SI, V32HI, V64QI modes.
3917
3918 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
3919
3920         PR target/53513
3921         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
3922         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
3923
3924         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
3925         to match fp insn patterns.
3926         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
3927         list.
3928         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
3929         expand_df_unop, expand_df_binop): Remove.
3930         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
3931         FPSCR_STAT_REG as not call clobbered.
3932         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
3933         invoking fpscr_set_from_mem.
3934
3935         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
3936         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
3937         FPSCR_STAT_REG.
3938         (REGISTER_NAMES): Adjust.
3939         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
3940         (FIRST_PSEUDO_REGISTER): Increase to 156.
3941         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
3942         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
3943         FPSCR_STAT_REG.
3944         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
3945         FPSCR_MODES_REG and FPSCR_STAT_REG.
3946         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
3947
3948         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
3949         FPSCR_SZ): Add new constants.
3950         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
3951
3952         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
3953         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
3954         Use TARGET_FPU_ANY condition.
3955         (fpu_switch peephole2): Remove.
3956         (fpu_switch split): Use simple_mem_operand to capture the mem and
3957         adjust split implementation.
3958         (extend_psi_si, truncate_si_psi): New insns.
3959         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
3960         set of FPSCR_MODES_REG.
3961
3962         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
3963         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
3964         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
3965         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
3966         call_value_compact, call_value_compact_rettramp, call,
3967         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
3968         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
3969         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
3970         sibcall_value_compact, sibcall_value, call_value_pop_compact,
3971         call_value_pop_compact_rettramp, various unnamed splits):
3972         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
3973         function uses.
3974
3975         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
3976         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
3977         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
3978         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
3979         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
3980
3981         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
3982         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
3983         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
3984         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
3985         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
3986         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
3987         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
3988
3989 2014-10-16  Martin Liska  <mliska@suse.cz>
3990             Jan Hubicka  <hubicka@ucw.cz>
3991
3992         * Makefile.in: New object files included.
3993         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
3994         is printed.
3995         (verify_edge_corresponds_to_fndecl): More sensitive verification
3996         of nodes that are merged by IPA ICF.
3997         * cgraph.h (cgraph_node::num_references): New function.
3998         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
3999         * common.opt: New options ipa-icf, ipa-icf-functions and
4000         ipa-icf-variables introduced.
4001         * doc/invoke.texi: Documentation of new options introduced.
4002         * ipa-icf-gimple.c: New file.
4003         * ipa-icf-gimple.h: New file.
4004         * ipa-icf.c: New file.
4005         * ipa-icf.h: New file.
4006         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
4007         (input_overwrite_node): Likewise.
4008         * lto-section-in.c: New icf section added.
4009         * lto-streamer.h (enum lto_section_type): Likewise.
4010         * opts.c (common_handle_option): New option added.
4011         * passes.def: New pass included.
4012         * timevar.def: Time variable for IPA ICF added.
4013         * tree-pass.h: New IPA ICF pass entry point added.
4014
4015 2014-10-16  Richard Biener  <rguenther@suse.de>
4016
4017         PR tree-optimization/63168
4018         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
4019         latches if after merging they are no longer simple.
4020         * cfghooks.c (merge_blocks): Handle merging a latch block
4021         into another block.
4022
4023 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4024             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4025             Anna Tikhonova  <anna.tikhonova@intel.com>
4026             Ilya Tocar  <ilya.tocar@intel.com>
4027             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4028             Ilya Verbin  <ilya.verbin@intel.com>
4029             Kirill Yukhin  <kirill.yukhin@intel.com>
4030             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4031
4032         * config/i386/sse.md
4033         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
4034         support AVX-512VL instructions.
4035
4036 2014-10-16  DJ Delorie  <dj@redhat.com>
4037
4038         * tree-core.h: Fix comment to not assume pointers are multiples of
4039         bytes.
4040
4041 2014-10-15  Tom Tromey  <tromey@redhat.com>
4042
4043         * timevar.h (class auto_timevar): New class.
4044
4045 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
4046
4047         PR go/59432
4048         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4049         Remove the second alternative.
4050         (regprefix): Remove mode attribute.
4051         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
4052         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
4053
4054         Revert:
4055         2013-11-05  Ian Lance Taylor  <iant@google.com>
4056
4057         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4058         If possible, add .cfi directives to record change to bx.
4059         * config/i386/i386.c (ix86_emit_cfi): New function.
4060         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
4061
4062 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
4063
4064         PR lto/62026
4065         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
4066         to duplicate.
4067         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
4068         at WPA time.
4069
4070 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
4071
4072         PR rtl-optimization/63448
4073         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
4074         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
4075         (LRA_MAX_INHERITANCE_PASSES): Use it.
4076         (lra_constraint_iter_after_spill): Remove.
4077         (lra_assignment_iter): New.
4078         (lra_assignment_iter_after_spill): New.
4079         * lra-assigns.c (lra_assignment_iter): New.
4080         (lra_assignment_iter_after_spill): New.
4081         (former_reload_pseudo_spill_p): New.
4082         (spill_for): Set up former_reload_pseudo_spill_p.
4083         (setup_live_pseudos_and_spill_after_risky): Ditto.
4084         (assign_by_spills): Ditto.
4085         (lra_assign): Increment lra_assignment_iter.  Print the iteration
4086         number.  Reset former_reload_pseudo_spill_p.  Check
4087         lra_assignment_iter_after_spill.
4088         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
4089         lra_assignment_iter and lra_assignment_iter_after_spill.
4090         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
4091         (lra_constraints): Remove code with
4092         lra_assignment_iter_after_spill.
4093
4094 2014-10-15  Teresa Johnson  <tejohnson@google.com>
4095
4096         PR bootstrap/63432
4097         * tree-ssa-threadupdate.c (recompute_probabilities): Better
4098         overflow checking.
4099
4100 2014-10-15  Renlin Li <renlin.li@arm.com>
4101
4102         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4103         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
4104         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
4105         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
4106
4107 2014-10-15  Richard Biener  <rguenther@suse.de>
4108
4109         * gimple-fold.c (gimple_fold_call): Properly keep virtual
4110         SSA form up-to-date when devirtualizing a call to
4111         __builtin_unreachable and avoid fixing up EH info here.
4112
4113 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4114             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4115             Anna Tikhonova  <anna.tikhonova@intel.com>
4116             Ilya Tocar  <ilya.tocar@intel.com>
4117             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4118             Ilya Verbin  <ilya.verbin@intel.com>
4119             Kirill Yukhin  <kirill.yukhin@intel.com>
4120             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4121
4122         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
4123         to support AVX-512BW.
4124         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
4125         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
4126         (define_insn "*<plusminus_insn><mode>3"): Ditto.
4127         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
4128         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
4129         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
4130         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
4131         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
4132         (define_insn "*andnot<mode>3"): Ditto.
4133         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
4134         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
4135         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4136         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
4137         (define_insn "*abs<mode>2"): Remove masking support.
4138         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
4139         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
4140         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
4141
4142 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4143             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4144             Anna Tikhonova  <anna.tikhonova@intel.com>
4145             Ilya Tocar  <ilya.tocar@intel.com>
4146             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4147             Ilya Verbin  <ilya.verbin@intel.com>
4148             Kirill Yukhin  <kirill.yukhin@intel.com>
4149             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4150
4151         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
4152         * config/i386/sse.md
4153         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
4154         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
4155         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
4156         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
4157         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
4158         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
4159         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
4160
4161 2014-10-15  Renlin Li <renlin.li@arm.com>
4162
4163         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
4164
4165 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
4166
4167         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
4168         MINUS_EXPR in unsigned type to avoid undefined behavior.
4169
4170 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
4171
4172         * stor-layout.c (self_referential_size): Do not promote arguments.
4173
4174 2014-10-15  Marek Polacek  <polacek@redhat.com>
4175
4176         * doc/invoke.texi: Update to reflect that GNU11 is the default
4177         mode for C.
4178         * c-common.h (c_language_kind): Update comment.
4179
4180 2014-10-15  Richard Biener  <rguenther@suse.de>
4181
4182         * hash-table.c: Include bconfig.h if building for the host.
4183         * hash-table.h: Do not include ggc.h on the host but just declare
4184         a few ggc allocation templates.
4185
4186 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
4187             Jeff Law  <law@redhat.com>
4188
4189         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
4190         multiple hard registers, use smaller mode derived from MODE.
4191
4192 2014-10-15  Andreas Schwab  <schwab@suse.de>
4193
4194         * explow.c (convert_memory_address_addr_space_1): Mark in_const
4195         as ATTRIBUTE_UNUSED.
4196
4197 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
4198
4199         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
4200         (decide_unrolling): ... this one.
4201         (peel_loops_completely): Remove.
4202         (decide_peel_simple): Remove.
4203         (decide_peel_once_rolling): Remove.
4204         (decide_peel_completely): Remove.
4205         (peel_loop_simple): Remove.
4206         (peel_loop_completely): Remove.
4207         (unroll_and_peel_loops): Rename to ...
4208         (unroll_loops): ... this one; handle only unrolling.
4209         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
4210         LPT_PEEL_SIMPLE.
4211         (UAP_PEEL): Remove.
4212         (unroll_and_peel_loops): Remove.
4213         (unroll_loops): New.
4214         * passes.def: Replace
4215         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
4216         * loop-init.c (gate_rtl_unroll_and_peel_loops,
4217         rtl_unroll_and_peel_loops): Rename to ...
4218         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
4219         (pass_rtl_unroll_and_peel_loops): Rename to ...
4220         (pass_rtl_unroll_loops): ... this one.
4221         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
4222         (make_pass_rtl_unroll_loops): New.
4223         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
4224         (canonicalize_loop_induction_variables): Update.
4225
4226 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
4227
4228         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
4229         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
4230         !TARGET_HARD_FLOAT_POSTINC.
4231         (*lsip, *ssip): new instructions.
4232
4233 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
4234
4235         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
4236         remove.
4237
4238 2014-10-14  Andrew Pinski  <apinski@cavium.com>
4239
4240         * explow.c (convert_memory_address_addr_space): Rename to ...
4241         (convert_memory_address_addr_space_1): This.  Add in_const argument.
4242         Inside a CONST RTL, permute the conversion and addition of constant
4243         for zero and sign extended pointers.
4244         (convert_memory_address_addr_space): New function.
4245
4246 2014-10-14  Andrew Pinski  <apinski@cavium.com>
4247
4248         Revert:
4249         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4250
4251         PR middle-end/49721
4252         * explow.c (convert_memory_address_addr_space): Also permute the
4253         conversion and addition of constant for zero-extend.
4254
4255 2014-10-14  DJ Delorie  <dj@redhat.com>
4256
4257         * config/msp430/msp430-modes.def (PSI): Add.
4258
4259         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
4260         (msp430_hard_regno_nregs_with_padding): New.
4261         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
4262         (msp430_hard_regno_nregs_has_padding): New.
4263         (msp430_hard_regno_nregs_with_padding): New.
4264         (msp430_unwind_word_mode): Use PSImode instead of SImode.
4265         (msp430_addr_space_legitimate_address_p): New.
4266         (msp430_asm_integer): New.
4267         (msp430_init_dwarf_reg_sizes_extra): New.
4268         (msp430_print_operand): Use X suffix for PSImode even in small model.
4269         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
4270         (PTR_SIZE): ...but 4 bytes for EH.
4271         (SIZE_TYPE): Use __int20.
4272         (PTRDIFF_TYPE): Likewise.
4273         (INCOMING_FRAME_SP_OFFSET): Adjust.
4274         * config/msp430/msp430.md (movqi_topbyte): New.
4275         (movpsi): Use fixed suffixes.
4276         (movsipsi2): Enable for 430X, not large model.
4277         (extendhipsi2): Likewise.
4278         (zero_extendhisi2): Likewise.
4279         (zero_extendhisipsi2): Likewise.
4280         (extend_and_shift1_hipsi2): Likewise.
4281         (extendpsisi2): Likewise.
4282         (*bitbranch<mode>4_z): Fix suffix logic.
4283
4284 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
4285
4286         PR ada/62019
4287         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
4288         do not choke on null node.
4289         <VAR_DECL>: Likewise.
4290
4291 2014-10-14  DJ Delorie  <dj@redhat.com>
4292
4293         * machmode.h (int_n_data_t): New.
4294         (int_n_enabled_p): New.
4295         (int_n_data): New.
4296         * tree.c (int_n_enabled_p): New.
4297         (int_n_trees): New.
4298         (make_or_reuse_type): Check for all __intN types, not just
4299         __int128.
4300         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
4301         entries.
4302         * tree.h (int128_integer_type_node): Remove.
4303         (int128_unsigned_type_node): Remove.
4304         (int_n_trees_t): New.
4305         (int_n_enabled_p): New.
4306         (int_n_trees): New.
4307         * toplev.c (standard_type_bitsize): New.
4308         (do_compile): Check which __intN types are enabled for the current
4309         run.
4310         * builtin-types.def (BT_INT128): Remove.
4311         (BT_UINT128): Remove.
4312         * machmode.def: Add macro to create __int128 for all targets.
4313         * stor-layout.c (mode_for_size): Support __intN types.
4314         (smallest_mode_for_size): Likewise.
4315         (initialize_sizetypes): Support __intN types.
4316         * genmodes.c (struct mode_data): Add int_n field.
4317         (blank_mode): Likewise.
4318         (INT_N): New.
4319         (make_int_n): New.
4320         (emit_insn_modes_h): Count __intN entries and define
4321         NUM_INT_N_ENTS.
4322         (emit_mode_int_n): New.
4323         (emit_insn_modes_c): Call it.
4324         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
4325         types, not just __int128.
4326         * tree-core.h (integer_type_kind): Remove __int128-specific
4327         entries, reserve spots for __intN entries.
4328
4329         * config/msp430/msp430-modes.def (PSI): Add.
4330
4331 2014-10-14  Kito Cheng  <kito@0xlab.org>
4332
4333         * ira.c: Fix typo in comment.
4334         * ira.h: Ditto.
4335         * ira-build.c: Ditto.
4336         * ira-color.c: Ditto.
4337         * ira-emit.c: Ditto.
4338         * ira-int.h: Ditto.
4339         * ira-lives.c: Ditto.
4340
4341 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
4342
4343         PR rtl-optimization/63475
4344         * alias.c (true_dependence_1): Always use get_addr to extract
4345         true address operands from x_addr and mem_addr.  Use extracted
4346         address operands to check for references with alignment ANDs.
4347         Use extracted address operands with find_base_term and
4348         base_alias_check. For noncanonicalized operands call canon_rtx with
4349         extracted address operand.
4350         (write_dependence_1): Ditto.
4351         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
4352
4353 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
4354
4355         PR target/63534
4356         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
4357         __morestack local.
4358
4359 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4361             Anna Tikhonova  <anna.tikhonova@intel.com>
4362             Ilya Tocar  <ilya.tocar@intel.com>
4363             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4364             Ilya Verbin  <ilya.verbin@intel.com>
4365             Kirill Yukhin  <kirill.yukhin@intel.com>
4366             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4367
4368         * config/i386/i386.c
4369         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
4370         (ix86_expand_int_vcond): Ditto.
4371
4372 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4373             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4374             Anna Tikhonova  <anna.tikhonova@intel.com>
4375             Ilya Tocar  <ilya.tocar@intel.com>
4376             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4377             Ilya Verbin  <ilya.verbin@intel.com>
4378             Kirill Yukhin  <kirill.yukhin@intel.com>
4379             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4380
4381         * config/i386/i386.c
4382         (emit_reduc_half): Handle V64QI and V32HI mode.
4383         * config/i386/sse.md
4384         (define_mode_iterator VI_AVX512BW): New.
4385         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
4386
4387 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4388             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4389             Anna Tikhonova  <anna.tikhonova@intel.com>
4390             Ilya Tocar  <ilya.tocar@intel.com>
4391             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4392             Ilya Verbin  <ilya.verbin@intel.com>
4393             Kirill Yukhin  <kirill.yukhin@intel.com>
4394             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4395
4396         * config/i386/sse.md
4397         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
4398
4399 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4400             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4401             Anna Tikhonova  <anna.tikhonova@intel.com>
4402             Ilya Tocar  <ilya.tocar@intel.com>
4403             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4404             Ilya Verbin  <ilya.verbin@intel.com>
4405             Kirill Yukhin  <kirill.yukhin@intel.com>
4406             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4407
4408         * config/i386/i386.c
4409         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
4410         * config/i386/sse.md
4411         (define_mode_iterator VI): Add V64QI and V32HI modes.
4412
4413 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4414             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4415             Anna Tikhonova  <anna.tikhonova@intel.com>
4416             Ilya Tocar  <ilya.tocar@intel.com>
4417             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4418             Ilya Verbin  <ilya.verbin@intel.com>
4419             Kirill Yukhin  <kirill.yukhin@intel.com>
4420             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4421
4422         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
4423
4424 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4425             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4426             Anna Tikhonova  <anna.tikhonova@intel.com>
4427             Ilya Tocar  <ilya.tocar@intel.com>
4428             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4429             Ilya Verbin  <ilya.verbin@intel.com>
4430             Kirill Yukhin  <kirill.yukhin@intel.com>
4431             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4432
4433         * config/i386/sse.md
4434         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
4435         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
4436
4437 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4439             Anna Tikhonova  <anna.tikhonova@intel.com>
4440             Ilya Tocar  <ilya.tocar@intel.com>
4441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4442             Ilya Verbin  <ilya.verbin@intel.com>
4443             Kirill Yukhin  <kirill.yukhin@intel.com>
4444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4445
4446         * config/i386/sse.md
4447         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
4448         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
4449
4450 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4451             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4452             Anna Tikhonova  <anna.tikhonova@intel.com>
4453             Ilya Tocar  <ilya.tocar@intel.com>
4454             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4455             Ilya Verbin  <ilya.verbin@intel.com>
4456             Kirill Yukhin  <kirill.yukhin@intel.com>
4457             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4458
4459         * config/i386/sse.md
4460         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
4461         (define_mode_iterator VI2_AVX2): Add V32HI mode.
4462         (define_expand "mul<mode>3<mask_name>"): Add masking.
4463         (define_insn "*mul<mode>3<mask_name>"): Ditto.
4464         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
4465         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
4466         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
4467         (define_mode_attr SDOT_PMADD_SUF): Ditto.
4468         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
4469         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
4470         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
4471         (define_insn "avx2_packusdw"): Delete.
4472         (define_insn "sse4_1_packusdw"): Ditto.
4473         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
4474
4475 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4476             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4477             Anna Tikhonova  <anna.tikhonova@intel.com>
4478             Ilya Tocar  <ilya.tocar@intel.com>
4479             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4480             Ilya Verbin  <ilya.verbin@intel.com>
4481             Kirill Yukhin  <kirill.yukhin@intel.com>
4482             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4483
4484         * config/i386/sse.md
4485         (define_insn "vec_dup<mode>"): Update constraints.
4486
4487 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4488             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4489             Anna Tikhonova  <anna.tikhonova@intel.com>
4490             Ilya Tocar  <ilya.tocar@intel.com>
4491             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4492             Ilya Verbin  <ilya.verbin@intel.com>
4493             Kirill Yukhin  <kirill.yukhin@intel.com>
4494             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4495
4496         * config/i386/sse.md
4497         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
4498         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
4499         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
4500
4501 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4502             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4503             Anna Tikhonova  <anna.tikhonova@intel.com>
4504             Ilya Tocar  <ilya.tocar@intel.com>
4505             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4506             Ilya Verbin  <ilya.verbin@intel.com>
4507             Kirill Yukhin  <kirill.yukhin@intel.com>
4508             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4509
4510         * config/i386/sse.md
4511         (define_expand "mul<mode>3<mask_name>"): Add masking.
4512
4513 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4514             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4515             Anna Tikhonova  <anna.tikhonova@intel.com>
4516             Ilya Tocar  <ilya.tocar@intel.com>
4517             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4518             Ilya Verbin  <ilya.verbin@intel.com>
4519             Kirill Yukhin  <kirill.yukhin@intel.com>
4520             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4521
4522         * config/i386/sse.md
4523         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
4524         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
4525
4526 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4527             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4528             Anna Tikhonova  <anna.tikhonova@intel.com>
4529             Ilya Tocar  <ilya.tocar@intel.com>
4530             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4531             Ilya Verbin  <ilya.verbin@intel.com>
4532             Kirill Yukhin  <kirill.yukhin@intel.com>
4533             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4534
4535         * config/i386/sse.md
4536         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
4537         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
4538         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
4539         Ditto.
4540
4541 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4542             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4543             Anna Tikhonova  <anna.tikhonova@intel.com>
4544             Ilya Tocar  <ilya.tocar@intel.com>
4545             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4546             Ilya Verbin  <ilya.verbin@intel.com>
4547             Kirill Yukhin  <kirill.yukhin@intel.com>
4548             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4549
4550         * config/i386/sse.md
4551         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
4552         use VF_128_256 mode iterator and update assembler emit code.
4553         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
4554         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
4555         Add masking, use VF_128_256 mode iterator.
4556         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
4557         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
4558         Add masking, use VF_128_256 mode iterator and update assembler emit
4559         code.
4560         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
4561         (define_mode_attr avx512flogicsuff): Delete.
4562         (define_insn "avx512f_<logic><mode>"): Ditto.
4563         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
4564         MODE_TI.
4565         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
4566
4567 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4568             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4569             Anna Tikhonova  <anna.tikhonova@intel.com>
4570             Ilya Tocar  <ilya.tocar@intel.com>
4571             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4572             Ilya Verbin  <ilya.verbin@intel.com>
4573             Kirill Yukhin  <kirill.yukhin@intel.com>
4574             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4575
4576         * config/i386/sse.md
4577         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
4578         (define_expand "vashr<mode>3<mask_name>"): Add masking,
4579         use VI12_128 mode iterator.
4580         (define_expand "ashrv2di3<mask_name>"): New.
4581
4582 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4583             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4584             Anna Tikhonova  <anna.tikhonova@intel.com>
4585             Ilya Tocar  <ilya.tocar@intel.com>
4586             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4587             Ilya Verbin  <ilya.verbin@intel.com>
4588             Kirill Yukhin  <kirill.yukhin@intel.com>
4589             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4590
4591         * config/i386/i386.c
4592         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
4593         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
4594         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
4595         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
4596         CODE_FOR_avx512vl_ucmpv4si3_mask.
4597         * config/i386/sse.md
4598         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
4599         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
4600         (define_insn
4601         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
4602         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
4603         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
4604         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
4605         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
4606         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
4607
4608 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4609             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4610             Anna Tikhonova  <anna.tikhonova@intel.com>
4611             Ilya Tocar  <ilya.tocar@intel.com>
4612             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4613             Ilya Verbin  <ilya.verbin@intel.com>
4614             Kirill Yukhin  <kirill.yukhin@intel.com>
4615             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4616
4617         * config/i386/sse.md
4618         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
4619         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
4620         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
4621         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
4622         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
4623         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
4624         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
4625         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
4626         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
4627
4628 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4629             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4630             Anna Tikhonova  <anna.tikhonova@intel.com>
4631             Ilya Tocar  <ilya.tocar@intel.com>
4632             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4633             Ilya Verbin  <ilya.verbin@intel.com>
4634             Kirill Yukhin  <kirill.yukhin@intel.com>
4635             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4636
4637         * config/i386/sse.md
4638         (define_insn "avx512f_blendm<mode>"): Delete.
4639         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
4640         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
4641         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
4642         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
4643         (define_insn
4644         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
4645         Remove.
4646         (define_insn
4647         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
4648         New.
4649         (define_insn
4650         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
4651         Ditto.
4652         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
4653         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
4654         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
4655         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
4656         Delete.
4657         (define_insn
4658         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
4659         New.
4660         (define_insn
4661         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
4662         Ditto.
4663         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
4664         Delete.
4665         (define_insn
4666         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
4667         New.
4668         (define_insn
4669         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
4670         Ditto.
4671
4672 2014-10-14  Richard Biener  <rguenther@suse.de>
4673
4674         PR tree-optimization/63512
4675         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
4676         modified.
4677
4678 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
4679
4680         PR target/63260
4681         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
4682         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
4683         of FPSCR.
4684         (negsf2_i): Rename to *negsf2_i.
4685         (abssf2_i): Rename to *abssf2_i.
4686         (negdf2_i): Rename to *negdf2_i.
4687         (absdf2_i): Rename to *absdf2_i.
4688
4689 2014-10-14  Felix Yang  <felix.yang@huawei.com>
4690             Jeff Law  <law@redhat.com>
4691
4692         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
4693         "replace" into boolean bitfields; turn member "loop_depth" into a short
4694         integer; add new member "no_equiv" and "reserved".
4695         (no_equiv): Set no_equiv of struct equivalence if register is marked
4696         as having no known equivalence.
4697         (update_equiv_regs): Check all definitions for a multiple-set
4698         register to make sure that the RHS have the same value.
4699
4700 2014-10-13  Richard Henderson  <rth@redhat.com>
4701
4702         * combine-stack-adj.c (no_unhandled_cfa): New.
4703         (maybe_merge_cfa_adjust): New.
4704         (combine_stack_adjustments_for_block): Use them.
4705
4706 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
4707
4708         * Makefile.in (TAGS): Tag ../include files.
4709
4710 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4711
4712         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
4713         to rs6000_dbx_register_number.
4714         (DWARF_FRAME_REGNUM): Redefine as identity map.
4715         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
4716         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
4717         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
4718         argument to handle .debug_frame and .eh_frame directly.  Always
4719         translate SPE high register numbers.  Add special treatment for CR,
4720         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
4721
4722         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
4723         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
4724         (RS6000_USE_DWARF_NUMBERING): Define.
4725         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
4726         (RS6000_USE_DWARF_NUMBERING): Define.
4727         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
4728         (RS6000_USE_DWARF_NUMBERING): Define.
4729         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
4730         (RS6000_USE_DWARF_NUMBERING): Define.
4731         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
4732         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
4733
4734 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
4735
4736         * config/i386/i386.c (ix86_address_cost): Lower cost for
4737         when address contains GOT register.
4738
4739 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4740             Vladimir Makarov  <vmakarov@redhat.com>
4741
4742         PR target/8340
4743         PR middle-end/47602
4744         PR rtl-optimization/55458
4745         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
4746         (ix86_init_pic_reg): New.
4747         (ix86_select_alt_pic_regnum): Add check on pseudo register.
4748         (ix86_save_reg): Likewise.
4749         (ix86_expand_prologue): Remove PIC register initialization
4750         now performed in ix86_init_pic_reg.
4751         (ix86_output_function_epilogue): Add check on pseudo register.
4752         (set_pic_reg_ever_alive): New.
4753         (legitimize_pic_address): Replace df_set_regs_ever_live with new
4754         set_pic_reg_ever_alive.
4755         (legitimize_tls_address): Likewise.
4756         (ix86_pic_register_p): New check.
4757         (ix86_delegitimize_address): Add check on pseudo register.
4758         (ix86_expand_call): Insert move from pseudo PIC register to ABI
4759         defined REAL_PIC_OFFSET_TABLE_REGNUM.
4760         (TARGET_INIT_PIC_REG): New.
4761         (TARGET_USE_PSEUDO_PIC_REG): New.
4762         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
4763         if pic_offset_table_rtx exists.
4764         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
4765         Document.
4766         * doc/tm.texi: Regenerate.
4767         * function.c (assign_parms): Generate pseudo register for PIC.
4768         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
4769         register.
4770         * ira-color.c (color_pass): Add check on pseudo register.
4771         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
4772         register.
4773         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
4774         register.
4775         (ira): Add target specific PIC register initialization.
4776         (do_reload): Keep PIC pseudo register.
4777         * lra-assigns.c (spill_for): Add checks on pseudo register.
4778         * lra-constraints.c (contains_symbol_ref_p): New.
4779         (lra_constraints): Enable lra risky transformations when PIC is pseudo
4780         register.
4781         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
4782         * target.def (use_pseudo_pic_reg): New.
4783         (init_pic_reg): New.
4784
4785 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
4786
4787         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
4788         Remove m_SILVERMONT and m_INTEL from the tune.
4789
4790 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4791
4792         PR libfortran/63471
4793         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4794         when _HPUX_SOURCE is defined.
4795
4796 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
4797
4798         PR tree-optimization/62127
4799         * tree.c (remap_type_1): When remapping array, remap
4800         also its type.
4801
4802 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
4803
4804         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
4805         longer impact parallelization.
4806
4807 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
4808
4809         PR bootstrap/63496
4810         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
4811
4812 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
4813
4814         * asan.c (instrument_derefs): BIT_FIELD_REF added.
4815
4816 2014-10-13  Richard Biener  <rguenther@suse.de>
4817
4818         PR tree-optimization/63419
4819         * gimple-fold.h (gimple_convert): New function.
4820         * gimple-fold.c (gimple_convert): Likewise.
4821         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
4822         to split out required conversions early.
4823
4824 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
4825
4826         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
4827         Add the parts of an insn in reverse order, with the pattern at
4828         the top of the queue.  Detect when we're iterating over a SEQUENCE
4829         pattern and in that case just consider patterns of subinstructions.
4830
4831 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
4832
4833         PR target/59401
4834         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
4835         of rtx.
4836         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
4837         insn walking.
4838         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
4839         address.  Use def chains to handle GBR clobbering call insns.
4840
4841 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
4842
4843         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
4844         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
4845         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
4846         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
4847         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
4848         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
4849         * doc/gty.texi (for_user): Document new option.
4850         * gengtype.c (create_user_defined_type): Don't try to get a struct for
4851         char.
4852         (walk_type): Don't error out on for_user option.
4853         (write_func_for_structure): Emit user marking routines if requested by
4854         for_user option.
4855         (write_local_func_for_structure): Likewise.
4856         (main): Mark types with for_user option as used.
4857         * ggc.h (gt_pch_nx): Add overload for unsigned int.
4858         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
4859         * hash-table.h (ggc_hasher): New struct.
4860         (hash_table::create_ggc): New function.
4861         (gt_pch_nx): New overload for hash_table.
4862
4863 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
4864
4865         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
4866         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
4867         * config/sh/sh.c: Likewise.
4868         * config/sh/sh-mem.cc: Likewise.
4869         * config/sh/sh.md: Likewise.
4870         * config/sh/predicates.md: Likewise.
4871         * config/sh/sync.md: Likewise.
4872
4873 2014-10-11  Martin Liska  <mliska@suse.cz>
4874
4875         PR middle-end/63376
4876         * cgraphunit.c (symbol_table::process_new_functions): Missing call
4877         for call_cgraph_insertion_hooks added.
4878
4879 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
4880
4881         PR c/63495
4882         * stor-layout.c (min_align_of_type): Don't decrease alignment
4883         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
4884         TYPE_USER_ALIGN is set.
4885
4886 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
4887
4888         PR rtl-optimization/63483
4889         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
4890         references when alignment ANDs are involved.
4891         (write_dependence_p): Ditto.
4892         (may_alias_p): Ditto.
4893
4894 2014-10-10  Marek Polacek  <polacek@redhat.com>
4895
4896         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
4897         * doc/invoke.texi: Document -fsanitize=object-size.
4898         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
4899         or it into SANITIZE_UNDEFINED.
4900         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
4901         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
4902         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
4903         * opts.c (common_handle_option): Handle -fsanitize=object-size.
4904         * ubsan.c: Include tree-object-size.h.
4905         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
4906         (ubsan_expand_bounds_ifn): Use false instead of 0.
4907         (ubsan_expand_objsize_ifn): New function.
4908         (instrument_object_size): New function.
4909         (pass_ubsan::execute): Add object size instrumentation.
4910         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
4911
4912 2014-10-10  Richard Henderson  <rth@redhat.com>
4913
4914         PR target/63404
4915         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
4916         Restrict the set of expressions we're willing to move.
4917
4918 2014-10-10  Jeff Law  <law@redhat.com>
4919
4920         * ira.c (struct equivalence): Promote INIT_INSNs field to
4921         an rtx_insn_list.  Add comments.
4922         (no_equiv): Promote LIST to an rtx_insn_list.  Update
4923         testing for and creating the special marker.  Use methods
4924         to extract the insn and next pointers.  Promote INSN to an
4925         rtx_insn.
4926         (update_equiv_regs): Update test for special marker in the
4927         INIT_INSNs list.
4928
4929 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4930
4931         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
4932         * configure: Regenerate.
4933         * config/aarch64/aarch64.c (aarch64_override_options): Handle
4934         TARGET_FIX_ERR_A53_835769_DEFAULT.
4935         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
4936         value to 2.
4937         * doc/install.texi (aarch64*-*-*): Document
4938         new --enable-fix-cortex-a53-835769 option.
4939
4940 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4941             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4942
4943         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
4944         (ADJUST_INSN_LENGTH): Define.
4945         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
4946         * config/aarch64/aarch64.c (is_mem_p): New function.
4947         (is_memory_op): Likewise.
4948         (aarch64_prev_real_insn): Likewise.
4949         (is_madd_op): Likewise.
4950         (dep_between_memop_and_curr): Likewise.
4951         (aarch64_madd_needs_nop): Likewise.
4952         (aarch64_final_prescan_insn): Likewise.
4953         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
4954         and -mno-fix-cortex-a53-835769 options.
4955
4956 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
4957
4958         PR tree-optimization/63464
4959         * tree-switch-conversion.c (struct case_bit_test): Remove
4960         hi and lo fields, add wide_int mask field.
4961         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
4962         hi/lo fields into wide_int mask operations, optimize by pretending
4963         minval to be 0 if maxval is small enough.
4964         (process_switch): Adjust caller.
4965
4966 2014-10-10  Richard Biener  <rguenther@suse.de>
4967
4968         PR tree-optimization/63379
4969         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
4970         a neutral operand for min/max when it is not a reduction chain.
4971
4972 2014-10-10  Richard Biener  <rguenther@suse.de>
4973
4974         PR tree-optimization/63476
4975         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
4976         (BB_LIVE_VOP_ON_EXIT): New define.
4977         (create_expression_by_pieces): Assign VUSEs to stmts.
4978         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
4979         (pass_pre::execute): Assert virtual SSA form is up-to-date
4980         after insertion.
4981
4982 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
4983
4984         * lra-assigns.c (assign_by_spills): Error out on spill failure.
4985
4986 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
4987
4988         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
4989         assertion.
4990
4991 2014-10-09  Richard Biener  <rguenther@suse.de>
4992
4993         PR tree-optimization/63380
4994         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
4995         may trap.
4996
4997 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4998
4999         * config/avr/avr.opt (mmcu=): Change to have a string value.
5000         (mn-flash=, mskip-bug, march=, mrmw): New options.
5001         (HeaderInclude): New.
5002         (mmcu=): Remove Var / Init clauses.
5003         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
5004         -specs option.
5005         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
5006         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
5007         (SYMBOL_FLAG_IO_LOW): Define.
5008         (avr_device_to_as, avr_device_to_ld): Don't declare.
5009         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
5010         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
5011         (EXTRA_SPEC_FUNCTIONS): Don't define.
5012         (ASM_SPEC): Translate -arch= option to -mmcu= option.
5013         (LINK_SPEC): Translate -arch= option to -m= option.
5014         Don't use device_to_ld / device_to_data_start.
5015         (STARTFILE_SPEC): Now empty.
5016         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
5017         * config/avr/gen-avr-mmcu-specs.c: New file.
5018         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
5019         (s-device-specs): Likewise.
5020         (GCC_PASSES): Add s-device-specs.
5021         (install-driver): Depend on install-device-specs.
5022         (install-device-specs): New rule.
5023         * config/avr/avr.c (avr_option_override): Look up mcu arch by
5024         avr_arch_index and provide fallback initialization for avr_n_flash.
5025         (varasm.h): #include.
5026         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
5027         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
5028         (avr_attribute_table): Add "io", "address" and "io_low".
5029         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
5030         Add special handling for symbols with "io" and/or "address" attributes.
5031         (avr_asm_asm_output_aligned_bss): New function.
5032         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
5033         as appropriate.  Handle io_low attribute.
5034         (avr_out_sbxx_branch): Handle symbolic io addresses.
5035         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
5036         avr_n_flash instead of avr_current_device->n_flash.
5037         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
5038         (avr_emit_movmemhi): Likewise.
5039         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
5040         Use TARGET_RMW instead of avr_current_device->dev_attributes.
5041         Don't define avr_current_device->macro (that's the specfile's job).
5042         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
5043         * config/avr/avr.c (avr_2word_insn_p): Likewise.
5044         * config/avr/avr.md (*cpse.ne): Likewise.
5045         (mov<mode>): Use avr_eval_addr_attrib.
5046         (cbi): Change constraint for low_io_address_operand operand to "i".
5047         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
5048         * config/avr/predicates.md (io_address_operand):
5049         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
5050         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
5051         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
5052         Update prototype.
5053         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
5054         * config/avr/genmultilib.awk: Use -march=.
5055         Remove Multilib matches processing.
5056         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
5057         * config/avr/avr-arch.h: Add double include guard.
5058         (avr_mcu_t) <library_name>: Update comment.
5059         * config/avr/driver-avr.c (avr_device_to_as): Delete.
5060         (avr_device_to_ld, avr_device_to_data_start): Likewise.
5061         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
5062         (avr_device_to_sp8): Likewise.
5063         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
5064
5065         * doc/extend.texi (io, address): Document new AVR variable attributes.
5066         (io_low): Likewise.
5067
5068 2014-10-09  Marek Polacek  <polacek@redhat.com>
5069
5070         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
5071
5072 2014-10-08  Richard Biener  <rguenther@suse.de>
5073
5074         PR tree-optimization/61969
5075         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
5076         variables.
5077
5078 2014-10-09  Richard Biener  <rguenther@suse.de>
5079
5080         PR tree-optimization/63445
5081         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
5082         overflow for non-equality compares.
5083
5084 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
5085
5086         PR rtl-optimization/57003
5087         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5088         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
5089         killing regs_invalidated_by_call.
5090
5091 2014-10-08  Teresa Johnson  <tejohnson@google.com>
5092
5093         PR bootstrap/63432.
5094         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
5095         (ssa_fix_duplicate_block_edges): Invoke it.
5096         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
5097
5098 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
5099
5100         PR target/52941
5101         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
5102         atomic_fetch_<fetchop_name>si_hard,
5103         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
5104         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
5105         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
5106         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
5107
5108 2014-10-08  Rong Xu  <xur@google.com>
5109
5110         * gcov-tool.c (profile_overlap): New driver function
5111         to compute profile overlap.
5112         (print_overlap_usage_message): New.
5113         (overlap_usage): New.
5114         (do_overlap): New.
5115         (print_usage): Add calls to overlap function.
5116         (main): Ditto.
5117         * doc/gcov-tool.texi: Add documentation.
5118
5119 2014-10-08  Steve Ellcey  <sellcey@mips.com>
5120
5121         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
5122         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
5123
5124 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
5125
5126         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
5127         pattern matching of MEM_REF.
5128         (check_stmt_for_type_change): Update.
5129
5130 2014-10-08  Steve Ellcey  <sellcey@mips.com>
5131
5132         * config/mips/linux64.h: Remove.
5133         * config/mips/gnu-user64.h: Remove.
5134         * gcc.config (mips*-*-*): Remove references to linux64.h and
5135         gnu-user64.h
5136         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
5137         with modified version from gnu-user64.h.
5138         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
5139         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
5140         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
5141         linux64.h.
5142         (GNU_USER_LINK_EMULATION64): Ditto.
5143         (GNU_USER_LINK_EMULATIONN32): Ditto.
5144         (GLIBC_DYNAMIC_LINKER32): Ditto.
5145         (GLIBC_DYNAMIC_LINKER64): Ditto.
5146         (GLIBC_DYNAMIC_LINKERN32): Ditto.
5147         (UCLIBC_DYNAMIC_LINKER32): Ditto.
5148         (UCLIBC_DYNAMIC_LINKER64): Ditto.
5149         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
5150         (BIONIC_DYNAMIC_LINKERN32): Ditto.
5151         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
5152         (GLIBC_DYNAMIC_LINKER): Delete.
5153         (UCLIBC_DYNAMIC_LINKER): Delete.
5154
5155 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
5156             Richard Biener  <rguenther@suse.de>
5157
5158         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
5159         Get address space from operand 0 (BASE).
5160
5161 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
5162
5163         PR target/61387
5164         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
5165
5166 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
5167
5168         * dwarf2out.c: Remove current_function_has_inlines.
5169         (gen_subprogram_die): Same.
5170         (gen_inlined_subroutine_die): Same.
5171
5172 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
5173
5174         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
5175         type.
5176         (_addcarry_u64): Ditto.
5177         (_addcarryx_u64): Ditto.
5178
5179 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
5180
5181         * cgraph.h (cgraph_node::get_fun): Declare.
5182         * cgraph.c (cgraph_node::get_fun): New method.
5183         * ipa-inline.c (can_inline_edge_p): Use it.
5184
5185 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
5186
5187         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
5188         and -ftrapping-math.
5189         * lto-wrapper.c (merge_and_complain): Likewise.
5190         (run_gcc): Likewise.
5191
5192 2014-10-06  Rong Xu  <xur@google.com>
5193
5194         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
5195         * tree-profile.c: (params.h): New include.
5196         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
5197         and __gcov_indirect_call_topn_counters for
5198         indirect_call_topn_profile.
5199         (gimple_init_edge_profiler): New decls for
5200         __gcov_indirect_call_topn_profiler.
5201         (gimple_gen_ic_profiler): Generate the correct profiler call.
5202         (gimple_gen_ic_func_profiler): Fix format.
5203         * value-prof.c (params.h): New include.
5204         (dump_histogram_value): Hanlde indirect_call_topn counters.
5205         (stream_in_histogram_value): Ditto.
5206         (gimple_indirect_call_to_profile): Use indirect_call_topn
5207         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
5208         (gimple_find_values_to_profile): Hanlde indirect_call_topn
5209         counters.
5210         * value-prof.h (enum hist_type): Histrogram type for
5211         indirect_call_topn counters.
5212         * profile.c (instrument_values): Instrument
5213         indirect_call_topn counters.
5214
5215 2014-10-06  Rong Xu  <xur@google.com>
5216
5217         * Makefile.in: Fix dependence.
5218         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
5219         indirect call topn profiler.
5220         * gcov-io.h: Ditto.
5221
5222 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5223
5224         * calls.c (expand_call): Do not use the target as the return slot if
5225         it is not sufficiently aligned.
5226
5227 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5228
5229         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
5230         discussion of permutes and why we don't handle them.
5231
5232 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5233
5234         * config/sparc/predicates.md (int_register_operand): Delete.
5235
5236 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5237
5238         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
5239
5240 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
5241
5242         * ubsan.h (ubsan_get_source_location): New prototype.
5243         * ubsan.c (ubsan_source_location_type): New variable.
5244         Function renamed to ...
5245         (ubsan_get_source_location_type): ... this.  Cache
5246         return value in ubsan_source_location_type variable.
5247         (ubsan_source_location, ubsan_create_data): Use
5248         ubsan_get_source_location_type instead of
5249         ubsan_source_location_type.
5250         * asan.c (asan_protect_global): Don't protect globals
5251         with ubsan_get_source_location_type () type.
5252         (asan_add_global): Provide global decl location info
5253         if possible.
5254
5255 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
5256
5257         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
5258         sanity check.
5259
5260 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
5261
5262         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
5263         on size.
5264         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
5265         into vptr pointer.
5266         (ipa_polymorphic_call_context::dump): Fix formating.
5267         (walk_ssa_copies): Add logic avoiding loops; update uses.
5268         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
5269
5270 2014-10-02  Mark Wielaard  <mjw@redhat.com>
5271
5272         PR debug/63239
5273         * dwarf2out.c (gen_subprogram_die): When a member function is
5274         explicitly deleted then add a DW_AT_GNU_deleted attribute.
5275         * langhooks.h (struct lang_hooks_for_decls): Add
5276         function_decl_deleted_p langhook.
5277         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
5278         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
5279
5280 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
5281
5282         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
5283         NULL pointer checks.
5284         (ipa_polymorphic_call_context::get_dynamic_type): Return true
5285         if type doesn't change.
5286         * cgraph.h (cgraph_indirect_call_info): New flag.
5287         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
5288         (cgraph_node::dump): Dump it.
5289         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
5290         of context.get_dynamic_type.
5291         (ipa_make_edge_direct_to_target): Do not speculate
5292         edge that is already speuclative.
5293         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
5294         speculate to __builtin_unreachable
5295         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
5296         vptr_changed.
5297         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
5298
5299 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
5300
5301         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
5302         get_dynamic_type; drop TODO.
5303         * ipa-polymorphic-call.c
5304         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
5305         for otr_type to be unknown.
5306
5307 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
5308
5309         * common/config/score/score-common.c: Remove.
5310         * config.gcc: Remove support for score-*.
5311         * config/score/constraints.md: Remove.
5312         * config/score/elf.h: Remove.
5313         * config/score/predicates.md: Remove.
5314         * config/score/score-conv.h: Remove.
5315         * config/score/score-generic.md: Remove.
5316         * config/score/score-modes.def: Remove.
5317         * config/score/score-protos.h: Remove.
5318         * config/score/score.c: Remove.
5319         * config/score/score.h: Remove.
5320         * config/score/score.md: Remove.
5321         * config/score/score.opt: Remove.
5322         * doc/md.texi: Don't document score-*.
5323
5324 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
5325
5326         PR pch/63429
5327         * genconditions.c: Directly include ggc.h before rtl.h.
5328
5329 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
5330
5331         * ipa-polymorphic-call.c
5332         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
5333         code determining speculative type.
5334         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
5335
5336 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5337
5338         * altivec.md (altivec_lvsl): New define_expand.
5339         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
5340         (altivec_lvsr): New define_expand.
5341         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
5342         * rs6000.c (rs6000_expand_builtin): Change to use
5343         altivec_lvs[lr]_direct; remove commented-out code.
5344
5345 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5346
5347         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5348         Issue a warning message when vec_lvsl or vec_lvsr is used with a
5349         little endian target.
5350
5351 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5352
5353         * tree-pretty-print.c (dump_location): Make it extern. Dump also
5354         the column.
5355         * tree-pretty-print.h (dump_location): Declare.
5356         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
5357         (pp_gimple_stmt_1): Likewise.
5358         (dump_implicit_edges): Likewise.
5359         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
5360         LOCATION_LINE.
5361
5362
5363 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
5364
5365         * gcc.c (driver::global_initializations): Remove "const" so
5366         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
5367         and decoded_options_count.
5368
5369 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
5370
5371         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
5372         macro.
5373         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
5374         TARGET_E500_DOUBLE case here.
5375
5376 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
5377
5378         PR c++/54427
5379         PR c++/57198
5380         PR c++/58845
5381         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
5382
5383 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
5384
5385         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
5386         * lto-cgraph.c (lto_output_edge, input_edge): Stream
5387         in_polymorphic_cdtor
5388         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
5389         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
5390         * cgraphclones.c (cgraph_edge::clone): Likewise.
5391         * ipa-prop.c (update_jump_functions_after_inlining,
5392         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
5393         to possible_dynamic_type_change.
5394         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
5395         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
5396         IN_POLY_CDOTR argument.
5397
5398         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
5399         for BASE and OUTER_TYPE being NULL.
5400         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
5401         in_poly_cdtor parameter.
5402
5403 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
5404
5405         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
5406         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
5407         TARGET_AVX512F.
5408         (expand_vec_perm_1): Likewise.
5409
5410 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
5411             Uros Bizjak  <ubizjak@gmail.com>
5412
5413         PR tree-optimization/61403
5414         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
5415         error in comment.  Also optimize 256-bit vectors for AVX2
5416         or AVX (floating vectors only), provided the first permutation
5417         can be performed in one insn.
5418
5419 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
5420
5421         * gcc.c (class driver): New class.
5422         (main): Reimplement in terms of driver::main, moving most of the
5423         locals to be locals within individual methods of class driver.
5424         The remaining locals "explicit_link_files", "decoded_options" and
5425         "decoded_options_count" are used by multiple driver:: methods, and
5426         so become member data.  Doing so isolates the argc/argv reads and
5427         writes.  Replace "goto out" with a special exit code from
5428         new method driver::prepare_infiles.  Split out the old
5429         implementation of main into the following...
5430         (driver::main): New function, corresponding to the old "main"
5431         implementation.
5432         (driver::set_progname): New function, taken from the old
5433         "main" implementation.
5434         (driver::expand_at_files): Likewise.
5435         (driver::decode_argv): Likewise.
5436         (driver::global_initializations): Likewise.
5437         (driver::build_multilib_strings): Likewise.
5438         (driver::set_up_specs): Likewise.
5439         (driver::putenv_COLLECT_GCC): Likewise.
5440         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
5441         (driver::handle_unrecognized_options): Likewise.
5442         (driver::maybe_print_and_exit): Likewise.
5443         (driver::prepare_infiles): Likewise.
5444         (driver::do_spec_on_infiles): Likewise.
5445         (driver::maybe_run_linker): Likewise.
5446         (driver::final_actions): Likewise.
5447         (driver::get_exit_code): Likewise.
5448
5449 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
5450
5451         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
5452         don't emit empty ctors.
5453
5454 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
5455
5456         * convert.c (convert_to_integer): Do not introduce useless conversions
5457         between integral types.
5458
5459 2014-10-03  David Sherwood  <david.sherwood@arm.com>
5460
5461         * ira-int.h (ira_allocno): Mark hard_regno as signed.
5462
5463 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
5464
5465         * lra-constraints.c (inherit_in_ebb): Handle calls with
5466         multiple return values.
5467         * caller-save.c (save_call_clobbered_regs): Likewise.
5468
5469 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
5470
5471         * tree-vect-data-refs.c (vect_permute_load_chain,
5472         vect_shift_permute_load_chain): Fix a typo in temporary var names,
5473         suffle3 to shuffle3.
5474
5475         PR libgomp/61200
5476         * omp-low.c (taskreg_contexts): New variable.
5477         (scan_omp_parallel): Push newly created context into taskreg_contexts
5478         vector and move record layout code to finish_taskreg_scan.
5479         (scan_omp_task): Likewise.
5480         (finish_taskreg_scan): New function.
5481         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
5482         vector elements and release it.
5483
5484         PR target/62128
5485         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
5486         of palignr arguments can't be used due to min 0 or max - min
5487         too high, try also op0, op1 order of palignr arguments.
5488
5489 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
5490
5491         * cgraph.h (ipa_polymorphic_call_context):
5492         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
5493         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
5494         * ipa-polymorphic-call.c
5495         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
5496         past end of dynamic types.
5497         (ipa_polymorphic_call_context::stream_out,
5498         speculative_outer_type): Stream dynamic flag.
5499         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
5500         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
5501         Clear DYNAMIC.
5502         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
5503         set it.
5504         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
5505         * ipa-prop.c (update_jump_functions_after_inlining,
5506         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
5507
5508 2014-10-02  Teresa Johnson  <tejohnson@google.com>
5509
5510         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
5511         up when synthesizing counts to avoid rounding errors.
5512
5513 2014-10-02  Teresa Johnson  <tejohnson@google.com>
5514
5515         PR middle-end/63422
5516         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
5517         asserts to handle incoming insanities.
5518
5519 2014-10-02  Martin Jambor  <mjambor@suse.cz>
5520
5521         PR tree-optimization/63375
5522         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
5523         references.
5524
5525 2014-10-02  Olivier Hainque  <hainque@adacore.com>
5526
5527         * Makefile.in (CROSS): Define, to @CROSS.
5528
5529 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
5530
5531         PR target/62128
5532         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
5533         if it expands to a single insn only.
5534         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
5535         fail unless in_order is true.  Add forward declaration.
5536         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
5537         is useful for one_operand_p.
5538         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
5539
5540 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
5541
5542         * cgraphclones.c (build_function_type_skip_args): Do not make new
5543         type variant of old.
5544
5545 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
5546
5547         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
5548         when speculation is added.
5549         (ipa_edge_args): Add polymorphic_call_contexts.
5550         (ipa_get_ith_polymorhic_call_context): New accesor.
5551         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
5552         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
5553         (ipa_compute_jump_functions_for_edge): Compute contexts.
5554         (update_jump_functions_after_inlining): Update contexts.
5555         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
5556         update dumping; add speculative edge creation.
5557         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
5558         context updating.
5559         (update_indirect_edges_after_inlining): Pass down context.
5560         (ipa_edge_duplication_hook): Duplicate contexts.
5561         (ipa_write_node_info): Stream out contexts.
5562         (ipa_read_node_info): Stream in contexts.
5563         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
5564         types.
5565         (try_speculative_devirtualization): New function.
5566         * ipa-utils.h (try_speculative_devirtualization): Declare.
5567
5568 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
5569
5570         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
5571         dumping during WPA.
5572
5573 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
5574
5575         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
5576         type variants.
5577
5578 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
5579
5580         * ipa-polymorphic-call.c
5581         (ipa_polymorphic_call_context::restrict_to_inner_class):
5582         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
5583         use speculation_consistent_p to do so; Add CONSDER_BASES
5584         and CONSIDER_PLACEMENT_NEW parameters.
5585         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
5586         short circuit obvious cases.
5587         (ipa_polymorphic_call_context::dump): Improve formatting.
5588         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
5589         combine_speculation_with to record speculations; Do not ICE when
5590         object is located in pointer type decl; do not ICE for methods
5591         of UNION_TYPE; do not record nonpolymorphic types.
5592         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
5593         (ipa_polymorphic_call_context::combine_speculation_with): New method.
5594         (ipa_polymorphic_call_context::combine_with): New method.
5595         (ipa_polymorphic_call_context::make_speculative): Move here; use
5596         combine speculation.
5597         * cgraph.h (ipa_polymorphic_call_context): Update
5598         restrict_to_inner_class prototype; add offset_by, make_speculative,
5599         combine_with, useless_p, combine_speculation_with and
5600         speculation_consistent_p methods.
5601         (ipa_polymorphic_call_context::offset_by): New method.
5602         (ipa_polymorphic_call_context::useless_p): New method.
5603
5604 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5605
5606         PR rtl-optimization/62151
5607         * combine.c (can_combine_p): Allow the destination register of INSN
5608         to be clobbered in I3.
5609         (subst): Do not substitute into clobbers of registers.
5610
5611 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
5612
5613         PR debug/63342
5614         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
5615         offset, TARGET_MEM_REF and SSA_NAME.
5616
5617         * config/i386/i386.c (expand_vec_perm_palignr): Handle
5618         256-bit vectors for TARGET_AVX2.
5619
5620         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
5621         dfirst permutation.
5622
5623         PR target/63428
5624         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
5625         argument to avx2_permv2ti.
5626
5627 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5628
5629         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
5630
5631 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
5632
5633         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
5634         (fmod<mode>3): Ditto.
5635         (fpremxf4_i387): Ditto.
5636         (reminderxf3): Ditto.
5637         (reminder<mode>3): Ditto.
5638         (fprem1xf4_i387): Ditto.
5639
5640 2014-09-30  Teresa Johnson  <tejohnson@google.com>
5641
5642         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
5643         duplicate_blocks bitmap.
5644         (remove_ctrl_stmt_and_useless_edges): Ditto.
5645         (create_block_for_threading): Ditto.
5646         (compute_path_counts): New function.
5647         (update_profile): Ditto.
5648         (recompute_probabilities): Ditto.
5649         (update_joiner_offpath_counts): Ditto.
5650         (freqs_to_counts_path): Ditto.
5651         (clear_counts_path): Ditto.
5652         (ssa_fix_duplicate_block_edges): Update profile info.
5653         (ssa_create_duplicates): Pass new parameter.
5654         (ssa_redirect_edges): Remove old profile update.
5655         (thread_block_1): New duplicate_blocks bitmap,
5656         remove old profile update.
5657         (thread_single_edge): Pass new parameter.
5658
5659 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
5660
5661         PR middle-end/62120
5662         * varasm.c (decode_reg_name_and_count): Check availability for
5663         registers from ADDITIONAL_REGISTER_NAMES.
5664
5665 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
5666
5667         PR plugins/63410
5668         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
5669         (PLUGIN_HEADERS): Add pass-instances.def.
5670
5671 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
5672
5673         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
5674         iterator.
5675         * config/aarch64/aarch64-simd.md
5676         (aarch64_sqdmull_laneq<mode>): Expand iterator.
5677         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
5678         (vqdmulls_lane_s32): Fix return type.
5679         (vqdmulls_laneq_s32): New.
5680
5681 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
5682
5683         PR inline-asm/63282
5684         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
5685         or invert_jump_1 if jump isn't any_condjump_p.
5686
5687 2014-09-30  Terry Guo  <terry.guo@arm.com>
5688
5689         * config/arm/arm-cores.def (cortex-m7): New core name.
5690         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
5691         (fpv5-d16): Ditto.
5692         * config/arm/arm-tables.opt: Regenerated.
5693         * config/arm/arm-tune.md: Regenerated.
5694         * config/arm/arm.h (TARGET_VFP5): New macro.
5695         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
5696         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
5697         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
5698         * doc/invoke.texi: Document new cpu and fpu names.
5699
5700 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
5701
5702         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
5703         before sinking insn.
5704
5705 2014-09-30  David Sherwood  <david.sherwood@arm.com>
5706
5707         * ira-int.h (ira_allocno): Add "wmode" field.
5708         * ira-build.c (create_insn_allocnos): Add new "parent" function
5709         parameter.
5710         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
5711         that cannot be accessed in wmode.
5712
5713 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
5714
5715         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
5716         integer overflow.
5717
5718 2014-09-29  Andi Kleen  <ak@linux.intel.com>
5719
5720         * opts.c (print_filtered_help): Print --param min/max/default
5721         with -Q.
5722
5723 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5724
5725         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
5726
5727 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
5728
5729         * tree-vrp.c (get_single_symbol): New function.
5730         (build_symbolic_expr): Likewise.
5731         (symbolic_range_based_on_p): New predicate.
5732         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
5733         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
5734         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
5735         operand is symbolic and based on the other operand.
5736
5737 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
5738
5739         * config/microblaze/microblaze.md (call_internal1): Use VOID
5740         instead of SI to fix "((void (*)(void)) 0)()" issue
5741
5742 2014-09-29  Nick Clifton  <nickc@redhat.com>
5743
5744         * config/msp430/msp430.c (msp430_expand_prologue): Return a
5745         CLOBBER rtx for naked functions.
5746         (msp430_expand_epilogue): Likewise.
5747         (msp430_use_f5_series_hwmult): Cache result.
5748         (use_32bit_hwmult): Cache result.
5749         (msp430_no_hwmult): New function.
5750         (msp430_output_labelref): Use it.
5751
5752 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
5753
5754         PR middle-end/63247
5755         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
5756         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
5757         use the alignment of avar rather than ovar.
5758
5759 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
5760
5761         * config/pa/pa.c (pa_output_function_epilogue): Only update
5762         last_address when a nonnote insn is found.
5763
5764 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
5765
5766         PR ipa/60665
5767         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
5768
5769 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
5770
5771         PR ipa/62121
5772         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
5773         fix pasto in checking array size.
5774
5775 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
5776
5777         PR middle-end/35545
5778         * passes.def (pass_tracer): Move before last dominator pass.
5779
5780 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
5781
5782         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
5783         users.
5784         (run_attempt): Handle errors of "pex_run" invocation.
5785
5786 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
5787
5788         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
5789         (CC1_SPEC): Define.
5790         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
5791         (TARGET_ASAN_SHADOW_OFFSET): Define.
5792
5793 2014-09-26  Martin Liska  <mliska@suse.cz>
5794
5795         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
5796         introduced.
5797         * cgraph.h: Likewise.
5798         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
5799         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
5800         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
5801         * tree-ssa-alias.h: Likewise.
5802
5803 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
5804             Max Ostapenko  <m.ostapenko@partner.samsung.com>
5805
5806         * common.opt: New option.
5807         * doc/invoke.texi: Describe new option.
5808         * gcc.c (execute): Don't free first string early, but at the end
5809         of the function.  Call retry_ice if compiler exited with
5810         ICE_EXIT_CODE.
5811         (main): Factor out common code.
5812         (print_configuration): New function.
5813         (files_equal_p): Likewise.
5814         (check_repro): Likewise.
5815         (run_attempt): Likewise.
5816         (do_report_bug): Likewise.
5817         (append_text): Likewise.
5818         (try_generate_repro): Likewise
5819
5820 2014-09-25  Andi Kleen  <ak@linux.intel.com>
5821
5822         * config/i386/i386.c (x86_print_call_or_nop): New function.
5823         (x86_function_profiler): Support -mnop-mcount and
5824         -mrecord-mcount.
5825         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
5826         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
5827
5828 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
5829
5830         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
5831         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
5832         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
5833         Remove.
5834
5835 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
5836
5837         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
5838         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
5839         types_odr_comparable): Declare.
5840         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
5841         * ipa-polymorphic-call.c: New file.
5842         (contains_polymorphic_type_p, possible_placement_new,
5843         ipa_polymorphic_call_context::restrict_to_inner_class,
5844         contains_type_p, decl_maybe_in_construction_p,
5845         ipa_polymorphic_call_context::stream_out,
5846         ipa_polymorphic_call_context::debug,
5847         ipa_polymorphic_call_context::stream_in,
5848         ipa_polymorphic_call_context::set_by_decl,
5849         ipa_polymorphic_call_context::set_by_invariant,
5850         walk_ssa_copies,
5851         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
5852         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
5853         extr_type_from_vtbl_ptr_store, record_known_type
5854         check_stmt_for_type_change,
5855         ipa_polymorphic_call_context::get_dynamic_type): Move here from
5856         ipa-devirt.c
5857         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
5858         and streamer-hooks.h
5859         (contains_polymorphic_type_p, possible_placement_new,
5860         ipa_polymorphic_call_context::restrict_to_inner_class,
5861         contains_type_p, decl_maybe_in_construction_p,
5862         ipa_polymorphic_call_context::stream_out,
5863         ipa_polymorphic_call_context::debug,
5864         ipa_polymorphic_call_context::stream_in,
5865         ipa_polymorphic_call_context::set_by_decl,
5866         ipa_polymorphic_call_context::set_by_invariant,
5867         walk_ssa_copies,
5868         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
5869         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
5870         extr_type_from_vtbl_ptr_store, record_known_type
5871         check_stmt_for_type_change,
5872         ipa_polymorphic_call_context::get_dynamic_type): Move to
5873         ipa-polymorphic-call.c
5874         (type_all_derivations_known_p, types_odr_comparable,
5875         types_must_be_same_for_odr): Export.
5876         (type_known_to_have_no_deriavations_p): New function.
5877         * Makefile.in: Add ipa-polymorphic-call.c
5878
5879 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
5880
5881         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
5882         for better storage.
5883         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
5884         (possible_polymorphic_call_targets): Instead of computing both
5885         speculative and non-speculative answers, do just one at a time.
5886         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
5887         (dump_targets): Break out from ...
5888         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
5889         and non-speculative lists.
5890         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
5891         * ipa-utils.h (possible_polymorphic_call_targets): Update.
5892
5893 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
5894
5895         PR rtl-optimization/63348
5896         * emit-rtl.c (try_split): Do not emit extra barrier.
5897
5898 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
5899
5900         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
5901         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
5902         new predicates.
5903         (aarch64_<sur>shll2_n<mode>): Likewise.
5904         (aarch64_<sur>shr_n<mode>): Likewise.
5905         (aarch64_<sur>sra_n<mode>: Likewise.
5906         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
5907         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
5908         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
5909         * config/aarch64/iterators.md (ve_mode): New.
5910         (offsetlr): Remap to infix text for use in new predicates.
5911         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
5912         (aarch64_simd_shift_imm_hi): Likewise.
5913         (aarch64_simd_shift_imm_si): Likewise.
5914         (aarch64_simd_shift_imm_di): Likewise.
5915         (aarch64_simd_shift_imm_offset_qi): Likewise.
5916         (aarch64_simd_shift_imm_offset_hi): Likewise.
5917         (aarch64_simd_shift_imm_offset_si): Likewise.
5918         (aarch64_simd_shift_imm_offset_di): Likewise.
5919         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
5920         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
5921         (aarch64_simd_shift_imm_bitsize_si): Likewise.
5922         (aarch64_simd_shift_imm_bitsize_di): Likewise.
5923
5924 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
5925
5926         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
5927         new created BB as the intersection of live-in from "old_dest" and
5928         live-out from "bb".
5929
5930 2014-09-25  Felix Yang  <felix.yang@huawei.com>
5931
5932         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
5933         * genautomata.c (merge_states): Ditto.
5934
5935 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
5936
5937         PR target/62218
5938         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
5939         in instruction sequence.
5940
5941 2014-09-25  Nick Clifton  <nickc@redhat.com>
5942
5943         PR target/62218
5944         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
5945         in instruction sequence.
5946
5947 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5948
5949         PR target/63335
5950         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
5951         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
5952
5953 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5954             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5955             Anna Tikhonova  <anna.tikhonova@intel.com>
5956             Ilya Tocar  <ilya.tocar@intel.com>
5957             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5958             Ilya Verbin  <ilya.verbin@intel.com>
5959             Kirill Yukhin  <kirill.yukhin@intel.com>
5960             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5961
5962         * config/i386/sse.md
5963         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
5964         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
5965         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
5966         (define_expand "<avx512>_perm<mode>_mask"): ... this.
5967         Use VI8F_256_512 mode iterator.
5968         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
5969         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
5970
5971 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5972             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5973             Anna Tikhonova  <anna.tikhonova@intel.com>
5974             Ilya Tocar  <ilya.tocar@intel.com>
5975             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5976             Ilya Verbin  <ilya.verbin@intel.com>
5977             Kirill Yukhin  <kirill.yukhin@intel.com>
5978             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5979
5980         * config/i386/sse.md
5981         (define_insn "avx_movshdup256<mask_name>"): Add masking.
5982         (define_insn "sse3_movshdup<mask_name>"): Ditto.
5983         (define_insn "avx_movsldup256<mask_name>"): Ditto.
5984         (define_insn "sse3_movsldup<mask_name>"): Ditto.
5985         (define_insn "vec_dupv2df<mask_name>"): Ditto.
5986         (define_insn "*vec_concatv2df"): Add EVEX version.
5987
5988 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5989             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5990             Anna Tikhonova  <anna.tikhonova@intel.com>
5991             Ilya Tocar  <ilya.tocar@intel.com>
5992             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5993             Ilya Verbin  <ilya.verbin@intel.com>
5994             Kirill Yukhin  <kirill.yukhin@intel.com>
5995             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5996
5997         * config/i386/sse.md
5998         (define_insn "vec_set<mode>_0"): Add EVEX version.
5999
6000 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6001             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6002             Anna Tikhonova  <anna.tikhonova@intel.com>
6003             Ilya Tocar  <ilya.tocar@intel.com>
6004             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6005             Ilya Verbin  <ilya.verbin@intel.com>
6006             Kirill Yukhin  <kirill.yukhin@intel.com>
6007             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6008
6009         * config/i386/sse.md
6010         (define_insn
6011         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
6012         New.
6013         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
6014         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
6015         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
6016         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
6017         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
6018         (define_expand "sse2_cvtpd2ps_mask): New.
6019         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
6020         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
6021
6022 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6023             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6024             Anna Tikhonova  <anna.tikhonova@intel.com>
6025             Ilya Tocar  <ilya.tocar@intel.com>
6026             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6027             Ilya Verbin  <ilya.verbin@intel.com>
6028             Kirill Yukhin  <kirill.yukhin@intel.com>
6029             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6030
6031         * config/i386/i386.c
6032         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
6033         (ufix_notruncv8dfv8si2_mask_round): ... this.
6034         * config/i386/sse.md
6035         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
6036         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
6037         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
6038         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
6039         (define_expand "sse2_cvtpd2dq"): Delete.
6040         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
6041         make 2nd operand const0 vector.
6042         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
6043         Delete.
6044         (define_mode_attr pd2udqsuff): New.
6045         (define_insn
6046         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
6047         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
6048         (define_insn "*avx_cvttpd2dq256_2"): Delete.
6049         (define_expand "sse2_cvttpd2dq"): Ditto.
6050         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
6051         make 2nd operand const0 vector.
6052
6053 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
6054
6055         PR tree-optimization/63341
6056         * tree-vectorizer.h (vect_create_data_ref_ptr,
6057         vect_create_addr_base_for_vector_ref): Add another tree argument
6058         defaulting to NULL_TREE.
6059         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
6060         argument, pass it down to vect_create_addr_base_for_vector_ref.
6061         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
6062         add that to base_offset too if non-NULL.
6063         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
6064         for dr_explicit_realign_optimized set it to vector byte size
6065         - 1 instead of setting offset, pass byte_offset down to
6066         vect_create_data_ref_ptr.
6067
6068 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
6069
6070         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
6071         forgotten debug output; canonicalize querries more wtih LTO.
6072
6073 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
6074
6075         * cgraph.h (class ipa_polymorphic_call_context): Move here from
6076         ipa-utils.h; add stream_int and stream_out methods.
6077         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
6078         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
6079         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
6080         add CONTEXT.
6081         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6082         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6083         ipa_polymorphic_call_context::clear_speculation,
6084         ipa_polymorphic_call_context::clear_outer_type): Move here from
6085         ipa-utils.h
6086         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
6087         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6088         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6089         ipa_polymorphic_call_context::clear_speculation,
6090         ipa_polymorphic_call_context::clear_outer_type): Likewise.
6091         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
6092         streamer-hooks.h
6093         (ipa_polymorphic_call_context::stream_out): New method.
6094         (ipa_polymorphic_call_context::stream_in): New method.
6095         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
6096         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
6097         OUTER_TYPE.
6098         (ipa_analyze_call_uses): Simplify.
6099         (update_indirect_edges_after_inlining): Do not care about outer_type.
6100         (ipa_write_indirect_edge_info): Update.
6101         (ipa_write_indirect_edge_info): Likewise.
6102         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
6103         (dump_edge_flags): Break out from ...
6104         (cgraph_node::dump): ... here; dump indirect edges.
6105
6106 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
6107
6108         * ipa-utils.h (polymorphic_call_context): Add
6109         metdhos dump, debug and clear_outer_type.
6110         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
6111         (ipa_polymorphic_call_context::clear_outer_type): New method.
6112         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
6113         * ipa-devirt.c (types_odr_comparable): New function.
6114         (types_must_be_same_for_odr): New function.
6115         (odr_subtypes_equivalent_p): Simplify.
6116         (possible_placement_new): Break out from ...
6117         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
6118         be more cuatious about returning false in cases the context may be
6119         valid in derived type or via placement new.
6120         (contains_type_p): Clear maybe_derived_type
6121         (ipa_polymorphic_call_context::dump): New method.
6122         (ipa_polymorphic_call_context::debug): New method.
6123         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
6124         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
6125         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
6126         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
6127         to suceed on all valid cases; remove confused sanity check.
6128         (dump_possible_polymorphic_call_targets): Simplify.
6129
6130 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
6131
6132         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
6133         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
6134         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
6135         varpool.c: Rename all instances of DECL_ABSTRACT to
6136         DECL_ABSTRACT_P.
6137
6138 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6139
6140         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
6141         special handling for stores whose SET_SRC is an UNSPEC (such as
6142         UNSPEC_STVE).
6143
6144 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
6145
6146         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
6147         !REG_P (src) to release more instruction sink opportunities.
6148
6149 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
6150
6151         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
6152         move costs for 128-bit types.
6153
6154 2014-09-24  Martin Jambor  <mjambor@suse.cz>
6155
6156         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
6157         when duplicating a PASS_THROUGH jump function when creating a
6158         speculative edge.
6159
6160 2014-09-24  Marek Polacek  <polacek@redhat.com>
6161
6162         PR c/61405
6163         PR c/53874
6164         * asan.c (maybe_instrument_call): Add default case.
6165         * ipa-pure-const.c (special_builtin_state): Likewise.
6166         * predict.c (expr_expected_value_1): Likewise.
6167         * lto-streamer-out.c (write_symbol): Initialize variable.
6168
6169 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6170
6171         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
6172         the lane.
6173         (vmuld_laneq_f64): Likewise.
6174         (vmuls_lane_f32): Likewise.
6175         (vmuls_laneq_f32): Likewise.
6176
6177 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
6178
6179         PR bootstrap/63235
6180         * varpool.c (varpool_node::add): Pass decl attributes
6181         to lookup_attribute.
6182
6183 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
6184
6185         PR sanitizer/63316
6186         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
6187
6188 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6189
6190         PR tree-optimization/63266
6191         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
6192         marker for unknown byte value.
6193         (MARKER_MASK): New macro.
6194         (MARKER_BYTE_UNKNOWN): New macro.
6195         (HEAD_MARKER): New macro.
6196         (do_shift_rotate): Mark bytes with unknown values due to sign
6197         extension when doing an arithmetic right shift. Replace hardcoded
6198         mask for marker by new MARKER_MASK macro.
6199         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
6200         numbers accordingly.
6201
6202 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6203             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6204             Anna Tikhonova  <anna.tikhonova@intel.com>
6205             Ilya Tocar  <ilya.tocar@intel.com>
6206             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6207             Ilya Verbin  <ilya.verbin@intel.com>
6208             Kirill Yukhin  <kirill.yukhin@intel.com>
6209             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6210
6211         * config/i386/sse.md
6212         (define_insn
6213         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
6214         Add masking.
6215         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
6216         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
6217
6218 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6219             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6220             Anna Tikhonova  <anna.tikhonova@intel.com>
6221             Ilya Tocar  <ilya.tocar@intel.com>
6222             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6223             Ilya Verbin  <ilya.verbin@intel.com>
6224             Kirill Yukhin  <kirill.yukhin@intel.com>
6225             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6226
6227         * config/i386/sse.md
6228         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
6229         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
6230         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
6231         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
6232         (define_expand "avx512vl_pshuflw_mask"): New.
6233         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
6234         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
6235         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
6236         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
6237         (define_expand "avx512vl_pshufhw_mask"): New.
6238         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
6239
6240 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6241             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6242             Anna Tikhonova  <anna.tikhonova@intel.com>
6243             Ilya Tocar  <ilya.tocar@intel.com>
6244             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6245             Ilya Verbin  <ilya.verbin@intel.com>
6246             Kirill Yukhin  <kirill.yukhin@intel.com>
6247             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6248
6249         * config/i386/i386.c
6250         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
6251         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
6252         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
6253         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
6254         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
6255         * config/i386/sse.md
6256         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
6257         (define_insn
6258         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
6259         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
6260         (define_insn
6261         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
6262         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
6263         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
6264         (define_expand "avx512vl_pshufd_mask"): New.
6265         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
6266
6267 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6268             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6269             Anna Tikhonova  <anna.tikhonova@intel.com>
6270             Ilya Tocar  <ilya.tocar@intel.com>
6271             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6272             Ilya Verbin  <ilya.verbin@intel.com>
6273             Kirill Yukhin  <kirill.yukhin@intel.com>
6274             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6275
6276         * config/i386/i386.c
6277         (CODE_FOR_avx2_extracti128): Rename to ...
6278         (CODE_FOR_avx_vextractf128v4di): this.
6279         (CODE_FOR_avx2_inserti128): Rename to ...
6280         (CODE_FOR_avx_vinsertf128v4di): this.
6281         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
6282         CODE_FOR_avx_vextractf128v4di.
6283         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
6284         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
6285         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
6286         CODE_FOR_avx512vl_vinsertv8si.
6287         * config/i386/sse.md
6288         (define_expand
6289         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
6290         AVX512_VEC mode iterator.
6291         (define_insn
6292         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
6293         Ditto.
6294         (define_expand
6295         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
6296         AVX512_VEC_2 mode iterator.
6297         (define_insn "vec_set_lo_<mode><mask_name>"): New.
6298         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6299         (define_expand "avx512vl_vinsert<mode>"): Ditto.
6300         (define_insn "avx2_vec_set_lo_v4di"): Delete.
6301         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
6302         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
6303         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6304         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
6305         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6306         (define_expand "avx2_extracti128"): Delete.
6307         (define_expand "avx2_inserti128"): Ditto.
6308
6309 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6310             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6311             Anna Tikhonova  <anna.tikhonova@intel.com>
6312             Ilya Tocar  <ilya.tocar@intel.com>
6313             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6314             Ilya Verbin  <ilya.verbin@intel.com>
6315             Kirill Yukhin  <kirill.yukhin@intel.com>
6316             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6317
6318         * config/i386/sse.md
6319         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
6320         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
6321         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
6322         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
6323         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
6324         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
6325         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
6326         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
6327         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
6328         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
6329         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
6330         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
6331         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
6332
6333 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6334
6335         PR rtl-optimization/63210
6336         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
6337         HARD_REGNO is not available for CONFLICT_A.
6338
6339 2014-09-23  Andi Kleen  <ak@linux.intel.com>
6340
6341         * cgraph.h (symtab_node): Add no_reorder attribute.
6342         (symbol_table::output_asm_statements): Remove.
6343         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
6344         (cgraph_node::create_version_clone): Dito.
6345         (symbol_table::output_asm_statements): Remove.
6346         * trans-mem.c (ipa_tm_create_version_alias): Dito.
6347         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
6348         (output_in_order): Add no_reorder flag. Only handle no_reorder
6349         nodes when set.
6350         (symbol_table::compile): Add separate pass for no_reorder nodes.
6351         (process_common_attributes): Set no_reorder flag in symtab node.
6352         Add node argument.
6353         (process_function_and_variable_attributes): Pass symtab nodes to
6354         process_common_attributes.
6355         * doc/extend.texi (no_reorder): Document no_reorder attribute.
6356         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
6357         (lto_output_varpool_node): Dito.
6358         (input_overwrite_node): Dito.
6359         (input_varpool_node): Dito.
6360         * varpool.c (varpool_node::add): Set no_reorder attribute.
6361         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
6362         (symbol_table::output_variables): Dito.
6363         * symtab.c (symtab_node::dump_base): Print no_reorder.
6364
6365 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
6366
6367         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
6368         be INVALID_REGNUM.
6369
6370 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
6371
6372         * configure: Regenerate.
6373
6374 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
6375
6376         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
6377         when result_mode == shift_mode.
6378
6379 2014-09-23  Kostya Serebryany  <kcc@google.com>
6380
6381         Update to match the changed asan API.
6382         * asan.c (asan_global_struct): Update the __asan_global definition
6383         to match the new API.
6384         (asan_add_global): Ditto.
6385         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
6386         to __asan_init_v4.
6387
6388 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6389
6390         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
6391         refine the constraints used on 32/64-bit floating point moves.
6392         (f32_av): Likewise.
6393         (f64_vsx): Likewise.
6394         (f64_dm): Likewise.
6395         (f64_av): Likewise.
6396         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
6397         (BOOL_REGS_OP1): Likewise.
6398         (BOOL_REGS_OP2): Likewise.
6399         (BOOL_REGS_UNARY): Likewise.
6400         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
6401         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
6402         for moves involving VSX registers.  Do not use constraints that
6403         target VSX registers for decimal types.
6404         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
6405         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
6406
6407 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
6408
6409         * tree.h (int_bit_position): Turn into inline function;
6410         implement using wide int.
6411         * tree.c (int_bit_position): Remove.
6412
6413 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
6414
6415         PR bootstrap/63280
6416         * target-globals.c (target_globals::~target_globals): Fix location
6417         of ira_int destruction.
6418
6419 2014-09-23  Renlin Li  <renlin.li@arm.com>
6420
6421         * config/aarch64/aarch64.md (return): New.
6422         (simple_return): Likewise.
6423         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
6424         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
6425
6426 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
6427
6428         * common/config/aarch64/aarch64-common.c:
6429         (default_options aarch_option_optimization_table):
6430         Default to -fsched-pressure.
6431
6432 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
6433
6434         * cfgcleanup.c (try_optimize_cfg): Do not remove label
6435         with LABEL_PRESERVE_P flag set.
6436
6437 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6439             Anna Tikhonova  <anna.tikhonova@intel.com>
6440             Ilya Tocar  <ilya.tocar@intel.com>
6441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6442             Ilya Verbin  <ilya.verbin@intel.com>
6443             Kirill Yukhin  <kirill.yukhin@intel.com>
6444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6445
6446         * config/i386/sse.md
6447         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
6448         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
6449         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
6450         (define_insn "sse2_shufpd_v2df_mask"): New.
6451
6452 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6453             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6454             Anna Tikhonova  <anna.tikhonova@intel.com>
6455             Ilya Tocar  <ilya.tocar@intel.com>
6456             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6457             Ilya Verbin  <ilya.verbin@intel.com>
6458             Kirill Yukhin  <kirill.yukhin@intel.com>
6459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6460
6461         * config/i386/sse.md
6462         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
6463         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
6464         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
6465         (define_insn "sse_shufps_v4sf_mask"): New.
6466
6467 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6468             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6469             Anna Tikhonova  <anna.tikhonova@intel.com>
6470             Ilya Tocar  <ilya.tocar@intel.com>
6471             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6472             Ilya Verbin  <ilya.verbin@intel.com>
6473             Kirill Yukhin  <kirill.yukhin@intel.com>
6474             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6475
6476         * config/i386/sse.md
6477         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
6478         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
6479         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
6480         (define_insn "unpcklps128_mask"): New.
6481
6482 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6483             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6484             Anna Tikhonova  <anna.tikhonova@intel.com>
6485             Ilya Tocar  <ilya.tocar@intel.com>
6486             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6487             Ilya Verbin  <ilya.verbin@intel.com>
6488             Kirill Yukhin  <kirill.yukhin@intel.com>
6489             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6490
6491         * config/i386/sse.md
6492         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
6493         (define_insn "avx512vl_unpckhpd128_mask"): New.
6494         (define_expand "avx_movddup256<mask_name>"): Add masking.
6495         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
6496         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
6497         (define_insn "avx512vl_unpcklpd128_mask"): New.
6498
6499 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
6500
6501         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6502         * doc/tm.texi: Regenerate.
6503         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
6504         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6505         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
6506         Remove.
6507         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6508         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6509         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6510         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6511         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
6512         Remove.
6513         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6514         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6515         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6516         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6517         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6518         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6519         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6520         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6521         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6522         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
6523         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
6524         Remove.
6525
6526 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
6527
6528         * tree-ssa-ccp.c (prop_value_d): Rename to ...
6529         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
6530         * ipa-prop.c (struct type_change_info): Rename to ...
6531         (prop_type_change_info): ... this; update uses.
6532         * ggc-page.c (globals): Rename to ...
6533         (static struct ggc_globals): ... this; update uses.
6534         * tree-ssa-loop-im.c (mem_ref): Rename to ...
6535         (im_mem_ref): ... this; update uses.
6536         * ggc-common.c (loc_descriptor): Rename to ...
6537         (ggc_loc_descriptor): ... this; update uses.
6538         * lra-eliminations.c (elim_table): Rename to ...
6539         (lra_elim_table): ... this; update uses.
6540         * bitmap.c (output_info): Rename to ...
6541         (bitmap_output_info): ... this; update uses.
6542         * gcse.c (expr): Rename to ...
6543         (gcse_expr) ... this; update uses.
6544         (occr): Rename to ...
6545         (gcse_occr): .. this; update uses.
6546         * tree-ssa-copy.c (prop_value_d): Rename to ...
6547         (prop_value_t): ... this.
6548         * predict.c (block_info_def): Rename to ...
6549         (block_info): ... this; update uses.
6550         (edge_info_def): Rename to ...
6551         (edge_info): ... this; update uses.
6552         * profile.c (bb_info): Rename to ...
6553         (bb_profile_info): ... this; update uses.
6554         * alloc-pool.c (output_info): Rename to ...
6555         (pool_output_info): ... this; update uses.
6556         * ipa-cp.c (topo_info): Rename to ..
6557         (ipa_topo_info): ... this; update uses.
6558         * tree-nrv.c (nrv_data): Rename to ...
6559         (nrv_data_t): ... this; update uses.
6560         * ipa-split.c (bb_info): Rename to ...
6561         (split_bb_info): ... this one.
6562         * profile.h (edge_info): Rename to ...
6563         (edge_profile_info): ... this one; update uses.
6564         * dse.c (bb_info): Rename to ...
6565         (dse_bb_info): ... this one; update uses.
6566         * cprop.c (occr): Rename to ...
6567         (cprop_occr): ... this one; update uses.
6568         (expr): Rename to ...
6569         (cprop_expr): ... this one; update uses.
6570
6571 2014-09-22  Jason Merrill  <jason@redhat.com>
6572
6573         * Makefile.in (check-parallel-%): Add @.
6574
6575 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
6576
6577         * config/aarch64/geniterators.sh: New.
6578         * config/aarch64/iterators.md (VDQF_DF): New.
6579         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
6580         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
6581
6582 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
6583
6584         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
6585         -lnosys when -msim absent.
6586
6587 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
6588
6589         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
6590
6591 2014-09-22  Richard Biener  <rguenther@suse.de>
6592
6593         * gimplify.c (gimplify_init_constructor): Do not leave
6594         non-GIMPLE vector constructors around.
6595         * tree-cfg.c (verify_gimple_assign_single): Verify that
6596         CONSTRUCTORs have gimple elements.
6597
6598 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
6599
6600         PR debug/63328
6601         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
6602         insert a debug source bind stmt setting DEBUG_EXPR_DECL
6603         instead of a normal gimple assignment stmt.
6604
6605 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
6606
6607         * config/bfin/bfin.md: Fix use of constraints in define_split.
6608
6609 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
6610
6611         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
6612         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
6613
6614 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
6615
6616         * hard-reg-set.h: Include hash-table.h.
6617         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
6618         field.
6619         * target-globals.c (target_globals::~target_globals): Call
6620         hard_regs->finalize.
6621         * rtl.h (subreg_shape): New structure.
6622         (shape_of_subreg): New function.
6623         (simplifiable_subregs): Declare.
6624         * reginfo.c (simplifiable_subreg): New structure.
6625         (simplifiable_subregs_hasher): Likewise.
6626         (simplifiable_subregs): New function.
6627         (invalid_mode_changes): Delete.
6628         (alid_mode_changes, valid_mode_changes_obstack): New variables.
6629         (record_subregs_of_mode): Remove subregs_of_mode parameter.
6630         Record valid mode changes in valid_mode_changes.
6631         (find_subregs_of_mode): Remove subregs_of_mode parameter.
6632         Update calls to record_subregs_of_mode.
6633         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
6634         handling.  Initialize new variables.  Update call to
6635         find_subregs_of_mode.
6636         (invalid_mode_change_p): Check new variables instead of
6637         invalid_mode_changes.
6638         (finish_subregs_of_mode): Finalize new variables instead of
6639         invalid_mode_changes.
6640         (target_hard_regs::finalize): New function.
6641         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
6642         even when CLASS_CANNOT_CHANGE_MODE is undefined.
6643
6644 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
6645
6646         * combine.c (subst): Use simplify_subreg_regno rather than
6647         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
6648
6649 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
6650
6651         * rtl.h (subreg_info): Expand commentary
6652         * rtlanal.c (subreg_get_info): Likewise.
6653
6654 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
6655
6656         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
6657         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
6658         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
6659
6660 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6661
6662         * config/arm/arm.c: #include "tm-constrs.h"
6663         (thumb1_size_rtx_costs): Adjust rtx costs.
6664
6665 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
6666
6667         * configure.ac (target_header_dir): Move block defining
6668         this to before the block setting inhibit_libc.
6669         (inhibit_libc): When considering $with_headers, just
6670         check it it's explicitly "no".  If not, also check if
6671         $target_header_dir/stdio.h is present.  If not, set
6672         inhibit_libc=true.
6673         * configure: Regenerate.
6674
6675 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
6676
6677         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
6678
6679 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6680
6681         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
6682         insn for divides by integer powers of two.
6683         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
6684         (mod<mode>3): Fix formatting.
6685         (three anonymous define_insn and two define_split): Delete.
6686
6687 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6688
6689         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
6690         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
6691         (floatdisf2_internal2): Ditto.
6692         (ashrdi3_no_power): Ditto.  Fix formatting.
6693
6694 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6695
6696         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
6697         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
6698         Tidy.
6699
6700 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6701
6702         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
6703         constant, use addsi3 directly.
6704         (three anonymous define_insn, two define_split): Delete.
6705         (sub<mode>3): Move.  Do not allow constant second operand.
6706         Generate different insn for constant first operand.
6707         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
6708         (subf<mode>3_imm): New.
6709         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
6710         (*plus_ltu<mode>): Only handle registers.
6711         (*plus_ltu<mode>_1): New.  Handle integer third operand.
6712         (*plus_gtu<mode>): Only handle registers.
6713         (*plus_gtu<mode>_1): New.  Handle integer third operand.
6714
6715 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6716
6717         * config/rs6000/rs6000.md (iorxor): New code_iterator.
6718         (iorxor): New code_attr.
6719         (IORXOR): New code_attr.
6720         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
6721         (ior<mode>3, xor<mode>3): Delete.
6722         (<iorxor><mode>3): New.
6723         (splitter for "big" integer ior, xor): New.
6724         (*bool<mode>3): Move.  Also handle AND.
6725         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
6726         (splitter for "big" integer ior, xor): Delete.
6727
6728 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6729
6730         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
6731         (two anonymous define_insn and two define_split): Delete.
6732         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
6733
6734 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6735
6736         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
6737         (two anonymous define_insn and two define_split): Delete.
6738         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
6739
6740 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6741
6742         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
6743
6744 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6745
6746         * config/rs6000/predicates.md (ca_operand): Allow subregs.
6747         (input_operand): Do not allow ca_operand.
6748         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
6749         carry bit, allow SImode and Pmode.
6750         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
6751
6752 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
6753
6754         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
6755         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
6756         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
6757         (*call_rex64_ms_sysv): Remove.
6758         (*call_value_rex64_ms_sysv): Ditto.
6759         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
6760
6761 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
6762
6763         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
6764         operand 3 to "CnL".
6765
6766 2014-09-20  Andreas Schwab  <schwab@suse.de>
6767
6768         * config/ia64/ia64.md: Remove constraints from define_split
6769         patterns.
6770
6771 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
6772
6773         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6774         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6775         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6776         (get_dynamic_type): Remove.
6777         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6778         (clear_speculation): Bring to ipa-deivrt.h
6779         (get_class_context): Rename to ...
6780         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6781         (contains_type_p): Update.
6782         (get_dynamic_type): Rename to ...
6783         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6784         (possible_polymorphic_call_targets): UPdate.
6785         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6786         * ipa-prop.c (ipa_analyze_call_uses): Update.
6787
6788 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
6789
6790         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
6791         privatize dynamic TLS variables.
6792
6793 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
6794
6795         * diagnostic.c (warning_n): New function.
6796         * diagnostic-core.h (warning_n): Declare.
6797         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
6798         output dynamic counts when available.
6799
6800 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
6801
6802         PR tree-optimization/63255
6803         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
6804         issue in setting body_removed flag.
6805
6806 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
6807
6808         PR c++/61825
6809         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
6810         that visibility change is possible
6811         (handle_weakref_attribute): Likewise.
6812         * cgraph.h (symtab_node): Add method get_create and
6813         field refuse_visibility_changes.
6814         (symtab_node::get_create): New method.
6815         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
6816         * varasm.c (mark_weak): Verify that visibility change is
6817         possible.
6818
6819 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
6820
6821         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
6822         for base_reg_operand to be common between LO_SUM and PLUS.
6823         (fusion_gpr_mem_combo): New predicate to match a fused address
6824         that combines the addis and memory offset address.
6825
6826         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
6827         calling signature.
6828         (emit_fusion_gpr_load): Likewise.
6829
6830         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
6831         signature to pass each argument separately, rather than
6832         using an operands array.  Rewrite the insns found by peephole2 to
6833         be a single insn, rather than hoping the insns will still be
6834         together when the peephole pass is done.  Drop being called via a
6835         normal peephole.
6836         (emit_fusion_gpr_load): Change calling signature to be called from
6837         the fusion_gpr_load_<mode> insns with a combined memory address
6838         instead of the peephole pass passing the addis and offset
6839         separately.
6840
6841         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
6842         fusion.
6843         (power8 fusion peephole): Drop support for doing power8 via a
6844         normal peephole that was created by the peephole2 pass.
6845         (power8 fusion peephole2): Create a new insn with the fused
6846         address, so that the fused operation is kept together after
6847         register allocation is done.
6848         (fusion_gpr_load_<mode>): Likewise.
6849
6850 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
6851
6852         PR lto/63286
6853         * tree.c (need_assembler_name_p): Do not mangle variadic types.
6854
6855 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
6856
6857         * recog.c (scratch_operand): Do not simply allow all hard registers:
6858         only allow those that are allocatable.
6859
6860 2014-09-19  Felix Yang  <felix.yang@huawei.com>
6861
6862         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
6863         comments and fix spacing to conform to coding style.
6864
6865 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
6866
6867         * genrecog.c (validate_pattern): Allow empty constraints in
6868         a match_scratch.
6869
6870 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
6871
6872         * dwarf2out.c (decl_ultimate_origin): Update comment.
6873         * tree.c (block_ultimate_origin): Same.
6874
6875 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6876
6877         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
6878         Update GCC version name to GCC 5.
6879         (rs6000_function_arg_boundary): Likewise.
6880         (rs6000_function_arg): Likewise.
6881
6882 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
6883
6884         * config/sh/sh.md: Fix use of constraints in define_split.
6885
6886 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
6887
6888         PR ipa/61998
6889         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
6890
6891 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
6892
6893         * doc/md.texi (Modifiers): Consistently use "read/write"
6894         nomenclature rather than "input/output".
6895         * genrecog.c (constraints_supported_in_insn_p): New.
6896         (validate_pattern): If needed, also check constraints on
6897         MATCH_SCRATCH operands.
6898         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
6899         operands with no '=' or '+' modifier.
6900
6901 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
6902
6903         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
6904         scratch register as written.
6905
6906 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6907
6908         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
6909         assignment.
6910
6911 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6912
6913         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
6914         expanders.
6915
6916 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6917
6918         PR target/62662
6919         * config/s390/s390.c (s390_emit_epilogue): When doing the return
6920         address load optimization force s390_optimize_prologue to leave it
6921         that way.  Only do the optimization if we already decided to push
6922         r14 into a stack slot.
6923
6924 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
6925
6926         * asan.c (build_check_stmt): Alignment arg was added.
6927         (asan_expand_check_ifn): Optimization for alignment >= 8.
6928
6929 2014-09-19  Olivier Hainque  <hainque@adacore.com>
6930
6931         * config/i386/vxworksae.h: Remove obsolete definitions.
6932         (STACK_CHECK_PROTECT): Define.
6933         * config/i386/vx-common.h: Remove.  Merge contents within
6934         config/i386/vxworks.h.
6935         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
6936         i386/vx-common.h.
6937
6938 2014-09-19  Olivier Hainque  <hainque@adacore.com>
6939
6940         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
6941         * config/rs6000/t-vxworksmils: New file.
6942         * config/rs6000/vxworksmils.h: New file.
6943
6944 2014-09-19  Olivier Hainque  <hainque@adacore.com>
6945
6946         * varasm.c (default_section_type_flags): Flag .persistent.bss
6947         sections as SECTION_BSS.
6948
6949 2014-09-19  Nick Clifton  <nickc@redhat.com>
6950
6951         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
6952         pop'ed registers so that DCE does not eliminate them.
6953
6954 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
6955
6956         PR lto/63298
6957         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
6958
6959 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
6960
6961         * system.h (LIBGCC2_TF_CEXT): Poison.
6962         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
6963         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
6964         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
6965         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
6966         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
6967         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
6968         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
6969         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
6970         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
6971
6972 2014-09-19  Kito Cheng  <kito@0xlab.org>
6973
6974         * except.h: Fix header guard.
6975         * addresses.h: Add missing header guard.
6976         * cfghooks.h: Likewise.
6977         * collect-utils.h: Likewise.
6978         * collect2-aix.h: Likewise.
6979         * conditions.h: Likewise.
6980         * cselib.h: Likewise.
6981         * dwarf2asm.h: Likewise.
6982         * graphds.h: Likewise.
6983         * graphite-scop-detection.h: Likewise.
6984         * gsyms.h: Likewise.
6985         * hw-doloop.h: Likewise.
6986         * incpath.h: Likewise.
6987         * ipa-inline.h: Likewise.
6988         * ipa-ref.h: Likewise.
6989         * ira-int.h: Likewise.
6990         * ira.h: Likewise.
6991         * lra-int.h: Likewise.
6992         * lra.h: Likewise.
6993         * lto-section-names.h: Likewise.
6994         * read-md.h: Likewise.
6995         * reload.h: Likewise.
6996         * rtl-error.h: Likewise.
6997         * sdbout.h: Likewise.
6998         * targhooks.h: Likewise.
6999         * tree-affine.h: Likewise.
7000         * xcoff.h: Likewise.
7001         * xcoffout.h: Likewise.
7002
7003 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
7004
7005         PR debug/63285
7006         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
7007         if advance != 0.
7008
7009 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
7010
7011         PR target/61360
7012         * lra.c (lra): Call recog_init.
7013
7014 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
7015
7016         PR c++/62017
7017         * asan.c (transform_statements): Don't instrument clobber statements.
7018
7019 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7020
7021         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
7022         to neon_load1_1reg<q>.
7023
7024 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
7025
7026         PR debug/63284
7027         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
7028         if there are only debug stmts after the noreturn call, instead
7029         remove the debug stmts.
7030
7031 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
7032
7033         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
7034         (odr_types_equivalent_p): Use pair hash.
7035         (odr_subtypes_equivalent_p): Likewise, do structural compare
7036         on ODR types that may be mismatched.
7037         (warn_odr): Support warning when only one field is given.
7038         (odr_types_equivalent_p): Strenghten comparsions made;
7039         support VOIDtype.
7040         (add_type_duplicate): Update VISITED hash set.
7041
7042 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7043
7044         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
7045         Enable selection of 'posix' or no thread model.
7046
7047 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
7048
7049         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
7050         when architecture is older than ARMv7.
7051
7052 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
7053
7054         PR target/61853
7055         * config/pa/pa.c (pa_function_value): Directly handle aggregates
7056         that fit exactly in a word or double word.
7057
7058 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
7059
7060         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
7061         zmm/k regs support.
7062
7063 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7064             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7065             Anna Tikhonova  <anna.tikhonova@intel.com>
7066             Ilya Tocar  <ilya.tocar@intel.com>
7067             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7068             Ilya Verbin  <ilya.verbin@intel.com>
7069             Kirill Yukhin  <kirill.yukhin@intel.com>
7070             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7071
7072         * config/i386/i386.c
7073         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
7074         * config/i386/sse.md
7075         (define_mode_iterator VI48F_256): New.
7076         (define_mode_attr extract_type): Ditto.
7077         (define_mode_attr extract_suf): Ditto.
7078         (define_mode_iterator AVX512_VEC): Ditto.
7079         (define_expand
7080         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
7081         AVX512_VEC.
7082         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
7083         (define_insn
7084         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
7085         Ditto.
7086         (define_mode_attr extract_type_2): Ditto.
7087         (define_mode_attr extract_suf_2): Ditto.
7088         (define_mode_iterator AVX512_VEC_2): Ditto.
7089         (define_expand
7090         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
7091         AVX512_VEC_2 mode iterator.
7092         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
7093         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
7094         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
7095         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
7096         (define_split for V16FI mode): Ditto.
7097         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
7098         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
7099         (define_split for VI8F_256 mode): Ditto.
7100         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
7101         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
7102         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
7103         (define_split for VI4F_256 mode): Ditto.
7104         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
7105         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
7106         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
7107         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
7108         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
7109         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
7110         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
7111         Update `type' attribute, remove explicit `memory' attribute calculation.
7112
7113 2014-09-16  Kito Cheng  <kito@0xlab.org>
7114
7115         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
7116         ira_spilled_reg_stack_slots_num if using lra.
7117         (do_reload): Remove release ira_spilled_reg_stack_slots part.
7118         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
7119         make sure not using lra.
7120         (ira_reuse_stack_slot): Likewise.
7121         (ira_mark_new_stack_slot): Likewise.
7122
7123 2014-09-15  Andi Kleen  <ak@linux.intel.com>
7124
7125         * function.c (allocate_struct_function): Force
7126         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
7127         profiling is disabled.
7128
7129 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
7130
7131         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
7132         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
7133         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
7134         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
7135         macro with statically checked member functions.
7136         * rtl.h (rtx_insn::deleted): New method.
7137         (rtx_insn::set_deleted): Likewise.
7138         (rtx_insn::set_undeleted): Likewise.
7139         (INSN_DELETED_P): Remove.
7140
7141 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
7142
7143         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
7144         result of emit_jump_insn_before to a new variable.
7145         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
7146         (mark_jump_label_1): Likewise.
7147         (mark_jump_label_asm): Likewise.
7148         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
7149         * rtl.h (mark_jump_label): Adjust.
7150
7151 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
7152
7153         * Makefile.in (dg_target_exps): Remove.
7154         (check_gcc_parallelize): Change to just an upper bound number.
7155         (check-%-subtargets): Always print the non-parallelized goals.
7156         (check_p_vars, check_p_comma, check_p_subwork): Remove.
7157         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
7158         check_p_numbers3, check_p_numbers4, check_p_numbers5,
7159         check_p_numbers6): New variables.
7160         (check_p_numbers): Set to sequence from 1 to 9999.
7161         (check_p_subdirs): Set to sequence from 1 to minimum of
7162         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
7163         or 128.
7164         (check-%, check-parallel-%): Rewritten so that for parallelized
7165         testing each job runs all the *.exp files, with
7166         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
7167
7168 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
7169
7170         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
7171         rtx to rtx_insn *.
7172         (arc_sets_cc_p): Likewise.
7173         * config/arc/arc.c (arc_print_operand): Use methods of
7174         "final_sequence" for clarity, and to enable strengthening of
7175         locals "jump" and "delay" from rtx to rtx_insn *.
7176         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
7177         rtx_insn *; use method of rtx_sequence for typesafety.
7178         (arc_get_insn_variants): Use insn method of rtx_sequence for
7179         typesafety.
7180         (arc_pad_return): Likewise.
7181         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
7182         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
7183         dyn_cast to rtx_sequence *, using insn method for typesafety.
7184         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
7185         rtx_sequence * and use insn method when invoking get_attr_length.
7186         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
7187         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
7188         rtx_sequence *, introducing a local "seq", using its insn method
7189         from typesafety and clarity.
7190         (add_sched_insns_for_speculation): Strengthen local "next" from
7191         rtx to rtx_insn *.
7192         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
7193         (predicate_insn): Likewise.
7194         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
7195         second param.
7196         * config/cris/cris.c (cris_notice_update_cc): Likewise.
7197         * config/epiphany/epiphany-protos.h
7198         (extern void epiphany_insert_mode_switch_use): Likewise for param
7199         "insn".
7200         (get_attr_sched_use_fpu): Likewise for param.
7201         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
7202         Likewise for param "insn".
7203         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
7204         param "insn" of "target_insert_mode_switch_use" callback.
7205         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
7206         (frv_issues_to_branch_unit_p): Likewise.
7207         (frv_pack_insn_p): Likewise.
7208         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
7209         const rtx * (i.e. mutable rtx_def * const *) to
7210         rtx_insn * const *.
7211         * config/i386/i386-protos.h (standard_sse_constant_opcode):
7212         Strengthen first param from rtx to rtx_insn *.
7213         (output_fix_trunc): Likewise.
7214         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
7215         (output_fix_trunc): Likewise.
7216         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
7217         local "insn".
7218         (min_insn_size): Likewise for param "insn".
7219         (get_mem_group): Likewise.
7220         (is_cmp): Likewise.
7221         (get_insn_path): Likewise.
7222         (get_insn_group): Likewise.
7223         (count_num_restricted): Likewise.
7224         (fits_dispatch_window): Likewise.
7225         (add_insn_window): Likewise.
7226         (add_to_dispatch_window): Likewise.
7227         (debug_insn_dispatch_info_file): Likewise.
7228         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
7229         first param.
7230         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
7231         "cmp" and local "prev".
7232         (m32c_output_compare): Likewise for param "insn".
7233         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
7234         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
7235         (define_predicate "large_insn_p"): Likewise.
7236         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
7237         param from rtx to rtx_insn *.
7238         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
7239         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
7240         (m68k_sched_attr_size): Likewise.
7241         (sched_get_opxy_mem_type): Likewise for param "insn".
7242         (m68k_sched_attr_op_mem): Likewise.
7243         (sched_mem_operand_p): Likewise.
7244         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
7245         * config/mep/mep.c (mep_multi_slot): Likewise.
7246         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
7247         first param.
7248         (mips_sync_loop_insns): Likewise.
7249         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
7250         method of "final_sequence" for typesafety.
7251         (mips_process_sync_loop): Strengthen param "insn" from rtx to
7252         rtx_insn *.
7253         (mips_output_sync_loop): Likewise.
7254         (mips_sync_loop_insns): Likewise.
7255         (mips_74k_agen_init): Likewise.
7256         (mips_sched_init): Use NULL rather than NULL_RTX when working with
7257         insns.
7258         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
7259         Strengthen param "insn" from rtx to rtx_insn *.
7260         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
7261         local "insn".
7262         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
7263         param.
7264         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
7265         "insn".  Use method of rtx_sequence for typesafety.
7266         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
7267         rtx_insn *.
7268         (branch_needs_nop_p): Likewise.
7269         (use_skip_p): Likewise.
7270         (pa_insn_refs_are_delayed): Likewise.
7271         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
7272         for locals "insn", "ninsn".
7273         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
7274         "insn".
7275         (is_cracked_insn): Likewise.
7276         (is_branch_slot_insn): Likewise.
7277         (is_nonpipeline_insn): Likewise.
7278         (insn_terminates_group_p): Likewise.
7279         (insn_must_be_first_in_group): Likewise.
7280         (insn_must_be_last_in_group): Likewise.
7281         (force_new_group): Likewise for param "next_insn".
7282         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
7283         "insn".
7284         (s390_sched_score): Likewise.
7285         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
7286         (rtx sfunc_uses_reg): Likewise for sole param.
7287         * config/sh/sh.c (sh_print_operand): Use insn method of
7288         final_sequence for typesafety.
7289         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
7290         Use insn method of final_sequence for typesafety.
7291         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
7292         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
7293         for param.
7294         (eligible_for_return_delay): Likewise.
7295         (eligible_for_sibcall_delay): Likewise.
7296         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
7297         (eligible_for_return_delay): Likewise.
7298         (eligible_for_sibcall_delay): Likewise.
7299         * config/stormy16/stormy16-protos.h
7300         (xstormy16_output_cbranch_hi): Likewise for final param.
7301         (xstormy16_output_cbranch_si): Likewise.
7302         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
7303         (xstormy16_output_cbranch_si): Likewise.
7304         * config/v850/v850-protos.h (notice_update_cc): Likewise.
7305         * config/v850/v850.c (notice_update_cc): Likewise.
7306
7307         * final.c (get_attr_length_1): Strengthen param "insn" and param
7308         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
7309         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
7310         (get_attr_min_length): Likewise.
7311         (shorten_branches): Likewise for signature of locals "length_fun"
7312         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
7313         from a checked cast and use its methods for clarity and to enable
7314         strengthening local "inner_insn" from rtx to rtx_insn *.
7315         * genattr.c (gen_attr): When writing out the prototypes of the
7316         various generated "get_attr_" functions, strengthen the params of
7317         the non-const functions from rtx to rtx_insn *.
7318         Similarly, strengthen the params of insn_default_length,
7319         insn_min_length, insn_variable_length_p, insn_current_length.
7320         (main): Similarly, strengthen the param of num_delay_slots,
7321         internal_dfa_insn_code, insn_default_latency, bypass_p,
7322         insn_latency, min_issue_delay, print_reservation,
7323         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
7324         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
7325         to hook_int_rtx_insn_unreachable.
7326         * genattrtab.c (write_attr_get): When writing out the generated
7327         "get_attr_" functions, strengthen the param "insn" from rtx to
7328         rtx_insn *, eliminating a checked cast.
7329         (make_automaton_attrs): When writing out prototypes of
7330         "internal_dfa_insn_code_", "insn_default_latency_" functions
7331         and the "internal_dfa_insn_code" and "insn_default_latency"
7332         callbacks, strengthen their params from rtx to rtx_insn *
7333         * genautomata.c (output_internal_insn_code_evaluation): When
7334         writing out code, add a checked cast from rtx to rtx_insn * when
7335         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
7336         (output_dfa_insn_code_func): Strengthen param of generated
7337         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
7338         (output_trans_func): Likewise for generated function
7339         "state_transition".
7340         (output_internal_insn_latency_func): When writing out generated
7341         function "internal_insn_latency", rename params from "insn" and
7342         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
7343         locals "insn" and "insn2" as rtx_insn * with checked casts once
7344         we've proven that we're not dealing with const0_rtx.
7345         (output_insn_latency_func):  Strengthen param of generated
7346         function "insn_latency" from rtx to rtx_insn *.
7347         (output_print_reservation_func): Likewise for generated function
7348         "print_reservation".
7349         (output_insn_has_dfa_reservation_p): Likewise for generated
7350         function "insn_has_dfa_reservation_p".
7351         * hooks.c (hook_int_rtx_unreachable): Rename to...
7352         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
7353         from rtx to rtx_insn *.
7354         * hooks.h (hook_int_rtx_unreachable): Likewise.
7355         (extern int hook_int_rtx_insn_unreachable): Likewise.
7356         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
7357         (get_attr_min_length): Likewise.
7358         * recog.c (get_enabled_alternatives): Likewise.
7359         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
7360         * reorg.c (find_end_label): Introduce local rtx "pat" and
7361         strengthen local "insn" from rtx to rtx_insn *.
7362         (redundant_insn): Use insn method of "seq" rather than element for
7363         typesafety; strengthen local "control" from rtx to rtx_insn *.
7364         * resource.c (mark_referenced_resources): Add checked cast to
7365         rtx_insn * within INSN/JUMP_INSN case.
7366         (mark_set_resources): Likewise.
7367         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
7368         rtx to rtx_insn *.
7369
7370 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
7371
7372         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
7373         param "label" from rtx to rtx_insn *.
7374         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
7375         and local "op".
7376         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
7377         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
7378         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
7379         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
7380         * final.c (default_label_align_after_barrier_max_skip): Strengthen
7381         param from rtx to rtx_insn *.
7382         (default_loop_align_max_skip): Likewise.
7383         (default_label_align_max_skip): Likewise.
7384         (default_jump_align_max_skip): Likewise.
7385         * target.def (label_align_after_barrier_max_skip): Likewise.
7386         (loop_align_max_skip): Likewise.
7387         (label_align_max_skip): Likewise.
7388         (jump_align_max_skip): Likewise.
7389         * targhooks.h (default_label_align_after_barrier_max_skip):
7390         Likewise.
7391         (default_loop_align_max_skip): Likewise.
7392         (default_label_align_max_skip): Likewise.
7393         (default_jump_align_max_skip): Likewise.
7394
7395 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
7396
7397         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
7398         from const_rtx to const rtx_insn *.  Update union members from rtx
7399         to rtx_insn *.
7400         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
7401         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
7402         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
7403         strengthen both params from const_rtx to const rtx_insn *.
7404         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
7405         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
7406         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
7407         rtx_insn *.
7408         * target.def (can_follow_jump): Strengthen both params from
7409         const_rtx to const rtx_insn *, and update default implementation
7410         from hook_bool_const_rtx_const_rtx_true to
7411         hook_bool_const_rtx_insn_const_rtx_insn_true.
7412
7413 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
7414
7415         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
7416         "insn" from rtx to rtx_insn *.
7417         * sched-int.h (deps_start_bb): Likewise for 2nd param.
7418
7419 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7420             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7421             Anna Tikhonova  <anna.tikhonova@intel.com>
7422             Ilya Tocar  <ilya.tocar@intel.com>
7423             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7424             Ilya Verbin  <ilya.verbin@intel.com>
7425             Kirill Yukhin  <kirill.yukhin@intel.com>
7426             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7427
7428         * config/i386/sse.md
7429         (define_insn "vcvtph2ps<mask_name>"): Add masking.
7430         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
7431         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
7432         (define_expand "vcvtps2ph_mask"): New.
7433         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
7434         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
7435         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
7436
7437 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7439             Anna Tikhonova  <anna.tikhonova@intel.com>
7440             Ilya Tocar  <ilya.tocar@intel.com>
7441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7442             Ilya Verbin  <ilya.verbin@intel.com>
7443             Kirill Yukhin  <kirill.yukhin@intel.com>
7444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7445
7446         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
7447         New.
7448         (define_mode_iterator VI24_AVX512BW_1): Ditto.
7449         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
7450         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
7451         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
7452         also for TARGET_AVX512VL.
7453         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
7454
7455 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
7456
7457         * doc/install.texi (Options specification): add
7458         --disable-libsanitizer item.
7459
7460 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
7461             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7462
7463         PR target/61407
7464         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
7465         and above.
7466         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
7467         kernel version check to avoid incrementing it after every major OS X
7468         release.
7469         (darwin_default_min_version): Avoid static memory buffer.
7470
7471 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
7472
7473         * tree.c (need_assembler_name_p): Store C++ type mangling only
7474         for aggregates.
7475
7476 2014-09-13  Marek Polacek  <polacek@redhat.com>
7477
7478         * tree.c (protected_set_expr_location): Don't check whether T is
7479         non-null here.
7480
7481 2014-09-12  DJ Delorie  <dj@redhat.com>
7482
7483         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
7484         (extend_and_shift1_hipsi2): Likewise.
7485         (extend_and_shift2_hipsi2): Likewise.
7486
7487 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
7488
7489         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
7490         with NULL when dealing with an insn.
7491         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
7492         from rtx to rtx_insn *.
7493         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
7494         const_rtx to const rtx_insn *.
7495         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
7496
7497 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
7498
7499         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
7500         assert.
7501
7502 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
7503
7504         * target.def (libgcc_floating_mode_supported_p): New hook.
7505         * targhooks.c (default_libgcc_floating_mode_supported_p): New
7506         function.
7507         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
7508         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
7509         (LIBGCC2_HAS_TF_MODE): Remove.
7510         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
7511         * doc/tm.texi: Regenerate.
7512         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
7513         machine mode.
7514         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
7515         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
7516         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
7517         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
7518         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
7519         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
7520         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
7521         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
7522         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
7523         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
7524         function.
7525         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
7526         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
7527         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
7528         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
7529         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
7530         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
7531         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
7532         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
7533         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
7534         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
7535         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
7536         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
7537         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
7538         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
7539         Remove.
7540         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
7541         New macro.
7542         (ia64_libgcc_floating_mode_supported_p): New function.
7543         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
7544         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
7545         (IA64_NO_LIBGCC_TFMODE): Define.
7546         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
7547         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
7548         macro.
7549         (pdp11_scalar_mode_supported_p): New function.
7550         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
7551         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
7552
7553 2014-09-12  Richard Biener  <rguenther@suse.de>
7554
7555         PR middle-end/63237
7556         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
7557
7558 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
7559
7560         * tree.c (integer_each_onep): New function.
7561         * tree.h (integer_each_onep): Declare it.
7562         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
7563         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
7564         (X & 1) == 0 for vector and complex.
7565
7566 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
7567
7568         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
7569         for A57.
7570         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
7571         cost to spilling from integer to FP registers.
7572
7573 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
7574
7575         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
7576         move handling.
7577         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
7578         are now handled correctly.
7579
7580 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
7581
7582         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
7583         handling of CALLER_SAVE_REGS and POINTER_REGS.
7584
7585 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
7586
7587         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
7588         the number of hard registers.
7589
7590 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7591             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7592             Anna Tikhonova  <anna.tikhonova@intel.com>
7593             Ilya Tocar  <ilya.tocar@intel.com>
7594             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7595             Ilya Verbin  <ilya.verbin@intel.com>
7596             Kirill Yukhin  <kirill.yukhin@intel.com>
7597             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7598
7599         * config/i386/sse.md
7600         (define_mode_iterator VI48_AVX512VL): New.
7601         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
7602         "avx512f_vternlog<mode>_maskz" and update mode iterator.
7603         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
7604         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
7605         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
7606         "avx512f_vternlog<mode>_mask" and update mode iterator.
7607         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
7608         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
7609         iterator.
7610         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
7611         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
7612         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
7613         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
7614         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
7615         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
7616
7617 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7618             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7619             Anna Tikhonova  <anna.tikhonova@intel.com>
7620             Ilya Tocar  <ilya.tocar@intel.com>
7621             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7622             Ilya Verbin  <ilya.verbin@intel.com>
7623             Kirill Yukhin  <kirill.yukhin@intel.com>
7624             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7625
7626         * config/i386/sse.md (VI128_256): Delete.
7627         (define_mode_iterator VI124_256): New.
7628         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
7629         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
7630         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
7631         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
7632         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
7633         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
7634         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
7635         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
7636         iterator.
7637         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
7638         in presence of AVX-512.
7639
7640 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7641             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7642             Anna Tikhonova  <anna.tikhonova@intel.com>
7643             Ilya Tocar  <ilya.tocar@intel.com>
7644             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7645             Ilya Verbin  <ilya.verbin@intel.com>
7646             Kirill Yukhin  <kirill.yukhin@intel.com>
7647             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7648
7649         * config/i386/sse.md
7650         (define_expand "<avx512>_gathersi<mode>"): Rename from
7651         "avx512f_gathersi<mode>".
7652         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
7653         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
7654         (define_expand "<avx512>_gatherdi<mode>"): Rename from
7655         "avx512f_gatherdi<mode>".
7656         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
7657         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
7658         wide versions.
7659         (define_expand "<avx512>_scattersi<mode>"): Rename from
7660         "avx512f_scattersi<mode>".
7661         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
7662         (define_expand "<avx512>_scatterdi<mode>"): Rename from
7663         "avx512f_scatterdi<mode>".
7664         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
7665
7666 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
7667
7668         * ira.h (ira_finish_once): Delete.
7669         * ira-int.h (target_ira_int::~target_ira_int): Declare.
7670         (target_ira_int::free_ira_costs): Likewise.
7671         (target_ira_int::free_register_move_costs): Likewise.
7672         (ira_finish_costs_once): Delete.
7673         * ira.c (free_register_move_costs): Replace with...
7674         (target_ira_int::free_register_move_costs): ...this new function.
7675         (target_ira_int::~target_ira_int): Define.
7676         (ira_init): Call free_register_move_costs as a member function rather
7677         than a global function.
7678         (ira_finish_once): Delete.
7679         * ira-costs.c (free_ira_costs): Replace with...
7680         (target_ira_int::free_ira_costs): ...this new function.
7681         (ira_init_costs): Call free_ira_costs as a member function rather
7682         than a global function.
7683         (ira_finish_costs_once): Delete.
7684         * target-globals.c (target_globals::~target_globals): Call the
7685         target_ira_int destructor.
7686         * toplev.c: Include lra.h.
7687         (finalize): Call lra_finish_once rather than ira_finish_once.
7688
7689 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
7690
7691         * common.opt (flto-odr-type-merging): New flag.
7692         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
7693         (types_same_for_odr): Likewise.
7694         (odr_subtypes_equivalent_p): Likewise.
7695         (add_type_duplicate): Do not walk type variants.
7696         (register_odr_type): New function.
7697         * ipa-utils.h (register_odr_type): Declare.
7698         (odr_type_p): New function.
7699         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
7700         TYPE_DECLs
7701         * doc/invoke.texi (-flto-odr-type-merging): Document.
7702         * tree.c (need_assembler_name_p): Compute ODR names when asked
7703         for it.
7704         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
7705
7706 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
7707
7708         PR target/63228
7709         * config/i386/i386.c (ix86_option_override_internal): Also turn
7710         off OPTION_MASK_ABI_X32 for -m16.
7711
7712 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
7713
7714         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
7715         GPR instead of P.
7716
7717 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
7718
7719         PR target/58757
7720         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
7721         Directly forward to __*_DENORM_MIN__.
7722
7723 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
7724
7725         * rtl.h (LABEL_REF_LABEL): New macro.
7726
7727         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
7728         of XEXP (, 0), where we know that we have a LABEL_REF.
7729         * cfgbuild.c (make_edges): Likewise.
7730         (purge_dead_tablejump_edges): Likewise.
7731         * cfgexpand.c (convert_debug_memory_address): Likewise.
7732         * cfgrtl.c (patch_jump_insn): Likewise.
7733         * combine.c (distribute_notes): Likewise.
7734         * cse.c (hash_rtx_cb): Likewise.
7735         (exp_equiv_p): Likewise.
7736         (fold_rtx): Likewise.
7737         (check_for_label_ref): Likewise.
7738         * cselib.c (rtx_equal_for_cselib_1): Likewise.
7739         (cselib_hash_rtx): Likewise.
7740         * emit-rtl.c (mark_label_nuses): Likewise.
7741         * explow.c (convert_memory_address_addr_space): Likewise.
7742         * final.c (output_asm_label): Likewise.
7743         (output_addr_const): Likewise.
7744         * gcse.c (add_label_notes): Likewise.
7745         * genconfig.c (walk_insn_part): Likewise.
7746         * genrecog.c (validate_pattern): Likewise.
7747         * ifcvt.c (cond_exec_get_condition): Likewise.
7748         (noce_emit_store_flag): Likewise.
7749         (noce_get_alt_condition): Likewise.
7750         (noce_get_condition): Likewise.
7751         * jump.c (maybe_propagate_label_ref): Likewise.
7752         (mark_jump_label_1): Likewise.
7753         (redirect_exp_1): Likewise.
7754         (rtx_renumbered_equal_p): Likewise.
7755         * lra-constraints.c (operands_match_p): Likewise.
7756         * reload.c (operands_match_p): Likewise.
7757         (find_reloads): Likewise.
7758         * reload1.c (set_label_offsets): Likewise.
7759         * reorg.c (get_branch_condition): Likewise.
7760         * rtl.c (rtx_equal_p_cb): Likewise.
7761         (rtx_equal_p): Likewise.
7762         * rtlanal.c (reg_mentioned_p): Likewise.
7763         (rtx_referenced_p): Likewise.
7764         (get_condition): Likewise.
7765         * sched-vis.c (print_value): Likewise.
7766         * varasm.c (const_hash_1): Likewise.
7767         (compare_constant): Likewise.
7768         (const_rtx_hash_1): Likewise.
7769         (output_constant_pool_1): Likewise.
7770
7771 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
7772
7773         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
7774         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
7775         instead of minus.
7776         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
7777         cr6_test_for_lt_reverse): Ditto.
7778
7779 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
7780
7781         PR c++/61489
7782         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
7783
7784 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
7785
7786         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
7787         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
7788         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
7789         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
7790         Delete.
7791
7792         (aarch64_fold_builtin): Remove all reinterpret cases.
7793
7794         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
7795
7796         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
7797
7798         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
7799         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
7800         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
7801         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
7802         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
7803         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
7804         aarch64_reinterpretv2df<mode>): Delete.
7805
7806         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
7807
7808         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
7809         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
7810         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
7811         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
7812         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
7813         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
7814         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
7815         vreinterpret_u32_f64): Use cast.
7816
7817         * config/aarch64/iterators.md (VD_RE): Delete.
7818
7819 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
7820
7821         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
7822         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
7823         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
7824         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
7825         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
7826         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
7827         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
7828         Replace inline assembler with __aarch64_vset_lane_any.
7829
7830 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
7831
7832         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
7833         types.
7834         (vmull_high_lane_s32): Likewise.
7835         (vmull_high_lane_u16): Likewise.
7836         (vmull_high_lane_u32): Likewise.
7837
7838 2014-09-11  Jason Merrill  <jason@redhat.com>
7839
7840         PR c++/58678
7841         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
7842
7843 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
7844
7845         PR target/63223
7846         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
7847         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
7848         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
7849
7850 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7851             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7852             Anna Tikhonova  <anna.tikhonova@intel.com>
7853             Ilya Tocar  <ilya.tocar@intel.com>
7854             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7855             Ilya Verbin  <ilya.verbin@intel.com>
7856             Kirill Yukhin  <kirill.yukhin@intel.com>
7857             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7858
7859         * config/i386/sse.md
7860         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
7861         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
7862         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
7863         New.
7864         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
7865         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
7866         iterator.
7867         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
7868         New.
7869         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
7870         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
7871         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
7872         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
7873         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
7874         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
7875         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
7876         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
7877         iterator.
7878         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
7879         New.
7880         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
7881         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
7882         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
7883
7884 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
7885
7886         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
7887         to access removed nodes.
7888
7889 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
7890
7891         PR tree-optimization/63186
7892         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
7893         (mark_nonssa_use): Likewise.
7894         (verify_non_ssa_vars): Verify all header blocks for label
7895         definitions.
7896
7897 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7898             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7899             Anna Tikhonova  <anna.tikhonova@intel.com>
7900             Ilya Tocar  <ilya.tocar@intel.com>
7901             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7902             Ilya Verbin  <ilya.verbin@intel.com>
7903             Kirill Yukhin  <kirill.yukhin@intel.com>
7904             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7905
7906         * config/i386/sse.md
7907         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
7908         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
7909         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
7910         "<avx2_avx512f>_permvar<mode><mask_name>".
7911         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
7912         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
7913         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
7914         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
7915         Ditto.
7916         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
7917         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
7918         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
7919         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
7920
7921 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
7922
7923         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
7924         V2DF, V4SF, DF, and DI modes.
7925         (vsx_fmav2df2): Likewise.
7926         (vsx_float_fix_<mode>2): Likewise.
7927         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
7928
7929 2014-09-10  Xinliang David Li  <davidxl@google.com>
7930
7931         PR target/63209
7932         * config/arm/arm.md (movcond_addsi): Handle case where source
7933         and target operands are the same.
7934
7935 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
7936
7937         * final.c (this_is_asm_operands): Strengthen this variable from
7938         rtx to const rtx_insn *.
7939         * output.h (this_is_asm_operands): Likewise.
7940         * rtl-error.c (location_for_asm): Strengthen param "insn" from
7941         const_rtx to const rtx_insn *.
7942         (diagnostic_for_asm): Likewise.
7943         * rtl-error.h (error_for_asm): Likewise.
7944         (warning_for_asm): Likewise.
7945
7946 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
7947
7948         * genextract.c (print_header): When writing out insn_extract to
7949         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
7950         * recog.h (insn_extract): Strengthen the param from rtx to
7951         rtx_insn *.
7952
7953 2014-09-10  Mike Stump  <mikestump@comcast.net>
7954
7955         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
7956         8.6.1.
7957
7958 2014-09-10  Martin Jambor  <mjambor@suse.cz>
7959
7960         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
7961         (analyze): Do not set analyze flag if expand_thunk returns false;.
7962         (create_wrapper): Likewise.
7963         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
7964
7965 2014-09-10  Martin Jambor  <mjambor@suse.cz>
7966
7967         PR ipa/61654
7968         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
7969         new decl properly.  Analyze the new thunk if it is expanded.
7970
7971 2014-09-10  Andreas Schwab  <schwab@suse.de>
7972
7973         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
7974         [USED_FOR_TARGET]: Define.
7975
7976 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
7977
7978         * config/mips/mips.c (mips_secondary_reload_class): Handle
7979         regno < 0 case.
7980
7981 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
7982
7983         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
7984         assignment.
7985
7986 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
7987
7988         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
7989         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
7990         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
7991         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
7992         flag_delete_null_pointer_checks for them.
7993         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7994         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
7995         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
7996         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
7997         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
7998         stmt's iterator.
7999         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
8000         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
8001         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
8002         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
8003         * doc/invoke.texi (-fsanitize=nonnull-attribute,
8004         -fsanitize=returns-nonnull-attribute): Document.
8005
8006         * ubsan.h (struct ubsan_mismatch_data): Removed.
8007         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
8008         * ubsan.c (ubsan_source_location): For unknown locations,
8009         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
8010         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
8011         Allow more than one location and arbitrary extra arguments passed
8012         in ... instead of through MISMATCH pointer.
8013         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
8014         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
8015         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
8016         callers.
8017
8018 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8019             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8020             Anna Tikhonova  <anna.tikhonova@intel.com>
8021             Ilya Tocar  <ilya.tocar@intel.com>
8022             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8023             Ilya Verbin  <ilya.verbin@intel.com>
8024             Kirill Yukhin  <kirill.yukhin@intel.com>
8025             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8026
8027         * config/i386/sse.md
8028         (define_mode_iterator VI48F): New.
8029         (define_insn "<avx512>_compress<mode>_mask"): Rename from
8030         "avx512f_compress<mode>_mask" and update mode iterator.
8031         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
8032         "avx512f_compressstore<mode>_mask" and update mode iterator.
8033         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
8034         "avx512f_expand<mode>_maskz" and update mode iterator.
8035         (define_insn "<avx512>_expand<mode>_mask"): Rename from
8036         "avx512f_expand<mode>_mask" and update mode iterator.
8037
8038 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8039             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8040             Anna Tikhonova  <anna.tikhonova@intel.com>
8041             Ilya Tocar  <ilya.tocar@intel.com>
8042             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8043             Ilya Verbin  <ilya.verbin@intel.com>
8044             Kirill Yukhin  <kirill.yukhin@intel.com>
8045             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8046
8047         * config/i386/i386.c
8048         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
8049         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
8050         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
8051         avx512dq_rangepv4sf_mask.
8052         * config/i386/sse.md
8053         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
8054         UNSPEC_RANGE.
8055         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
8056         (define_insn "reduces<mode>"): Ditto.
8057         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8058         Ditto.
8059         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
8060         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
8061         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
8062
8063 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8064             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8065             Anna Tikhonova  <anna.tikhonova@intel.com>
8066             Ilya Tocar  <ilya.tocar@intel.com>
8067             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8068             Ilya Verbin  <ilya.verbin@intel.com>
8069             Kirill Yukhin  <kirill.yukhin@intel.com>
8070             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8071
8072         * config/i386/i386.c
8073         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
8074         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
8075         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
8076         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
8077         avx512vl_getmantv2df_mask.
8078         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
8079         avx512f_vgetmantv4sf_round.
8080         * config/i386/sse.md
8081         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
8082         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
8083         mode iterator.
8084         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
8085         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
8086         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
8087         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
8088         iterator..
8089         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
8090         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
8091         update mode iterator.
8092         (define_expand
8093         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
8094         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
8095         mode iterator.
8096         (define_insn
8097         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
8098         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
8099         update mode iterator.
8100         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
8101         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
8102         iterator..
8103         (define_insn
8104         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
8105         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
8106         mode iterator..
8107         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
8108         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
8109         update mode iterator.
8110         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
8111         "avx512f_getmant<mode><round_saeonly_name>".
8112
8113 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
8114
8115         PR ipa/63166
8116         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
8117
8118 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8119             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8120             Anna Tikhonova  <anna.tikhonova@intel.com>
8121             Ilya Tocar  <ilya.tocar@intel.com>
8122             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8123             Ilya Verbin  <ilya.verbin@intel.com>
8124             Kirill Yukhin  <kirill.yukhin@intel.com>
8125             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8126
8127         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
8128         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
8129         (define_mode_iterator FMAMODE_AVX512): New.
8130         (define_mode_iterator FMAMODE): Remove conditions.
8131         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
8132         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
8133         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
8134         mode iterator.
8135         (define_mode_iterator FMAMODE_NOVF512): Remove.
8136         (define_insn "*fma_fmadd_<mode>"): Rename from
8137         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
8138         FMAMODE mode iterator.
8139         (define_mode_iterator VF_SF_AVX512VL): New.
8140         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
8141         Use VF_SF_AVX512VL mode iterator.
8142         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
8143         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
8144         iterator.
8145         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
8146         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8147         iterator.
8148         (define_insn "*fma_fmsub_<mode>"): Rename from
8149         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
8150         FMAMODE mode iterator.
8151         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
8152         Use VF_SF_AVX512VL mode iterator.
8153         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
8154         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
8155         iterator.
8156         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
8157         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8158         iterator.
8159         (define_insn "*fma_fnmadd_<mode>"): Rename from
8160         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
8161         use FMAMODE mode iterator.
8162         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
8163         Use VF_SF_AVX512VL mode iterator.
8164         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
8165         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
8166         iterator.
8167         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
8168         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8169         iterator.
8170         (define_insn "*fma_fnmsub_<mode>"): Rename from
8171         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
8172         FMAMODE mode iterator.
8173         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
8174         Use VF_SF_AVX512VL mode iterator.
8175         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
8176         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
8177         iterator.
8178         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
8179         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8180         iterator.
8181         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
8182         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
8183         use VF_AVX512VL mode iterator.
8184         (define_insn "*fma_fmaddsub_<mode>"): Rename from
8185         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
8186         remove subst usage.
8187         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
8188         Use VF_SF_AVX512VL mode iterator.
8189         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
8190         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
8191         iterator.
8192         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
8193         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8194         iterator.
8195         (define_insn "*fma_fmsubadd_<mode>"): Rename from
8196         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
8197         remove usage of subst.
8198         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
8199         Use VF_SF_AVX512VL mode iterator.
8200         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
8201         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
8202         iterator.
8203         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
8204         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8205         iterator.
8206
8207 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
8208
8209         Revert r213751:
8210         * calls.c (precompute_arguments): Check
8211          promoted_for_signed_and_unsigned_p and set the promoted mode.
8212         (promoted_for_signed_and_unsigned_p): New function.
8213         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
8214         and set the promoted mode.
8215         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
8216         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
8217         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
8218
8219 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8220
8221         * opth-gen.awk: Generate mapping from cpp message reasons to the
8222         options that enable them.
8223         * doc/options.texi (CppReason): Document.
8224
8225 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8226
8227         * doc/invoke.texi (Wnormalized=): Update.
8228
8229 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
8230
8231         PR target/63195
8232         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
8233         operands.  Split off the constant operand alternative to ...
8234         (*bool<mode>3_imm): New.
8235
8236 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
8237
8238         * rtl.h (single_set_2): Strengthen first param from const_rtx to
8239         const rtx_insn *, and move prototype to above...
8240         (single_set): ...this.  Convert this from a macro to an inline
8241         function, enforcing the requirement that the param is a const
8242         rtx_insn *.
8243         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
8244
8245         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
8246         Strengthen both params from rtx to rtx_insn *.
8247         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
8248         Likewise; introduce locals "producer_set", "consumer_set", using
8249         them in place of "producer" and "consumer" when dealing with SET
8250         rather than insn.
8251         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
8252         when invoking single_set in region guarded by INSN_P.
8253         (avr_out_bitop): Likewise.
8254         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
8255         region guarded by GET_CODE check, using methods to strengthen
8256         local "this_insn" from rtx to rtx_insn *, and for clarity.
8257         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
8258         Strengthen local "insn" from rtx to rtx_insn *.
8259         (define_insn_and_split "xload<mode>_A"): Likewise.
8260         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
8261         "insn".
8262         (find_load): Likewise for return type.
8263         (workaround_speculation): Likewise for both locals named
8264         "load_insn".
8265         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
8266         local "cc0_user".
8267         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
8268         for local "prev".
8269         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
8270         param 2.
8271         * config/h8300/h8300.c (notice_update_cc): Likewise.
8272         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
8273         "insn" and "dep_insn".
8274         (exact_store_load_dependency): Likewise for both params.
8275         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
8276         since this now clashes with inline function.  Instead, delay
8277         calling single_set until the point where its needed, and then
8278         assign the result to "compare_set" and rework the conditional that
8279         follows.
8280         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
8281         local "last" from rtx to rtx_insn *.
8282         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
8283         second param.
8284         (mips_store_data_bypass_p): Likewise for both params.
8285         * config/mips/mips.c (mips_load_store_insns): Likewise for second
8286         param.
8287         (mips_store_data_bypass_p): Likewise for both params.
8288         (mips_orphaned_high_part_p): Likewise for param "insn".
8289         * config/mn10300/mn10300.c (extract_bundle): Likewise.
8290         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
8291         Introduce local rtx "insn2_pat".
8292         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
8293         "ninsn".
8294         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
8295         Introduce local rtx "set", using it in place of "insn" for the
8296         result of single_set.  This appears to fix a bug, since the call
8297         to find_regno_note on a SET does nothing.
8298         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
8299         params from rtx to rtx_insn *.
8300         (set_to_load_agen): Likewise.
8301         * config/s390/s390.c (s390_label_align): Likewise for local
8302         "prev_insn".  Introduce new rtx locals "set" and "src", using
8303         them in place of "prev_insn" for the results of single_set
8304         and SET_SRC respectively.
8305         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
8306         Introduce new rtx local "set" using in place of "jump" for the
8307         result of single_set.  Use SET_SRC (set) rather than plain
8308         XEXP (set, 1).
8309         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
8310         rtx to rtx_insn *.
8311         (noncall_uses_reg): Likewise.
8312         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
8313         guarded by GET_CODE check, using its methods for clarity, and to
8314         enable strengthening local "this_insn" from rtx to rtx_insn *.
8315         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
8316         "insn" from rtx to rtx_insn *.
8317         (define_expand "umulhisi3"): Likewise.
8318         (define_expand "smulsi3_highpart"): Likewise.
8319         (define_expand "umulsi3_highpart"): Likewise.
8320         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8321         local "after".  Replace GET_CODE check with a dyn_cast,
8322         introducing new local rtx_sequence * "seq", using insn method for
8323         typesafety.
8324
8325         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
8326         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
8327         place of "insn" once we're dealing with patterns rather than the
8328         input insn.
8329         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
8330         (scan_trace): Likewise for local "elt", updating lookups within
8331         sequence to use insn method rather than element method.
8332         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
8333         to rtx_insn *.
8334         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
8335         * ifcvt.c (noce_try_abs): Likewise for local "insn".
8336         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
8337         invoking single_set.
8338         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
8339         "insn" from rtx to rtx_insn *.
8340         (skip_usage_debug_insns): Likewise for return type, adding a
8341         checked cast.
8342         (check_secondary_memory_needed_p): Likewise for local "insn".
8343         (inherit_reload_reg): Likewise.
8344         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
8345         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
8346         checked casts.
8347         (store_data_bypass_p): Likewise for both params.
8348         (if_test_bypass_p): Likewise.
8349         * recog.h (store_data_bypass_p): Likewise for both params.
8350         (if_test_bypass_p): Likewise.
8351         * reload.c (find_equiv_reg): Likewise for local "where".
8352         * reorg.c (delete_jump): Likewise for param "insn".
8353         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
8354         to const rtx_insn *.
8355         * store-motion.c (replace_store_insn): Likewise for param "del".
8356         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
8357         and use its methods for clarity, and to strengthen local "del"
8358         from rtx to rtx_insn *.
8359         (build_store_vectors): Use insn method of "st" when calling
8360         replace_store_insn for typesafety and clarity.
8361
8362 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8363
8364         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
8365         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
8366         on how to make it legal in future.
8367
8368 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
8369
8370         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
8371         to rtx_insn *.
8372         (restinsn): Likewise.
8373         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
8374         Likewise for param.
8375         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
8376         Likewise.
8377         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
8378         first param.
8379         (arc_hazard): Likewise for both params.
8380         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
8381         checked casts to rtx_sequence * and uses of the insn method for
8382         type-safety.
8383         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
8384         (arc_adjust_insn_length): Likewise for param "insn".
8385         (struct insn_length_parameters_s): Likewise for first param of
8386         "get_variants" callback field.
8387         (arc_get_insn_variants): Likewise for first param and local
8388         "inner".  Replace a check of GET_CODE with a dyn_cast to
8389         rtx_sequence *, using methods for type-safety and clarity.
8390         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
8391         rtx_sequence * and uses of the insn method for type-safety when
8392         invoking arc_adjust_insn_length.
8393         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
8394         for param.
8395         (arm_address_offset_is_imm): Likewise.
8396         (struct tune_params): Likewise for params 1 and 3 of the
8397         "sched_adjust_cost" callback field.
8398         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
8399         params 1 and 3 ("insn" and "dep").
8400         (xscale_sched_adjust_cost): Likewise.
8401         (fa726te_sched_adjust_cost): Likewise.
8402         (cortexa7_older_only): Likewise for param "insn".
8403         (cortexa7_younger): Likewise.
8404         (arm_attr_length_move_neon): Likewise.
8405         (arm_address_offset_is_imm): Likewise.
8406         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
8407         * config/avr/avr.c (avr_notice_update_cc): Likewise.
8408         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
8409         (workaround_speculation): Likewise for local "last_condjump".
8410         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
8411         (shadow_or_blockage_p): Likewise.
8412         (get_unit_reqs): Likewise.
8413         (get_unit_operand_masks): Likewise.
8414         (c6x_registers_update): Likewise.
8415         (returning_call_p): Likewise.
8416         (can_use_callp): Likewise.
8417         (convert_to_callp): Likewise.
8418         (find_last_same_clock): Likwise for local "t".
8419         (reorg_split_calls): Likewise for local "shadow".
8420         (hwloop_pattern_reg): Likewise for param "insn".
8421         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
8422         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
8423         (frv_extract_membar): Likewise.
8424         (frv_optimize_membar_local): Strengthen param "last_membar" from
8425         rtx * to rtx_insn **.
8426         (frv_optimize_membar_global): Strengthen param "membar" from rtx
8427         to rtx_insn *.
8428         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
8429         to rtx_insn **.
8430         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
8431         both params from rtx to rtx_insn *.
8432         (ia64_ld_address_bypass_p): Likewise.
8433         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
8434         "insn".
8435         (ia64_safe_type): Likewise.
8436         (group_barrier_needed): Likewise.
8437         (safe_group_barrier_needed): Likewise.
8438         (ia64_single_set): Likewise.
8439         (is_load_p): Likewise.
8440         (record_memory_reference): Likewise.
8441         (get_mode_no_for_insn): Likewise.
8442         (important_for_bundling_p): Likewise.
8443         (unknown_for_bundling_p): Likewise.
8444         (ia64_st_address_bypass_p): Likewise for both params.
8445         (ia64_ld_address_bypass_p): Likewise.
8446         (expand_vselect): Introduce new local rtx_insn * "insn", using it
8447         in place of rtx "x" after the emit_insn call.
8448         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
8449         Strengthen param from rtx to rtx_insn *.
8450         (ix86_agi_dependent): Likewise for both params.
8451         (ix86_attr_length_immediate_default): Likewise for param 1.
8452         (ix86_attr_length_address_default): Likewise for param.
8453         (ix86_attr_length_vex_default): Likewise for param 1.
8454         * config/i386/i386.c (ix86_attr_length_immediate_default):
8455         Likewise for param "insn".
8456         (ix86_attr_length_address_default): Likewise.
8457         (ix86_attr_length_vex_default): Likewise.
8458         (ix86_agi_dependent): Likewise for both params.
8459         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
8460         (vselect_insn): Likewise for this variable.
8461         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
8462         for param 1.
8463         (m68k_sched_attr_opy_type): Likewise.
8464         * config/m68k/m68k.c (sched_get_operand): Likewise.
8465         (sched_attr_op_type): Likewise.
8466         (m68k_sched_attr_opx_type): Likewise.
8467         (m68k_sched_attr_opy_type): Likewise.
8468         (sched_get_reg_operand): Likewise.
8469         (sched_get_mem_operand): Likewise.
8470         (m68k_sched_address_bypass_p): Likewise for both params.
8471         (sched_get_indexed_address_scale): Likewise.
8472         (m68k_sched_indexed_address_bypass_p): Likewise.
8473         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
8474         (m68k_sched_indexed_address_bypass_p): Likewise.
8475         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
8476         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
8477         removing another.
8478         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
8479         params from rtx to rtx_insn *.
8480         (mips_fmadd_bypass): Likewise.
8481         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
8482         (mips_linked_madd_p): Likewise.
8483         (mips_macc_chains_last_hilo): Likewise for this variable.
8484         (mips_macc_chains_record): Likewise for param.
8485         (vr4130_last_insn): Likewise for this variable.
8486         (vr4130_swap_insns_p): Likewise for both params.
8487         (mips_ls2_variable_issue): Likewise for param.
8488         (mips_need_noat_wrapper_p): Likewise for param "insn".
8489         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
8490         in place of "x" after the emit_insn.
8491         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
8492         params from rtx to rtx_insn *.
8493         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
8494         (pa_combine_instructions): Introduce local "par" for result of
8495         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
8496         to make_insn_raw.
8497         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
8498         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
8499         (rl78_alloc_physical_registers_op1): Likewise.
8500         (rl78_alloc_physical_registers_op2): Likewise.
8501         (rl78_alloc_physical_registers_ro1): Likewise.
8502         (rl78_alloc_physical_registers_cmp): Likewise.
8503         (rl78_alloc_physical_registers_umul): Likewise.
8504         (rl78_alloc_address_registers_macax): Likewise.
8505         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
8506         * config/s390/predicates.md (execute_operation): Likewise for
8507         local "insn".
8508         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
8509         params.
8510         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
8511         (addr_generation_dependency_p): Likewise for param "insn".
8512         (s390_agen_dep_p): Likewise for both params.
8513         (s390_fpload_toreg): Likewise for param "insn".
8514         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
8515         * config/sh/sh.c (sh_loop_align): Likewise for param and local
8516         "next".
8517         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
8518         * config/sh/sh_treg_combine.cc
8519         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
8520         and local "i".
8521         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
8522         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
8523         "and_insn", "load", "shift".
8524         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
8525         "insn".
8526         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
8527         for XEXP (note, 0) of the REG_CC_SETTER note.
8528         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
8529         rtx_insn *, eliminating a checked cast made redundant by this.
8530         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
8531         to rtx_insn *.
8532         * genattr.c (main): When writing out the prototype to
8533         const_num_delay_slots, strengthen the param from rtx to
8534         rtx_insn *.
8535         * genattrtab.c (write_const_num_delay_slots): Likewise when
8536         writing out the implementation of const_num_delay_slots.
8537         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
8538         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
8539         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
8540         favor of new rtx locals "src" and "set" and new local rtx_insn *
8541         "insn" and "seq".
8542         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
8543         to rtx_insn *.
8544         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
8545         locals "cond", "if_then_else", "set" and new rtx_insn * locals
8546         "insn" and "seq".
8547         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
8548         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
8549         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
8550         the top-level scope, replacing with new more tightly-scoped rtx
8551         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
8552         "new_insn", "copy_of_insn_b", and make local rtx "set" more
8553         tightly-scoped.
8554         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
8555         rtx_insn *.
8556         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
8557         "move_insn".
8558         (ira_setup_alts): Likewise for param "insn".
8559         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
8560         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
8561         and an rtx_insn *.
8562         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
8563         new more-tightly scoped rtx locals "add3_insn", "insn",
8564         "add2_insn" and rtx_insn * "move_insn".
8565         * postreload-gcse.c (eliminate_partially_redundant_load): Add
8566         checked cast on result of gen_move_insn when invoking
8567         extract_insn.
8568         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
8569         rtx_insn *.
8570         (verify_changes): Add a checked cast on "object" when invoking
8571         insn_invalid_p.
8572         (extract_insn_cached): Strengthen param "insn" from rtx to
8573         rtx_insn *.
8574         (extract_constrain_insn_cached): Likewise.
8575         (extract_insn): Likewise.
8576         * recog.h (insn_invalid_p): Likewise for param 1.
8577         (recog_memoized): Likewise for param.
8578         (extract_insn): Likewise.
8579         (extract_constrain_insn_cached): Likewise.
8580         (extract_insn_cached): Likewise.
8581         * reload.c (can_reload_into): Likewise for local "test_insn".
8582         * reload.h (cleanup_subreg_operands): Likewise for param.
8583         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
8584         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
8585         result of emit_insn.  Remove a checked cast made redundant by this
8586         change.
8587         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
8588         rtx to rtx_insn *.
8589         * sel-sched.c (get_reg_class): Likewise.
8590
8591 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8592             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8593
8594         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
8595         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
8596         Define.
8597         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
8598
8599 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
8600
8601         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
8602         const rtx_insn *, and from rtx to rtx_insn * for the other
8603         overloaded variant.
8604         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
8605         INSN_LOCATION, since we know INSN_P holds.
8606         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
8607         (insn_file): Likewise.
8608         (insn_scope): Likewise.
8609         (insn_location): Likewise.
8610
8611         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
8612         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
8613         for the result of gen_load_const_gp.
8614         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
8615         param from rtx to rtx_insn *.
8616         * config/rs6000/rs6000.c (output_call): Likewise.
8617         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
8618         introducing a checked cast to rtx_sequence * and use of the insn
8619         method.
8620         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
8621         from rtx to rtx_insn *.
8622         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
8623         (insn_line): Likewise.
8624         (insn_file): Likewise.
8625         (insn_location): Likewise.
8626         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
8627         from rtx to rtx_insn *.
8628         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
8629         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
8630         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
8631         via a checked cast.
8632         * reorg.c (relax_delay_slots): Strengthen locals named "after"
8633         from rtx to rtx_insn *; use methods of "pat" for type-safety.
8634
8635 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
8636
8637         * combine.c (try_combine): Eliminate checked cast on result of
8638         gen_rtx_INSN.
8639         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
8640         autogenerated one by strengthening the return type and params 2 and 3
8641         from rtx to rtx_insn *, and by naming the params.
8642         * gengenrtl.c (special_rtx): Add INSN to those that are
8643         special-cased.
8644         * rtl.h (gen_rtx_INSN): New prototype.
8645
8646 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
8647
8648         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
8649         than NULL_RTX.
8650         (no_equiv): Likewise.
8651         (update_equiv_regs): Likewise.
8652         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
8653         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
8654         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
8655         clarity.
8656         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
8657         from rtx to rtx_insn_list *.
8658         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
8659         rtx_insn_list * and use methods for clarity and typesafety.
8660         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
8661         "list".
8662         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
8663         redundant check on INSN_P (insns): this cannot hold, as "insns" is
8664         an INSN_LIST, not an insn.
8665         (reverse_equiv_p): Strengthen local "insns" from rtx to
8666         rtx_insn_list * and use methods for clarity and typesafety.
8667         (contains_reloaded_insn_p): Likewise for local "list".
8668
8669 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
8670
8671         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
8672         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
8673         (arm_builtin_vectorized_function): Likewise.
8674         * config/arm/arm_neon_builtins.def: New macro for copysignf.
8675         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
8676
8677 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
8678
8679         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
8680         * builtins.h (default_target_builtins): Likewise.
8681         * gcse.h (default_target_gcse): Likewise.
8682         * target-globals.h (target_globals): Add a destructor.  Convert
8683         void-pointer fields back to their real type and change from
8684         GTY((atomic)) to GTY((skip)).
8685         (restore_target_globals): Remove casts accordingly.
8686         * target-globals.c (save_target_globals): Use XCNEW rather than
8687         ggc_internal_cleared_alloc to allocate non-GC structures.
8688         Use ggc_cleared_alloc to allocate the target_globals structure
8689         itself.
8690         (target_globals::~target_globals): Define.
8691
8692 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8693
8694         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
8695         mnemonic instead of fldmfdd.
8696         * config/arm/arm.c (vfp_output_fstmd): Rename to...
8697         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
8698         Output vpush when address register is SP.
8699         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
8700         (vfp_output_vstmd): ... This.
8701         * config/arm/vfp.md (push_multi_vfp): Update call to
8702         vfp_output_vstmd.
8703
8704 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8705
8706         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
8707
8708 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8709
8710         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
8711         (*sqrtdf2_vfp): Likewise.
8712         (*cmpsf_vfp): Likewise.
8713         (*cmpsf_trap_vfp): Likewise.
8714         (*cmpdf_vfp): Likewise.
8715         (*cmpdf_trap_vfp): Likewise.
8716
8717 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8718
8719         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
8720         (*truncdfsf2_vfp): Likewise.
8721         (*truncsisf2_vfp): Likewise.
8722         (*truncsidf2_vfp): Likewise.
8723         (fixuns_truncsfsi2): Likewise.
8724         (fixuns_truncdfsi2): Likewise.
8725         (*floatsisf2_vfp): Likewise.
8726         (*floatsidf2_vfp): Likewise.
8727         (floatunssisf2): Likewise.
8728         (floatunssidf2): Likewise.
8729
8730 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8731
8732         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
8733         (*muldf3_vfp): Likewise.
8734         (*mulsf3negsf_vfp): Likewise.
8735         (*muldf3negdf_vfp): Likewise.
8736         (*mulsf3addsf_vfp): Likewise.
8737         (*muldf3adddf_vfp): Likewise.
8738         (*mulsf3subsf_vfp): Likewise.
8739         (*muldf3subdf_vfp): Likewise.
8740         (*mulsf3negsfaddsf_vfp): Likewise.
8741         (*fmuldf3negdfadddf_vfp): Likewise.
8742         (*mulsf3negsfsubsf_vfp): Likewise.
8743         (*muldf3negdfsubdf_vfp): Likewise.
8744
8745 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8746
8747         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
8748         (*absdf2_vfp): Likewise.
8749         (*negsf2_vfp): Likewise.
8750         (*negdf2_vfp): Likewise.
8751         (*addsf3_vfp): Likewise.
8752         (*adddf3_vfp): Likewise.
8753         (*subsf3_vfp): Likewise.
8754         (*subdf3_vfp): Likewise.
8755         (*divsf3_vfp): Likewise.
8756         (*divdf3_vfp): Likewise.
8757
8758 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8759
8760         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
8761         multiple.
8762         (arm_print_operand): Don't convert real values to decimal
8763         representation in default case.
8764         (fp_immediate_constant): Delete.
8765         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
8766         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
8767         syntax.
8768         (*thumb2_movsi_vfp): Likewise.
8769         (*movdi_vfp): Likewise.
8770         (*movdi_vfp_cortexa8): Likewise.
8771         (*movhf_vfp_neon): Likewise.
8772         (*movhf_vfp): Likewise.
8773         (*movsf_vfp): Likewise.
8774         (*thumb2_movsf_vfp): Likewise.
8775         (*movdf_vfp): Likewise.
8776         (*thumb2_movdf_vfp): Likewise.
8777         (*movsfcc_vfp): Likewise.
8778         (*thumb2_movsfcc_vfp): Likewise.
8779         (*movdfcc_vfp): Likewise.
8780         (*thumb2_movdfcc_vfp): Likewise.
8781
8782 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
8783
8784         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
8785         (-mtune): Likewise.
8786         (-mcpu): Likewise.
8787
8788 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8789
8790         PR target/61749
8791         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
8792         Use qualifier_immediate for last operand.  Rename to...
8793         (aarch64_types_ternop_lane_qualifiers): ... This.
8794         (TYPES_QUADOP): Rename to...
8795         (TYPES_TERNOP_LANE): ... This.
8796         (aarch64_simd_expand_args): Return const0_rtx when encountering user
8797         error.  Change return of 0 to return of NULL_RTX.
8798         (aarch64_crc32_expand_builtin): Likewise.
8799         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
8800         ICE when expanding unknown builtin.
8801         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
8802         TERNOP_LANE qualifiers.
8803         (sqdmlsl_lane): Likewise.
8804         (sqdmlal_laneq): Likewise.
8805         (sqdmlsl_laneq): Likewise.
8806         (sqdmlal2_lane): Likewise.
8807         (sqdmlsl2_lane): Likewise.
8808         (sqdmlal2_laneq): Likewise.
8809         (sqdmlsl2_laneq): Likewise.
8810
8811 2014-09-09  Nick Clifton  <nickc@redhat.com>
8812
8813         * doc/invoke.texi (Optimization Options): Add missing @gol to the
8814         end of a line.
8815         (S/390 and zSeries Options): Remove superfluous word from the
8816         description of the -mhotpatch option.
8817
8818 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8819
8820         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
8821         * ira.c: #include "shrink-wrap.h"
8822         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
8823         * ifcvt.c: #include "shrink-wrap.h"
8824         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
8825
8826 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
8827
8828         * common/config/picochip/picochip-common.c: Remove.
8829         * config.gcc: Remove support for picochip.
8830         * config/picochip/constraints.md: Remove.
8831         * config/picochip/dfa_space.md: Remove.
8832         * config/picochip/dfa_speed.md: Remove.
8833         * config/picochip/picochip-protos.h: Remove.
8834         * config/picochip/picochip.c: Remove.
8835         * config/picochip/picochip.h: Remove.
8836         * config/picochip/picochip.md: Remove.
8837         * config/picochip/picochip.opt: Remove.
8838         * config/picochip/predicates.md: Remove.
8839         * config/picochip/t-picochip: Remove.
8840         * doc/md.texi: Don't document picochi.
8841
8842 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
8843
8844         * basic-block.h (control_flow_insn_p): Strengthen param from
8845         const_rtx to const rtx_insn *.
8846         * cfgbuild.c (control_flow_insn_p): Likewise.
8847
8848 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
8849
8850         * gcse.c (modify_mem_list): Strengthen this variable from
8851         vec<rtx> * to vec<rtx_insn *> *.
8852         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
8853         vec<rtx_insn *>.
8854         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
8855         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
8856         (record_last_mem_set_info): Strengthen param "insn" from rtx to
8857         rtx_insn *.
8858         (record_last_set_info): Likewise for local "last_set_insn".
8859
8860 2014-09-08  DJ Delorie  <dj@redhat.com>
8861
8862         * doc/invoke.texi (MSP430 Options): Add -minrt.
8863
8864 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8865
8866         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
8867         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
8868         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
8869         handling SH_SPLAT.
8870         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
8871         of extracted lane.
8872         (adjust_splat): New function.
8873         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
8874         (dump_swap_insn_table): Add case for SH_SPLAT.
8875
8876 2014-09-08  Richard Biener  <rguenther@suse.de>
8877
8878         PR ipa/63196
8879         * tree-inline.c (copy_loops): The source loop header should
8880         always be non-NULL.
8881         (tree_function_versioning): If loops need fixup after removing
8882         unreachable blocks fix them.
8883         * omp-low.c (simd_clone_adjust): Do not add incr block to
8884         loop under construction.
8885
8886 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8887
8888         * config/aarch64/aarch64-builtins.c
8889         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
8890
8891 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
8892
8893         * config/i386/cygming.h (TF_SIZE): Remove.
8894         * config/i386/darwin.h (TF_SIZE): Remove.
8895         * config/i386/dragonfly.h (TF_SIZE): Remove.
8896         * config/i386/freebsd.h (TF_SIZE): Remove.
8897         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
8898         * config/i386/openbsdelf.h (TF_SIZE): Remove.
8899         * config/i386/sol2.h (TF_SIZE): Remove.
8900         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
8901         * config/ia64/linux.h (TF_SIZE): Remove.
8902         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
8903         * doc/tm.texi: Regenerate.
8904         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
8905
8906 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
8907
8908         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
8909         Remove.
8910         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
8911         Remove.
8912         * doc/tm.texi: Regenerate.
8913         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
8914         Poison.
8915         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
8916         * config/cris/cris.h (__make_dp): Remove.
8917
8918 2014-09-08  Richard Biener  <rguenther@suse.de>
8919
8920         PR bootstrap/63204
8921         * cfgloop.c (mark_loop_for_removal): Track former header
8922         unconditionally.
8923         * cfgloop.h (struct loop): Add former_header member unconditionally.
8924         * loop-init.c (fix_loop_structure): Enable bogus loop removal
8925         diagnostic unconditionally.
8926
8927 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
8928
8929         PR target/63190
8930         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
8931         constraint for operand0 and remove write only modifier from operand3.
8932
8933 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
8934
8935         PR rtl-optimization/62208
8936         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
8937         rather than const0_rtx in eq/ne-xor simplifications.
8938
8939 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
8940
8941         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
8942         (arc_output_mi_thunk): Likewise.
8943
8944         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
8945         arguments to silence bogus warning.
8946
8947 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
8948
8949         PR middle-end/63171
8950         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
8951
8952 2014-09-06  Tom de Vries  <tom@codesourcery.com>
8953
8954         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
8955         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
8956         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8957
8958 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
8959
8960         PR target/63188
8961         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
8962         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
8963
8964 2014-09-05  Easwaran Raman  <eraman@google.com>
8965
8966         PR rtl-optimization/62146
8967         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
8968         hoisted instruction unconditional.
8969
8970 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
8971
8972         PR target/63187
8973         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
8974         Do not allow any_mask_operand for operands[2].
8975         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
8976
8977 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
8978
8979         * config/arc/arc.c (arc_print_operand): Use insn method of
8980         final_sequence for type-safety.
8981         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
8982         "insn" from rtx to rtx_insn *.
8983         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
8984         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8985         Likewise for locals "branch", "label".
8986         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
8987         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
8988         (same_cmp_following_p): Likewise for locals "i2", "i3".
8989         * config/sh/sh_optimize_sett_clrt.cc
8990         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
8991         param "cbranch_insn".
8992         * function.c (convert_jumps_to_returns): Likewis for local "jump".
8993         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
8994         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
8995         const rtx_insn *.
8996         (condjump_p): Likewise.
8997         (condjump_in_parallel_p): Likewise.
8998         (pc_set): Likewise.
8999         (any_uncondjump_p): Likewise.
9000         (any_condjump_p): Likewise.
9001         (condjump_label): Likewise.
9002         (returnjump_p): Strengthen param "insn" from rtx to
9003         const rtx_insn *.
9004         (onlyjump_p): Strengthen param "insn" from const_rtx to
9005         const rtx_insn *.
9006         (jump_to_label_p): Likewise.
9007         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
9008         (invert_jump): Likewise.
9009         * reorg.c (simplejump_or_return_p): Add checked cast when calling
9010         simplejump_p.
9011         (get_jump_flags): Strengthen param "insn" from rtx to
9012         const rtx_insn *.
9013         (get_branch_condition): Likewise.
9014         (condition_dominates_p): Likewise.
9015         (make_return_insns): Move declaration of local "pat" earlier, to
9016         after we've handled NONJUMP_INSN_P and non-sequences, using its
9017         methods to simplify the code and for type-safety.
9018         * rtl.h (find_constant_src): Strengthen param from const_rtx to
9019         const rtx_insn *.
9020         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
9021         (condjump_p): Strengthen param from const_rtx to
9022         const rtx_insn *.
9023         (any_condjump_p): Likewise.
9024         (any_uncondjump_p): Likewise.
9025         (pc_set): Likewise.
9026         (condjump_label): Likewise.
9027         (simplejump_p): Likewise.
9028         (returnjump_p): Likewise.
9029         (onlyjump_p): Likewise.
9030         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
9031         (invert_jump): Likewise.
9032         (condjump_in_parallel_p): Strengthen param from const_rtx to
9033         const rtx_insn *.
9034         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
9035         to const rtx_insn *.
9036         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
9037         to const rtx_insn *.
9038         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
9039
9040 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9041
9042         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
9043         above the conditional, and convert the check on GET_CODE to a
9044         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
9045         the conditional.  Simplify the conditional by using methods of
9046         "trial_seq".
9047
9048 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9049
9050         * haifa-sched.c (check_clobbered_conditions): Strengthen local
9051         "link" from rtx to rtx_insn_list *, and use its methods for
9052         clarity and type-safety.
9053         (toggle_cancelled_flags): Likewise.
9054         (restore_last_backtrack_point): Likewise.
9055         (queue_to_ready): Use insn method of "link" in one place.
9056         (schedule_block): Strengthen local "link" from rtx to
9057         rtx_insn_list *, and use its methods for clarity and type-safety.
9058
9059 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9060
9061         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
9062         param "insn" from const_rtx to const rtx_insn *.
9063         (sched_get_reverse_condition_uncached): Likewise.
9064         (sched_get_condition_with_rev): Likewise.
9065         (sched_has_condition_p): Likewise.
9066         (sched_insns_conditions_mutex_p): Likewise for both params.
9067         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
9068         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
9069         (setup_insn_reg_uses): Move local "list" to be more tightly
9070         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
9071         its methods for clarity and type-safety.
9072         (sched_analyze_1): Strengthen local "pending" from rtx to
9073         rtx_insn_list *, and local "pending_mem" from rtx to
9074         rtx_expr_list *.  Use methods of each for clarity and type-safety.
9075         (sched_analyze_2): Likewise.
9076         (sched_analyze_insn): Likewise.
9077
9078         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
9079         param from const_rtx to const rtx_insn *.
9080         (sched_insns_conditions_mutex_p): Likewise for both params.
9081         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
9082         param.
9083
9084         * system.h (CONST_CAST_RTX_INSN): New macro.
9085
9086 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9087
9088         * recog.c (peep2_attempt): Strengthen return type from rtx to
9089         rtx_insn *.
9090         (peep2_update_life): Likewise for params "last", "prev", removing
9091         a checked cast made redundant by this.
9092         (peephole2_optimize): Likewise for local "last".
9093
9094 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9095
9096         * basic-block.h (set_block_for_insn): Eliminate this macro in
9097         favor of...
9098         * rtl.h (set_block_for_insn): New inline function, imposing the
9099         requirement that the "insn" param is an rtx_insn *.
9100
9101 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9102
9103         * caller-save.c (setup_save_areas): Strengthen local "insn" from
9104         rtx to rtx_insn *.
9105         * final.c (get_call_reg_set_usage): Likewise for first param,
9106         eliminating a checked cast.
9107         * regs.h (get_call_reg_set_usage): Likewise for first param.
9108         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
9109         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
9110         cast, replacing references to "x" with "call_insn" where
9111         appropriate.
9112         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
9113         rtx_insn *, adding a checked cast.
9114
9115 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9116
9117         * output.h (final_scan_insn): Strengthen first param from rtx to
9118         rtx_insn *.
9119
9120         * final.c (final_scan_insn): Likewise, renaming it back from
9121         "uncast_insn" to "insn", eliminating the checked cast.
9122
9123         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
9124         "vec" with an rtx_sequence * "seq", taking a copy of
9125         "final_sequence", and using methods of "seq" for clarity, and for
9126         type-safety in the calls to final_scan_insn.
9127         * config/mips/mips.c (mips_output_conditional_branch): Use methods
9128         of "final_sequence" for clarity, and for type-safety in the call to
9129         final_scan_insn.
9130         * config/sh/sh.c (print_slot): Strengthen param from rtx to
9131         rtx_sequence * and rename from "insn" to "seq".
9132
9133 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9134
9135         * jump.c (delete_related_insns): Introduce a new local "table" by
9136         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
9137         get_labels method of "table" to simplify access to the labels in
9138         the jump table.
9139
9140 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9141
9142         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
9143         f_minmaxs, f_minmaxd types.
9144
9145 2014-09-05  Richard Biener  <rguenther@suse.de>
9146
9147         * cfgloop.c (mark_loop_for_removal): Record former header
9148         when ENABLE_CHECKING.
9149         * cfgloop.h (strut loop): Add former_header member when
9150         ENABLE_CHECKING.
9151         * loop-init.c (fix_loop_structure): Sanity check loops
9152         marked for removal if they re-appeared.
9153
9154 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9155
9156         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
9157         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
9158
9159         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
9160         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
9161         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
9162         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
9163         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
9164         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
9165         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
9166         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
9167         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
9168         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
9169         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
9170         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
9171         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
9172         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
9173         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
9174         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
9175         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
9176         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
9177         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
9178         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
9179         with int{32,16,8}_t.
9180
9181 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9182
9183         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
9184         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
9185         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
9186         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
9187         Remove temporary __asm__ and reimplement.
9188
9189 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9190
9191         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
9192         handling cmge, cmgt, cmeq, cmtst.
9193
9194         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
9195         cmlt, cmgeu, cmgtu, cmtst): Remove.
9196
9197         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
9198         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
9199         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
9200         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
9201
9202 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9203
9204         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
9205         TYPES_TST): Define.
9206         (aarch64_fold_builtin): Update pattern for cmtst.
9207
9208         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
9209         Declare.
9210
9211         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
9212
9213         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
9214         Switch operands, separate out more cases, refactor.
9215
9216         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
9217
9218         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
9219         argument; rename old version to...
9220         (aarch64_const_vec_all_same_in_range_p): ...this.
9221         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
9222
9223         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
9224
9225 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9226
9227         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9228         Remove qualifier_const_pointer, update comment.
9229
9230 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9231
9232         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
9233
9234 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9235
9236         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
9237         varargs with pointer parameter.
9238         (aarch64_simd_expand_builtin): pass pointer into previous.
9239
9240 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9241
9242         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
9243         alus_ext.
9244
9245 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9246
9247         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
9248         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
9249         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
9250         Replace temporary asm with call to builtin.
9251         (vrbit_p8, vrbitq_p8): New functions.
9252
9253 2014-09-05  Richard Biener  <rguenther@suse.de>
9254
9255         * cfgloop.c (mark_loop_for_removal): New function.
9256         * cfgloop.h (mark_loop_for_removal): Declare.
9257         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
9258         (merge_blocks): Likewise.
9259         (duplicate_block): Likewise.
9260         * except.c (sjlj_emit_dispatch_table): Likewise.
9261         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
9262         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
9263         (thread_through_loop_header): Likewise.
9264
9265 2014-09-05  Richard Biener  <rguenther@suse.de>
9266
9267         PR middle-end/63148
9268         * fold-const.c (try_move_mult_to_index): Remove.
9269         (fold_binary_loc): Do not call it.
9270         * tree-data-ref.c (dr_analyze_indices): Strip conversions
9271         from the base object again.
9272
9273 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
9274
9275         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
9276         DImode.
9277
9278 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
9279
9280         PR target/55701
9281         * config/arm/arm.md (setmem): New pattern.
9282         * config/arm/arm-protos.h (struct tune_params): New fields.
9283         (arm_gen_setmem): New prototype.
9284         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9285         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9286         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9287         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9288         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9289         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9290         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9291         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9292         (arm_const_inline_cost): New function.
9293         (arm_block_set_max_insns): New function.
9294         (arm_block_set_non_vect_profit_p): New function.
9295         (arm_block_set_vect_profit_p): New function.
9296         (arm_block_set_unaligned_vect): New function.
9297         (arm_block_set_aligned_vect): New function.
9298         (arm_block_set_unaligned_non_vect): New function.
9299         (arm_block_set_aligned_non_vect): New function.
9300         (arm_block_set_vect, arm_gen_setmem): New functions.
9301
9302 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
9303
9304         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
9305
9306 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
9307
9308         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9309
9310 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
9311
9312         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
9313         an rtx.
9314         * valtrack.h: Adjust.
9315
9316 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
9317
9318         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
9319         an rtx.
9320         (emit_jump_insn_before_noloc): Likewise.
9321         (emit_call_insn_before_noloc): Likewise.
9322         (emit_label_before): Likewise.
9323         (emit_label_after): Likewise.
9324         (emit_insn_before_setloc): Likewise.
9325         (emit_jump_insn_before_setloc): Likewise.
9326         (emit_call_insn_before_setloc): Likewise.
9327         (emit_call_insn_before): Likewise.
9328         * rtl.h: Adjust.
9329
9330 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9331
9332         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
9333         rtx_insn *, eliminating a checked cast.
9334
9335 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9336
9337         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
9338         const_rtx to const rtx_insn *.
9339         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
9340         cast.
9341
9342 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9343
9344         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
9345         fixup_args_size_notes.
9346         * expr.c (fixup_args_size_notes): Strengthen first two params from
9347         rtx to rtx_insn *, eliminating a checked cast.
9348         * rtl.h (fixup_args_size_notes): Strengthen first two params from
9349         rtx to rtx_insn *.
9350
9351 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9352
9353         * haifa-sched.c (get_ready_element): Strengthen return type from
9354         rtx to rtx_insn *.
9355         * sched-int.h (get_ready_element): Likewise.
9356
9357 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
9358
9359         PR target/63165
9360         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
9361         indexed_or_indirect_operand instead of memory_operand.
9362         (floatsi<mode>2_lfiwzx_mem): Ditto.
9363
9364 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
9365
9366         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
9367         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
9368         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
9369
9370 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
9371
9372         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
9373         rtx.
9374         (get_last_nonnote_insn): Likewise.
9375         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
9376         * resource.c (find_basic_block): Likewise.
9377         * rtl.h: Adjust.
9378         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
9379         const_rtx.
9380
9381 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
9382
9383         * genattr.c (main): Within the prototype of insn_latency written
9384         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
9385         * genautomata.c (output_internal_maximal_insn_latency_func):
9386         Within the implementation of insn_latency written out to
9387         insn-automata.c, strengthen both params from rtx to rtx_insn *,
9388         eliminating a pair of checked casts.
9389
9390 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
9391
9392         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
9393         rtx_insn *.
9394
9395         * rtl.h (eh_returnjump_p): Likewise.
9396
9397 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
9398
9399         * Makefile.in (TAGS): Handle constructs in timevar.def.
9400
9401 2014-09-04  Guozhi Wei  <carrot@google.com>
9402
9403         PR target/62040
9404         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
9405         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
9406         it into two patterns.
9407         (move_lo_quad_internal_be_<mode>): Likewise.
9408
9409 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9410
9411         * doc/options.texi: Document that Var and Init are required if CPP
9412         is given.
9413         * optc-gen.awk: Require Var and Init if CPP is given.
9414         * common.opt (Wpedantic): Use Init.
9415
9416 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9417
9418         * config/rs6000/rs6000.c (special_handling_values): Add
9419         SH_EXTRACT.
9420         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
9421         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
9422         as swappable with special handling SH_EXTRACT.  Remove
9423         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
9424         optimization.
9425         (adjust_extract): New function.
9426         (handle_special_swappables): Add default to case statement; add
9427         case for SH_EXTRACT that calls adjust_extract.
9428         (dump_swap_insn_table): Handle SH_EXTRACT.
9429
9430 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9431
9432         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
9433         selection of 0th memory doubleword, regardless of endianness.
9434
9435 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9436
9437         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
9438
9439 2014-09-04  Alan Modra  <amodra@gmail.com>
9440
9441         PR debug/60655
9442         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
9443         can't be output.
9444
9445 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
9446
9447         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
9448         * targhooks.c (default_dwarf_frame_reg_mode): New function.
9449         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
9450         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
9451         * doc/tm.texi: Regenerate.
9452         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
9453         selection logic to default_dwarf_frame_reg_mode.
9454
9455 2014-09-03  Marek Polacek  <polacek@redhat.com>
9456
9457         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
9458         by -Wall.
9459
9460 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
9461
9462         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
9463         the automodified register.
9464
9465 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
9466
9467         * output.h (get_some_local_dynamic_name): Declare.
9468         * final.c (some_local_dynamic_name): New variable.
9469         (get_some_local_dynamic_name): New function.
9470         (final_end_function): Clear some_local_dynamic_name.
9471         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
9472         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
9473         (print_operand): Report an error if '%&' is used inappropriately.
9474         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
9475         (get_some_local_dynamic_name_1): Delete.
9476         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
9477         (rs6000_get_some_local_dynamic_name): Delete.
9478         (rs6000_get_some_local_dynamic_name_1): Delete.
9479         (print_operand): Report an error if '%&' is used inappropriately.
9480         * config/s390/s390.c (machine_function): Remove some_ld_name.
9481         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
9482         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
9483         * config/sparc/sparc.c: Include rtl-iter.h.
9484         (machine_function): Remove some_ld_name.
9485         (sparc_print_operand): Report an error if '%&' is used inappropriately.
9486         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
9487
9488 2014-09-03  Richard Henderson  <rth@redhat.com>
9489
9490         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
9491         (aarch64_popwb_pair_reg): Remove.
9492         (aarch64_set_frame_expr): Remove.
9493         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
9494         the restore ops performed by the insns generated.
9495         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
9496         insn.  Perform the calls_eh_return addition later; do not attempt to
9497         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
9498         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
9499         special markup at all.  Load cfun->machine->frame.hard_fp_offset
9500         into a local variable.
9501         (aarch64_frame_pointer_required): Don't check calls_alloca.
9502
9503 2014-09-03  Richard Biener  <rguenther@suse.de>
9504
9505         * opts.c (default_options_optimization): Adjust
9506         max-combine-insns to 2 for -Og.
9507
9508 2014-09-03  Martin Jambor  <mjambor@suse.cz>
9509
9510         PR ipa/62015
9511         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
9512         pass-trough jump functions correctly.
9513
9514 2014-09-03  Martin Jambor  <mjambor@suse.cz>
9515
9516         PR ipa/61986
9517         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
9518         created replacements in ascending order of offsets.
9519         (known_aggs_to_agg_replacement_list): Likewise.
9520
9521 2014-09-03  Martin Liska  <mliska@suse.cz>
9522
9523         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
9524         is set to set uninitialized value for vnresult.
9525
9526 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9527
9528         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
9529         for TARGET_MUST_PASS_IN_STACK.
9530
9531 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9532
9533         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
9534         for TARGET_ARG_PARTIAL_BYTES.
9535
9536 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9537
9538         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
9539         instructions for varargs implementation.
9540         (nds32_expand_epilogue): Emit stack adjustment instructions for
9541         varargs implementation.
9542
9543 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9544
9545         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
9546         optimization detection.
9547
9548 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9549
9550         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
9551         arguments.
9552         (nds32_function_arg_advance): Deal with nameless arguments.
9553         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
9554         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
9555         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
9556
9557 2014-09-03  Richard Biener  <rguenther@suse.de>
9558
9559         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
9560         (struct bb_bitmap_sets): Remove deferred member.
9561         (BB_DEFERRED): Remove.
9562         (defer_or_phi_translate_block): Remove.
9563         (compute_antic_aux): Remove deferring of blocks, assert
9564         proper iteration order.
9565         (compute_antic): Do not set BB_DEFERRED.
9566         (eliminate): Allocate el_avail of proper size initially.
9567
9568 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9569
9570         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
9571         according to the value of crtl->args.pretend_args_size.
9572
9573 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9574
9575         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
9576         varargs information.
9577
9578 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9579
9580         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
9581         implementation for TARGET_SETUP_INCOMING_VARARGS.
9582         (nds32_strict_argument_naming): Refine comment.
9583         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
9584         Define for future implementation.
9585
9586 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
9587
9588         * config/i386/adxintrin.h (_subborrow_u32): New.
9589         (_addcarry_u32): Ditto.
9590         (_subborrow_u64): Ditto.
9591         (_addcarry_u64): Ditto.
9592         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
9593         IX86_BUILTIN_SBB64.
9594         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
9595         __builtin_ia32_sbb_u64
9596
9597 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9598
9599         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
9600         GPR-specific stuff.
9601         (nds32_function_arg_advance): Likewise.
9602         (nds32_init_cumulative_args): Likewise.
9603         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
9604         (NDS32_FIRST_GPR_REGNUM): Define.
9605         (NDS32_LAST_GPR_REGNUM): Define.
9606         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
9607         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
9608         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
9609         (machine_function): Use GRP-specific stuff.
9610
9611 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9612
9613         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
9614         (nds32_expand_epilogue): Likewise.
9615         (nds32_expand_prologue_v3push): Likewise.
9616         (nds32_expand_epilogue_v3pop): Likewise.
9617
9618 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9619
9620         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
9621         v3push/v3pop for variadic function.
9622         * config/nds32/nds32.md (prologue, epilogue): Likewise.
9623
9624 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9625
9626         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
9627         Check rtx for varargs implementation.
9628         (nds32_output_stack_pop): Likewise.
9629         * config/nds32/nds32-protos.h: Have a rtx argument for
9630         nds32_output_stack_push and nds32_output_stack_pop.
9631         * config/nds32/nds32.md: Likewise.
9632
9633 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9634
9635         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
9636         to check if FUNC is an interrupt service routine.
9637         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
9638
9639 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9640
9641         * config/nds32/nds32.h (machine_function): Add some fields for variadic
9642         arguments implementation.
9643
9644 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9645
9646         * config/nds32/nds32-predicates.c
9647         (nds32_valid_stack_push_pop): Rename to ...
9648         (nds32_valid_stack_push_pop_p): ... this.
9649         * config/nds32/nds32-protos.h: Likewise.
9650         * config/nds32/predicates.md: Likewise.
9651
9652 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9653
9654         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
9655         (nds32_emit_stack_v3push): ... this.
9656         (nds32_gen_stack_v3pop): Rename to ...
9657         (nds32_emit_stack_v3pop): ... this and consider CFA restore
9658         information.
9659
9660 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9661
9662         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
9663         (nds32_emit_stack_push_multiple): ... this.
9664         (nds32_gen_stack_pop_multiple): Rename to ...
9665         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
9666         information.
9667
9668 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9669
9670         PR target/61078
9671         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
9672         and add a second splitter to handle the remaining cases.
9673
9674 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
9675
9676         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
9677
9678 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
9679
9680         * cfgexpand.c (label_rtx_for_bb): Change type to
9681         hash_map<basic_block, rtx_code_label *> *.
9682         (expand_gimple_basic_block): Adjust.
9683         (pass_expand::execute): Likewise.
9684
9685 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
9686
9687         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
9688         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
9689         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
9690         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
9691         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
9692         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
9693         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
9694         of rtx.
9695
9696 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
9697
9698         * alloc-pool.c: Include coretypes.h.
9699         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
9700         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
9701         hash_set instead of htab.
9702         * ggc-page.c (in_gc): New variable.
9703         (ggc_free): Do nothing if a collection is taking place.
9704         (ggc_collect): Set in_gc appropriately.
9705         * ggc.h (gt_ggc_mx(const char *)): New function.
9706         (gt_pch_nx(const char *)): Likewise.
9707         (gt_ggc_mx(int)): Likewise.
9708         (gt_pch_nx(int)): Likewise.
9709         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
9710         (hash_map::hash_entry::pch_nx): Likewise.
9711         (hash_map::hash_entry::pch_nx_helper): Likewise.
9712 (hash_map::hash_map): Adjust.
9713 (hash_map::create_ggc): New function.
9714 (gt_ggc_mx): Likewise.
9715 (gt_pch_nx): Likewise.
9716         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
9717 (default_hashset_traits::pch_nx): Likewise.
9718 (hash_set::hash_entry::ggc_mx): Likewise.
9719 (hash_set::hash_entry::pch_nx): Likewise.
9720 (hash_set::hash_entry::pch_nx_helper): Likewise.
9721 (hash_set::hash_set): Adjust.
9722 (hash_set::create_ggc): New function.
9723 (hash_set::elements): Likewise.
9724 (gt_ggc_mx): Likewise.
9725 (gt_pch_nx): Likewise.
9726         * hash-table.h (hash_table::hash_table): Adjust.
9727 (hash_table::m_ggc): New member.
9728         (hash_table::~hash_table): Adjust.
9729         (hash_table::expand): Likewise.
9730         (hash_table::empty): Likewise.
9731 (gt_ggc_mx): New function.
9732         (hashtab_entry_note_pointers): Likewise.
9733 (gt_pch_nx): Likewise.
9734
9735 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9736
9737         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
9738         built-in definition.
9739         (XVCVUXDDP_SCALE): Likewise.
9740         (XVCVDPSXDS_SCALE): Likewise.
9741         (XVCVDPUXDS_SCALE): Likewise.
9742         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
9743         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
9744         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
9745         VSX_BUILTIN_XVCVDPUXDS_SCALE.
9746         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
9747         prototype.
9748         * config/rs6000/rs6000.c (real.h): New include.
9749         (rs6000_scale_v2df): New function.
9750         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
9751         (UNSPEC_VSX_XVCVUXDDP): Likewise.
9752         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
9753         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
9754         (vsx_xvcvsxddp_scale): New define_expand.
9755         (vsx_xvcvsxddp): New define_insn.
9756         (vsx_xvcvuxddp_scale): New define_expand.
9757         (vsx_xvcvuxddp): New define_insn.
9758         (vsx_xvcvdpsxds_scale): New define_expand.
9759         (vsx_xvcvdpsxds): New define_insn.
9760         (vsx_xvcvdpuxds_scale): New define_expand.
9761         (vsx_xvcvdpuxds): New define_insn.
9762         * doc/extend.texi (vec_ctf): Add new prototypes.
9763         (vec_cts): Likewise.
9764         (vec_ctu): Likewise.
9765         (vec_splat): Likewise.
9766         (vec_div): Likewise.
9767         (vec_mul): Likewise.
9768
9769 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9770
9771         PR target/62275
9772         * config/arm/neon.md
9773         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
9774         <v_cmp_result>): New pattern.
9775         * config/arm/iterators.md (NEON_VCVT): New int iterator.
9776         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
9777         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
9778         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
9779         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
9780         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
9781
9782 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9783
9784         PR target/62275
9785         * config/arm/iterators.md (FIXUORS): New code iterator.
9786         (VCVT): New int iterator.
9787         (su_optab): New code attribute.
9788         (su): Likewise.
9789         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
9790
9791 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9792
9793         * config/aarch64/predicates.md (aarch64_comparison_operation):
9794         New special predicate.
9795         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
9796         aarch64_comparison_operation instead of matching an operator.
9797         Update operand numbers.
9798         (csinc3<mode>_insn): Likewise.
9799         (*csinv3<mode>_insn): Likewise.
9800         (*csneg3<mode>_insn): Likewise.
9801         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
9802         * config/aarch64/aarch64.c (aarch64_get_condition_code):
9803         Return -1 instead of aborting on invalid condition codes.
9804         (aarch64_print_operand): Update aarch64_get_condition_code callsites
9805         to assert that the returned condition code is valid.
9806         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
9807
9808 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
9809
9810         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
9811         tree.def, and gimple.def
9812
9813 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
9814             Balaji V. Iyer  <balaji.v.iyer@intel.com>
9815             Igor Zamyatin  <igor.zamyatin@intel.com>
9816
9817         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
9818         (__cilkrts_cilk_for_64): Likewise.
9819         * cilk-common.c (declare_cilk_for_builtin): New function.
9820         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
9821         __cilkrts_cilk_for_64 bultins.
9822         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
9823         CILK_TI_F_LOOP_64.
9824         (cilk_for_32_fndecl): New define.
9825         (cilk_for_64_fndecl): Likewise.
9826         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
9827         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
9828         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
9829         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
9830         GF_OMP_FOR_COMBINED_INTO.
9831         * gimplify.c (gimplify_scan_omp_clauses): Added
9832         OMP_CLAUSE__CILK_FOR_COUNT_ case.
9833         (gimplify_adjust_omp_clauses): Ditto.
9834         (gimplify_omp_for): Added CILK_FOR case.
9835         (gimplify_expr): Ditto.
9836         * omp-low.c: Include cilk.h.
9837         (extract_omp_for_data): Set appropriate kind for
9838         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
9839         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
9840         (create_omp_child_function_name): Added second argument to handle
9841         cilk_for case.
9842         (cilk_for_check_loop_diff_type): New function.
9843         (expand_cilk_for_call): Likewise.
9844         (expand_cilk_for): Likewise.
9845         (create_omp_child_function): Set cilk_for_count; handle the cases when
9846         it is true; call create_omp_child_function_name with second argument.
9847         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
9848         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
9849         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
9850         * tree-nested.c (convert_nonlocal_omp_clauses): Added
9851         OMP_CLAUSE__CILK_FOR_COUNT_ case.
9852         (convert_local_omp_clauses): Ditto.
9853         * tree-pretty-print.c (dump_omp_clause): Added
9854         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
9855         (dump_generic_node): Added CILK_FOR case.
9856         * tree.c (omp_clause_num_ops): New element
9857         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
9858         (omp_clause_code_name): New element _Cilk_for_count_.
9859         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
9860         * tree.def: Add tree code for CILK_FOR.
9861
9862 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
9863
9864         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
9865         (ppc403-compare): Add "exts with dot" case.
9866         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
9867         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
9868         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
9869         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
9870         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
9871         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
9872         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
9873         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9874         cell-cmp-microcoded): Similarly.
9875         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
9876         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
9877         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
9878         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
9879         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
9880         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
9881         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
9882         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
9883         (power6-compare): Add "exts with dot" case.
9884         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
9885         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
9886         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
9887
9888         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
9889         if avoiding Cell microcode.
9890         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
9891         (is_cracked_insn): Ditto.
9892         (insn_must_be_first_in_group): Ditto.
9893         * config/rs6000/rs6000.md (dot): Adjust comment.
9894         (cell_micro): Handle exts+dot.
9895         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
9896         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
9897         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
9898         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
9899         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
9900         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
9901         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
9902
9903 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
9904
9905         * config/rs6000/rs6000.md (QHSI): Delete.
9906         (EXTQI, EXTHI, EXTSI): New mode iterators.
9907         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
9908         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9909         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
9910         9 anonymous instructions, and 8 splitters): Delete.
9911         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
9912         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
9913         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
9914         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
9915         *zero_extendsi<mode>2_dot2): New.
9916
9917 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
9918
9919         * config/rs6000/rs6000.md (any_extend): New code iterator.
9920         (u, su): New code attributes.
9921         (dmode, DMODE): New mode attributes.
9922         (<su>mul<mode>3_highpart): New.
9923         (*<su>mul<mode>3_highpart): New.
9924         (<su>mulsi3_highpart_le): New.
9925         (<su>muldi3_highpart_le): New.
9926         (<su>mulsi3_highpart_64): New.
9927         (<u>mul<mode><dmode>3): New.
9928         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
9929         splitters): Delete.
9930         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
9931         splitters): Delete.
9932
9933 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
9934
9935         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
9936         *mulsi3_internal2, and two splitters): Delete.
9937         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
9938         Delete.
9939         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
9940
9941 2014-09-02  Richard Biener  <rguenther@suse.de>
9942
9943         PR tree-optimization/62695
9944         * tree-ssa-structalias.c (find_func_clobbers): Add missing
9945         vector truncate.
9946
9947 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
9948
9949         PR target/62312
9950         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
9951
9952 2014-09-01  Andi Kleen  <ak@linux.intel.com>
9953
9954         * file-find.c (add_prefix_begin): Add.
9955         (do_add_prefix): Rename from add_prefix with first argument.
9956         (add_prefix): Add new wrapper.
9957         * file-find.h (add_prefix_begin): Add.
9958         * gcc-ar.c (main): Support -B option.
9959
9960 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
9961
9962         * genemit.c: Include dumpfile.h.
9963         (gen_split): Print name of splitter function to dump file.
9964
9965 2014-09-01  Richard Biener  <rguenther@suse.de>
9966
9967         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
9968         Use stack auto_vecs for constraint expressions.
9969         (find_func_aliases_for_call): Likewise.
9970         (find_func_aliases): Likewise.
9971         (find_func_clobbers): Likewise.
9972
9973 2014-09-01  Richard Biener  <rguenther@suse.de>
9974
9975         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
9976         operands vector in most cases.  Remove redundant code.
9977
9978 2014-09-01  Olivier Hainque  <hainque@adacore.com>
9979
9980         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
9981         $WIND_BASE instead of designating a harcoded arbitrary home dir.
9982         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
9983
9984 2014-09-01  Richard Biener  <rguenther@suse.de>
9985
9986         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
9987         copy_reference_ops_from_call, vn_nary_op_compute_hash,
9988         vn_reference_compute_hash, vn_reference_insert): Remove.
9989         (vn_reference_lookup_call): New function.
9990         * tree-ssa-sccvn.c (vn_reference_compute_hash,
9991         copy_reference_ops_from_ref, copy_reference_ops_from_call,
9992         vn_reference_insert, vn_nary_op_compute_hash): Make static.
9993         (create_reference_ops_from_call): Remove.
9994         (vn_reference_lookup_3): Properly update shared_lookup_references.
9995         (vn_reference_lookup_pieces): Assert that we updated
9996         shared_lookup_references properly.
9997         (vn_reference_lookup): Likewise.
9998         (vn_reference_lookup_call): New function.
9999         (visit_reference_op_call): Use it.  Avoid re-building the
10000         reference ops.
10001         (visit_reference_op_load): Remove redundant lookup.
10002         (visit_reference_op_store): Perform special tail-merging work
10003         only when possibly doing tail-merging.
10004         (visit_use): Likewise.
10005         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
10006
10007 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
10008
10009         PR target/62025
10010         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
10011         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
10012         (find_inc): Revert 2014-08-13 change.
10013
10014 2014-09-01  Marek Polacek  <polacek@redhat.com>
10015
10016         PR middle-end/61903
10017         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
10018         Change the type of V to unsigned HOST_WIDE_INT.
10019
10020 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10021
10022         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
10023         the size of byte markers.
10024         (do_shift_rotate): Fix confusion between host, target and marker byte
10025         size.
10026         (verify_symbolic_number_p): Likewise.
10027         (find_bswap_or_nop_1): Likewise.
10028         (find_bswap_or_nop): Likewise.
10029
10030 2014-09-01  Olivier Hainque  <hainque@adacore.com>
10031
10032         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
10033         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
10034
10035 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
10036
10037         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
10038         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
10039         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
10040
10041 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
10042
10043         PR sanitizer/61897
10044         PR sanitizer/62140
10045         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
10046         (build_check_stmt): Likewise.
10047         (instrument_strlen_call): Likewise.
10048         (asan_expand_check_ifn): Likewise and fix types.
10049         (maybe_cast_to_ptrmode): New function.
10050
10051 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10052
10053         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
10054
10055 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
10056
10057         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
10058
10059 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
10060
10061         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
10062         prefix to function labels when generating fast indirect calls.
10063
10064 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
10065
10066         PR bootstrap/62304
10067
10068         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
10069         param back from rtx_insn * to rtx.  Rename param from "label" to
10070         "label_or_return", reintroducing "label" as an rtx_insn * after
10071         we've ensured it's not a RETURN.
10072         (first_active_target_insn): Likewise for return type and param;
10073         add a checked cast to rtx_insn * once we've ensured "insn" is not
10074         a RETURN.
10075         (steal_delay_list_from_target): Convert param "pnew_thread" back
10076         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
10077         with JUMP_LABEL.
10078         (own_thread_p): Convert param "thread" back from an rtx_insn * to
10079         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
10080         cast once we've established we're not dealing with a RETURN,
10081         renaming subsequent uses of "thread" to "thread_insn".
10082         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
10083         to JUMP_LABEL.
10084         (follow_jumps): Convert return type and param "label" from
10085         rtx_insn * back to rtx.  Move initialization of "value" to after
10086         the handling for ANY_RETURN_P, adding a checked cast there to
10087         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
10088         rename to "this_label_or_return", reintroducing "this_label" as
10089         an rtx_insn * once we've handled the case where it could be an
10090         ANY_RETURN_P.
10091         (fill_slots_from_thread): Rename param "thread" to
10092         "thread_or_return", converting from an rtx_insn * back to an rtx.
10093         Reintroduce name "thread" as an rtx_insn * local with a checked
10094         cast once we've handled the case of it being an ANY_RETURN_P.
10095         Convert local "new_thread" from an rtx_insn * back to an rtx.
10096         Add a checked cast when assigning to "trial" from "new_thread".
10097         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
10098         checked cast to rtx_insn * from "new_thread" when invoking
10099         get_label_before.
10100         (fill_eager_delay_slots): Convert locals "target_label",
10101         "insn_at_target" from rtx_insn * back to rtx.
10102         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
10103         (relax_delay_slots): Convert locals "trial", "target_label" from
10104         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
10105         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
10106         invoking update_block.
10107         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
10108         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
10109
10110         * resource.h (mark_target_live_regs): Undo erroneous conversion
10111         of second param of r214693, converting it back from rtx_insn * to
10112         rtx, since it could be a RETURN.
10113
10114         * resource.c (find_dead_or_set_registers): Similarly, convert
10115         param "jump_target" back from an rtx_insn ** to an rtx *, as we
10116         could be writing back a RETURN.  Rename local rtx_insn * "next" to
10117         "next_insn", and introduce "lab_or_return" as a local rtx,
10118         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
10119         (mark_target_live_regs): Undo erroneous conversion
10120         of second param of r214693, converting it back from rtx_insn * to
10121         rtx, since it could be a RETURN.  Rename it from "target" to
10122         "target_maybe_return", reintroducing the name "target" as a local
10123         rtx_insn * with a checked cast, after we've handled the case of
10124         ANY_RETURN_P.
10125
10126 2014-08-29  DJ Delorie  <dj@redhat.com>
10127
10128         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
10129         pointer size up to a power of two.
10130         * defaults.h (DWARF2_ADDR_SIZE): Round up.
10131         (POINTER_SIZE_UNITS): New, rounded up value.
10132         * dwarf2asm.c (size_of_encoded_value): Use it.
10133         (dw2_output_indirect_constant_1): Likewise.
10134         * expmed.c (init_expmed_one_conv): We now know the sizes of
10135         partial int modes.
10136         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
10137         * optabs.c (expand_float): Use precision, not size.
10138         (expand_fix): Likewise.
10139         * simplify-rtx (simplify_unary_operation_1): Likewise.
10140         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10141         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
10142         (default_assemble_integer) Likewise.
10143         (dump_tm_clone_pairs): Likewise.
10144         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
10145         * var-tracking.c (adjust_mems): Allow partial-int modes also.
10146         (prepare_call_arguments): Likewise.
10147         * stor-layout.c (finalize_type_size): Preserve precision.
10148         (layout_type): Use precision, not size.
10149
10150         * expr.c (convert_move): If the target has an explicit converter,
10151         use it.
10152
10153 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
10154
10155         * gdbinit.in: Skip various inline functions in rtl.h when
10156         stepping.
10157
10158 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
10159
10160         PR bootstrap/62301
10161         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
10162
10163 2014-08-29  Richard Biener  <rguenther@suse.de>
10164
10165         PR tree-optimization/62291
10166         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
10167         exactly the vector size needed and use quick_push.
10168         (phi_translate_1): Adjust comment.
10169         (valid_in_sets): Remove block argument and remove pointless
10170         checking of NAMEs.
10171         (dependent_clean): Adjust for removal of block argument.
10172         (clean): Likewise.
10173         (compute_antic_aux): Likewise.
10174         (compute_partial_antic_aux): Likewise.
10175
10176 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10177             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10178             Anna Tikhonova  <anna.tikhonova@intel.com>
10179             Ilya Tocar  <ilya.tocar@intel.com>
10180             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10181             Ilya Verbin  <ilya.verbin@intel.com>
10182             Kirill Yukhin  <kirill.yukhin@intel.com>
10183             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10184
10185         * config/i386/sse.md
10186         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
10187         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
10188         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
10189         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
10190
10191 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10192             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10193             Anna Tikhonova  <anna.tikhonova@intel.com>
10194             Ilya Tocar  <ilya.tocar@intel.com>
10195             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10196             Ilya Verbin  <ilya.verbin@intel.com>
10197             Kirill Yukhin  <kirill.yukhin@intel.com>
10198             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10199
10200         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
10201         * config/i386/sse.md
10202         (define_mode_iterator VI4_128_8_256): New.
10203         (define_mode_iterator VI2_128_4_256): Ditto.
10204         (define_mode_iterator PMOV_DST_MODE): Rename into
10205         (define_mode_iterator PMOV_DST_MODE_1): this.
10206         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
10207         Use PMOV_DST_MODE_1 mode iterator.
10208         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
10209         Ditto.
10210         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
10211         Ditto.
10212         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
10213         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
10214         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
10215         (define_mode_iterator PMOV_DST_MODE_2): New.
10216         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
10217         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
10218         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
10219         Ditto.
10220         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
10221         (define_mode_attr pmov_dst_3): Ditto.
10222         (define_mode_attr pmov_dst_zeroed_3): Ditto.
10223         (define_mode_attr pmov_suff_3): Ditto.
10224         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
10225         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
10226         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
10227         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
10228         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
10229         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
10230         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
10231         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
10232         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
10233         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
10234         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
10235         (define_mode_attr pmov_dst_4): Ditto.
10236         (define_mode_attr pmov_dst_zeroed_4): Ditto.
10237         (define_mode_attr pmov_suff_4): Ditto.
10238         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
10239         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
10240         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
10241         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
10242         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
10243         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
10244         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
10245         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
10246         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
10247         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
10248         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
10249
10250 2014-08-29  Richard Biener  <rguenther@suse.de>
10251
10252         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
10253         NON_LVALUE_EXPR in gimple.
10254
10255 2014-08-29  Richard Biener  <rguenther@suse.de>
10256
10257         PR middle-end/62292
10258         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
10259         from previous refactoring.
10260         (gimple_fold_builtin_strncpy): Likewise.
10261
10262 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
10263
10264         PR bootstrap/62300
10265         * function.c (assign_parm_setup_reg): Remove erroneous checked
10266         cast to rtx_insn * on result of gen_extend_insn in favor of
10267         introducing a new local rtx "pat".
10268
10269 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10270
10271         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
10272         to silence warning.
10273         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
10274
10275 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10276
10277         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
10278         (next_insn): Likewise.
10279         * emit-rtl.c (next_insn): Likewise.
10280         (previous_insn): Likewise.
10281         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
10282         "insn" and "next" from rtx to rtx_insn *.
10283         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
10284         "insn", "insn1", "vliw_start",  "prologue_end_note",
10285         "last_insn_in_packet".
10286
10287 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10288
10289         * shrink-wrap.h (active_insn_between): Strengthen both params from
10290         rtx to rtx_insn *.
10291         * function.c (active_insn_between): Likewise.
10292
10293 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10294
10295         * genattr.c (main): When writing out insn-attr.h, strengthen param
10296         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
10297         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
10298         writing out the definition of dfa_clear_single_insn_cache to the
10299         generated insn-automata.c
10300
10301 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10302
10303         * resource.h (clear_hashed_info_for_insn): Strengthen param from
10304         rtx to rtx_insn *.
10305         (incr_ticks_for_insn): Likewise.
10306         (init_resource_info): Likewise.
10307
10308         * resource.c (init_resource_info): Likewise.
10309         (clear_hashed_info_for_insn): Likewise.
10310         (incr_ticks_for_insn): Likewise.
10311
10312         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
10313         rtx to rtx_insn *.
10314         (steal_delay_list_from_target): Use methods of "seq".
10315         (try_merge_delay_insns): Use methods of "merged_insns".
10316         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
10317         (reorg_redirect_jump): Likewise for param "jump".
10318
10319 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10320
10321         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
10322         rtx to rtx_insn *.
10323         * config/s390/s390.c (s390_split_branches): Eliminate top-level
10324         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
10325         "set_insn".
10326         (s390_mainpool_finish): In three places, split out a local rtx
10327         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
10328         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
10329         and split another local rtx "insn" out into rtx "pat" and
10330         rtx_insn * "insn".
10331         * config/sh/sh.c (output_branchy_insn): Rather than working
10332         directly on operands[9], introduce local rtx_code_label *
10333         variables named "lab" in two places, working on them, and then
10334         assigning them to operands[9], so that the intervening operations
10335         are known by the type system to be on insns.
10336
10337 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10338
10339         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
10340         const rtx_insn *.
10341
10342         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
10343         in invocation of INSN_HAS_LOCATION.
10344
10345 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10346
10347         * config/rs6000/altivec.h (vec_xl): New #define.
10348         (vec_xst): Likewise.
10349         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
10350         (XXSPLTD_V2DI): Likewise.
10351         (DIV_V2DI): Likewise.
10352         (UDIV_V2DI): Likewise.
10353         (MUL_V2DI): Likewise.
10354         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10355         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
10356         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
10357         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
10358         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
10359         (UNSPEC_VSX_DIVSD): Likewise.
10360         (UNSPEC_VSX_DIVUD): Likewise.
10361         (UNSPEC_VSX_MULSD): Likewise.
10362         (vsx_mul_v2di): New insn-and-split.
10363         (vsx_div_v2di): Likewise.
10364         (vsx_udiv_v2di): Likewise.
10365         (vsx_xxspltd_<mode>): New insn.
10366
10367 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10368
10369         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
10370         NEXT_INSN.
10371         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
10372         (NEXT_INSN): Likewise.
10373         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
10374         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
10375         const rtx_insn *.
10376         (no_labels_between_p): Likewise for both params.
10377
10378         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
10379         cast when using NEXT_INSN on operands[2].
10380         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
10381         "insn" from rtx to rtx_insn *, adding a checked cast.
10382         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
10383         rtx_insn *.
10384         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
10385         for third param.
10386         (arc_text_label): Likewise for param "insn".
10387         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
10388         "insn".
10389         (arc_ccfsm_record_condition): Likewise for param "jump".
10390         (arc_text_label): Likewise for local "label".
10391         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
10392         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
10393         a method for typesafety.  Add a checked cast.
10394         * config/arc/constraints.md (Clb): Add a checked cast when getting
10395         the CODE_LABEL from a LABEL_REF.
10396         * config/arm/arm.c (require_pic_register): Strengthen locals
10397         "seq", "insn" from rtx to rtx_insn *.
10398         (create_fix_barrier): Likewise for locals "selected", "next".
10399         (thumb1_reorg): Likewise for locals "prev", "insn".
10400         (arm_expand_prologue): Likewise for local "last".
10401         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
10402         operands[0].
10403         (thumb2_output_casesi): Likewise for operands[2].
10404         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
10405         strengthen local "insn" from rtx to rtx_insn *.
10406         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
10407         type and param "insn".
10408         (find_prev_insn_start): Likewise.
10409         (hwloop_optimize): Likewise for locals "insn", "last_insn",
10410         "prev".
10411         (gen_one_bundle): Likewise for loal "t".
10412         (find_load): Likewise for param "insn".
10413         (workaround_speculation): Likewise for locals "insn", "next",
10414         "target", "next_tgt".
10415         * config/c6x/c6x.c (assign_reservations): Likewise for both params
10416         and for locals "insn", "within", "last".
10417         (count_unit_reqs): Likewise for params "head", "tail" and local
10418         "insn".
10419         (try_rename_operands): Likewise for params "head", "tail".
10420         (reshuffle_units): Likewise for locals "head", "tail", "insn".
10421         (struct c6x_sched_context): Likewise for fields
10422         "last_scheduled_insn", "last_scheduled_iter0".
10423         (init_sched_state): Replace NULL_RTX with NULL.
10424         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
10425         to rtx_insn *.
10426         (undo_split_delayed_nonbranch): Likewise for param and for local
10427         "prev".
10428         (conditionalize_after_sched): Likewise for local "insn".
10429         (bb_earliest_end_cycle): Likewise.
10430         (filter_insns_above): Likewise for locals "insn", "next".
10431         (hwloop_optimize): Remove redundant checked cast.
10432         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
10433         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
10434         NULL_RTX with NULL.
10435         (cris_simple_epilogue): Likewise.
10436         (cris_expand_prologue): Likewise.
10437         (cris_expand_epilogue): Likewise.
10438         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
10439         local "insn" from rtx to rtx_insn *.
10440         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
10441         (struct frv_packet_group): Likewise for the elements within array
10442         fields "insns", "sorted", and for field "nop".
10443         (frv_packet): Likewise for the elements within array field
10444         "insns".
10445         (frv_add_insn_to_packet): Likewise for param "insn".
10446         (frv_insert_nop_in_packet): Likewise for param "insn" and local
10447         "last".
10448         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
10449         (frv_sort_insn_group_1): Likewise for local "insn".
10450         (frv_optimize_membar_local): Likewise.
10451         (frv_align_label): Likewise for locals "x", "last", "barrier",
10452         "label".
10453         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
10454         local.
10455         (ia64_sched_init): Likewise for local "insn".
10456         (scheduled_good_insn): Likewise for param "last".
10457         (struct _ia64_sched_context): Likewise for field
10458         "last_scheduled_insn".
10459         (ia64_init_sched_context): Replace NULL_RTX with NULL.
10460         (struct bundle_state): Likewise for field "insn".
10461         (issue_nops_and_insn): Likewise for param "insn".
10462         (get_next_important_insn): Likewise for return type and both
10463         params.
10464         (ia64_add_bundle_selector_before): Likewise for param "insn".
10465         (bundling): Likewise for params "prev_head_insn", "tail" and
10466         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
10467         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
10468         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
10469         Strengthen final param from rtx to rtx_insn *.
10470         (iq2000_move_1word): Likewise for second param.
10471         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
10472         param "cur_insn" and local "next_insn".
10473         (iq2000_move_1word): Likewise for param "insn".
10474         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
10475         casts when using NEXT_INSN on operands[1].
10476         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
10477         "insn" from rtx to rtx_insn *.
10478         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
10479         "x", introducing local rtx_insn * "insn" for when working with the
10480         CODE_LABEL of the LABEL_REF.
10481         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
10482         rtx_insn *.
10483         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
10484         param.
10485         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
10486         type.
10487         (conditionalize_block): Likewise for return type and param.
10488         (mcore_is_dead): Likewise for param "first" and local "insn".
10489         (emit_new_cond_insn): Likewise for return type.
10490         (conditionalize_block): Likewise for return type, param, and
10491         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
10492         "newinsn".
10493         (conditionalize_optimization): Likewise for local "insn".
10494         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
10495         using NEXT_INSN.
10496         * config/microblaze/microblaze.md: Add checked casts when using
10497         NEXT_INSN.
10498         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
10499         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
10500         and rtx_insn * "insn".
10501         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
10502         checked cast when using NEXT_INSN on operands[2].
10503         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
10504         local "insn" from rtx to rtx_insn *.
10505         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
10506         Likewise.
10507         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
10508         Add a checked cast when using NEXT_INSN on operands[1].
10509         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
10510         rtx to rtx_insn *.
10511         (pa_output_cbranch): Likewise for final param.
10512         (pa_output_lbranch): Likewise for second param.
10513         (pa_output_bb): Likewise for third param.
10514         (pa_output_bvb): Likewise.
10515         (pa_output_dbra): Likewise for second param.
10516         (pa_output_movb): Likewise.
10517         (pa_output_parallel_movb): Likewise.
10518         (pa_output_parallel_addb): Likewise.
10519         (pa_output_millicode_call): Likewise for first param.
10520         (pa_output_mul_insn): Likewise for second param.
10521         (pa_output_div_insn): Likewise for third param.
10522         (pa_output_mod_insn): Likewise for second param.
10523         (pa_jump_in_call_delay): Likewise for param.
10524         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
10525         (pa_output_div_insn): Likewise.
10526         (pa_output_mod_insn): Likewise.
10527         (pa_output_cbranch): Likewise.
10528         (pa_output_lbranch): Likewise.
10529         (pa_output_bb): Likewise.
10530         (pa_output_bvb): Likewise.
10531         (pa_output_dbra): Likewise.
10532         (pa_output_movb): Likewise.
10533         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
10534         to simplify and for typesafety.
10535         (pa_output_call): Use method of rtx_sequence *.
10536         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
10537         (pa_jump_in_call_delay): Likewise.
10538         (pa_output_parallel_movb): Likewise.
10539         (pa_output_parallel_addb): Likewise.
10540         (pa_following_call): Likewise.
10541         (pa_combine_instructions): Likewise for locals "anchor",
10542         "floater".
10543         (pa_can_combine_p): Likewise for params "anchor", "floater" and
10544         locals "start", "end".
10545         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
10546         param "insn" and local "local_insn".
10547         (picochip_final_prescan_insn): Likewise for local "local_insn".
10548         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
10549         local "insn".
10550         (uses_TOC): Likewise.
10551         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
10552         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
10553         splitting out to more tightly-scoped locals, 3 as rtx and one as
10554         rtx_insn *.
10555         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
10556         to rtx_insn *.
10557         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
10558         where needed.
10559         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
10560         to rtx_insn *.
10561         (fixup_addr_diff_vecs): Likewise.
10562         (reg_unused_after): Likewise for param 2.
10563         (sh_can_redirect_branch): Likewise for both params.
10564         (check_use_sfunc_addr): Likewise for param 1.
10565         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
10566         (find_barrier): Likewise for local "last_got".
10567         (gen_block_redirect): Likewise for return type, param "jump" and
10568         locals "prev", "scan", "next", "insn".
10569         (struct far_branch): Likewise for fields "near_label",
10570         "insert_place", "far_label".
10571         (gen_far_branch): Likewise for local "jump".
10572         (fixup_addr_diff_vecs): Likewise for param "first" and locals
10573         "insn", "prev".
10574         (barrier_align): Likewise for param and for locals "prev", "x".
10575         Introduce local rtx_sequence * "prev_seq" and use insn method for
10576         typesafety and clarity.
10577         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
10578         (get_dest_uid): Likewise for local "dest".
10579         (split_branches): Likewise for locals "next", "beyond", "label",
10580         "block", "far_label".  Add checked casts when assigning to
10581         bp->far_label and "far_label".
10582         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
10583         (sequence_insn_p): Likewise.
10584         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
10585         more loop-scoped rtx "insn" when walking LABEL_REFS.
10586         (sh_can_redirect_branch): Strengthen both params from rtx to
10587         rtx_insn *.
10588         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
10589         new local rtx_sequence * "seq" via a dyn_cast, and use a method
10590         for clarity and typesafety.
10591         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
10592         "insn" from rtx to rtx_insn *.
10593         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
10594         when using NEXT_INSN on the CODE_LABEL in operands[2].
10595         (define_insn "casesi_worker_2"): Likewise.
10596         (define_insn "casesi_shift_media"): Likewise.
10597         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
10598         operands[3].
10599         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
10600         Strengthen field "insn" from rtx to rtx_insn *.
10601         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
10602         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
10603         param "start_insn" and local "start_insn".
10604         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
10605         field "insn".
10606         (find_set_of_reg_bb): Likewise for param "insn".
10607         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
10608         (trace_reg_uses): Likewise for param "start_insn".
10609         (sh_treg_combine::cbranch_trace): Likewise for field
10610         "cbranch_insn".
10611         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
10612         param "insn".
10613         (sh_treg_combine::record_set_of_reg): Likewise for param
10614         "start_insn" and local "i".
10615         (sh_treg_combine::can_remove_cstore): Likewise for local
10616         "prev_insn".
10617         (sh_treg_combine::try_optimize_cbranch): Likewise for param
10618         "insn".
10619         (sh_treg_combine::execute): Likewise for local "i".
10620         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
10621         param.
10622         (sparc_check_64): Likewise for second param.
10623         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
10624         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
10625         dyn_cast, using its insn method for typesafety and clarity.
10626         (empty_delay_slot): Strengthen param "insn" from rtx to
10627         rtx_insn *.
10628         (set_extends): Likewise.
10629         (sparc_check_64): Likewise.
10630         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
10631         for locals "seq", "last_insn".
10632         (combine_bnp): Likewise for param "insn".
10633         (xstormy16_reorg): Likewise for local "insn".
10634         * config/v850/v850.c (substitute_ep_register): Likewise for params
10635         "first_insn", "last_insn" and local "insn".
10636         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
10637         elements of "regs" array, and local "insn".
10638         * except.c (emit_note_eh_region_end): Likewise for param "insn".
10639         * final.c (final_sequence): Strengthen this global from rtx to
10640         rtx_sequence *.
10641         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
10642         rtx_insn *.
10643         (final_scan_insn): Update assignment to "final_sequence" to be
10644         from "seq", the cast version of "body", for type-safety.
10645         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
10646         "insns" from rtx to rtx_insn *.
10647         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
10648         * genattr.c (main): When writing out generated insn-attr.h,
10649         strengthen params 1 and 3 of eligible_for_delay,
10650         eligible_for_annul_true, eligible_for_annul_false from rtx to
10651         rtx_insn *.
10652         * genattrtab.c (write_eligible_delay): Likewise when writing out
10653         generated insn-attrtab.c; also local "insn" the generated
10654         functions.
10655         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
10656         to rtx_insn *.
10657         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
10658         "start_label" from rtx to rtx_insn *.
10659         * ira.c (decrease_live_ranges_number): Likewise for local "p".
10660         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
10661         "insns" and local "insn".
10662         (validate_equiv_mem): Likewise for param "start" and local "insn".
10663         (memref_used_between_p): Likewise for params "start", "end" and
10664         local "insn".
10665         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
10666         final param.
10667         * loop-doloop.c (doloop_optimize): Within region guarded by
10668         INSN_P (doloop_pat), introduce a new local rtx_insn *
10669         "doloop_insn" via a checked cast, and use it for typesafety,
10670         eventually writing the value back into doloop_pat.
10671         * output.h (final_sequence): Strengthen this global from rtx to
10672         rtx_sequence *.
10673         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
10674         reintroducing "insn" as an rtx_insn * via a checked cast.
10675         Strengthen param "attempt" and local "new_insn"from rtx to
10676         rtx_insn *.
10677         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
10678         to rtx_insn *.
10679         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
10680         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
10681         "p" in favor of more tightly-scoped replacements, sometimes rtx
10682         and sometimes rtx_insn *, as appropriate.
10683         (delete_output_reload): Eliminate top-level rtx "i1", splitting
10684         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
10685         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
10686         local "trial" from rtx to rtx_insn *.
10687         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
10688         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
10689         rtx_sequence * and use methods for clarity and typesafety.
10690         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
10691         rtx to rtx_insn *.  Strenghten local "li" from rtx to
10692         rtx_insn_list * and use its methods for clarity and typesafety.
10693         (steal_delay_list_from_target): Strengthen param "insn" from rtx
10694         to rtx_insn *.
10695         (steal_delay_list_from_fallthrough): Likewise.
10696         (try_merge_delay_insns): Likewise for param "thread" and locals
10697         "trial", "next_trial", "delay_insn".
10698         (redundant_insn): Likewise for param "target" and local "trial".
10699         (own_thread_p): Likewise for param "thread" and locals
10700         "active_insn", "insn".
10701         (get_label_before): Likewise for param "insn".
10702         (fill_simple_delay_slots): Likewise for local "new_label"; use
10703         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
10704         (label_before_next_insn): Strengthen return type and local "insn"
10705         from rtx to rtx_insn *.
10706         (relax_delay_slots): Likewise for locals "other", "tmp".
10707         (make_return_insns): Likewise for param "first" and locals "insn",
10708         "jump_insn", "prev".  Move declaration of "pat" to its assignment
10709         and strengthen from rtx to rtx_sequence *.  Use its methods for
10710         clarity and typesafety.
10711         * rtlanal.c (no_labels_between_p): Strengthen params from
10712         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
10713         rtx_insn *.
10714         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
10715         from const_rtx to const rtx_insn *.
10716         (reg_set_between_p): Rename param "from_insn" to
10717         "uncast_from_insn", and reintroduce "from_insn" as a
10718         const rtx_insn * via a checked cast.
10719         (modified_between_p): Likewise for param "start" as "uncast_start".
10720         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
10721         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
10722         "tmp", head" from rtx to rtx_insn *.
10723         (recompute_rev_top_order): Likewise for local "insn".
10724         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
10725         * store-motion.c (build_store_vectors): Likewise for local "insn".
10726         Strengthen local "st" from rtx to rtx_insn_list * and use methods
10727         for clarity and typesafety.
10728         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
10729         rtx to rtx_insn *.
10730         (computation_cost): Likewise for local "seq".
10731         (get_address_cost): Likewise.
10732
10733 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10734
10735         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
10736         const rtx_insn *.
10737         (label_is_jump_target_p): Likewise for second param.
10738
10739         * rtlanal.c (tablejump_p): Likewise for param "insn".
10740         (label_is_jump_target_p): Likewise for param "jump_insn".
10741
10742 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10743
10744         * rtl.h (find_first_parameter_load): Strengthen return type and
10745         both params from rtx to rtx_insn *.
10746         * rtlanal.c (find_first_parameter_load): Strengthen return type,
10747         both params and locals "before", "first_set" from rtx to
10748         rtx_insn *.  Remove now-redundant cast.
10749         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
10750
10751 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10752
10753         * rtl.h (find_last_value): Delete.
10754         * rtlanal.c (find_last_value): Delete.
10755
10756 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10757
10758         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
10759         from rtx to rtx_insn *.
10760         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
10761         rtx "note" with new local rtx_insn * "new_head" when calculating
10762         head insn of new basic block.
10763         * combine.c (combine_split_insns): Strengthen return type and local
10764         "ret" from rtx to rtx_insn *.
10765         (likely_spilled_retval_p): Likewise for locals "use" and "p".
10766         (try_combine): Eliminate local "m_split", splitting into new
10767         locals "m_split_insn" and "m_split_pat".
10768         (find_split_point): Strengthen local "seq" from rtx into
10769         rtx_insn *.
10770         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
10771         locals "label", "branch".
10772         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
10773         for local "insn".
10774         (define_expand "umulsi3_highpart"): Likewise for local "insn".
10775         * dse.c (note_add_store_info): Likewise for fields "first",
10776         "current".
10777         (note_add_store): Likewise for local "insn".
10778         (emit_inc_dec_insn_before): Likewise for locals "insn",
10779         "new_insn", "cur".
10780         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
10781         (replace_read): Likewise for locals "insns", "this_insn".
10782         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
10783         (notice_eh_throw): Likewise for param "insn".
10784         (before_next_cfi_note): Likewise for return type, param, and local
10785         "prev".
10786         (connect_traces): Likewise for local "note".
10787         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
10788         (verify_rtl_sharing): Likewise.
10789         (unshare_all_rtl_in_chain): Likewise for param "insn".
10790         (get_first_nonnote_insn): Likewise for local "insn".
10791         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
10792         "seq" and use its methods to clarify things.
10793         (next_insn): Strengthen return type from rtx to rtx_insn *.
10794         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
10795         local rtx_insn * using a checked cast, dropping a checked cast
10796         made redundant by this change.  Use a cast to and method of
10797         rtx_sequence to clarify the code.
10798         (previous_insn): Rename param "insn" to "uncast_insn" and
10799         reintroduce "insn" as a local rtx_insn * using a checked cast,
10800         dropping a checked cast made redundant by this change.  Use a cast
10801         to and method of rtx_sequence to clarify the code.
10802         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
10803         reintroduce "insn" as a local rtx_insn * using a checked cast,
10804         dropping a checked cast made redundant by this change.
10805         (next_nonnote_insn_bb): Likewise.
10806         (prev_nonnote_insn): Likewise.
10807         (prev_nonnote_insn_bb): Likewise.
10808         (next_nondebug_insn): Likewise.
10809         (prev_nondebug_insn): Likewise.
10810         (next_nonnote_nondebug_insn): Likewise.
10811         (prev_nonnote_nondebug_insn): Likewise.
10812         (next_real_insn): Likewise.
10813         (prev_real_insn): Likewise.
10814         (next_active_insn): Likewise.
10815         (prev_active_insn): Likewise.
10816         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
10817         clarity.
10818         (prev_cc0_setter): Likewise.
10819         (try_split): Rename param "trial" to "uncast_trial" and
10820         reintroduce "insn" as a local rtx_insn * using a checked cast,
10821         dropping checked casts made redundant by this change.
10822         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
10823         rtx to rtx_insn *.
10824         (remove_insn): Rename param "insn" to "uncast_insn" and
10825         reintroduce "insn" as a local rtx_insn * using a checked cast.
10826         (emit_pattern_after_setloc): Likewise for param "after", as
10827         "uncast_after".
10828         (emit_pattern_after): Likewise.  Strengthen local "prev" from
10829         rtx to rtx_insn *.
10830         (emit_pattern_before_setloc): Rename param "before" to
10831         "uncast_before" and reintroduce "before" as a local rtx_insn *
10832         using a checked cast.  Strengthen locals "first", "last" from
10833         rtx to rtx_insn *.
10834         (emit_pattern_before): Likewise rename/cast param "before" to
10835         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
10836         * except.c (copy_reg_eh_region_note_forward): Strengthen param
10837         "first" and local "insn" from rtx to rtx_insn *.
10838         (copy_reg_eh_region_note_backward): Likewise for param "last"
10839         and local "insn".
10840         * expr.c (fixup_args_size_notes): Rename param "last" to
10841         "uncast_last" and reintroduce "last" as a local rtx_insn *
10842         using a checked cast.  Strengthen local "insn" from rtx to
10843         rtx_insn *.
10844         * function.c (set_insn_locations): Strengthen param "insn" from
10845         rtx to rtx_insn *.
10846         (record_insns): Likewise for param "insns" and local "tmp".
10847         (active_insn_between): Rename param "tail" to
10848         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
10849         using a checked cast.
10850         (thread_prologue_and_epilogue_insns): Split out top-level local
10851         rtx "seq" into three different rtx_insn * locals.  Strengthen
10852         local "prologue_seq" from rtx to rtx_insn *.
10853         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
10854         from rtx to rtx_insn *.
10855         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
10856         (priority): Likewise for locals "prev_first", "twin".
10857         (setup_insn_max_reg_pressure): Likewise for param "after".
10858         (sched_setup_bb_reg_pressure_info): Likewise.
10859         (no_real_insns_p): Strengthen params from const_rtx to
10860         const rtx_insn *.
10861         (schedule_block): Strengthen local "next_tail" from rtx to
10862         rtx_insn *.
10863         * ifcvt.c (find_active_insn_before): Strengthen return type and
10864         param "insn" from rtx to rtx_insn *.
10865         (find_active_insn_after): Likewise.
10866         (cond_exec_process_insns): Likewise for param "start" and local "insn".
10867         (cond_exec_process_if_block): Likewise for locals "then_start",
10868         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
10869         (noce_process_if_block): Likewise for local "jump".
10870         (merge_if_block): Likewise for two locals named "end".
10871         (cond_exec_find_if_block): Likewise for local "last_insn".
10872         * jump.c (delete_related_insns): Rename param "insn" to
10873         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
10874         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
10875         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
10876         NULL.
10877         (split_reg): Likewise.
10878         * lra.c (lra_process_new_insns): Likewise.
10879         * modulo-sched.c (permute_partial_schedule): Strengthen param
10880         "last" from rtx to rtx_insn *.
10881         * optabs.c (add_equal_note): Likewise for param "insns" and local
10882         "last_insn".
10883         (expand_binop_directly): Add checked casts to rtx_insn * within
10884         NEXT_INSN (pat) uses.
10885         (expand_unop_direct): Likewise.
10886         (maybe_emit_unop_insn): Likewise.
10887         * recog.c (peep2_attempt): Strengthen locals "last",
10888         "before_try", "x" from rtx to rtx_insn *.
10889         * reorg.c (optimize_skip): Strengthen return type and local
10890         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
10891         and locals "trial", "next_trial" from rtx to rtx_insn *.
10892         * resource.c (next_insn_no_annul): Strengthen return type and
10893         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
10894         rtx_sequence to clarify the code.
10895         (mark_referenced_resources): Add a checked cast to rtx_insn *
10896         within PREV_INSN (x).
10897         (find_dead_or_set_registers): Strengthen return type, param
10898         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
10899         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
10900         to rtx_insn **.
10901         (mark_target_live_regs): Strengthen params "insns" and "target",
10902         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
10903         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
10904         the code.
10905         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
10906         from rtx to rtx_insn *.
10907         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
10908         from rtx to rtx_insn *.
10909         (copy_reg_eh_region_note_backward): Likewise.
10910         (unshare_all_rtl_in_chain): Likewise for sole param.
10911         (dump_rtl_slim): Strengthen second and third params from const_rtx
10912         to const rtx_insn *.
10913         * sched-deps.c (sched_free_deps): Strengthen params "head" and
10914         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
10915         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
10916         "next_tail" from rtx to rtx_insn *.
10917         (begin_move_insn): Likewise for local "next".
10918         * sched-int.h (sched_free_deps): Likewise for first and second
10919         params.
10920         (no_real_insns_p): Strengthen both params from const_rtx to
10921         const rtx_insn *.
10922         (sched_setup_bb_reg_pressure_info): Strengthen second params from
10923         rtx to rtx_insn *.
10924         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
10925         "next_tail".
10926         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
10927         and locals "insn", "tail" from const_rtx to const rtx_insn *.
10928         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
10929         rtx_insn *.
10930         (debug_rtl_slim): Strengthen params "first" and "last" from
10931         const_rtx to const rtx_insn *.
10932         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
10933         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
10934         (convert_to_simple_return): Likewise for param "returnjump".
10935         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
10936         "prologue_seq".
10937         (convert_to_simple_return): Likewise for param "returnjump".
10938         * valtrack.c (propagate_for_debug): Likewise for params
10939         "insn", "last".
10940         * valtrack.h (propagate_for_debug): Likewise for second param.
10941
10942 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10943
10944         * output.h (insn_current_reference_address): Strengthen param
10945         from rtx to rtx_insn *.
10946         * final.c (insn_current_reference_address): Likewise.
10947
10948 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10949
10950         * basic-block.h (inside_basic_block_p): Strengthen param from
10951         const_rtx to const rtx_insn *.
10952         * cfgbuild.c (inside_basic_block_p): Likewise.
10953
10954 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10955
10956         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
10957         rtx_insn *.
10958         (get_trace_info): Likewise for param "insn".
10959         (save_point_p): Likewise.
10960         (maybe_record_trace_start): Likewise for both params.
10961         (maybe_record_trace_start_abnormal): Likewise.
10962         (create_trace_edges): Likewise for sole param and for three of the
10963         locals named "lab".
10964         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
10965         to rtx_insn *, and update a call to pat->element to pat->insn.
10966
10967 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10968
10969         * function.h (struct expr_status): Convert field "x_forced_labels"
10970         from rtx_expr_list * to rtx_insn_list *.
10971
10972         * cfgbuild.c (make_edges): Convert local "x" from an
10973         rtx_expr_list * to an rtx_insn_list *, replacing use of
10974         "element" method with "insn" method.
10975         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
10976         * except.c (sjlj_emit_dispatch_table): Replace use of
10977         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
10978         forced_labels.
10979         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
10980         rtx_expr_list * to an rtx_insn_list *, replacing use of
10981         "element" method with "insn" method.
10982         * reload1.c (set_initial_label_offsets): Likewise for local "x".
10983         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
10984         rtx_insn *, adding a checked cast.  Replace use of
10985         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
10986         forced_labels.
10987         (expand_label): Likewise for local "label_r".
10988
10989 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10990
10991         * function.h (struct rtl_data): Convert field
10992         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
10993         rtx_insn_list *.
10994         * rtl.h (remove_node_from_insn_list): New prototype.
10995
10996         * builtins.c (expand_builtin): When prepending to
10997         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
10998         gen_rtx_EXPR_LIST.
10999         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
11000         to rtx_insn_list *, and use its "insn" method rather than
11001         "element" method.
11002         * cfgrtl.c (delete_insn): Use new function
11003         remove_node_from_insn_list rather than
11004         remove_node_from_expr_list.
11005         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
11006         to rtx_insn_list *, and use its "insn" method rather than
11007         "element" method.
11008         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
11009         * reload1.c (set_initial_label_offsets): Likewise for local "x".
11010         * rtlanal.c (remove_node_from_insn_list): New function, adapted
11011         from remove_node_from_expr_list.
11012         * stmt.c (expand_label): When prepending to
11013         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
11014         gen_rtx_EXPR_LIST.
11015
11016 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11017
11018         * function.h (struct rtl_data): Strengthen fields "x_return_label"
11019         and "x_naked_return_label" from rtx to rtx_code_label *.
11020
11021 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11022
11023         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
11024         (SET_NEXT_INSN): Likewise.
11025         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
11026
11027         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
11028         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
11029         to split out the SEQUENCE from local "bundle", strengthening the
11030         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
11031         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
11032         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
11033         and the type of the elements of the "slot" array from rtx to
11034         rtx_insn *.
11035         (reorg_split_calls): Likewise for locals "insn" and "next", and
11036         the type of the elements of the "slot" array.
11037
11038         * config/frv/frv.c (frv_nops): Likewise for the elements of this
11039         array.
11040         (frv_function_prologue): Likewise for locals "insn", "next",
11041         "last_call".
11042         (frv_register_nop): Introduce a local "nop_insn" to be the
11043         rtx_insn * containing rtx "nop".
11044
11045         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
11046         used as an insn and sometimes as a pattern, so rename it to
11047         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
11048         using it where dealing with the core insn.
11049
11050         * config/picochip/picochip.c (reorder_var_tracking_notes):
11051         Strengthen locals "insn", "next", "last_insn", "queue",
11052         "next_queue", "prev" from rtx to rtx_insn *.
11053
11054         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
11055         the second param is an rtx_insn ** rather than an rtx **.
11056         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
11057         from rtx to rtx_sequence *, and introduce local named "sequence",
11058         using methods of rtx_sequence to clarify the code.
11059         (remove_insn): Introduce local rtx_sequence * named "sequence" and
11060         use its methods.
11061         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
11062         Rename param "after" to "uncast_after", reintroducing "after" as a
11063         local rtx_insn * with a checked cast.
11064         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
11065         reintroducing "after" as a local rtx_insn * with a checked cast.
11066         Strengthen local "last" from rtx to rtx_insn * and remove the
11067         now-redundant checked casts.
11068         (copy_delay_slot_insn): Strengthen return type and param from rtx
11069         to rtx_insn *.
11070
11071         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
11072         "last" from rtx to rtx_insn *.
11073
11074 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11075
11076         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
11077         param from rtx to rtx_insn *.
11078
11079         * emit-rtl.c (copy_delay_slot_insn): Likewise.
11080
11081         * reorg.c (skip_consecutive_labels): Strengthen return type, param
11082         and local "insn" from rtx to rtx_insn *.
11083         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
11084         (unfilled_slots_next): Likewise.
11085         (function_return_label): Strengthen from rtx to rtx_code_label *.
11086         (function_simple_return_label): Likewise.
11087         (first_active_target_insn): Strengthen return type and param from
11088         rtx to rtx_insn *.
11089         (find_end_label): Strengthen return type from rtx to
11090         rtx_code_label *; strengthen locals as appropriate.
11091         (emit_delay_sequence): Strengthen return type, param "insn" and
11092         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
11093         and local "li" from rtx to rtx_insn_list *, using methods of
11094         rtx_insn_list for clarity and typesafety.
11095         (add_to_delay_list): Strengthen return type and param "insn" from
11096         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
11097         rtx_insn_list * and use methods of rtx_insn_list.
11098         (delete_from_delay_slot): Strengthen return type, param "insn",
11099         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
11100         Strengthen local "seq" from rtx to rtx_sequence *, and local
11101         "delay_list" from rtx to rtx_insn_list *, using methods of
11102         rtx_sequence for clarity and type-safety.
11103         (delete_scheduled_jump): Add checked cast when invoking
11104         delete_from_delay_slot.  Strengthen local "trial" from rtx to
11105         rtx_insn *.
11106         (optimize_skip): Strengthen return type and local "delay_list"
11107         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
11108         rtx_insn *.
11109         (steal_delay_list_from_target): Strengthen return type, param
11110         "delay_list" and local "new_delay_list" from rtx to
11111         rtx_insn_list *.  Strengthen param "seq" from rtx to
11112         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
11113         rtx_insn **.
11114         Split out local "temp" into multiple more-tightly scoped locals:
11115         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
11116         of rtx_insn_list and rtx_sequence for clarity and typesafety.
11117         Strengthen locals named "trial" from rtx to rtx_insn *.
11118         (steal_delay_list_from_fallthrough): Strengthen return type and
11119         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
11120         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
11121         Strengthen local "trial" from rtx to rtx_insn *.
11122         (try_merge_delay_insns): Strength local "merged_insns" from rtx
11123         to rtx_insn_list * and use its methods.  Strengthen local "pat"
11124         from rtx to rtx_sequence * and use its methods.  Strengthen locals
11125         "dtrial" and "new_rtx" from rtx to rtx_insn *.
11126         (get_label_before): Strengthen return type and local "label" from
11127         rtx to rtx_insn *.
11128         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
11129         "next_trial", "next", prev".  Strengthen local "delay_list" from
11130         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
11131         rtx_insn **.
11132         (follow_jumps): Strengthen return type, param "label" and locals
11133         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
11134         (fill_slots_from_thread): Strengthen return type, param
11135         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
11136         "insn", "thread", "opposite_thread" and locals "new_thread",
11137         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
11138         "sequence" from a checked cast to rtx_sequence so that we can call
11139         steal_delay_list_from_target and steal_delay_list_from_fallthrough
11140         with an rtx_sequence *.
11141         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
11142         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
11143         Strengthen local "delay_list" from rtx to rtx_insn_list *.
11144         (relax_delay_slots): Strengthen param "first" and locals "insn",
11145         "next", "trial", "delay_insn", "target_label" from rtx to
11146         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
11147         Introduce a local "trial_seq" for PATTERN (trial) of type
11148         rtx_sequence *, in both cases using methods of rtx_sequence.
11149         (dbr_schedule): Strengthen param "first" and locals "insn",
11150         "next", "epilogue_insn" from rtx to rtx_insn *.
11151
11152 2014-08-28  Richard Biener  <rguenther@suse.de>
11153
11154         PR tree-optimization/62283
11155         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11156         Do not peel loops for alignment where the vector loop likely
11157         doesn't run at least VF times.
11158
11159 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
11160
11161         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
11162         important_candidates.  Consider all important candidates if
11163         IVS doesn't give any result.  Remove check on ivs->upto.
11164         (try_add_cand_for): Call iv_ca_add_use only once.
11165
11166 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11167             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11168             Anna Tikhonova  <anna.tikhonova@intel.com>
11169             Ilya Tocar  <ilya.tocar@intel.com>
11170             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11171             Ilya Verbin  <ilya.verbin@intel.com>
11172             Kirill Yukhin  <kirill.yukhin@intel.com>
11173             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11174
11175         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
11176         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
11177         masking.
11178         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
11179         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
11180         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
11181         (define_insn "*mul<mode>3"): Add EVEX version.
11182
11183 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11184             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11185             Anna Tikhonova  <anna.tikhonova@intel.com>
11186             Ilya Tocar  <ilya.tocar@intel.com>
11187             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11188             Ilya Verbin  <ilya.verbin@intel.com>
11189             Kirill Yukhin  <kirill.yukhin@intel.com>
11190             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11191
11192         * config/i386/sse.md
11193         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
11194         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
11195         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
11196         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
11197         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
11198         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
11199         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
11200         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
11201         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
11202         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
11203         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
11204         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
11205         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
11206         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
11207         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
11208         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
11209
11210 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11211             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11212             Anna Tikhonova  <anna.tikhonova@intel.com>
11213             Ilya Tocar  <ilya.tocar@intel.com>
11214             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11215             Ilya Verbin  <ilya.verbin@intel.com>
11216             Kirill Yukhin  <kirill.yukhin@intel.com>
11217             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11218
11219         * config/i386/sse.md
11220         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
11221         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
11222         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
11223
11224 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11225             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11226             Anna Tikhonova  <anna.tikhonova@intel.com>
11227             Ilya Tocar  <ilya.tocar@intel.com>
11228             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11229             Ilya Verbin  <ilya.verbin@intel.com>
11230             Kirill Yukhin  <kirill.yukhin@intel.com>
11231             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11232
11233         * config/i386/sse.md
11234         (define_mode_iterator VI128_256): New.
11235         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
11236
11237 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11238             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11239             Anna Tikhonova  <anna.tikhonova@intel.com>
11240             Ilya Tocar  <ilya.tocar@intel.com>
11241             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11242             Ilya Verbin  <ilya.verbin@intel.com>
11243             Kirill Yukhin  <kirill.yukhin@intel.com>
11244             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11245
11246         * config/i386/sse.md
11247         (define_mode_iterator VI8_256_512): New.
11248         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
11249         Ditto.
11250         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
11251         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
11252         Ditto.
11253         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
11254
11255 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11256
11257         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
11258         pointer to the cumulative reloc value and return the value for
11259         this reloc instead.
11260         (compute_reloc_for_rtx): Take a const_rtx.  Call
11261         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
11262         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
11263         for_each_rtx for the CONST case.
11264
11265 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11266
11267         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
11268         (mark_constants_in_pattern): ...this new function to iterate over
11269         all the subrtxes.
11270         (mark_constants): Update accordingly.
11271
11272 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11273
11274         * varasm.c: Include rtl-iter.h.
11275         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
11276         Remove the pointer to the cumulative hashval_t and just return
11277         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
11278         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
11279         Accumulate the hashval_ts here instead of const_rtx_hash_1.
11280
11281 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11282
11283         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
11284         Give real type of data parameter.  Remove return value.
11285         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
11286         to iterate over subrtxes.
11287
11288 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11289
11290         * var-tracking.c (use_narrower_mode_test): Turn from being a
11291         for_each_rtx callback to being a function that examines each
11292         subrtx itself.
11293         (adjust_mems): Update accordingly.
11294
11295 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11296
11297         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
11298         callback to being a function that examines each subrtx itself.
11299         Remove handling of null rtxes.
11300         (add_uses): Update accordingly.
11301
11302 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11303
11304         * var-tracking.c: Include rtl-iter.h.
11305         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
11306         to being a function that examines each subrtx itself.
11307         (use_type): Update accordingly.
11308
11309 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11310
11311         * store-motion.c: Include rtl-iter.h.
11312         (extract_mentioned_regs_1): Delete.
11313         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
11314         for_each_rtx to iterate over subrtxes.
11315
11316 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11317
11318         * sel-sched.c: Include rtl-iter.h
11319         (count_occurrences_1): Delete.
11320         (count_occurrences_equiv): Turn rtxes into const_rtxes.
11321         Use FOR_EACH_SUBRTX rather than for_each_rtx.
11322
11323 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11324
11325         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
11326         * rtlanal.c (tls_referenced_p_1): Delete.
11327         (tls_referenced_p): Take a const_rtx rather than an rtx.
11328         Use FOR_EACH_SUBRTX rather than for_each_rtx.
11329
11330 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11331
11332         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
11333         (for_each_inc_dec): Take an rtx rather than an rtx *.
11334         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
11335         (cselib_record_sets): Likewise.
11336         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
11337         (check_for_inc_dec): Likewise.
11338         * rtlanal.c (for_each_inc_dec_ops): Delete.
11339         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
11340         rather than a pointer to the memory address.  Replace
11341         for_each_inc_dec_ops argument with separate function and data
11342         arguments.  Abort on non-autoinc addresses.
11343         (for_each_inc_dec_find_mem): Delete.
11344         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
11345         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
11346
11347 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11348
11349         * rtl.h (find_all_hard_regs): Declare.
11350         * rtlanal.c (find_all_hard_regs): New function.
11351         (record_hard_reg_uses_1): Delete.
11352         (record_hard_reg_uses): Use find_all_hard_regs.
11353
11354 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11355
11356         * rtl.h (replace_label_data): Delete.
11357         (replace_label): Take the old label, new label and update-nuses flag
11358         as direct arguments.  Return void.
11359         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
11360         * rtlanal.c (replace_label): Update interface as above.  Handle
11361         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
11362         iterator.  Use FOR_EACH_SUBRTX_PTR.
11363
11364 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11365
11366         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
11367         with const_rtx parameters.
11368         * varasm.c (get_pool_constant): Likewise.
11369         * rtlanal.c (rtx_referenced_p_1): Delete.
11370         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
11371         Assert that the rtx we're looking for is nonnull.  Allow searches
11372         for constant pool SYMBOL_REFs.
11373
11374 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11375
11376         * reload1.c: Include rtl-iter.h.
11377         (note_reg_elim_costly): Turn from being a for_each_rtx callback
11378         to being a function that examines each subrtx itself.
11379         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
11380
11381 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11382
11383         * regcprop.c (cprop_find_used_regs_1): Delete.
11384         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
11385
11386 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11387
11388         * regcprop.c: Include rtl-iter.h.
11389         (kill_value): Take a const_rtx.
11390         (kill_autoinc_value): Turn from being a for_each_rtx callback
11391         to being a function that examines each subrtx itself.
11392         (copyprop_hardreg_forward_1): Update accordingly.
11393
11394 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11395
11396         * reg-stack.c: Include rtl-iter.h.
11397         (subst_stack_regs_in_debug_insn): Delete.
11398         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
11399         instead of for_each_rtx.
11400
11401 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11402
11403         * lower-subreg.c (find_decomposable_subregs): Turn from being
11404         a for_each_rtx callback to being a function that examines each
11405         subrtx itself.  Remove handling of null rtxes.
11406         (decompose_multiword_subregs): Update accordingly.
11407
11408 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11409
11410         * lower-subreg.c (adjust_decomposed_uses): Delete.
11411         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
11412         Remove handling of null rtxes.
11413
11414 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11415
11416         * lower-subreg.c: Include rtl-iter.h.
11417         (resolve_subreg_use): Turn from being a for_each_rtx callback
11418         to being a function that examines each subrtx itself.  Remove
11419         handling of null rtxes.
11420         (resolve_reg_notes, resolve_simple_move): Update accordingly.
11421         (decompose_multiword_subregs): Likewise.
11422
11423 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11424
11425         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
11426         to being a function that examines each subrtx itself.
11427         (simplify_using_condition, simplify_using_initial_values): Update
11428         accordingly.
11429
11430 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11431
11432         * loop-iv.c: Include rtl-iter.h.
11433         (find_single_def_src): New function.
11434         (replace_single_def_regs): Turn from being a for_each_rtx callback
11435         to being a function that examines each subrtx itself.
11436         (replace_in_expr, simplify_using_initial_values): Update accordingly.
11437
11438 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11439
11440         * jump.c (eh_returnjump_p_1): Delete.
11441         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
11442         Remove handling of null rtxes.
11443
11444 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11445
11446         * jump.c: Include rtl-iter.h.
11447         (returnjump_p_1): Delete.
11448         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
11449         Remove handling of null rtxes.
11450
11451 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11452
11453         * ira.c: Include rtl-iter.h.
11454         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
11455         to being a function that examines each subrtx itself.  Remove
11456         handling of null rtxes.
11457         (update_equiv_regs): Update call accordingly.
11458
11459 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11460
11461         * fwprop.c: Include rtl-iter.h.
11462         (varying_mem_p): Turn from being a for_each_rtx callback to being
11463         a function that examines each subrtx itself.
11464         (propagate_rtx): Update accordingly.
11465
11466 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11467
11468         * function.c: Include rtl-iter.h
11469         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
11470         callback to being a function that examines each subrtx itself.
11471         Return the changed flag.
11472         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
11473         (instantiate_virtual_regs): Update calls accordingly.
11474
11475 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11476
11477         * final.c: Include rtl-iter.h.
11478         (mark_symbol_ref_as_used): Delete.
11479         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
11480         for_each_rtx.
11481
11482 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11483
11484         * emit-rtl.c: Include rtl-iter.h.
11485         (find_auto_inc): Turn from being a for_each_rtx callback to being
11486         a function that examines each subrtx itself.  Assume the first operand
11487         to an RTX_AUTOINC is the automodified register.
11488         (try_split): Update call accordingly.
11489
11490 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11491
11492         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
11493         Return a bool, inverting the result so that 0/false means "not ok".
11494         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
11495         subrtxes of a CONST.
11496         (mem_loc_descriptor, add_const_value_attribute)
11497         (resolve_addr_in_expr): Update calls accordingly.
11498
11499 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11500
11501         * dwarf2out.c: Include rtl-iter.h.
11502         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
11503         Remove unused data parameter.  Return a bool, inverting the result
11504         so that 0/false means "not ok".
11505         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
11506         instead of for_each_rtx.
11507
11508 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11509
11510         * dse.c: Include rtl-iter.h.
11511         (check_mem_read_rtx): Change void * parameter to real type.
11512         Remove return value.
11513         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
11514         for_each_rtx.  Don't handle null rtxes.
11515
11516 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11517
11518         * df-problems.c: Include rtl-iter.h.
11519         (find_memory): Turn from being a for_each_rtx callback to being
11520         a function that examines each subrtx itself.  Continue to look for
11521         volatile references even after a nonvolatile one has been found.
11522         (can_move_insns_across): Update calls accordingly.
11523
11524 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11525
11526         * ddg.c (walk_mems_2, walk_mems_1): Delete.
11527         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
11528         to iterate over subrtxes.  Return a bool rather than an int.
11529
11530 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11531
11532         * ddg.c: Include rtl-iter.h.
11533         (mark_mem_use_1): Rename to...
11534         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
11535         instead of for_each_rtx.
11536         (mem_read_insn_p): Update accordingly.
11537
11538 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11539
11540         * cse.c (change_cc_mode_args): Delete.
11541         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
11542         a function that examines each subrtx itself.  Take the fields of
11543         change_cc_mode_args as argument and return void.
11544         (cse_change_cc_mode_insn): Update calls accordingly.
11545
11546 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11547
11548         * cse.c (is_dead_reg): Change argument to const_rtx.
11549         (dead_debug_insn_data): Delete.
11550         (is_dead_debug_insn): Expand commentary.  Turn from being a
11551         for_each_rtx callback to being a function that examines
11552         each subrtx itself.  Take the fields of dead_debug_insn_data
11553         as argument.
11554         (delete_trivially_dead_insns): Update call accordingly.
11555
11556 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11557
11558         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
11559         being a for_each_rtx callback to being a function that examines
11560         each subrtx itself.
11561         (cse_extended_basic_block): Update call accordingly.
11562
11563 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11564
11565         * cse.c (check_dependence_data): Delete.
11566         (check_dependence): Change from being a for_each_rtx callback to being
11567         a function that examines all subrtxes itself.  Don't handle null rtxes.
11568         (invalidate): Update call accordingly.
11569
11570 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11571
11572         * cse.c: Include rtl-iter.h.
11573         (approx_reg_cost_1): Delete.
11574         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
11575         Don't handle null rtxes.
11576
11577 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11578
11579         * cfgcleanup.c: Include rtl-iter.h.
11580         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
11581         to being a function that examines each subrtx itself.
11582         (thread_jump): Update accordingly.
11583
11584 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11585
11586         * combine-stack-adj.c: Include rtl-iter.h.
11587         (record_stack_refs_data): Delete.
11588         (record_stack_refs): Turn from being a for_each_rtx callback
11589         to being a function that examines each subrtx itself.
11590         Take a pointer to the reflist.  Invert sense of return value
11591         so that true means success and false means failure.  Don't
11592         handle null rtxes.
11593         (combine_stack_adjustments_for_block): Update accordingly.
11594
11595 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11596
11597         * combine.c (record_truncated_value): Turn from being a for_each_rtx
11598         callback to a function that takes an rtx and returns a bool
11599         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
11600         for_each_rtx.
11601
11602 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11603
11604         * combine.c: Include rtl-iter.h.
11605         (unmentioned_reg_p_1): Delete.
11606         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
11607         Don't handle null rtxes.
11608
11609 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11610
11611         * calls.c: Include rtl-iter.h.
11612         (internal_arg_pointer_based_exp_1): Delete.
11613         (internal_arg_pointer_based_exp): Take a const_rtx.
11614         Use FOR_EACH_SUBRTX to iterate over subrtxes.
11615
11616 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11617
11618         * caller-save.c: Include rtl-iter.h.
11619         (add_used_regs_1): Delete.
11620         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
11621         to iterate over subrtxes.  Assert that any remaining pseudos
11622         have been spilled.
11623
11624 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11625
11626         * bt-load.c: Include rtl-iter.h.
11627         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
11628         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
11629         to iterate over subrtxes.
11630         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
11631         find_btr_use rather than btr_referenced_p.
11632
11633 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11634
11635         * alias.c: Include rtl-iter.h.
11636         (refs_newer_value_cb): Delete.
11637         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
11638
11639 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11640
11641         * rtl-iter.h: New file.
11642         * rtlanal.c: Include it.
11643         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
11644         (generic_subrtx_iterator <T>::add_single_to_queue)
11645         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
11646         (generic_subrtx_iterator <T>::free_array): New functions.
11647         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
11648         (generic_subrtx_iterator <const_rtx_accessor>)
11649         (generic_subrtx_iterator <rtx_var_accessor>
11650         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
11651         (setup_reg_subrtx_bounds): New function.
11652         (init_rtlanal): Call it.
11653
11654 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
11655
11656         PR target/62261
11657         * config/sh/sh.md (ashlsi3): Handle negative shift count for
11658         TARGET_SHMEDIA.
11659         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
11660
11661 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
11662
11663         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
11664
11665 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11666
11667         * rtl.h (JUMP_LABEL_AS_INSN): New.
11668
11669 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11670
11671         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
11672         rtx_expr_list **.
11673         (alloc_EXPR_LIST): Strengthen return type from rtx to
11674         rtx_expr_list *.
11675         (remove_free_EXPR_LIST_node): Likewise for param.
11676         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
11677         from rtx to rtx_expr_list *.
11678         * sched-int.h (struct deps_desc): Strengthen fields
11679         "pending_read_mems" and "pending_write_mems" from rtx to
11680         rtx_expr_list *.
11681
11682         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
11683         rtx to rtx_expr_list *.
11684         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
11685         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
11686         rtx_expr_list **.
11687         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
11688         from rtx to rtx_expr_list *.
11689         * loop-iv.c (simplify_using_initial_values): Strengthen local
11690         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
11691         "pnote_next" from rtx * to rtx_expr_list **.
11692         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
11693         param "exprp" from rtx * to rtx_expr_list **.
11694         (add_insn_mem_dependence): Strengthen local "mem_list" from
11695         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
11696         to rtx_expr_list *.
11697         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
11698         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
11699         param "old_mems_p" from rtx * to rtx_expr_list **.
11700         * var-tracking.c (struct adjust_mem_data): Strengthen field
11701         "side_effects" from rtx to rtx_expr_list *.
11702         (adjust_insn): Replace NULL_RTX with NULL when assigning to
11703         rtx_expr_list *.
11704         (prepare_call_arguments): Likewise.
11705
11706 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11707
11708         * function.h (struct rtl_data): Strengthen field
11709         "x_stack_slot_list" from rtx to rtx_expr_list *.
11710
11711         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
11712         when assigning to stack_slot_list.
11713
11714 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11715
11716         * function.h (struct rtl_data): Strengthen field
11717         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
11718         * rtl.h (remove_node_from_expr_list): Strengthen second param from
11719         rtx * to rtx_expr_list **.
11720
11721         * cfgbuild.c (make_edges): In loop over
11722         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
11723         rtx_expr_list *, and use methods of the latter class to clarify
11724         the code.
11725         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
11726         rtx_expr_list *, and use methods of the latter class to clarify
11727         the code.
11728         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
11729         * reload1.c (set_initial_label_offsets): Likewise for local "x".
11730         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
11731         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
11732         to rtx_expr_list *.  Use methods of the latter class to clarify
11733         the code.
11734
11735 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11736
11737         * function.h (struct expr_status): Strengthen field
11738         "x_forced_labels" from rtx to rtx_expr_list *.
11739
11740         * cfgbuild.c (make_edges): Split local "x" into two locals,
11741         strengthening one from rtx to rtx_expr_list *, and using methods
11742         of said class.
11743         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
11744         loop over forced_labels, introduce strengthen it from rtx to
11745         rtx_expr_list *, using methods to clarify the code.
11746         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
11747         to rtx_expr_list *, using methods of said class to clarify the
11748         code.
11749         * reload1.c (set_initial_label_offsets): Split local "x" into two
11750         per-loop variables, strengthening the first from rtx to
11751         rtx_expr_list * and using methods.
11752
11753 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11754
11755         * coretypes.h (class rtx_expr_list): Add forward declaration.
11756         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
11757         * gengenrtl.c (special_rtx): Add EXPR_LIST.
11758         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
11759         invariant: GET_CODE (X) == EXPR_LIST.
11760         (is_a_helper <rtx_expr_list *>::test): New.
11761         (rtx_expr_list::next): New.
11762         (rtx_expr_list::element): New.
11763         (gen_rtx_EXPR_LIST): New.
11764
11765 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11766
11767         * varasm.c (mark_constants): Convert a GET_CODE check into a
11768         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
11769         Use methods of rtx_sequence to clarify the code.
11770
11771 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11772
11773         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
11774         local "seq" via a checked cast, and use methods of rtx_sequence
11775         to simplify the code.
11776
11777 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11778
11779         * resource.c (mark_referenced_resources): Strengthen local
11780         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
11781         using methods of rtx_sequence to clarify the code.
11782         (find_dead_or_set_registers): Within the switch statement, convert
11783         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
11784         the JUMP_P handling, introduce another local "seq", adding a
11785         checked cast to rtx_sequence *.  In both cases, use methods of
11786         rtx_sequence to clarify the code.
11787         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
11788         via a checked cast, and use methods of rtx_sequence to simplify
11789         the code.
11790
11791 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11792
11793         * reorg.c (redundant_insn): In two places in the function, replace
11794         a check of GET_CODE with a dyn_cast, introducing local "seq", and
11795         usings methods of rtx_sequence to clarify the code.
11796
11797 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11798
11799         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
11800         local "seq" with a checked cast, and use methods of rtx_sequence
11801         to clarify the code.
11802
11803 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11804
11805         * function.c (contains): Introduce local "seq" for PATTERN (insn),
11806         with a checked cast, in the region for where we know it's a
11807         SEQUENCE.  Use methods of rtx_sequence.
11808
11809 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11810
11811         * final.c (get_attr_length_1): Replace GET_CODE check with a
11812         dyn_cast, introducing local "seq" and the use of methods of
11813         rtx_sequence.
11814         (shorten_branches): Likewise, introducing local "body_seq".
11815         Strengthen local "inner_insn" from rtx to rtx_insn *.
11816         (reemit_insn_block_notes): Replace GET_CODE check with a
11817         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
11818         Use methods of rtx_sequence.
11819         (final_scan_insn): Likewise, introducing local "seq" for when
11820         "body" is known to be a SEQUENCE, using its methods.
11821
11822 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11823
11824         * except.c (can_throw_external): Strengthen local "seq" from rtx
11825         to rtx_sequence *.  Use methods of rtx_sequence.
11826         (insn_nothrow_p): Likewise.
11827
11828 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11829
11830         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
11831         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
11832         Use methods of rtx_sequence.
11833         (scan_trace): Likewise for local "pat".
11834
11835 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11836
11837         * coretypes.h (class rtx_sequence): Add forward declaration.
11838         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
11839         invariant: GET_CODE (X) == SEQUENCE.
11840         (is_a_helper <rtx_sequence *>::test): New.
11841         (is_a_helper <const rtx_sequence *>::test): New.
11842         (rtx_sequence::len): New.
11843         (rtx_sequence::element): New.
11844         (rtx_sequence::insn): New.
11845
11846 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11847
11848         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
11849         rtx_insn_list **.
11850         (alloc_INSN_LIST): Strengthen return type from rtx to
11851         rtx_insn_list *.
11852         (copy_INSN_LIST): Likewise for return type and param.
11853         (concat_INSN_LIST): Likewise for both params and return type.
11854         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
11855         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
11856         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
11857         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
11858
11859         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
11860         "implicit_sets", "control_uses", "clobbers" from rtx to
11861         rtx_insn_list *.
11862         (struct deps_desc): Likewise for fields "pending_read_insns",
11863         "pending_write_insns", "pending_jump_insns",
11864         "last_pending_memory_flush", "last_function_call",
11865         "last_function_call_may_noreturn", "sched_before_next_call",
11866         "sched_before_next_jump".
11867         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
11868         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
11869
11870         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
11871         from rtx to rtx_insn_list *.
11872         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
11873         rtx_insn_list *.
11874
11875         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
11876         to rtx_insn_list **.
11877         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
11878         rtx_insn_list *.
11879         (queue_insn): Likewise for local "link".
11880         (struct haifa_saved_data): Strengthen field "insn_queue" from
11881         rtx * to rtx_insn_list **.
11882         (save_backtrack_point): Update allocation of save->insn_queue to
11883         reflect the strengthening of elements from rtx to rtx_insn_list *.
11884         (queue_to_ready): Strengthen local "link" from rtx to
11885         rtx_insn_list *; use methods "next" and "insn" when traversing the
11886         list.
11887         (early_queue_to_ready): Likewise for locals "link", "next_link",
11888         "prev_link".
11889         (schedule_block): Update allocation of insn_queue to reflect the
11890         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
11891         local "link" from rtx to rtx_insn_list *, and use methods when
11892         working it.
11893         (add_to_speculative_block): Strengthen locals "twins" and
11894         "next_node" from rtx to rtx_insn_list *, and use methods when
11895         working with them.  Strengthen local "twin" from rtx to
11896         rtx_insn *, eliminating a checked cast.
11897         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
11898         from rtx to rtx_insn_list *, and use methods when working with
11899         them.
11900
11901         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
11902         from rtx to rtx_insn_list *, adding a checked cast.
11903         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
11904         rtx_insn_list **.
11905         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
11906         "newlink" from rtx to rtx_insn_list *.  Strengthen local
11907         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
11908         from rtx to rtx_insn *.
11909         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
11910         from rtx to rtx_insn_list *.  Use methods of the latter class.
11911         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
11912         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
11913         (remove_free_INSN_LIST_node): Strengthen return type and local
11914         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
11915         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
11916         rtx_insn_list *, using "insn" method.
11917
11918         * sched-deps.c (add_dependence_list):  Strengthen param "list"
11919         from rtx to rtx_insn_list *, and use methods when working with it.
11920         (add_dependence_list_and_free):  Strengthen param "listp" from
11921         rtx * to rtx_insn_list **.
11922         (remove_from_dependence_list): Strenghten param "listp" from rtx *
11923         to rtx_insn_list **, and use methods when working with *listp.
11924         (remove_from_both_dependence_lists): Strengthen param "listp" from
11925         rtx * to rtx_insn_list **
11926         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
11927         to rtx_insn_list **.  Eliminate local "link", in favor of two new
11928         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
11929         respectively.
11930         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
11931         by introducing local "cond_deps".
11932         (remove_from_deps): Strengthen param "insn" from rtx to
11933         rtx_insn *.
11934
11935         * sched-rgn.c (concat_insn_mem_list): Strengthen param
11936         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
11937         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
11938         Use methods of rtx_insn_list.
11939
11940         * store-motion.c (struct st_expr): Strengthen fields
11941         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
11942         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
11943         rtx_insn_list *.
11944         (find_moveable_store): Split out "tmp" into multiple more-tightly
11945         scoped locals.  Use methods of rtx_insn_list *.
11946         (compute_store_table): Strengthen local "tmp" from rtx to
11947         rtx_insn *.  Use methods of rtx_insn_list *.
11948
11949 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11950
11951         * coretypes.h (class rtx_insn_list): Add forward declaration.
11952         * rtl.h (class rtx_insn_list): New subclass of rtx_def
11953         (is_a_helper <rtx_insn_list *>::test): New.
11954         (rtx_insn_list::next): New.
11955         (rtx_insn_list::insn): New.
11956         (gen_rtx_INSN_LIST): Add prototype.
11957         * emit-rtl.c (gen_rtx_INSN_LIST): New.
11958         * gengenrtl.c (special_rtx): Add INSN_LIST.
11959
11960 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11961
11962         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
11963         "prev" from rtx to rtx_insn *.
11964
11965 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11966
11967         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
11968         functions.  Require merely an rtx for now, not an rtx_insn *.
11969         (BLOCK_FOR_INSN): Likewise.
11970         (INSN_LOCATION): Likewise.
11971         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
11972
11973 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11974
11975         * rtl.h (PATTERN): Convert this macro into a pair of inline
11976         functions, for now, requiring const_rtx and rtx.
11977
11978 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
11979
11980         * target.def (unwind_emit): Strengthen param "insn" from rtx to
11981         rtx_insn *.
11982         (final_postscan_insn): Likewise.
11983         (adjust_cost): Likewise.
11984         (adjust_priority): Likewise.
11985         (variable_issue): Likewise.
11986         (macro_fusion_pair_p): Likewise.
11987         (dfa_post_cycle_insn): Likewise.
11988         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
11989         (first_cycle_multipass_issue): Likewise.
11990         (dfa_new_cycle): Likewise.
11991         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
11992         (speculate_insn): Likewise for param "insn".
11993         (gen_spec_check): Likewise for params "insn" and "label".
11994         (get_insn_spec_ds): Likewise for param "insn".
11995         (get_insn_checked_ds): Likewise.
11996         (dispatch_do): Likewise.
11997         (dispatch): Likewise.
11998         (cannot_copy_insn_p): Likewise.
11999         (invalid_within_doloop): Likewise.
12000         (legitimate_combined_insn): Likewise.
12001         (needed): Likewise.
12002         (after): Likewise.
12003
12004         * doc/tm.texi: Automatically updated to reflect changes to
12005         target.def.
12006
12007         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
12008         working with insn.
12009         (schedule_block): Likewise.
12010         (sched_init): Likewise.
12011         (sched_speculate_insn): Strengthen param "insn" from rtx to
12012         rtx_insn *.
12013         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
12014         working with insn.
12015         * hooks.c (hook_bool_rtx_true): Rename to...
12016         hook_bool_rtx_insn_true): ...this, and strengthen first param from
12017         rtx to rtx_insn *.
12018         (hook_constcharptr_const_rtx_null): Rename to...
12019         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
12020         first param from const_rtx to const rtx_insn *.
12021         (hook_bool_rtx_int_false): Rename to...
12022         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
12023         param from rtx to rtx_insn *.
12024         (hook_void_rtx_int): Rename to...
12025         (hook_void_rtx_insn_int): ...this, and strengthen first param from
12026         rtx to rtx_insn *.
12027
12028         * hooks.h (hook_bool_rtx_true): Rename to...
12029         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
12030         rtx to rtx_insn *.
12031         (hook_bool_rtx_int_false): Rename to...
12032         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
12033         param from rtx to rtx_insn *.
12034         (hook_void_rtx_int): Rename to...
12035         (hook_void_rtx_insn_int): ...this, and strengthen first param from
12036         rtx to rtx_insn *.
12037         (hook_constcharptr_const_rtx_null): Rename to...
12038         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
12039         first param from const_rtx to const rtx_insn *.
12040
12041         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
12042         and local "prev" from rtx to rtx_insn *.
12043
12044         * sched-int.h (sched_speculate_insn): Strengthen first param from
12045         rtx to rtx_insn *.
12046
12047         * sel-sched.c (create_speculation_check): Likewise for local "label".
12048         * targhooks.c (default_invalid_within_doloop): Strengthen param
12049         "insn" from const_rtx to const rtx_insn *.
12050         * targhooks.h (default_invalid_within_doloop): Strengthen param
12051         from const_rtx to const rtx_insn *.
12052
12053         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
12054         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
12055
12056         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
12057         "insn".
12058         (arc_invalid_within_doloop): Likewise, with const.
12059
12060         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
12061         (arm_cannot_copy_insn_p): Likewise for param "insn".
12062         (arm_unwind_emit): Likewise.
12063
12064         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
12065         "dep_insn".
12066
12067         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
12068         (c6x_variable_issue): Likewise.  Removed now-redundant checked
12069         cast.
12070         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
12071
12072         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
12073         Likewise for param "insn".
12074         (epiphany_mode_after): Likewise.
12075         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
12076         params "insn", "dep_insn".
12077         (epiphany_mode_needed): Likewise for param "insn".
12078         (epiphany_mode_after): Likewise.
12079
12080         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
12081         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12082         (ix86_avx_u128_mode_needed): Likewise.
12083         (ix86_i387_mode_needed): Likewise.
12084         (ix86_mode_needed): Likewise.
12085         (ix86_avx_u128_mode_after): Likewise.
12086         (ix86_mode_after): Likewise.
12087         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
12088         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
12089         (ix86_adjust_priority): Likewise for param "insn".
12090         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
12091         (do_dispatch): Likewise.
12092         (has_dispatch): Likewise.
12093         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
12094
12095         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
12096         reflect renaming of default hook implementation from
12097         hook_constcharptr_const_rtx_null to
12098         hook_constcharptr_const_rtx_insn_null.
12099         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
12100         rtx to rtx_insn *.
12101         (ia64_variable_issue): Likewise for param "insn".
12102         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
12103         (ia64_dfa_new_cycle): Likewise.
12104         (ia64_get_insn_spec_ds): Likewise.
12105         (ia64_get_insn_checked_ds): Likewise.
12106         (ia64_speculate_insn): Likewise.
12107         (ia64_gen_spec_check): Likewise for params "insn", "label".
12108         (ia64_asm_unwind_emit): Likewise for param "insn".
12109
12110         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
12111
12112         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
12113         "insn", "def_insn".
12114         (m68k_sched_variable_issue): Likewise for param "insn".
12115
12116         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
12117         "def_insn".
12118
12119         * config/microblaze/microblaze.c (microblaze_adjust_cost):
12120         Likewise for params "insn", "dep".
12121
12122         * config/mips/mips.c (mips_adjust_cost): Likewise.
12123         (mips_variable_issue): Likewise for param "insn".
12124         (mips_final_postscan_insn): Likewise.
12125
12126         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
12127         for params "insn", "dep".
12128
12129         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
12130         "dep_insn".
12131         (pa_adjust_priority): Likewise for param "insn".
12132
12133         * config/picochip/picochip.c (picochip_sched_adjust_cost):
12134         Likewise for params "insn", "dep_insn".
12135
12136         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
12137         param "insn".
12138         (rs6000_variable_issue): Likewise.
12139         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
12140         (rs6000_debug_adjust_cost): Likewise.
12141         (rs6000_adjust_priority): Likewise for param "insn".
12142         (rs6000_use_sched_lookahead_guard): Likewise.
12143         (get_next_active_insn): Likewise for return type and both params.
12144         (redefine_groups): Likewise for params "prev_head_insn", "tail"
12145         and locals "insn", "next_insn".
12146         (pad_groups): Likewise.
12147
12148         * config/s390/s390.c (s390_adjust_priority): Likewise for param
12149         "insn".
12150         (s390_cannot_copy_insn_p): Likewise.
12151         (s390_sched_variable_issue): Likewise for third param, eliminating
12152         checked cast.
12153         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
12154         default hook implementation from hook_constcharptr_const_rtx_null
12155         to hook_constcharptr_const_rtx_insn_null.
12156
12157         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
12158         from rtx to rtx_insn *.
12159         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
12160         (sh_variable_issue): Likewise for param "insn".
12161         (sh_dfa_new_cycle): Likewise.
12162         (sh_mode_needed): Likewise.
12163         (sh_mode_after): Likewise.
12164
12165         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
12166         params "insn", "dep_insn".
12167         (hypersparc_adjust_cost): Likewise.
12168         (sparc_adjust_cost): Likewise.
12169
12170         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
12171         param, eliminated checked cast.
12172         (spu_sched_adjust_cost): Likewise for first and third params.
12173
12174         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
12175         params "insn" and "dep_insn" from rtx to rtx_insn *.
12176
12177         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
12178
12179 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12180
12181         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
12182         (set_is_load_p): ...this, updating to work on a SET pattern rather
12183         than an insn.
12184         (is_store_insn): Rename to...
12185         (set_is_store_p): ...this, updating to work on a SET pattern
12186         rather than an insn.
12187         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
12188         top of function to where it is needed.  Rewrite the bogus
12189         condition that checks for "insn" and "dep" being PARALLEL to
12190         instead use single_set, introducing locals "insn_set" and
12191         "dep_set".  Given that we only ever returned "cost" for a non-pair
12192         of SETs, bail out early if we don't have a pair of SET.
12193         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
12194         use the new locals "insn_set" and "dep_set", and update calls to
12195         is_load_insn and is_store_insn to be calls to set_is_load_p and
12196         set_is_store_p.
12197
12198 2014-08-27  Guozhi Wei  <carrot@google.com>
12199
12200         PR target/62262
12201         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
12202         amount before using it.
12203
12204 2014-08-27  Richard Biener  <rguenther@suse.de>
12205
12206         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
12207         get_maxval_strlen inside a more useful API.
12208         (gimple_fold_builtin_with_strlen): Remove and fold into ...
12209         (gimple_fold_builtin): ... caller.
12210         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
12211         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
12212         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
12213         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
12214         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
12215         gimple_fold_builtin_sprintf): Adjust to compute maxval
12216         themselves.
12217
12218 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
12219
12220         PR other/62248
12221         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
12222
12223 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12224             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12225             Anna Tikhonova  <anna.tikhonova@intel.com>
12226             Ilya Tocar  <ilya.tocar@intel.com>
12227             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12228             Ilya Verbin  <ilya.verbin@intel.com>
12229             Kirill Yukhin  <kirill.yukhin@intel.com>
12230             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12231
12232         * config/i386/sse.md
12233         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
12234         Use `concat_tg_mode' attribute to determine asm register size.
12235
12236 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12237             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12238             Anna Tikhonova  <anna.tikhonova@intel.com>
12239             Ilya Tocar  <ilya.tocar@intel.com>
12240             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12241             Ilya Verbin  <ilya.verbin@intel.com>
12242             Kirill Yukhin  <kirill.yukhin@intel.com>
12243             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12244
12245         * config/i386/sse.md
12246         (define_mode_iterator VI48_AVX512VL): New.
12247         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
12248         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
12249         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
12250         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12251         with VI1): Change mode iterator.
12252         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12253         with VI_ULOADSTORE_BW_AVX512VL): New.
12254         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12255         with VI_ULOADSTORE_F_AVX512VL): Ditto.
12256         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12257         with VI1): Change mode iterator.
12258         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12259         with VI_ULOADSTORE_BW_AVX512VL): New.
12260         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12261         with VI_ULOADSTORE_F_AVX512VL): Ditto.
12262         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
12263         with VI1): Change mode iterator.
12264         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
12265         with VI_ULOADSTORE_BW_AVX512VL): New.
12266         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
12267         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
12268         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
12269         (define_insn "<avx512>_storedqu<mode>_mask" with
12270         VI48_AVX512VL): New.
12271         (define_insn "<avx512>_storedqu<mode>_mask" with
12272         VI12_AVX512VL): Ditto.
12273
12274 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12275             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12276             Anna Tikhonova  <anna.tikhonova@intel.com>
12277             Ilya Tocar  <ilya.tocar@intel.com>
12278             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12279             Ilya Verbin  <ilya.verbin@intel.com>
12280             Kirill Yukhin  <kirill.yukhin@intel.com>
12281             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12282
12283         * config/i386/sse.md
12284         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
12285         (define_mode_iterator VI48_AVX512BW): New.
12286         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
12287         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
12288         with VI48_AVX2_48_AVX512F): New.
12289         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
12290         with VI2_AVX512VL): Ditto.
12291
12292 2014-08-27  Richard Biener  <rguenther@suse.de>
12293
12294         PR middle-end/62239
12295         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
12296         (fold_builtin_3): Do not fold strcat_chk here.
12297         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
12298         from builtins.c.
12299         (gimple_fold_builtin): Fold strcat_chk here.
12300
12301 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
12302
12303         * dwarf2out.h (dwarf2out_decl): Remove prototype.
12304         * dwarf2out.c (dwarf2out_decl): Make static.
12305
12306 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
12307
12308         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
12309
12310 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12311
12312         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
12313         from rtx to rtx_insn *.
12314         (cselib_lookup_from_insn): Likewise for final param.
12315         (cselib_subst_to_values_from_insn): Likewise.
12316         (cselib_add_permanent_equiv): Likewise.
12317
12318         * cselib.c (cselib_current_insn): Likewise for this variable.
12319         (cselib_subst_to_values_from_insn): Likewise for param "insn".
12320         (cselib_lookup_from_insn): Likewise.
12321         (cselib_add_permanent_equiv): Likewise for param "insn" and local
12322         "save_cselib_current_insn".
12323         (cselib_process_insn): Replace use of NULL_RTX with NULL.
12324
12325         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
12326         from rtx to rtx_insn *.
12327
12328 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12329
12330         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
12331         rtx_insn *.
12332
12333 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12334
12335         * df.h (df_dump_insn_problem_function): Strengthen first param of
12336         this callback from const_rtx to const rtx_insn *.
12337         (struct df_insn_info): Strengthen field "insn" from rtx to
12338         rtx_insn *.
12339         (DF_REF_INSN): Eliminate this function, reinstating the older
12340         macro definition.
12341         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
12342         (df_reg_defined): Likewise.
12343         (df_find_use): Likewise.
12344         (df_reg_used): Likewise.
12345         (df_dump_insn_top): Strengthen param 1 from const_rtx to
12346         const rtx_insn *.
12347         (df_dump_insn_bottom): Likewise.
12348         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
12349         (df_insn_debug_regno): Likewise.
12350         (debug_df_insn): Likewise.
12351         (df_rd_simulate_one_insn): Likewise for param 2.
12352         (df_word_lr_simulate_defs): Likewise for param 1.
12353         (df_word_lr_simulate_uses): Likewise.
12354         (df_md_simulate_one_insn): Likewise for param 2.
12355         (df_simulate_find_noclobber_defs): Likewise for param 1.
12356         (df_simulate_find_defs): Likewise.
12357         (df_simulate_defs): Likewise.
12358         (df_simulate_uses): Likewise.
12359         (df_simulate_one_insn_backwards): Likewise for param 2.
12360         (df_simulate_one_insn_forwards): Likewise.
12361         (df_uses_create): Likewise for param 2.
12362         (df_insn_create_insn_record): Likewise for param 1.
12363         (df_insn_delete): Likewise.
12364         (df_insn_rescan): Likewise.
12365         (df_insn_rescan_debug_internal): Likewise.
12366         (df_insn_change_bb): Likewise.
12367         (df_notes_rescan): Likewise.
12368         * rtl.h (remove_death): Likewise for param 2.
12369         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
12370         const rtx_insn *.
12371         * sched-int.h (reemit_notes): Strengthen param from rtx to
12372         rtx_insn *.
12373         * valtrack.h (propagate_for_debug): Likewise for param 1.
12374
12375         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
12376         local "tmp_rtx" from const_rtx to const rtx_insn *.
12377         * combine.c (remove_death): Strengthen param "insn" from rtx to
12378         rtx_insn *.
12379         (move_deaths): Likewise for local "where_dead".
12380         * cse.c (delete_trivially_dead_insns): Introduce local
12381         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
12382         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
12383         rtx_insn *.
12384         (df_reg_defined): Likewise.
12385         (df_find_use): Likewise.
12386         (df_reg_used): Likewise.
12387         (df_dump_insn_problem_data): Strengthen param "insn" from
12388         const_rtx to const rtx_insn *.
12389         (df_dump_insn_top): Likewise.
12390         (df_dump_insn_bottom): Likewise.
12391         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
12392         (df_insn_debug_regno): Likewise.
12393         (debug_df_insn): Likewise.
12394         (DF_REF_INSN): Delete.
12395         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
12396         from rtx to rtx_insn *.
12397         (df_chain_insn_top_dump): Strengthen param "insn" from
12398         const_rtx to const rtx_insn *.
12399         (df_chain_insn_bottom_dump): Likewise.
12400         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
12401         rtx_insn *.
12402         (df_word_lr_simulate_uses): Likewise.
12403         (df_print_note): Likewise.
12404         (df_remove_dead_and_unused_notes): Likewise.
12405         (df_set_unused_notes_for_mw): Likewise.
12406         (df_set_dead_notes_for_mw): Likewise.
12407         (df_create_unused_note): Likewise.
12408         (df_simulate_find_defs): Likewise.
12409         (df_simulate_find_uses): Likewise.
12410         (df_simulate_find_noclobber_defs): Likewise.
12411         (df_simulate_defs): Likewise.
12412         (df_simulate_uses): Likewise.
12413         (df_simulate_one_insn_backwards): Likewise.
12414         (df_simulate_one_insn_forwards): Likewise.
12415         (df_md_simulate_one_insn): Likewise.
12416         * df-scan.c (df_uses_create): Likewise.
12417         (df_insn_create_insn_record): Likewise.
12418         (df_insn_delete): Likewise.
12419         (df_insn_rescan): Likewise.
12420         (df_insn_rescan_debug_internal): Likewise.
12421         (df_insn_change_bb): Likewise.
12422         (df_notes_rescan): Likewise.
12423         (df_refs_add_to_chains): Likewise.
12424         (df_insn_refs_verify): Likewise.
12425         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
12426         when invoking df_insn_delete.
12427         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
12428         (set_unique_reg_note): Add checked cast.
12429         * final.c (cleanup_subreg_operands): Likewise.
12430         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
12431         "insn" from rtx to rtx_insn *.
12432         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
12433         "last" from rtx to rtx_insn *.
12434         * ira-emit.c (change_regs_in_insn): New function.
12435         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
12436         Invoke change_regs_in_insn rather than change_regs.
12437         * ira.c (update_equiv_regs): Strengthen locals "insn",
12438         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
12439         for_each_rtx_in_insn rather than for_each_rtx.
12440         * recog.c (confirm_change_group): Add checked casts.
12441         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
12442         Add checked cast.
12443         (peep2_fill_buffer): Add checked cast.
12444         * rtlanal.c (remove_note): Likewise.
12445         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
12446         locals "next" "end" from rtx to rtx_insn *.
12447
12448 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12449
12450         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
12451         to rtx_insn *.
12452         (struct reg_use_data): Likewise for field "insn".
12453         (insn_cost): Likewise for param.
12454         (real_insn_for_shadow): Likewise for return type and param.
12455         (increase_insn_priority): Likewise for param 1.
12456         (debug_dependencies): Likewise for both params.
12457
12458         * haifa-sched.c (insn_delay): Likewise for param "insn".
12459         (real_insn_for_shadow): Likewise for return type and param "insn".
12460         (update_insn_after_change): Likewise for param "insn".
12461         (recompute_todo_spec): Likewise for param "next" and locals "pro",
12462         "other".
12463         (insn_cost): Likewise for param "insn".
12464         (increase_insn_priority): Likewise.
12465         (calculate_reg_deaths): Likewise.
12466         (setup_insn_reg_pressure_info): Likewise.
12467         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
12468         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
12469         (model_recompute): Likewise.
12470         (must_restore_pattern_p): Likewise for param "next".
12471         (model_excess_cost): Likewise for param "insn".
12472         (queue_remove): Likewise.
12473         (adjust_priority): Likewise for param "prev".
12474         (update_register_pressure): Likewise for param "insn".
12475         (setup_insn_max_reg_pressure): Likewise for local "insn".
12476         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
12477         (model_add_to_schedule): Likewise.
12478         (model_reset_queue_indices): Likewise for local "insn".
12479         (unschedule_insns_until): Strengthen local "recompute_vec" from
12480         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
12481         "con" from rtx to rtx_insn *.
12482         (restore_last_backtrack_point): Likewise for both locals "x". Add
12483         checked casts.
12484         (estimate_insn_tick): Likewise for param "insn".
12485         (commit_schedule): Likewise for params "prev_head", "tail" and
12486         local "x".
12487         (verify_shadows): Likewise for locals "i1", "i2".
12488         (dump_insn_stream): Likewise for params "head", "tail" and locals
12489         "next_tail", "insn".
12490         (schedule_block): Likewise for locals "insn", "x".  Add a checked
12491         cast.
12492         (fix_inter_tick): Likewise for params "head", "tail".
12493         (create_check_block_twin): Likewise for local "jump".
12494         (haifa_change_pattern): Likewise for param "insn".
12495         (haifa_speculate_insn): Likewise.
12496         (dump_new_block_header): Likewise for params "head", "tail".
12497         (fix_jump_move): Likewise for param "jump".
12498         (move_block_after_check): Likewise.
12499         (sched_init_insn_luid): Likewise for param "insn".
12500         (sched_init_luids): Likewise for local "insn".
12501         (insn_luid): Likewise for param "insn".
12502         (init_h_i_d): Likewise.
12503         (haifa_init_h_i_d): Likewise for local "insn".
12504         (haifa_init_insn): Likewise for param "insn".
12505         * sched-deps.c (add_dependence): Likewise for local "real_pro",
12506         "other".
12507         (create_insn_reg_use): Likewise for param "insn".
12508         (setup_insn_reg_uses): Likewise.  Add a checked cast.
12509         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
12510         "tail" from rtx to rtx_insn *.
12511         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
12512         "insn", "next_tail".
12513
12514 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12515
12516         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
12517         from rtx to rtx_insn *.
12518         (model_add_to_schedule): Likewise for locals "start", "end",
12519         "iter".
12520
12521 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12522
12523         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
12524         rtx_insn *.
12525         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
12526         "to" and locals "insn", "next", "copy".  Remove now-redundant
12527         checked cast.
12528
12529 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12530
12531         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
12532         rtx_insn * and param 4 from rtx * to rtx_insn **.
12533         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
12534         param 2 from rtx * to rtx_insn **.
12535
12536         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
12537         rtx_insn * and final param from rtx * to rtx_insn **.
12538
12539         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
12540         from rtx to rtx_insn *.
12541         (try_head_merge_bb): Likewise for both locals named "move_upto".
12542         * df-problems.c (can_move_insns_across): Likewise for params
12543         "from", "to", "across_from", "across_to" and locals "insn",
12544         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
12545         rtx_insn **.
12546         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
12547         from rtx to rtx_insn *.
12548         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
12549         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
12550         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
12551         rtx_insn *.
12552         (noce_try_abs): Likewise.
12553         (noce_get_condition): Likewise for param "jump".  Strengthen param
12554         "earliest" from rtx * to rtx_insn **.
12555         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
12556         rtx_insn *.
12557         (find_cond_trap): Likewise.
12558         (dead_or_predicable): Likewise for local "earliest".
12559         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
12560         checked cast.
12561         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
12562         and local "prev".  Strengthen param "earliest" from rtx * to
12563         rtx_insn **.
12564         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
12565         Strengthen param "earliest" from rtx * to rtx_insn **.
12566
12567 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12568
12569         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
12570         "to" and local "insn" from rtx to rtx_insn *.
12571
12572 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12573
12574         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
12575         from rtx to rtx_insn *.
12576         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
12577         (code_motion_path_driver): Likewise for local "last_insn".
12578         (simplify_changed_insns): Likewise for local "insn".
12579
12580 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12581
12582         * rtl.h (push_to_sequence): Strengthen param from rtx to
12583         rtx_insn *.
12584         (push_to_sequence2): Likewise for both params.
12585         (delete_insns_since): Likewise for param.
12586         (reorder_insns_nobb): Likewise for all three params.
12587         (set_new_first_and_last_insn): Likewise for both params.
12588
12589         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
12590         rtx_insn *.  Remove now-redundant cast.
12591         (set_last_insn): Likewise.
12592
12593         * builtins.c (expand_builtin_return): Strengthen local
12594         "call_fusage" from rtx to rtx_insn *.
12595         * cfgrtl.c (create_basic_block_structure): Likewise for local
12596         "after".
12597         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
12598         "first", "last" and local "insn".
12599         (delete_insns_since): Likewise for param "from".
12600         (reorder_insns_nobb): Likewise for params "from", "to", "after"
12601         and local "x".
12602         (push_to_sequence): Likewise for param "first" and local "last".
12603         (push_to_sequence2): Likewise for params "first" and "last".
12604         * lra.c (emit_add3_insn): Likewise for local "last".
12605         (lra_emit_add): Likewise.
12606         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
12607         "last_insn".
12608         (process_address_1): Likewise for locals "insn", last".
12609         * modulo-sched.c (ps_first_note): Likewise for return type.
12610         * optabs.c (expand_binop_directly): Likewise for param "last".
12611
12612 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12613
12614         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
12615         to rtx_insn*.
12616         * emit-rtl.c (get_last_insn_anywhere): Likewise.
12617
12618 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12619
12620         * function.h (struct sequence_stack): Strengthen fields "first"
12621         and "last" from rtx to rtx_insn *.
12622         (struct emit_status): Likewise for fields "x_first_insn" and
12623         "x_last_insn".
12624
12625         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
12626         (set_first_insn): Add checked cast.
12627         (get_last_insn): Remove now-redundant checked cast.
12628         (set_last_insn): Add checked cast.
12629
12630         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
12631         "saved_first" and "saved_last" from rtx to rtx_insn *.
12632
12633 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12634
12635         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
12636         (unlink_insn_chain): Strengthen both params from rtx to
12637         rtx_insn *.
12638
12639         * cfgrtl.c (cfg_layout_function_header): Likewise for this
12640         variable.
12641         (unlink_insn_chain): Likewise for params "first" and "last".
12642         Remove now-redundant checked cast.
12643         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
12644         (fixup_reorder_chain): Strengthen local "insn" from rtx to
12645         rtx_insn *.
12646         * emit-rtl.c (link_insn_into_chain): Likewise for all three
12647         params.
12648         (add_insn): Likewise for param "insn" and local "prev".
12649         (add_insn_after_nobb): Likewise for both params and local "next".
12650         (add_insn_before_nobb): Likewise for both params and local "prev".
12651         (add_insn_after): Rename param "after" to "uncast_after",
12652         introducing local "after" with another checked cast.
12653         (add_insn_before): Rename params "insn" and "before", giving them
12654         "uncast_" prefixes, adding the old names back using checked casts.
12655         (emit_note_after): Likewise for param "after".
12656         (emit_note_before): Likewise for param "before".
12657         (emit_label): Add a checked cast.
12658
12659 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12660
12661         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
12662         "insn" from rtx to rtx_insn *.
12663
12664         * cselib.c (cselib_record_sets_hook): Likewise.
12665
12666         * var-tracking.c (add_with_sets): Likewise, renaming back from
12667         "uncast_insn" to "insn" and eliminating the checked cast from rtx
12668         to rtx_insn *.
12669
12670 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12671
12672         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
12673         and "header_" from rtx to rtx_insn *.
12674         (struct basic_block_d): Likewise for field "head_" within "x"
12675         field of union basic_block_il_dependent.
12676         (BB_HEAD): Drop function...
12677         (SET_BB_HEAD): ...and this function in favor of...
12678         (BB_HEAD): ...reinstate macro.
12679         (BB_END): Drop function...
12680         (SET_BB_END): ...and this function in favor of...
12681         (BB_END): ...reinstate macro.
12682         (BB_HEADER): Drop function...
12683         (SET_BB_HEADER): ...and this function in favor of...
12684         (BB_HEADER): ...reinstate macro.
12685
12686         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
12687         (fix_crossing_unconditional_branches): Likewise.
12688         * caller-save.c (save_call_clobbered_regs): Likewise.
12689         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
12690         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
12691         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12692         (merge_blocks_move_successor_nojumps): Likewise.
12693         (outgoing_edges_match): Update use of for_each_rtx to
12694         for_each_rtx_in_insn.
12695         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
12696         (expand_gimple_cond): Likewise.
12697         (expand_gimple_tailcall): Likewise.
12698         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
12699         SET_BB_END.
12700         (construct_exit_block): Drop use of SET_BB_END.
12701         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
12702         rtx_insn *.
12703         (delete_insn): Rename param "insn" to "uncast_insn", introducing
12704         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
12705         SET_BB_HEAD and SET_BB_END.
12706         (create_basic_block_structure): Drop use of SET_BB_HEAD and
12707         SET_BB_END.
12708         (rtl_delete_block): Drop use of SET_BB_HEAD.
12709         (rtl_split_block): Drop use of SET_BB_END.
12710         (emit_nop_for_unique_locus_between): Likewise.
12711         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
12712         (block_label): Drop use of SET_BB_HEAD.
12713         (fixup_abnormal_edges): Drop use of SET_BB_END.
12714         (record_effective_endpoints): Drop use of SET_BB_HEADER.
12715         (relink_block_chain): Likewise.
12716         (fixup_reorder_chain): Drop use of SET_BB_END.
12717         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
12718         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
12719         rtx_insn **.  Drop use of SET_BB_HEADER.
12720         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
12721         SET_BB_HEAD.
12722         (BB_HEAD): Delete this function.
12723         (SET_BB_HEAD): Likewise.
12724         (BB_END): Likewise.
12725         (SET_BB_END): Likewise.
12726         (BB_HEADER): Likewise.
12727         (SET_BB_HEADER): Likewise.
12728         * emit-rtl.c (add_insn_after):  Rename param "insn" to
12729         "uncast_insn", adding a new local "insn" and a checked cast to
12730         rtx_insn *.  Drop use of SET_BB_END.
12731         (remove_insn): Strengthen locals "next" and "prev" from rtx to
12732         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
12733         (reorder_insns): Drop use of SET_BB_END.
12734         (emit_insn_after_1): Strengthen param "first" and locals "last",
12735         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
12736         (emit_pattern_after_noloc): Add checked cast.
12737         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
12738         (restore_other_notes): Likewise.
12739         (move_insn): Likewise.
12740         (sched_extend_bb): Likewise.
12741         (fix_jump_move): Likewise.
12742         * ifcvt.c (noce_process_if_block): Likewise.
12743         (dead_or_predicable): Likewise.
12744         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
12745         * reg-stack.c (change_stack): Drop use of SET_BB_END.
12746         * sel-sched-ir.c (sel_move_insn): Likewise.
12747         * sel-sched.c (move_nop_to_previous_block): Likewise.
12748
12749         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
12750         SET_BB_END.
12751         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12752
12753 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12754
12755         * basic-block.h (create_basic_block_structure): Strengthen params
12756         1 "head" and 2 "end" from rtx to rtx_insn *.
12757         * cfgrtl.c (create_basic_block_structure): Likewise.
12758         (rtl_create_basic_block): Update casts from void * to rtx to
12759         rtx_insn *, so that we can pass them as rtx_insn * to
12760         create_basic_block_structure.
12761         * sel-sched-ir.c (sel_create_basic_block): Likewise.
12762
12763 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12764
12765         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
12766         rtx_insn **.
12767         (check_for_inc_dec): Strengthen param "insn" from rtx to
12768         rtx_insn *.
12769
12770         * cselib.h (cselib_process_insn): Likewise.
12771
12772         * cselib.c (cselib_record_sets): Likewise.
12773         (cselib_process_insn): Likewise.
12774
12775         * dse.c (struct insn_info): Likewise for field "insn".
12776         (check_for_inc_dec_1): Likewise for local "insn".
12777         (check_for_inc_dec): Likewise for param "insn".
12778         (scan_insn): Likewise.
12779         (dse_step1): Likewise for local "insn".
12780
12781         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
12782         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
12783
12784 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12785
12786         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
12787         from rtx to rtx_insn *.
12788         (DEP_PRO): Delete this function and...
12789         (SET_DEP_PRO): ...this function in favor of...
12790         (DEP_PRO): ...reinstate this macro.
12791         (DEP_CON): Delete this function and...
12792         (SET_DEP_CON): ...this function in favor of...
12793         (DEP_CON): ...reinstate this old macro.
12794         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
12795         (init_dep): Likewise.
12796         (set_priorities): Likewise for both params.
12797         (sd_copy_back_deps): Likewise for params 1 and 2.
12798
12799         * haifa-sched.c (priority): Likewise for param "insn" and local
12800         "next".
12801         (set_priorities): Likewise for params "head" and "tail" and local
12802         "insn".
12803         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
12804         local "consumer".
12805         (add_to_speculative_block): Add a checked cast.
12806         (create_check_block_twin): Drop use of SET_DEP_CON.
12807         (add_jump_dependencies): Strengthen params "insn" and "jump" from
12808         rtx to rtx_insn *.
12809
12810         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
12811         Drop use of SET_DEP_PRO
12812         (init_dep): Strengthen params "pro" and "con" from rtx to
12813         rtx_insn *.
12814         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
12815         use of SET_DEP_CON.
12816         (DEP_PRO): Delete.
12817         (DEP_CON): Delete.
12818         (SET_DEP_PRO): Delete.
12819         (SET_DEP_CON): Delete.
12820
12821 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12822
12823         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
12824         from rtx to rtx_insn *.
12825         (VINSN_INSN_RTX): Eliminate rvalue function and...
12826         (SET_VINSN_INSN): ...lvalue function in favor of...
12827         (VINSN_INSN_RTX): reinstate this old macro.
12828
12829         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
12830         in favor of VINSN_INSN_RTX.
12831         (VINSN_INSN_RTX): Delete this function.
12832         (SET_VINSN_INSN_RTX): Likewise.
12833
12834 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12835
12836         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
12837         (BND_TO): Delete this function and...
12838         (SET_BND_TO): ...this functions in favor of...
12839         (BND_TO): ...reinstating this macro.
12840         (struct _fence): Strengthen field "executing_insns" from
12841         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
12842         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
12843         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
12844         and param "insn" from rtx to insn_t.
12845         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
12846         rtx_insn *.
12847
12848         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
12849         vec<rtx_insn *> .
12850         (rtx_vec_t): Likewise.
12851         (struct sched_deps_info_def): Strengthen param of "start_insn"
12852         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
12853         "note_mem_dep" callback and first param of "note_dep" callback.
12854
12855         * haifa-sched.c (add_to_speculative_block): Strengthen param
12856         "insn" from rtx to rtx_insn *.
12857         (clear_priorities): Likewise.
12858         (calc_priorities): Likewise for local "insn".
12859
12860         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
12861         Remove redundant checked cast.
12862         (haifa_note_mem_dep): Likewise for param "pending_insn".
12863         (haifa_note_dep): Likewise for param "elem".
12864         (note_mem_dep): Likewise for param "e".
12865         (sched_analyze_1): Add checked casts.
12866         (sched_analyze_2): Likewise.
12867
12868         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
12869         from rtx to rtx_insn *.
12870         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
12871         from vec<rtx> * to vec<rtx_insn *> *.
12872
12873         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
12874         scaffolding.
12875         (flist_add): Strengthen param "executing_insns" from
12876         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
12877         (advance_deps_context): Remove now-redundant checked cast.
12878         (init_fences): Replace uses of NULL_RTX with NULL.
12879         (merge_fences): Strengthen params "last_scheduled_insn" and
12880         "sched_next" from rtx to rtx_insn * and "executing_insns" from
12881         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
12882         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
12883         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
12884         an instruction, rather than doing double-duty as a pattern.
12885         (return_nop_to_pool): Update for change of insn_t.
12886         (deps_init_id): Remove now-redundant checked cast.
12887         (struct sched_scan_info_def): Strengthen param of "init_insn"
12888         callback from rtx to insn_t.
12889         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
12890         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
12891         NULL.
12892         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
12893         "end" from rtx to rtx_insn *.
12894         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
12895         (rtx insn_rtx, bool force_unique_p)
12896         (BND_TO): Delete function.
12897         (SET_BND_TO): Delete function.
12898
12899         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
12900         rtx to rtx_insn *.
12901         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
12902         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
12903         rtx to rtx_insn *.
12904         (undo_transformations): Likewise for param "insn".
12905         (update_liveness_on_insn): Likewise.
12906         (compute_live_below_insn): Likewise for param "insn" and local
12907         "succ".
12908         (update_data_sets): Likewise for param "insn".
12909         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
12910         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
12911         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
12912         rtx_insn *.
12913         (move_cond_jump): Likewise for param "insn".
12914         (move_cond_jump): Drop use of SET_BND_TO.
12915         (compute_av_set_on_boundaries): Likewise.
12916         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
12917         (update_and_record_unavailable_insns): Strengthen local "bb_end"
12918         from rtx to rtx_insn *.
12919         (maybe_emit_renaming_copy): Likewise for param "insn".
12920         (maybe_emit_speculative_check): Likewise.
12921         (handle_emitting_transformations): Likewise.
12922         (remove_insn_from_stream): Likewise.
12923         (code_motion_process_successors): Strengthen local "succ" from rtx
12924         to insn_t.
12925
12926 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12927
12928         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
12929         ilist_t, not _xlist_t;
12930         (ILIST_INSN): Define in terms of new union field "insn".
12931         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
12932         _XLIST_NEXT.
12933         (struct _list_node): Add new field "insn" to the union, of type
12934         insn_t.
12935         (ilist_add): Replace macro with an inline function, requiring an
12936         insn_t.
12937         (ilist_remove): Define this macro directly in terms of
12938         _list_remove, rather than indirectly via _xlist_remove.
12939         (ilist_clear): Likewise, in terms of _list_clear rather than
12940         _xlist_clear.
12941         (ilist_is_in_p): Replace macro with an inline function, requiring
12942         an insn_t.
12943         (_list_iter_cond_insn): New function.
12944         (ilist_iter_remove): Define this macro directly in terms of
12945         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
12946         (ilist_iterator): Define directly in terms of _list_iterator
12947         rather than indirectly through _xlist_iterator.
12948         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
12949         than in terms of _FOR_EACH_X.
12950         (FOR_EACH_INSN_1): Likewise.
12951
12952 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
12953
12954         PR target/60606
12955         PR target/61330
12956         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
12957         DECL_HARD_REGISTER and return for invalid register specifications.
12958         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
12959         DECL_HARD_REGISTER, call expand_one_error_var.
12960         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
12961         CC_REGNUM with non-MODE_CC modes.
12962         (arm_regno_class): Return NO_REGS for PC_REGNUM.
12963
12964 2014-08-26  Marek Polacek  <polacek@redhat.com>
12965
12966         PR c/61271
12967         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
12968
12969 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
12970
12971         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
12972         qi cost; add di cost.
12973         (cortexa57_addrcost_table): Likewise.
12974
12975 2014-08-26  Marek Polacek  <polacek@redhat.com>
12976
12977         PR c/61271
12978         * expr.c (is_aligning_offset): Remove logical not.
12979
12980 2014-08-26  Marek Polacek  <polacek@redhat.com>
12981
12982         PR c/61271
12983         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
12984         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
12985
12986 2014-08-26  Richard Biener  <rguenther@suse.de>
12987
12988         PR tree-optimization/62175
12989         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12990         expand possibly trapping operations.
12991
12992 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
12993
12994         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
12995         "insn" from rtx to rtx_insn *.
12996         (permute_load): Likewise for param "insn".
12997         (permute_store): Likewise.
12998         (handle_special_swappables): Likewise for local "insn".
12999         (replace_swap_with_copy): Likewise for locals "insn" and
13000         "new_insn".
13001         (rs6000_analyze_swaps): Likewise for local "insn".
13002
13003 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13004
13005         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
13006         to rtx_insn *.
13007
13008 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13009
13010         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
13011         "note_list" from rtx to rtx_insn *.
13012         (BB_NOTE_LIST): Replace this function and...
13013         (SET_BB_NOTE_LIST): ...this function with...
13014         (BB_NOTE_LIST): ...the former macro implementation.
13015
13016         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
13017         local "from_start" from rtx to rtx_insn *.  Strengthen param
13018         "to_endp" from rtx * to rtx_insn **.
13019
13020         * haifa-sched.c (concat_note_lists): Likewise.
13021         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
13022         BB_NOTE_LIST.
13023         (sel_restore_notes): Likewise.
13024         (move_bb_info): Likewise.
13025         (BB_NOTE_LIST): Delete this function.
13026         (SET_BB_NOTE_LIST): Delete this function.
13027         * sel-sched.c (create_block_for_bookkeeping): Eliminate
13028         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
13029
13030 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13031
13032         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
13033         from rtx * to rtx_insn **.
13034         (reorder2): Likewise.
13035         (dependencies_evaluation_hook): Strengthen params "head", "tail"
13036         from rtx to rtx_insn *.
13037
13038         * doc/tm.texi: Update mechanically for above change to target.def.
13039
13040         * sched-int.h (note_list): Strengthen this variable from rtx to
13041         rtx_insn *.
13042         (remove_notes): Likewise for both params.
13043         (restore_other_notes): Likewise for return type and first param.
13044         (struct ready_list): Strengthen field "vec" from rtx * to
13045         rtx_insn **.
13046         (struct dep_replacement): Strenghten field "insn" from rtx to
13047         rtx_insn *.
13048         (struct deps_desc): Likewise for fields "last_debug_insn",
13049         "last_args_size".
13050         (struct haifa_sched_info): Likewise for callback field
13051         "can_schedule_ready_p"'s param, for first param of "new_ready"
13052         callback field, for both params of "rank" callback field, for
13053         first field of "print_insn" callback field (with a const), for
13054         both params of "contributes_to_priority" callback, for param
13055         of "insn_finishes_block_p" callback, for fields "prev_head",
13056         "next_tail", "head", "tail", for first param of "add_remove_insn"
13057         callback, for first param of "begin_schedule_ready" callback, for
13058         both params of "begin_move_insn" callback, and for second param
13059         of "advance_target_bb" callback.
13060         (add_dependence): Likewise for params 1 and 2.
13061         (sched_analyze): Likewise for params 2 and 3.
13062         (deps_analyze_insn): Likewise for param 2.
13063         (ready_element): Likewise for return type.
13064         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
13065         (try_ready): Strenghten param from rtx to rtx_insn *.
13066         (sched_emit_insn): Likewise for return type.
13067         (record_delay_slot_pair): Likewise for params 1 and 2.
13068         (add_delay_dependencies): Likewise for param.
13069         (contributes_to_priority): Likewise for both params.
13070         (find_modifiable_mems): Likewise.
13071
13072         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
13073         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
13074         "first_older_only_insn" from rtx to rtx_insn *.
13075         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
13076         rtx_insn **.
13077
13078         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
13079         "last_scheduled_iter0" from rtx to rtx_insn *.
13080         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
13081         (c6x_sched_reorder_1): Strengthen param "ready" and locals
13082         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
13083         "insn" from rtx to rtx_insn *.
13084         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
13085         rtx_insn **.
13086         (c6x_sched_reorder2): Strengthen param "ready" and locals
13087         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
13088         "insn" from rtx to rtx_insn *.
13089         (c6x_variable_issue):  Add a checked cast when assigning from insn
13090         to ss.last_scheduled_iter0.
13091         (split_delayed_branch): Strengthen param "insn" and local "i1"
13092         from rtx to rtx_insn *.
13093         (split_delayed_nonbranch): Likewise.
13094         (undo_split_delayed_nonbranch): Likewise for local "insn".
13095         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
13096         "entry_after", "end_packet", "head_insn", "tail_insn",
13097         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
13098         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
13099         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
13100         but add a checked cast on loop->start_label.  Consolidate calls to
13101         avoid assigning result of gen_spkernel to "insn", now an
13102         rtx_insn *.
13103
13104         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
13105         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
13106         rtx to rtx_insn *.
13107         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
13108         rtx_insn **.  Strengthen locals "top", "next" from rtx to
13109         rtx_insn *.
13110         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
13111         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
13112         (add_parameter_dependencies): Strengthen params "call", "head" and
13113         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
13114         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
13115         (add_dependee_for_func_arg): Likewise for param "arg" and local
13116         "insn".
13117         (ix86_dependencies_evaluation_hook): Likewise for params "head",
13118         "tail" and locals "insn", "first_arg".
13119
13120         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
13121         for params "head", "tail" and locals "insn", "next", "next_tail".
13122         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
13123         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
13124         "insn", "lowest", "highest" from rtx to rtx_insn *.
13125         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
13126         rtx_insn **.
13127         (ia64_sched_reorder2): Likewise.
13128
13129         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
13130         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
13131         from rtx * to rtx_insn **.
13132         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
13133         rtx_insn **.
13134         (mep_print_sched_insn): Strengthen param "insn" from rtx to
13135         rtx_insn *.
13136         (mep_sched_reorder): Strengthen param "ready" from rtx * to
13137         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
13138         to rtx_insn *.
13139
13140         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
13141         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
13142         to rtx_insn *.
13143         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
13144         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
13145         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
13146         rtx_insn **.
13147         (vr4130_reorder): Likewise.
13148         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
13149         rtx to rtx_insn *.
13150         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
13151         rtx_insn **.
13152         (mips_sched_reorder): Likewise.
13153         (mips_sched_reorder2): Likewise.
13154
13155         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
13156
13157         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
13158         Strengthen local "tmp" from rtx to rtx_insn *.
13159         (rs6000_sched_reorder2): Likewise.
13160
13161         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
13162         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
13163         (s390_sched_reorder): Strengthen param "ready" from rtx * to
13164         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
13165
13166         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
13167         "tmp2" from rtx to rtx_insn *.
13168         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
13169         Strengthen local "insn" from rtx to rtx_insn *.
13170         (ready_reorder): Strengthen param "ready" from rtx * to
13171         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
13172         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
13173         (sh_reorder2): Likewise.
13174
13175         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
13176         local "insn" from rtx to rtx_insn *.
13177
13178         * haifa-sched.c (note_list): Strengthen this variable from rtx to
13179         rtx_insn *.
13180         (scheduled_insns): Strengthen this variable from vec<rtx> to
13181         vec<rtx_insn *>.
13182         (set_modulo_params): Likewise for locals "i1", "i2".
13183         (record_delay_slot_pair): Likewise for params "i1", "i2".
13184         (add_delay_dependencies): Likewise for param "insn".
13185         (cond_clobbered_p): Likewise.
13186         (recompute_todo_spec): Likewise for local "prev".
13187         (last_scheduled_insn): Likewise for this variable.
13188         (nonscheduled_insns_begin): Likewise.
13189         (model_set_excess_costs): Strengthen param "insns" from rtx * to
13190         rtx_insn **.
13191         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
13192         rtx_insn *.
13193         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
13194         Strengthen local "insn" from rtx to rtx_insn *.
13195         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
13196         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
13197         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
13198         (ready_remove_first): Likewise for return type and local "t".
13199         (ready_element): Likewise for return type.
13200         (ready_remove): Likewise for return type and local "t".
13201         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
13202         (check_clobbered_conditions): Strengthen local "x" from rtx to
13203         rtx_insn *, adding a checked cast.
13204         (schedule_insn): Likewise for param "insn".
13205         (remove_notes): Likewise for params "head", "tail" and locals
13206         "next_tail", "insn", "next".
13207         (struct haifa_saved_data): Likewise for fields
13208         "last_scheduled_insn", "nonscheduled_insns_begin".
13209         (save_backtrack_point): Update for change to field "vec" of
13210         struct ready_list.
13211         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
13212         rtx_insn **.
13213         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
13214         from rtx to rtx_insn *
13215         (resolve_dependencies): Strengthen param "insn" from rtx to
13216         rtx_insn *
13217         (restore_other_notes): Likewise for return type, for param "head"
13218         and local "note_head".
13219         (undo_all_replacements): Likewise for local "insn".
13220         (first_nonscheduled_insn): Likewise for return type and local "insn".
13221         (queue_to_ready): Likewise for local "insn", adding checked casts.
13222         (early_queue_to_ready): Likewise for local "insn".
13223         (debug_ready_list_1): Strengthen local "p" from rtx * to
13224         rtx_insn **.
13225         (move_insn): Strengthen param "insn" and local "note" from rtx to
13226         rtx_insn *
13227         (insn_finishes_cycle_p): Likewise for param "insn".
13228         (max_issue): Likewise for local "insn".
13229         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
13230         to rtx_insn **.
13231         (commit_schedule): Strengthen param "prev_head" and local "insn"
13232         from rtx to rtx_insn *
13233         (prune_ready_list): Likewise for local "insn".
13234         (schedule_block): Likewise for locals "prev_head", "head", "tail",
13235         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
13236         (set_priorities): Likewise for local "prev_head".
13237         (try_ready): Likewise for param "next".
13238         (fix_tick_ready): Likewise.
13239         (change_queue_index): Likewise.
13240         (sched_extend_ready_list): Update for change to field "vec" of
13241         struct ready_list.
13242         (generate_recovery_code): Strengthen param "insn" from rtx to
13243         rtx_insn *.
13244         (begin_speculative_block): Likewise.
13245         (create_check_block_twin): Likewise for param "insn" and locals
13246         "label", "check", "twin".  Introduce local "check_pat" to avoid
13247         "check" being used as a plain rtx before being used as an insn.
13248         (fix_recovery_deps): Add a checked cast to rtx_insn * when
13249         extracting elements from ready_list.
13250         (sched_remove_insn): Strengthen param "insn" from rtx to
13251         rtx_insn *.
13252         (sched_emit_insn): Likewise for return type.
13253         (ready_remove_first_dispatch): Likewise for return type and local
13254         "insn".
13255
13256         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
13257
13258         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
13259         const rtx_insn *.
13260
13261         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
13262         from rtx to rtx_insn *.
13263         (add_dependence_list): Likewise for param "insn".  Add a checked
13264         cast.
13265         (add_dependence_list_and_free): Strengthen param "insn" from rtx
13266         to rtx_insn *.  Strengthen param "list_p" from rtx * to
13267         rtx_insn **.
13268         (chain_to_prev_insn): Strengthen param "insn" and locals
13269         "prec_nonnote", "i" from rtx to rtx_insn *.
13270         (flush_pending_lists): Likewise for param "insn".
13271         (cur_insn): Likewise for this variable.
13272         (haifa_start_insn): Add a checked cast.
13273         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
13274         (sched_analyze_reg): Likewise for param "insn".
13275         (sched_analyze_1): Likewise.
13276         (sched_analyze_2): Likewise.  Add checked casts.
13277         (sched_analyze_insn): Likewise.  Also for local "prev".
13278         (deps_analyze_insn): Likewise for param "insn".
13279         (sched_analyze): Likewise for params "head", "tail" and local "insn".
13280         (add_dependence_1): Likewise for params "insn", "elem".
13281         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
13282         (parse_add_or_inc): Likewise for param "insn".
13283         (find_inc): Likewise for local "inc_cand".
13284         (find_modifiable_mems): Likewise for params "head", "tail" and
13285         locals "insn", "next_tail".
13286
13287         * sched-ebb.c (init_ready_list): Likewise for local "insn".
13288         (begin_schedule_ready): Likewise for param "insn".
13289         (begin_move_insn): Likewise for params "insn" and "last".
13290         (ebb_print_insn): Strengthen param "insn" from const_rtx to
13291         const rtx_insn *.
13292         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
13293         (ebb_contributes_to_priority): Likewise for params "next", "insn".
13294         (ebb_add_remove_insn): Likewise for param "insn".
13295         (advance_target_bb): Likewise.
13296
13297         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
13298         "insn".
13299         (check_live): Likewise for param "insn".
13300         (init_ready_list): Likewise for local "insn".
13301         (can_schedule_ready_p): Likewise for param "insn".
13302         (begin_schedule_ready): Likewise.
13303         (new_ready): Likewise for param "next".
13304         (rgn_print_insn): Likewise for param "insn".
13305         (rgn_rank): Likewise for params "insn1", "insn2".
13306         (contributes_to_priority): Likewise for params "next", "insn".
13307         (rgn_insn_finishes_block_p): Likewise for param "insn".
13308         (add_branch_dependences): Likewise for params "head", "tail" and
13309         locals "insn", "last".
13310         (rgn_add_remove_insn): Likewise for param "insn".
13311         (advance_target_bb): Likewise.
13312
13313         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
13314         const_rtx to const rtx_insn *.
13315
13316         * sel-sched-dump.h (sel_print_insn): Likewise.
13317
13318         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
13319         (deps_init_id): Likewise.
13320
13321         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
13322         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
13323         rtx_insn **.
13324
13325 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13326
13327         * output.h (final_start_function): Strengthen param 1 from rtx to
13328         rtx_insn *.
13329
13330         * final.c (final_start_function): Likewise, renaming back from
13331         "uncast_first" to "first", and dropping the checked cast from rtx
13332         to rtx_insn *.
13333
13334 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13335
13336         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
13337         * final.c (final): Likewise.  Rename param back from
13338         "uncast_first" to "first" and eliminate the checked cast from rtx
13339         to rtx_insn *.
13340
13341 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13342
13343         * output.h (shorten_branches): Strengthen param from rtx to
13344         rtx_insn *.
13345
13346         * final.c (shorten_branches): Likewise, renaming param back from
13347         "uncast_first" to "first", and dropping the checked cast from rtx
13348         to rtx_insn *.
13349
13350         * genattr.c (gen_attr): Likewise when writing out the prototype of
13351         shorten_branches.
13352
13353 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13354
13355         * sched-int.h (struct haifa_sched_info): Strengthen fields
13356         "prev_head" and "next_tail" from rtx to rtx_insn *.
13357
13358 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13359
13360         * rtl.h (rtx_jump_table_data::get_labels): New method.
13361         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
13362         with use of the new rtx_jump_table_data::get_labels method.
13363         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
13364         to rtx_jump_table_data *.  Simplify by using get_labels method.
13365         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
13366         a dyn_cast, introducing local "table", using it to replace
13367         label-lookup logic with a get_labels method call.
13368         (patch_jump_insn): Simplify using get_labels method.
13369         * dwarf2cfi.c (create_trace_edges): Likewise.
13370         * rtlanal.c (label_is_jump_target_p): Likewise.
13371
13372 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13373
13374         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
13375         to rtx_insn *.
13376
13377         * emit-rtl.c (unshare_all_rtl_1): Likewise.
13378         (unshare_all_rtl_again): Likewise, also for local "p".
13379
13380 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13381
13382         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
13383         to rtx_insn *.
13384         * cfgrtl.c (delete_insn_and_edges): Likewise.
13385
13386 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13387
13388         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
13389         from rtx to rtx_insn *.
13390
13391         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
13392
13393 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13394
13395         * function.c (thread_prologue_and_epilogue_insns): Likewise for
13396         locals "returnjump", "epilogue_end", "insn", "next".
13397
13398         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
13399         "returnjump" from rtx * to rtx_insn **.
13400         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
13401
13402 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13403
13404         * basic-block.h (struct edge_def). Strengthen "r" within
13405         union edge_def_insns from rtx to rtx_insn *.
13406
13407         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
13408         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
13409         rtx_insn *.
13410         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
13411         from rtx to rtx_insn *.
13412         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
13413         rtx_insn *.
13414         * postreload-gcse.c (reg_killed_on_edge): Likewise.
13415         (reg_used_on_edge): Likewise.
13416         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
13417         (gt_pch_nx): New overload for rtx_insn *&.
13418         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
13419         from rtx to rtx_insn *.
13420
13421 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13422
13423         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
13424         from rtx to rtx_insn *.
13425         (BB_FOOTER): Replace function with access macro.
13426         (SET_BB_FOOTER): Delete.
13427
13428         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
13429         with BB_FOOTER.
13430         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13431         (emit_barrier_after_bb): Likewise.
13432         (record_effective_endpoints): Likewise.
13433         (relink_block_chain): Likewise.
13434         (fixup_fallthru_exit_predecessor): Likewise.
13435         (cfg_layout_duplicate_bb): Likewise.
13436         (cfg_layout_split_block): Likewise.
13437         (cfg_layout_delete_block): Likewise.
13438         (cfg_layout_merge_blocks): Likewise.
13439         (BB_FOOTER): Delete function.
13440         (SET_BB_FOOTER): Delete function.
13441         * combine.c (update_cfg_for_uncondjump): Replace uses of
13442         SET_BB_FOOTER with BB_FOOTER.
13443
13444 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13445
13446         * except.h (struct eh_landing_pad_d): Strengthen field
13447         "landing_pad" from rtx to rtx_code_label *.
13448
13449         * except.c (sjlj_emit_dispatch_table): Likewise for param
13450         "dispatch_label"
13451         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
13452
13453 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13454
13455         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
13456         first param from rtx to rtx_insn *.
13457         * config/xtensa/xtensa.c (struct machine_function): Likewise for
13458         field "set_frame_ptr_insn".
13459         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
13460         "csend" from rtx to rtx_code_label *.
13461         (xtensa_expand_atomic): Likewise for local "csloop".
13462         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
13463         rtx_insn *.
13464         (xtensa_call_tls_desc): Likewise for return type and locals
13465         "call_insn", "insns".
13466         (xtensa_legitimize_tls_address): Likewise for local "insns".
13467         (xtensa_expand_prologue): Likewise for locals "insn", "first".
13468
13469 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13470
13471         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
13472         first param from rtx to rtx_insn *.
13473         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
13474         "insn".
13475
13476 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13477
13478         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
13479         Strengthen param 1 from rtx to rtx_insn *.
13480         (tilepro_output_cbranch): Likewise.
13481         (tilepro_adjust_insn_length): Likewise.
13482         (tilepro_final_prescan_insn): Likewise for sole param.
13483
13484         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
13485         Likewise for local "last".
13486         (cbranch_predicted_p): Likewise for param "insn".
13487         (tilepro_output_simple_cbranch_with_opcode): Likewise.
13488         (tilepro_output_cbranch_with_opcode): Likewise.
13489         (tilepro_output_cbranch): Likewise.
13490         (frame_emit_load): Likewise for return type and locals "seq",
13491         "insn".
13492         (emit_sp_adjust): Likewise for return type and local "insn".
13493         (tilepro_expand_epilogue): Likewise for locals "last_insn",
13494         "insn".
13495         (tilepro_adjust_insn_length): Likewise for param "insn".
13496         (next_insn_to_bundle): Likewise for return type and params
13497         "r", "end".
13498         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
13499         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
13500         local "new_insns".
13501         (match_addli_pcrel): Likewise for param "insn".
13502         (replace_addli_pcrel): Likewise.
13503         (match_auli_pcrel): Likewise.
13504         (replace_auli_pcrel): Likewise.
13505         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
13506         "next_insn".
13507         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
13508         "queue", "next_queue", "prev".
13509         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
13510         (tilepro_final_prescan_insn): Likewise for param "insn".
13511
13512 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13513
13514         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
13515         Strengthen param 1 from rtx to rtx_insn *.
13516         (tilegx_output_cbranch): Likewise.
13517         (tilegx_adjust_insn_length): Likewise.
13518         (tilegx_final_prescan_insn): Likewise for sole param.
13519
13520         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
13521         or local "last".
13522         (cbranch_predicted_p): Likewise for param "insn".
13523         (tilegx_output_simple_cbranch_with_opcode): Likewise.
13524         (tilegx_output_cbranch_with_opcode): Likewise.
13525         (tilegx_output_cbranch): Likewise.
13526         (frame_emit_load): Likewise for return type.
13527         (set_frame_related_p): Likewise for locals "seq", "insn".
13528         (emit_sp_adjust): Likewise for return type, and for local "insn".
13529         Introduce local "pat" for use in place of "insn" where the latter
13530         isn't an instruction.
13531         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
13532         from rtx to rtx_insn *.
13533         (tilegx_adjust_insn_length): Likewise for param "insn".
13534         (next_insn_to_bundle): Likewise for return type and params "r" and
13535         "end".
13536         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
13537         "end".
13538         (replace_insns): Likewise for params "old_insn", "new_insns".
13539         (replace_mov_pcrel_step1): Likewise for param "insn" and local
13540         "new_insns".
13541         (replace_mov_pcrel_step2): Likewise.
13542         (replace_mov_pcrel_step3): Likewise.
13543         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
13544         "next_insn".
13545         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
13546         "queue", "next_queue", "prev".
13547         (tilegx_output_mi_thunk): Likewise for local "insn".
13548         (tilegx_final_prescan_insn): Likewise for param "insn".
13549
13550 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13551
13552         * config/spu/spu.c (frame_emit_store): Strengthen return type from
13553         rtx to rtx_insn *.
13554         (frame_emit_load): Likewise.
13555         (frame_emit_add_imm): Likewise, also for local "insn".
13556         (spu_expand_prologue): Likewise for local "insn".
13557         (struct spu_bb_info): Likewise for field "prop_jump".
13558         (emit_nop_for_insn): Likewise for param "insn" and local
13559         "new_insn".
13560         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
13561         "hbr_insn".
13562         (spu_emit_branch_hint): Likewise for params "before", "branch" and
13563         locals "hint", "insn".
13564         (get_branch_target): Likewise for param "branch".
13565         (insn_clobbers_hbr): Likewise for param "insn".
13566         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
13567         locals "insn", "before_4", "before_16".
13568         (insert_hbrp): Likewise for local "insn".
13569         (spu_machine_dependent_reorg): Likewise for locals "branch",
13570         "insn", "next", "bbend".
13571         (uses_ls_unit): Likewise for param "insn".
13572         (get_pipe): Likewise.
13573         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
13574         introducing a checked cast.
13575         (spu_sched_adjust_cost): Likewise for params "insn" and
13576         "dep_insn".
13577         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
13578         (spu_sms_res_mii): Likewise.
13579
13580 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13581
13582         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
13583         from rtx to rtx_insn *.
13584         (output_cbranch): Likewise for param 6.
13585         (output_return): Likewise for param 1.
13586         (output_sibcall): Likewise.
13587         (output_v8plus_shift): Likewise.
13588         (output_v8plus_mult): Likewise.
13589         (output_v9branch): Likewise for param 7.
13590         (output_cbcond):  Likewise for param 3.
13591
13592         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
13593         for local "insn".
13594         (sparc_legitimize_pic_address): Likewise.
13595         (sparc_emit_call_insn): Likewise.
13596         (emit_save_or_restore_regs): Likewise.
13597         (emit_window_save): Likewise for return type and local "insn".
13598         (sparc_expand_prologue): Likewise for local "insn".
13599         (sparc_flat_expand_prologue): Likewise.
13600         (output_return): Likewise for param "insn".
13601         (output_sibcall): Likewise for param "insn" and local "delay".
13602         (output_ubranch): Likewise for param "insn".
13603         (output_cbranch): Likewise.
13604         (output_cbcond): Likewise.
13605         (output_v9branch): Likewise.
13606         (output_v8plus_shift): Likewise.
13607         (sparc_output_mi_thunk): Likewise for local "insn".
13608         (get_some_local_dynamic_name): Likewise.
13609         (output_v8plus_mult): Likewise for param "insn".
13610
13611 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13612
13613         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
13614         from rtx to rtx_insn *.
13615         (output_branchy_insn): Likewise for param 3.
13616         (output_far_jump): Likewise for param 1.
13617         (final_prescan_insn): Likewise.
13618         (sh_insn_length_adjustment): Likewise for sole param.
13619
13620         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
13621         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
13622         rtx_code_label *.
13623         (sh_emit_compare_and_set): Likewise for local "lab".
13624         (output_far_jump): Strengthen param "insn" and local "prev" from
13625         rtx to rtx_insn *.
13626         (output_branchy_insn): Likewise for param "insn" and local
13627         "next_insn".
13628         (output_ieee_ccmpeq): Likewise for param "insn".
13629         (struct label_ref_list_d): Strengthen field "label" from rtx to
13630         rtx_code_label *.
13631         (pool_node): Likewise.
13632         (pool_window_label): Likewise for this global.
13633         (add_constant): Likewise for return type and locals "lab", "new_rtx".
13634         (dump_table): Strengthen params "start", "barrier" and local
13635         "scan" from rtx to rtx_insn *.
13636         (broken_move): Likewise for param "insn".
13637         (untangle_mova): Likewise for params "first_mova" and "new_mova".
13638         Strengthen param "first_mova" from rtx * to rtx_insn **.
13639         (mova_p): Likewise for param "insn".
13640         (fixup_mova): Likewise for param "mova".
13641         (find_barrier): Likewise for return type, params "mova" and
13642         "from", and locals "barrier_before_mova", "found_barrier",
13643         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
13644         "label" from rtx to rtx_code_label *.
13645         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
13646         rtx to rtx_insn *.
13647         (sh_reorg): Likewise for locals "link", "scan", "barrier".
13648         (split_branches): Likewise for param "first" and local "insn".
13649         (final_prescan_insn): Likewise for param "insn".
13650         (sequence_insn_p): Likewise for locals "prev", "next".
13651         (sh_insn_length_adjustment): Likewise for param "insn".
13652         (sh_can_redirect_branch): Likewise for local "insn".
13653         (find_r0_life_regions): Likewise for locals "end", "insn".
13654         (sh_output_mi_thunk): Likewise for local "insns".
13655
13656 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13657
13658         * config/score/score.c (score_output_mi_thunk): Strengthen local
13659         "insn" from rtx to rtx_insn *.
13660         (score_prologue): Likewise.
13661
13662 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13663
13664         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
13665         1 from rtx to rtx_insn *.
13666         (s390_emit_jump): Likewise for return type.
13667         (s390_emit_call): Likewise.
13668         (s390_load_got): Likewise.
13669
13670         * config/s390/s390.c (last_scheduled_insn): Likewise for this
13671         variable.
13672         (s390_match_ccmode): Likewise for param "insn".
13673         (s390_emit_jump): Likewise for return type.
13674         (s390_split_branches): Likewise for local "label".
13675         (struct constant): Strengthen field "label" from rtx to
13676         rtx_code_label *.
13677         (struct constant_pool): Likewise for field "label".  Strengthen
13678         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
13679         rtx_insn *.
13680         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
13681         insns.
13682         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
13683         (s390_end_pool): Likewise.
13684         (s390_dump_pool): Likewise for local "insn".
13685         (s390_mainpool_start): Likewise.
13686         (s390_chunkify_start): Likewise.
13687         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
13688         with insns.  Strengthen locals "label", "jump", "barrier", "next",
13689         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
13690         (s390_chunkify_finish): Strengthen local "insn" from rtx to
13691         rtx_insn *.
13692         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
13693         "jump", "label", "next_insn".
13694         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
13695         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
13696         "tbegin_insn".
13697         (s390_load_got): Likewise for return type and local "insns".
13698         (s390_save_gprs_to_fprs): Likewise for local "insn".
13699         (s390_restore_gprs_from_fprs): Likewise.
13700         (pass_s390_early_mach::execute): Likewise.
13701         (s390_emit_prologue): Likewise for local "insns".
13702         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
13703         rtx_code_label *.
13704         (s390_emit_call): Strengthen return type and local "insn" from
13705         rtx to rtx_insn *.
13706         (s390_emit_tpf_eh_return): Likewise for local "insn".
13707         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
13708         "next_insn", introducing locals "s_pat", "rpat" to allow this.
13709         (s390_fix_long_loop_prediction): Likewise for param "insn" and
13710         local "cur_insn".
13711         (s390_non_addr_reg_read_p): Likewise for param "insn".
13712         (find_cond_jump): Likewise for return type and param "insn".
13713         (s390_swap_cmp): Likewise for param "insn".
13714         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
13715         "prev_insn", "next_insn".
13716         (s390_reorg): Likewise for locals "insn", "target".
13717         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
13718         (s390_sched_variable_issue): For now, rename param "insn" to
13719         "uncast_insn", introducing a checked cast.
13720         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
13721         insn.
13722         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
13723         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
13724
13725 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13726
13727         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
13728         param from rtx to rtx_insn *.
13729         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
13730
13731 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13732
13733         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
13734         4 from rtx to rtx_insn *.
13735         (rs6000_final_prescan_insn): Likewise for first param.
13736         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
13737         local "insn".
13738         (rs6000_get_some_local_dynamic_name): Likewise.
13739         (output_cbranch): Likewise for param "insn".
13740         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
13741         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
13742         (rs6000_emit_allocate_stack): Likewise for local "insn".
13743         (load_cr_save): Likewise.
13744         (restore_saved_cr): Likewise.
13745         (restore_saved_lr): Likewise.
13746         (emit_cfa_restores): Likewise.
13747         (rs6000_output_function_epilogue): Likewise for locals "insn" and
13748         "deleted_debug_label".
13749         (rs6000_output_mi_thunk): Likewise for local "insn".
13750         (rs6000_final_prescan_insn): Likewise for param "insn".
13751
13752 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13753
13754         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
13755         Strengthen param "insn" from rtx to rtx_insn *.
13756         * config/picochip/picochip.c (picochip_current_prescan_insn):
13757         Likewise for this variable.
13758         (picochip_final_prescan_insn): Likewise for param "insn".
13759
13760 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13761
13762         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
13763         from rtx to rtx_insn *.
13764         (pa_output_indirect_call): Likewise.
13765         (pa_adjust_insn_length): Likewise.
13766         (pa_attr_length_millicode_call): Likewise.
13767         (pa_attr_length_call): Likewise.
13768         (pa_attr_length_indirect_call): Likewise.
13769
13770         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
13771         "insn".
13772         (pa_attr_length_millicode_call): Likewise.
13773         (pa_attr_length_call): Likewise.
13774         (pa_output_call): Likewise.
13775         (pa_attr_length_indirect_call): Likewise.
13776         (pa_output_indirect_call): Likewise.
13777
13778 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13779
13780         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
13781         Strengthen first param from rtx to rtx_insn *.
13782         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
13783         param "insn".
13784
13785 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13786
13787         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
13788         type from rtx to rtx_insn *.
13789         (mips_expand_call): Likewise.
13790         (mips_adjust_insn_length): Likewise for first param.
13791         (mips_output_conditional_branch): Likewise.
13792         (mips_output_order_conditional_branch): Likewise.
13793         (mips_final_prescan_insn): Likewise.
13794
13795         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
13796         rtx_insn * for the SEQUENCE case.
13797         (SEQ_END): Likewise.
13798         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
13799         (mips_emit_call_insn): Likewise, also for local "insn".
13800         (mips16_gp_pseudo_reg): Likewise for local "scan".
13801         (mips16_build_call_stub): Likewise for return type and for local
13802         "insn".  Introduce a new local "pattern" so that "insn" can indeed
13803         be an insn.
13804         (mips_expand_call): Strengthen return type and local "insn" from
13805         rtx to rtx_insn *.
13806         (mips_block_move_loop): Strengthen local "label" from rtx to
13807         rtx_code_label *.
13808         (mips_expand_synci_loop): Likewise for locals "label",
13809         "end_label".
13810         (mips_set_frame_expr): Strengthen local "insn" from rtx to
13811         rtx_insn *.
13812         (mips16e_collect_argument_saves): Likewise for locals "insn",
13813         "next".
13814         (mips_find_gp_ref): Likewise for param of callback for "pred"
13815         param, and for local "insn".
13816         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
13817         (mips_insn_has_flexible_gp_ref_p): Likewise.
13818         (mips_epilogue_emit_cfa_restores): Likewise for return type and
13819         local "insn".
13820         (mips_epilogue_set_cfa): Likewise for local "insn".
13821         (mips_expand_epilogue): Likewise.
13822         (mips_adjust_insn_length): Likewise for param "insn".
13823         (mips_output_conditional_branch): Likewise.
13824         (mips_output_order_conditional_branch): Likewise.
13825         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
13826         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
13827         "falu2_turn_enabled_insn".
13828         (mips_builtin_branch_and_move): Strengthen locals "true_label",
13829         "done_label" from rtx to rtx_code_label *.
13830         (struct mips16_constant): Likewise for field "label".
13831         (mips16_add_constant): Likewise for return type.
13832         (mips16_emit_constants_1): Strengthen return type and param "insn"
13833         from rtx to rtx_insn *.
13834         (mips16_emit_constants): Likewise for param "insn".
13835         (mips16_insn_length): Likewise.
13836         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
13837         to rtx_code_label *.
13838         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
13839         from rtx to rtx_insn *.
13840         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
13841         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
13842         (r10k_simplify_address): Strengthen param "insn" and local
13843         "def_insn" from rtx to rtx_insn *.
13844         (r10k_safe_address_p): Strengthen param "insn" from rtx to
13845         rtx_insn *.
13846         (r10k_needs_protection_p_1): Update target type of cast of data
13847         from to rtx to rtx_insn *.
13848         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
13849         rtx * to rtx_insn **.
13850         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
13851         rtx_insn *.
13852         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
13853         (mips_call_expr_from_insn): Likewise for param "insn".
13854         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
13855         (mips_find_pic_call_symbol): Likewise for param "insn".
13856         (mips_annotate_pic_calls): Likewise for local "insn".
13857         (mips_sim_insn): Likewise for this variable.
13858         (struct mips_sim): Likewise for field "insn" within elements of
13859         last_set array.
13860         (mips_sim_wait_reg): Likewise for param "insn".
13861         (mips_sim_wait_regs): Likewise.
13862         (mips_sim_wait_units): Likewise.
13863         (mips_sim_wait_insn): Likewise.
13864         (mips_sim_issue_insn): Likewise.
13865         (mips_sim_finish_insn): Likewise.
13866         (mips_seq_time): Likewise for param "seq" and local "insn".
13867         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
13868         locals "first", "second".
13869         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
13870         "last", "last2", "next".
13871         (mips_avoid_hazard): Likewise for params "after", "insn".
13872         (mips_reorg_process_insns): Likewise for locals "insn",
13873         "last_insn", "subinsn", "next_insn".
13874         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
13875         (mips16_split_long_branches): Likewise for locals "insn" "jump",
13876         "jump_sequence".
13877         (mips_output_mi_thunk): Likewise for local "insn".
13878         (mips_final_prescan_insn): Likewise for param "insn".
13879
13880 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13881
13882         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
13883         Strengthen return type and local "insns" from rtx to rtx_insn *.
13884         (microblaze_legitimize_tls_address): Likewise for local "insns".
13885         (microblaze_block_move_loop): Strengthen local "label" from rtx
13886         to rtx_code_label *.
13887         (microblaze_expand_prologue): Strengthen two locals named "insn"
13888         from rtx to rtx_insn *.
13889         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
13890         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
13891         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
13892         to rtx_code_label *.
13893
13894 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13895
13896         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
13897         param from rtx to rtx_insn *.
13898         (mep_reuse_lo): Likewise for third param.
13899         (mep_use_post_modify_p): Likewise for first param.
13900         (mep_core_address_length): Likewise.
13901         (mep_cop_address_length): Likewise.
13902         (mep_final_prescan_insn): Likewise.
13903         (mep_store_data_bypass_p): Likewise for both params.
13904         (mep_mul_hilo_bypass_p): Likewise.
13905         (mep_ipipe_ldc_p): Likewise for param.
13906
13907         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
13908         (mep_rewrite_mult): Likewise.
13909         (mep_rewrite_mulsi3): Likewise.
13910         (mep_rewrite_maddsi3): Likewise.
13911         (mep_reuse_lo_p_1): Likewise.
13912         (mep_reuse_lo_p): Likewise.
13913         (mep_frame_expr): Likewise.
13914         (mep_make_parallel): Likewise for both params.
13915         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
13916         local "insn".
13917         (mep_use_post_modify_p): Likewise for param "insn".
13918         (mep_core_address_length): Likewise.
13919         (mep_cop_address_length): Likewise.
13920         (mep_reg_set_in_function): Likewise for local "insn".
13921         (mep_asm_without_operands_p): Likewise.
13922         (F): Likewise for return type and param "x".
13923         (add_constant): Likewise for local "insn".
13924         (maybe_dead_move): Likewise for return type and local "insn".
13925         (mep_expand_prologue): Likewise for local "insn".
13926         (mep_final_prescan_insn): Likewise for param "insn".
13927         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
13928         "next", "follow", "x".
13929         (mep_insert_repeat_label_last): Likewise for return type, param
13930         "last_insn", and locals "next", "prev".  Strengthen param "label"
13931         from rtx to rtx_code_label *.
13932         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
13933         rtx_insn *.
13934         (struct mep_doloop_end): Likewise for fields "insn" and
13935         "fallthrough".
13936         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
13937         Strengthen local "repeat_label" from rtx to rtx_code_label *.
13938         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
13939         rtx_insn *.
13940         (mep_invert_branch): Likewise for params "insn" and "after".
13941         (mep_reorg_erepeat): Likewise for param "insns" and locals
13942         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
13943         "l" from rtx to rtx_code_label *.
13944         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
13945         from rtx to rtx_insn *.
13946         (mep_reorg_addcombine): Likewise for param "insns" and locals
13947         "i", "n".
13948         (add_sp_insn_p): Likewise for param "insn".
13949         (mep_reorg_noframe): Likewise for param "insns" and locals
13950         "start_frame_insn", "end_frame_insn", "next".
13951         (mep_reorg): Likewise for local "insns".
13952         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
13953         cast.
13954         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
13955         (mep_mul_hilo_bypass_p): Likewise.
13956         (mep_ipipe_ldc_p): Likewise for param "insn".
13957         (mep_make_bundle): Likewise for return type, param "cop" and local
13958         "insn", splitting out the latter into a new local "seq" for when it
13959         is a SEQUENCE rather than an insn.
13960         (core_insn_p): Likewise for param "insn".
13961         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
13962         "last", "first", "note", "prev", "core_insn".
13963
13964 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13965
13966         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
13967         rtx to rtx_insn *.
13968         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
13969         (m68k_final_prescan_insn): Likewise for first param.
13970
13971         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
13972         (m68k_set_frame_related): Likewise for param "insn".
13973         (output_btst): Likewise for param "insn".
13974         (m68k_final_prescan_insn): Likewise.
13975         (m68k_move_to_reg): Likewise for local "insn".
13976         (m68k_call_tls_get_addr): Likewise for local "insns".
13977         (m68k_call_m68k_read_tp): Likewise.
13978         (strict_low_part_peephole_ok): Likewise for param "first_insn".
13979         (m68k_output_mi_thunk): Likewise for local "insn".
13980
13981 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13982
13983         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
13984         first param from rtx to rtx_insn *.
13985         (iq2000_adjust_insn_length): Likewise.
13986         (iq2000_output_conditional_branch): Likewise.
13987         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
13988         "insn" and local "nop_insn".
13989         (iq2000_annotate_frame_insn): Likewise for param "insn".
13990         (iq2000_expand_prologue): Likewise for both locals "insn".
13991         (iq2000_adjust_insn_length): Likewise for param "insn".
13992         (iq2000_output_conditional_branch): Likewise.
13993
13994 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13995
13996         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
13997         "insns" from rtx to rtx_insn *.
13998         (ia64_emit_cond_move): Likewise for locals "insn", "first".
13999         (struct spill_fill_data): Likewise for field "init_after" and for
14000         elements of array field "prev_insn".
14001         (spill_restore_mem): Likewise for locals "insn", "first".
14002         (do_spill): Likewise for local "insn".
14003         (do_restore): Likewise.
14004         (ia64_expand_prologue): Likewise.
14005         (ia64_expand_epilogue): Likewise.
14006         (emit_insn_group_barriers): Likewise for locals "insn",
14007         "last_label".
14008         (emit_all_insn_group_barriers): Likewise for locals "insn",
14009         "last".
14010         (dfa_stop_insn): Likewise for this global.
14011         (dfa_pre_cycle_insn): Likewise.
14012         (ia64_nop): Likewise.
14013         (final_emit_insn_group_barriers): Likewise for locals "insn",
14014         "last".
14015         (emit_predicate_relation_info): Likewise for locals "head", "n",
14016         "insn", "b", "a".
14017         (ia64_reorg): Likewise for local "insn".
14018         (ia64_output_mi_thunk): Likewise.
14019         (expand_vec_perm_interleave_2): Likewise for local "seq".
14020
14021 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14022
14023         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
14024         param 1 "insn" from rtx to rtx_insn *.
14025         (ix86_use_lea_for_mov): Likewise.
14026         (ix86_avoid_lea_for_addr): Likewise.
14027         (ix86_split_lea_for_addr): Likewise.
14028         (ix86_lea_for_add_ok): Likewise.
14029         (ix86_output_call_insn): Likewise.
14030
14031         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
14032         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
14033         (ix86_output_function_epilogue): Likewise for locals "insn",
14034         "deleted_debug_label".
14035         (legitimize_tls_address): Likewise for local "insn".
14036         (get_some_local_dynamic_name): Likewise.
14037         (increase_distance): Likewise for params "prev", "next".
14038         (distance_non_agu_define_in_bb): Likewise for params "insn",
14039         "start" and locals "prev", "next".
14040         (distance_non_agu_define): Likewise for param "insn".
14041         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
14042         locals "next", "prev".
14043         (distance_agu_use): Likewise for param "insn".
14044         (ix86_lea_outperforms): Likewise.
14045         (ix86_ok_to_clobber_flags): Likewise.
14046         (ix86_avoid_lea_for_add): Likewise.
14047         (ix86_use_lea_for_mov): Likewise.
14048         (ix86_avoid_lea_for_addr): Likewise.
14049         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
14050         (ix86_split_lea_for_addr): Likewise for param "insn".
14051         (ix86_lea_for_add_ok): Likewise for param "insn".
14052         (ix86_expand_carry_flag_compare): Likewise for local
14053         "compare_seq".
14054         (ix86_expand_int_movcc): Likewise.
14055         (ix86_output_call_insn): Likewise for param "insn".
14056         (ix86_output_call_insn): Likewise for local "i".
14057         (x86_output_mi_thunk): Introduce local "insn", using it in place
14058         of "tmp" when dealing with insns.
14059         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
14060         "start".
14061         (ix86_pad_returns): Likewise for locals "ret", "prev".
14062         (ix86_count_insn_bb): Likewise for local "insn".
14063         (ix86_pad_short_function): Likewise for locals "ret", "insn".
14064         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
14065         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
14066         (expand_vec_perm_interleave2): Likewise for local "seq".
14067         (expand_vec_perm_vperm2f128_vblend): Likewise.
14068         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
14069         call to for_each_rtx with for_each_rtx_in_insn.
14070
14071 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14072
14073         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
14074         "label" from rtx to rtx_code_label *.
14075         (ix86_expand_prologue): Likewise.
14076         (ix86_expand_split_stack_prologue): Likewise for locals "label",
14077         "varargs_label".
14078         (ix86_split_idivmod): Likewise for locals "end_label" and
14079         "qimode_label".
14080         (ix86_expand_branch): Likewise for local "label2".
14081         (ix86_expand_aligntest): Likewise for return type and local "label".
14082         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
14083         "top_label".
14084         (expand_movmem_epilogue): Likewise for the various locals named
14085         "label".
14086         (expand_setmem_epilogue): Likewise.
14087         (expand_small_movmem_or_setmem): Likewise for local "label".
14088         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
14089         Strengthen param "done_label" from rtx * to rtx_code_label **.
14090         Strengthen locals "loop_label" and "label" from rtx to
14091         rtx_code_label *.
14092         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
14093         Likewise for locals "loop_label", "label".
14094         (ix86_expand_set_or_movmem): Likewise for locals "label",
14095         "jump_around_label", "hot_label".
14096         (ix86_expand_strlensi_unroll_1): Likewise for locals
14097         "align_2_label", align_3_label", "align_4_label", "end_0_label",
14098         "end_2_label".
14099         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
14100         (void ix86_emit_i387_log1p): Likewise for locals "label1",
14101         "label2", "jump_label".
14102         (ix86_expand_sse_compare_and_jump): Likewise for return type and
14103         local "label".
14104         (ix86_expand_lfloorceil): Likewise for local "label".
14105         (ix86_expand_rint): Likewise.
14106         (ix86_expand_floorceildf_32): Likewise.
14107         (ix86_expand_floorceil): Likewise.
14108         (ix86_expand_rounddf_32): Likewise.
14109         (ix86_expand_trunc): Likewise.
14110         (ix86_expand_truncdf_32): Likewise.
14111         (ix86_expand_round): Likewise.
14112
14113 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14114
14115         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
14116         first param from rtx to rtx_insn *.
14117         (h8300_insn_length_from_table): Likewise.
14118         * config/h8300/h8300.c (F): Likewise for return type and param
14119         "x".
14120         (Fpa): Add a checked cast to rtx_insn *.
14121         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
14122         rtx_insn *.
14123         (final_prescan_insn): Likewise for param "insn".
14124         (h8300_binary_length): Likewise.
14125         (h8300_insn_length_from_table): Likewise.
14126
14127 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14128
14129         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
14130         Strengthen first param "insn" from rtx to rtx_insn *.
14131
14132         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
14133         Likewise.
14134         (frame_insn): Likewise for return type.  Introduce local "insn"
14135         for use in place of local "x" for use as an rtx_insn *.
14136         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
14137         (epiphany_expand_prologue): Likewise for local "insn".
14138         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
14139         * config/epiphany/resolve-sw-modes.c
14140         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
14141         "seq".
14142
14143 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14144
14145         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
14146         param from rtx to rtx_insn *.
14147         (c6x_final_prescan_insn): Likewise for first param.
14148
14149         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
14150         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
14151         (c6x_expand_compare): Strengthen local "insns" from rtx to
14152         rtx_insn *.
14153         (c6x_get_unit_specifier): Likewise for param "insn".
14154         (c6x_print_unit_specifier_field): Likewise.
14155         (c6x_final_prescan_insn): Likewise.
14156         (emit_add_sp_const): Likewise for local "insn".
14157         (c6x_expand_prologue): Likewise.
14158
14159 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14160
14161         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
14162         param 1 from rtx to rtx_insn *.
14163         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
14164         the various locals named "insn".
14165         (expand_epilogue_reg_restore): Likewise.
14166         (frame_related_constant_load): Likewise.
14167         (add_to_reg): Likewise.
14168         (emit_link_insn): Likewise.
14169         (do_link): Likewise.
14170         (expand_interrupt_handler_prologue): Likewise.
14171         (branch_dest): Likewise for param "branch".
14172         (asm_conditional_branch): Likewise for param "insn".
14173         (gen_one_bundle): Likewise for elements of param "slot" and local
14174         "t".
14175         (bfin_gen_bundles): Likewise for locals "insn", "next" and
14176         elements of local "slot".
14177         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
14178         "queue", "next_queue", "prev".
14179         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
14180         (add_sched_insns_for_speculation): Likewise for local "insn".
14181
14182 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14183
14184         * config/avr/avr-protos.h (output_movqi): Strengthen first param
14185         from rtx to rtx_insn *.
14186         (output_movhi): Likewise.
14187         (output_movsisf): Likewise.
14188         (avr_out_tstsi): Likewise.
14189         (avr_out_tsthi): Likewise.
14190         (avr_out_tstpsi): Likewise.
14191         (avr_out_compare): Likewise.
14192         (avr_out_compare64): Likewise.
14193         (avr_out_movpsi): Likewise.
14194         (ashlqi3_out): Likewise.
14195         (ashlhi3_out): Likewise.
14196         (ashlsi3_out): Likewise.
14197         (ashrqi3_out): Likewise.
14198         (ashrhi3_out): Likewise.
14199         (ashrsi3_out): Likewise.
14200         (lshrqi3_out): Likewise.
14201         (lshrhi3_out): Likewise.
14202         (lshrsi3_out): Likewise.
14203         (avr_out_ashlpsi3): Likewise.
14204         (avr_out_ashrpsi3): Likewise.
14205         (avr_out_lshrpsi3): Likewise.
14206         (avr_out_fract): Likewise.
14207         (avr_out_sbxx_branch): Likewise.
14208         (avr_out_round): Likewise.
14209         (avr_out_xload): Likewise.
14210         (avr_out_movmem): Likewise.
14211         (adjust_insn_length): Likewise.
14212         (avr_out_lpm): Likewise.
14213         (reg_unused_after): Likewise.
14214         (_reg_unused_after): Likewise.
14215         (avr_jump_mode): Likewise for second param.
14216         (jump_over_one_insn): Likewise for first param.
14217         (avr_final_prescan_insn): Likewise.
14218         (out_shift_with_cnt): Likewise for second param.
14219
14220         * config/avr/avr.c (get_sequence_length): Likewise for param
14221         "insns" and local "insn".
14222         (emit_push_byte): Likewise for local "insn".
14223         (emit_push_sfr): Likewise.
14224         (avr_prologue_setup_frame): Likewise for locals "insn",
14225         "fp_plus_insns", "sp_plus_insns".
14226         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
14227         "sp_plus_insns".
14228         (avr_jump_mode): Likewise for param "insn".
14229         (avr_final_prescan_insn): Likewise.
14230         (avr_find_unused_d_reg): Likewise.
14231         (avr_out_lpm_no_lpmx): Likewise.
14232         (avr_out_lpm): Likewise.
14233         (avr_out_xload): Likewise.
14234         (output_movqi): Likewise.
14235         (output_movhi): Likewise.
14236         (out_movqi_r_mr): Likewise.
14237         (out_movhi_r_mr): Likewise.
14238         (out_movsi_r_mr): Likewise.
14239         (out_movsi_mr_r): Likewise.
14240         (output_movsisf): Likewise.
14241         (avr_out_load_psi): Likewise.
14242         (avr_out_store_psi): Likewise.
14243         (avr_out_movpsi): Likewise.
14244         (out_movqi_mr_r): Likewise.
14245         (avr_out_movhi_mr_r_xmega): Likewise.
14246         (out_movhi_mr_r): Likewise.
14247         (compare_condition): Likewise for param "insn" and local "next".
14248         (compare_sign_p): Likewise for param "insn".
14249         (compare_diff_p): Likewise.
14250         (compare_eq_p): Likewise.
14251         (avr_out_compare): Likewise.
14252         (avr_out_compare64): Likewise.
14253         (avr_out_tsthi): Likewise.
14254         (avr_out_tstpsi): Likewise.
14255         (avr_out_tstsi): Likewise.
14256         (out_shift_with_cnt): Likewise.
14257         (ashlqi3_out): Likewise.
14258         (ashlhi3_out): Likewise.
14259         (avr_out_ashlpsi3): Likewise.
14260         (ashlsi3_out): Likewise.
14261         (ashrqi3_out): Likewise.
14262         (ashrhi3_out): Likewise.
14263         (avr_out_ashrpsi3): Likewise.
14264         (ashrsi3_out): Likewise.
14265         (lshrqi3_out): Likewise.
14266         (lshrhi3_out): Likewise.
14267         (avr_out_lshrpsi3): Likewise.
14268         (lshrsi3_out): Likewise.
14269         (avr_out_fract): Likewise.
14270         (avr_out_round): Likewise.
14271         (avr_adjust_insn_length): Likewise.
14272         (reg_unused_after): Likewise.
14273         (_reg_unused_after): Likewise.
14274         (avr_compare_pattern): Likewise.
14275         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
14276         and locals "branch1", "branch2", "insn2", "jump".
14277         (avr_reorg): Likewise for local "insn".
14278         (avr_2word_insn_p): Likewise for param "insn".
14279         (jump_over_one_insn_p): Likewise.
14280         (avr_out_sbxx_branch): Likewise.
14281         (avr_out_movmem): Likewise.
14282
14283 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14284
14285         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
14286         param from rtx to rtx_insn *.
14287         (thumb1_final_prescan_insn): Likewise.
14288         (thumb2_final_prescan_insn): Likewise.
14289
14290         * config/arm/arm.c (emit_set_insn): Strengthen return type from
14291         rtx to rtx_insn *.
14292         (struct minipool_node): Likewise for field "insn".
14293         (dump_minipool): Likewise for param "scan".
14294         (create_fix_barrier): Likewise for local "from".  Strengthen local
14295         "label" from rtx to rtx_code_label *.
14296         (push_minipool_barrier): Strengthen param "insn" from rtx to
14297         rtx_insn *.
14298         (push_minipool_fix): Likewise.
14299         (note_invalid_constants): Likewise.
14300         (thumb2_reorg): Likewise for local "insn".
14301         (arm_reorg): Likewise.
14302         (thumb2_final_prescan_insn): Likewise for param
14303         "insn" and local "first_insn".
14304         (arm_final_prescan_insn): Likewise for param "insn" and locals
14305         "start_insn", "this_insn".
14306         (arm_debugger_arg_offset): Likewise for param "insn".
14307         (thumb1_emit_multi_reg_push): Likewise for return type and local
14308         "insn".
14309         (thumb1_final_prescan_insn): Likewise for param "insn".
14310         (thumb_far_jump_used_p): Likewise for local "insn".
14311         (thumb1_expand_prologue): Likewise.
14312         (arm_expand_epilogue_apcs_frame): Likewise.
14313         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
14314         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
14315         from rtx to rtx_code_label *.
14316         (arm_split_atomic_op): Likewise for local "label".
14317         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
14318
14319 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14320
14321         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
14322         first param from rtx to rtx_insn *.
14323         (arc_verify_short): Likewise.
14324         (arc_short_long): Likewise.
14325         (arc_need_delay): Likewise.
14326
14327         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
14328         "target_insn".
14329         (arc_ccfsm_advance): Likewise for param "insn" and locals
14330         "start_insn", "this_insn".
14331         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
14332         (arc_ccfsm_post_advance): Likewise for param "insn".
14333         (arc_next_active_insn): Likewise for return type and param "insn".
14334         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
14335         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
14336         (output_short_suffix): Likewise for local "insn".
14337         (arc_final_prescan_insn): Likewise for param "insn".  Remove
14338         now-redundant checked cast.
14339         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
14340         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
14341         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
14342         for use where lc_set became an insn.
14343         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
14344         rtx to rtx_insn *.
14345         (arc_get_insn_variants): Likewise for local "prev".
14346         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
14347         "next".
14348         (arc_predicate_delay_insns): Likewise for local "insn".
14349         (arc_pad_return): Likewise for local "prev".  For now, add a
14350         checked cast when extracting the insn from "final_sequence".
14351         (arc_short_long): Likewise for param "insn".
14352         (arc_need_delay): Likewise for param "insn" and local "next".
14353         (arc_label_align): Likewise for locals "prev", "next".
14354
14355 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14356
14357         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
14358         "insn" from rtx to rtx_insn *.
14359         (alpha_gp_save_rtx): Likewise for local "seq".
14360         (alpha_instantiate_decls): Likewise for local "top".
14361         (get_some_local_dynamic_name): Likewise for local "insn".
14362         (alpha_does_function_need_gp): Likewise.
14363         (set_frame_related_p): Likewise for return type and for locals
14364         "seq" and "insn".
14365         (emit_frame_store_1): Likewise for local "insn".
14366         (alpha_expand_prologue): Likewise for locals "insn", "seq".
14367         (alpha_end_function): Likewise for local "insn".
14368         (alpha_output_mi_thunk_osf): Likewise.
14369         (alphaev4_insn_pipe): Likewise for param "insn".
14370         (alphaev5_insn_pipe): Likewise.
14371         (alphaev4_next_group): Likewise for return type and param 1
14372         "insn".
14373         (alphaev5_next_group): Likewise.
14374         (alpha_align_insns_1): Likewise for return type and param 1 of
14375         callback param "next_group", and for locals "i", "next", "prev",
14376         "where", "where2", "insn".
14377
14378 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
14379
14380         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
14381         rather than modifying the stmt.
14382
14383 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14384
14385         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
14386         cgraph_state conversion.
14387
14388 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14389
14390         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14391         Strengthen local "insns" from rtx to rtx_insn *.
14392         (aarch64_set_frame_expr): Likewise for local "insn".
14393         (aarch64_save_or_restore_fprs): Likewise.
14394         (aarch64_save_or_restore_callee_save_registers): Likewise.
14395         (aarch64_expand_prologue): Likewise.
14396         (aarch64_expand_epilogue): Likewise.
14397         (aarch64_output_mi_thunk): Likewise.
14398         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
14399         "label2" from rtx to rtx_code_label *.
14400         (aarch64_split_atomic_op): Likewise for local "label".
14401
14402 2014-08-25  Martin Liska  <mliska@suse.cz>
14403
14404         * cgraph.h (symtab_node):
14405         (bool needed_p (void)): created from decide_is_symbol_needed
14406         (bool referred_to_p (void)): created from referred_to_p
14407         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
14408         * cgraph.h (cgraph_node):
14409         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
14410         (void expand (void)): created from expand_function
14411         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
14412         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
14413         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
14414         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
14415         * cgraph.h (varpool_node):
14416         (static void add (tree decl): created from varpool_add_new_variable
14417         * cgraph.h (cgraph_edge):
14418         void remove (void);
14419         (void remove_caller (void)): created from cgraph_edge_remove_caller
14420         (void remove_callee (void)): created from cgraph_edge_remove_callee
14421         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
14422           created from cgraph_set_call_stmt
14423         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
14424         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
14425         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
14426           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
14427         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
14428           created from cgraph_speculative_call_info
14429         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
14430           int freq_scale, bool update_original)): created from cgraph_clone_edge
14431         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
14432         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
14433         (bool recursive_p (void)): created from cgraph_edge_recursive_p
14434         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
14435         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
14436         (static void rebuild_references (void)): created from cgraph_rebuild_references
14437         * cgraph.h (symbol_table):
14438         (create_reference): renamed from add_reference
14439         (maybe_create_reference): renamed from maybe_add_reference
14440         (void register_symbol (symtab_node *node)): new function
14441         (void clear_asm_symbols (void)): new function
14442         (void unregister (symtab_node *node)): new function
14443         (void release_symbol (cgraph_node *node, int uid)): new function
14444         (cgraph_node * allocate_cgraph_symbol (void)): new function
14445         (void initialize (void)): created from cgraph_init
14446         (symtab_node *first_symbol (void)):new function
14447         (asm_node *first_asm_symbol (void)):new function
14448         (symtab_node *first_defined_symbol (void)):new function
14449         (varpool_node *first_variable (void)):new function
14450         (varpool_node *next_variable (varpool_node *node)):new function
14451         (varpool_node *first_static_initializer (void)):new function
14452         (varpool_node *next_static_initializer (varpool_node *node)):new function
14453         (varpool_node *first_defined_variable (void)):new function
14454         (varpool_node *next_defined_variable (varpool_node *node)):new function
14455         (cgraph_node *first_defined_function (void)):new function
14456         (cgraph_node *next_defined_function (cgraph_node *node)):new function
14457         (cgraph_node *first_function (void)):new function
14458         (cgraph_node *next_function (cgraph_node *node)):new function
14459         (cgraph_node *first_function_with_gimple_body (void)):new function
14460         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
14461         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
14462           created from symtab_remove_unreachable_nodes
14463         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
14464         (void process_new_functions (void)): created from cgraph_process_new_functions
14465         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
14466         (bool output_variables (void)): created from varpool_node::output_variables
14467         (void output_asm_statements (void)): created from output_asm_statements
14468         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
14469         (void compile (void)): created from compile
14470         (void output_weakrefs (void)): created from output_weakrefs
14471         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
14472         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
14473           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
14474         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
14475         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
14476           created from cgraph_next_function_with_gimple_body
14477         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
14478           created from cgraph_remove_edge_removal_hook
14479         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
14480           created from cgraph_add_node_removal_hook
14481         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
14482           created from cgraph_remove_node_removal_hook
14483         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
14484           created from varpool_add_node_removal_hook
14485         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
14486           created from varpool_remove_node_removal_hook
14487         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
14488           created from cgraph_add_function_insertion_hook
14489         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
14490           created from cgraph_remove_function_insertion_hook
14491         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
14492           created from varpool_add_variable_insertion_hook
14493         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
14494           created from varpool_remove_variable_insertion_hook
14495         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
14496           created from cgraph_add_edge_duplication_hook
14497         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
14498           created from cgraph_remove_edge_duplication_hook
14499         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
14500           created from cgraph_add_node_duplication_hook
14501         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
14502           created from cgraph_remove_node_duplication_hook
14503         (void call_edge_removal_hooks (cgraph_edge *e)):
14504           created from cgraph_call_edge_removal_hooks
14505         (void call_cgraph_insertion_hooks (cgraph_node *node)):
14506           created from call_function_insertion_hooks
14507         (void call_cgraph_removal_hooks (cgraph_node *node)):
14508           created from cgraph_call_node_removal_hooks
14509         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
14510           created from cgraph_node::call_duplication_hooks
14511         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
14512           created from cgraph_call_edge_duplication_hooks
14513         (void call_varpool_removal_hooks (varpool_node *node)):
14514           created from varpool_call_node_removal_hooks
14515         (void call_varpool_insertion_hooks (varpool_node *node)):
14516           created from varpool_call_variable_insertion_hooks
14517         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
14518           created from insert_to_assembler_name_hash
14519         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
14520           created from unlink_from_assembler_name_hash
14521         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
14522           created from symtab_prevail_in_asm_name_hash
14523         (void symtab_initialize_asm_name_hash (void)):
14524           created from symtab_initialize_asm_name_hash
14525         (void change_decl_assembler_name (tree decl, tree name)):
14526           created from change_decl_assembler_name
14527         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
14528         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
14529           created from decl_assembler_name_hash
14530         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
14531           created from decl_assembler_name_equal
14532         (static hashval_t hash_node_by_assembler_name (const void *p)):
14533           created from hash_node_by_assembler_name
14534         (static int eq_assembler_name (const void *p1, const void *p2)):
14535           created from eq_assembler_name
14536
14537 2014-08-25  Marek Polacek  <polacek@redhat.com>
14538
14539         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
14540
14541 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
14542
14543         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
14544         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
14545         SWI1248_AVX512BW mode iterator.
14546
14547 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
14548
14549         PR target/62111
14550         * config/sh/predicates.md (general_extend_operand): Disable
14551         TRUNCATE before reload completes.
14552
14553 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
14554
14555         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
14556
14557 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
14558
14559         PR target/61996
14560         * config/sh/sh.opt (musermode): Allow negative form.
14561         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
14562         targets that don't support it.
14563         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
14564         Document -mno-usermode option.
14565
14566 2014-08-24  Kito Cheng  <kito@0xlab.org>
14567
14568         * system.h (CALLER_SAVE_PROFITABLE): Poison.
14569         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
14570         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
14571         * doc/tm.texi: Regenerate.
14572
14573 2014-08-24  Kito Cheng  <kito@0xlab.org>
14574
14575         * ira.c: Fix typo in comment.
14576
14577 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
14578
14579         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
14580         Deprecate c++1y. Change language to reflect greater confidence in C++14.
14581
14582 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
14583
14584         PR target/62038
14585         * config/pa/pa.c (pa_output_function_epilogue): Don't set
14586         last_address when the current function is a thunk.
14587         (pa_asm_output_mi_thunk): When we don't have named sections or they
14588         are not being used, check that thunk can reach the stub table with a
14589         short branch.
14590
14591 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
14592
14593         * web.c (union_match_dups): Strengthen param "insn" from rtx to
14594         rtx_insn *.
14595         (pass_web::execute): Likewise for local "insn".
14596
14597 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
14598
14599         * var-tracking.c (struct micro_operation_def): Strengthen field
14600         "insn" from rtx to rtx_insn *.
14601         (struct emit_note_data_def): Likewise.
14602         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
14603         (vt_stack_adjustments): Likewise for local "insn".
14604         (adjust_insn): Likewise for param "insn".
14605         (val_store): Likewise.
14606         (val_resolve): Likewise.
14607         (struct count_use_info): Likewise for field "insn".
14608         (log_op_type): Likewise for param "insn".
14609         (reverse_op): Likewise.
14610         (prepare_call_arguments): Likewise.
14611         (add_with_sets):  The initial param takes an insn, but we can't
14612         yet strengthen it from rtx to rtx_insn * since it's used as a
14613         cselib_record_sets_hook callback.  For now rename initial param
14614         from "insn" to "uncast_insn", and introduce a local "insn" of
14615         the stronger rtx_insn * type, with a checked cast.
14616         (compute_bb_dataflow): Strengthen local "insn" from rtx to
14617         rtx_insn *.
14618         (emit_note_insn_var_location): Likewise.
14619         (emit_notes_for_changes): Likewise.
14620         (emit_notes_for_differences): Likewise.
14621         (next_non_note_insn_var_location): Likewise for return type and
14622         for param "insn".
14623         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
14624         (vt_initialize): Likewise for local "insn".
14625         (delete_debug_insns): Likewise for locals "insn" and "next".
14626
14627 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
14628
14629         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
14630         rtx_insn *.
14631         (mark_constant_pool): Likewise for local "insn".
14632
14633 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
14634
14635         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
14636         rtx to rtx_insn *.
14637         (dead_debug_promote_uses): Likewise.
14638         (dead_debug_insert_temp): Likewise.
14639
14640 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
14641
14642         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
14643         from const_rtx to const rtx_insn *.
14644         (store_killed_after): Likewise.  Strengthen locals "last", "act"
14645         from rtx to rtx_insn *.
14646         (store_killed_before): Strengthen param "insn" from const_rtx to
14647         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
14648         (find_moveable_store): Strengthen param "insn" from rtx to
14649         rtx_insn *.
14650         (compute_store_table): Likewise for local "insn".
14651         (insert_insn_start_basic_block): Likewise for param "insn" and
14652         locals "prev", "before", "insn".
14653         (insert_store): For now, add a checked cast to rtx_insn * on the
14654         result of gen_move_insn.
14655         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
14656         to rtx_insn *.
14657         (replace_store_insn): Likewise.  For now, add a checked cast to
14658         rtx_insn * on the result of gen_move_insn.
14659
14660 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14661
14662         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
14663         rtx_insn *.
14664         (expand_sjlj_dispatch_table): Likewise.
14665
14666 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14667
14668         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
14669         "insn" from rtx to rtx_insn *.
14670
14671 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14672
14673         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
14674         "insn" from rtx to rtx_insn *.
14675         (dup_block_and_redirect): Likewise for param 3 "before".
14676
14677         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
14678         from rtx to rtx_insn *.
14679         (move_insn_for_shrink_wrap): Likewise.
14680         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
14681         (dup_block_and_redirect): Likewise for param "before" and local
14682         "insn".
14683         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
14684         "end".
14685         (convert_to_simple_return): Likewise for local "start".
14686
14687         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
14688         Strengthen local "insn" from rtx to rtx_insn *, for use when
14689         invoking requires_stack_frame_p.
14690
14691 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14692
14693         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
14694         rtx_insn *.
14695         (speculate_expr): Likewise for locals "orig_insn_rtx",
14696         "spec_insn_rtx".
14697         (eq_transformed_insns): Likewise for locals "i1", "i2".
14698         (check_for_new_jump): Likewise for return type and local "end".
14699         (find_new_jump): Likewise for return type and local "jump".
14700         (sel_split_edge): Likewise for local "jump".
14701         (sel_create_recovery_block): Likewise.
14702         (sel_redirect_edge_and_branch_force): Likewise.
14703         (sel_redirect_edge_and_branch): Likewise.
14704
14705 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14706
14707         * sel-sched.c (substitute_reg_in_expr): Strengthen local
14708         "new_insn" from rtx to rtx_insn *.
14709         (create_insn_rtx_with_rhs): Likewise for return type and for local
14710         "insn_rtx".
14711         (create_insn_rtx_with_lhs): Likewise.
14712         (create_speculation_check): Likewise for local "insn_rtx".
14713         (implicit_clobber_conflict_p): Likewise for local "insn".
14714         (get_expr_cost): Likewise.
14715         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
14716         (move_cond_jump): Likewise for locals "next", "prev", "link",
14717         "head", "from", "to".
14718
14719 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14720
14721         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
14722         "next" from rtx to rtx_insn *.
14723         (find_conditional_protection): Likewise for local "next".
14724         (is_conditionally_protected): Likewise for local "insn1".
14725         (is_pfree): Likewise for locals "insn1", "insn2".
14726
14727 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14728
14729         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
14730         from rtx to rtx_insn *.
14731
14732         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
14733         locals "insn1", "insn2" from rtx to rtx_insn *.
14734         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
14735         locals "insn", "prev", "last_jump", "next_tail".
14736         (schedule_ebb): Likewise for params "head", "tail".
14737         (schedule_ebbs): Likewise for locals "tail", "head".
14738
14739         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
14740         to rtx_insn on "last_insn" in one of the invocations of
14741         schedule_ebb.
14742
14743 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14744
14745         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
14746         "elem", "insn" from rtx to rtx_insn *.
14747         (change_spec_dep_to_hard): Likewise.
14748         (get_back_and_forw_lists): Likewise for local "con".
14749         (sd_add_dep): Likewise for locals "elem", "insn".
14750         (sd_resolve_dep): Likewise for locals "pro", "con".
14751         (sd_unresolve_dep): Likewise.
14752         (sd_delete_dep): Likewise.
14753         (chain_to_prev_insn): Likewise for local "pro".
14754         (find_inc): Likewise for locals "pro", "con".
14755
14756 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14757
14758         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
14759         to rtx_insn *.
14760         (reg_set_between_p): Strengthen local "insn" from const_rtx to
14761         const rtx_insn *.
14762         (modified_between_p): Strengthen local "insn" from rtx to
14763         rtx_insn *.
14764         (remove_reg_equal_equiv_notes_for_regno): Likewise.
14765         (keep_with_call_p): Strengthen local "i2" from const_rtx to
14766         const rtx_insn *.
14767
14768 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14769
14770         * resource.c (next_insn_no_annul): Strengthen local "next" from
14771         rtx to rtx_insn *.
14772         (mark_referenced_resources): Likewise for local "insn".
14773
14774 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14775
14776         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
14777         to rtx_insn *.
14778         (find_reloads): Likewise for param 1.
14779         (subst_reloads): Likewise for sole param.
14780         (find_equiv_reg): Likwise for param 2.
14781         (regno_clobbered_p): Likwise for param 2.
14782         (reload): Likewise for param 1.
14783
14784         * caller-save.c (save_call_clobbered_regs): Strengthen local
14785         "insn" from rtx to rtx_insn *.
14786         (insert_one_insn): Likewise for local "insn".
14787
14788         * reload.c (this_insn): Likewise for this global.
14789         (find_reloads): Likewise for param "insn".
14790         (find_reloads_toplev): Likewise.
14791         (find_reloads_address): Likewise.
14792         (subst_reg_equivs): Likewise.
14793         (update_auto_inc_notes): Likewise.
14794         (find_reloads_address_1): Likewise.
14795         (find_reloads_subreg_address): Likewise.
14796         (subst_reloads): Likewise.
14797         (find_equiv_reg): Likewise, also for local "p".
14798         (regno_clobbered_p): Likewise for param "insn".
14799
14800         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
14801         array.
14802         (spill_reg_store): Likewise for the elements of this array.
14803         (remove_init_insns): Likewise for local "equiv_insn".
14804         (will_delete_init_insn_p): Likewise for param "insn".
14805         (reload): Likewise for param ""first" and local "insn".
14806         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
14807         rtx_insn *.
14808         (calculate_elim_costs_all_insns): Likewise.
14809         (delete_caller_save_insns): Likewise.
14810         (spill_failure): Likewise for param "insn".
14811         (delete_dead_insn): Likewise.
14812         (set_label_offsets): Likewise.
14813         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
14814         "prev_insn".
14815         (elimination_costs_in_insn): Likewise for param "insn".
14816         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
14817         when referring to an insn.
14818         (set_initial_label_offsets): Likewise.
14819         (set_offsets_for_label): Strengthen param "insn" from rtx to
14820         rtx_insn *.
14821         (init_eliminable_invariants): Likewise for param "first" and local
14822         "insn".
14823         (fixup_eh_region_note): Likewise for param "insn".
14824         (reload_as_needed): Likewise for locals "prev", "insn",
14825         "old_next", "old_prev", "next".
14826         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
14827         "last".
14828         (reload_inheritance_insn): Strengthen elements of this array from
14829         rtx to rtx_insn *.
14830         (failed_reload): Likewise for param "insn".
14831         (choose_reload_regs): Likewise for local "insn".  Replace use of
14832         NULL_RTX with NULL when referring to an insn.
14833         (input_reload_insns): Strengthen elements of this array from rtx
14834         to rtx_insn *.
14835         (other_input_address_reload_insns): Likewise for this global.
14836         (other_input_reload_insns): Likewise for this global.
14837         (input_address_reload_insns): Likwise for the elements of this
14838         array.
14839         (inpaddr_address_reload_insns): Likwise for the elements of this
14840         array.
14841         (output_reload_insns): Likewise for the elements of this array.
14842         (output_address_reload_insns): Likewise for the elements of this
14843         array.
14844         (outaddr_address_reload_insns): Likewise for the elements of this
14845         array.
14846         (operand_reload_insns): Likewise for this global.
14847         (other_operand_reload_insns): Likewise for this global.
14848         (other_output_reload_insns): Likewise for the elements of this
14849         array.
14850         (new_spill_reg_store): Likewise for the elements of this
14851         array.
14852         (emit_input_reload_insns): Likewise for locals "insn", "temp".
14853         Strengthen local "where" from rtx * to rtx_insn **.
14854         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
14855         from rtx to rtx_insn *.
14856         (do_input_reload): Likewise for local "insn".
14857         (do_output_reload): Likewise for local "insn".
14858         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
14859         (emit_insn_if_valid_for_reload): Likewise for return type and local
14860         "last".  Add checked cast to rtx_insn when returning "insn" since
14861         this has been through emit_insn.
14862         (gen_reload): Strengthen return type and locals "last", "insn", "set"
14863         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
14864         returning "insn" since it's been through
14865         emit_insn_if_valid_for_reload at this point.
14866         (delete_output_reload): Strengthen param "insn" and locals
14867         "output_reload_insn", "i2" from rtx to rtx_insn *.
14868         (delete_address_reloads): Likewise for params "dead_insn",
14869         "current_insn" and locals "prev", "next".
14870         (delete_address_reloads_1): Likewise for params "dead_insn",
14871         "current_insn" and locals "prev", "i2".
14872         (inc_for_reload): Likewise for locals "last", "add_insn".
14873         (add_auto_inc_notes): Strengthen param "insn" from rtx to
14874         rtx_insn *.
14875
14876         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
14877         param of this duplicate of the prototype from reload.h
14878
14879 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14880
14881         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
14882         rtx to rtx_insn *.
14883         (regstat_bb_compute_calls_crossed): Likewise.
14884
14885 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14886
14887         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
14888         to rtx_insn *.
14889         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
14890         with an insn.
14891         (regrename_analyze): Strengthen local "insn" from rtx to
14892         rtx_insn *.
14893         (scan_rtx_reg): Likewise for param "insn".
14894         (scan_rtx_address): Likewise.
14895         (scan_rtx): Likewise.
14896         (restore_operands): Likewise.
14897         (record_out_operands): Likewise.
14898         (build_def_use): Likewise for local "insn".  Replace use of
14899         NULL_RTX with NULL when dealing with an insn.
14900
14901 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14902
14903         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
14904         * reginfo.c (reg_scan): Likewise, also for local "insn".
14905         (reg_scan_mark_refs): Likewise for param "insn".
14906         (init_subregs_of_mode): Likewise for local "insn".
14907
14908 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14909
14910         * regcprop.c (struct queued_debug_insn_change): Strengthen field
14911         "insn" from rtx to rtx_insn *.
14912         (replace_oldest_value_reg): Likewise for param "insn".
14913         (replace_oldest_value_addr): Likewise.
14914         (replace_oldest_value_mem): Likewise.
14915         (apply_debug_insn_changes): Likewise for local "last_insn".
14916         (copyprop_hardreg_forward_1): Likewise for local "insn".
14917
14918 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14919
14920         * reg-stack.c (next_flags_user): Strengthen return type and param
14921         "insn" from rtx to rtx_insn *.
14922         (straighten_stack): Likewise for param "insn".
14923         (check_asm_stack_operands): Likewise.
14924         (remove_regno_note): Likewise.
14925         (emit_pop_insn): Likewise for return type, param "insn", local
14926         "pop_insn".
14927         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
14928         "limit" from rtx to rtx_insn *.
14929         (swap_to_top): Likewise for param "insn".
14930         (move_for_stack_reg): Likewise.
14931         (move_nan_for_stack_reg): Likewise.
14932         (swap_rtx_condition): Likewise.
14933         (compare_for_stack_reg): Likewise.
14934         (subst_all_stack_regs_in_debug_insn): Likewise.
14935         (subst_stack_regs_pat): Likewise, and local "insn2".
14936         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
14937         rtx_insn *.
14938         (subst_stack_regs): Likewise.
14939         (change_stack): Likewise.
14940         (convert_regs_1): Likewise for locals "insn", "next".
14941
14942 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14943
14944         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
14945         rtx_insn *.
14946         (combine_set_extension): Likewise for param "curr_insn".
14947         (transform_ifelse): Likewise for param "def_insn".
14948         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
14949         from vec<rtx> * to vec<rtx_insn *> *.
14950         (is_cond_copy_insn): Likewise for param "insn".
14951         (struct ext_state): Strengthen the four vec fields from vec<rtx>
14952         to vec<rtx_insn *>.
14953         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
14954         local "def_insn" from rtx to rtx_insn *.
14955         (get_sub_rtx): Likewise for param "def_insn".
14956         (merge_def_and_ext): Likewise.
14957         (combine_reaching_defs): Likewise.
14958         (add_removable_extension): Likewise for param "insn".
14959         (find_removable_extensions): Likewise for local "insn".
14960         (find_and_remove_re): Likewise for locals "curr_insn" and
14961         "def_insn".  Strengthen locals "reinsn_del_list" and
14962         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
14963
14964 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14965
14966         * recog.c (split_insn): Strengthen param "insn" and locals
14967         "first", "last" from rtx to rtx_insn *.
14968         (split_all_insns): Likewise for locals "insn", "next".
14969         (split_all_insns_noflow): Likewise.
14970
14971 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14972
14973         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
14974         const rtx_insn *.
14975         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
14976         (debug_rtx_find): Likewise for param 1 "x".
14977
14978         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
14979         const_rtx to const rtx_insn *.  Likewise for local "insn".
14980         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
14981         (debug_rtx_find): Likewise for param 1 "x".
14982         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
14983         from const_rtx to const rtx_insn * within the appropriate cases of
14984         the switch statement.
14985
14986         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
14987         Strengthen local "insns" from rtx to rtx_insn * since this is
14988         passed to a call to debug_rtx_list.
14989
14990 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14991
14992         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
14993         to rtx_insn *.
14994
14995         * function.c (stack_protect_epilogue): Add checked cast to
14996         rtx_insn for now when invoking predict_insn_def.
14997
14998         * predict.c (predict_insn): Strengthen param "insn" from rtx to
14999         rtx_insn *.
15000         (predict_insn_def): Likewise.
15001         (rtl_predict_edge): Likewise for local "last_insn".
15002         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
15003         const rtx_insn *.
15004         (combine_predictions_for_insn): Strengthen param "insn" from rtx
15005         to rtx_insn *.
15006         (bb_estimate_probability_locally): Likewise for local "last_insn".
15007         (expensive_function_p): Likewise for local "insn".
15008
15009         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
15010         local "jmp", since this is used when invoking predict_insn_def.
15011
15012 2014-08-22  Marek Polacek  <polacek@redhat.com>
15013
15014         PR c++/62199
15015         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
15016
15017 2014-08-22  Marek Polacek  <polacek@redhat.com>
15018
15019         PR c/61271
15020         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
15021         a comparison in parens.
15022         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
15023         in parens.
15024
15025 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15026
15027         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
15028         rtx_insn *.
15029
15030         * cprop.c (fis_get_condition): Likewise.
15031
15032         * postreload.c (reload_cse_regs): Likewise for param "first".
15033         (reload_cse_simplify): Likewise for param "insn".
15034         (reload_cse_regs_1): Likewise for local "insn".
15035         (reload_cse_simplify_set): Likewise for param "insn".
15036         (reload_cse_simplify_operands): Likewise.
15037         (struct reg_use): Likewise for field "insn".
15038         (reload_combine_purge_insn_uses): Likewise for param "insn".
15039         (fixup_debug_insns): Likewise for params "from", "to" and local
15040         "insn".
15041         (try_replace_in_use): Likewise for local "use_insn".
15042         (reload_combine_recognize_const_pattern): Likewise for param
15043         "insn" and locals "add_moved_after_insn", "use_insn".
15044         (reload_combine_recognize_pattern): Likewise for param "insn" and
15045         local "prev".
15046         (reload_combine): Likewise for locals "insn", "prev".
15047         (reload_combine_note_use): Likewise for param "insn".
15048         (move2add_use_add2_insn): Likewise.
15049         (move2add_use_add3_insn): Likewise.
15050         (reload_cse_move2add): Likewise, also for local "next".
15051         (move2add_note_store): Likewise for local "insn".
15052
15053 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15054
15055         * postreload-gcse.c (struct occr): Strengthen field "insn" from
15056         rtx to rtx_insn *.
15057         (struct unoccr): Likewise.
15058         (struct modifies_mem): Likewise.
15059         (alloc_mem): Likewise for local "insn".
15060         (insert_expr_in_table): Likewise for param "insn".
15061         (dump_expr_hash_table_entry): Likewise for local "insn".
15062         (oprs_unchanged_p): Likewise for param "insn".
15063         (load_killed_in_block_p): Likewise for local "setter".
15064         (record_last_reg_set_info): Likewise for param "insn".
15065         (record_last_reg_set_info_regno): Likewise.
15066         (record_last_mem_set_info): Likewise.
15067         (record_last_set_info): Likewise for local "last_set_insn".
15068         (record_opr_changes): Likewise for param "insn".
15069         (hash_scan_set): Likewise.
15070         (compute_hash_table): Likewise for local "insn".
15071         (get_avail_load_store_reg): Likewise for param "insn".
15072         (eliminate_partially_redundant_load): Likewise, also for locals
15073         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
15074         RTX for insns.
15075         (eliminate_partially_redundant_loads): Likewise for local "insn".
15076
15077 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15078
15079         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
15080         rtx to rtx_insn *.
15081         (expand_binop): Likewise for locals "entry_last", "last", "insns"
15082         (expand_twoval_unop): Likewise for locals entry_last", "last".
15083         (expand_twoval_binop): Likewise.
15084         (expand_twoval_binop_libfunc): Likewise for local "insns".
15085         (widen_leading): Likewise for local "last".
15086         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
15087         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
15088         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
15089         (expand_parity): Likewise for locals "last" and "seq".
15090         (expand_ffs): Likewise for local "seq".  Strengthen local
15091         "nonzero_label" from rtx to rtx_code_label *.
15092         (expand_absneg_bit): Strengthen local "insns" from rtx to
15093         rtx_insn *.
15094         (expand_unop_direct): Likewise for local "last".
15095         (expand_unop): Likewise for locals "last", "insns".
15096         (expand_abs_nojump): Likewise for local "last".
15097         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
15098         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
15099         rtx_insn *.
15100         (expand_copysign_absneg): Strengthen local "label" from rtx to
15101         rtx_code_label *.
15102         (expand_copysign_bit): Strengthen local "insns" from rtx to
15103         rtx_insn *.
15104         (struct no_conflict_data): Likewise for fields "first", "insn".
15105         (emit_libcall_block_1): Likewise for param "insns" and locals
15106         "next", "last", "insn".
15107         (emit_libcall_block): For now, add a checked cast to rtx_insn *
15108         on "insns" when invoking emit_libcall_block_1.  Ultimately we
15109         want to strengthen insns itself.
15110         (prepare_cmp_insn): Strengthen local "last" from rtx to
15111         rtx_insn *.
15112         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
15113         (prepare_float_lib_cmp): Likewise for local "insns".
15114         (emit_conditional_move): Likewise for local "last".
15115         (emit_conditional_add): Likewise.
15116         (have_sub2_insn): Likewise for local "seq".
15117         (expand_float): Likewise for local "insns".  Strengthen locals
15118         "label", "neglabel" from rtx to rtx_code_label *.
15119         (expand_fix): Likewise for locals "last", "insn", "insns" (to
15120         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
15121         (expand_fixed_convert): Likewise for local "insns" (to
15122         rtx_insn *).
15123         (expand_sfix_optab): Likewise for local "last".
15124         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
15125         to rtx_code_label *.
15126         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
15127         from rtx to rtx_insn *.
15128         (expand_atomic_fetch_op): Likewise for local "insn".
15129         (maybe_legitimize_operand_same_code): Likewise for local "last".
15130         (maybe_legitimize_operands): Likewise.
15131
15132 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15133
15134         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
15135         "insn" from rtx to rtx_insn *.
15136         (ps_rtl_insn): Likewise for return type.
15137         (doloop_register_get): Likewise for params "head", "tail" and
15138         locals "insn", "first_insn_not_to_check".
15139         (schedule_reg_move): Likewise for local "this_insn".
15140         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
15141         of gen_move_insn for now.
15142         (reset_sched_times): Strengthen local "insn" from rtx to
15143         rtx_insn *.
15144         (permute_partial_schedule): Likewise.
15145         (duplicate_insns_of_cycles): Likewise for local "u_insn".
15146         (dump_insn_location): Likewise for param "insn".
15147         (loop_canon_p): Likewise for local "insn".
15148         (sms_schedule): Likewise.
15149         (print_partial_schedule): Likewise.
15150         (ps_has_conflicts): Likewise.
15151
15152 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15153
15154         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
15155         "tailp" from rtx * to rtx_insn **.
15156
15157         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
15158         from rtx to rtx_insn *.
15159         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
15160         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
15161         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
15162         rtx to rtx_insn *.
15163         * modulo-sched.c (const_iteration_count): Strengthen return type
15164         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
15165         use of NULL_RTX with NULL when working with insns.
15166         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
15167         to rtx_insn *.
15168         (sms_schedule): Likewise.
15169         * sched-rgn.c (init_ready_list): Likewise, also for locals
15170         "src_head" and "src_next_tail".
15171         (compute_block_dependences): Likewise.
15172         (free_block_dependencies): Likewise.
15173         (debug_rgn_dependencies): Likewise.
15174         (free_rgn_deps): Likewise.
15175         (compute_priorities): Likewise.
15176         (schedule_region): Likewise.
15177         * sel-sched.c (find_ebb_boundaries): Likewise.
15178
15179         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
15180         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
15181
15182 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15183
15184         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
15185         from rtx to rtx_insn *.
15186         (new_seginfo): Likewise for param "insn".
15187         (create_pre_exit): Likewise for locals "last_insn",
15188         "before_return_copy", "return_copy".
15189         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
15190         "mode_set".
15191
15192 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15193
15194         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
15195         from rtx to rtx_insn *.
15196         (lra_push_insn): Likewise for 1st param.
15197         (lra_push_insn_and_update_insn_regno_info): Likewise.
15198         (lra_pop_insn): Likewise for return type.
15199         (lra_invalidate_insn_data): Likewise for 1st param.
15200         (lra_set_insn_deleted): Likewise.
15201         (lra_delete_dead_insn): Likewise.
15202         (lra_process_new_insns): Likewise for first 3 params.
15203         (lra_set_insn_recog_data): Likewise for 1st param.
15204         (lra_update_insn_recog_data): Likewise.
15205         (lra_set_used_insn_alternative): Likewise.
15206         (lra_invalidate_insn_regno_info): Likewise.
15207         (lra_update_insn_regno_info): Likewise.
15208         (lra_former_scratch_operand_p): Likewise.
15209         (lra_eliminate_regs_1): Likewise.
15210         (lra_get_insn_recog_data): Likewise.
15211
15212         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
15213         rtx to rtx_insn *.
15214
15215         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
15216         "mv1" and "mv2".
15217         (substitute_within_insn): New.
15218         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
15219         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
15220         Replace call to "substitute" with call to substitute_within_insn.
15221
15222         * lra-constraints.c (curr_insn): Strengthen from rtx to
15223         rtx_insn *.
15224         (get_equiv_with_elimination): Likewise for param "insn".
15225         (match_reload): Strengthen params "before" and "after" from rtx *
15226         to rtx_insn **.
15227         (emit_spill_move): Likewise for return type.  Add a checked cast
15228         to rtx_insn * on result of gen_move_insn for now.
15229         (check_and_process_move): Likewise for local "before".  Replace
15230         NULL_RTX with NULL when referring to insns.
15231         (process_addr_reg): Strengthen params "before" and "after" from
15232         rtx * to rtx_insn **.
15233         (insert_move_for_subreg): Likewise.
15234         (simplify_operand_subreg): Strengthen locals "before" and "after"
15235         from rtx to rtx_insn *.
15236         (process_address_1): Strengthen params "before" and "after" from
15237         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
15238         rtx to rtx_insn *.
15239         (process_address): Strengthen params "before" and "after" from
15240         rtx * to rtx_insn **.
15241         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
15242         (curr_insn_transform): Strengthen locals "before" and "after"
15243         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
15244         to insns.
15245         (loc_equivalence_callback): Update cast of "data", changing
15246         resulting type from rtx to rtx_insn *.
15247         (substitute_pseudo_within_insn): New.
15248         (inherit_reload_reg): Strengthen param "insn" from rtx to
15249         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
15250         NULL when referring to insns.  Add a checked cast to rtx_insn *
15251         when using usage_insn to invoke lra_update_insn_regno_info.
15252         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
15253         likewise for locals "restore", "save".  Add checked casts to
15254         rtx_insn * when using usage_insn to invoke
15255         lra_update_insn_regno_info and lra_process_new_insns.  Replace
15256         NULL_RTX with NULL when referring to insns.
15257         (split_if_necessary): Strengthen param "insn" from rtx to
15258         rtx_insn *.
15259         (update_ebb_live_info): Likewise for params "head", "tail" and local
15260         "prev_insn".
15261         (get_last_insertion_point): Likewise for return type and local "insn".
15262         (get_live_on_other_edges): Likewise for local "last".
15263         (inherit_in_ebb): Likewise for params "head", "tail" and locals
15264         "prev_insn", "next_insn", "restore".
15265         (remove_inheritance_pseudos): Likewise for local "prev_insn".
15266         (undo_optional_reloads): Likewise for local "insn".
15267
15268         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
15269         "insn".
15270         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
15271         insns.
15272         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
15273         rtx_insn *.
15274         (spill_pseudos): Likewise for local "insn".
15275         (init_elimination): Likewise.
15276         (process_insn_for_elimination): Likewise for param "insn".
15277
15278         * lra-lives.c (curr_insn): Likewise.;
15279
15280         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
15281         (remove_pseudos): Likewise for param "insn".
15282         (spill_pseudos): Likewise for local "insn".
15283         (lra_final_code_change): Likewise for locals "insn", "curr".
15284
15285         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
15286         (lra_set_insn_deleted): Likewise.
15287         (lra_delete_dead_insn): Likewise, and for local "prev".
15288         (new_insn_reg): Likewise for param "insn".
15289         (lra_set_insn_recog_data): Likewise.
15290         (lra_update_insn_recog_data): Likewise.
15291         (lra_set_used_insn_alternative): Likewise.
15292         (get_insn_freq): Likewise.
15293         (invalidate_insn_data_regno_info): Likewise.
15294         (lra_invalidate_insn_regno_info): Likewise.
15295         (lra_update_insn_regno_info): Likewise.
15296         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
15297         vec<rtx_insn *>.
15298         (lra_push_insn_1): Strengthen param "insn" from rtx to
15299         rtx_insn *.
15300         (lra_push_insn): Likewise.
15301         (lra_push_insn_and_update_insn_regno_info): Likewise.
15302         (lra_pop_insn): Likewise for return type and local "insn".
15303         (push_insns): Likewise for params "from", "to", and local "insn".
15304         (setup_sp_offset): Likewise for params "from", "last" and locals
15305         "before", "insn".
15306         (lra_process_new_insns): Likewise for params "insn", "before",
15307         "after" and local "last".
15308         (struct sloc): Likewise for field "insn".
15309         (lra_former_scratch_operand_p): Likewise for param "insn".
15310         (remove_scratches): Likewise for locals "insn", "last".
15311         (check_rtl): Likewise for local "insn".
15312         (add_auto_inc_notes): Likewise for param "insn".
15313         (update_inc_notes): Likewise for local "insn".
15314         (lra): Replace NULL_RTX with NULL when referring to insn.
15315
15316 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15317
15318         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
15319         to rtx_insn *.
15320         (resolve_reg_notes): Likewise.
15321         (resolve_simple_move): Likewise for return type, param "insn", and
15322         locals "insns", "minsn".
15323         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
15324         (resolve_use): Likewise.
15325         (resolve_debug): Likewise.
15326         (find_decomposable_shift_zext): Likewise.
15327         (resolve_shift_zext): Likewise for return type, param "insn", and
15328         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
15329         (decompose_multiword_subregs): Likewise for local "insn",
15330         "orig_insn", "decomposed_shift", "end".
15331
15332 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15333
15334         * basic-block.h (basic_block split_edge_and_insert): Strengthen
15335         param "insns" from rtx to rtx_insn *.
15336
15337         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
15338         rtx to rtx_insn *.
15339         (struct iv_to_split): Likewise.
15340         (loop_exit_at_end_p): Likewise for local "insn".
15341         (split_edge_and_insert): Likewise for param "insns".
15342         (compare_and_jump_seq): Likewise for return type, param "cinsn",
15343         and locals "seq", "jump".
15344         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
15345         "branch_code"; update invocations of compare_and_jump_seq to
15346         eliminate NULL_RTX in favor of NULL.
15347         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
15348         rtx to rtx_insn *.
15349         (reset_debug_uses_in_loop): Likewise.
15350         (analyze_insn_to_expand_var): Likewise for param "insn".
15351         (analyze_iv_to_split_insn): Likewise.
15352         (analyze_insns_in_loop): Likewise for local "insn".
15353         (insert_base_initialization): Likewise for param
15354         "insn" and local "seq".
15355         (split_iv): Likewise for param "insn" and local "seq".
15356         (expand_var_during_unrolling): Likewise for param "insn".
15357         (insert_var_expansion_initialization): Likewise for local "seq".
15358         (combine_var_copies_in_loop_exit): Likewise.
15359         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
15360         "insn".
15361         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
15362         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
15363         "next".
15364
15365 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15366
15367         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
15368         rtx_insn *.
15369         (iv_analyze_result): Likewise.
15370         (iv_analyze_expr): Likewise.
15371         (biv_p): Likewise.
15372
15373         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
15374         local "def_insn" from rtx to rtx_insn *.
15375         (get_biv_step_1): Likewise for local "insn".
15376         (iv_analyze_expr): Likewise for param "insn".
15377         (iv_analyze_def): Likewise for local "insn".
15378         (iv_analyze_op): Likewise for param "insn".
15379         (iv_analyze): Likewise.
15380         (iv_analyze_result): Likewise.
15381         (biv_p): Likewise.
15382         (suitable_set_for_replacement): Likewise.
15383         (simplify_using_initial_values): Likewise for local "insn".
15384         (iv_number_of_iterations): Likewise for param "insn".
15385         (check_simple_exit): Add checked cast to rtx_insn when invoking
15386         iv_number_of_iterations for now (until get_condition is
15387         strengthened).
15388
15389         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
15390         "insn" from rtx to rtx_insn *.
15391         (analyze_insns_in_loop): Likewise for local "insn".
15392
15393 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15394
15395         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
15396         to rtx_insn *.
15397         (struct invariant): Likewise.
15398         (hash_invariant_expr_1): Likewise for param "insn".
15399         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
15400         (find_exits): Likewise for local "insn".
15401         (create_new_invariant): Likewise for param "insn".
15402         (check_dependencies): Likewise.
15403         (find_invariant_insn): Likewise.
15404         (record_uses): Likewise.
15405         (find_invariants_insn): Likewise.
15406         (find_invariants_bb): Likewise for local "insn".
15407         (get_pressure_class_and_nregs): Likewise for param "insn".
15408         (calculate_loop_reg_pressure): Likewise for local "insn".
15409
15410 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15411
15412         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
15413         to rtx_insn *.
15414         (add_test): Likewise for locals "seq", "jump".
15415         (doloop_modify): Likewise for locals "sequence", "jump_insn".
15416
15417 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15418
15419         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
15420         rtx_insn *.
15421         (rebuild_jump_labels_chain): Likewise for param "chain".
15422
15423         * cfgexpand.c (pass_expand::execute): Add checked cast to
15424         rtx_insn * when calling rebuild_jump_labels_chain in region where
15425         we know e->insns.r is non-NULL.
15426
15427         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
15428         rtx_insn *.
15429         (rebuild_jump_labels): Likewise.
15430         (rebuild_jump_labels_chain): Likewise for param "chain".
15431         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
15432         (init_label_info): Likewise for param "f".
15433         (maybe_propagate_label_ref): Likewise for params "jump_insn",
15434         "prev_nonjump_insn".
15435         (mark_all_labels): Likewise for param "f" and locals "insn",
15436         "prev_nonjump_insn".
15437
15438 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15439
15440         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
15441         from rtx to rtx_insn *insn.
15442         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
15443         (ira_add_allocno_copy): Likewise.
15444         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
15445         rtx to rtx_insn *.
15446         (ira_create_copy): Likewise.
15447         (ira_add_allocno_copy): Likewise.
15448         (create_bb_allocnos): Likewise for local "insn".
15449         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
15450         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
15451         process_regs_for_copy for rtx_insn * param.
15452         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
15453         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
15454         process_regs_for_copy for rtx_insn * param.
15455         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
15456         * ira-costs.c (record_reg_classes): Likewise for param "insn".
15457         (record_operand_costs): Likewise.
15458         (scan_one_insn): Likewise for return type, and for param "insn".
15459         (process_bb_for_costs): Likewise for local "insn".
15460         (process_bb_node_for_hard_reg_moves): Likewise.
15461         * ira-emit.c (struct move): Likewise for field "insn".
15462         (create_move): Eliminate use of NULL_RTX when dealing with an
15463         rtx_insn *.
15464         (emit_move_list): Strengthen return type and locals "result",
15465         "insn" from rtx to rtx_insn *insn.
15466         (emit_moves): Likewise for locals "insns", "tmp".
15467         (ira_emit): Likewise for local "insn".
15468         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
15469         "insn".
15470         (find_call_crossed_cheap_reg): Likewise.
15471         (process_bb_node_lives): Likewise for local "insn".
15472         * ira.c (decrease_live_ranges_number): Likewise.
15473         (compute_regs_asm_clobbered): Likewise.
15474         (build_insn_chain): Likewise.
15475         (find_moveable_pseudos): Likewise, also locals "def_insn",
15476         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
15477         to rtx_insn **.  Add a checked cast when assigning from
15478         "closest_use" into closest_uses array in a region where we know
15479         it's a non-NULL insn.
15480         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
15481         to rtx_insn *.
15482         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
15483         "last_interesting_insn", "uin".
15484         (move_unallocated_pseudos): Likewise for locals "def_insn",
15485         "move_insn", "newinsn".
15486
15487 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15488
15489         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
15490         Strengthen locals "done_label", "do_error" from rtx to
15491         rtx_code_label *.
15492         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
15493         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
15494         rtx_code_label *.
15495         (ubsan_expand_si_overflow_neg_check): Likewise for locals
15496         "done_label", "do_error" to rtx_code_label * and local  "last" to
15497         rtx_insn *.
15498         (ubsan_expand_si_overflow_mul_check): Likewise for locals
15499         "done_label", "do_error", "large_op0", "small_op0_large_op1",
15500         "one_small_one_large", "both_ops_large", "after_hipart_neg",
15501         "after_lopart_neg", "do_overflow", "hipart_different"  to
15502         rtx_code_label * and local  "last" to rtx_insn *.
15503
15504 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15505
15506         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
15507         "insn" and "move_insn" from rtx to rtx_insn *.
15508
15509 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15510
15511         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
15512         rtx_insn *.
15513         (cheap_bb_rtx_cost_p): Likewise.
15514         (first_active_insn): Likewise for return type and local "insn".
15515         (last_active_insn):  Likewise for return type and locals "insn",
15516         "head".
15517         (struct noce_if_info): Likewise for fields "jump", "insn_a",
15518         "insn_b".
15519         (end_ifcvt_sequence): Likewise for return type and locals "insn",
15520         "seq".
15521         (noce_try_move): Likewise for local "seq".
15522         (noce_try_store_flag): Likewise.
15523         (noce_try_store_flag_constants): Likewise.
15524         (noce_try_addcc): Likewise.
15525         (noce_try_store_flag_mask): Likewise.
15526         (noce_try_cmove): Likewise.
15527         (noce_try_minmax): Likewise.
15528         (noce_try_abs): Likewise.
15529         (noce_try_sign_mask): Likewise.
15530         (noce_try_bitop): Likewise.
15531         (noce_can_store_speculate_p): Likewise for local "insn".
15532         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
15533         seq".
15534         (check_cond_move_block): Likewise for local "insn".
15535         (cond_move_convert_if_block): Likewise.
15536         (cond_move_process_if_block): Likewise for locals "seq",
15537         "loc_insn".
15538         (noce_find_if_block): Likewise for local "jump".
15539         (merge_if_block): Likewise for local "last".
15540         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
15541         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
15542         (block_has_only_trap): Likewise for return type and local "trap".
15543         (find_if_case_1): Likewise for local "jump".
15544         (dead_or_predicable): Likewise for locals "head", "end", "jump",
15545         "insn".
15546
15547 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15548
15549         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
15550         "last_insn", "loop_end" from rtx to rtx_insn *.
15551
15552         * hw-doloop.c (scan_loop): Likewise for local "insn".
15553         (discover_loop): Likewise for param "tail_insn".
15554         (discover_loops): Likewise for local "tail".
15555
15556         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
15557         cast to rtx_insn * when assigning from an rtx local to a
15558         hwloop_info's "last_insn" field.
15559
15560 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15561
15562         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
15563         (add_delay_dependencies): Strengthen local "pro" from rtx to
15564         rtx_insn *.
15565         (recompute_todo_spec): Likewise.
15566         (dep_cost_1): Likewise for locals "insn", "used".
15567         (schedule_insn): Likewise for local "dbg".
15568         (schedule_insn): Likewise for locals "pro", "next".
15569         (unschedule_insns_until): Likewise for local "con".
15570         (restore_pattern): Likewise for local "next".
15571         (estimate_insn_tick): Likewise for local "pro".
15572         (resolve_dependencies): Likewise for local "next".
15573         (fix_inter_tick): Likewise.
15574         (fix_tick_ready): Likewise for local "pro".
15575         (add_to_speculative_block): Likewise for locals "check", "twin",
15576         "pro".
15577         (sched_extend_bb): Likewise for locals "end", "insn".
15578         (init_before_recovery): Likewise for local "x".
15579         (sched_create_recovery_block): Likewise for local "barrier".
15580         (create_check_block_twin): Likewise for local "pro".
15581         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
15582         "consumer".
15583         (unlink_bb_notes): Update for change to type of bb_header.
15584         Strengthen locals "prev", "label", "note", "next" from rtx to
15585         rtx_insn *.
15586         (clear_priorities): Likewise for local "pro".
15587
15588 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15589
15590         * gcse.c (struct occr): Strengthen field "insn" from rtx to
15591         rtx_insn *.
15592         (test_insn): Likewise for this global.
15593         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
15594         const rtx_insn *.
15595         (oprs_anticipatable_p): Likewise.
15596         (oprs_available_p): Likewise.
15597         (insert_expr_in_table): Strengthen param "insn" from  rtx to
15598         rtx_insn *.
15599         (hash_scan_set): Likewise.
15600         (hash_scan_clobber): Likewise.
15601         (hash_scan_call): Likewise.
15602         (hash_scan_insn): Likewise.
15603         (compute_hash_table_work): Likewise for local "insn".
15604         (process_insert_insn): Likewise for return type and local "pat".
15605         (insert_insn_end_basic_block): Likewise for locals "new_insn",
15606         "pat", "pat_end", "maybe_cc0_setter".
15607         (pre_edge_insert): Likewise for local "insn".
15608         (pre_insert_copy_insn): Likewise for param "insn".
15609         (pre_insert_copies): Likewise for local "insn".
15610         (struct set_data): Likewise for field "insn".
15611         (single_set_gcse): Likewise for param "insn".
15612         (gcse_emit_move_after): Likewise.
15613         (pre_delete): Likewise for local "insn".
15614         (update_bb_reg_pressure): Likewise for param "from" and local
15615         "insn".
15616         (should_hoist_expr_to_dom): Likewise for param "from".
15617         (hoist_code): Likewise for local "insn".
15618         (get_pressure_class_and_nregs): Likewise for param "insn".
15619         (calculate_bb_reg_pressure): Likewise for local "insn".
15620         (compute_ld_motion_mems): Likewise.
15621
15622 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15623
15624         * genpeep.c (main): Rename param back from "uncast_ins1" to
15625         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
15626         checked cast.
15627
15628         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
15629
15630 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
15631
15632         PR target/62195
15633         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
15634         documentation to state it is only for VSX operations.
15635
15636         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
15637         constraint only active if VSX.
15638
15639         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
15640         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
15641         (lfiwzx): Likewise.
15642
15643 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15644
15645         * fwprop.c (single_def_use_dom_walker::before_dom_children):
15646         Strengthen local "insn" from rtx to rtx_insn *.
15647         (use_killed_between): Likewise for param "target_insn".
15648         (all_uses_available_at): Likewise for param "target_insn" and
15649         local "next".
15650         (update_df_init): Likewise for params "def_insn", "insn".
15651         (update_df): Likewise for param "insn".
15652         (try_fwprop_subst): Likewise for param "def_insn" and local
15653         "insn".
15654         (free_load_extend): Likewise for param "insn".
15655         (forward_propagate_subreg): Likewise for param "def_insn" and
15656         local "use_insn".
15657         (forward_propagate_asm): Likewise for param "def_insn" and local
15658         "use_insn".
15659         (forward_propagate_and_simplify): Likewise for param "def_insn"
15660         and local "use_insn".
15661         (forward_propagate_into): Likewise for locals "def_insn" and
15662         "use_insn".
15663
15664 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15665
15666         * function.c (emit_initial_value_sets): Strengthen local "seq"
15667         from rtx to rtx_insn *.
15668         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
15669         local "seq".
15670         (instantiate_virtual_regs): Likewise for local "insn".
15671         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
15672         (reorder_blocks_1): Likewise for param "insns" and local "insn".
15673         (expand_function_end): Likewise for locals "insn" and "seq".
15674         (epilogue_done): Likewise for local "insn".
15675         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
15676         "last", "trial".
15677         (reposition_prologue_and_epilogue_notes): Likewise for locals
15678         "insn", "last", "note", "first".
15679         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
15680         (pass_match_asm_constraints::execute): Likewise for local "insn".
15681
15682 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15683
15684         * output.h (final_scan_insn): Strengthen return type from rtx to
15685         rtx_insn *.
15686         (final_forward_branch_p): Likewise for param.
15687         (current_output_insn): Likewise for this global.
15688
15689         * final.c (rtx debug_insn): Likewise for this variable.
15690         (current_output_insn): Likewise.
15691         (get_attr_length_1): Rename param "insn" to "uncast_insn",
15692         adding "insn" back in as an rtx_insn * with a checked cast, so
15693         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
15694         first param.
15695         (compute_alignments): Strengthen local "label" from rtx to
15696         rtx_insn *.
15697         (shorten_branches): Rename param from "first" to "uncast_first",
15698         introducing a new local rtx_insn * "first" using a checked cast to
15699         effectively strengthen "first" from rtx to rtx_insn * without
15700         affecting the type signature.  Strengthen locals "insn", "seq",
15701         "next", "label" from rtx to rtx_insn *.
15702         (change_scope): Strengthen param "orig_insn" and local "insn" from
15703         rtx to rtx_insn *.
15704         (final_start_function): Rename param from "first" to "uncast_first",
15705         introducing a new local rtx_insn * "first" using a checked cast to
15706         effectively strengthen "first" from rtx to rtx_insn * without
15707         affecting the type signature.  Strengthen local "insn" from rtx to
15708         rtx_insn *.
15709         (dump_basic_block_info): Strengthen param "insn" from rtx to
15710         rtx_insn *.
15711         (final): Rename param from "first" to "uncast_first",
15712         introducing a new local rtx_insn * "first" using a checked cast to
15713         effectively strengthen "first" from rtx to rtx_insn * without
15714         affecting the type signature.  Strengthen locals "insn", "next"
15715         from rtx to rtx_insn *.
15716         (output_alternate_entry_point): Strengthen param "insn" from rtx to
15717         rtx_insn *.
15718         (call_from_call_insn): Strengthen param "insn" from rtx to
15719         rtx_call_insn *.
15720         (final_scan_insn): Rename param from "insn" to "uncast_insn",
15721         introducing a new local rtx_insn * "insn" using a checked cast to
15722         effectively strengthen "insn" from rtx to rtx_insn * without
15723         affecting the type signature.  Strengthen return type and locals
15724         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
15725         now-redundant checked cast to rtx_insn * from both invocations of
15726         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
15727         introducing a local "call_insn" for use when invoking
15728         call_from_call_insn.
15729         (notice_source_line): Strengthen param "insn" from rtx to
15730         rtx_insn *.
15731         (leaf_function_p): Likewise for local "insn".
15732         (final_forward_branch_p): Likewise.
15733         (leaf_renumber_regs): Likewise for param "first".
15734         (rest_of_clean_state): Likewise for locals "insn" and "next".
15735         (self_recursive_call_p): Likewise for param "insn".
15736         (collect_fn_hard_reg_usage): Likewise for local "insn".
15737         (get_call_fndecl): Likewise for param "insn".
15738         (get_call_cgraph_rtl_info): Likewise.
15739         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
15740         introducing a new local rtx_insn * "insn" using a checked cast to
15741         effectively strengthen "insn" from rtx to rtx_insn * without
15742         affecting the type signature.
15743
15744         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
15745         cast when assigning from param "insn" to current_output_insn.
15746         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
15747         so that we can assign it back to current_output_insn.
15748
15749 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15750
15751         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
15752         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
15753         atmxt540s and atmxt540sreva devices.
15754         * config/avr/avr-tables.opt: Regenerate.
15755         * config/avr/t-multilib: Regenerate.
15756         * doc/avr-mmcu.texi: Regenerate.
15757
15758 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15759
15760         * expr.c (convert_move): Strengthen local "insns" from rtx to
15761         rtx_insn *.
15762         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
15763         "top_label" from rtx to rtx_code_label *.
15764         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
15765         rtx_insn *.
15766         (emit_single_push_insn): Likewise for locals "prev", "last".
15767         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
15768         to rtx_code_label *.
15769         (store_constructor): Likewise for locals "loop_start", "loop_end".
15770         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
15771         rtx_insn *.
15772         (expand_expr_real_2): Likewise.
15773         (expand_expr_real_1): Strengthen local "label" from rtx to
15774         rtx_code_label *.
15775
15776 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15777
15778         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
15779         from rtx to rtx_insn *.
15780         (store_bit_field_1): Likewise.
15781         (extract_bit_field_1): Likewise.
15782         (expand_mult_const): Likewise for local "insns".
15783         (expmed_mult_highpart): Strengthen local "label" from rtx to
15784         rtx_code_label *.
15785         (expand_smod_pow2): Likewise.
15786         (expand_sdiv_pow2): Likewise.
15787         (expand_divmod): Strengthen locals "last", "insn" from rtx to
15788         rtx_insn *.  Strengthen locals "label", "label1", "label2",
15789         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
15790         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
15791         (emit_store_flag): Likewise.
15792         (emit_store_flag_force): Strengthen local "label" from rtx to
15793         rtx_code_label *.
15794         (do_cmp_and_jump): Likewise for param "label".
15795
15796 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15797
15798         * explow.c (force_reg): Strengthen local "insn" from rtx to
15799         rtx_insn *.
15800         (adjust_stack_1): Likewise.
15801         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
15802         "final_label", "available_label", "space_available" from rtx to
15803         rtx_code_label *.
15804         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
15805         (anti_adjust_stack_and_probe): Likewise.
15806
15807 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15808
15809         * except.h (sjlj_emit_function_exit_after): Strengthen param
15810         "after" from rtx to rtx_insn *.  This is only called with
15811         result of get_last_insn (in function.c) so type-change should be
15812         self-contained.
15813
15814         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
15815         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
15816         to rtx_insn *.  These fields are only used from except.c so this
15817         type-change should be self-contained to this patch.
15818
15819         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
15820         local "last" from rtx to rtx_insn *.
15821         (dw2_build_landing_pads): Likewise for local "seq".
15822         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
15823         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
15824         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
15825         rtx to rtx_insn *.
15826         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
15827         to rtx_insn *.
15828         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
15829         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
15830         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
15831         referring to an insn.  Strengthen local "dispatch_label" from
15832         rtx to rtx_code_label *.
15833         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
15834         rtx_insn *.
15835         (expand_eh_return): Strengthen local "around_label" from
15836         rtx to rtx_code_label *.
15837         (convert_to_eh_region_ranges): Strengthen locals "iter",
15838         "last_action_insn", "first_no_action_insn",
15839         "first_no_action_insn_before_switch",
15840         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
15841
15842 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15843
15844         * dwarf2out.c (last_var_location_insn): Strengthen this variable
15845         from rtx to rtx_insn *.
15846         (cached_next_real_insn): Likewise.
15847         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
15848         working with insns.
15849         (dwarf2out_var_location): Strengthen locals "next_real",
15850         "next_note", "expected_next_loc_note", "last_start", "insn" from
15851         rtx to rtx_insn *.
15852
15853 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15854
15855         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
15856         from rtx to rtx_insn *.
15857         (create_pseudo_cfg): Likewise for local "insn".
15858
15859 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15860
15861         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
15862         from rtx to rtx_insn *.
15863         (df_bb_regno_last_def_find): Likewise.
15864
15865         * df-problems.c (df_rd_bb_local_compute): Likewise.
15866         (df_lr_bb_local_compute): Likewise.
15867         (df_live_bb_local_compute): Likewise.
15868         (df_chain_remove_problem): Likewise.
15869         (df_chain_create_bb): Likewise.
15870         (df_word_lr_bb_local_compute): Likewise.
15871         (df_remove_dead_eq_notes): Likewise for param "insn".
15872         (df_note_bb_compute): Likewise for local "insn".
15873         (simulate_backwards_to_point): Likewise.
15874         (df_md_bb_local_compute): Likewise.
15875
15876         * df-scan.c (df_scan_free_bb_info): Likewise.
15877         (df_scan_start_dump): Likewise.
15878         (df_scan_start_block): Likewise.
15879         (df_install_ref_incremental): Likewise for local "insn".
15880         (df_insn_rescan_all): Likewise.
15881         (df_reorganize_refs_by_reg_by_insn): Likewise.
15882         (df_reorganize_refs_by_insn_bb): Likewise.
15883         (df_recompute_luids): Likewise.
15884         (df_bb_refs_record): Likewise.
15885         (df_update_entry_exit_and_calls): Likewise.
15886         (df_bb_verify): Likewise.
15887
15888 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15889
15890         * ddg.h (struct ddg_node): Strengthen fields "insn" and
15891         "first_note" from rtx to rtx_insn *.
15892         (get_node_of_insn): Likewise for param 2 "insn".
15893         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
15894
15895         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
15896         rtx_insn *.
15897         (mem_write_insn_p): Likewise.
15898         (mem_access_insn_p): Likewise.
15899         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
15900         (def_has_ccmode_p): Likewise for param "insn".
15901         (add_cross_iteration_register_deps): Likewise for locals
15902         "def_insn" and "use_insn".
15903         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
15904         (build_intra_loop_deps): Likewise for local "src_insn".
15905         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
15906         to rtx_insn *.
15907         (get_node_of_insn): Likewise for param "insn".
15908
15909 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15910
15911         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
15912         (deletable_insn_p): Strengthen param "insn" from rtx to
15913         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
15914         find_call_stack_args, since this is guarded by CALL_P (insn).
15915         (marked_insn_p): Strengthen param "insn" from rtx to
15916         rtx_insn *.
15917         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
15918         invoking find_call_stack_args, since this is guarded by
15919         CALL_P (insn).
15920         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
15921         rtx_insn *; we know this is an insn since this was called by
15922         mark_nonreg_stores.
15923         (mark_nonreg_stores_2): Likewise.
15924         (mark_nonreg_stores): Strengthen param "insn" from rtx to
15925         rtx_insn *.
15926         (find_call_stack_args): Strengthen param "call_insn" from rtx to
15927         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
15928         to rtx_insn *.
15929         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
15930         from rtx to rtx_insn *.
15931         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
15932         "next", "ref_insn".
15933         (delete_unmarked_insns): Likewise for locals "insn", "next".
15934         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
15935         (mark_reg_dependencies): Likewise for param "insn".
15936         (rest_of_handle_ud_dce): Likewise for local "insn".
15937         (word_dce_process_block): Likewise.
15938         (dce_process_block): Likewise.
15939
15940 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15941
15942         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
15943         from rtx to rtx_insn *.
15944         (struct change_cc_mode_args): Likewise for field "insn".
15945         (this_insn): Strengthen from rtx to rtx_insn *.
15946         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
15947         with insn.
15948         (validate_canon_reg): Strengthen param "insn" from rtx to
15949         rtx_insn *.
15950         (canon_reg): Likewise.
15951         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
15952         dealing with insn.
15953         (record_jump_equiv): Strengthen param "insn" from rtx to
15954         rtx_insn *.
15955         (try_back_substitute_reg): Likewise, also for locals "prev",
15956         "bb_head".
15957         (find_sets_in_insn): Likewise for param "insn".
15958         (canonicalize_insn): Likewise.
15959         (cse_insn): Likewise.  Add a checked cast.
15960         (invalidate_from_clobbers): Likewise for param "insn".
15961         (invalidate_from_sets_and_clobbers): Likewise.
15962         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
15963         dealing with insn.
15964         (cse_prescan_path): Strengthen local "insn" from rtx to
15965         rtx_insn *.
15966         (cse_extended_basic_block): Likewise for locals "insn" and
15967         "prev_insn".
15968         (cse_main): Likewise for param "f".
15969         (check_for_label_ref): Likewise for local "insn".
15970         (set_live_p): Likewise for second param ("insn").
15971         (insn_live_p): Likewise for first param ("insn") and for local
15972         "next".
15973         (cse_change_cc_mode_insn): Likewise for first param "insn".
15974         (cse_change_cc_mode_insns): Likewise for first and second params
15975         "start" and "end".
15976         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
15977         and "end".
15978         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
15979         "cc_src_insn".
15980
15981 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15982             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15983             Anna Tikhonova  <anna.tikhonova@intel.com>
15984             Ilya Tocar  <ilya.tocar@intel.com>
15985             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15986             Ilya Verbin  <ilya.verbin@intel.com>
15987             Kirill Yukhin  <kirill.yukhin@intel.com>
15988             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15989
15990         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
15991         New.
15992         * config/i386/sse.md
15993         (define_mode_iterator VI248_AVX2): Delete.
15994         (define_mode_iterator VI2_AVX2_AVX512BW): New.
15995         (define_mode_iterator VI48_AVX2): Ditto.
15996         (define_insn <shift_insn><mode>3): Delete.
15997         (define_insn "<shift_insn><mode>3<mask_name>" with
15998         VI2_AVX2_AVX512BW): New.
15999         (define_insn "<shift_insn><mode>3<mask_name>" with
16000         VI48_AVX2): Ditto.
16001
16002 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16003             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16004             Anna Tikhonova  <anna.tikhonova@intel.com>
16005             Ilya Tocar  <ilya.tocar@intel.com>
16006             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16007             Ilya Verbin  <ilya.verbin@intel.com>
16008             Kirill Yukhin  <kirill.yukhin@intel.com>
16009             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16010
16011         * config/i386/sse.md
16012         (define_mode_iterator VI4F_BRCST32x2): New.
16013         (define_mode_attr 64x2_mode): Ditto.
16014         (define_mode_attr 32x2mode): Ditto.
16015         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
16016         with VI4F_BRCST32x2): Ditto.
16017         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
16018         with V16FI mode iterator): Ditto.
16019         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
16020         with V16FI): Ditto.
16021         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
16022         with VI8F_BRCST64x2): Ditto.
16023
16024 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16025             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16026             Anna Tikhonova  <anna.tikhonova@intel.com>
16027             Ilya Tocar  <ilya.tocar@intel.com>
16028             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16029             Ilya Verbin  <ilya.verbin@intel.com>
16030             Kirill Yukhin  <kirill.yukhin@intel.com>
16031             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16032
16033         * config/i386/sse.md
16034         (define_mode_iterator VI8_AVX512VL): New.
16035         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
16036
16037 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
16038
16039         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
16040         (define_mode_iterator V48_AVX512VL): New.
16041         (define_mode_iterator V12_AVX512VL): Ditto.
16042         (define_insn <avx512>_load<mode>_mask): Split into two similar
16043         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
16044         Refactor output template.
16045         (define_insn "<avx512>_store<mode>_mask"): Ditto.
16046
16047 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16048
16049         * cprop.c (struct occr): Strengthen field "insn" from rtx to
16050         rtx_insn *.
16051         (reg_available_p): Likewise for param "insn".
16052         (insert_set_in_table): Likewise.
16053         (hash_scan_set): Likewise.
16054         (hash_scan_insn): Likewise.
16055         (make_set_regs_unavailable): Likewise.
16056         (compute_hash_table_work): Likewise for local "insn".
16057         (reg_not_set_p): Strengthen param "insn" from const_rtx to
16058         const rtx_insn *.
16059         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
16060         (try_replace_reg): Likewise.
16061         (find_avail_set): Likewise.
16062         (cprop_jump): Likewise for params "setcc", "jump".
16063         (constprop_register): Likewise for param "insn".
16064         (cprop_insn): Likewise.
16065         (do_local_cprop): Likewise.
16066         (local_cprop_pass): Likewise for local "insn".
16067         (bypass_block): Likewise for params "setcc" and "jump".
16068         (bypass_conditional_jumps): Likewise for locals "setcc" and
16069         "insn".
16070         (one_cprop_pass): Likewise for local "insn".
16071
16072 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16073
16074         * compare-elim.c (struct comparison_use): Strengthen field "insn"
16075         from rtx to rtx_insn *.
16076         (struct comparison): Likewise, also for field "prev_clobber".
16077         (conforming_compare): Likewise for param "insn".
16078         (arithmetic_flags_clobber_p): Likewise.
16079         (find_flags_uses_in_insn): Likewise.
16080         (find_comparison_dom_walker::before_dom_children): Likewise for
16081         locals "insn", "next", "last_clobber".
16082         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
16083
16084 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16085
16086         * combine-stack-adj.c (struct csa_reflist): Strengthen field
16087         "insn" from rtx to rtx_insn *.
16088         (single_set_for_csa): Likewise for param "insn".
16089         (record_one_stack_ref): Likewise.
16090         (try_apply_stack_adjustment): Likewise.
16091         (struct record_stack_refs_data): Likewise for field "insn".
16092         (maybe_move_args_size_note): Likewise for params "last" and "insn".
16093         (prev_active_insn_bb): Likewise for return type and param "insn".
16094         (next_active_insn_bb): Likewise.
16095         (force_move_args_size_note): Likewise for params "prev" and "last"
16096         and locals "test", "next_candidate", "prev_candidate".
16097         (combine_stack_adjustments_for_block): Strengthen locals
16098         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
16099         rtx_insn *.
16100
16101 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16102
16103         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
16104         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
16105         (subst_insn): Likewise for this variable.
16106         (added_links_insn): Likewise.
16107         (struct insn_link): Likewise for field "insn".
16108         (alloc_insn_link): Likewise for param "insn".
16109         (struct undobuf): Likewise for field "other_insn".
16110         (find_single_use): Likewise for param "insn" and local "next".
16111         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
16112         (delete_noop_moves): Likewise for locals "insn", "next".
16113         (create_log_links): Likewise for locals "insn", "use_insn".
16114         Strengthen local "next_use" from rtx * to rtx_insn **.
16115         (insn_a_feeds_b): Likewise for params "a", "b".
16116         (combine_instructions): Likewise for param "f" and locals "insn",
16117         "next", "prev", "first", "last_combined_insn", "link", "link1",
16118         "temp".  Replace use of NULL_RTX with NULL when referring to
16119         insns.
16120         (setup_incoming_promotions): Likewise for param "first"
16121         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
16122         (can_combine_p): Likewise for params "insn", "i3", "pred",
16123         "pred2", "succ", "succ2" and for local "p".
16124         (combinable_i3pat): Likewise for param "i3".
16125         (cant_combine_insn_p): Likewise for param "insn".
16126         (likely_spilled_retval_p): Likewise.
16127         (adjust_for_new_dest): Likewise.
16128         (update_cfg_for_uncondjump): Likewise, also for local "insn".
16129         (try_combine): Likewise for return type and for params "i3", "i2",
16130         "i1", "i0", "last_combined_insn", and for locals "insn",
16131         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
16132         "i0_insn".  Eliminate local "tem" in favor of new locals
16133         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
16134         checked cast for now to rtx_insn * on the return type of
16135         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
16136         insns.
16137         (find_split_point): Strengthen param "insn" from rtx to
16138         rtx_insn *.
16139         (simplify_set): Likewise for local "other_insn".
16140         (recog_for_combine): Likewise for param "insn".
16141         (record_value_for_reg): Likewise.
16142         (record_dead_and_set_regs_1): Likewise for local
16143         "record_dead_insn".
16144         (record_dead_and_set_regs): Likewise for param "insn".
16145         (record_promoted_value): Likewise.
16146         (check_promoted_subreg): Likewise.
16147         (get_last_value_validate): Likewise.
16148         (reg_dead_at_p): Likewise.
16149         (move_deaths): Likewise for param "to_insn".
16150         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
16151         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
16152         in favor of new locals "tem_note" and "tem_insn", the latter being
16153         an rtx_insn *.
16154         (distribute_links): Strengthen locals "place", "insn" from rtx to
16155         rtx_insn *.
16156
16157 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16158
16159         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
16160         than a const_rtx.
16161         (can_delete_label_p): Require a const rtx_code_label * rather than
16162         a const_rtx.
16163         (delete_insn): Add checked cast to rtx_code_label * when we know
16164         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
16165         rtx to rtx_insn *.
16166         (delete_insn_chain): Strengthen locals "prev" and "current" from
16167         rtx to rtx_insn *.  Add a checked cast when assigning from
16168         "finish" (strengthening the params will come later).  Add a
16169         checked cast to rtx_note * in region where we know
16170         NOTE_P (current).
16171         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
16172         rtx_insn *.
16173         (compute_bb_for_insn): Likewise.
16174         (free_bb_for_insn): Likewise for local "insn".
16175         (compute_bb_for_insn): Likewise.
16176         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
16177         local "insn" from rtx to rtx_insn *
16178         (flow_active_insn_p): Require a const rtx_insn * rather than a
16179         const_rtx.
16180         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
16181         rtx_insn *.
16182         (can_fallthru): Likewise for locals "insn" and "insn2".
16183         (bb_note): Likewise for local "note".
16184         (first_insn_after_basic_block_note): Likewise for local "note" and
16185         for return type.
16186         (rtl_split_block): Likewise for locals "insn" and "next".
16187         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
16188         "end".
16189         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
16190         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
16191         "prev", "tmp".
16192         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
16193         them), "kill_from", "barrier", "new_insn".
16194         (patch_jump_insn): Likewise for params "insn", "old_label".
16195         (redirect_branch_edge): Likewise for locals "old_label", "insn".
16196         (force_nonfallthru_and_redirect): Likewise for locals "insn",
16197         "old_label", "new_label".
16198         (rtl_tidy_fallthru_edge): Likewise for local "q".
16199         (rtl_split_edge): Likewise for locals "before", "last".
16200         (commit_one_edge_insertion): Likewise for locals "before",
16201         "after", "insns", "tmp", "last", adding a checked cast where
16202         currently necessary.
16203         (commit_edge_insertions): Likewise.
16204         (rtl_dump_bb): Likewise for locals "insn", "last".
16205         (print_rtl_with_bb): Likewise for local "x".
16206         (rtl_verify_bb_insns): Likewise for local "x".
16207         (rtl_verify_bb_pointers): Likewise for local "insn".
16208         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
16209         "head", "end".
16210         (rtl_verify_fallthru): Likewise for local "insn".
16211         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
16212         (purge_dead_edges): Likewise for local "insn".
16213         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
16214         (skip_insns_after_block): Likewise for return type and for locals
16215         "insn", "last_insn", "next_head", "prev".
16216         (record_effective_endpoints): Likewise for locals "next_insn",
16217         "insn", "end".
16218         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
16219         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
16220         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
16221         (duplicate_insn_chain): For now, add checked cast from rtx to
16222         rtx_insn * when returning insn.
16223         (cfg_layout_duplicate_bb): Likewise for local "insn".
16224         (cfg_layout_delete_block): Likewise for locals "insn", "next",
16225         "prev", "remaints".
16226         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
16227         (rtl_block_empty_p): Likewise.
16228         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
16229         "split_point", "last".
16230         (rtl_block_ends_with_call_p): Likewise for local "insn".
16231         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
16232         const rtx_insn *.
16233         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
16234         "split_at_insn" from rtx to rtx_insn *.
16235         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
16236         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
16237         to const rtx_insn *.
16238         (rtl_account_profile_record): Likewise.
16239
16240 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16241
16242         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
16243         rtx to rtx_insn *.
16244         (average_num_loop_insns): Likewise.
16245         (init_set_costs): Likewise for local "seq".
16246         (seq_cost): Likewise for param "seq", from const_rtx to const
16247         rtx_insn *.
16248
16249 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16250
16251         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
16252         rtx to rtx_insn *.
16253
16254 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16255
16256         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
16257         "f1" and "f2" from rtx * to rtx_insn **.
16258         (flow_find_head_matching_sequence): Likewise.
16259
16260         * cfgcleanup.c (try_simplify_condjump): Strengthen local
16261         "cbranch_insn" from rtx to rtx_insn *.
16262         (thread_jump): Likewise for local "insn".
16263         (try_forward_edges): Likewise for local "last".
16264         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
16265         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
16266         "real_b_end".
16267         (can_replace_by): Likewise for params "i1", "i2".
16268         (old_insns_match_p): Likewise.
16269         (merge_notes): Likewise.
16270         (walk_to_nondebug_insn): Likewise for param "i1".
16271         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
16272         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
16273         "afterlast1", "afterlast2" from rtx to rtx_insn *.
16274         (flow_find_head_matching_sequence): Strengthen params "f1" and
16275         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
16276         "last1", "last2", "beforelast1", "beforelast2" from rtx to
16277         rtx_insn *.
16278         (outgoing_edges_match): Likewise for locals "last1", "last2".
16279         (try_crossjump_to_edge): Likewise for local "insn".
16280         Replace call to for_each_rtx with for_each_rtx_in_insn.
16281
16282         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
16283         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
16284         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
16285         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
16286         (try_optimize_cfg): Strengthen local "last" from rtx to
16287         rtx_insn *.
16288         (delete_dead_jumptables): Likewise for locals "insn", "next",
16289         "label".
16290
16291         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
16292         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
16293         "rtx else_first_tail", to reflect the basic-block.h changes above.
16294
16295 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16296
16297         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
16298         rtx_insn *.
16299         (purge_dead_tablejump_edges): Likewise.
16300         (find_bb_boundaries): Likewise for locals "insn", "end",
16301         "flow_transfer_insn".
16302
16303 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16304
16305         * caller-save.c (save_call_clobbered_regs): Strengthen locals
16306         "ins" and "prev" from rtx to rtx_insn *.
16307
16308 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16309
16310         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
16311         rtx_insn *.
16312         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
16313         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
16314         "scan_start".
16315         (load_register_parameters): Likewise for local "before_arg".
16316         (check_sibcall_argument_overlap): Likewise for param "insn".
16317         (expand_call): Likewise for locals "normal_call_insns",
16318         "tail_call_insns", "insns", "before_call", "after_args",
16319         "before_arg", "last", "prev".  Strengthen one of the "last" from
16320         rtx to rtx_call_insn *.
16321         (fixup_tail_calls): Strengthen local "insn" from rtx to
16322         rtx_insn *.
16323         (emit_library_call_value_1): Likewise for locals "before_call" and
16324         "last".
16325
16326 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16327
16328         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
16329         and "last" from rtx to rtx_insn *.
16330         (expand_builtin_nonlocal_goto): Likewise for local "insn".
16331         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
16332         rtx_call_insn *.
16333         (expand_errno_check): Strengthen local "lab" from rtx to
16334         rtx_code_label *.
16335         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
16336         rtx_insn *.
16337         (expand_builtin_mathfn_2): Likewise.
16338         (expand_builtin_mathfn_ternary): Likewise.
16339         (expand_builtin_mathfn_3): Likewise.
16340         (expand_builtin_interclass_mathfn): Likewise for local "last".
16341         (expand_builtin_int_roundingfn): Likewise for local "insns".
16342         (expand_builtin_int_roundingfn_2): Likewise.
16343         (expand_builtin_strlen): Likewise for local "before_strlen".
16344         (expand_builtin_strncmp): Likewise for local "seq".
16345         (expand_builtin_signbit): Likewise for local "last".
16346         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
16347         from rtx to rtx_code_label *.
16348         (expand_stack_restore):  Strengthen local "prev" from rtx to
16349         rtx_insn *.
16350
16351 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16352
16353         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
16354         to rtx_insn *.
16355         (struct btr_def_s): Likewise.
16356         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
16357         const rtx_insn *.
16358         (add_btr_def): Likewise.
16359         (new_btr_user): Likewise.
16360         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
16361         rtx to rtx_insn *.
16362         (link_btr_uses): Likewise.
16363         (move_btr_def): Likewise for locals "insp", "old_insn",
16364         "new_insn".  Add checked cast to rtx_insn * for now on result of
16365         gen_move_insn.
16366         (can_move_up): Strengthen param "insn" from const_rtx to
16367         const rtx_insn *.
16368
16369 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16370
16371         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
16372         rtx_insn *.
16373         (get_uncond_jump_length): Likewise for locals "label", "jump".
16374         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
16375         "jump", "insn".
16376         (add_labels_and_missing_jumps): Likewise for local "new_jump".
16377         (fix_up_fall_thru_edges): Likewise for local "old_jump".
16378         (find_jump_block): Likewise for local "insn".
16379         (fix_crossing_conditional_branches): Likewise for locals
16380         "old_jump", "new_jump".
16381         (fix_crossing_unconditional_branches): Likewise for locals
16382         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
16383         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
16384
16385 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16386
16387         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
16388         rtx to rtx_insn *.
16389         (struct mem_insn): Likewise for field "insn".
16390         (reg_next_use): Strengthen from rtx * to rtx_insn **.
16391         (reg_next_inc_use): Likewise.
16392         (reg_next_def): Likewise.
16393         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
16394         from rtx to rtx_insn *.
16395         (move_insn_before): Likewise for param "next_insn" and local "insns".
16396         (attempt_change): Likewise for local "mov_insn".
16397         (try_merge): Likewise for param "last_insn".
16398         (get_next_ref): Likewise for return type and local "insn".
16399         Strengthen param "next_array" from rtx * to rtx_insn **.
16400         (parse_add_or_inc): Strengthen param "insn" from rtx to
16401         rtx_insn *.
16402         (find_inc): Likewise for locals "insn" and "other_insn" (three of
16403         the latter).
16404         (merge_in_block): Likewise for locals "insn", "curr",
16405         "other_insn".
16406         (pass_inc_dec::execute): Update allocations of the arrays to
16407         reflect the stronger types.
16408
16409 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16410
16411         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
16412         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
16413         from rtx to rtx_code_label *.
16414
16415 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16416
16417         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
16418         to rtx_insn *.
16419
16420 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
16421
16422         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
16423         generated a warning and prevented bootstrapping the compiler.
16424
16425 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16426
16427         * rtl.h (delete_related_insns): Strengthen return type from rtx to
16428         rtx_insn *.
16429
16430         * jump.c (delete_related_insns): Likewise, also for locals "next"
16431         and "prev".
16432
16433 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16434
16435         * genautomata.c (output_internal_insn_latency_func): When writing
16436         the function "internal_insn_latency" to insn-automata.c,
16437         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
16438         allowing the optional guard function of (define_bypass) clauses to
16439         expect a pair of rtx_insn *, rather than a pair of rtx.
16440         (output_insn_latency_func): When writing the function
16441         "insn_latency", add an "uncast_" prefix to params "insn" and
16442         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
16443         using checked casts from the params, thus enabling the above
16444         change to the generated "internal_insn_latency" function.
16445
16446 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
16447
16448         PR tree-optimization/62091
16449         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
16450         handle correctly arrays.
16451         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
16452         inheritance binfos.
16453         (record_known_type): Walk into inner type.
16454         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
16455         condition on no type changes.
16456
16457 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16458
16459         * genattrtab.c (write_attr_get): Within the generated get_attr_
16460         functions, rename param "insn" to "uncast_insn" and reintroduce
16461         "insn" as an local rtx_insn * using a checked cast, so that "insn"
16462         is an rtx_insn * within insn-attrtab.c
16463
16464 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16465
16466         * output.h (peephole): Strengthen return type from rtx to
16467         rtx_insn *.
16468         * rtl.h (delete_for_peephole): Likewise for both params.
16469         * genpeep.c (main): In generated "peephole" function, strengthen
16470         return type and local "insn" from rtx to rtx_insn *.  For now,
16471         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
16472         rtx_insn *, with a checked cast.
16473         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
16474         locals "insn", "next", "prev" from rtx to rtx_insn *.
16475
16476 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
16477
16478         PR tree-optimization/62112
16479         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
16480         * gimple-iterator.h (gsi_replace): Return bool.
16481         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
16482         moved from ref_may_alias_global_p.
16483         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
16484         New overloads.
16485         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
16486         (stmt_kills_ref_p_1): Rename...
16487         (stmt_kills_ref_p): ... to this.
16488         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
16489         stmt_kills_ref_p): Declare.
16490         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
16491         Move the self-assignment case...
16492         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
16493
16494 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16495
16496         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
16497
16498         * emit-rtl.c (try_split): Likewise, also for locals "before" and
16499         "after".  For now, don't strengthen param "trial", which requires
16500         adding checked casts when returning it.
16501
16502 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16503
16504         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
16505         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
16506         "var_location" hook from rtx to rtx_insn *.
16507         (debug_nothing_rtx): Delete in favor of...
16508         (debug_nothing_rtx_code_label): New prototype.
16509         (debug_nothing_rtx_rtx): Delete unused prototype.
16510         (debug_nothing_rtx_insn): New prototype.
16511
16512         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
16513         invoking debug_hooks->var_location (in two places, one in a NOTE
16514         case of a switch statement, the other guarded by a CALL_P
16515         conditional.  Add checked cast to rtx_code_label * when invoking
16516         debug_hooks->label (within CODE_LABEL case of switch statement).
16517
16518         * dbxout.c (dbx_debug_hooks): Update "label" hook from
16519         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
16520         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
16521         (xcoff_debug_hooks): Likewise.
16522         * debug.c (do_nothing_debug_hooks): Likewise.
16523         (debug_nothing_rtx): Delete in favor of...
16524         (debug_nothing_rtx_insn): New function.
16525         (debug_nothing_rtx_rtx): Delete unused function.
16526         (debug_nothing_rtx_code_label): New function.
16527         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
16528         debug_nothing_rtx to debug_nothing_rtx_code_label.
16529         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
16530         to rtx_insn *.
16531         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
16532         debug_nothing_rtx to debug_nothing_rtx_insn.
16533         (sdbout_label): Strengthen param "insn" from rtx to
16534         rtx_code_label *.
16535         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
16536         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
16537         "var_location" hook from debug_nothing_rtx to
16538         debug_nothing_rtx_insn.
16539
16540 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16541
16542         * recog.h (insn_output_fn): Update this function typedef to match
16543         the changes below to the generated output functions, strengthening
16544         the 2nd param from rtx to rtx_insn *.
16545
16546         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
16547         insn when invoking an output function, to match the new signature
16548         of insn_output_fn with a stronger second param.
16549
16550         * genconditions.c (write_header): In the generated code for
16551         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
16552         to match the other changes in this patch.
16553
16554         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
16555         the generated "gen_" functions from rtx to rtx_insn * within their
16556         implementations.
16557
16558         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
16559         the subfunctions within the generated "recog_", "split", "peephole2"
16560         function trees from rtx to rtx_insn *.  For now, the top-level
16561         generated functions ("recog", "split", "peephole2") continue to
16562         take a plain rtx for "insn", to avoid introducing dependencies on
16563         other patches.  Rename this 2nd param from "insn" to
16564         "uncast_insn", and reintroduce "insn" as a local variable of type
16565         rtx_insn *, initialized at the top of the generated function with
16566         a checked cast on "uncast_insn".
16567         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
16568         the generated "gen_" functions from rtx to rtx_insn * within their
16569         prototypes.
16570
16571         * genoutput.c (process_template): Strengthen the 2nd param within
16572         the generated "output_" functions "insn" from rtx to rtx_insn *.
16573
16574 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
16575
16576         * tree-profile.c (tree_profiling): Skip external functions
16577         when doing coverage instrumentation.
16578         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
16579
16580 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16581
16582         * config/rs6000/altivec.h (vec_cpsgn): New #define.
16583         (vec_mergee): Likewise.
16584         (vec_mergeo): Likewise.
16585         (vec_cntlz): Likewise.
16586         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
16587         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
16588         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
16589         VMRGEW, and VMRGOW.
16590         * doc/extend.texi: Document various forms of vec_cpsgn,
16591         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
16592         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
16593         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
16594         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
16595         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
16596
16597 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16598
16599         * config/rs6000/rs6000.c (context.h): New include.
16600         (tree-pass.h): Likewise.
16601         (make_pass_analyze_swaps): New decl.
16602         (rs6000_option_override): Register pass_analyze_swaps.
16603         (swap_web_entry): New subsclass of web_entry_base (df.h).
16604         (special_handling_values): New enum.
16605         (union_defs): New function.
16606         (union_uses): Likewise.
16607         (insn_is_load_p): Likewise.
16608         (insn_is_store_p): Likewise.
16609         (insn_is_swap_p): Likewise.
16610         (rtx_is_swappable_p): Likewise.
16611         (insn_is_swappable_p): Likewise.
16612         (chain_purpose): New enum.
16613         (chain_contains_only_swaps): New function.
16614         (mark_swaps_for_removal): Likewise.
16615         (swap_const_vector_halves): Likewise.
16616         (adjust_subreg_index): Likewise.
16617         (permute_load): Likewise.
16618         (permute_store): Likewise.
16619         (handle_special_swappables): Likewise.
16620         (replace_swap_with_copy): Likewise.
16621         (dump_swap_insn_table): Likewise.
16622         (rs6000_analyze_swaps): Likewise.
16623         (pass_data_analyze_swaps): New pass_data.
16624         (pass_analyze_swaps): New rtl_opt_pass.
16625         (make_pass_analyze_swaps): New function.
16626         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
16627
16628 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16629
16630         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
16631         type from rtx to rtx_insn *.
16632         (create_copy_of_insn_rtx): Likewise.
16633         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
16634         (create_copy_of_insn_rtx): Likewise, also for local "res".
16635
16636 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16637
16638         * rtl.h (find_first_parameter_load): Strengthen return type from
16639         rtx to rtx_insn *.
16640         * rtlanal.c (find_first_parameter_load): Strengthen return type
16641         from rtx to rtx_insn *.  Add checked cast for now, to postpone
16642         strengthening the params.
16643
16644 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16645
16646         PR fortran/44054
16647         * diagnostic.c: Set default caret.
16648         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
16649         line is needed.
16650         * diagnostic.h (struct diagnostic_context):
16651
16652 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16653
16654         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
16655         (sel_bb_head): Strengthen return type insn_t (currently just an
16656         rtx) to rtx_insn *.
16657         (sel_bb_end): Likewise.
16658
16659         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
16660         (sel_bb_head): Strengthen return type and local "head" from
16661         insn_t (currently just an rtx) to rtx_insn *.
16662         (sel_bb_end): Likewise for return type.
16663         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
16664         working with insn.
16665
16666 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16667
16668         * basic-block.h (get_last_bb_insn): Strengthen return type from
16669         rtx to rtx_insn *.
16670         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
16671         end".
16672
16673 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16674
16675         PR fortran/44054
16676         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
16677         to here ...
16678         (diagnostic_report_diagnostic): ... from here.
16679         * toplev.c (general_init): Move code to c-family.
16680
16681 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16682
16683         * df.h (web_entry_base): Replace existing struct web_entry with a
16684         new class web_entry_base with only the predecessor member.
16685         (unionfind_root): Remove declaration and move to class member.
16686         (unionfind_union): Remove declaration and move to friend
16687         function.
16688         (union_defs): Remove declaration.
16689         * web.c (web_entry_base::unionfind_root): Modify to be member
16690         function and adjust accessors.
16691         (unionfind_union): Modify to be friend function and adjust
16692         accessors.
16693         (web_entry): New subclass of web_entry_base containing the reg
16694         member.
16695         (union_match_dups): Modify for struct -> class changes.
16696         (union_defs): Likewise.
16697         (entry_register): Likewise.
16698         (pass_web::execute): Likewise.
16699
16700 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
16701
16702         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
16703         builtin define __VEC_ELEMENT_REG_ORDER__.
16704
16705 2014-08-20  Martin Jambor  <mjambor@suse.cz>
16706             Wei Mi  <wmi@google.com>
16707
16708         PR ipa/60449
16709         PR middle-end/61776
16710         * tree-ssa-operands.c (update_stmt_operands): Remove
16711         MODIFIED_NORETURN_CALLS.
16712         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
16713         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
16714         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
16715         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
16716         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
16717         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
16718         (gimple_call_set_ctrl_altering): New func.
16719         (gimple_call_ctrl_altering_p): Ditto.
16720         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
16721         (make_blocks): Use gimple_call_initialize_ctrl_altering.
16722         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
16723         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
16724         remove MODIFIED_NORETURN_CALLS.
16725
16726 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
16727
16728         * coverage.c (coverage_compute_profile_id): Return non-0;
16729         also handle symbols with unique name.
16730         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
16731
16732 2014-08-20  Steve Ellcey  <sellcey@mips.com>
16733
16734         PR middle-end/49191
16735         * doc/sourcebuild.texi (non_strict_align): New.
16736
16737 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
16738
16739         * cgraphunit.c (ipa_passes, compile): Reshedule
16740         symtab_remove_unreachable_nodes passes; update comments.
16741         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
16742         TODO_remove_functions before the pass; the functions ought to be
16743         already removed.
16744         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
16745         TODO_remove_functions.
16746         * passes.c (pass_data_early_local_passes): Do not schedule function
16747         removal.
16748         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
16749
16750 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16751
16752         PR c/59304
16753         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
16754         before setting the option.
16755         * diagnostic.c (diagnostic_classify_diagnostic): Record
16756         command-line status.
16757
16758 2014-08-20  Richard Biener  <rguenther@suse.de>
16759
16760         PR lto/62190
16761         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
16762         to build uint{16,32,64}_type_node.
16763
16764 2014-08-20  Terry Guo  <terry.guo@arm.com>
16765
16766         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
16767         with immediate_operand.
16768
16769 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
16770
16771         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
16772         "insn" from an as_a to a safe_as_a, for the case when "insn" is
16773         NULL.
16774
16775 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16776
16777         PR preprocessor/51303
16778         * incpath.c (remove_duplicates): Use cpp_warning.
16779
16780 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16781
16782         PR c/60975
16783         PR c/53063
16784         * doc/options.texi (CPP): Document it.
16785         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
16786         * optc-gen.awk: Handle CPP.
16787         * opth-gen.awk: Likewise.
16788
16789 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
16790
16791         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
16792         rtx_insn *.
16793         (duplicate_insn_chain): Likewise.
16794         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
16795         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
16796         checked cast for now (until we can strengthen the params in the
16797         same way).
16798         (duplicate_insn_chain): Likewise.
16799
16800 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
16801
16802         * rtl.h (next_cc0_user): Strengthen return type from rtx to
16803         rtx_insn *.
16804         (prev_cc0_setter): Likewise.
16805
16806         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
16807         rtx_insn *, adding checked casts for now as necessary.
16808         (prev_cc0_setter): Likewise.
16809
16810 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
16811
16812         * expr.h (emit_move_insn): Strengthen return type from rtx to
16813         rtx_insn *.
16814         (emit_move_insn_1): Likewise.
16815         (emit_move_complex_push): Likewise.
16816         (emit_move_complex_parts): Likewise.
16817
16818         * expr.c (emit_move_via_integer): Strengthen return type from rtx
16819         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
16820         with insns.
16821         (emit_move_complex_push): Strengthen return type from rtx to
16822         rtx_insn *.
16823         (emit_move_complex): Likewise, also for local "ret".
16824         (emit_move_ccmode): Likewise.
16825         (emit_move_multi_word): Likewise for return type and locals
16826         "last_insn", "seq".
16827         (emit_move_insn_1): Likewise for return type and locals "result",
16828         "ret".
16829         (emit_move_insn): Likewise for return type and local "last_insn".
16830         (compress_float_constant): Likewise.
16831
16832 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
16833
16834         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
16835         from rtx to rtx_insn *.
16836
16837         * rtl.h (emit_insn_before): Likewise.
16838         (emit_insn_before_noloc): Likewise.
16839         (emit_insn_before_setloc): Likewise.
16840         (emit_jump_insn_before): Likewise.
16841         (emit_jump_insn_before_noloc): Likewise.
16842         (emit_jump_insn_before_setloc): Likewise.
16843         (emit_call_insn_before): Likewise.
16844         (emit_call_insn_before_noloc): Likewise.
16845         (emit_call_insn_before_setloc): Likewise.
16846         (emit_debug_insn_before): Likewise.
16847         (emit_debug_insn_before_noloc): Likewise.
16848         (emit_debug_insn_before_setloc): Likewise.
16849         (emit_label_before): Likewise.
16850         (emit_insn_after): Likewise.
16851         (emit_insn_after_noloc): Likewise.
16852         (emit_insn_after_setloc): Likewise.
16853         (emit_jump_insn_after): Likewise.
16854         (emit_jump_insn_after_noloc): Likewise.
16855         (emit_jump_insn_after_setloc): Likewise.
16856         (emit_call_insn_after): Likewise.
16857         (emit_call_insn_after_noloc): Likewise.
16858         (emit_call_insn_after_setloc): Likewise.
16859         (emit_debug_insn_after): Likewise.
16860         (emit_debug_insn_after_noloc): Likewise.
16861         (emit_debug_insn_after_setloc): Likewise.
16862         (emit_label_after): Likewise.
16863         (emit_insn): Likewise.
16864         (emit_debug_insn): Likewise.
16865         (emit_jump_insn): Likewise.
16866         (emit_call_insn): Likewise.
16867         (emit_label): Likewise.
16868         (gen_clobber): Likewise.
16869         (emit_clobber): Likewise.
16870         (gen_use): Likewise.
16871         (emit_use): Likewise.
16872         (emit): Likewise.
16873
16874         (emit_barrier_before): Strengthen return type from rtx to
16875         rtx_barrier *.
16876         (emit_barrier_after): Likewise.
16877         (emit_barrier): Likewise.
16878
16879         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
16880         from rtx to rtx_insn *.  Add checked casts for now when converting
16881         "last" from rtx to rtx_insn *.
16882         (emit_insn_before_noloc): Likewise for return type.
16883         (emit_jump_insn_before_noloc): Likewise.
16884         (emit_call_insn_before_noloc): Likewise.
16885         (emit_debug_insn_before_noloc): Likewise.
16886         (emit_barrier_before): Strengthen return type and local "insn"
16887         from rtx to rtx_barrier *.
16888         (emit_label_before): Strengthen return type from rtx to
16889         rtx_insn *.  Add checked cast for now when returning param
16890         (emit_pattern_after_noloc): Strengthen return type from rtx to
16891         rtx_insn *.  Add checked casts for now when converting "last" from
16892         rtx to rtx_insn *.
16893         (emit_insn_after_noloc): Strengthen return type from rtx to
16894         rtx_insn *.
16895         (emit_jump_insn_after_noloc): Likewise.
16896         (emit_call_insn_after_noloc): Likewise.
16897         (emit_debug_insn_after_noloc): Likewise.
16898         (emit_barrier_after): Strengthen return type from rtx to
16899         rtx_barrier *.
16900         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
16901         Add checked cast for now when converting "label" from rtx to
16902         rtx_insn *.
16903         (emit_pattern_after_setloc): Strengthen return type from rtx to
16904         rtx_insn *.  Add checked casts for now when converting "last" from
16905         rtx to rtx_insn *.
16906         (emit_pattern_after): Strengthen return type from rtx to
16907         rtx_insn *.
16908         (emit_insn_after_setloc): Likewise.
16909         (emit_insn_after): Likewise.
16910         (emit_jump_insn_after_setloc): Likewise.
16911         (emit_jump_insn_after): Likewise.
16912         (emit_call_insn_after_setloc): Likewise.
16913         (emit_call_insn_after): Likewise.
16914         (emit_debug_insn_after_setloc): Likewise.
16915         (emit_debug_insn_after): Likewise.
16916         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
16917         when converting "last" from rtx to rtx_insn *.
16918         (emit_pattern_before): Strengthen return type from rtx to
16919         rtx_insn *.
16920         (emit_insn_before_setloc): Likewise.
16921         (emit_insn_before): Likewise.
16922         (emit_jump_insn_before_setloc): Likewise.
16923         (emit_jump_insn_before): Likewise.
16924         (emit_call_insn_before_setloc): Likewise.
16925         (emit_call_insn_before): Likewise.
16926         (emit_debug_insn_before_setloc): Likewise.
16927         (emit_debug_insn_before): Likewise.
16928         (emit_insn): Strengthen return type and locals "last", "insn",
16929         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
16930         within cases where we know we have an insn.
16931         (emit_debug_insn): Likewise.
16932         (emit_jump_insn): Likewise.
16933         (emit_call_insn): Strengthen return type and local "insn" from rtx
16934         to rtx_insn *.
16935         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
16936         a checked cast to rtx_insn * for now on "label".
16937         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
16938         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
16939         (emit_use): Likewise.
16940         (gen_use): Likewise, also for local "seq".
16941         (emit): Likewise for return type and local "insn".
16942         (rtx_insn): Likewise for return type and local "new_rtx".
16943
16944         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
16945         from rtx to rtx_barrier *.
16946
16947         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
16948         changed return type from rtx to rtx_insn *, we must update
16949         "emit_fn" type, and this in turn means updating...
16950         (frame_insn): ...this.  Strengthen return type from rtx to
16951         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
16952
16953 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
16954
16955         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
16956         rtx to rtx_jump_table_data *.  Also for local.
16957         * rtl.h (emit_jump_table_data): Likewise.
16958
16959 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
16960
16961         * basic-block.h (create_basic_block_structure): Strengthen third
16962         param "bb_note" from rtx to rtx_note *.
16963         * rtl.h (emit_note_before): Strengthen return type from rtx to
16964         rtx_note *.
16965         (emit_note_after): Likewise.
16966         (emit_note): Likewise.
16967         (emit_note_copy): Likewise.  Also, strengthen param similarly.
16968         * function.h (struct rtl_data): Strengthen field
16969         "x_stack_check_probe_note" from rtx to rtx_note *.
16970
16971         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
16972         from rtx to rtx_note *.
16973         * cfgrtl.c (create_basic_block_structure): Strengthen third param
16974         "bb_note" from rtx to rtx_note *.
16975         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
16976         when calling emit_note_copy.
16977         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
16978         rtx_note *.
16979         (emit_note_after): Likewise.
16980         (emit_note_before): Likewise.
16981         (emit_note_copy): Likewise.  Also, strengthen param similarly.
16982         (emit_note): Likewise.
16983         * except.c (emit_note_eh_region_end): Likewise for return type.
16984         Strengthen local "next" from rtx to rtx_insn *.
16985         (convert_to_eh_region_ranges): Strengthen local "note"
16986         from rtx to rtx_note *.
16987         * final.c (change_scope): Likewise.
16988         (reemit_insn_block_notes): Likewise, for both locals named "note".
16989         Also, strengthen local "insn" from rtx to rtx_insn *.
16990         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
16991         rtx to rtx_note *.
16992         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
16993         strengthen local "seq" from rtx to rtx_insn *.
16994         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
16995         to rtx_note *.
16996         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
16997         vec<rtx_note *>.
16998         (get_bb_note_from_pool): Strengthen return type from rtx to
16999         rtx_note *.
17000         (sel_create_basic_block): Strengthen local "new_bb_note" from
17001         insn_t to rtx_note *.
17002         * var-tracking.c (emit_note_insn_var_location): Strengthen local
17003         "note" from rtx to rtx_note *.
17004         (emit_notes_in_bb): Likewise.
17005
17006 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17007
17008         * function.h (struct rtl_data): Strengthen field
17009         "x_parm_birth_insn" from rtx to rtx_insn *.
17010         * function.c (struct assign_parm_data_all): Strengthen fields
17011         "first_conversion_insn" and "last_conversion_insn" from rtx to
17012         rtx_insn *.
17013
17014 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17015
17016         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
17017         to rtx_insn *; also for local "var_end_seq".
17018         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
17019         (maybe_cleanup_end_of_block): Likewise for param "last" and local
17020         "insn".
17021         (expand_gimple_cond): Likewise for locals "last2" and "last".
17022         (mark_transaction_restart_calls): Likewise for local "insn".
17023         (expand_gimple_stmt): Likewise for return type and locals "last"
17024         and "insn".
17025         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
17026         (avoid_complex_debug_insns): Likewise for param "insn".
17027         (expand_debug_locations): Likewise for locals "insn", "last",
17028         "prev_insn" and "insn2".
17029         (expand_gimple_basic_block): Likewise for local "last".
17030         (construct_exit_block): Likewise for locals "head", "end",
17031         "orig_end".
17032         (pass_expand::execute): Likewise for locals "var_seq",
17033         "var_ret_seq", "next".
17034
17035 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17036
17037         * asan.h (asan_emit_stack_protection): Strengthen return type from
17038         rtx to rtx_insn *.
17039         * asan.c (asan_emit_stack_protection): Likewise.  Add local
17040         "insns" to hold the return value.
17041
17042 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17043
17044         * basic-block.h (bb_note): Strengthen return type from rtx to
17045         rtx_note *.
17046         * sched-int.h (bb_note): Likewise.
17047         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
17048
17049 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17050
17051         * rtl.h (make_insn_raw): Strengthen return type from rtx to
17052         rtx_insn *.
17053
17054         * emit-rtl.c (make_insn_raw): Strengthen return type and local
17055         "insn" from rtx to rtx_insn *.
17056         (make_debug_insn_raw): Strengthen return type from rtx to
17057         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
17058         (make_jump_insn_raw):  Strengthen return type from rtx to
17059         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
17060         (make_call_insn_raw):  Strengthen return type from rtx to
17061         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
17062         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
17063         callback from rtx to rtx_insn *; likewise for local "insn" and
17064         "next", adding a checked cast to rtx_insn in the relevant cases of
17065         the switch statement.
17066         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
17067         callback from rtx to rtx_insn *.
17068         (emit_pattern_after_setloc): Likewise.
17069         (emit_pattern_after): Likewise.
17070         (emit_pattern_before_setloc): Likewise.
17071         (emit_pattern_before): Likewise.
17072
17073 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17074
17075         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
17076         rtx_call_insn *.
17077         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
17078         accepting an rtx_insn *.
17079         (last_call_insn): Strengthen return type from rtx to
17080         rtx_call_insn *.
17081
17082 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17083
17084         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
17085         "insns" from rtx to rtx_insn *.
17086         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
17087         locals "insn" and "prev".
17088
17089 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17090
17091         * rtl.h (tablejump_p): Strengthen third param from rtx * to
17092         rtx_jump_table_data **.
17093
17094         * cfgbuild.c (make_edges): Introduce local "table", using it in
17095         place of "tmp" for jump table data.
17096         (find_bb_boundaries): Strengthen local "table" from rtx to
17097         rtx_jump_table_data *.
17098         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
17099         (outgoing_edges_match): Likewise for locals "table1" and "table2".
17100         (try_crossjump_to_edge): Likewise.
17101         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
17102         "table".
17103         (patch_jump_insn): Introduce local "table", using it in place of
17104         "tmp" for jump table data.
17105         (force_nonfallthru_and_redirect): Introduce local "table", so that
17106         call to tablejump_p can receive an rtx_jump_table_data **.  Update
17107         logic around the call to overwrite "note" appropriately if
17108         tablejump_p returns non-zero.
17109         (get_last_bb_insn): Introduce local "table", using it in place of
17110         "tmp" for jump table data.
17111         * dwarf2cfi.c (create_trace_edges): Likewise.
17112
17113         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
17114         from rtx to rtx_jump_table_data *.
17115         (create_fix_barrier): Strengthen local "tmp" from rtx to
17116         rtx_jump_table_data *.
17117         (arm_reorg): Likewise for local "table".
17118
17119         * config/s390/s390.c (s390_chunkify_start): Likewise.
17120
17121         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
17122
17123         * jump.c (delete_related_insns): Strengthen local "lab_next" from
17124         rtx to rtx_jump_table_data *.
17125
17126         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
17127         rtx_jump_table_data **.  Add a checked cast when writing through
17128         the pointer: we know there that local "table" is non-NULL and that
17129         JUMP_TABLE_DATA_P (table) holds.
17130         (label_is_jump_target_p): Introduce local "table", using it in
17131         place of "tmp" for jump table data.
17132
17133 2014-08-19  Marek Polacek  <polacek@redhat.com>
17134
17135         PR c++/62153
17136         * doc/invoke.texi: Document -Wbool-compare.
17137
17138 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17139
17140         * rtl.h (entry_of_function): Strengthen return type from rtx to
17141         rtx_insn *.
17142         * cfgrtl.c (entry_of_function): Likewise.
17143
17144 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17145
17146         * emit-rtl.h (get_insns): Strengthen return type from rtx to
17147         rtx_insn *, adding a checked cast for now.
17148         (get_last_insn): Likewise.
17149
17150 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17151
17152         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
17153         rtx_code_label *.
17154
17155         * emit-rtl.c (gen_label_rtx): Likewise.
17156
17157 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17158
17159         * rtl.h (previous_insn): Strengthen return type from rtx to
17160         rtx_insn *.
17161         (next_insn): Likewise.
17162         (prev_nonnote_insn): Likewise.
17163         (prev_nonnote_insn_bb): Likewise.
17164         (next_nonnote_insn): Likewise.
17165         (next_nonnote_insn_bb): Likewise.
17166         (prev_nondebug_insn): Likewise.
17167         (next_nondebug_insn): Likewise.
17168         (prev_nonnote_nondebug_insn): Likewise.
17169         (next_nonnote_nondebug_insn): Likewise.
17170         (prev_real_insn): Likewise.
17171         (next_real_insn): Likewise.
17172         (prev_active_insn): Likewise.
17173         (next_active_insn): Likewise.
17174
17175         * emit-rtl.c (next_insn): Strengthen return type from rtx to
17176         rtx_insn *, adding a checked cast.
17177         (previous_insn): Likewise.
17178         (next_nonnote_insn): Likewise.
17179         (next_nonnote_insn_bb): Likewise.
17180         (prev_nonnote_insn): Likewise.
17181         (prev_nonnote_insn_bb): Likewise.
17182         (next_nondebug_insn): Likewise.
17183         (prev_nondebug_insn): Likewise.
17184         (next_nonnote_nondebug_insn): Likewise.
17185         (prev_nonnote_nondebug_insn): Likewise.
17186         (next_real_insn): Likewise.
17187         (prev_real_insn): Likewise.
17188         (next_active_insn): Likewise.
17189         (prev_active_insn): Likewise.
17190
17191         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
17192         param "stepfunc" so that it returns an rtx_insn * rather than an
17193         rtx, to track the change to prev_nonnote_insn_bb, which is the
17194         only function this is called with.
17195         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
17196
17197 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
17198
17199         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
17200         assert.
17201
17202 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17203
17204         * coretypes.h (class rtx_debug_insn): Add forward declaration.
17205         (class rtx_nonjump_insn): Likewise.
17206         (class rtx_jump_insn): Likewise.
17207         (class rtx_call_insn): Likewise.
17208         (class rtx_jump_table_data): Likewise.
17209         (class rtx_barrier): Likewise.
17210         (class rtx_code_label): Likewise.
17211         (class rtx_note): Likewise.
17212
17213         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
17214         adding the invariant DEBUG_INSN_P (X).
17215         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
17216         the invariant NONJUMP_INSN_P (X).
17217         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
17218         the invariant JUMP_P (X).
17219         (class rtx_call_insn): New, a subclass of rtx_insn, adding
17220         the invariant CALL_P (X).
17221         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
17222         invariant JUMP_TABLE_DATA_P (X).
17223         (class rtx_barrier): New, a subclass of rtx_insn, adding the
17224         invariant BARRIER_P (X).
17225         (class rtx_code_label): New, a subclass of rtx_insn, adding
17226         the invariant LABEL_P (X).
17227         (class rtx_note): New, a subclass of rtx_insn, adding
17228         the invariant NOTE_P(X).
17229         (is_a_helper <rtx_debug_insn *>::test): New.
17230         (is_a_helper <rtx_nonjump_insn *>::test): New.
17231         (is_a_helper <rtx_jump_insn *>::test): New.
17232         (is_a_helper <rtx_call_insn *>::test): New.
17233         (is_a_helper <rtx_jump_table_data *>::test): New functions,
17234         overloaded for both rtx and rtx_insn *.
17235         (is_a_helper <rtx_barrier *>::test): New.
17236         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
17237         for both rtx and rtx_insn *.
17238         (is_a_helper <rtx_note *>::test): New.
17239
17240 2014-08-19  Marek Polacek  <polacek@redhat.com>
17241
17242         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
17243         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
17244         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
17245         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
17246
17247 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17248
17249         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
17250         rtx_insn *.  To help with transition, for now, convert from an
17251         access macro into a pair of functions: BND_TO, returning an
17252         rtx_insn *, and...
17253         (SET_BND_TO): New function, for use where BND_TO is used as an
17254         lvalue.
17255
17256         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
17257         SET_BND_TO.
17258         (BND_TO): New function, adding a checked cast.
17259         (SET_BND_TO): New function.
17260
17261         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
17262         SET_BND_TO.
17263         (compute_av_set_on_boundaries): Likewise.
17264
17265 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
17266
17267         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
17268         destination if it is used in source.
17269         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
17270         (*popcount<mode>2_falsedep_1): Likewise.
17271
17272 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
17273
17274         PR other/62168
17275         * configure.ac: Set install_gold_as_default to no first.
17276         * configure: Regenerated.
17277
17278 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17279
17280         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
17281         "note_list" field will eventually be an rtx_insn *.  To help with
17282         transition, for now, convert from an access macro into a pair of
17283         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
17284         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
17285         used as an lvalue.
17286
17287         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
17288         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
17289
17290         * sel-sched-ir.c (init_bb): Likewise.
17291         (sel_restore_notes): Likewise.
17292         (move_bb_info): Likewise.
17293         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
17294         (SET_BB_NOTE_LIST): New function.
17295
17296 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17297
17298         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
17299         field will eventually be an rtx_insn *.  To help with transition,
17300         for now, convert from an access macro into a pair of functions:
17301         VINSN_INSN_RTX, returning an rtx_insn *, and...
17302         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
17303         is used as an lvalue.
17304
17305         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
17306         SET_VINSN_INSN_RTX where it's used as an lvalue.
17307         (VINSN_INSN_RTX): New function.
17308         (SET_VINSN_INSN_RTX): New function.
17309
17310 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17311
17312         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
17313         eventually be rtx_insn *, but to help with transition, for now,
17314         convert from an access macro into a pair of functions: DEP_PRO
17315         returning an rtx_insn * and...
17316         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
17317         lvalue, returning an rtx&.
17318         (DEP_CON): Analogous changes to DEP_PRO above.
17319         (SET_DEP_CON): Likewise.
17320
17321         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
17322         an lvalue to SET_DEP_CON.
17323         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
17324         (sd_copy_back_deps): Likewise for DEP_CON.
17325         (DEP_PRO): New function, adding a checked cast for now.
17326         (DEP_CON): Likewise.
17327         (SET_DEP_PRO): New function.
17328         (SET_DEP_CON): Likewise.
17329
17330 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
17331
17332         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
17333         (extra_options): Add i386/cygwin.opt.
17334         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
17335         (CPP_SPEC): Accept -pthread.
17336         (LINK_SPEC): Ditto.
17337         (GOMP_SELF_SPECS): Update comment.
17338         * config/i386/cygwin.opt: New file for -pthread flag.
17339
17340 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17341
17342         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
17343         * df.h (DF_REF_INSN): Convert from a macro to a function, so
17344         that we can return an rtx_insn *.
17345
17346 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
17347
17348         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
17349         when building executables, not DLLs.  Add --large-address-aware
17350         under the same conditions.
17351         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
17352         when building executables, not DLLs.  Add --large-address-aware
17353         under the same conditions when using -m32.
17354
17355         * config/i386/cygwin-stdint.h: Throughout, make type
17356         definitions dependent on target architecture, not host.
17357
17358 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17359
17360         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
17361         the return type from rtx to rtx_insn *,  which will enable various
17362         conversions in followup patches.  For now this is is done by a
17363         checked cast.
17364         (NEXT_INSN): Likewise.
17365         (SET_PREV_INSN): Convert to an inline function.  This is intended
17366         for use as an lvalue, and so returns an rtx& to allow in-place
17367         modification.
17368         (SET_NEXT_INSN): Likewise.
17369
17370 2014-07-08  Mark Wielaard  <mjw@redhat.com>
17371
17372         PR debug/59051
17373         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
17374
17375 2014-08-19  Marek Polacek  <polacek@redhat.com>
17376
17377         PR c/61271
17378         * cgraphunit.c (handle_alias_pairs): Fix condition.
17379
17380 2014-08-19  Richard Biener  <rguenther@suse.de>
17381
17382         * gimple-fold.c (fold_gimple_assign): Properly build a
17383         null-pointer constant when devirtualizing addresses.
17384
17385 2014-07-07  Mark Wielaard  <mjw@redhat.com>
17386
17387         * dwarf2out.c (decl_quals): New function.
17388         (modified_type_die): Take one cv_quals argument instead of two,
17389         one for const and one for volatile.
17390         (add_type_attribute): Likewise.
17391         (generic_parameter_die): Call add_type_attribute with one modifier
17392         argument.
17393         (base_type_for_mode): Likewise.
17394         (add_bounds_info): Likewise.
17395         (add_subscript_info): Likewise.
17396         (gen_array_type_die): Likewise.
17397         (gen_descr_array_type_die): Likewise.
17398         (gen_entry_point_die): Likewise.
17399         (gen_enumeration_type_die): Likewise.
17400         (gen_formal_parameter_die): Likewise.
17401         (gen_subprogram_die): Likewise.
17402         (gen_variable_die): Likewise.
17403         (gen_const_die): Likewise.
17404         (gen_field_die): Likewise.
17405         (gen_pointer_type_die): Likewise.
17406         (gen_reference_type_die): Likewise.
17407         (gen_ptr_to_mbr_type_die): Likewise.
17408         (gen_inheritance_die): Likewise.
17409         (gen_subroutine_type_die): Likewise.
17410         (gen_typedef_die): Likewise.
17411         (force_type_die): Likewise.
17412
17413 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17414
17415         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
17416         if unset.
17417         * configure: Regenerate.
17418
17419 2014-08-19  Richard Biener  <rguenther@suse.de>
17420
17421         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
17422         DECL_EXTERNALs in BLOCKs as non-references.
17423         * tree-streamer-out.c (streamer_write_chain): Likewise.
17424
17425 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17426             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17427             Anna Tikhonova  <anna.tikhonova@intel.com>
17428             Ilya Tocar  <ilya.tocar@intel.com>
17429             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17430             Ilya Verbin  <ilya.verbin@intel.com>
17431             Kirill Yukhin  <kirill.yukhin@intel.com>
17432             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17433
17434         * config/i386/sse.md
17435         (define_mode_iterator VI48_AVX512F): Delete.
17436         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
17437         (define_mode_iterator VI2_AVX512VL): Ditto.
17438         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
17439         Delete.
17440         (define_insn
17441         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
17442         New.
17443         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
17444         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
17445         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
17446         with VI48_AVX512F_AVX512VL): New.
17447         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
17448         with VI2_AVX512VL): Ditto.
17449
17450 2014-08-19  Marek Polacek  <polacek@redhat.com>
17451
17452         * doc/invoke.texi: Document -Wc99-c11-compat.
17453
17454 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17455
17456         * rtl.h (PREV_INSN): Split macro in two: the existing one,
17457         for rvalues, and...
17458         (SET_PREV_INSN): New macro, for use as an lvalue.
17459         (NEXT_INSN, SET_NEXT_INSN): Likewise.
17460
17461         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
17462         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
17463         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
17464         (fixup_abnormal_edges): Likewise.
17465         (unlink_insn_chain): Likewise.
17466         (fixup_reorder_chain): Likewise.
17467         (cfg_layout_delete_block): Likewise.
17468         (cfg_layout_merge_blocks): Likewise.
17469         * combine.c (update_cfg_for_uncondjump): Likewise.
17470         * emit-rtl.c (link_insn_into_chain): Likewise.
17471         (remove_insn): Likewise.
17472         (delete_insns_since): Likewise.
17473         (reorder_insns_nobb): Likewise.
17474         (emit_insn_after_1): Likewise.
17475         * final.c (rest_of_clean_state): Likewise.
17476         (final_scan_insn): Likewise.
17477         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
17478         * haifa-sched.c (concat_note_lists): Likewise.
17479         (remove_notes): Likewise.
17480         (restore_other_notes): Likewise.
17481         (move_insn): Likewise.
17482         (unlink_bb_notes): Likewise.
17483         (restore_bb_notes): Likewise.
17484         * jump.c (delete_for_peephole): Likewise.
17485         * optabs.c (emit_libcall_block_1): Likewise.
17486         * reorg.c (emit_delay_sequence): Likewise.
17487         (fill_simple_delay_slots): Likewise.
17488         * sel-sched-ir.c (sel_move_insn): Likewise.
17489         (sel_remove_insn): Likewise.
17490         (get_bb_note_from_pool): Likewise.
17491         * sel-sched.c (move_nop_to_previous_block): Likewise.
17492
17493         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
17494         * config/c6x/c6x.c (gen_one_bundle): Likewise.
17495         (c6x_gen_bundles): Likewise.
17496         (hwloop_optimize): Likewise.
17497         * config/frv/frv.c (frv_function_prologue): Likewise.
17498         (frv_register_nop): Likewise.
17499         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
17500         (ia64_reorg): Likewise.
17501         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
17502         (mep_make_bundle): Likewise.
17503         (mep_bundle_insns): Likewise.
17504         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
17505         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
17506         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
17507
17508 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17509
17510         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
17511         return type from rtx to rtx_insn *.
17512         (BB_END): Likewise.
17513         (BB_HEADER): Likewise.
17514         (BB_FOOTER): Likewise.
17515         (SET_BB_HEAD): Convert to a function.
17516         (SET_BB_END): Likewise.
17517         (SET_BB_HEADER): Likewise.
17518         (SET_BB_FOOTER): Likewise.
17519
17520         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
17521         Strengthen the return type from rtx to rtx_insn *.  For now, this
17522         is done by adding a checked cast, but this will eventually
17523         become a field lookup.
17524         (BB_END): Likewise.
17525         (BB_HEADER): Likewise.
17526         (BB_FOOTER): Likewise.
17527         (SET_BB_HEAD): New function, from macro of same name.  This is
17528         intended for use as an lvalue, and so returns an rtx& to allow
17529         in-place modification.
17530         (SET_BB_END): Likewise.
17531         (SET_BB_HEADER): Likewise.
17532         (SET_BB_FOOTER): Likewise.
17533
17534 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
17535
17536         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
17537         for rvalues, and...
17538         (SET_BB_HEAD): New macro, for use as a lvalue.
17539         (BB_END, SET_BB_END): Likewise.
17540         (BB_HEADER, SET_BB_HEADER): Likewise.
17541         (BB_FOOTER, SET_BB_FOOTER): Likewise.
17542
17543         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
17544         of BB_* macros into SET_BB_* macros.
17545         (fix_crossing_unconditional_branches): Likewise.
17546         * caller-save.c (save_call_clobbered_regs): Likewise.
17547         (insert_one_insn): Likewise.
17548         * cfgbuild.c (find_bb_boundaries): Likewise.
17549         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
17550         (outgoing_edges_match): Likewise.
17551         (try_optimize_cfg): Likewise.
17552         * cfgexpand.c (expand_gimple_cond): Likewise.
17553         (expand_gimple_tailcall): Likewise.
17554         (expand_gimple_basic_block): Likewise.
17555         (construct_exit_block): Likewise.
17556         * cfgrtl.c (delete_insn): Likewise.
17557         (create_basic_block_structure): Likewise.
17558         (rtl_delete_block): Likewise.
17559         (rtl_split_block): Likewise.
17560         (emit_nop_for_unique_locus_between): Likewise.
17561         (rtl_merge_blocks): Likewise.
17562         (block_label): Likewise.
17563         (try_redirect_by_replacing_jump): Likewise.
17564         (emit_barrier_after_bb): Likewise.
17565         (fixup_abnormal_edges): Likewise.
17566         (record_effective_endpoints): Likewise.
17567         (relink_block_chain): Likewise.
17568         (fixup_reorder_chain): Likewise.
17569         (fixup_fallthru_exit_predecessor): Likewise.
17570         (cfg_layout_duplicate_bb): Likewise.
17571         (cfg_layout_split_block): Likewise.
17572         (cfg_layout_delete_block): Likewise.
17573         (cfg_layout_merge_blocks): Likewise.
17574         * combine.c (update_cfg_for_uncondjump): Likewise.
17575         * emit-rtl.c (add_insn_after): Likewise.
17576         (remove_insn): Likewise.
17577         (reorder_insns): Likewise.
17578         (emit_insn_after_1): Likewise.
17579         * haifa-sched.c (get_ebb_head_tail): Likewise.
17580         (restore_other_notes): Likewise.
17581         (move_insn): Likewise.
17582         (sched_extend_bb): Likewise.
17583         (fix_jump_move): Likewise.
17584         * ifcvt.c (noce_process_if_block): Likewise.
17585         (dead_or_predicable): Likewise.
17586         * ira.c (update_equiv_regs): Likewise.
17587         * reg-stack.c (change_stack): Likewise.
17588         * sel-sched-ir.c (sel_move_insn): Likewise.
17589         * sel-sched.c (move_nop_to_previous_block): Likewise.
17590
17591         * config/c6x/c6x.c (hwloop_optimize): Likewise.
17592         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
17593
17594 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
17595
17596         * rtl.h (for_each_rtx_in_insn): New function.
17597         * rtlanal.c (for_each_rtx_in_insn): Likewise.
17598
17599 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
17600
17601         * coretypes.h (class rtx_insn): Add forward declaration.
17602
17603         * rtl.h: Include is-a.h.
17604         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
17605         workaround to ensure gengtype knows inheritance is occurring,
17606         whilst continuing to use the pre-existing special-casing for
17607         rtx_def.
17608         (class rtx_insn): New subclass of rtx_def, adding the
17609         invariant that we're dealing with something we can sanely use
17610         INSN_UID, NEXT_INSN, PREV_INSN on.
17611         (is_a_helper <rtx_insn *>::test): New.
17612         (is_a_helper <const rtx_insn *>::test): New.
17613
17614 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
17615
17616         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
17617
17618 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
17619
17620         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
17621         comdats as extern.
17622
17623 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
17624
17625         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
17626         to BUILT_IN_UNREACHABLE.
17627
17628 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
17629
17630         PR target/62011
17631         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
17632         New tune flag.
17633         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
17634         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
17635         (ffs<mode>2): Do not expand with tzcnt for
17636         TARGET_AVOID_FALSE_DEP_FOR_BMI.
17637         (ffssi2_no_cmove): Ditto.
17638         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
17639         (ctz<mode>2): New expander.
17640         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
17641         (*ctz<mode>2_falsedep): New insn.
17642         (*ctz<mode>2): Rename from ctz<mode>2.
17643         (clz<mode>2_lzcnt): New expander.
17644         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
17645         (*clz<mode>2_lzcnt_falsedep): New insn.
17646         (*clz<mode>2): Rename from ctz<mode>2.
17647         (popcount<mode>2): New expander.
17648         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
17649         (*popcount<mode>2_falsedep): New insn.
17650         (*popcount<mode>2): Rename from ctz<mode>2.
17651         (*popcount<mode>2_cmp): Remove.
17652         (*popcountsi2_cmp_zext): Ditto.
17653
17654 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
17655
17656         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
17657         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
17658         * config/microblaze/microblaze.h
17659         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
17660
17661 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
17662
17663         PR other/62168
17664         * configure.ac: Set install_gold_as_default to no for
17665         --enable-gold=no.
17666         * configure: Regenerated.
17667
17668 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
17669
17670         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
17671         * config.in: Add undef of HAVE_isl.
17672         * configure: Regenerate.
17673         * configure.ac: Add definition of HAVE_isl.
17674         * graphite-blocking.c: Add checking of HAVE_isl.
17675         * graphite-dependences.c: Likewise.
17676         * graphite-interchange.c: Likewise.
17677         * graphite-isl-ast-to-gimple.c: Likewise.
17678         * graphite-optimize-isl.c: Likewise.
17679         * graphite-poly.c: Likewise.
17680         * graphite-scop-detection.c: Likewise.
17681         * graphite-sese-to-poly.c: Likewise.
17682         * graphite.c: Likewise.
17683         * toplev.c: Replace the checking of HAVE_cloog with the checking
17684         of HAVE_isl.
17685
17686 2014-08-18  Richard Biener  <rguenther@suse.de>
17687
17688         PR tree-optimization/62090
17689         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
17690         (fold_builtin_3): Do not fold snprintf.
17691         (fold_builtin_4): Likewise.
17692         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
17693         moved from builtins.c.
17694         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
17695         (gimple_fold_builtin): Do not fold sprintf here.
17696
17697 2014-08-18  Richard Biener  <rguenther@suse.de>
17698
17699         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
17700         code to ...
17701         (maybe_canonicalize_mem_ref_addr): ... this function.
17702         (fold_stmt_1): Apply it here before all simplification.
17703
17704 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
17705
17706         PR ipa/61800
17707         * cgraph.h (cgraph_node::create_indirect_edge): Add
17708         compute_indirect_info param.
17709         * cgraph.c (cgraph_node::create_indirect_edge): Compute
17710         indirect_info only when it is required.
17711         * cgraphclones.c (cgraph_clone_edge): Do not recompute
17712         indirect_info fore cloned indirect edge.
17713
17714 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17715             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17716             Anna Tikhonova  <anna.tikhonova@intel.com>
17717             Ilya Tocar  <ilya.tocar@intel.com>
17718             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17719             Ilya Verbin  <ilya.verbin@intel.com>
17720             Kirill Yukhin  <kirill.yukhin@intel.com>
17721             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17722
17723         * config/i386/sse.md
17724         (define_mode_iterator VI8_AVX2_AVX512BW): New.
17725         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
17726
17727 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17728             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17729             Anna Tikhonova  <anna.tikhonova@intel.com>
17730             Ilya Tocar  <ilya.tocar@intel.com>
17731             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17732             Ilya Verbin  <ilya.verbin@intel.com>
17733             Kirill Yukhin  <kirill.yukhin@intel.com>
17734             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17735
17736         * config/i386/sse.md
17737         (define_mode_iterator VF1_AVX512VL): New.
17738         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
17739         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
17740         New.
17741
17742 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17743             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17744             Anna Tikhonova  <anna.tikhonova@intel.com>
17745             Ilya Tocar  <ilya.tocar@intel.com>
17746             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17747             Ilya Verbin  <ilya.verbin@intel.com>
17748             Kirill Yukhin  <kirill.yukhin@intel.com>
17749             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17750
17751         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
17752         * config/i386/i386.md
17753         (define_code_iterator any_float): New.
17754         (define_code_attr floatsuffix): New.
17755         * config/i386/sse.md
17756         (define_mode_iterator VF1_128_256VL): New.
17757         (define_mode_iterator VF2_512_256VL): New.
17758         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
17759         TARGET check.
17760         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
17761         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
17762         New.
17763         (define_mode_attr qq2pssuff): New.
17764         (define_mode_attr sselongvecmode): New.
17765         (define_mode_attr sselongvecmodelower): New.
17766         (define_mode_attr sseintvecmode3): New.
17767         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
17768         New.
17769         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
17770         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
17771         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
17772         (define_insn "ufloatv2siv2df2<mask_name>"): New.
17773
17774 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17775             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17776             Anna Tikhonova  <anna.tikhonova@intel.com>
17777             Ilya Tocar  <ilya.tocar@intel.com>
17778             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17779             Ilya Verbin  <ilya.verbin@intel.com>
17780             Kirill Yukhin  <kirill.yukhin@intel.com>
17781             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17782
17783         * config/i386/sse.md
17784         (define_mode_iterator VF2_AVX512VL): New.
17785         (define_mode_attr sseintvecmode2): New.
17786         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
17787         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
17788         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
17789         (define_insn
17790         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
17791         Ditto.
17792         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
17793         Ditto.
17794         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
17795         Ditto.
17796
17797 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17798             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17799             Anna Tikhonova  <anna.tikhonova@intel.com>
17800             Ilya Tocar  <ilya.tocar@intel.com>
17801             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17802             Ilya Verbin  <ilya.verbin@intel.com>
17803             Kirill Yukhin  <kirill.yukhin@intel.com>
17804             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17805
17806         * config/i386/i386.md
17807         (define_insn "*movoi_internal_avx"): Add evex version.
17808         (define_insn "*movti_internal"): Ditto.
17809
17810 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17811             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17812             Anna Tikhonova  <anna.tikhonova@intel.com>
17813             Ilya Tocar  <ilya.tocar@intel.com>
17814             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17815             Ilya Verbin  <ilya.verbin@intel.com>
17816             Kirill Yukhin  <kirill.yukhin@intel.com>
17817             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17818
17819         * config/i386/i386.md
17820         (define_attr "isa"): Add avx512dq, noavx512dq.
17821         (define_attr "enabled"): Ditto.
17822         * config/i386/sse.md
17823         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
17824
17825 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17826             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17827             Anna Tikhonova  <anna.tikhonova@intel.com>
17828             Ilya Tocar  <ilya.tocar@intel.com>
17829             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17830             Ilya Verbin  <ilya.verbin@intel.com>
17831             Kirill Yukhin  <kirill.yukhin@intel.com>
17832             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17833
17834         * config/i386/i386.c
17835         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
17836         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
17837         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
17838         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
17839         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
17840         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
17841         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
17842         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
17843         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
17844         * config/i386/sse.md
17845         (define_mode_iterator VMOVE): Allow V4TI mode.
17846         (define_mode_iterator V_AVX512VL): New.
17847         (define_mode_iterator V): New handling for AVX512VL.
17848         (define_insn "avx512f_load<mode>_mask"): Delete.
17849         (define_insn "<avx512>_load<mode>_mask"): New.
17850         (define_insn "avx512f_store<mode>_mask"): Delete.
17851         (define_insn "<avx512>_store<mode>_mask"): New.
17852
17853
17854 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
17855
17856         PR sanitizer/62089
17857         * asan.c (instrument_derefs): Fix bitfield check.
17858
17859 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
17860
17861         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
17862         * config/rs6000/htm.md (ttest): Remove clobber.
17863         * config/rs6000/predicates.md (any_mask_operand): New predicate.
17864         (and_operand): Reformat.
17865         (and_2rld_operand): New predicate.
17866         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
17867         parameter.
17868         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
17869         parameter.  Handle AND directly.
17870         (rs6000_split_logical_di): Remove last parameter.
17871         (rs6000_split_logical): Remove last parameter.  Remove obsolete
17872         comment.
17873         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
17874         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
17875         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
17876         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
17877         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
17878         and 5 anonymous splitters):  Delete.
17879         (and<mode>3): New expander.
17880         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
17881         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
17882         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
17883         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
17884         (floatdisf2_internal1): Remove clobbers.
17885         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
17886         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
17887         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
17888         (and<mode>3 for BOOL_128): Remove clobber.
17889         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
17890         rs6000_split_logical.
17891         (*bool<mode>3_internal for BOOL_128): Adjust call of
17892         rs6000_split_logical.
17893         (*boolc<mode>3_internal1 for BOOL_128,
17894         *boolc<mode>3_internal2 for BOOL_128,
17895         *boolcc<mode>3_internal1 for BOOL_128,
17896         *boolcc<mode>3_internal2 for BOOL_128,
17897         *eqv<mode>3_internal1 for BOOL_128,
17898         *eqv<mode>3_internal2 for BOOL_128,
17899         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
17900         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
17901         clobber.
17902         (*vec_reload_and_reg_<mptrsize>): Delete.
17903
17904 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
17905
17906         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
17907         and split, *boolccsi3_internal3 and split): Delete.
17908         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
17909         *boolccdi3_internal3 and split): Delete.
17910         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
17911         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
17912
17913 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
17914
17915         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
17916         and split, *boolcsi3_internal3 and split): Delete.
17917         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
17918         *boolcdi3_internal3 and split): Delete.
17919         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
17920
17921 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
17922
17923         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
17924         <'u'>: Also support printing the low-order 16 bits.
17925         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
17926         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
17927         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
17928         *booldi3_internal3 and split): Delete.
17929         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
17930         *bool<mode>3_dot2): New.
17931         (two anonymous define_splits for non_logical_cint_operand): Merge.
17932
17933 2014-08-17  Marek Polacek  <polacek@redhat.com>
17934             Manuel López-Ibáñez  <manu@gcc.gnu.org>
17935
17936         PR c/62059
17937         * diagnostic.c (adjust_line): Add gcc_checking_assert.
17938         (diagnostic_show_locus): Don't print caret diagnostic
17939         if a column is larger than the line_width.
17940
17941 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
17942
17943         * common.opt: Make the ISL AST generator to be the main code generator
17944         of Graphite.
17945
17946 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
17947
17948         * wide-int.h (generic_wide_int): Declare as class instead of struct.
17949
17950 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
17951
17952         PR target/61641
17953         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
17954         Declare.
17955         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
17956         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
17957         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
17958         Define.
17959         * config/pa/pa.md (begin_brtab): Delete insn.
17960         (end_brtab): Likewise.
17961
17962 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17963
17964         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
17965
17966 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
17967
17968         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
17969         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
17970         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
17971         (get_dynamic_type): Remove.
17972         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
17973         (clear_speculation): Bring to ipa-deivrt.h
17974         (get_class_context): Rename to ...
17975         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
17976         (contains_type_p): Update.
17977         (get_dynamic_type): Rename to ...
17978         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
17979         (possible_polymorphic_call_targets): UPdate.
17980         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
17981         * ipa-prop.c (ipa_analyze_call_uses): Update.
17982
17983 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
17984
17985         * doc/invoke.texi (SH options): Document missing processor variant
17986         options.  Remove references to Hitachi.  Undocument deprecated mspace
17987         option.
17988
17989 2014-08-15  Jason Merrill  <jason@redhat.com>
17990
17991         * tree.c (type_hash_canon): Uncomment assert.
17992
17993 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17994
17995         * input.h (in_system_header_at): Add comment.
17996
17997 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17998
17999         PR fortran/44054
18000         * diagnostic.c (build_message_string): Make it extern.
18001         * diagnostic.h (build_message_string): Make it extern.
18002
18003 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
18004
18005         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
18006         load/store from/to non-floating class pseudo.
18007
18008 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18009
18010         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
18011
18012 2014-08-15  Richard Biener  <rguenther@suse.de>
18013
18014         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
18015         (get_constraint_for_ssa_var): Remove dead code.
18016         (get_constraint_for_1): Adjust.
18017         (find_what_var_points_to): Likewise.
18018         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
18019
18020 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
18021
18022         PR target/61878
18023         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
18024         (_mm512_mask_cmpge_epu32_mask): Ditto.
18025         (_mm512_cmpge_epu32_mask): Ditto.
18026         (_mm512_mask_cmpge_epi64_mask): Ditto.
18027         (_mm512_cmpge_epi64_mask): Ditto.
18028         (_mm512_mask_cmpge_epu64_mask): Ditto.
18029         (_mm512_cmpge_epu64_mask): Ditto.
18030         (_mm512_mask_cmple_epi32_mask): Ditto.
18031         (_mm512_cmple_epi32_mask): Ditto.
18032         (_mm512_mask_cmple_epu32_mask): Ditto.
18033         (_mm512_cmple_epu32_mask): Ditto.
18034         (_mm512_mask_cmple_epi64_mask): Ditto.
18035         (_mm512_cmple_epi64_mask): Ditto.
18036         (_mm512_mask_cmple_epu64_mask): Ditto.
18037         (_mm512_cmple_epu64_mask): Ditto.
18038         (_mm512_mask_cmplt_epi32_mask): Ditto.
18039         (_mm512_cmplt_epi32_mask): Ditto.
18040         (_mm512_mask_cmplt_epu32_mask): Ditto.
18041         (_mm512_cmplt_epu32_mask): Ditto.
18042         (_mm512_mask_cmplt_epi64_mask): Ditto.
18043         (_mm512_cmplt_epi64_mask): Ditto.
18044         (_mm512_mask_cmplt_epu64_mask): Ditto.
18045         (_mm512_cmplt_epu64_mask): Ditto.
18046         (_mm512_mask_cmpneq_epi32_mask): Ditto.
18047         (_mm512_mask_cmpneq_epu32_mask): Ditto.
18048         (_mm512_cmpneq_epu32_mask): Ditto.
18049         (_mm512_mask_cmpneq_epi64_mask): Ditto.
18050         (_mm512_cmpneq_epi64_mask): Ditto.
18051         (_mm512_mask_cmpneq_epu64_mask): Ditto.
18052         (_mm512_cmpneq_epu64_mask): Ditto.
18053         (_mm512_castpd_ps): Ditto.
18054         (_mm512_castpd_si512): Ditto.
18055         (_mm512_castps_pd): Ditto.
18056         (_mm512_castps_si512): Ditto.
18057         (_mm512_castsi512_ps): Ditto.
18058         (_mm512_castsi512_pd): Ditto.
18059         (_mm512_castpd512_pd128): Ditto.
18060         (_mm512_castps512_ps128): Ditto.
18061         (_mm512_castsi512_si128): Ditto.
18062         (_mm512_castpd512_pd256): Ditto.
18063         (_mm512_castps512_ps256): Ditto.
18064         (_mm512_castsi512_si256): Ditto.
18065         (_mm512_castpd128_pd512): Ditto.
18066         (_mm512_castps128_ps512): Ditto.
18067         (_mm512_castsi128_si512): Ditto.
18068         (_mm512_castpd256_pd512): Ditto.
18069         (_mm512_castps256_ps512): Ditto.
18070         (_mm512_castsi256_si512): Ditto.
18071         (_mm512_cmpeq_epu32_mask): Ditto.
18072         (_mm512_mask_cmpeq_epu32_mask): Ditto.
18073         (_mm512_mask_cmpeq_epu64_mask): Ditto.
18074         (_mm512_cmpeq_epu64_mask): Ditto.
18075         (_mm512_cmpgt_epu32_mask): Ditto.
18076         (_mm512_mask_cmpgt_epu32_mask): Ditto.
18077         (_mm512_mask_cmpgt_epu64_mask): Ditto.
18078         (_mm512_cmpgt_epu64_mask): Ditto.
18079         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
18080         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
18081         * config/i386/i386.c (enum ix86_builtins): Add
18082         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
18083         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
18084         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
18085         (bdesc_args): Add __builtin_ia32_si512_256si,
18086         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
18087         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
18088         __builtin_ia32_pd512_pd.
18089         (ix86_expand_args_builtin): Handle new FTYPEs.
18090         * config/i386/sse.md (castmode): Add 512-bit modes.
18091         (AVX512MODE2P): New.
18092         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
18093         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
18094
18095 2014-08-15  Richard Biener  <rguenther@suse.de>
18096
18097         * fold-const.c (tree_swap_operands_p): Put all constants
18098         last, also strip sign-changing NOPs when considering further
18099         canonicalization.  Canonicalize also when optimizing for size.
18100
18101 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18102
18103         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
18104         one_match > zero_match case to just before simple_sequence.
18105
18106 2014-08-15  Richard Biener  <rguenther@suse.de>
18107
18108         * data-streamer.h (streamer_string_index, string_for_index):
18109         Remove.
18110         * data-streamer-out.c (streamer_string_index): Make static.
18111         * data-streamer-in.c (string_for_index): Likewise.
18112         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
18113         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
18114
18115 2014-08-15  Richard Biener  <rguenther@suse.de>
18116
18117         PR tree-optimization/62031
18118         * tree-data-ref.c (dr_analyze_indices): Do not set
18119         DR_UNCONSTRAINED_BASE.
18120         (dr_may_alias_p): All indirect accesses have to go the
18121         formerly DR_UNCONSTRAINED_BASE path.
18122         * tree-data-ref.h (struct indices): Remove
18123         unconstrained_base member.
18124         (DR_UNCONSTRAINED_BASE): Remove.
18125
18126 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
18127
18128         PR middle-end/62092
18129         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
18130         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
18131         in OMP_CLAUSE_MAP in some outer target region.
18132
18133 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
18134
18135         * tree-ssa-loop-ivopts.c (ivopts_data): New field
18136         name_expansion_cache.
18137         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
18138         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
18139         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
18140         (difference_cannot_overflow_p): New parameter.  Use affine
18141         expansion for equality check.
18142         (iv_elimination_compare_lt): Pass new argument.
18143
18144 2014-08-14  DJ Delorie  <dj@redhat.com>
18145
18146         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
18147         variables to the accumulator.
18148
18149         * config/rl78/predicates.md (rl78_near_mem_operand): New.
18150         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
18151         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
18152         with far-far moves.
18153
18154         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
18155         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
18156         (umulqihi3_virt): Likewise.
18157         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
18158         (umulqihi3_real): Likewise.
18159
18160         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
18161
18162 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
18163
18164         PR tree-optimization/62091
18165         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
18166         function_entry_reached.
18167         (walk_aliased_vdefs): Clear it here.
18168         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
18169
18170 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
18171
18172         * ipa-utils.h (compare_virtual_tables): Declare.
18173         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
18174
18175 2014-08-14  Marek Polacek  <polacek@redhat.com>
18176
18177         DR 458
18178         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
18179         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
18180
18181 2014-08-14  Tom de Vries  <tom@codesourcery.com>
18182
18183         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
18184
18185 2014-08-14  Tom de Vries  <tom@codesourcery.com>
18186
18187         PR rtl-optimization/62004
18188         PR rtl-optimization/62030
18189         * ifcvt.c (rtx_interchangeable_p): New function.
18190         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
18191         * emit-rtl.h (mem_attrs_eq_p): Declare.
18192
18193 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
18194
18195         * graphite-scop-detection.c:
18196         Add inclusion of cp-tree.h.
18197         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
18198         in case they are pointers to object types
18199
18200 2014-08-14  Richard Biener  <rguenther@suse.de>
18201
18202         * BASE-VER: Change to 5.0.0
18203
18204 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18205             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18206             Anna Tikhonova  <anna.tikhonova@intel.com>
18207             Ilya Tocar  <ilya.tocar@intel.com>
18208             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18209             Ilya Verbin  <ilya.verbin@intel.com>
18210             Kirill Yukhin  <kirill.yukhin@intel.com>
18211             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18212
18213         * config/i386/sse.md (define_mode_attr avx512): New.
18214         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
18215         V4DI modes.
18216         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
18217         (define_mode_attr ssse3_avx2): Ditto.
18218         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
18219         (define_mode_attr avx2_avx512bw): New.
18220         (define_mode_attr ssedoublemodelower): New.
18221         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
18222         V32HI, V64QI modes.
18223         (define_mode_attr ssebytemode): Allow V8DI modes.
18224         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
18225         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
18226         (define_mode_attr ssePSmode2): New.
18227         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
18228         V16HI, V32HI modes.
18229         (define_mode_attr dbpsadbwmode): New.
18230         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
18231         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
18232         (vi8_sse4_1_avx2_avx512): New.
18233         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
18234         mode attribute.
18235         (define_mode_attr blendbits): Move before its immediate use.
18236
18237 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18238             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18239             Anna Tikhonova  <anna.tikhonova@intel.com>
18240             Ilya Tocar  <ilya.tocar@intel.com>
18241             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18242             Ilya Verbin  <ilya.verbin@intel.com>
18243             Kirill Yukhin  <kirill.yukhin@intel.com>
18244             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18245
18246         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
18247         * config/i386/subst.md
18248         (define_mode_iterator SUBST_V): Update.
18249         (define_mode_iterator SUBST_A): Ditto.
18250         (define_subst_attr "mask_operand7"): New.
18251         (define_subst_attr "mask_operand10"): New.
18252         (define_subst_attr "mask_operand_arg34") : New.
18253         (define_subst_attr "mask_expand_op3"): New.
18254         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
18255         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
18256         (define_subst_attr "mask_avx512vl_condition"): New.
18257         (define_subst_attr "round_mask_operand4"): Ditto.
18258         (define_subst_attr "round_mask_scalar_op3"): Delete.
18259         (define_subst_attr "round_mask_op4"): New.
18260         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
18261         V16SImode.
18262         (define_subst_attr "round_modev8sf_condition"): New.
18263         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
18264         <MODE>mode.
18265         (define_subst_attr "round_saeonly_mask_operand4"): New.
18266         (define_subst_attr "round_saeonly_mask_op4"): New.
18267         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
18268         V8DImode, V16SImode.
18269         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
18270         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
18271         (define_subst_attr "mask_expand4_args"): New.
18272         (define_subst "mask_expand4"): New.
18273
18274 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18275             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18276             Anna Tikhonova  <anna.tikhonova@intel.com>
18277             Ilya Tocar  <ilya.tocar@intel.com>
18278             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18279             Ilya Verbin  <ilya.verbin@intel.com>
18280             Kirill Yukhin  <kirill.yukhin@intel.com>
18281             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18282
18283         * config/i386/i386.md
18284         (define_attr "isa"): Add avx512bw,noavx512bw.
18285         (define_attr "enabled"): Ditto.
18286         (define_split): Add 32/64-bit mask logic.
18287         (define_insn "*k<logic>qi"): New.
18288         (define_insn "*k<logic>hi"): New.
18289         (define_insn "*anddi_1"): Add mask version.
18290         (define_insn "*andsi_1"): Ditto.
18291         (define_insn "*<code><mode>_1"): Ditto.
18292         (define_insn "*<code>hi_1"): Ditto.
18293         (define_insn "kxnor<mode>"): New.
18294         (define_insn "kunpcksi"): New.
18295         (define_insn "kunpckdi"): New.
18296         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
18297         (define_insn "*one_cmplhi2_1"): Ditto.
18298
18299 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18300             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18301             Anna Tikhonova  <anna.tikhonova@intel.com>
18302             Ilya Tocar  <ilya.tocar@intel.com>
18303             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18304             Ilya Verbin  <ilya.verbin@intel.com>
18305             Kirill Yukhin  <kirill.yukhin@intel.com>
18306             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18307
18308         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
18309         V32HImode.
18310
18311 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18312             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18313             Anna Tikhonova  <anna.tikhonova@intel.com>
18314             Ilya Tocar  <ilya.tocar@intel.com>
18315             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18316             Ilya Verbin  <ilya.verbin@intel.com>
18317             Kirill Yukhin  <kirill.yukhin@intel.com>
18318             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18319
18320         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
18321         registers.
18322         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
18323         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
18324         xmm/ymm16+ when availble.
18325         * config/i386/i386.h
18326         (HARD_REGNO_NREGS): Add mask regs.
18327         (VALID_AVX512F_REG_MODE): Ditto.
18328         (VALID_AVX512F_REG_MODE) : Define.
18329         (VALID_MASK_AVX512BW_MODE): Ditto.
18330         (reg_class) (MASK_REG_P(X)): Define.
18331         * config/i386/i386.md: Do not split long moves with mask register,
18332         use kmovb if avx512bw is availible.
18333         (movdi_internal): Handle mask registers.
18334
18335 2014-08-14  Richard Biener  <rguenther@suse.de>
18336
18337         PR tree-optimization/62081
18338         * tree-ssa-loop.c (pass_fix_loops): New pass.
18339         (pass_tree_loop::gate):  Do not fixup loops here.
18340         * tree-pass.h (make_pass_fix_loops): Declare.
18341         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
18342
18343 2014-08-14  Richard Biener  <rguenther@suse.de>
18344
18345         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
18346         (type_hash_canon): ... this and avoid 2nd lookup for the add.
18347
18348 2014-08-14  Richard Biener  <rguenther@suse.de>
18349
18350         PR tree-optimization/62090
18351         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
18352         (fold_builtin_2): Do not fold sprintf.
18353         (fold_builtin_3): Likewise.
18354         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
18355         moved from builtins.c.
18356         (gimple_fold_builtin): Fold sprintf.
18357
18358 2014-08-14  Richard Biener  <rguenther@suse.de>
18359
18360         PR rtl-optimization/62079
18361         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
18362         run cleanup_cfg.
18363
18364 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
18365
18366         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
18367         current_function_decl.
18368
18369 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
18370
18371         * cgraph.c (cgraph_node::function_symbol): Fix wrong
18372         cgraph_function_node to cgraph_node::function_symbol
18373         refactoring.
18374
18375 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
18376
18377         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
18378         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
18379
18380 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
18381
18382         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
18383         warning.
18384
18385 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
18386
18387         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
18388         generator.
18389
18390 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
18391
18392         PR target/62025
18393         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
18394         any registers that are used in mem_insn.
18395
18396 2014-08-12  Steve Ellcey  <sellcey@mips.com>
18397
18398         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
18399
18400 2014-08-12  Steve Ellcey  <sellcey@mips.com>
18401
18402         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
18403         (MULTILIB_DIRNAMES): Ditto.
18404         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
18405         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
18406         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
18407         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
18408         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
18409         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
18410
18411 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18412
18413         PR target/61413
18414         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
18415         of __ARM_SIZEOF_WCHAR_T.
18416
18417 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18418
18419         PR target/62098
18420         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
18421         Remove unnecessary attributes.
18422
18423 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
18424
18425         * internal-fn.c (init_internal_fns): Fix off-by-one.
18426
18427 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18428             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18429             Anna Tikhonova  <anna.tikhonova@intel.com>
18430             Ilya Tocar  <ilya.tocar@intel.com>
18431             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18432             Ilya Verbin  <ilya.verbin@intel.com>
18433             Kirill Yukhin  <kirill.yukhin@intel.com>
18434             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18435
18436         * config/i386/i386.c (standard_sse_constant_opcode): Use
18437         vpxord/vpternlog if avx512 is availible.
18438
18439 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18440
18441         PR middle-end/62103
18442         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
18443         bitfields, that is when size doesn't match the size of type or the
18444         size of the constructor.
18445
18446 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18447
18448         * config/rs6000/constraints.md (wh constraint): New constraint,
18449         for FP registers if direct move is available.
18450         (wi constraint): New constraint, for VSX/FP registers that can
18451         handle 64-bit integers.
18452         (wj constraint): New constraint for VSX/FP registers that can
18453         handle 64-bit integers for direct moves.
18454         (wk constraint): New constraint for VSX/FP registers that can
18455         handle 64-bit doubles for direct moves.
18456         (wy constraint): Make documentation match implementation.
18457
18458         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
18459         scalar_in_vmx_p field to simplify tests of whether SFmode or
18460         DFmode can go in the Altivec registers.
18461         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
18462         (rs6000_setup_reg_addr_masks): Likewise.
18463         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
18464         field, and wh/wi/wj/wk constraints.
18465         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
18466         the wh/wi/wj/wk constraints.
18467         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
18468         upper registers, prefer VSX registers unless the operation is a
18469         memory operation with REG+OFFSET addressing.
18470
18471         * config/rs6000/vsx.md (VSr mode attribute): Add support for
18472         DImode.  Change SFmode to use ww constraint instead of d to allow
18473         SF registers in the upper registers.
18474         (VSr2): Likewise.
18475         (VSr3): Likewise.
18476         (VSr5): Fix thinko in comment.
18477         (VSa): New mode attribute that is an alternative to wa, that
18478         returns the VSX register class that a mode can go in, but may not
18479         be the preferred register class.
18480         (VS_64dm): New mode attribute for appropriate register classes for
18481         referencing 64-bit elements of vectors for direct moves and normal
18482         moves.
18483         (VS_64reg): Likewise.
18484         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
18485         register allocator to only registers the data type can handle.
18486         (vsx_le_perm_load_<mode>): Likewise.
18487         (vsx_le_perm_store_<mode>): Likewise.
18488         (vsx_xxpermdi2_le_<mode>): Likewise.
18489         (vsx_xxpermdi4_le_<mode>): Likewise.
18490         (vsx_lxvd2x2_le_<mode>): Likewise.
18491         (vsx_lxvd2x4_le_<mode>): Likewise.
18492         (vsx_stxvd2x2_le_<mode>): Likewise.
18493         (vsx_add<mode>3): Likewise.
18494         (vsx_sub<mode>3): Likewise.
18495         (vsx_mul<mode>3): Likewise.
18496         (vsx_div<mode>3): Likewise.
18497         (vsx_tdiv<mode>3_internal): Likewise.
18498         (vsx_fre<mode>2): Likewise.
18499         (vsx_neg<mode>2): Likewise.
18500         (vsx_abs<mode>2): Likewise.
18501         (vsx_nabs<mode>2): Likewise.
18502         (vsx_smax<mode>3): Likewise.
18503         (vsx_smin<mode>3): Likewise.
18504         (vsx_sqrt<mode>2): Likewise.
18505         (vsx_rsqrte<mode>2): Likewise.
18506         (vsx_tsqrt<mode>2_internal): Likewise.
18507         (vsx_fms<mode>4): Likewise.
18508         (vsx_nfma<mode>4): Likewise.
18509         (vsx_eq<mode>): Likewise.
18510         (vsx_gt<mode>): Likewise.
18511         (vsx_ge<mode>): Likewise.
18512         (vsx_eq<mode>_p): Likewise.
18513         (vsx_gt<mode>_p): Likewise.
18514         (vsx_ge<mode>_p): Likewise.
18515         (vsx_xxsel<mode>): Likewise.
18516         (vsx_xxsel<mode>_uns): Likewise.
18517         (vsx_copysign<mode>3): Likewise.
18518         (vsx_float<VSi><mode>2): Likewise.
18519         (vsx_floatuns<VSi><mode>2): Likewise.
18520         (vsx_fix_trunc<mode><VSi>2): Likewise.
18521         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
18522         (vsx_x<VSv>r<VSs>i): Likewise.
18523         (vsx_x<VSv>r<VSs>ic): Likewise.
18524         (vsx_btrunc<mode>2): Likewise.
18525         (vsx_b2trunc<mode>2): Likewise.
18526         (vsx_floor<mode>2): Likewise.
18527         (vsx_ceil<mode>2): Likewise.
18528         (vsx_<VS_spdp_insn>): Likewise.
18529         (vsx_xscvspdp): Likewise.
18530         (vsx_xvcvspuxds): Likewise.
18531         (vsx_float_fix_<mode>2): Likewise.
18532         (vsx_set_<mode>): Likewise.
18533         (vsx_extract_<mode>_internal1): Likewise.
18534         (vsx_extract_<mode>_internal2): Likewise.
18535         (vsx_extract_<mode>_load): Likewise.
18536         (vsx_extract_<mode>_store): Likewise.
18537         (vsx_splat_<mode>): Likewise.
18538         (vsx_xxspltw_<mode>): Likewise.
18539         (vsx_xxspltw_<mode>_direct): Likewise.
18540         (vsx_xxmrghw_<mode>): Likewise.
18541         (vsx_xxmrglw_<mode>): Likewise.
18542         (vsx_xxsldwi_<mode>): Likewise.
18543         (vsx_xscvdpspn): Tighten constraints to only use register classes
18544         the types use.
18545         (vsx_xscvspdpn): Likewise.
18546         (vsx_xscvdpspn_scalar): Likewise.
18547
18548         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
18549         wj, and wk constraints.
18550         (GPR_REG_CLASS_P): New helper macro for register classes targeting
18551         general purpose registers.
18552
18553         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
18554         direct moves.
18555         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
18556         DImode instead of wm.  Use wk constraint for direct move of DFmode
18557         instead of wm.
18558         (extendsidi2_lfiwax): Likewise.
18559         (lfiwax): Likewise.
18560         (lfiwzx): Likewise.
18561         (movdi_internal64): Likewise.
18562
18563         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
18564         wk constraints. Make the wy constraint documentation match them
18565         implementation.
18566
18567 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
18568
18569         Replacement of isl_int by isl_val
18570         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
18571         (compute_bounds_for_param): use isl_val instead of isl_int
18572         (compute_bounds_for_loop): likewise
18573         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
18574         (build_linearized_memory_access): use isl_val instead of isl_int
18575         (pdr_stride_in_loop): likewise
18576         * graphite-optimize-isl.c:
18577         (getPrevectorMap): use isl_val instead of isl_int
18578         * graphite-poly.c:
18579         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
18580         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
18581         (extern the_isl_ctx): declare
18582         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
18583         (extract_affine_gmp): likewise
18584         (wrap): likewise
18585         (build_loop_iteration_domains): likewise
18586         (add_param_constraints): likewise
18587
18588 2014-08-11  Richard Biener  <rguenther@suse.de>
18589
18590         PR tree-optimization/62075
18591         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
18592         handle uses in patterns.
18593
18594 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18595             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18596             Anna Tikhonova  <anna.tikhonova@intel.com>
18597             Ilya Tocar  <ilya.tocar@intel.com>
18598             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18599             Ilya Verbin  <ilya.verbin@intel.com>
18600             Kirill Yukhin  <kirill.yukhin@intel.com>
18601             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18602
18603         * common/config/i386/i386-common.c
18604         (OPTION_MASK_ISA_AVX512VL_SET): Define.
18605         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
18606         (ix86_handle_option): Handle OPT_mavx512vl.
18607         * config/i386/cpuid.h (bit_AVX512VL): Define.
18608         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
18609         set -mavx512vl accordingly.
18610         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18611         OPTION_MASK_ISA_AVX512VL.
18612         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
18613         (ix86_option_override_internal): Define PTA_AVX512VL, handle
18614         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
18615         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
18616         * config/i386/i386.h (TARGET_AVX512VL): Define.
18617         (TARGET_AVX512VL_P(x)): Ditto.
18618         * config/i386/i386.opt: Add mavx512vl.
18619
18620 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
18621
18622         PR tree-optimization/62073
18623         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
18624         a basic block.
18625
18626 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18627             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18628             Anna Tikhonova  <anna.tikhonova@intel.com>
18629             Ilya Tocar  <ilya.tocar@intel.com>
18630             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18631             Ilya Verbin  <ilya.verbin@intel.com>
18632             Kirill Yukhin  <kirill.yukhin@intel.com>
18633             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18634
18635         * common/config/i386/i386-common.c
18636         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
18637         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
18638         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
18639         (ix86_handle_option): Handle OPT_mavx512bw.
18640         * config/i386/cpuid.h (bit_AVX512BW): Define.
18641         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
18642         set -mavx512bw accordingly.
18643         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18644         OPTION_MASK_ISA_AVX512BW.
18645         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
18646         (ix86_option_override_internal): Define PTA_AVX512BW, handle
18647         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
18648         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
18649         * config/i386/i386.h (TARGET_AVX512BW): Define.
18650         (TARGET_AVX512BW_P(x)): Ditto.
18651         * config/i386/i386.opt: Add mavx512bw.
18652
18653 2014-08-11  Richard Biener  <rguenther@suse.de>
18654
18655         PR tree-optimization/62070
18656         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
18657         Remove SSA checking.
18658
18659 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
18660
18661         * asan.c (asan_check_flags): New enum.
18662         (build_check_stmt_with_calls): Removed function.
18663         (build_check_stmt): Split inlining logic to
18664         asan_expand_check_ifn.
18665         (instrument_derefs): Rename parameter.
18666         (instrument_mem_region_access): Rename parameter.
18667         (instrument_strlen_call): Likewise.
18668         (asan_expand_check_ifn): New function.
18669         (asan_instrument): Remove old code.
18670         (pass_sanopt::execute): Change handling of
18671         asan-instrumentation-with-call-threshold.
18672         (asan_clear_shadow): Fix formatting.
18673         (asan_function_start): Likewise.
18674         (asan_emit_stack_protection): Likewise.
18675         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
18676         Update description.
18677         * internal-fn.c (expand_ASAN_CHECK): New function.
18678         * internal-fn.def (ASAN_CHECK): New internal function.
18679         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
18680         Update description.
18681         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
18682         * tree.c: Small comment fix.
18683
18684 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
18685
18686         * gimple.c (gimple_call_fnspec): Support internal functions.
18687         (gimple_call_return_flags): Use const.
18688         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
18689         * internal-fn.def: Add fnspec information.
18690         * internal-fn.h (internal_fn_fnspec): New function.
18691         (init_internal_fns): Declare new function.
18692         * internal-fn.c (internal_fn_fnspec_array): New global variable.
18693         (init_internal_fns): New function.
18694         * tree-core.h: Update macro call.
18695         * tree.c (build_common_builtin_nodes): Initialize internal fns.
18696
18697 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
18698
18699         * lto-streamer.h (struct output_block::symbol): Change from
18700         struct symtab_node to plain symtab_node.
18701         (referenced_from_this_partition_p): Change first parameter
18702         from struct symtab_node to plain symtab_node.
18703
18704 2014-08-10  Marek Polacek  <polacek@redhat.com>
18705
18706         PR c/51849
18707         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
18708
18709 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
18710
18711         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
18712         DECL correctly; do not give up on types in static storage.
18713
18714 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
18715
18716         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
18717
18718 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
18719
18720         * graphite-isl-ast-to-gimple.c:
18721         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
18722
18723         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
18724
18725 2014-08-08  Guozhi Wei  <carrot@google.com>
18726
18727         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
18728
18729 2014-08-08  Cary Coutant  <ccoutant@google.com>
18730
18731         * dwarf2out.c (get_skeleton_type_unit): Remove.
18732         (output_skeleton_debug_sections): Remove skeleton type units.
18733         (output_comdat_type_unit): Likewise.
18734         (dwarf2out_finish): Likewise.
18735
18736 2014-08-07  Yi Yang  <ahyangyi@google.com>
18737
18738         * predict.c (expr_expected_value_1): Remove the redundant assignment.
18739
18740 2014-08-08  Richard Biener  <rguenther@suse.de>
18741
18742         * lto-streamer.h (struct lto_input_block): Make it a class
18743         with a constructor.
18744         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
18745         (struct lto_function_header, struct lto_simple_header,
18746         struct lto_simple_header_with_strings,
18747         struct lto_decl_header, struct lto_function_header): Make
18748         a simple inheritance hieararchy.  Remove unused fields.
18749         (struct lto_asm_header): Remove.
18750         * lto-streamer-out.c (produce_asm): Adjust.
18751         (lto_output_toplevel_asms): Likewise.
18752         (produce_asm_for_decls): Likewise.
18753         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
18754         * data-streamer-in.c (string_for_index): Likewise.
18755         * ipa-inline-analysis.c (inline_read_section): Likewise.
18756         * ipa-prop.c (ipa_prop_read_section): Likewise.
18757         (read_replacements_section): Likewise.
18758         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
18759         * lto-section-in.c (lto_create_simple_input_block): Likewise.
18760         (lto_destroy_simple_input_block): Likewise.
18761         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
18762         (lto_input_toplevel_asms): Likewise.
18763
18764 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18765             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18766             Anna Tikhonova  <anna.tikhonova@intel.com>
18767             Ilya Tocar  <ilya.tocar@intel.com>
18768             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18769             Ilya Verbin  <ilya.verbin@intel.com>
18770             Kirill Yukhin  <kirill.yukhin@intel.com>
18771             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18772
18773         * common/config/i386/i386-common.c
18774         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
18775         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
18776         (ix86_handle_option): Handle OPT_mavx512dq.
18777         * config/i386/cpuid.h (bit_AVX512DQ): Define.
18778         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
18779         set -mavx512dq accordingly.
18780         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18781         OPTION_MASK_ISA_AVX512DQ.
18782         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
18783         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
18784         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
18785         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
18786         * config/i386/i386.h (TARGET_AVX512DQ): Define.
18787         (TARGET_AVX512DQ_P(x)): Ditto.
18788         * config/i386/i386.opt: Add mavx512dq.
18789
18790 2014-08-08  Richard Biener  <rguenther@suse.de>
18791
18792         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
18793         target_percent, target_percent_s): Export.
18794         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
18795         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
18796         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
18797         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
18798         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
18799         Move to gimple-fold.c.
18800         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
18801         strcat and strcpy.
18802         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
18803         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
18804         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
18805         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
18806         (rewrite_call_expr_array): Remove.
18807         (fold_builtin_sprintf_chk): Likewise.
18808         (fold_builtin_snprintf_chk): Likewise.
18809         (fold_builtin_varargs): Remove handling of sprintf_chk,
18810         vsprintf_chk, snprintf_chk and vsnprintf_chk.
18811         (gimple_fold_builtin_sprintf_chk): Remove.
18812         (gimple_fold_builtin_snprintf_chk): Likewise.
18813         (gimple_fold_builtin_varargs): Likewise.
18814         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
18815         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
18816         * gimple.c (gimple_seq_add_seq_without_update): New function.
18817         * gimple.h (gimple_seq_add_seq_without_update): Declare.
18818         * gimple-fold.c: Include output.h.
18819         (gsi_replace_with_seq_vops): New function, split out from ...
18820         (gimplify_and_update_call_from_tree): ... here.
18821         (replace_call_with_value): New function.
18822         (replace_call_with_call_and_fold): Likewise.
18823         (var_decl_component_p): Moved from builtins.c.
18824         (gimple_fold_builtin_memory_op): Moved from builtins.c
18825         fold_builtin_memory_op and rewritten to GIMPLE.
18826         (gimple_fold_builtin_memset): Likewise.
18827         (gimple_fold_builtin_strcpy): Likewise.
18828         (gimple_fold_builtin_strncpy): Likewise.
18829         (gimple_fold_builtin_strcat): Likewise.
18830         (gimple_fold_builtin_fputs): Likewise.
18831         (gimple_fold_builtin_memory_chk): Likewise.
18832         (gimple_fold_builtin_stxcpy_chk): Likewise.
18833         (gimple_fold_builtin_stxncpy_chk): Likewise.
18834         (gimple_fold_builtin_snprintf_chk): Likewise.
18835         (gimple_fold_builtin_sprintf_chk): Likewise.
18836         (gimple_fold_builtin_strlen): New function.
18837         (gimple_fold_builtin_with_strlen): New function split out from
18838         gimple_fold_builtin.
18839         (gimple_fold_builtin): Change signature and handle
18840         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
18841         here.  Call gimple_fold_builtin_with_strlen.
18842         (gimple_fold_call): Adjust.
18843
18844 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
18845
18846         * calls.c (precompute_arguments): Check
18847         promoted_for_signed_and_unsigned_p and set the promoted mode.
18848         (promoted_for_signed_and_unsigned_p): New function.
18849         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
18850         and set the promoted mode.
18851         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
18852         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
18853         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
18854
18855
18856 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
18857
18858         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
18859         instead of SUBREG_PROMOTED_UNSIGNED_SET.
18860         (expand_call): Likewise.
18861         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
18862         to get promoted mode.
18863         * combine.c (record_promoted_value): Skip > 0 comparison with
18864         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
18865         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
18866         of SUBREG_PROMOTED_UNSIGNED_P.
18867         (convert_modes): Likewise.
18868         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
18869         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
18870         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
18871         SUBREG_PROMOTED_UNSIGNED_SET.
18872         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
18873         instead of SUBREG_PROMOTED_UNSIGNED_SET.
18874         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
18875         SUBREG_PROMOTED_SET.
18876         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
18877         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
18878         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
18879         of SUBREG_PROMOTED_UNSIGNED_P.
18880         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
18881         (SUBREG_PROMOTED_SET): New define.
18882         (SUBREG_PROMOTED_GET): Likewise.
18883         (SUBREG_PROMOTED_SIGN): Likewise.
18884         (SUBREG_PROMOTED_SIGNED_P): Likewise.
18885         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
18886         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
18887         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
18888         instead of SUBREG_PROMOTED_UNSIGNED_GET.
18889         (nonzero_bits1): Skip > 0 comparison with the results as
18890         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
18891         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
18892         of !SUBREG_PROMOTED_UNSIGNED_P.
18893         * simplify-rtx.c (simplify_unary_operation_1): Use new
18894         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
18895         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
18896         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
18897         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
18898
18899 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
18900
18901         * ipa-devirt.c: Include gimple-pretty-print.h
18902         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
18903         further tests.
18904         (decl_maybe_in_construction_p): Fix conditional on cdtor check
18905         (get_polymorphic_call_info): Fix return value
18906         (type_change_info): New sturcture based on ipa-prop
18907         variant.
18908         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
18909         based on ipa-prop variant.
18910         (extr_type_from_vtbl_ptr_store): New function
18911         based on ipa-prop variant.
18912         (record_known_type): New function.
18913         (check_stmt_for_type_change): New function.
18914         (get_dynamic_type): New function.
18915         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
18916         * tree-ssa-pre.c: ipa-utils.h
18917         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
18918         machinery; sanity check with ipa-prop devirtualization.
18919         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
18920         polymorphic flag.
18921
18922 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
18923
18924         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
18925         * alias.c, cfgexpand.c, cgraphbuild.c,
18926         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
18927         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
18928         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
18929         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
18930         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
18931         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
18932         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
18933         dse.c, except.c, gengtype.c, gimple-expr.c,
18934         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
18935         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
18936         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
18937         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
18938         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
18939         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
18940         pointer-set.h.
18941         * pointer-set.c: Remove file.
18942         * pointer-set.h: Remove file.
18943
18944 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18945
18946         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
18947         * config/arm/types.md (f_sels, f_seld): Delete.
18948
18949 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18950
18951         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
18952         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
18953         (aarch64_movdi_<mode>high): Likewise.
18954         (aarch64_mov<mode>high_di): Likewise.
18955         (aarch64_movdi_<mode>low): Likewise.
18956         (aarch64_mov<mode>low_di): Likewise.
18957         (aarch64_movtilow_tilow): Likewise.
18958         Add comment explaining usage of fp,simd attributes and of
18959         TARGET_FLOAT and TARGET_SIMD.
18960
18961 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
18962             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18963
18964         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
18965         Use MOVN when one of the half-words is 0xffff.
18966
18967 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
18968
18969         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
18970
18971 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18972
18973         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
18974         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
18975         (rfs_str): String corresponding to RFS_* constants.
18976         (rank_for_schedule_stats_t): New typedef.
18977         (rank_for_schedule_stats): New static variable.
18978         (rfs_result): New static function.
18979         (rank_for_schedule): Track statistics for deciding heuristics.
18980         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
18981         static functions.
18982         (ready_sort): Use them for debug printouts.
18983         (schedule_block): Init statistics state.  Print statistics on
18984         rank_for_schedule decisions.
18985
18986 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18987
18988         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
18989
18990 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
18991
18992         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
18993         constraint.
18994
18995 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
18996
18997         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
18998         function to not conflict.
18999         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
19000         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
19001         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
19002         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
19003         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
19004         of pointer_map.
19005
19006 2014-08-07  Marek Polacek  <polacek@redhat.com>
19007
19008         * fold-const.c (fold_binary_loc): Add folding of
19009         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
19010
19011 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
19012
19013         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
19014         instead of type size.
19015         (ASM_FINISH_DECLARE_OBJECT): Likewise.
19016
19017 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
19018
19019         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
19020         (*thumb1_movqi_insn): Likewise.
19021         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
19022
19023 2014-08-07  Tom de Vries  <tom@codesourcery.com>
19024
19025         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
19026         (glibc_2_11_or_earlier): Remove effective-target keywords.
19027
19028 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
19029
19030         * config/arm/arm.c (bdesc_2arg): Fix typo.
19031         (arm_atomic_assign_expand_fenv): Remove The default implementation.
19032
19033 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
19034
19035         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
19036
19037 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
19038
19039         PR debug/61923
19040         * haifa-sched.c (advance_one_cycle): Fix dump.
19041         (schedule_block): Don't advance cycle if we are already at the
19042         beginning of the cycle.
19043
19044 2014-08-06  Martin Jambor  <mjambor@suse.cz>
19045
19046         PR ipa/61393
19047         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
19048
19049 2014-08-06  Richard Biener  <rguenther@suse.de>
19050
19051         PR lto/62034
19052         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
19053         SCCs here.
19054         (lto_input_tree): Pop SCCs here.
19055
19056 2014-08-06  Richard Biener  <rguenther@suse.de>
19057
19058         PR tree-optimization/61320
19059         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
19060         handle misaligned loads.
19061
19062 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
19063
19064         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
19065         (aarch64_expand_vec_perm_const): Check for dup before zip.
19066
19067 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19068
19069         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
19070         CONST_INT_P instead of GET_CODE and compare.
19071         (aarch64_select_cc_mode): Likewise.
19072         (aarch64_print_operand): Likewise.
19073         (aarch64_rtx_costs): Likewise.
19074         (aarch64_simd_valid_immediate): Likewise.
19075         (aarch64_simd_check_vect_par_cnst_half): Likewise.
19076         (aarch64_simd_emit_pair_result_insn): Likewise.
19077
19078 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
19079
19080         * gdbhooks.py (find_gcc_source_dir): New helper function.
19081         (class PassNames): New class, locating and parsing passes.def.
19082         (class BreakOnPass): New command "break-on-pass".
19083
19084 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
19085
19086         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
19087         getting olde.
19088
19089 2014-08-05  Richard Biener  <rguenther@suse.de>
19090
19091         PR rtl-optimization/61672
19092         * emit-rtl.h (mem_attrs_eq_p): Declare.
19093         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
19094         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
19095         * cfgcleanup.c (merge_memattrs): Likewise.
19096         Include emit-rtl.h.
19097
19098 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19099
19100         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
19101         rather than singleton vectors.
19102         (vqdmlsls_lane_s32): Likewise.
19103
19104 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19105
19106         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
19107         Use VSDQ_HSI mode iterator.
19108         (aarch64_sqrdmulh_laneq<mode>): Likewise.
19109         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
19110         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
19111         Use BUILTIN_VDQHS macro.
19112         (sqrdmulh_laneq): Likewise.
19113         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
19114         (vqdmlals_laneq_s32): Likewise.
19115         (vqdmlslh_laneq_s16): Likewise.
19116         (vqdmlsls_laneq_s32): Likewise.
19117         (vqdmulhh_laneq_s16): Likewise.
19118         (vqdmulhs_laneq_s32): Likewise.
19119         (vqrdmulhh_laneq_s16): Likewise.
19120         (vqrdmulhs_laneq_s32): Likewise.
19121
19122 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19123
19124         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
19125         (vmuld_laneq_f64): Likewise.
19126         (vmuls_laneq_f32): Likewise.
19127         (vmul_n_f64): Likewise.
19128         (vmuld_lane_f64): Reimplement in C.
19129         (vmuls_lane_f32): Likewise.
19130
19131 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19132
19133         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
19134         to reservation.
19135         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
19136
19137 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19138
19139         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
19140         (rbitsi2): Likewise.
19141         (*arm_rev): Set predicable and predicable_short_it attributes.
19142
19143 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19144
19145         * convert.c (convert_to_integer): Guard transformation to lrint by
19146         -fno-math-errno.
19147
19148 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
19149
19150         * config/aarch64/aarch64-builtins.c
19151         (aarch64_simd_builtin_type_mode): Delete.
19152         (v8qi_UP): Remap to V8QImode.
19153         (v4hi_UP): Remap to V4HImode.
19154         (v2si_UP): Remap to V2SImode.
19155         (v2sf_UP): Remap to V2SFmode.
19156         (v1df_UP): Remap to V1DFmode.
19157         (di_UP): Remap to DImode.
19158         (df_UP): Remap to DFmode.
19159         (v16qi_UP):V16QImode.
19160         (v8hi_UP): Remap to V8HImode.
19161         (v4si_UP): Remap to V4SImode.
19162         (v4sf_UP): Remap to V4SFmode.
19163         (v2di_UP): Remap to V2DImode.
19164         (v2df_UP): Remap to V2DFmode.
19165         (ti_UP): Remap to TImode.
19166         (ei_UP): Remap to EImode.
19167         (oi_UP): Remap to OImode.
19168         (ci_UP): Map to CImode.
19169         (xi_UP): Remap to XImode.
19170         (si_UP): Remap to SImode.
19171         (sf_UP): Remap to SFmode.
19172         (hi_UP): Remap to HImode.
19173         (qi_UP): Remap to QImode.
19174         (aarch64_simd_builtin_datum): Make mode a machine_mode.
19175         (VAR1): Build builtin name.
19176         (aarch64_init_simd_builtins): Remove dead code.
19177
19178 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
19179
19180         * graphite-isl-ast-to-gimple.c:
19181         (set_options): New function.
19182         (scop_to_isl_ast): Add calling of set_options.
19183
19184 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
19185
19186         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
19187         (analyze_iv_to_split_insn): Don't initialize them.
19188         (get_ivts_expr): Removed.
19189         (allocate_basic_variable, insert_base_initialization): Use
19190         SET_SRC instead of *get_ivts_expr.
19191         (split_iv): Use &SET_SRC instead of get_ivts_expr.
19192
19193 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
19194
19195         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
19196         (translate_isl_ast_for_loop): Add checking of the
19197         flag_loop_parallelize_all.
19198         (ast_build_before_for): New function.
19199         (scop_to_isl_ast): Add checking of the
19200         flag_loop_parallelize_all.
19201         * graphite-dependences.c: Move the defenition of the
19202         scop_get_dependences from graphite-optimize-isl.c to this file.
19203         (apply_schedule_on_deps): Add checking of the ux's emptiness.
19204         (carries_deps): Add checking of the x's value.
19205         * graphite-optimize-isl.c: Move the defenition of the
19206         scop_get_dependences to graphite-dependences.c.
19207         * graphite-poly.h: Add declarations of scop_get_dependences
19208         and carries_deps.
19209
19210 2014-08-04  Rohit  <rohitarulraj@freescale.com>
19211
19212         PR target/60102
19213         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
19214         names.
19215         (alt_reg_names): Likewise.
19216         (rs6000_dwarf_register_span): For SPE high registers, replace
19217         dwarf register numbers with GCC hard register numbers.
19218         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
19219         (rs6000_dbx_register_number): For SPE high registers, return dwarf
19220         register number for the corresponding GCC hard register number.
19221         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
19222         newly added GCC hard register numbers for SPE high registers.
19223         (DWARF_FRAME_REGISTERS):  Likewise.
19224         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
19225         (DWARF_FRAME_REGNUM): Likewise.
19226         (FIXED_REGISTERS): Likewise.
19227         (CALL_USED_REGISTERS): Likewise.
19228         (CALL_REALLY_USED_REGISTERS): Likewise.
19229         (REG_ALLOC_ORDER): Likewise.
19230         (enum reg_class): Likewise.
19231         (REG_CLASS_NAMES): Likewise.
19232         (REG_CLASS_CONTENTS): Likewise.
19233         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
19234
19235 2014-08-04  Richard Biener  <rguenther@suse.de>
19236
19237         * gimple-fold.h (gimple_fold_builtin): Remove.
19238         * gimple-fold.c (gimple_fold_builtin): Make static.
19239         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
19240         fold_stmt, not gimple_fold_builtin.
19241
19242 2014-08-04  Martin Liska <mliska@suse.cz>
19243
19244         * cgraph.h (csi_end_p): Removed.
19245         (csi_next): Likewise.
19246         (csi_node): Likewise.
19247         (csi_start): Likewise.
19248         (cgraph_node_in_set_p): Likewise.
19249         (cgraph_node_set_size): Likewise.
19250         (vsi_end_p): Likewise.
19251         (vsi_next): Likewise.
19252         (vsi_node): Likewise.
19253         (vsi_start): Likewise.
19254         (varpool_node_set_size): Likewise.
19255         (cgraph_node_set_nonempty_p): Likewise.
19256         (varpool_node_set_nonempty_p): Likewise.
19257         * cgraphunit.c (cgraph_process_new_functions): vec replaces
19258         cgraph_node_set.
19259         * ipa-inline-transform.c: Likewise.
19260         * ipa-utils.c (cgraph_node_set_new): Removed.
19261         (cgraph_node_set_add): Likewise.
19262         (cgraph_node_set_remove): Likewise.
19263         (cgraph_node_set_find): Likewise.
19264         (dump_cgraph_node_set): Likewise.
19265         (debug_cgraph_node_set): Likewise.
19266         (free_cgraph_node_set): Likewise.
19267         (varpool_node_set_new): Likewise.
19268         (varpool_node_set_add): Likewise.
19269         (varpool_node_set_remove): Likewise.
19270         (varpool_node_set_find): Likewise.
19271         (dump_varpool_node_set): Likewise.
19272         (free_varpool_node_set): Likewise.
19273         (debug_varpool_node_set): Likewise.
19274         * tree-emutls.c (struct tls_var_data):
19275         (emutls_index): Removed.
19276         (emutls_decl): Likewise.
19277         (gen_emutls_addr): Function implementation uses newly added
19278         hash_map<varpool_node *, tls_var_data>.
19279         (clear_access_vars): Likewise.
19280         (create_emultls_var): Likewise.
19281         (ipa_lower_emutls): Likewise.
19282         (reset_access): New function.
19283
19284 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
19285
19286         * config/i386/i386.c (ix86_option_override_internal): Add
19287         PTA_RDRND and PTA_MOVBE for bdver4.
19288
19289 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19290             James Greenhalgh  <james.greenhalgh@arm.com>
19291
19292         * doc/md.texi (clrsb): Document.
19293         (clz): Change reference to x into operand 1.
19294         (ctz): Likewise.
19295         (popcount): Likewise.
19296
19297 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19298
19299         PR target/61713
19300         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
19301         move to subtarget in serial version if result is ignored.
19302
19303 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19304             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19305
19306         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
19307         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
19308         (sched_analyze_insn): Update use of try_group_insn to
19309         sched_macro_fuse_insns.
19310         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
19311         arguments that are not conditional jumps.
19312
19313 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
19314
19315         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
19316         family information. Handle BTVER2 cpu with cpuid family value.
19317
19318 2014-08-04  Tom de Vries  <tom@codesourcery.com>
19319
19320         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
19321         (glibc_2_11_or_earlier): Document effective-target keywords.
19322
19323 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
19324
19325         * ipa-devirt.c (odr_type_warn_count): Add type.
19326         (possible_polymorphic_call_targets): Set it.
19327         (ipa_devirt): Use it.
19328
19329 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
19330
19331         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
19332         Document.
19333         * ipa-devirt.c: Include hash-map.h
19334         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
19335         (clear_speculation): Break out of ...
19336         (get_class_context): ... here; speed up handling obviously useless
19337         speculations.
19338         (odr_type_warn_count, decl_warn_count): New structures.
19339         (final_warning_record): New structure.
19340         (final_warning_records): New static variable.
19341         (possible_polymorphic_call_targets): Cleanup handling of
19342         speculative info; do not build speculation when user do not care;
19343         record info about warnings when asked for.
19344         (add_decl_warning): New function.
19345         (type_warning_cmp): New function.
19346         (decl_warning_cmp): New function.
19347         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
19348         (gate): Enable pass when warnings are requested.
19349         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
19350         options.
19351
19352 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
19353
19354         * hash-map.h (default_hashmap_traits::mark_key_deleted):
19355         Fix cast.
19356         (hash_map::remove): New method.
19357         (hash_map::traverse): New method.
19358         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
19359         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
19360         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
19361         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
19362         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
19363         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
19364         pointer_map.
19365
19366 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
19367
19368         * hash-set.h: new File.
19369         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
19370         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
19371         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
19372         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
19373         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
19374         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
19375         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
19376         varpool.c: Use hash_set instead of pointer_set.
19377
19378 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
19379
19380         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
19381
19382 2014-08-01  Jiong Wang <jiong.wang@arm.com>
19383
19384         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
19385         for frame access when strict_p is false.
19386
19387 2014-08-01  Renlin Li <renlin.li@arm.com>
19388 2014-08-01  Jiong Wang <jiong.wang@arm.com>
19389
19390         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
19391         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
19392         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
19393         Declaration.
19394         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
19395         predicate.
19396         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
19397         aarch64_mem_pair_offset.
19398
19399 2014-08-01  Jiong Wang <jiong.wang@arm.com>
19400
19401         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
19402         offset.
19403         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
19404         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
19405
19406 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
19407
19408         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
19409
19410 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
19411
19412         PR regression/61510
19413         * cgraphunit.c (analyze_functions): Use get_create rather than get
19414         for decls which are clones of abstract functions.
19415
19416 2014-08-01  Martin Liska  <mliska@suse.cz>
19417
19418         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
19419         * ipa-prop.h (count_formal_params): Global function created from static.
19420         * ipa-prop.c (count_formal_params): Likewise.
19421         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
19422         profiles for semantically equivalent functions.
19423         * passes.c (do_per_function): If we load body of a function
19424         during WPA, this condition should behave same.
19425         * varpool.c (ctor_for_folding): More tolerant assert for variable
19426         aliases created during WPA.
19427
19428 2014-08-01  Martin Liska  <mliska@suse.cz>
19429
19430         * doc/invoke.texi (Options That Control Optimization): Documentation
19431         for -foptimize-strlen introduced. Optimization levels default options
19432         fixed.
19433
19434 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
19435
19436         * opts.c (common_handle_option): Handle -fsanitize=alignment.
19437         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
19438         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
19439         type to bool.
19440         * stor-layout.h (min_align_of_type): New prototype.
19441         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
19442         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
19443         check.
19444         * ubsan.c: Include builtins.h.
19445         (ubsan_expand_bounds_ifn): Change return type to bool,
19446         always return true.
19447         (ubsan_expand_null_ifn): Change return type to bool, change
19448         argument to gimple_stmt_iterator *.  Handle both null and alignment
19449         sanitization, take type from ckind argument's type rather than
19450         first argument.
19451         (instrument_member_call): Removed.
19452         (instrument_mem_ref): Remove t argument, add mem and base arguments.
19453         Handle both null and alignment sanitization, don't say whole
19454         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
19455         call instead of 2 argument.
19456         (instrument_null): Adjust instrument_mem_ref caller.  Don't
19457         instrument calls here.
19458         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
19459         like SANITIZE_NULL.
19460         * stor-layout.c (min_align_of_type): New function.
19461         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
19462         Or it into SANITIZE_UNDEFINED.
19463         * doc/invoke.texi (-fsanitize=alignment): Document.
19464
19465 2014-07-31  Andi Kleen  <ak@linux.intel.com>
19466
19467         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
19468
19469 2014-07-31  Andi Kleen  <ak@linux.intel.com>
19470
19471         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
19472         inchash.
19473         (vn_reference_compute_hash): Dito.
19474         (vn_nary_op_compute_hash): Dito.
19475         (vn_phi_compute_hash): Dito.
19476         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
19477
19478 2014-07-31  Andi Kleen  <ak@linux.intel.com>
19479
19480         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
19481         Rename to inchash:add_expr_commutative. Convert to inchash.
19482         (iterative_hash_hashable_expr): Rename to
19483         inchash:add_hashable_expr. Convert to inchash.
19484         (avail_expr_hash): Dito.
19485
19486 2014-07-31  Andi Kleen  <ak@linux.intel.com>
19487
19488         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
19489         Convert to inchash.
19490
19491 2014-07-31  Andi Kleen  <ak@linux.intel.com>
19492
19493         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
19494
19495 2014-07-31  Andi Kleen  <ak@linux.intel.com>
19496
19497         * Makefile.in (OBJS): Add rtlhash.o
19498         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
19499         (loc_checksum): Dito.
19500         (loc_checksum_ordered): Dito.
19501         (hash_loc_operands): Dito.
19502         (hash_locs): Dito.
19503         (hash_loc_list): Dito.
19504         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
19505         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
19506         * rtlhash.c: New file.
19507         * rtlhash.h: New file.
19508
19509 2014-07-31  Andi Kleen  <ak@linux.intel.com>
19510
19511         * inchash.h (inchash): Change inchash class to namespace.
19512         (class hash): ... Rename from inchash.
19513         (add_object): Move from macro to class template.
19514         * lto-streamer-out.c (hash_tree): Change inchash
19515         to inchash::hash.
19516         * tree.c (build_type_attribute_qual_variant): Dito.
19517         (type_hash_list): Dito.
19518         (attribute_hash_list): Dito.
19519         (iterative_hstate_expr): Rename to inchash::add_expr
19520         (build_range_type_1): Change inchash to inchash::hash
19521         and use hash::add_expr.
19522         (build_array_type_1): Dito.
19523         (build_function_type): Dito
19524         (build_method_type_directly): Dito.
19525         (build_offset_type): Dito.
19526         (build_complex_type): Dito.
19527         (make_vector_type): Dito.
19528         * tree.h (iterative_hash_expr): Dito.
19529
19530 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
19531
19532         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
19533
19534 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
19535
19536         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
19537         correct alphabetical position.
19538         (vpaddd_f64): Rewrite using builtins.
19539         (vpaddd_s64): Move to correct alphabetical position.
19540         (vpaddd_u64): New.
19541
19542 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
19543
19544         PR target/61844
19545         * config/sh/sh.c (sh_legitimate_address_p,
19546         sh_legitimize_reload_address): Handle reg+reg address modes when
19547         ALLOW_INDEXED_ADDRESS is false.
19548         * config/sh/predicates.md (general_movsrc_operand,
19549         general_movdst_operand): Likewise.
19550
19551 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
19552
19553         * config/aarch64/aarch64-builtins.c
19554         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
19555         BYTES_BIG_ENDIAN.
19556
19557 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
19558
19559         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
19560         the generated mask based on BYTES_BIG_ENDIAN.
19561         (aarch64_simd_check_vect_par_cnst_half): New.
19562         * config/aarch64/aarch64-protos.h
19563         (aarch64_simd_check_vect_par_cnst_half): New.
19564         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
19565         the check out to aarch64_simd_check_vect_par_cnst_half.
19566         (vect_par_cnst_lo_half): Likewise.
19567         * config/aarch64/aarch64-simd.md
19568         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
19569         (move_hi_quad_<mode>): Always generate a low mask.
19570
19571 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19572
19573         * doc/invoke.texi (AVR Options): Add documentation about
19574         __AVR_DEVICE_NAME__ built-in macro.
19575
19576 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
19577
19578         PR target/61948
19579         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
19580         constraints are satisfied.
19581         (<shift>di3_neon): Likewise.
19582
19583 2014-07-31  Richard Biener  <rguenther@suse.de>
19584
19585         PR tree-optimization/61964
19586         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
19587         by structural equality.
19588
19589 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
19590
19591         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
19592         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
19593         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
19594         New enums.
19595         * gcc.c (sanitize_spec_function): Support new option.
19596         (SANITIZER_SPEC): Remove now redundant check.
19597         * opts.c (common_handle_option): Support new option.
19598         (finish_options): Check for incompatibilities.
19599         * toplev.c (process_options): Split userspace-specific checks.
19600
19601 2014-07-31  Richard Biener  <rguenther@suse.de>
19602
19603         * lto-streamer.h (struct output_block): Remove global.
19604         (struct data_in): Remove labels, num_named_labels and
19605         num_unnamed_labels.
19606         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
19607         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
19608
19609 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
19610
19611         PR c++/60517
19612         * common.opt (-Wreturn-local-addr): Moved from c.opt.
19613         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
19614         (isolate_path): New argument to avoid inserting a trap.
19615         (find_implicit_erroneous_behaviour): Handle returning the address
19616         of a local variable.
19617         (find_explicit_erroneous_behaviour): Likewise.
19618
19619 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
19620
19621         PR lto/61868
19622         * toplev.c (init_random_seed): Move piece of code never called to
19623         set_random_seed.
19624         (set_random_seed): see above.
19625
19626 2014-07-31  Tom de Vries  <tom@codesourcery.com>
19627
19628         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
19629
19630 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
19631
19632         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
19633         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
19634
19635 2014-07-31  Richard Biener  <rguenther@suse.de>
19636
19637         * data-streamer.h (streamer_write_data_stream): Declare here,
19638         renamed from ...
19639         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
19640         * lto-cgraph.c (lto_output_node): Adjust.
19641         (lto_output_varpool_node): Likewise.
19642         * data-streamer-out.c (streamer_string_index): Likewise.
19643         (streamer_write_data_stream, lto_append_block): Move from ...
19644         * lto-section-out.c (lto_output_data_stream,
19645         lto_append_block): ... here.
19646
19647 2014-07-30  Mike Stump  <mikestump@comcast.net>
19648
19649         * configure.ac: Also check for popen.
19650         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
19651         * configure: Regenerate.
19652         * config.in:  Regenerate.
19653
19654 2014-07-30  Martin Jambor  <mjambor@suse.cz>
19655
19656         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
19657         parameter to gimple.
19658
19659 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19660
19661         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
19662         address as second parameter to __tpf_eh_return routine.
19663
19664 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
19665
19666         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
19667         Thumb2.
19668
19669 2014-07-30  Tom Tromey  <tromey@redhat.com>
19670
19671         PR c/59855
19672         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
19673         * doc/extend.texi (Type Attributes): Document designated_init
19674         attribute.
19675
19676 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
19677
19678         * graphite-isl-ast-to-gimple.c:
19679         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
19680         (gcc_expression_from_isl_expression): Pass type to
19681         gcc_expression_from_isl_ast_expr_id.
19682
19683 2014-07-30  Richard Biener  <rguenther@suse.de>
19684
19685         * lto-streamer.h (lto_write_data): New function.
19686         * langhooks.c (lhd_append_data): Do not free block.
19687         * lto-section-out.c (lto_write_data): New function writing
19688         raw data to the current section.
19689         (lto_write_stream): Adjust for langhook semantic change.
19690         (lto_destroy_simple_output_block): Write header directly.
19691         * lto-opts.c (lto_write_options): Write options directly.
19692         * lto-streamer-out.c (produce_asm): Write heaeder directly.
19693         (lto_output_toplevel_asms): Likewise.
19694         (copy_function_or_variable): Copy data directly.
19695         (write_global_references): Output index table directly.
19696         (lto_output_decl_state_refs): Likewise.
19697         (write_symbol): Write data directly.
19698         (produce_symtab): Adjust.
19699         (produce_asm_for_decls): Output header and refs directly.
19700
19701 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
19702
19703         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
19704         to speculative_targets
19705         (get_class_context): Fix handling of contextes without outer type;
19706         avoid matching non-polymorphic types in LTO.
19707         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
19708         parameter to speculative_targetsp; handle speculation.
19709         (dump_possible_polymorphic_call_targets): Update dumping.
19710
19711 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
19712
19713         * common.opt (Wodr): Enable by default.
19714
19715 2014-07-29  Olivier Hainque  <hainque@adacore.com>
19716
19717         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
19718
19719 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
19720
19721         PR bootstrap/61914
19722         * gengtype.c (strtoken): New function.
19723         (create_user_defined_type): Replace strtok with strtoken.
19724
19725 2014-07-29  Nathan Sidwell  <nathan@acm.org>
19726
19727         * gcov-io.c (gcov_var): Make hidden.
19728         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
19729         (gcov_do_dump): Declare.
19730         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
19731
19732 2014-07-29  Martin Jambor  <mjambor@suse.cz>
19733
19734         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
19735         parameter to gimple.
19736         (sra_modify_assign): Likewise.
19737
19738 2014-07-29  Richard Biener  <rguenther@suse.de>
19739
19740         PR middle-end/52478
19741         * expr.c (expand_expr_real_2): Revert last change.
19742
19743 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
19744
19745         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
19746         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
19747         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
19748         call.
19749         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
19750         (contains_type_p): Forward declare.
19751         (polymorphic_call_target_hasher::hash): Hash speculative info.
19752         (polymorphic_call_target_hasher::equal): Compare speculative info.
19753         (get_class_context): Handle speuclation.
19754         (contains_type_p): Update.
19755         (get_polymorphic_call_info_for_decl): Update.
19756         (walk_ssa_copies): Break out from ...
19757         (get_polymorphic_call_info): ... here; set speculative context
19758         before giving up.
19759         * ipa-prop.c (ipa_write_indirect_edge_info,
19760         ipa_read_indirect_edge_info): Stream speculative context.
19761         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
19762         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
19763         SPECULATIVE_MAYBE_DERIVED_TYPE).
19764         (possible_polymorphic_call_targets overriders): Update.
19765         (dump_possible_polymorphic_call_targets overriders): Update.
19766         (dump_possible_polymorphic_call_target_p overriders): Update.
19767
19768 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
19769
19770         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
19771         ipa-devirt path; fix thinko there.
19772
19773 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
19774
19775         * config/i386/i386.c (ix86_return_in_memory): Replace one
19776         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
19777
19778 2014-07-28  Marek Polacek  <polacek@redhat.com>
19779
19780         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
19781
19782 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
19783
19784         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
19785         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
19786         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
19787         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
19788         (USE_LD_AS_NEEDED): Likewise.
19789         (ASM_APP_ON): Likewise.
19790         (ASM_APP_OFF): Likewise.
19791         (TARGET_POSIX_IO): Likewise.
19792         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
19793         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
19794         (USE_LD_AS_NEEDED): Likewise.
19795         (ASM_APP_ON): Likewise.
19796         (ASM_APP_OFF): Likewise.
19797         (TARGET_POSIX_IO): Likewise.
19798
19799 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
19800
19801         PR middle-end/61734
19802         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
19803         operators other than the equality operators.
19804
19805 2014-07-28  Richard Biener  <rguenther@suse.de>
19806
19807         PR middle-end/52478
19808         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
19809         sure to register SImode ones, not only >= word_mode ones.
19810         * expr.c (expand_expr_real_2): When expanding -ftrapv
19811         binops do not use OPTAB_LIB_WIDEN.
19812
19813 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
19814
19815         PR middle-end/61919
19816         * tree-outof-ssa.c (insert_partition_copy_on_edge)
19817         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
19818         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
19819         inserting them in the insn stream.
19820
19821 2014-07-28  Marek Polacek  <polacek@redhat.com>
19822
19823         PR middle-end/61913
19824         * common.opt (Wodr): Add Var.
19825
19826 2014-07-28  Richard Biener  <rguenther@suse.de>
19827
19828         PR tree-optimization/61921
19829         * tree-ssa-structalias.c (create_variable_info_for_1): Check
19830         if there is a varpool node before dereferencing it.
19831
19832 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
19833
19834         * graphite-sese-to-poly.c:
19835         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
19836         id of the pbb), which contains pointer to the pbb1.
19837
19838         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
19839
19840 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
19841
19842         * graphite-isl-ast-to-gimple.c:
19843         (graphite_create_new_guard): New function.
19844         (translate_isl_ast_node_if): New function.
19845         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
19846
19847         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
19848
19849 2014-07-27  Anthony Green  <green@moxielogic.com>
19850
19851         * config.gcc: Add moxie-*-moxiebox* configuration.
19852         * config/moxie/moxiebox.h: New file.
19853
19854 2014-07-26  Andrew Pinski  <apinski@cavium.com>
19855
19856         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
19857         from the read only register.
19858
19859 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
19860
19861         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
19862         as the allocation class if it isn't likely to be spilled.
19863
19864 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
19865
19866         * rtl.h (tls_referenced_p): Declare.
19867         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
19868         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
19869         (mips_cannot_force_const_mem): Use tls_referenced_p.
19870         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
19871         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
19872         instead of pa_tls_referenced_p.
19873         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
19874         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
19875         (pa_legitimate_constant_p): Likewise.
19876         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
19877         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
19878         (rs6000_cannot_force_const_mem, rs6000_emit_move)
19879         (rs6000_address_for_altivec): Use tls_referenced_p instead of
19880         rs6000_tls_referenced_p.
19881         (rs6000_tls_symbol_ref_1): Delete.
19882
19883 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
19884
19885         PR target/44551
19886         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
19887         Optimize inverse of a VEC_CONCAT.
19888
19889 2014-07-25  Xinliang David Li  <davidxl@google.com>
19890
19891         * params.def: New parameter.
19892         * coverage.c (get_coverage_counts): Check new flag.
19893         (coverage_compute_profile_id): Check new flag.
19894         (coverage_begin_function): Check new flag.
19895         (coverage_end_function): Check new flag.
19896         * value-prof.c (coverage_node_map_initialized_p): New function.
19897         (init_node_map): Populate map with all functions.
19898         * doc/invoke.texi: Document new parameter.
19899
19900 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
19901             Richard Biener <rguenther@suse.de>
19902
19903         * lto-streamer-out.c (struct sccs): Turn to ...
19904         (class DFS): ... this one; refactor the DFS walk so it can
19905         be re-done on per-SCC basis.
19906         (DFS::DFS): New constructor.
19907         (DFS::~DFS): New destructor.
19908         (hash_tree): Add new MAP argument holding in-SCC hash values;
19909         remove POINTER_TYPE hashing hack.
19910         (scc_entry_compare): Rename to ...
19911         (DFS::scc_entry_compare): ... this one.
19912         (hash_scc): Rename to ...
19913         (DFS::hash_scc): ... this one; pass output_block instead
19914         of streamer_cache; work harder to get unique and stable SCC
19915         hashes.
19916         (DFS_write_tree): Rename to ...
19917         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
19918         (lto_output_tree): Update.
19919
19920 2014-07-25  Andi Kleen  <ak@linux.intel.com>
19921
19922         * lto-streamer-out.c (hash_tree): Convert to inchash.
19923
19924 2014-07-25  Andi Kleen  <ak@linux.intel.com>
19925
19926         * tree.c (build_type_attribute_qual_variant): Use inchash.
19927         (type_hash_list): Dito.
19928         (attribute_hash_list): Dito
19929         (iterative_hstate_expr): Dito.
19930         (iterative_hash_expr): Dito.
19931         (build_range_type_1): Dito.
19932         (build_array_type_1): Dito.
19933         (build_function_type): Dito.
19934         (build_method_type_directly): Dito.
19935         (build_offset_type): Dito.
19936         (build_complex_type): Dito.
19937         (make_vector_type): Dito.
19938         * tree.h (iterative_hash_expr): Add compat wrapper.
19939         (iterative_hstate_expr): Add.
19940
19941 2014-07-25  Andi Kleen  <ak@linux.intel.com>
19942
19943         * Makefile.in (OBJS): Add inchash.o.
19944         (PLUGIN_HEADERS): Add inchash.h.
19945         * ipa-devirt.c: Include inchash.h.
19946         * lto-streamer-out.c: Dito.
19947         * tree-ssa-dom.c: Dito.
19948         * tree-ssa-pre.c: Dito.
19949         * tree-ssa-sccvn.c: Dito.
19950         * tree-ssa-tail-merge.c: Dito.
19951         * asan.c: Dito.
19952         * tree.c (iterative_hash_hashval_t): Move to ...
19953         (iterative_hash_host_wide_int): Move to ...
19954         * inchash.c: Here. New file.
19955         * tree.h (iterative_hash_hashval_t): Move to ...
19956         (iterative_hash_host_wide_int): Move to ...
19957         * inchash.h: Here. New file.
19958
19959 2014-07-25  Richard Biener  <rguenther@suse.de>
19960
19961         PR middle-end/61762
19962         PR middle-end/61894
19963         * fold-const.c (native_encode_int): Add and handle offset
19964         parameter to do partial encodings of expr.
19965         (native_encode_fixed): Likewise.
19966         (native_encode_real): Likewise.
19967         (native_encode_complex): Likewise.
19968         (native_encode_vector): Likewise.
19969         (native_encode_string): Likewise.
19970         (native_encode_expr): Likewise.
19971         * fold-const.c (native_encode_expr): Add offset parameter
19972         defaulting to -1.
19973         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
19974         (fold_ctor_reference): Handle all reads from tcc_constant
19975         ctors.
19976
19977 2014-07-25  Richard Biener  <rguenther@suse.de>
19978
19979         * tree-inline.c (estimate_move_cost): Mark speed_p argument
19980         as possibly unused.
19981
19982 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19983
19984         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
19985
19986 2014-07-24  Kyle McMartin  <kyle@redhat.com>
19987
19988         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
19989
19990 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19991
19992         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
19993         Add prototype.
19994         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
19995         function.
19996         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
19997         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
19998         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
19999
20000 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20001
20002         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
20003         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
20004         aggregate types.  Instead, *all* aggregate types, except for single-
20005         element or homogeneous float/vector aggregates, are quadword-aligned
20006         if required by their type alignment.  Issue -Wpsabi note when a type
20007         is now treated differently than before.
20008
20009 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20010
20011         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
20012         does not fit fully into floating-point registers, and there is still
20013         space in the register parameter area, use GPRs to pass those parts
20014         of the argument.  Issue -Wpsabi note if any parameter is now treated
20015         differently than before.
20016         (rs6000_arg_partial_bytes): Update.
20017
20018 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
20019
20020         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
20021
20022 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
20023
20024         * rtl.h (target_rtl): Remove lang_dependent_initialized.
20025         * toplev.c (initialize_rtl): Don't use it.  Move previously
20026         "language-dependent" calls to...
20027         (backend_init): ...here.
20028         (lang_dependent_init_target): Don't set lang_dependent_initialized.
20029         Assert that RTL initialization hasn't happend yet.
20030
20031 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
20032
20033         PR rtl-optimization/61629
20034         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
20035         they have already been initialized.
20036
20037 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
20038
20039         PR middle-end/61268
20040         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
20041         DECL_INCOMING_RTL and entry_parm.
20042         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
20043         * calls.c (load_register_parameters): Likewise argument values.
20044         (emit_library_call_value_1, store_one_arg): Likewise argument
20045         save areas.
20046         * config/i386/i386.c (assign_386_stack_local): Likewise the local
20047         stack slot.
20048         * explow.c (validize_mem): Modify the argument in-place.
20049
20050 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20051
20052         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
20053         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
20054
20055 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20056
20057         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
20058         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
20059
20060 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20061
20062         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
20063         (aarch64_save_callee_saves): New parameter "skip_wb".
20064         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
20065
20066 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20067
20068         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
20069         "wb_candidate2".
20070         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
20071
20072 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
20073
20074         * graphite-isl-ast-to-gimple.c:
20075         (graphite_create_new_loop): Add calling of isl_id_free to properly
20076         decrement reference counts.
20077
20078         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
20079
20080 2014-07-24  Martin Liska  <mliska@suse.cz>
20081         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
20082         function used.
20083         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
20084         (rs6000_code_end): Likewise.
20085
20086 2014-07-24  Martin Liska  <mliska@suse.cz>
20087
20088         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
20089         symtab_node funtion used.
20090         (rs6000_xcoff_declare_object_name): Likewise.
20091
20092 2014-07-24  Martin Liska  <mliska@suse.cz>
20093
20094         * cgraphunit.c (compile): Correct function used.
20095
20096 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
20097
20098         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
20099         as non-indexable.
20100
20101 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
20102
20103         PR lto/61802
20104         * varasm.c (bss_initializer_p): Handle offlined ctors.
20105         (align_variable, get_variable_align): Likewise.
20106         (make_decl_one_only): Likewise.
20107         (default_binds_local_p_1): Likewise.
20108         (decl_binds_to_current_def_p): Likewise.
20109         (get_variable_section): Get constructor if it is offlined.
20110         (assemble_variable_contents): Sanity check that the caller
20111         streamed in the ctor in LTO.
20112
20113 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
20114
20115         * graphite-isl-ast-to-gimple.c:
20116         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
20117         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
20118         isl_ast_op_pdiv_r to the different case.
20119
20120         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
20121
20122 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20123
20124         PR middle-end/61876
20125         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
20126         when flag_errno_math is on.
20127
20128 2014-07-24  Martin Liska  <mliska@suse.cz>
20129
20130         * cgraph.h (varpool_node):
20131         (availability get_availability (void)):
20132         created from cgraph_variable_initializer_availability
20133         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
20134         created from: cgraph_variable_initializer_availability
20135         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
20136         (void finalize_named_section_flags (void)):
20137         created from varpool_finalize_named_section_flags
20138         (bool assemble_decl (void)): created from varpool_assemble_decl
20139         (void analyze (void)): created from varpool_analyze_node
20140         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
20141         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
20142         (void remove_initializer (void)): created from varpool_remove_initializer
20143         (tree get_constructor (void)): created from varpool_get_constructor
20144         (bool externally_visible_p (void)): created from varpool_externally_visible_p
20145         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
20146         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
20147         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
20148         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
20149         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
20150         (static bool output_variables (void)): created from varpool_output_variables
20151         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
20152         created from varpool_extra_name_alias
20153         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
20154         (static void dump_varpool (FILE *f)): created from dump_varpool
20155         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
20156         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
20157         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
20158         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
20159         (void assemble_aliases (void)): created from assemble_aliases
20160
20161 2014-07-24  Martin Liska  <mliska@suse.cz>
20162
20163         * cgraph.h (symtab_node):
20164         (void register_symbol (void)): created from symtab_register_node
20165         (void remove (void)): created from symtab_remove_node
20166         (void dump (FILE *f)): created from dump_symtab_node
20167         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
20168         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
20169         (struct ipa_ref *add_reference (symtab_node *referred_node,
20170         enum ipa_ref_use use_type)): created from add_reference
20171         (struct ipa_ref *add_reference (symtab_node *referred_node,
20172         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
20173         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
20174         gimple stmt)): created from maybe_add_reference
20175         (bool semantically_equivalent_p (symtab_node *target)): created from
20176         symtab_semantically_equivalent_p
20177         (void remove_from_same_comdat_group (void)): created from
20178         remove_from_same_comdat_group
20179         (void add_to_same_comdat_group (symtab_node *old_node)): created from
20180         symtab_add_to_same_comdat_group
20181         (void dissolve_same_comdat_group_list (void)): created from
20182         symtab_dissolve_same_comdat_group_list
20183         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
20184         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
20185         created from symtab_alias_ultimate_target
20186         (inline symtab_node *next_defined_symbol (void)): created from
20187         symtab_next_defined_symbol
20188         (bool resolve_alias (symtab_node *target)): created from
20189         symtab_resolve_alias
20190         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
20191         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
20192         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
20193         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
20194         (void set_section (const char *section)): created from set_section_1
20195         (enum availability get_availability (void)): created from symtab_node_availability
20196         (void make_decl_local (void)): created from symtab_make_decl_local
20197         (bool real_symbol_p (void)): created from symtab_read_node
20198         (can_be_discarded_p (void)): created from symtab_can_be_discarded
20199         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
20200         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
20201         symtab_in_same_comdat_p;
20202         (bool address_taken_from_non_vtable_p (void)): created from
20203         address_taken_from_non_vtable_p
20204         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
20205         (static void dump_table (FILE *)): created from dump_symtab
20206         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
20207         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
20208         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
20209         symtab_used_from_object_file_p
20210         (void dump_base (FILE *)): created from dump_symtab_base
20211         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
20212         (void unregister (void)): created from symtab_unregister_node
20213         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
20214         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
20215         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
20216         symtab_nonoverwritable_alias_1
20217         * cgraph.h (cgraph_node):
20218         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
20219         created from cgraph_remove_node_and_inline_clones
20220         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
20221         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
20222         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
20223         (cgraph_node *function_symbol (enum availability *avail = NULL)):
20224         created from cgraph_function_node
20225         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
20226         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
20227         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
20228         created from cgraph_create_clone
20229         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
20230         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
20231         created from cgraph_create_virtual_clone
20232         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
20233         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
20234         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
20235         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
20236         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
20237         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
20238         created from cgraph_function_version_info
20239         (struct cgraph_function_version_info *insert_new_function_version (void)):
20240         created from insert_new_cgraph_node_version
20241         (struct cgraph_function_version_info *function_version (void)): created from
20242         get_cgraph_node_version
20243         (void analyze (void)): created from analyze_function
20244         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
20245         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
20246         tree real_alias) cgraph_add_thunk
20247         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
20248         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
20249         created from cgraph_function_or_thunk_node
20250         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
20251         created from expand_thunk
20252         (void reset (void)): created from cgraph_reset_node
20253         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
20254         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
20255         (void remove (void)): created from cgraph_remove_node
20256         (void dump (FILE *f)): created from dump_cgraph_node
20257         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
20258         (bool get_body (void)): created from cgraph_get_body
20259         (void release_body (void)): created from cgraph_release_function_body
20260         (void unnest (void)): created from cgraph_unnest_node
20261         (void make_local (void)): created from cgraph_make_node_local
20262         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
20263         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
20264         gcov_type count, int freq)): created from cgraph_create_edge
20265         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
20266         gcov_type count, int freq)): created from cgraph_create_indirect_edge
20267         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
20268         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
20269         created from cgraph_create_edge_including_clones
20270         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
20271         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
20272         (void remove_callers (void)): created from cgraph_node_remove_callers
20273         (void remove_callees (void)): created from cgraph_node_remove_callees
20274         (enum availability get_availability (void)): created from cgraph_function_body_availability
20275         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
20276         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
20277         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
20278         (void call_duplication_hooks (cgraph_node *node2)): created from
20279         cgraph_call_node_duplication_hooks
20280         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
20281         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
20282         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
20283         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
20284         (void call_function_insertion_hooks (void)):
20285         created from cgraph_call_function_insertion_hooks
20286         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
20287         (bool local_p (void)): created from cgraph_local_node
20288         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
20289         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
20290         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
20291         (inline bool only_called_directly_or_aliased_p (void)):
20292         created from cgraph_only_called_directly_or_aliased_p
20293         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
20294         created from cgraph_will_be_removed_from_program_if_no_direct_calls
20295         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
20296         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
20297         (bool can_remove_if_no_direct_calls_p (void)):
20298         created from cgraph_can_remove_if_no_direct_calls_p
20299         (inline bool has_gimple_body_p (void)):
20300         created from cgraph_function_with_gimple_body_p
20301         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
20302         (static void dump_cgraph (FILE *f)): created from dump_cgraph
20303         (static inline void debug_cgraph (void)): created from debug_cgraph
20304         (static void record_function_versions (tree decl1, tree decl2)):
20305         created from record_function_versions
20306         (static void delete_function_version (tree decl)):
20307         created from delete_function_version
20308         (static void add_new_function (tree fndecl, bool lowered)):
20309         created from cgraph_add_new_function
20310         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
20311         (static cgraph_node * create (tree decl)): created from cgraph_create_node
20312         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
20313         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
20314         (static cgraph_node *get_for_asmname (tree asmname)):
20315         created from cgraph_node_for_asm
20316         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
20317         created from cgraph_same_body_alias
20318         (static bool used_from_object_file_p_worker (cgraph_node *node,
20319         void *): new function
20320         (static bool non_local_p (cgraph_node *node, void *)):
20321         created from cgraph_non_local_node_p_1
20322         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
20323         created from verify_cgraph
20324         (static bool make_local (cgraph_node *node, void *)):
20325         created from cgraph_make_node_local
20326         (static cgraph_node *create_alias (tree alias, tree target)):
20327         created from cgraph_create_function_alias
20328         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
20329         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
20330         created from cgraph_create_edge_1
20331         * cgraph.h (varpool_node):
20332         (void remove (void)): created from varpool_remove_node
20333         (void dump (FILE *f)): created from dump_varpool_node
20334
20335 2014-07-24  Richard Biener  <rguenther@suse.de>
20336
20337         PR ipa/61823
20338         * tree-ssa-structalias.c (create_variable_info_for_1):
20339         Use varpool_get_constructor.
20340         (create_variable_info_for): Likewise.
20341
20342 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20343
20344         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
20345         subtract outgoing area size when restoring stack_pointer_rtx.
20346
20347 2014-07-24  Nick Clifton  <nickc@redhat.com>
20348
20349         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
20350         that operations are taking place in parallel.
20351         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
20352
20353 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
20354
20355         * omp-low.c (extract_omp_for_data): Add missing break statement.
20356
20357 2014-07-24  Richard Biener  <rguenther@suse.de>
20358
20359         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
20360         * tree-inline.c (estimate_move_cost): Add speed_p parameter
20361         and adjust MOVE_RATIO query accordingly.
20362         (estimate_num_insns): Adjust callers.
20363         * ipa-prop.c (ipa_populate_param_decls): Likewise.
20364         * ipa-cp.c (gather_context_independent_values,
20365         estimate_local_effects): Likewise.
20366         * ipa-split.c (consider_split): Likewise.
20367
20368 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
20369
20370         * config/i386/driver-i386.c: Remove names of unused arguments and
20371         unnecessary unused attributes.
20372         * config/i386/host-mingw32.c: Likewise.
20373         * config/i386/i386.c: Likewise.
20374         * config/i386/winnt-stubs.c: Likewise.
20375         * config/i386/winnt.c: Likewise.
20376
20377 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20378
20379         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
20380         (aarch64_gen_loadwb_pair): New helper function.
20381         (aarch64_expand_epilogue): Simplify code using new helper functions.
20382         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
20383
20384 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20385
20386         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
20387         (aarch64_gen_storewb_pair): New helper function.
20388         (aarch64_expand_prologue): Simplify code using new helper functions.
20389         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
20390
20391 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20392
20393         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
20394         Rename to aarch64_save_callee_saves, remove restore code.
20395         (aarch64_restore_callee_saves): New function.
20396
20397 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20398
20399         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
20400         (aarch64_save_callee_saves): New function to handle reg save
20401         for both core and vectore regs.
20402
20403 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20404
20405         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
20406         (aarch64_gen_store_pair): New helper function.
20407         (aarch64_save_or_restore_callee_save_registers)
20408         (aarch64_save_or_restore_fprs): Use new helper functions.
20409
20410 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20411
20412         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
20413         (aarch64_save_or_restore_callee_save_registers)
20414         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
20415
20416 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20417
20418         * config/aarch64/aarch64.c
20419         (aarch64_save_or_restore_callee_save_registers)
20420         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
20421
20422 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20423
20424         * config/aarch64/aarch64.c
20425         (aarch64_save_or_restore_callee_save_registers)
20426         (aarch64_save_or_restore_fprs): Remove 'increment'.
20427
20428 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20429
20430         * config/aarch64/aarch64.c
20431         (aarch64_save_or_restore_callee_save_registers)
20432         (aarch64_save_or_restore_fprs): Use register offset in
20433         cfun->machine->frame.reg_offset.
20434
20435 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20436
20437         * config/aarch64/aarch64.c
20438         (aarch64_save_or_restore_callee_save_registers)
20439         (aarch64_save_or_restore_fprs): Remove base_rtx.
20440
20441 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20442
20443         * config/aarch64/aarch64.c
20444         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
20445         to 'start_offset'.  Remove local variable 'start_offset'.
20446
20447 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20448
20449         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
20450         type to HOST_WIDE_INT.
20451
20452 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20453
20454         * config/aarch64/aarch64.c (aarch64_expand_prologue)
20455         (aarch64_save_or_restore_fprs)
20456         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
20457
20458 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20459
20460         * config/arm/t-rtems-eabi: Add
20461         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
20462         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
20463         mbig-endian/mthumb/march=armv7-r, and
20464         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
20465         multilibs.
20466
20467 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20468             Chris Johns <chrisj@rtems.org>
20469             Joel Sherrill <joel.sherrill@oarcorp.com>
20470
20471         * config.gcc: Add nios2-*-rtems*.
20472         * config/nios2/rtems.h: New file.
20473         * gcc/config/nios2/t-rtems: New file.
20474
20475 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
20476
20477         PR target/61396
20478         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
20479         constant numbers, not general constants.
20480         (rs6000_expand_vector_init): Ditto.
20481
20482 2014-07-23  Nathan Sidwell  <nathan@acm.org>
20483
20484         * gcov-tool.c (gcov_list): Declare here.
20485         (set_gcov_list): Remove.
20486         (gcov_output_files): Set gcov_list directly.
20487
20488 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
20489
20490         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
20491
20492 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
20493
20494         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
20495         callee-saved registers are available for padding purpose
20496         and r3 is not mandatory, then prefer use those callee-saved
20497         instead of r3.
20498
20499 2014-07-23  Richard Biener  <rguenther@suse.de>
20500
20501         * params.def (PARAM_MAX_COMBINE_INSNS): New.
20502         * combine.c: Include statistics.h and params.h.
20503         (combine_instructions): Guard three and four insn combines
20504         with max-combine-insns value.  Record statistics for combines
20505         performed.
20506         * doc/invoke.texi (max-combine-insns): Document new param.
20507
20508 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
20509
20510         * graphite-isl-ast-to-gimple.c:
20511         (translate_isl_ast_node_block): New function.
20512         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
20513
20514         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
20515         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
20516
20517 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
20518
20519         * graphite-isl-ast-to-gimple.c:
20520         (get_max_schedule_dimensions): New function.
20521         (extend_schedule): Likewise.
20522         (generate_isl_schedule): Add calling of extend_schedule and
20523         get_max_schedule_dimensions.
20524
20525 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20526
20527         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
20528         (case UNSPEC): Handle UNSPEC_RBIT.
20529
20530 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20531
20532         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
20533         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
20534
20535 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20536
20537         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
20538
20539 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
20540
20541         * graphite-isl-ast-to-gimple.c:
20542         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
20543         (ivs_params_clear):
20544         (build_iv_mapping): New function.
20545         (translate_isl_ast_node_user): Likewise.
20546         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
20547
20548         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
20549         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
20550         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
20551
20552 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
20553
20554         PR target/55701
20555         * config/arm/arm.md (setmem): New pattern.
20556         * config/arm/arm-protos.h (struct tune_params): New fields.
20557         (arm_gen_setmem): New prototype.
20558         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
20559         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
20560         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
20561         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
20562         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
20563         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
20564         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
20565         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
20566         (arm_const_inline_cost): New function.
20567         (arm_block_set_max_insns): New function.
20568         (arm_block_set_non_vect_profit_p): New function.
20569         (arm_block_set_vect_profit_p): New function.
20570         (arm_block_set_unaligned_vect): New function.
20571         (arm_block_set_aligned_vect): New function.
20572         (arm_block_set_unaligned_non_vect): New function.
20573         (arm_block_set_aligned_non_vect): New function.
20574         (arm_block_set_vect, arm_gen_setmem): New functions.
20575
20576 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
20577
20578         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
20579
20580 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
20581
20582         PR target/61855
20583         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
20584         out of #ifdef __OPTIMIZE__.
20585
20586 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
20587
20588         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
20589         different trapping status if -fnon-call-exceptions is enabled.
20590
20591 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
20592
20593         * expr.c (store_field): Handle VOIDmode for calls that return values
20594         in multiple locations.
20595
20596 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20597
20598         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
20599         (altivec_vsldoi_<mode>): Likewise.
20600
20601 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
20602
20603         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
20604         to the number of characters in the line.
20605
20606 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
20607
20608         * graphite-isl-ast-to-gimple.c: Add using of
20609         build_nonstandard_integer_type instead of int128_integer_type_node.
20610
20611 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
20612
20613         * toplev.c (output_stack_usage): Adjust the location of the warning.
20614
20615 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
20616
20617         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
20618         (*membar_storeload): Disable for LEON3.
20619
20620 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20621
20622         PR rtl-optimization/61461
20623         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
20624
20625 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
20626
20627         PR target/61794
20628         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
20629         Fix instruction constraint.
20630         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
20631
20632 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
20633
20634         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
20635
20636 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
20637
20638         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
20639         GNU coding standards.
20640         (nds32_register_move_cost): Likewise.
20641         (nds32_memory_move_cost): Likewise.
20642         (nds32_address_cost): Likewise.
20643
20644 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20645
20646         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
20647
20648 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
20649
20650         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
20651         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
20652         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
20653         (HAVE_sync_compare_and_swapqi): Define.
20654         (HAVE_sync_compare_and_swaphi): Likewise.
20655         (HAVE_sync_compare_and_swapsi): Likewise.
20656
20657 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
20658
20659         * config/mips/p5600.md: Add missing cpu tests.
20660
20661 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20662
20663         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
20664         (vmla_f64): Likewise.
20665         (vfms_f64): Likewise.
20666         (vmls_f64): Likewise.
20667
20668 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20669
20670         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
20671         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
20672
20673 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20674
20675         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
20676         (vmlal_high_lane_s32): Likewise.
20677         (vmlal_high_lane_u16): Likewise.
20678         (vmlal_high_lane_u32): Likewise.
20679         (vmlsl_high_lane_s16): Likewise.
20680         (vmlsl_high_lane_s32): Likewise.
20681         (vmlsl_high_lane_u16): Likewise.
20682         (vmlsl_high_lane_u32): Likewise.
20683
20684 2014-07-17  Terry Guo  <terry.guo@arm.com>
20685
20686         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
20687         (alus_reg): Renamed to alus_sreg.
20688         * config/arm/arm-fixed.md: Change type of non-dsp instructions
20689         from alu_reg to alu_sreg.  Change type of dsp instructions from
20690         alu_reg to alu_dsp_reg.
20691         * config/arm/thumb1.md: Likewise.
20692         * config/arm/thumb2.md: Likewise.
20693         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
20694         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
20695         with alu_sreg and alus_sreg.
20696         * config/arm/arm1026ejs.md (alu_op): Likewise.
20697         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
20698         * config/arm/arm926ejs.md (9_alu_op): Likewise.
20699         * config/arm/fa526.md (526_alu_op): Likewise.
20700         * config/arm/fa606te.md (606te_alu_op): Likewise.
20701         * config/arm/fa626te.md (626te_alu_op): Likewise.
20702         * config/arm/fa726te.md (726te_alu_op): Likewise.
20703         * config/arm/fmp626.md (mp626_alu_op): Likewise.
20704         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
20705         alu_sreg, alu_dsp_reg and alus_sreg.
20706         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
20707         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
20708         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
20709         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
20710         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
20711         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
20712         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
20713         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
20714         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
20715         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
20716         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
20717         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
20718         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
20719         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
20720         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
20721         alus_reg to alus_sreg.
20722
20723 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
20724
20725         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
20726         infinity format.
20727
20728 2014-07-17  Richard Biener  <rguenther@suse.de>
20729
20730         PR rtl-optimization/61801
20731         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
20732         don't set reg_pending_barrier if it appears in a debug-insn.
20733
20734 2014-07-16  DJ Delorie  <dj@redhat.com>
20735
20736         * config/rx/rx.c (rx_option_override): Fix alignment values.
20737         (rx_align_for_label): Likewise.
20738
20739 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
20740
20741         PR target/61737.
20742         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
20743         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20744         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
20745         functions.
20746         (cris_print_index, cris_print_operand, cris_constant_index_p)
20747         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
20748         (cris_address_cost): Ditto last CONSTANT_P.
20749         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
20750         callers changed.  Yield cris_offsettable_symbol for non-PIC
20751         constant symbolic expressions including labels.  Yield cris_unspec
20752         for all unspecs.
20753         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
20754         target to pic_offset_table_rtx for calls that will likely go
20755         through PLT, const0_rtx when they can't.  All callers changed.
20756         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
20757         symbolic expressions to be PICified.  Remove second, redundant,
20758         assert on can_create_pseudo_p returning non-zero.  Use
20759         replace_equiv_address_nv, not replace_equiv_address, for final
20760         operand update.
20761         * config/cris/cris.md ("movsi"): Move variable t to pattern
20762         toplevel. Adjust assert for new cris_symbol_type member.  Use
20763         CONSTANT_P instead of CONSTANT_ADDRESS_P.
20764         ("*movsi_internal") <case 9>: Make check for valid unspec operands
20765         for lapc stricter.
20766         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
20767         ("call", "call_value"): Use second incoming operand as a marker
20768         for pic-offset-table-register being used.
20769         ("*expanded_call_non_v32", "*expanded_call_v32")
20770         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
20771         second incoming operand to CALL, match cris_call_type_marker.
20772         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
20773         ("*expanded_call_side"): Ditto.  Fix typo in comment.
20774         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
20775         CONSTANT_P.
20776         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
20777         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
20778         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
20779         users changed.  Add members cris_offsettable_symbol and cris_unspec.
20780         (cris_symbol_type): Rename from cris_pic_symbol_type.
20781         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
20782         just CONSTANT_P.
20783         * config/cris/cris-protos.h (cris_symbol_type_of,
20784         cris_expand_pic_call_address): Adjust prototypes.
20785         (cris_legitimate_constant_p): New prototype.
20786
20787         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
20788         an existing tmake_file.  Don't add t-slibgcc and t-linux.
20789
20790 2014-07-17  Jason Merrill  <jason@redhat.com>
20791
20792         PR c++/61623
20793         * symtab.c (symtab_remove_from_same_comdat_group): Also
20794         set_comdat_group to NULL_TREE.
20795         (verify_symtab): Fix diagnostic.
20796
20797 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
20798
20799         PR target/61662
20800         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
20801
20802 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
20803
20804         Support location tracking for built-in macro tokens
20805         * input.h (is_location_from_builtin_token): New function declaration.
20806         * input.c (is_location_from_builtin_token): New function definition.
20807         * toplev.c (general_init): Tell libcpp what the pre-defined
20808         spelling location for built-in tokens is.
20809
20810 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
20811
20812         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
20813         on the FUNCTION_DECL.
20814
20815 2014-07-16  Richard Biener  <rguenther@suse.de>
20816
20817         PR other/61782
20818         * doc/extend.texi (always_inline): Clarify.
20819
20820 2014-07-15  Eric Christopher  <echristo@gmail.com>
20821
20822         * doc/invoke.texi (Link Options): Document -z option.
20823
20824 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
20825
20826         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
20827         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
20828
20829 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
20830
20831         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
20832
20833 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
20834
20835         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
20836         varpool_assemble_decl.
20837         * varpool.c (varpool_assemble_decl): Assert that node->definition is
20838         true.
20839
20840 2014-07-15  Michael Matz  <matz@suse.de>
20841
20842         PR rtl-optimization/61772
20843         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
20844
20845 2014-07-15  Richard Biener  <rguenther@suse.de>
20846
20847         * opts.c (default_options_table): Disable bit-ccp at -Og.
20848
20849 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
20850
20851         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
20852
20853 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
20854
20855         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
20856         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
20857         call langhook for unknown declaration.
20858         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
20859         * tree.h (DECL_ARGUMENTS): Update.
20860         * print-tree.c (print_node): Update.
20861         * tree-core.h (tree_decl_non_common): Remove arguments.
20862         (tree_function_decl): Add arguments.
20863
20864 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
20865
20866         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
20867
20868 2014-07-14  Richard Biener  <rguenther@suse.de>
20869
20870         PR tree-optimization/61779
20871         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
20872         simplifying a condition.
20873
20874 2014-07-14  Richard Biener  <rguenther@suse.de>
20875
20876         * builtins.c (c_strlen): Make only_value == 2 really only
20877         affect warning generation.
20878
20879 2014-07-14  Richard Biener  <rguenther@suse.de>
20880
20881         PR tree-optimization/61757
20882         PR tree-optimization/61783
20883         PR tree-optimization/61787
20884         * tree-ssa-dom.c (record_equality): Revert canonicalization
20885         change and add comment.
20886         (propagate_rhs_into_lhs): Revert previous fix, removing
20887         loop depth restriction again.
20888
20889 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20890
20891         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
20892         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
20893         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
20894         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
20895         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
20896         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
20897         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
20898
20899 2014-07-14  Richard Biener  <rguenther@suse.de>
20900
20901         * cgraph.h (decl_in_symtab_p): Make inline.
20902
20903 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
20904
20905         PR middle-end/61294
20906         * doc/invoke.texi (-Wmemset-transposed-args): Document.
20907
20908         PR target/61656
20909         * config/i386/i386.c (classify_argument): Don't merge classes above
20910         number of words.
20911
20912 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
20913
20914         * cgraph.h (symtab_node): Add nonzero_address.
20915         (decl_in_symtab_p): Break out from ...
20916         (symtab_get_node): ... here.
20917         * fold-const.c: Include cgraph.h
20918         (tree_single_nonzero_warnv_p): Use symtab to determine
20919         if symbol is non-zero.
20920         * symtab.c (symtab_node::nonzero_address): New method.
20921
20922 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
20923
20924         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
20925         forgotten in previous commit.
20926
20927 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
20928
20929         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
20930         on builtin types.
20931         * ipa-devirt.c: Include stor-layout.h and intl.h
20932         (odr_subtypes_equivalent_p): New function.
20933         (warn_odr): New function.
20934         (warn_type_mismatch): New function.
20935         (odr_types_equivalent_p): New function.
20936         (add_type_duplicate): Use it.
20937         * common.opt (Wodr): New flag.
20938         * doc/invoke.texi (Wodr): Document new warning.
20939
20940 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
20941
20942         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
20943         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
20944         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
20945         (varpool_get_constructor): Push CTORS_IN timevar.
20946         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
20947
20948 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
20949
20950         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
20951         Remove VOID_FTYPE_PUSHORT.
20952         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
20953         Change code to USHORT_FTYPE_VOID.
20954         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
20955         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
20956         (ix86_atomic_assign_expand_fenv): Update for
20957         __builtin_ia32_fnstsw changes.
20958         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
20959         (fnstsw): Change operand 0 to nonimmediate operand.
20960
20961 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
20962
20963         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
20964         (varpool_get_constructor): New function.
20965         (varpool_ctor_useable_for_folding_p): Break out from ...
20966         (ctor_for_folding): ... here; use varpool_get_constructor.
20967         (varpool_assemble_decl): Likewise.
20968         * lto-streamer.h (struct output_block): Turn cgraph_node
20969         to symbol filed.
20970         (lto_input_variable_constructor): Declare.
20971         * ipa-visibility.c (function_and_variable_visibility): Use
20972         varpool_get_constructor.
20973         * cgraph.h (varpool_get_constructor): Declare.
20974         (varpool_ctor_useable_for_folding_p): New function.
20975         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
20976         parameter; return error_mark_node for non-trivial constructors.
20977         (lto_write_tree_1, DFS_write_tree): Update use of
20978         get_symbol_initial_value.
20979         (output_function): Update initialization of symbol.
20980         (output_constructor): New function.
20981         (copy_function): Rename to ..
20982         (copy_function_or_variable): ... this one; handle vars too.
20983         (lto_output): Output variable sections.
20984         * lto-streamer-in.c (input_constructor): New function.
20985         (lto_read_body): Rename from ...
20986         (lto_read_body_or_constructor): ... this one; handle vars too.
20987         (lto_input_variable_constructor): New function.
20988         * ipa-prop.c (ipa_prop_write_jump_functions,
20989         ipa_prop_write_all_agg_replacement): Update.
20990         * lto-cgraph.c (compute_ltrans_boundary): Use it.
20991         (output_cgraph_opt_summary): Set symbol to NULL.
20992
20993 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
20994
20995         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
20996         non-polymorphic types.
20997         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
20998         * ipa-devirt.c (types_same_for_odr): Do not explode when one
20999         of types is not polymorphic.
21000
21001 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
21002
21003         * lra-constraints.c (remove_inheritance_pseudos): Process
21004         destination pseudo too.
21005
21006 2014-07-11  Rong Xu  <xur@google.com>
21007
21008         * gcov-tool.c (gcov_output_files): Fix build error introduced in
21009         commit r212448.
21010
21011 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
21012
21013         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
21014         * config/avr/avr-devices.c (AVR_MCU): Same.
21015         (avr_mcu_types): add text start value to end of device list.
21016         * config/avr/avr-mcus.def: Add text section start for all devices.
21017         (ata5782): Add new avr5 device.
21018         (ata5831): Same.
21019         * config/avr/avr-tables.opt: Regenerate.
21020         * config/avr/avr.h: Add declaration for text section start handler.
21021         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
21022         SPEC functions.
21023         (LINK_SPEC): Include text section start handler to linker spec.
21024         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
21025         pass -Ttext option to linker if the text section start for the device
21026         is not zero.
21027         * config/avr/t-multilib: Regenerate.
21028         * doc/avr-mmcu.texi: Regenerate.
21029
21030 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
21031
21032         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
21033         * config/rs6000/aix52.h (LINK_SPEC): Same.
21034         * config/rs6000/aix53.h (LINK_SPEC): Same.
21035         * config/rs6000/aix61.h (LINK_SPEC): Same.
21036         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
21037
21038 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
21039
21040         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
21041         (graphite_verify): New function.
21042         (ivs_params_clear): New function.
21043         (gcc_expression_from_isl_ast_expr_id): New function.
21044         (gcc_expression_from_isl_expr_int): New function.
21045         (binary_op_to_tree): New function.
21046         (ternary_op_to_tree): New function.
21047         (unary_op_to_tree): New function.
21048         (nary_op_to_tree): New function.
21049         (gcc_expression_from_isl_expr_op): New function.
21050         (gcc_expression_from_isl_expression): New function.
21051         (graphite_create_new_loop): New function.
21052         (translate_isl_ast_for_loop): New function.
21053         (get_upper_bound): New function.
21054         (graphite_create_new_loop_guard): New function.
21055         (translate_isl_ast_node_for): New function.
21056         (translate_isl_ast): New function.
21057         (add_parameters_to_ivs_params): New function.
21058         (scop_to_isl_ast): New parameter ip.
21059         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
21060
21061 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
21062
21063         * config/xtensa/predicates.md (call expander): Update for
21064         DECL_SECTION_NAME being string.
21065
21066 2014-07-11  Richard Biener  <rguenther@suse.de>
21067
21068         PR middle-end/61473
21069         * builtins.c (fold_builtin_memory_op): Inline memory moves that
21070         can be implemented with a single load followed by a single store.
21071         (c_strlen): Only warn when only_value is not 2.
21072
21073 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
21074
21075         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
21076
21077 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
21078
21079         PR target/61561
21080         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
21081         (*movhi_bytes): Likewise.
21082         (*arm_movqi_insn): Likewise.
21083
21084 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
21085
21086         PR target/56858
21087         * config/alpha/alpha.c: Include tree-pass.h, context.h
21088         and pass_manager.h.
21089         (pass_data_handle_trap_shadows): New pass.
21090         (pass_handle_trap_shadows::gate): New pass gate function.
21091         (make_pass_handle_trap_shadows): New function.
21092         (rest_of_handle_trap_shadows): Ditto.
21093
21094         (alpha_align_insns_1): Rename from alpha_align_insns.
21095         (pass_data_align_insns): New pass.
21096         (pass_align_insns::gate): New pass gate function.
21097         (make_pass_aling_insns): New function.
21098         (rest_of_align_insns): Ditto.
21099         (alpha_align_insns): Ditto.
21100
21101         (alpha_option_override): Declare handle_trap_shadows info
21102         and align_insns_info.  Register handle_trap_shadows and align_insns
21103         passes here.
21104         (alpha_reorg): Do not call alpha_trap_shadows and
21105         alpha_align_insn from here.
21106
21107         (alpha_pad_function_end): Do not skip BARRIERs.
21108
21109 2014-07-10  Rong Xu  <xur@google.com>
21110
21111         Add gcov-tool: an offline gcda profile processing tool support.
21112         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
21113         (gcov_is_error): Ditto.
21114         (gcov_read_string): Ditto.
21115         (gcov_read_sync): Ditto.
21116         * gcov-io.h: Move counter defines to gcov-counter.def.
21117         * gcov-dump.c (tag_counters): Use gcov-counter.def.
21118         * coverage.c: Ditto.
21119         * gcov-tool.c: Offline gcda profile processing tool.
21120         (unlink_gcda_file): Remove one gcda file.
21121         (unlink_profile_dir): Remove gcda files from the profile path.
21122         (gcov_output_files): Output gcda files to an output dir.
21123         (profile_merge): Merge two profiles in directory.
21124         (print_merge_usage_message): Print merge usage.
21125         (merge_usage): Print merge usage and exit.
21126         (do_merge): Driver for profile merge sub-command.
21127         (profile_rewrite): Rewrite profile.
21128         (print_rewrite_usage_message): Print rewrite usage.
21129         (rewrite_usage): Print rewrite usage and exit.
21130         (do_rewrite): Driver for profile rewrite sub-command.
21131         (print_usage): Print gcov-info usage and exit.
21132         (print_version): Print gcov-info version.
21133         (process_args): Process arguments.
21134         (main): Main routine for gcov-tool.
21135         * Makefile.in: Build and install gcov-tool.
21136         * gcov-counter.def: New file split from gcov-io.h.
21137         * doc/gcc.texi: Include gcov-tool.texi.
21138         * doc/gcov-tool.texi: Document for gcov-tool.
21139
21140 2014-07-10  Richard Biener  <rguenther@suse.de>
21141
21142         PR tree-optimization/61757
21143         * tree-ssa-dom.c (loop_depth_of_name): Restore.
21144         (propagate_rhs_into_lhs): Revert part of last change.
21145
21146 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
21147
21148         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
21149         FUNCTION_DECLs.
21150
21151 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
21152
21153         PR middle-end/53590
21154         * function.c (allocate_struct_function): Revert r188667 change.
21155
21156         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
21157
21158 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
21159
21160         * doc/install.texi: Remove links to defunct package providers for
21161         Solaris.
21162
21163 2014-07-09  Tom de Vries  <tom@codesourcery.com>
21164
21165         * final.c (get_call_fndecl): Declare.
21166         (self_recursive_call_p): New function.
21167         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
21168
21169 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21170
21171         * ipa-devirt.c (record_node): Walk through aliases.
21172
21173 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21174
21175         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
21176
21177 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21178
21179         Revert:
21180         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
21181
21182 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21183
21184         * ipa-visibility.c (function_and_variable_visibility): Remove
21185         temporary hack disabling local aliases on AIX.
21186
21187 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21188
21189         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
21190         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
21191
21192 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21193
21194         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
21195         * rs6000/rs6000.c: Inline output of .set instruction.
21196         (declare_alias_data): New struct.
21197         (rs6000_declare_alias): New function.
21198         (rs6000_xcoff_declare_function_name): Use it.
21199         (rs6000_xcoff_declare_object_name): New function.
21200         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
21201         (ASM_OUTPUT_DEF): Turn to empty definition.
21202
21203 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
21204
21205         PR bootstrap/61679
21206         * hash-table.h: use hash_table::value_type instead of
21207         Descriptor::value_type in the return types of several methods.
21208
21209 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
21210
21211         * tree-pass.h (pass_data): Remove has_execute member.
21212         * passes.c (execute_one_pass): Don't check pass->has_execute.
21213         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21214         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21215         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21216         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21217         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21218         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
21219         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
21220         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
21221         gimple-low.c, gimple-ssa-isolate-paths.c,
21222         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
21223         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
21224         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
21225         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
21226         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
21227         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
21228         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
21229         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
21230         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
21231         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
21232         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
21233         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
21234         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21235         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21236         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21237         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21238         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21239         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21240         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21241         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21242         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21243         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21244         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
21245         web.c: Remove initializer for pass_data::has_execute.
21246
21247 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
21248
21249         * graphite-htab.h: Use hash_map instead of hash_table.
21250         * graphite-clast-to-gimple.c: Adjust.
21251         * passes.c: Use hash_map instead of hash_table.
21252         * sese.c: Likewise.
21253         * sese.h: Remove now unused code.
21254
21255 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
21256
21257         PR target/61599
21258         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
21259         than zero.
21260
21261 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
21262
21263         PR rtl-optimization/61673
21264         * combine.c (simplify_comparison): Test just mode's sign bit
21265         in tmode rather than the sign bit and any bits above it.
21266
21267 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
21268
21269         * graphite-isl-ast-to-gimple.c (generate_isl_context):
21270         Add __isl_give to the declaration.
21271         (generate_isl_schedule): Likewise.
21272         (scop_to_isl_ast): Likewise.
21273
21274 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21275
21276         * config/arm/arm.c (cortexa5_extra_costs): New table.
21277         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
21278
21279 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
21280
21281         PR tree-optimization/61725
21282         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
21283         range, use range_includes_zerop_p instead of integer_zerop on
21284         vr0->min, only use log2 of max if min is not negative.
21285
21286 2014-07-08  Richard Biener  <rguenther@suse.de>
21287
21288         * tree-ssa-dom.h (loop_depth_of_name): Remove.
21289         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
21290         restriction on loop depth difference.
21291         (record_equality): Likewise.
21292         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
21293         (loop_depth_of_name): Remove.
21294         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
21295         restriction on loop depth difference.
21296         (init_copy_prop): Likewise.
21297
21298 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21299
21300         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
21301         parameter.
21302         (walk_aliased_vdefs): Likewise.
21303         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
21304         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
21305         (detect_type_change_from_memory_writes): Check if entry was reached.
21306
21307 2014-07-08  Richard Biener  <rguenther@suse.de>
21308
21309         PR tree-optimization/61681
21310         * tree-ssa-structalias.c (find_what_var_points_to): Expand
21311         NONLOCAL inside ESCAPED.
21312
21313 2014-07-08  Richard Biener  <rguenther@suse.de>
21314
21315         PR tree-optimization/61680
21316         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21317         Handle properly all read-write dependences with group accesses.
21318
21319 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
21320
21321         PR tree-optimization/61576
21322         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
21323         block containing reduction statement is predecessor of phi basi block.
21324
21325 2014-07-08  Marek Polacek  <polacek@redhat.com>
21326
21327         PR c/60226
21328         * fold-const.c (round_up_loc): Change the parameter type.
21329         Remove assert.
21330         * fold-const.h (round_up_loc): Adjust declaration.
21331         * stor-layout.c (finalize_record_size): Check for too large types.
21332
21333 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
21334
21335         * symtab.c: Include calls.h.
21336         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
21337
21338 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
21339
21340         * config/rs6000/rs6000.c (output_vec_const_move): Handle
21341         little-endian code generation.
21342         * config/rs6000/spe.md (spe_evmergehi): Rename to...
21343         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
21344         (spe_evmergehilo): Rename to...
21345         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
21346         (spe_evmergelo): Rename to...
21347         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
21348         (spe_evmergelohi): Rename to...
21349         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
21350         (spe_evmergehi, spe_evmergehilo): New expanders.
21351         (spe_evmergelo, spe_evmergelohi): Likewise.
21352         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
21353         (*frob_tf_ti): Likewise.
21354         (*frob_<mode>_di_2): Likewise.
21355         (*frob_tf_di_8_2): Likewise.
21356         (*frob_di_<mode>): Likewise.
21357         (*frob_ti_tf): Likewise.
21358         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
21359         (*frob_ti_<mode>_8_2): Likewise.
21360         (*frob_ti_tf_2): Likewise.
21361         (mov_si<mode>_e500_subreg0): Rename to...
21362         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
21363         endianness only.
21364         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
21365         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
21366         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
21367         the big endianness only.
21368         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
21369         (*mov_si<mode>_e500_subreg0_2): Rename to...
21370         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
21371         big big endianness only.
21372         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
21373         (*mov_si<mode>_e500_subreg4): Rename to...
21374         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
21375         endianness only.
21376         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
21377         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
21378         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
21379         the big endianness only.
21380         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
21381         pattern.
21382         (*mov_si<mode>_e500_subreg4_2): Rename to...
21383         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
21384         endianness only.
21385         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
21386         (*mov_sitf_e500_subreg8): Rename to...
21387         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
21388         endianness only.
21389         (*mov_sitf_e500_subreg8_le): New instruction pattern.
21390         (*mov_sitf_e500_subreg8_2): Rename to...
21391         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
21392         endianness only.
21393         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
21394         (*mov_sitf_e500_subreg12): Rename to...
21395         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
21396         endianness only.
21397         (*mov_sitf_e500_subreg12_le): New instruction pattern.
21398         (*mov_sitf_e500_subreg12_2): Rename to...
21399         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
21400         endianness only.
21401         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
21402
21403 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
21404
21405         * asan.c (instrument_strlen_call): Do not instrument first byte
21406         in strlen if already instrumented.
21407
21408 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21409
21410         * config/arm/arm.opt (mwords-little-endian): Delete.
21411         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
21412         of TARGET_LITTLE_WORDS.
21413         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
21414         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
21415         warning.
21416         * doc/invoke.texi: Remove references to -mwords-little-endian.
21417
21418 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
21419
21420         * expmed.c (struct init_expmed_rtl): Change all fields but
21421         pow2 and cint from struct rtx_def to rtx.
21422         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
21423         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
21424         at the end again.
21425
21426 2014-07-06  Marek Polacek  <polacek@redhat.com>
21427
21428         PR c/6940
21429         * doc/invoke.texi: Document -Wsizeof-array-argument.
21430
21431 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
21432
21433         * wide-int.h (wide_int_storage): Change declaration from struct
21434         to class.
21435
21436 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
21437
21438         * cgraph.c (cgraph_create_indirect_edge): Update call of
21439         get_polymorphic_call_info.
21440         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
21441         (possible_polymorphic_call_targets): Add parameter call.
21442         (decl_maybe_in_construction_p): New predicate.
21443         (get_polymorphic_call_info): Add parameter call;
21444         use decl_maybe_in_construction_p.
21445         * gimple-fold.c (fold_gimple_assign): Update use of
21446         possible_polymorphic_call_targets.
21447         (gimple_fold_call): Likewise.
21448         * ipa-prop.c: Inlcude calls.h
21449         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
21450         (param_type_may_change_p): New predicate.
21451         (detect_type_change_from_memory_writes): Break out from ...
21452         (detect_type_change): ... this one; use param_type_may_change_p.
21453         (detect_type_change_ssa): Use param_type_may_change_p.
21454         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
21455
21456 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
21457
21458         PR target/49423
21459         * config/arm/arm-protos.h (arm_legitimate_address_p,
21460         arm_is_constant_pool_ref): Add prototypes.
21461         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
21462         (arm_is_constant_pool_ref) New function.
21463         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
21464         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
21465         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
21466         operand. Remove pool_range and neg_pool_range attributes.
21467         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
21468         pool_range and neg_pool_range attributes.
21469         * config/arm/constraints.md (Uh): New constraint.
21470         (Uq): Don't allow constant pool references.
21471
21472 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
21473
21474         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
21475         (move_lo_quad_internal_be_<mode>): Likewise.
21476         (move_lo_quad_<mode>): Convert to define_expand.
21477         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
21478         (aarch64_simd_move_hi_quad_be_<mode>): New.
21479         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
21480         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
21481         (aarch64_combinez_be<mode>): New.
21482         (aarch64_combine<mode>): Convert to define_expand.
21483         (aarch64_combine_internal<mode>): New.
21484         (aarch64_simd_combine<mode>): Remove bogus RTL description.
21485
21486 2014-07-04  Tom de Vries  <tom@codesourcery.com>
21487
21488         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
21489         combination of earlyclobber and read/write modifiers.
21490
21491 2014-07-04  Tom de Vries  <tom@codesourcery.com>
21492
21493         * config/aarch64/aarch64-simd.md
21494         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
21495
21496 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
21497
21498         PR target/61714
21499         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
21500
21501 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
21502
21503         PR middle-end/61654
21504         * cgraphunit.c (expand_thunk): Call free_dominance_info.
21505
21506         PR tree-optimization/61684
21507         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
21508         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
21509
21510 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21511             Kito Cheng  <kito@0xlab.org>
21512             Monk Chiang  <sh.chiang04@gmail.com>
21513
21514         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
21515         (nds32_symbol_load_store_p): Move to ...
21516         (nds32_fp_as_gp_check_available): Move to ...
21517         * config/nds32/nds32-fp-as-gp.c: ... here.
21518         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
21519         extern declaration.
21520
21521 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21522             Kito Cheng  <kito@0xlab.org>
21523             Monk Chiang  <sh.chiang04@gmail.com>
21524
21525         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
21526         (nds32_expand_store_multiple): Move to ...
21527         (nds32_expand_movmemqi): Move to ...
21528         * config/nds32/nds32-memory-manipulation.c: ... here.
21529
21530 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21531             Kito Cheng  <kito@0xlab.org>
21532             Monk Chiang  <sh.chiang04@gmail.com>
21533
21534         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
21535         (nds32_output_casesi_pc_relative): Move to ...
21536         (nds32_output_casesi): Move to ...
21537         (nds32_mem_format): Move to ...
21538         (nds32_output_16bit_store): Move to ...
21539         (nds32_output_16bit_load): Move to ...
21540         (nds32_output_32bit_store): Move to ...
21541         (nds32_output_32bit_load): Move to ...
21542         (nds32_output_32bit_load_s): Move to ...
21543         (nds32_output_stack_push): Move to ...
21544         (nds32_output_stack_pop): Move to ...
21545         * config/nds32/nds32-md-auxiliary.c: ... here.
21546
21547 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21548             Ling-Hua Tseng  <uranus@tinlans.org>
21549
21550         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
21551         the purpose of this file.
21552
21553 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21554             Kito Cheng  <kito@0xlab.org>
21555             Monk Chiang  <sh.chiang04@gmail.com>
21556
21557         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
21558         (nds32_address_cost): Move implementation to ...
21559         * config/nds32/nds32-cost.c: ... here.
21560         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
21561         (nds32_address_cost_impl): Declare.
21562
21563 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21564             Kito Cheng  <kito@0xlab.org>
21565             Monk Chiang  <sh.chiang04@gmail.com>
21566
21567         * config/nds32/nds32.c
21568         (nds32_consecutive_registers_load_store_p): Move to ...
21569         (nds32_valid_multiple_load_store): Move to ...
21570         (nds32_valid_stack_push_pop): Move to ...
21571         (nds32_can_use_bclr_p): Move to ...
21572         (nds32_can_use_bset_p): Move to ...
21573         (nds32_can_use_btgl_p): Move to ...
21574         (nds32_can_use_bitci_p): Move to ...
21575         * config/nds32/nds32-predicates.c: ... here.
21576
21577 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21578             Kito Cheng  <kito@0xlab.org>
21579             Monk Chiang  <sh.chiang04@gmail.com>
21580
21581         * config/nds32/nds32.c
21582         (nds32_expand_builtin_null_ftype_reg): Move to ...
21583         (nds32_expand_builtin_reg_ftype_imm): Move to ...
21584         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
21585         (nds32_init_builtins): Move implementation to ...
21586         (nds32_expand_builtin): Move implementation to ...
21587         * config/nds32/nds32-intrinsic.c: ... here.
21588         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
21589         (nds32_expand_builtin_impl): Declare.
21590
21591 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21592             Kito Cheng  <kito@0xlab.org>
21593             Monk Chiang  <sh.chiang04@gmail.com>
21594
21595         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
21596         (nds32_emit_section_tail_template): Move to ...
21597         (nds32_emit_isr_jmptbl_section): Move to ...
21598         (nds32_emit_isr_vector_section): Move to ...
21599         (nds32_emit_isr_reset_conten): Move to ...
21600         (nds32_check_isr_attrs_conflict): Move to ...
21601         (nds32_construct_isr_vectors_information): Move to ...
21602         (nds32_asm_file_start): Move implementation to ...
21603         (nds32_asm_file_end): Move implementation to ...
21604         * config/nds32/nds32-isr.c: ... here.
21605         * config/nds32/nds32-protos.h
21606         (nds32_check_isr_attrs_conflict): Declare.
21607         (nds32_construct_isr_vectors_information): Declare.
21608         (nds32_asm_file_start_for_isr): Declare.
21609         (nds32_asm_file_end_for_isr): Declare.
21610
21611 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
21612             Kito Cheng  <kito@0xlab.org>
21613             Monk Chiang  <sh.chiang04@gmail.com>
21614
21615         * config.gcc (nds32*): Add new modules to extra_objs.
21616         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
21617         (nds32be-*-*): Likewise.
21618         * config/nds32/nds32-cost.c: New file.
21619         * config/nds32/nds32-fp-as-gp.c: New file.
21620         * config/nds32/nds32-intrinsic.c: New file.
21621         * config/nds32/nds32-isr.c: New file.
21622         * config/nds32/nds32-md-auxiliary.c: New file.
21623         * config/nds32/nds32-memory-manipulation.c: New file.
21624         * config/nds32/nds32-pipelines-auxiliary.c: New file.
21625         * config/nds32/nds32-predicates.c: New file.
21626         * config/nds32/t-nds32: New file.
21627
21628 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
21629
21630         PR tree-optimization/61682
21631         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
21632         using cases and when one of the operands is equal to 1.
21633
21634 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
21635
21636         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
21637         ashr<mode>3): Correct mode of operands[2].
21638         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
21639         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
21640         Correct mode of operands[2].  Fix split condition.
21641
21642 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
21643
21644         * arm.md (arch): Add armv6_or_vfpv3.
21645         (arch_enabled): Add test for the above.
21646         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
21647         on VFP9.
21648         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
21649
21650 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
21651
21652         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
21653         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
21654         HWI 1 and negate the unsigned value.
21655         * expmed.c (expand_sdiv_pow2): For modes wider than word always
21656         use AND instead of shift.
21657         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
21658
21659 2014-07-03  Marek Polacek  <polacek@redhat.com>
21660
21661         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
21662         (-fsanitize=float-divide-by-zero): Move to the table with
21663         -fsanitize=undefined suboptions.
21664         (-fsanitize=float-cast-overflow): Likewise.
21665
21666 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
21667
21668         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
21669         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
21670         endianness.
21671
21672 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21673
21674         * loop-invariant.c (struct invariant): Add a new member: eqno;
21675         (find_identical_invariants): Update eqno;
21676         (create_new_invariant): Init eqno;
21677         (get_inv_cost): Compute comp_cost with eqno;
21678
21679 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
21680
21681         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
21682         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
21683         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
21684         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
21685         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
21686
21687 2014-07-02  Christian Bruel  <christian.bruel@st.com>
21688
21689         PR target/29349
21690         PR target/53513
21691         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
21692         (make_preds_opaque): Delete.
21693         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
21694         (commit_mode_sets): New function.
21695         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
21696         Process all modes at once.
21697         * basic-block.h (pre_edge_lcm_avs): Declare.
21698         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
21699         Call clear_aux_for_edges. Fix comments.
21700         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
21701         (pre_edge_rev_lcm): Idem.
21702         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
21703         parameter.
21704         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
21705         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
21706         Idem.
21707         * config/i386/i386.c (x96_emit_mode_set): Idem.
21708         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
21709         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
21710         (fpscr_toggle) Disallow from delay slot.
21711         * target.def (emit_mode_set): Add prev_mode parameter.
21712         * doc/tm.texi: Regenerate.
21713
21714 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21715
21716         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
21717         variable i.
21718
21719 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
21720
21721         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
21722         vtable_pointer_value_to_vtable): Constify.
21723         (contains_polymorphic_type_p): Declare.
21724         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
21725         vtable_pointer_value_to_vtable): Constify.
21726         (contains_polymorphic_type_p): New predicate.
21727         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
21728         polymorphic types.
21729         (ipa_set_ancestor_jf): Likewise.
21730         (detect_type_change): Return false in easy cases.
21731         (compute_complex_assign_jump_func): Require type to contain
21732         polymorphic type.
21733         (compute_known_type_jump_func): Likewise.
21734
21735 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
21736
21737         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
21738         Remove.
21739         (type_in_anonymous_namespace_p): Constify argument.
21740         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
21741         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
21742         (main_odr_variant): New function.
21743         (hash_type_name): Make static; update assert; do not ICE on
21744         non-records.
21745         (types_same_for_odr): Bring here from tree.c; simplify and remove
21746         old structural comparing code that doesn't work for templates.
21747         (odr_hasher::equal): Update assert.
21748         (add_type_duplicate): Return true when bases should be computed;
21749         replace incomplete loader by complete; do not output duplicated
21750         warnings; do not ICE on non-records; set odr_violated flag.
21751         (get_odr_type): Be ready to replace incomplete type by complete
21752         one; work on ODR variants instead of main variants; reorder item
21753         in array so bases have still smaller indexes.
21754         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
21755         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
21756
21757 2014-07-01  Cary Coutant  <ccoutant@google.com>
21758
21759         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
21760         lookup.
21761         (resolve_addr_in_expr): When replacing the rtx in a location list
21762         entry, get a new address table entry.
21763         (dwarf2out_finish): Call index_location_lists even if there are no
21764         addr_index_table entries yet.
21765
21766 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
21767
21768         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
21769         change for not being obvious.
21770
21771 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
21772
21773         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
21774         unused argument.
21775
21776 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21777
21778         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
21779         (vcagt_f64): Likewise.
21780         (vcale_f64): Likewise.
21781         (vcaled_f64): Likewise.
21782         (vcales_f32): Likewise.
21783         (vcalt_f64): Likewise.
21784         (vcaltd_f64): Likewise.
21785         (vcalts_f32): Likewise.
21786
21787 2014-07-01  Marek Polacek  <polacek@redhat.com>
21788
21789         * doc/invoke.texi: Document -Wint-conversion.
21790
21791 2014-07-01  Marek Polacek  <polacek@redhat.com>
21792
21793         PR c/58286
21794         * doc/invoke.texi: Document -Wincompatible-pointer-types.
21795
21796 2014-07-01  Martin Liska  <mliska@suse.cz>
21797
21798         IPA REF alias refactoring
21799         * cgraph.h (iterate_direct_aliases): New function.
21800         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
21801         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
21802         FOR_EACH_ALIAS added.
21803         (cgraph_for_node_and_aliases): Likewise.
21804         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
21805         * ipa-inline.c (reset_edge_caches): Likewise.
21806         (update_caller_keys): Likewise.
21807         * trans-mem.c (ipa_tm_execute): Likewise.
21808         *varpool.c (varpool_analyze_node): Likewise.
21809         (varpool_for_node_and_aliases): Likewise.
21810         * ipa-ref.h (first_alias): New function.
21811         (last_alias): Likewise.
21812         (has_aliases_p): Likewise.
21813         * ipa-ref.c (ipa_ref::remove_reference): Removal function
21814         is sensitive to IPA_REF_ALIASes.
21815         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
21816         are put at the beginning of the list.
21817         (symtab_node::iterate_direct_aliases): New function.
21818
21819 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
21820
21821         Revert:
21822         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
21823         type is complete.
21824         (write_ts_type_common_tree_pointers): Do not stream fields not set
21825         for incomplete types; do not stream duplicated fields for variants;
21826         sanity check that variant and type match.
21827         (write_ts_type_non_common_tree_pointers): Likewise.
21828         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
21829         TYPE_SIZE whether type is complete.
21830         (lto_input_ts_type_common_tree_pointers): Do same changes as in
21831         write_ts_type_common_tree_pointers
21832         (lto_input_ts_type_non_common_tree_pointers): Likewise.
21833
21834 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
21835
21836         * var-tracking.c (add_stores): Return instead of asserting if old
21837         and new values for conditional store are the same.
21838
21839 2014-06-30  Richard Henderson  <rth@redhat.com>
21840
21841         PR rtl-opt/61608
21842         PR target/39284
21843         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
21844         the cfg if there were any changes.
21845         * passes.def: Revert move of peephole2 after reorder_blocks;
21846         move duplicate_computed_gotos before peephole2.
21847
21848 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
21849
21850         * except.c (emit_note_eh_region_end): New helper function.
21851         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
21852         emit EH_REGION_END note.
21853         * jump.c (cleanup_barriers): Do not split a call and its
21854         corresponding CALL_ARG_LOCATION note.
21855
21856 2014-06-30  Jeff Law  <law@redhat.com>
21857
21858         PR tree-optimization/61607
21859         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
21860         deeper into the SSA_NAME_VALUE chain.
21861
21862 2014-06-30  Marek Polacek  <polacek@redhat.com>
21863
21864         * convert.c (convert_to_integer): Don't instrument conversions if the
21865         function has no_sanitize_undefined attribute.
21866         * ubsan.c: Don't run the ubsan pass if the function has
21867         no_sanitize_undefined attribute.
21868
21869 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
21870
21871         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
21872         -fsanitize=undefined suboptions.
21873
21874 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
21875
21876         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
21877         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
21878         against bigendian and adjust indices.
21879
21880 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
21881
21882         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
21883
21884 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21885
21886         PR target/61633
21887         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
21888         Add alternative; make early clobber.  Adjust both split patterns
21889         to use operand 0 as the working register.
21890
21891 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
21892
21893         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
21894         as ira_object_id_map might be NULL, or 1.
21895
21896 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21897
21898         * loop-invariant.c (get_inv_cost): Handle register class.
21899         (gain_for_invariant): Check the register pressure of the inv
21900         and its overlapped register class, other than all.
21901
21902 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
21903
21904         * doc/invoke.texi (Optimize Options): Fix descriptions of
21905         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
21906
21907 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
21908
21909         * doc/extend.texi (Function Attributes): Update 'naked' attribute
21910         documentation.
21911
21912 2014-06-29  Tobias Grosser <tobias@grosser.es>
21913
21914         PR bootstrap/61650
21915         * graphite-isl-ast-to-gimple.c: Add missing guards.
21916
21917 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
21918
21919         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
21920         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
21921         * flag-types.h: Add new enum fgraphite_generator.
21922         * graphite-isl-ast-to-gimple.c: New.
21923         * graphite-isl-ast-to-gimple.h: New.
21924         * graphite.c (graphite_transform_loops): Add choice of Graphite
21925         code generator, which depends on flag_graphite_code_gen.
21926
21927 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
21928
21929         * graphite-dependences.c (subtract_commutative_associative_deps):
21930         Add NULL checking of the following variables: must_raw_no_source,
21931         may_raw_no_source, must_war_no_source, may_war_no_source,
21932         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
21933         must_war, may_war, must_waw, may_waw.
21934
21935 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
21936
21937         * graphite-clast-to-gimple.c: gloog is renamed to
21938         graphite_regenerate_ast_cloog.  gloog_error is renamed to
21939         graphite_regenerate_error.
21940         * graphite-clast-to-gimple.h: The definition of the struct
21941         bb_pbb_def is moved to graphite-htab.h.
21942         Add inclusion of the hash-table.h.
21943         * graphite-htab.h: The declaration of the function gloog is moved
21944         to graphite-clast-to-gimple.h and renamed to
21945         graphite_regenerate_ast_cloog.
21946         * graphite.c (graphite_transform_loops): gloog is renamed
21947         to graphite_regenerate_ast_cloog.
21948
21949 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
21950
21951         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
21952         type is complete.
21953         (write_ts_type_common_tree_pointers): Do not stream fields not set
21954         for incomplete types; do not stream duplicated fields for variants;
21955         sanity check that variant and type match.
21956         (write_ts_type_non_common_tree_pointers): Likewise.
21957         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
21958         TYPE_SIZE whether type is complete.
21959         (lto_input_ts_type_common_tree_pointers): Do same changes as in
21960         write_ts_type_common_tree_pointers
21961         (lto_input_ts_type_non_common_tree_pointers): Likewise.
21962
21963 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
21964
21965         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
21966
21967 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
21968
21969         * tree-inline.c (remap_type_1): Do not duplicate fields
21970         that are shared in between type and its main variant.
21971
21972 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
21973
21974         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
21975         of the type.
21976         (ipa_set_ancestor_jf) Likewise.
21977         (check_stmt_for_type_change): Check that we work on main variant.
21978         (detect_type_change): Look into main variant.
21979         (compute_known_type_jump_func): Check that main variant has BINFO.
21980
21981 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
21982
21983         * ipa-devirt.c (set_type_binfo): New function.
21984         (add_type_duplicate): Use it.
21985         (get_odr_type): Sanity check that binfos points to main variants.
21986         (get_class_context): Be sure the context's outer_type is main variant.
21987         (contains_type_p): Walk main variant.
21988         (get_polymorphic_call_info_for_decl): Set outer_type to be
21989         main variant.
21990         (get_polymorphic_call_info): Likewise.
21991         (possible_polymorphic_call_targets): Sanity check that we operate
21992         on main variant.
21993
21994 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
21995
21996         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
21997
21998 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21999
22000         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
22001         accidental change due to wide-int branch merge.
22002
22003 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22004
22005         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
22006         compressed debug support.
22007         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
22008         * configure: Regenerate.
22009         * config.in: Regenerate.
22010         * common.opt (compressed_debug_sections): New enum.
22011         (gz, gz=): New options.
22012         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
22013         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
22014         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
22015         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
22016         LINK_COMPRESS_DEBUG_SPEC.
22017         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
22018         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
22019         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
22020         (Debugging Options): Document -gz[=type].
22021
22022 2014-06-27  Martin Jambor  <mjambor@suse.cz>
22023
22024         PR ipa/61160
22025         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
22026         args_to_skip, use those from node instead.  Copy args_to_skip and
22027         combined_args_to_skip from node to the new thunk.
22028         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
22029         (cgraph_create_virtual_clone): Moved computation of
22030         combined_args_to_skip...
22031         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
22032
22033 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
22034
22035         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
22036         redundant diagnostic machinary.
22037
22038 2014-06-27  Richard Biener  <rguenther@suse.de>
22039
22040         * tree-ssa-math-opts.c (bswap_replace): Fix
22041         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
22042
22043 2014-06-27  Martin Liska  <mliska@suse.cz>
22044
22045         * gimple.h (gimple_location_safe): New function introduced.
22046         * cgraphunit.c (walk_polymorphic_call_targets): Usage
22047         of gimple_location_safe replaces gimple_location.
22048         (gimple_fold_call): Likewise.
22049         * ipa-devirt.c (ipa_devirt): Likewise.
22050         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22051         * ipa.c (walk_polymorphic_call_targets): Likewise.
22052         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
22053
22054 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
22055
22056         PR tree-optimization/57233
22057         PR tree-optimization/61299
22058         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
22059         functions.
22060         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
22061         would be lowered to scalar shifts, check if corresponding
22062         shifts and vector BIT_IOR_EXPR are supported and don't lower
22063         or lower just to narrower vector type in that case.
22064         * expmed.c (expand_shift_1): Fix up handling of vector
22065         shifts and rotates.
22066
22067 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
22068
22069         PR target/61586
22070         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
22071
22072 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
22073
22074         * doc/invoke.texi (-fsemantic-interposition): Document.
22075         * common.opt (fsemantic-interposition): New flag.
22076         * varasm.c (decl_replaceable_p): Use it.
22077
22078 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22079
22080         PR target/61542
22081         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
22082         extraction other than index 3.
22083
22084 2014-06-26  Teresa Johnson  <tejohnson@google.com>
22085
22086         * doc/invoke.texi: Fix typo.
22087         * dumpfile.c: Add support for documented -fdump-* options
22088         optimized/missed/note/optall.
22089
22090 2014-06-26  Martin Jambor  <mjambor@suse.cz>
22091
22092         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
22093         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
22094         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
22095         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
22096         * opts.c (default_options_optimization): Set
22097         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
22098         * doc/invoke.texi (allow-load-data-races)
22099         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
22100         (allow-store-data-races): Document the new default.
22101
22102 2014-06-26  Martin Jambor  <mjambor@suse.cz>
22103
22104         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
22105         renamed to ipa_impossible_devirt_target.  Fix typo.
22106         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
22107         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
22108         ipa_impossible_devirt_target.
22109
22110 2014-06-26  Richard Biener  <rguenther@suse.de>
22111
22112         PR tree-optimization/61607
22113         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
22114         explaining why we restrict copies on loop depth.
22115         * tree-ssa-dom.c (cprop_operand): Remove restriction on
22116         on loop depth.
22117         (record_equivalences_from_phis): Instead add it here.
22118
22119 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
22120
22121         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
22122         (LTO_WRAPPER_OBJS): New variable.
22123         (lto-wrapper$(exeext)): Use it.
22124         * collect2.c: Include "collect-utils.h".
22125         (verbose, debug): Remove variables.
22126         (at_file_supplied): No longer static.
22127         (tool_name): New variable.
22128         (do_wait, fork_execute, maybe_unlink): Don't declare.
22129         (tool_cleanup): No longer static.
22130         (notice): Remove function.
22131         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
22132         fork_execute calls.
22133         (collect_wait, do_wait, collect_execute): Remove functions.
22134         (maybe_unlink): No longer static.
22135         * collect2.h (verbose, debug): Don't declare.
22136         (at_file_supplied): Declare.
22137         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
22138         changed.
22139         (collect_execute): Replace with implementation from collect2, plus a
22140         new arg use_atfile.  All callers changed.
22141         (collect_wait): Replace with implementation from collect2.
22142         (maybe_unlink_file): Remove function.
22143         (fork_execute): Replace with implementation from collect2, plus a
22144         new arg use_atfile.  All callers changed.
22145         (do_wait): Add call to utils_cleanup to the error path.
22146         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
22147         (tool_cleanup): Adjust declarations.
22148         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
22149         * tlink.c: Include "collect-utils.h".
22150         (tlink_execute): New arg use_atfile.  All callers changed.
22151         (tlink_init, tlink_execute): Remove declarations.
22152
22153         * collect-utils.c (save_temps): New variable.
22154         (do_wait): Use it instead of debug.  Use fatal_error.
22155         * collect-utils.h (save_temps): Declare.
22156         * collect2.c (verbose): Rename from vflag.  All uses changed.
22157         (tool_cleanup): New function, copied from collect_atexit.
22158         (collect_atexit, handler): Just call it.
22159         * collect2.h (verbose): Declaration renamed from vflag.
22160         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
22161         debug.
22162
22163         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
22164         (lto-wrapper$(exeext)): Link with collect-utils.o.
22165         * collect-utils.c: New file.
22166         * collect-utils.h: New file.
22167         * lto-wrapper.c: Include "collect-utils.h".
22168         (args_name): Delete variable.
22169         (tool_name): New variable.
22170         (tool_cleanup): New function.
22171         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
22172         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
22173         (fork_execute): Remove functions.
22174
22175 2014-06-26  Nick Clifton  <nickc@redhat.com>
22176
22177         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
22178
22179         * doc/extend.texi (Function Attributes): Fix typo in description
22180         of RX vector attribute.
22181
22182 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22183
22184         * config.gcc (supported_defaults): Error when passing either
22185         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
22186
22187 2014-06-26  Richard Biener  <rguenther@suse.de>
22188
22189         * tree-ssa-dom.c (cprop_operand): Remove restriction on
22190         propagating volatile pointers.
22191
22192 2014-06-26  Richard Biener  <rguenther@suse.de>
22193
22194         PR tree-optimization/61607
22195         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
22196         loop if we redirected its latch edge.
22197         (thread_block_1): Do not cancel loops prematurely.
22198
22199 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
22200
22201         * toplev.c (backend_init_target): Move init_emit_regs and
22202         init_regs to...
22203         (backend_init) ... here; skip ira_init_once and backend_init_target.
22204         (target_reinit) ... and here; clear
22205         this_target_rtl->lang_dependent_initialized.
22206         (lang_dependent_init_target): Clear
22207         this_target_rtl->lang_dependent_initialized;
22208         break out rtl initialization to ...
22209         (initialize_rtl): ... here; call also backend_init_target
22210         and ira_init_once.
22211         * toplev.h (initialize_rtl): New function.
22212         * function.c: Include toplev.h
22213         (init_function_start): Call initialize_rtl.
22214         * rtl.h (target_rtl): Add target_specific_initialized,
22215         lang_dependent_initialized.
22216
22217 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
22218             Jakub Jelinek  <jakub@redhat.com>
22219
22220         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
22221
22222 2014-06-25  Tom de Vries  <tom@codesourcery.com>
22223
22224         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
22225
22226 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22227
22228         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
22229         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
22230         Issue a strict overflow warning if appropriate.
22231
22232 2014-06-25  Martin Liska  <mliska@suse.cz>
22233
22234         IPA REF refactoring
22235         * Makefile.in: Removed header file (ipa-ref-inline.h).
22236         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
22237         called.
22238         (cgraph_speculative_call_info): Likewise.
22239         (cgraph_for_node_thunks_and_aliases): Likewise.
22240         (cgraph_for_node_and_aliases): Likewise.
22241         (verify_cgraph_node): Likewise.
22242         * cgraph.h: Batch of IPA REF functions become member functions of
22243         symtab_node: add_reference, maybe_add_reference, clone_references,
22244         clone_referring, clone_reference, find_reference,
22245         remove_stmt_references, remove_all_references,
22246         remove_all_referring, dump_references, dump_referring,
22247         has_alias_p, iterate_reference, iterate_referring.
22248         * cgraphbuild.c (record_reference): New IPA REF function used.
22249         (record_type_list): Likewise.
22250         (record_eh_tables): Likewise.
22251         (mark_address): Likewise.
22252         (mark_load): Likewise.
22253         (mark_store): Likewise.
22254         (pass_build_cgraph_edges): Likewise.
22255         (rebuild_cgraph_edge): Likewise.
22256         (cgraph_rebuild_references): Likewise.
22257         (pass_remove_cgraph_callee_edges): Likewise.
22258         * cgraphclones.c (cgraph_clone_node): Likewise.
22259         (cgraph_create_virtual_clone): Likewise.
22260         (cgraph_materialize_clone): Likewise.
22261         (cgraph_materialize_all_clones): Likewise.
22262         * cgraphunit.c (cgraph_reset_node): Likewise.
22263         (cgraph_reset_node): Likewise.
22264         (analyze_function): Likewise.
22265         (assemble_thunks_and_aliases): Likewise.
22266         (expand_function): Likewise.
22267         * ipa-comdats.c (propagate_comdat_group): Likewise.
22268         (enqueue_references): Likewise.
22269         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
22270         (create_specialized_node): Likewise.
22271         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
22272         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
22273         * ipa-inline.c (reset_edge_caches): Likewise.
22274         (update_caller_keys): Likewise.
22275         (execute): Likewise.
22276         * ipa-prop.c (remove_described_reference): Likewise.
22277         (propagate_controlled_uses): Likewise.
22278         (ipa_edge_duplication_hook): Likewise.
22279         (ipa_modify_call_arguments): Likewise.
22280         * ipa-pure-const.c (propagate_pure_const): Likewise.
22281         * ipa-ref-inline.h: Header file removed, functions moved
22282         to symtab_node class.
22283         * ipa-ref.c (remove_reference): New class member function.
22284         (cannot_lead_to_return): New class member function.
22285         (referring_ref_list): Likewise.
22286         (referred_ref_list): Likewise.
22287         Rest of functions moved to symtab_node class.
22288         * ipa-ref.h: New member functions remove_reference,
22289         cannot_lead_to_return, referring_ref_list, referred_ref_list added
22290         to ipa_ref class.
22291         ipa_ref_list class has new member functions: first_reference,
22292         first_referring, clear, nreferences.
22293         * ipa-reference.c (analyze_function): New IPA REF function used.
22294         (write_node_summary_p): Likewise.
22295         (ipa_reference_write_optimization_summary): Likewise.
22296         * ipa-split.c (split_function): Likewise.
22297         * ipa-utils.c (ipa_reverse_postorder): Likewise.
22298         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
22299         (function_and_variable_visibility): Likewise.
22300         * ipa.c (has_addr_references_p): Likewise.
22301         (process_references): Argument type changed.
22302         (symtab_remove_unreachable_nodes): New IPA REF function used.
22303         (process_references): Likewise.
22304         (set_writeonly_bit): Likewise.
22305         * lto-cgraph.c: Implementation of new symtab_node member functions
22306         that uses new IPA REF functions.
22307         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
22308         function used.
22309         * lto-streamer-out.c (output_symbol_p): Likewise.
22310         * lto-streamer.h (referenced_from_this_partition_p): Argument type
22311         changed.
22312         * symtab.c: Implementation of new IPA REF API.
22313         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
22314         (ipa_tm_create_version): Likewise.
22315         (ipa_tm_execute): Likewise.
22316         * tree-emutls.c (gen_emutls_addr): Likewise.
22317         * tree-inline.c (copy_bb): Likewise.
22318         (delete_unreachable_blocks_update_callgraph): Likewise.
22319         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
22320         (varpool_for_node_and_aliases): Likewise.
22321
22322 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
22323
22324         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
22325
22326 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
22327
22328         PR bootstrap/61598
22329         * fold-const.c (fold_checksum_tree): Use a hash_table of const
22330         tree_node * instead of tree_node *.
22331         (fold): Adjust.
22332         (print_fold_checksum): Likewise.
22333         (fold_check_failed): Likewise.
22334         (debug_fold_checksum): Likewise.
22335         (fold_build1_stat_loc): Likewise.
22336         (fold_build2_stat_loc): Likewise.
22337         (fold_build3_stat_loc): Likewise.
22338         (fold_build_call_array_loc): Likewise.
22339
22340 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
22341
22342         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
22343         implementation with call to...
22344         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
22345         function.
22346         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
22347         Declare.
22348
22349 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
22350
22351         PR tree-optimization/57742
22352         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
22353         after replacing the statement.
22354
22355 2014-06-25  Nick Clifton  <nickc@redhat.com>
22356
22357         * config/v850/v850.c (GHS_default_section_names): Change to const
22358         char * type.
22359         (GHS_current_section_names): Likewise.
22360         (v850_insert_attributes): Do not build strings, just assign the
22361         names directly.  Change the type of 'chosen_section' to const
22362         char*.
22363         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
22364         directly to the array entry.
22365         * config/v850/v850.h (GHS_default_section_names): Change to const
22366         char * type.
22367         (GHS_current_section_names): Likewise.
22368
22369 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
22370
22371         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
22372         (LANG_HOOKS_DECLS): Add it.
22373         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
22374         has correct type.
22375         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
22376         * langhooks.h (struct lang_hooks_for_decls): Add
22377         omp_clause_linear_ctor hook.
22378         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
22379         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
22380         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
22381         combined simd loop use omp_clause_linear_ctor hook.
22382
22383 2014-06-24  Cong Hou  <congh@google.com>
22384
22385         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
22386         pattern recognition.
22387         (type_conversion_p): PROMOTION is true if it's a type promotion
22388         conversion, and false otherwise.  Return true if the given expression
22389         is a type conversion one.
22390         * tree-vectorizer.h: Adjust the number of patterns.
22391         * tree.def: Add SAD_EXPR.
22392         * optabs.def: Add sad_optab.
22393         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
22394         * expr.c (expand_expr_real_2): Likewise.
22395         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22396         * gimple.c (get_gimple_rhs_num_ops): Likewise.
22397         * optabs.c (optab_for_tree_code): Likewise.
22398         * tree-cfg.c (estimate_operator_cost): Likewise.
22399         * tree-ssa-operands.c (get_expr_operands): Likewise.
22400         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
22401         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
22402         * doc/generic.texi: Add document for SAD_EXPR.
22403         * doc/md.texi: Add document for ssad and usad.
22404
22405 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
22406
22407         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
22408         qualification in cast.
22409
22410 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
22411
22412         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
22413         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
22414         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
22415         (tree_function_decl): ... here.
22416         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
22417         streaming of vindex to ...
22418         (write_ts_function_decl_tree_pointers): ... here.
22419         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
22420         Do not stream DECL_VINDEX.
22421         (lto_input_ts_function_decl_tree_pointers): Stream it here.
22422
22423 2014-06-24  Catherine Moore  <clm@codesourcery.com>
22424             Sandra Loosemore  <sandra@codesourcery.com>
22425
22426         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
22427         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
22428         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
22429
22430 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
22431
22432         * doc/invoke.texi (Warning Options): Remove duplicated
22433         -Wmaybe-uninitialized.
22434
22435 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
22436
22437         PR tree-optimization/57742
22438         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
22439         (handle_builtin_malloc, handle_builtin_memset): New functions.
22440         (strlen_optimize_stmt): Call them.
22441         * passes.def: Move strlen after loop+dom but before vrp.
22442
22443 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
22444
22445         PR target/61570
22446         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
22447         model family 6 CPU with has_longmode never use a CPU without
22448         64-bit support.
22449
22450 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22451
22452         PR target/61570
22453         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
22454         the last change.
22455
22456 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
22457
22458         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
22459         * dominance.c (iterate_fix_dominators): Use hash_map instead of
22460         pointer_map.
22461         * hash-map.h: New file.
22462         * ipa-comdats.c: Use hash_map instead of pointer_map.
22463         * ipa.c: Likewise.
22464         * lto-section-out.c: Adjust.
22465         * lto-streamer.h: Replace pointer_map with hash_map.
22466         * symtab.c (verify_symtab): Likewise.
22467         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
22468         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
22469         * tree-streamer.h: Likewise.
22470         * tree-streamer.c: Adjust.
22471         * pointer-set.h: Remove pointer_map.
22472
22473 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
22474
22475         * hash-table.h: Add a template arg to choose between storing values
22476         and storing pointers to values, and then provide partial
22477         specializations for both.
22478         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
22479         should store, not the type values should point to.
22480         * tree-into-ssa.c (var_info_hasher): Likewise.
22481         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22482         * tree-complex.c: Adjust.
22483         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
22484         table instead of int_tree_map *.
22485         * tree-parloops.c: Adjust.
22486         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
22487         type is being stored.
22488         * tree-vectorizer.c: Adjust.
22489
22490 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
22491
22492         * hash-table.h: Remove a layer of indirection from hash_table so that
22493         it contains the hash table's data instead of a pointer to the data.
22494         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
22495         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
22496         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
22497         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
22498         fold-const.c, gcse.c, ggc-common.c,
22499         gimple-ssa-strength-reduction.c, gimplify.c,
22500         graphite-clast-to-gimple.c, graphite-dependences.c,
22501         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
22502         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
22503         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
22504         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
22505         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
22506         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
22507         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
22508         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
22509         tree-ssa-live.c, tree-ssa-loop-im.c,
22510         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
22511         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
22512         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
22513         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
22514         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
22515         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
22516         vtable-verify.c, vtable-verify.h: Adjust.
22517
22518 2014-06-24  Richard Biener  <rguenther@suse.de>
22519
22520         PR tree-optimization/61572
22521         * tree-ssa-sink.c (statement_sink_location): Do not sink
22522         loads from hard registers.
22523
22524 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
22525
22526         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
22527         not mentioned in clauses use private clause if the iterator is
22528         declared in #pragma omp for simd, and when adding lastprivate
22529         instead, add it to the outer #pragma omp for too.  Diagnose
22530         if the variable is private in outer context.  For simd collapse > 1
22531         loops, replace all iterators with temporaries.
22532         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
22533         same even in collapse > 1 loops.
22534
22535         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
22536         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
22537         non-NULL.
22538         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
22539         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
22540         non-NULL.
22541         (gimplify_adjust_omp_clauses): Likewise.
22542         * omp-low.c (lower_rec_simd_input_clauses,
22543         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
22544         safelen the same as safelen(1).
22545         * tree-nested.c (convert_nonlocal_omp_clauses,
22546         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
22547         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
22548         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
22549         Fixup handling of GIMPLE_OMP_TARGET.
22550         (convert_tramp_reference_stmt, convert_gimple_call): Handle
22551         GIMPLE_OMP_TARGET.
22552
22553 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
22554
22555         PR tree-optimization/61554
22556         * tree-ssa-propagate.c: Include "bitmap.h".
22557         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
22558         properly update constructor/destructor.
22559         (substitute_and_fold_dom_walker::before_dom_children):
22560         Remove call to gimple_purge_dead_eh_edges, add bb->index to
22561         need_eh_cleaup instead.
22562         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
22563         need_eh_cleanup.
22564
22565 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
22566
22567         * varpool.c (dump_varpool_node): Dump used_by_single_function.
22568         * tree-pass.h (make_pass_ipa_single_use): New pass.
22569         * cgraph.h (used_by_single_function): New flag.
22570         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
22571         Stream it.
22572         * passes.def (pass_ipa_single_use): Scedule.
22573         * ipa.c (BOTTOM): New macro.
22574         (meet): New function
22575         (propagate_single_user): New function.
22576         (ipa_single_use): New function.
22577         (pass_data_ipa_single_use): New pass.
22578         (pass_ipa_single_use): New pass.
22579         (pass_ipa_single_use::gate): New gate.
22580         (make_pass_ipa_single_use): New function.
22581
22582 2014-06-23  Kai Tietz  <ktietz@redhat.com>
22583
22584         PR target/39284
22585         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
22586         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
22587
22588 2014-06-23  Richard Biener  <rguenther@suse.de>
22589
22590         * tree-ssa-loop.c (gate_loop): New function.
22591         (pass_tree_loop::gate): Call it.
22592         (pass_data_tree_no_loop, pass_tree_no_loop,
22593         make_pass_tree_no_loop): New.
22594         * tree-vectorizer.c: Include tree-scalar-evolution.c
22595         (pass_slp_vectorize::execute): Initialize loops and SCEV if
22596         required.
22597         (pass_slp_vectorize::clone): New method.
22598         * timevar.def (TV_TREE_NOLOOP): New.
22599         * tree-pass.h (make_pass_tree_no_loop): Declare.
22600         * passes.def (pass_tree_no_loop): New pass group with
22601         SLP vectorizer.
22602
22603 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
22604
22605         PR target/61570
22606         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
22607         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
22608
22609 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
22610
22611         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
22612         "yes" where needed.
22613
22614 2014-06-23  Alan Modra  <amodra@gmail.com>
22615
22616         PR bootstrap/61583
22617         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
22618         to zero on debug statements.
22619
22620 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
22621
22622         PR target/60825
22623         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
22624         Ignore third operand if present by marking qualifier_internal.
22625
22626         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
22627
22628         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
22629         vector extension.
22630         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
22631         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
22632         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
22633         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
22634         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
22635         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
22636         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
22637         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
22638         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
22639         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
22640         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
22641         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
22642         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
22643         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
22644         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
22645         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
22646         logic in GCC vector extensions
22647
22648         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
22649         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
22650         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
22651         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
22652         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
22653         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
22654         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
22655         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
22656         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
22657         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
22658
22659         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
22660
22661         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
22662         extensions.
22663
22664         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
22665         (vget_low_s64): Use __GET_LOW macro.
22666         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
22667         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
22668         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
22669         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
22670         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
22671
22672         (vcombine_s64): Use GCC vector extensions; remove cast.
22673         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
22674         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
22675         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
22676         Fix type signature; remove cast.
22677
22678 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
22679
22680         PR target/60825
22681         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
22682         V1DFmode.
22683         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
22684         add V1DFmode
22685         (BUILTIN_VD1): New.
22686         (BUILTIN_VD_RE): Remove.
22687         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
22688         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
22689         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
22690         variant but not df.
22691         (vreinterpretv1df*, vreinterpret*v1df): New.
22692         (vreinterpretdf*, vreinterpret*df): Remove.
22693         * config/aarch64/aarch64-simd.md (aarch64_create,
22694         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
22695         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
22696         (VD1): New.
22697         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
22698         (vcreate_f64): Remove cast, use v1df builtin.
22699         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
22700         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
22701         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
22702         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
22703         vmov_n_f64, vst1_f64): Use gcc vector extensions.
22704         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
22705         add range check using __builtin_aarch64_im_lane_boundsi.
22706         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
22707         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
22708         type signature, use gcc vector extensions.
22709         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
22710         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
22711         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
22712         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
22713         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
22714         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
22715         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
22716         vreinterpret_u64_f64): Use v1df builtin not df.
22717
22718 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
22719
22720         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
22721         vector registers.
22722
22723 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
22724
22725         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
22726         priority directly.
22727
22728 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22729
22730         * loop-invariant.c (pre_check_invariant_p): New function.
22731         (find_invariant_insn): Call pre_check_invariant_p.
22732
22733 2014-06-22  Richard Henderson  <rth@redhat.com>
22734
22735         PR target/61565
22736         * compare-elim.c (struct comparison): Add eh_note.
22737         (find_comparison_dom_walker::before_dom_children): Don't eliminate
22738         a redundant comparison in a different EH region.  Purge EH edges if
22739         necessary.
22740
22741 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
22742
22743         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
22744         (var_shift): Use it.
22745         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
22746         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
22747         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
22748         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
22749         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
22750         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
22751         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
22752         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
22753         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
22754         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
22755         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
22756         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
22757         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
22758         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
22759         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
22760         *rotldi3_internal15be): Use the new attribute.  Merge register and
22761         integer alternatives.
22762
22763 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
22764
22765         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
22766         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
22767         split, *ashrdi3_internal3 and split): Delete, merge into...
22768         (ashr<mode>3): New expander.
22769         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
22770         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
22771
22772 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
22773
22774         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
22775         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
22776         *rotldi3_internal3 and split): Delete, merge into...
22777         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
22778         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
22779         Use "rotlw" extended mnemonic.
22780
22781 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
22782
22783         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
22784         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
22785         and split, *ashldi3_internal3 and split): Delete, merge into...
22786         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
22787         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
22788
22789 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
22790
22791         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
22792         (lshrsi3, two anonymous define_insns and define_splits,
22793         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
22794         *lshrdi3_internal3 and split): Delete, merge into...
22795         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
22796         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
22797
22798 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
22799
22800         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
22801         Remove "O" alternative.
22802
22803 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
22804
22805         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
22806         (mips_move_from_gpr_cost): Likewise.
22807         (mips_register_move_cost): Update accordingly.
22808         (mips_secondary_reload_class): Remove name of in_p.
22809
22810 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
22811
22812         PR target/61503
22813         * config/i386/i386.md (x86_64_shrd, x86_shrd,
22814         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
22815
22816 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22817
22818         * config/nios2/nios2.c: Include "builtins.h".
22819
22820 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
22821
22822         * cgraph.h (tls_model_names): New variable.
22823         * print-tree.c (print_node): Simplify.
22824         * varpool.c (tls_model_names): New variable.
22825         (dump_varpool_node): Output tls model.
22826
22827 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
22828
22829         * ipa-visibility.c (function_and_variable_visibility): Disable
22830         temporarily local aliases for some targets.
22831
22832 2014-06-20  Marek Polacek  <polacek@redhat.com>
22833
22834         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
22835         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
22836         into SANITIZE_UNDEFINED.
22837         * doc/invoke.texi: Describe -fsanitize=bounds.
22838         * gimplify.c (gimplify_call_expr): Add gimplification of internal
22839         functions created in the FEs.
22840         * internal-fn.c: Move "internal-fn.h" after "tree.h".
22841         (expand_UBSAN_BOUNDS): New function.
22842         * internal-fn.def (UBSAN_BOUNDS): New internal function.
22843         * internal-fn.h: Don't define internal functions here.
22844         * opts.c (common_handle_option): Add -fsanitize=bounds.
22845         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
22846         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
22847         * tree-core.h: Define internal functions here.
22848         (struct tree_base): Add ifn field.
22849         * tree-pretty-print.c: Include "internal-fn.h".
22850         (dump_generic_node): Handle functions without CALL_EXPR_FN.
22851         * tree.c (get_callee_fndecl): Likewise.
22852         (build_call_expr_internal_loc): New function.
22853         * tree.def (CALL_EXPR): Update description.
22854         * tree.h (CALL_EXPR_IFN): Define.
22855         (build_call_expr_internal_loc): Declare.
22856         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
22857         types.
22858         (ubsan_type_descriptor): Change bool parameter to enum
22859         ubsan_print_style.  Adjust the code.  Add handling of
22860         UBSAN_PRINT_ARRAY.
22861         (ubsan_expand_bounds_ifn): New function.
22862         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
22863         (ubsan_build_overflow_builtin): Likewise.
22864         (instrument_bool_enum_load): Likewise.
22865         (ubsan_instrument_float_cast): Likewise.
22866         * ubsan.h (enum ubsan_print_style): New enum.
22867         (ubsan_expand_bounds_ifn): Declare.
22868         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
22869
22870 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
22871
22872         * config/rs6000/rs6000.md: Append `DONE' to preparation
22873         statements of `bswap' pattern splitters.
22874
22875 2014-06-20  Tom de Vries  <tom@codesourcery.com>
22876
22877         * target.def (call_fusage_contains_non_callee_clobbers): Update
22878         definition.
22879         * doc/tm.texi: Regenerate.
22880
22881 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
22882             Max Ostapenko  <m.ostapenko@partner.samsung.com>
22883
22884         PR sanitizer/61547
22885         * asan.c (instrument_strlen_call): Fixed instrumentation of
22886         trailing byte.
22887
22888 2014-06-20  Martin Jambor  <mjambor@suse.cz>
22889
22890         PR ipa/61540
22891         * ipa-prop.c (impossible_devirt_target): New function.
22892         (try_make_edge_direct_virtual_call): Use it, also instead of
22893         asserting.
22894
22895 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
22896             Max Ostapenko  <m.ostapenko@partner.samsung.com>
22897
22898         PR sanitizer/61530
22899         * asan.c (build_check_stmt): Add condition.
22900
22901 2014-06-20  Martin Jambor  <mjambor@suse.cz>
22902
22903         PR ipa/61211
22904         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
22905         expanded clones.
22906
22907 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22908
22909         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
22910         Update comments.
22911         (VCONQ): Make comment more helpful.
22912         (VCON): Delete.
22913         * config/aarch64/aarch64-simd.md
22914         (aarch64_sqdmulh_lane<mode>):
22915         Use VCOND for operands 2.  Update lane checking and flipping logic.
22916         (aarch64_sqrdmulh_lane<mode>): Likewise.
22917         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
22918         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
22919         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
22920         attribute of operand 3 to VCOND.
22921         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
22922         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
22923         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
22924         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
22925         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
22926         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
22927         define_insn.
22928         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
22929         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
22930         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
22931         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
22932         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
22933         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
22934         operand to VCOND.  Update lane flipping and bounds checking logic.
22935         (aarch64_sqdmlal2_lane<mode>): Likewise.
22936         (aarch64_sqdmlsl_lane<mode>): Likewise.
22937         (aarch64_sqdmull_lane<mode>): Likewise.
22938         (aarch64_sqdmull2_lane<mode>): Likewise.
22939         (aarch64_sqdmlal_laneq<mode>):
22940         Replace VCON usage with VCONQ.
22941         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
22942         (aarch64_sqdmlal2_laneq<mode>): Emit
22943         aarch64_sqdmlal2_laneq<mode>_internal insn.
22944         Replace VCON with VCONQ.
22945         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
22946         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
22947         (aarch64_sqdmull_laneq<mode>): Emit
22948         aarch64_sqdmull_laneq<mode>_internal insn.
22949         Replace VCON with VCONQ.
22950         (aarch64_sqdmull2_laneq<mode>): Emit
22951         aarch64_sqdmull2_laneq<mode>_internal insn.
22952         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
22953         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
22954         of 3rd argument to int16x4_t.
22955         (vqdmlalh_lane_s16): Likewise.
22956         (vqdmlslh_lane_s16): Likewise.
22957         (vqdmull_high_lane_s16): Likewise.
22958         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
22959         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
22960         (vqdmlsl_lane_s16): Likewise.
22961         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
22962         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
22963         (vqdmlals_lane_s32): Likewise.
22964         (vqdmlsls_lane_s32): Likewise.
22965         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
22966         (vqdmulls_lane_s32): Likewise.
22967         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
22968         (vqdmlsl_lane_s32): Likewise.
22969         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
22970         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
22971         (vqrdmulhh_lane_s16): Likewise.
22972         (vqdmlsl_high_lane_s16): Likewise.
22973         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
22974         (vqdmlsl_high_lane_s32): Likewise.
22975         (vqrdmulhs_lane_s32): Likewise.
22976
22977 2014-06-20  Tom de Vries  <tom@codesourcery.com>
22978
22979         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
22980         get_call_reg_set_usage.
22981
22982 2014-06-20  Tom de Vries  <tom@codesourcery.com>
22983
22984         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
22985         it contains all call_used_regs.
22986
22987 2014-06-20  Tom de Vries  <tom@codesourcery.com>
22988
22989         * final.c (collect_fn_hard_reg_usage): Add and use variable
22990         function_used_regs.
22991
22992 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
22993
22994         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
22995         (set_init_priority, get_init_priority, set_fini_priority,
22996         get_fini_priority): New methods.
22997         * tree.c (init_priority_for_decl): Remove.
22998         (init_ttree): Do not initialize init priority.
22999         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
23000         (decl_priority_info): Remove.
23001         (decl_init_priority_insert): Rewrite.
23002         (decl_fini_priority_insert): Rewrite.
23003         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
23004         tree_priority_map_marked_p): Remove.
23005         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
23006         * lto-streamer-out.c (hash_tree): Do not hash priorities.
23007         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
23008         not output priorities.
23009         (pack_ts_function_decl_value_fields): Likewise.
23010         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
23011         not input priorities.
23012         (unpack_ts_function_decl_value_fields): Likewise.
23013         * symtab.c (symbol_priority_map): Declare.
23014         (init_priority_hash): Declare.
23015         (symtab_unregister_node): Unregister from priority hash, too.
23016         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
23017         New methods.
23018         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
23019         (symbol_priority_info): New function.
23020         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
23021         New methods.
23022         * tree-core.h (tree_priority_map): Remove.
23023
23024 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
23025
23026         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
23027         0xff to uint64_t before shifting it up.
23028
23029 2014-06-20  Julian Brown  <julian@codesourcery.com>
23030             Chung-Lin Tang  <cltang@codesourcery.com>
23031
23032         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
23033         TARGET_THUMB1_ONLY. Add comments.
23034
23035 2014-06-19  Tom de Vries  <tom@codesourcery.com>
23036
23037         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
23038         return type to void.
23039         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
23040
23041 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23042
23043         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
23044         as "move", from depends_on.
23045
23046 2014-06-19  Terry Guo  <terry.guo@arm.com>
23047
23048         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
23049         stage.
23050
23051 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
23052
23053         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
23054         Remove cr5.
23055         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
23056
23057 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
23058
23059         PR target/61550
23060         * config/sh/sh.c (prepare_move_operands): Don't process TLS
23061         addresses here if reload in progress or completed.
23062
23063 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
23064
23065         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
23066         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
23067         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
23068         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
23069         (mips_register_priority): New function that implements the target
23070         hook TARGET_REGISTER_PRIORITY.
23071         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
23072         (mips_lra_p): Likewise for TARGET_LRA_P.
23073         (TARGET_REGISTER_PRIORITY): Define macro.
23074         (TARGET_SPILL_CLASS): Likewise.
23075         (TARGET_LRA_P): Likewise.
23076         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
23077         classes.
23078         (REG_CLASS_NAMES): Likewise.
23079         (REG_CLASS_CONTENTS): Likewise.
23080         (BASE_REG_CLASS): Use M16_SP_REGS.
23081         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
23082         New set attribute to enable alternatives depending on the register
23083         allocator used.
23084         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
23085         (*lea64): Disable pattern for MIPS16.
23086         * config/mips/mips.opt (mlra): New option.
23087
23088 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
23089
23090         * lra-constraints.c (base_to_reg): New function.
23091         (process_address): Use new function.
23092
23093 2014-06-18  Tom de Vries  <tom@codesourcery.com>
23094
23095         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
23096         * config/aarch64/aarch64.c
23097         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
23098         (aarch64_emit_call_insn): New function.
23099         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
23100         of emit_call_insn.
23101         * config/aarch64/aarch64.md (define_expand "call_internal")
23102         (define_expand "call_value_internal", define_expand "sibcall_internal")
23103         (define_expand "sibcall_value_internal"): New.
23104         (define_expand "call", define_expand "call_value")
23105         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
23106         expand variant and aarch64_emit_call_insn.
23107
23108 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
23109             Tom de Vries  <tom@codesourcery.com>
23110
23111         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
23112         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23113         Redefine to true.
23114         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
23115         clobbers to CALL_INSN_FUNCTION_USAGE.
23116         (define_expand "sibcall_internal")
23117         (define_expand "sibcall_value_internal"): New.
23118         (define_expand "call", define_expand "call_value"): Add argument to
23119         arm_emit_call_insn.
23120         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
23121         (define_expand "sibcall_value"): Use sibcall_value_internal and
23122         arm_emit_call_insn.
23123
23124 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23125
23126         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
23127
23128 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23129
23130         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
23131         __udivmoddi4.
23132
23133 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23134
23135         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
23136         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
23137         annotations. Fix DWARF information.
23138
23139 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23140
23141         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
23142         __udivmoddi4, and fixups for negative operands.
23143
23144 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23145
23146         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
23147
23148 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23149
23150         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
23151         to __udivmoddi4.
23152
23153 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23154
23155         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
23156         manipulation.
23157
23158 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23159
23160         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
23161         describing register usage on function entry and exit.
23162
23163 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23164
23165         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
23166         (__aeabi_ldivmod): Fix whitespace.
23167
23168 2014-06-18  Andreas Schwab  <schwab@suse.de>
23169
23170         * doc/md.texi (Standard Names): Use @itemx for grouped items.
23171         Remove blank line after @item.
23172
23173 2014-06-18  Richard Henderson  <rth@redhat.com>
23174
23175         PR target/61545
23176         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
23177
23178 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23179
23180         * config/arm/arm.c (neon_vector_mem_operand): Allow register
23181         POST_MODIFY for neon loads and stores.
23182         (arm_print_operand): Output post-index register for neon loads and
23183         stores.
23184
23185 2014-06-18  Richard Biener  <rguenther@suse.de>
23186
23187         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
23188
23189 2014-06-18  Richard Biener  <rguenther@suse.de>
23190
23191         * tree-pass.h (make_pass_dce_loop): Remove.
23192         * passes.def: Replace pass_dce_loop with pass_dce.
23193         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
23194         changed free niter estimates and reset the scev cache.
23195         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
23196         make_pass_dce_loop): Remove.
23197         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
23198         (fini_copy_prop): Return whether something changed.  Always
23199         let substitute_and_fold perform DCE and free niter estimates
23200         and reset the scev cache if so.
23201         (execute_copy_prop): If sth changed schedule cleanup-cfg.
23202         (pass_data_copy_prop): Do not unconditionally schedule
23203         cleanup-cfg or update-ssa.
23204
23205 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
23206
23207         PR tree-optimization/61518
23208         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
23209         reduction var is used in reduction stmt or phi-function only.
23210
23211 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23212
23213         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
23214
23215 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23216
23217         PR tree-optimization/61517
23218         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
23219         whose rhs's first tree is the source expression instead of the
23220         expression itself.
23221         (find_bswap_or_nop): Likewise.
23222         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
23223         gimple stmt whose rhs's first tree is the source. In the memory source
23224         case, move the stmt to be replaced close to one of the original load to
23225         avoid the problem of a store between the load and the stmt's original
23226         location.
23227         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
23228         signature.
23229
23230 2014-06-18  Andreas Schwab  <schwab@suse.de>
23231
23232         PR rtl-optimization/54555
23233         * postreload.c (move2add_use_add2_insn): Substitute
23234         STRICT_LOW_PART only if it is cheaper.
23235
23236 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
23237
23238         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
23239         Do not use unspec as call operand.  Use memory_operand instead of
23240         memory_nox32_operand and add "m" operand constraint.  Disable
23241         pattern for TARGET_X32.
23242         (*sibcall_pop_memory): Ditto.
23243         (*sibcall_value_memory): Ditto.
23244         (*sibcall_value_pop_memory): Ditto.
23245         (sibcall peepholes): Merge SImode and DImode patterns using
23246         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
23247         Disable pattern for TARGET_X32.  Check if eliminated register is
23248         really dead after call insn.  Generate call RTX without unspec operand.
23249         (sibcall_value peepholes): Ditto.
23250         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
23251         instead of memory_nox32_operand.  Check if eliminated register is
23252         really dead after call insn. Generate call RTX without unspec operand.
23253         (sibcall_value_pop peepholes): Ditto.
23254         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
23255
23256 2014-06-18  Terry Guo  <terry.guo@arm.com>
23257
23258         PR target/61544
23259         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
23260         reach the head.
23261
23262 2014-06-18  Olivier Hainque  <hainque@adacore.com>
23263
23264         * tree-core.h (tree_block): Add an "end_locus" field, allowing
23265         memorization of the end of block source location.
23266         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
23267         * gimplify.c (gimplify_bind_expr): Propagate the block start and
23268         end source location info we have on the block entry/exit code we
23269         generate.
23270
23271 2014-06-18  Richard Biener  <rguenther@suse.de>
23272
23273         * common.opt (fssa-phiopt): New option.
23274         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
23275         but not with -Og.
23276         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
23277         * doc/invoke.texi (-fssa-phiopt): Document.
23278
23279 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23280
23281         * genattrtab.c (n_bypassed): New variable.
23282         (process_bypasses): Initialise n_bypassed.
23283         Count number of bypassed reservations.
23284         (make_automaton_attrs): Allocate space for bypassed reservations
23285         rather than number of bypasses.
23286
23287 2014-06-18  Richard Biener  <rguenther@suse.de>
23288
23289         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
23290         we propagated anything.
23291         (substitute_and_fold_dom_walker::before_dom_children): Something
23292         changed if we propagated into PHI arguments.
23293         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
23294         we removed a stmt.
23295
23296 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
23297
23298         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
23299         vector case.
23300         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
23301         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
23302         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
23303         Introduces alternative way of loads group permutaions.
23304         (vect_transform_grouped_load): Try alternative way of permutations.
23305
23306 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
23307
23308         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
23309         changed in ORT_TARGET region, don't jump to do_outer.
23310         (struct gimplify_adjust_omp_clauses_data): New type.
23311         (gimplify_adjust_omp_clauses_1): Adjust for data being
23312         a struct gimplify_adjust_omp_clauses_data pointer instead
23313         of tree *.  Pass pre_p as a new argument to
23314         lang_hooks.decls.omp_finish_clause hook.
23315         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
23316         splay_tree_foreach to pass both list_p and pre_p.
23317         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
23318         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
23319         gimplify_adjust_omp_clauses callers.
23320         * langhooks.c (lhd_omp_finish_clause): New function.
23321         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
23322         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
23323         * langhooks.h (struct lang_hooks_for_decls): Add a new
23324         gimple_seq * argument to omp_finish_clause hook.
23325         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
23326         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
23327         (scan_omp_parallel, lower_omp_for): When adding
23328         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
23329         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
23330         * tree-nested.c (convert_nonlocal_omp_clauses,
23331         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
23332         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
23333
23334 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
23335
23336         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
23337         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
23338
23339 2014-06-17  Xinliang David Li  <davidxl@google.com>
23340
23341         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
23342         * passes.c (pass_init_dump_file): Do not set initialize
23343         flag to false unconditionally.
23344
23345 2014-06-17  Richard Biener  <rguenther@suse.de>
23346
23347         * genopinit.c (main): Use vec<>::qsort method.
23348         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
23349         Likewise.
23350         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
23351
23352 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
23353
23354         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
23355         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
23356         (mips_move_to_gpr_cost): Remove ST_REGS case.
23357         (mips_move_from_gpr_cost): Likewise.
23358         (mips_register_move_cost): Likewise.
23359         (mips_secondary_reload_class): Likewise.
23360
23361 2014-06-17  Richard Biener  <rguenther@suse.de>
23362
23363         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
23364         (pass_all_optimizations): Move 3rd copy-prop pass from after
23365         fre to before ifcombine/phiopt.
23366
23367 2014-06-17  Richard Biener  <rguenther@suse.de>
23368
23369         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
23370         and allow all blocks to be forwarders.
23371
23372 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
23373
23374         PR target/61483
23375         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
23376         variable 'size'; calculate 'size' right in the front; use
23377         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
23378         pcum->aapcs_stack_words.
23379
23380 2014-06-17  Nick Clifton  <nickc@redhat.com>
23381
23382         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
23383         (umulhi3, mulsidi3, umulsidi3): Likewise.
23384
23385 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
23386
23387         PR middle-end/61508
23388         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
23389         check for section name.
23390
23391 2014-06-17  Richard Biener  <rguenther@suse.de>
23392
23393         * tree-ssa-propagate.c: Include domwalk.h.
23394         (substitute_and_fold): Outline main worker into a domwalker ...
23395         (substitute_and_fold_dom_walker::before_dom_children): ... here.
23396         Schedule stmts we can fully propagate for removal.  Remove
23397         poor-mans DCE.
23398         (substitute_and_fold): Apply a dominator walk to perform
23399         substitution.  Process stmts scheduled for removal here.
23400
23401 2014-06-17  Richard Biener  <rguenther@suse.de>
23402
23403         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
23404         of PHI node moving.
23405
23406 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
23407
23408         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
23409         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
23410         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
23411         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
23412         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
23413         TARGET_HARD_FLOAT.
23414         (get_fpscr) : Likewise.
23415
23416 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
23417
23418         PR rtl-optimization/61325
23419         * lra-constraints.c (valid_address_p): Add forward declaration.
23420         (simplify_operand_subreg): Check address validity before and after
23421         alter_reg of memory subreg.
23422
23423 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
23424
23425         * config/i386/i386.c (decide_alg): Correctly handle
23426         maximum size of stringop algorithm.
23427
23428 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
23429
23430         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
23431
23432 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
23433
23434         PR rtl-optimization/61522
23435         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
23436
23437 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
23438
23439         Revert:
23440         * symtab.c (symtab_node::reset_section): New method.
23441         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
23442         for localization.
23443         * cgraph.h (reset_section): Declare.
23444         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
23445         do not consider comdat locals.
23446         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
23447         for new symbol.
23448         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
23449         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
23450         reset sections of symbols dragged out of the comdats.
23451         (function_and_variable_visibility): Reset sections of
23452         localized symbols.
23453
23454 2014-06-16  Richard Biener  <rguenther@suse.de>
23455
23456         PR tree-optimization/61482
23457         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
23458         [-INF(OVF), +INF(OVF)] range.
23459
23460 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23461
23462         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
23463         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
23464         handling 32-bit multiplication.
23465
23466 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
23467
23468         PR middle-end/61430
23469         * lra-lives.c (process_bb_lives): Skip creating copy during
23470         insn scan when src/dest has constrained to same regno.
23471
23472 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
23473
23474         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
23475         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
23476
23477 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
23478
23479         * asan.c (check_func): New function.
23480         (maybe_create_ssa_name): Likewise.
23481         (build_check_stmt_with_calls): Likewise.
23482         (use_calls_p): Likewise.
23483         (report_error_func): Change interface.
23484         (build_check_stmt): Allow non-integer lengths; add support
23485         for new parameter.
23486         (asan_instrument): Likewise.
23487         (instrument_mem_region_access): Moved code to build_check_stmt.
23488         (instrument_derefs): Likewise.
23489         (instrument_strlen_call): Likewise.
23490         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
23491         * doc/invoke.texi: Describe new parameter.
23492         * params.def: Define new parameter.
23493         * params.h: Likewise.
23494         * sanitizer.def: Describe new builtins.
23495
23496 2014-06-16  Richard Biener  <rguenther@suse.de>
23497
23498         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23499         Make all defs available at the end.
23500         (eliminate): If we remove a PHI node schedule cfg-cleanup.
23501
23502 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
23503
23504         PR plugins/45078
23505         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
23506
23507 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
23508
23509         PR bootstrap/61516
23510         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
23511         initialization.  Replace remaining use of uid.
23512
23513 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
23514
23515         * c-family/c-common.c (handle_tls_model_attribute): Use
23516         set_decl_tls_model.
23517         * c-family/c-common.c (handle_tls_model_attribute): Use
23518         set_decl_tls_model.
23519         * cgraph.h (struct varpool_node): Add tls_model.
23520         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
23521         * tree.h (DECL_TLS_MODEL): Update.
23522         (DECL_THREAD_LOCAL_P): Check that variable is static.
23523         (decl_tls_model): Declare.
23524         (set_decl_tls_model): Declare.
23525         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
23526         set symbol prorperties.
23527         (get_emutls_init_templ_addr): Cleanup.
23528         (new_emutls_decl): Update.
23529         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
23530         (lto_input_varpool_node): Likewise.
23531         * lto-streamer-out.c (hash_tree): Likewise.
23532         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
23533         not stream DECL_TLS_MODEL.
23534         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
23535         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
23536
23537 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
23538
23539         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
23540
23541 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
23542
23543         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
23544         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
23545         lists.
23546         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
23547         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
23548         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
23549         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
23550         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
23551         (df_get_artificial_defs, df_get_artificial_uses)
23552         (df_single_def, df_single_use): Update accordingly.
23553         (df_refs_chain_dump): Take the first element in a linked list as
23554         parameter, rather than a pointer to an array of pointers.
23555         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
23556         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
23557         (df_chain_create_bb_process_use): Likewise.
23558         (df_md_bb_local_compute_process_def): Likewise.
23559         * fwprop.c (process_defs, process_uses): Likewise.
23560         (register_active_defs, update_uses): Likewise.
23561         (forward_propagate_asm): Update for new df_ref linking.
23562         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
23563         (df_null_ref_rec, df_null_mw_rec): Likewise.
23564         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
23565         explicitly.
23566         (df_scan_free_bb_info): Remove check for null artificial_defs.
23567         (df_install_ref_incremental): Adjust for new df_ref linking.
23568         Use a single-element insertion rather than a full sort.
23569         (df_ref_chain_delete_du_chain): Take the first element
23570         in a linked list as parameter, rather than a pointer to an array of
23571         pointers.
23572         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
23573         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
23574         (df_insn_info_delete): Remove check for null defs and call to
23575         df_scan_free_mws_vec.
23576         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
23577         null rather than df_null_*_rec.
23578         (df_insn_rescan_debug_internal): Likewise, and update null
23579         checks in the same way.  Remove check for null defs.
23580         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
23581         Move a single element rather doing a full sort.
23582         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
23583         linking.
23584         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
23585         Initialize df_ref and df_mw_hardreg lists to null rather than
23586         df_null_*_rec.
23587         (df_ref_compare): Take df_refs as parameter, transferring the
23588         old interface to...
23589         (df_ref_ptr_compare): ...this new function.
23590         (df_sort_and_compress_refs): Update accordingly.
23591         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
23592         old interface to...
23593         (df_mw_ptr_compare): ...this new function.
23594         (df_sort_and_compress_mws): Update accordingly.
23595         (df_install_refs, df_install_mws): Return a linked list rather than
23596         an array of pointers.
23597         (df_refs_add_to_chains): Assert that old lists are empty rather
23598         than freeing them.
23599         (df_insn_refs_verify): Don't handle null defs speciailly.
23600         * web.c (union_match_dups): Update for new df_ref linking.
23601
23602 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
23603
23604         * df.h (df_ref_create, df_ref_remove): Delete.
23605         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
23606         (df_ref_remove): Likewise.
23607
23608 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
23609
23610         * df.h (df_single_def, df_single_use): New functions.
23611         * ira.c (find_moveable_pseudos): Use them.
23612
23613 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
23614
23615         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
23616         * df-problems.c (df_note_bb_compute): Use it.
23617         * regstat.c (regstat_bb_compute_ri): Likewise.
23618
23619 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
23620
23621         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
23622         * cse.c (cse_extended_basic_block): Use them.
23623         * dce.c (mark_artificial_use): Likewise.
23624         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
23625         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
23626         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
23627         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
23628         (df_simulate_initialize_backwards): Likewise.
23629         (df_simulate_finalize_backwards): Likewise.
23630         (df_simulate_initialize_forwards): Likewise.
23631         (df_md_simulate_artificial_defs_at_top): Likewise.
23632         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
23633         * regrename.c (init_rename_info): Likewise.
23634         * regstat.c (regstat_bb_compute_ri): Likewise.
23635         (regstat_bb_compute_calls_crossed): Likewise.
23636
23637 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
23638
23639         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
23640         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
23641         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
23642         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
23643         * combine.c (create_log_links): Likewise.
23644         * compare-elim.c (find_flags_uses_in_insn): Likewise.
23645         (try_eliminate_compare): Likewise.
23646         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
23647         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
23648         (remove_reg_equal_equiv_notes_for_defs): Likewise.
23649         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
23650         (word_dce_process_block, dce_process_block): Likewise.
23651         * ddg.c (def_has_ccmode_p): Likewise.
23652         * df-core.c (df_bb_regno_first_def_find): Likewise.
23653         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
23654         * df-problems.c (df_rd_simulate_one_insn): Likewise.
23655         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
23656         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
23657         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
23658         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
23659         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
23660         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
23661         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
23662         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
23663         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
23664         * fwprop.c (local_ref_killed_between_p): Likewise.
23665         (all_uses_available_at, free_load_extend): Likewise.
23666         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
23667         * hw-doloop.c (scan_loop): Likewise.
23668         * ifcvt.c (dead_or_predicable): Likewise.
23669         * init-regs.c (initialize_uninitialized_regs): Likewise.
23670         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
23671         (process_bb_node_lives): Likewise.
23672         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
23673         (find_moveable_pseudos): Likewise.
23674         * loop-invariant.c (check_dependencies, record_uses): Likewise.
23675         * recog.c (peep2_find_free_register): Likewise.
23676         * ree.c (get_defs): Likewise.
23677         * regstat.c (regstat_bb_compute_ri): Likewise.
23678         (regstat_bb_compute_calls_crossed): Likewise.
23679         * sched-deps.c (find_inc, find_mem): Likewise.
23680         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
23681         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
23682         * shrink-wrap.c (requires_stack_frame_p): Likewise.
23683         (prepare_shrink_wrap): Likewise.
23684         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
23685         * web.c (union_defs, pass_web::execute): Likewise.
23686         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
23687         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
23688
23689 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
23690
23691         * lra-assign.c (assign_by_spills): Add code to assign vector regs
23692         to inheritance pseudos.
23693         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
23694
23695 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
23696
23697         PR target/61415
23698         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
23699         (BU_MISC_2): Rename to ...
23700         (BU_LDBL128_2): ... this.
23701         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
23702         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
23703         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
23704         RS6000_BTM_LDBL128.
23705         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
23706         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
23707         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
23708         (unpacktf_1): Likewise.
23709         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
23710         (__builtin_longdouble_dw1): Likewise.
23711         * doc/sourcebuild.texi (longdouble128): Document.
23712
23713 2014-06-13  Jeff Law  <law@redhat.com>
23714
23715         PR rtl-optimization/61094
23716         PR rtl-optimization/61446
23717         * ree.c (combine_reaching_defs): Get the mode for the copy from
23718         the extension insn rather than the defining insn.
23719
23720 2014-06-13  Dehao Chen  <dehao@google.com>
23721
23722         * dwarf2out.c (add_linkage_name): Emit more linkage name.
23723
23724 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
23725
23726         * doc/install.texi (--enable-linker-plugin-configure-flags)
23727         (--enable-linker-plugin-flags): Document new flags.
23728
23729 2014-06-13  Martin Jambor  <mjambor@suse.cz>
23730
23731         PR ipa/61186
23732         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
23733         cache_token if returning early.
23734
23735 2014-06-13  Nick Clifton  <nickc@redhat.com>
23736
23737         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
23738         requested alignment is active.
23739         (LABEL_ALIGN): Likewise.
23740         (LOOP_ALIGN): Likewise.
23741
23742 2014-06-13  Richard Biener  <rguenther@suse.de>
23743
23744         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23745         Rewrite to propagate the VN result into all uses where
23746         possible and to remove stmts becoming dead because of that.
23747         (eliminate): Generalize stmt removal handling, remove in
23748         reverse dominator order to support proper debug stmt
23749         generation.  Update stmts before removing stmts.
23750         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
23751
23752 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23753
23754         PR tree-optimization/61375
23755         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
23756         symbolic number cannot be represented in an uint64_t.
23757         (find_bswap_or_nop_1): Likewise.
23758
23759 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
23760
23761         * symtab.c (symtab_node::reset_section): New method.
23762         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
23763         for localization.
23764         * cgraph.h (reset_section): Declare.
23765         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
23766         do not consider comdat locals.
23767         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
23768         for new symbol.
23769         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
23770         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
23771         reset sections of symbols dragged out of the comdats.
23772         (function_and_variable_visibility): Reset sections of
23773         localized symbols.
23774
23775 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
23776
23777         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
23778         to use symtab and decl_binds_to_current_def_p
23779         * tree-vectorizer.c (increase_alignment): Increase alignment
23780         of alias target, too.
23781
23782 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
23783
23784         PR middle-end/61486
23785         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
23786         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
23787         if outer combined construct is distribute.
23788         (gimplify_omp_for): For OMP_DISTRIBUTE set
23789         gimplify_omp_ctxp->distribute.
23790         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
23791         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
23792         mapping into decl map.
23793
23794 2014-06-12  Jason Merrill  <jason@redhat.com>
23795
23796         * common.opt (fabi-version): Change default to 0.
23797
23798 2014-06-12  Jason Merrill  <jason@redhat.com>
23799
23800         * toplev.c (process_options): Reject -fabi-version=1.
23801
23802 2014-06-12  Jeff Law  <law@redhat.com>
23803
23804         PR tree-optimization/61009
23805         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
23806         value when we stop processing a block due to problematic PHIs.
23807
23808 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
23809
23810         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
23811         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
23812         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
23813         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
23814         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
23815         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
23816         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
23817         are not in the spec.
23818
23819 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
23820
23821         PR target/59843
23822         * config/aarch64/aarch64-modes.def: Add V1DFmode.
23823         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
23824         Support V1DFmode.
23825
23826 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
23827
23828         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
23829
23830 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
23831
23832         PR target/61443
23833         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
23834         loading from address spaces.
23835
23836 2014-06-12  Martin Liska  <mliska@suse.cz>
23837
23838         PR ipa/61462
23839         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
23840         statement is reachable.
23841
23842 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
23843
23844         * symtab.c (section_hash): New hash.
23845         (symtab_unregister_node): Clear section before freeing.
23846         (hash_section_hash_entry): New haser.
23847         (eq_sections): New function.
23848         (symtab_node::set_section_for_node): New method.
23849         (set_section_1): Update.
23850         (symtab_node::set_section): Take string instead of tree as parameter.
23851         (symtab_resolve_alias): Update.
23852         * cgraph.h (section_hash_entry_d): New structure.
23853         (section_hash_entry): New typedef.
23854         (cgraph_node): Change comdat_group_ to x_comdat_group,
23855         change section_ to x_section and turn into section_hash_entry;
23856         update accestors; put set_section_for_node offline.
23857         * tree.c (decl_section_name): Turn into string.
23858         (set_decl_section_name): Change parameter to be string.
23859         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
23860         * sdbout.c (sdbout_one_type): Update.
23861         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
23862         * varasm.c (IN_NAMED_SECTION, get_named_section,
23863         resolve_unique_section, hot_function_section, get_named_text_section,
23864         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
23865         make_decl_rtl, default_unique_section): Update.
23866         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
23867         (c6x_elf_unique_section): Update.
23868         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
23869         * config/pa/pa.c (pa_function_section): Update.
23870         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
23871         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
23872         * config/arc/arc.c (arc_in_small_data_p): Update.
23873         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
23874         * config/mcore/mcore.c (mcore_unique_section): Update.
23875         * config/mips/mips.c (mips16_build_function_stub): Update.
23876         (mips16_build_call_stub): Update.
23877         (mips_function_rodata_section): Update.
23878         (mips_in_small_data_p): Update.
23879         * config/score/score.c (score_in_small_data_p): Update.
23880         * config/rx/rx.c (rx_in_small_data): Update.
23881         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
23882         (rs6000_xcoff_asm_named_section): Update.
23883         (rs6000_xcoff_unique_section): Update.
23884         * config/frv/frv.c (frv_string_begins_with): Update.
23885         (frv_in_small_data_p): Update.
23886         * config/v850/v850.c (v850_encode_data_area): Update.
23887         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
23888         (bfin_handle_l1_data_attribute): Update.
23889         (bfin_handle_l2_attribute): Update.
23890         * config/mep/mep.c (mep_unique_section): Update.
23891         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
23892         Update.
23893         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
23894         (h8300_handle_tiny_data_attribute): Update.
23895         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
23896         (m32r_in_small_data_p): Update.
23897         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
23898         * config/i386/i386.c (ix86_in_large_data_p): Update.
23899         * config/i386/winnt.c (i386_pe_unique_section): Update.
23900         * config/darwin.c (darwin_function_section): Update.
23901         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
23902         * tree-emutls.c (get_emutls_init_templ_addr): Update.
23903         (new_emutls_decl): Update.
23904         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
23905         input_varpool_node): Update.
23906         (ead_string_cst): Turn to ...
23907         (read_string): ... this one.
23908         * dwarf2out.c (secname_for_decl): Update.
23909         * asan.c (asan_protect_global): Update.
23910
23911 2014-06-11  DJ Delorie  <dj@redhat.com>
23912
23913         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
23914         cache lines.
23915         * config/rx/rx.c (rx_option_override): Likewise.
23916         (rx_align_for_label): Likewise.
23917
23918         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
23919
23920 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
23921
23922         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
23923         prototype.
23924
23925 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
23926
23927         * common.md: New file.
23928         * doc/md.texi: Update description of generic, machine-independent
23929         constraints.
23930         * config/s390/constraints.md (e): Delete.
23931         * Makefile.in (md_file): Include common.md.
23932         * config/m32c/t-m32c (md_file): Likewise.
23933         * genpreds.c (general_mem): New array.
23934         (generic_constraint_letters): Remove constraints now defined by
23935         common.md.
23936         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
23937         Allow the first character to be '<' or '>' as well.
23938         * genoutput.c (general_mem): New array.
23939         (indep_constraints): Remove constraints now defined by common.md.
23940         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
23941         Remove special handling of 'm'.
23942         * ira-costs.c (record_reg_classes): Remove special handling of
23943         constraints now defined by common.md.
23944         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23945         * ira-lives.c (single_reg_class): Likewise.
23946         (ira_implicitly_set_insn_hard_regs): Likewise.
23947         * lra-constraints.c (reg_class_from_constraints): Likewise.
23948         (process_alt_operands, process_address, curr_insn_transform): Likewise.
23949         * postreload.c (reload_cse_simplify_operands): Likewise.
23950         * reload.c (push_secondary_reload, scratch_reload_class)
23951         (find_reloads, alternative_allows_const_pool_ref): Likewise.
23952         * reload1.c (maybe_fix_stack_asms): Likewise.
23953         * targhooks.c (default_secondary_reload): Likewise.
23954         * stmt.c (parse_output_constraint): Likewise.
23955         * recog.c (preprocess_constraints): Likewise.
23956         (constrain_operands, peep2_find_free_register): Likewise.
23957         (asm_operand_ok): Likewise, but add a comment saying why 'o'
23958         must be handled specially.
23959
23960 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
23961
23962         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
23963         * genpreds.c (have_const_dbl_constraints): Delete.
23964         (add_constraint): Don't set it.
23965         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
23966         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
23967         constraints using the lookup_constraint logic.
23968         * ira-lives.c (single_reg_class): Likewise.
23969         * ira.c (ira_setup_alts): Likewise.
23970         * lra-constraints.c (process_alt_operands): Likewise.
23971         * recog.c (asm_operand_ok, constrain_operands): Likewise.
23972         * reload.c (find_reloads): Likewise.
23973
23974 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
23975
23976         * genpreds.c (const_int_start, const_int_end): New variables.
23977         (choose_enum_order): Output CONST_INT constraints before memory
23978         constraints.
23979         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
23980         Add CT_CONST_INT.
23981         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
23982         * ira.c (ira_setup_alts): Likewise.
23983         * lra-constraints.c (process_alt_operands): Likewise.
23984         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
23985         * reload.c (find_reloads): Likewise.
23986
23987 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
23988
23989         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
23990         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
23991         * recog.c (preprocess_constraints): Update accordingly.
23992
23993 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
23994
23995         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
23996         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
23997         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
23998         * genpreds.c (print_type_tree): New function.
23999         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
24000         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
24001         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
24002         Write out enum constraint_type and get_constraint_type.
24003         * lra-constraints.c (satisfies_memory_constraint_p): Take a
24004         constraint_num rather than a constraint string.
24005         (satisfies_address_constraint_p): Likewise.
24006         (reg_class_from_constraints): Avoid old constraint macros.
24007         (process_alt_operands, process_address_1): Likewise.
24008         (curr_insn_transform): Likewise.
24009         * ira-costs.c (record_reg_classes): Likewise.
24010         (record_operand_costs): Likewise.
24011         * ira-lives.c (single_reg_class): Likewise.
24012         (ira_implicitly_set_insn_hard_regs): Likewise.
24013         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
24014         * postreload.c (reload_cse_simplify_operands): Likewise.
24015         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
24016         (constrain_operands, peep2_find_free_register): Likewise.
24017         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
24018         (find_reloads, alternative_allows_const_pool_ref): Likewise.
24019         * reload1.c (maybe_fix_stack_asms): Likewise.
24020         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
24021         * targhooks.c (default_secondary_reload): Likewise.
24022         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
24023         to EXTRA_CONSTRAINT_STR.
24024         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
24025
24026 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24027
24028         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
24029         (write_constraint_satisfied_p_array): ...this new function.
24030         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
24031         an array.
24032         (write_insn_preds_c): Update accordingly.
24033
24034 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24035
24036         * genpreds.c (write_lookup_constraint): Rename to...
24037         (write_lookup_constraint_1): ...this.
24038         (write_lookup_constraint_array): New function.
24039         (write_tm_preds_h): Define lookup_constraint as an inline function
24040         that uses write_lookup_constraint_array where possible.
24041         (write_insn_preds_c): Update for the changes above.
24042
24043 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24044
24045         * doc/md.texi (regclass_for_constraint): Rename to...
24046         (reg_class_for_constraint): ...this.
24047         * genpreds.c (num_constraints, enum_order, register_start)
24048         (register_end, satisfied_start, memory_start, memory_end)
24049         (address_start, address_end): New variables.
24050         (add_constraint): Count the number of constraints.
24051         (choose_enum_order): New function.
24052         (write_enum_constraint_num): Iterate over enum_order.
24053         (write_regclass_for_constraint): Rename to...
24054         (write_reg_class_for_constraint_1): ...this and update output
24055         accordingly.
24056         (write_constraint_satisfied_p): Rename to...
24057         (write_constraint_satisfied_p_1): ...this and update output
24058         accordingly.  Do nothing if all extra constraints are register
24059         constraints.
24060         (write_insn_extra_memory_constraint): Delete.
24061         (write_insn_extra_address_constraint): Delete.
24062         (write_range_function): New function.
24063         (write_tm_preds_h): Define constraint_satisfied_p and
24064         reg_class_for_constraint as inline functions that do a range check
24065         before calling the out-of-line function.  Use write_range_function
24066         to implement insn_extra_{register,memory,address}_constraint,
24067         the first of which is new.
24068         (write_insn_preds_c): Update after above changes to write_* functions.
24069         (main): Call choose_enum_order.
24070
24071 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24072
24073         PR tree-optimization/61306
24074         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
24075         expression instead of its size.
24076         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
24077         false to prevent optimization when the result is unpredictable due to
24078         arithmetic right shift of signed type with highest byte is set.
24079         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
24080         (init_symbolic_number): Likewise.
24081         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
24082         when the result is unpredictable due to sign extension.
24083
24084 2014-06-11  Terry Guo  <terry.guo@arm.com>
24085
24086         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
24087         (*thumb1_addsi3): Ditto.
24088         (*thumb_subdi3): Ditto.
24089         (thumb1_subsi3_insn): Ditto.
24090         (*thumb_mulsi3): Ditto.
24091         (*thumb_mulsi3_v6): Ditto.
24092         (*thumb1_andsi3_insn): Ditto.
24093         (thumb1_bicsi3): Ditto.
24094         (*thumb1_iorsi3_insn): Ditto.
24095         (*thumb1_xorsi3_insn): Ditto.
24096         (*thumb1_ashlsi3): Ditto.
24097         (*thumb1_ashrsi3): Ditto.
24098         (*thumb1_lshrsi3): Ditto.
24099         (*thumb1_rotrsi3): Ditto.
24100         (*thumb1_negdi2): Ditto.
24101         (*thumb1_negsi2): Ditto.
24102         (*thumb1_abssi2): Ditto.
24103         (*thumb1_neg_abssi2): Ditto.
24104         (*thumb1_one_cmplsi2): Ditto.
24105         (*thumb1_zero_extendhisi2): Ditto.
24106         (*thumb1_zero_extendqisi2): Ditto.
24107         (*thumb1_zero_extendqisi2_v6): Ditto.
24108         (thumb1_extendhisi2): Ditto.
24109         (thumb1_extendqisi2): Ditto.
24110         (*thumb1_movdi_insn): Ditto.
24111         (*thumb1_movsi_insn): Ditto.
24112         (*thumb1_movhi_insn): Ditto.
24113         (thumb_movhi_clobber): Ditto.
24114         (*thumb1_movqi_insn): Ditto.
24115         (*thumb1_movhf): Ditto.
24116         (*thumb1_movsf_insn): Ditto.
24117         (*thumb_movdf_insn): Ditto.
24118         (movmem12b): Ditto.
24119         (movmem8b): Ditto.
24120         (cbranchqi4): Ditto.
24121         (cbranchsi4_insn): Ditto.
24122         (cbranchsi4_scratch): Ditto.
24123         (*negated_cbranchsi4): Ditto.
24124         (*tbit_cbranch): Ditto.
24125         (*tlobits_cbranch): Ditto.
24126         (*tstsi3_cbranch): Ditto.
24127         (*cbranchne_decr1): Ditto.
24128         (*addsi3_cbranch): Ditto.
24129         (*addsi3_cbranch_scratch): Ditto.
24130         (*thumb_cmpdi_zero): Ditto.
24131         (cstoresi_eq0_thumb1): Ditto.
24132         (cstoresi_ne0_thumb1): Ditto.
24133         (*cstoresi_eq0_thumb1_insn): Ditto.
24134         (*cstoresi_ne0_thumb1_insn): Ditto.
24135         (cstoresi_nltu_thumb1): Ditto.
24136         (cstoresi_ltu_thumb1): Ditto.
24137         (thumb1_addsi3_addgeu): Ditto.
24138         (*thumb_jump): Ditto.
24139         (*call_reg_thumb1_v5): Ditto.
24140         (*call_reg_thumb1): Ditto.
24141         (*call_value_reg_thumb1_v5): Ditto.
24142         (*call_value_reg_thumb1): Ditto.
24143         (*call_insn): Ditto.
24144         (*call_value_insn): Ditto.
24145         (thumb1_casesi_internal_pic): Ditto.
24146         (thumb1_casesi_dispatch): Ditto.
24147         (*thumb1_indirect_jump): Ditto.
24148         (prologue_thumb1_interwork): Ditto.
24149         (*epilogue_insns): Ditto.
24150         (consttable_1): Ditto.
24151         (consttable_2): Ditto.
24152         (tablejump): Ditto.
24153         (*thumb1_tablejump): Ditto.
24154         (thumb_eh_return): Ditto.
24155         (define_peephole2): Two of them are thumb1 only and got moved into
24156         new file thumb1.md.
24157         (define_split): Six of them are thumb1 only and got moved into new
24158         file thumb1.md.
24159         * config/arm/thumb1.md: New file comprised of above thumb1 only
24160         patterns.
24161
24162 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24163
24164         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
24165         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
24166         dependencies.
24167         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
24168         (aarch64_crc_builtin_datum): New struct.
24169         (aarch64_crc_builtin_data): New.
24170         (aarch64_init_crc32_builtins): New function.
24171         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
24172         (aarch64_crc32_expand_builtin): New.
24173         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
24174         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
24175         __ARM_FEATURE_CRC32 when appropriate.
24176         (TARGET_CRC32): Define.
24177         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
24178         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
24179         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
24180         (aarch64_<crc_variant>): New pattern.
24181         * config/aarch64/arm_acle.h: New file.
24182         * config/aarch64/iterators.md (CRC): New int iterator.
24183         (crc_variant, crc_mode): New int attributes.
24184         * doc/aarch64-acle-intrinsics.texi: New file.
24185         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
24186         Include aarch64-acle-intrinsics.texi.
24187
24188 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
24189
24190         * tree-vect-data-refs.c (vect_grouped_store_supported): New
24191         check for stores group of length 3.
24192         (vect_permute_store_chain): New permutations for stores group of
24193         length 3.
24194         * tree-vect-stmts.c (vect_model_store_cost): Change cost
24195         of vec_perm_shuffle for the new permutations.
24196
24197 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
24198
24199         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
24200         table rewriting temporarily on targets not supporting ONE_ONLY.
24201
24202 2014-06-11  Richard Biener  <rguenther@suse.de>
24203
24204         PR middle-end/61437
24205         Revert
24206         2014-06-04  Richard Biener  <rguenther@suse.de>
24207
24208         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
24209         TREE_PUBLIC and DECL_EXTERNAL decls.
24210
24211 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
24212
24213         * varasm.c (set_implicit_section): New function.
24214         (resolve_unique_section): Use it to set implicit section
24215         for aliases, too.
24216         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
24217         (default_function_section): Likewise.
24218         (decl_binds_to_current_def_p): Constify argument.
24219         * varasm.h (decl_binds_to_current_def_p): Update prototype.
24220         * asan.c (asan_protect_global): Use
24221         symtab_get_node (decl)->implicit_section.
24222         * symtab.c (dump_symtab_base): Dump implicit sections.
24223         (verify_symtab_base): Verify sanity of sectoins and comdats.
24224         (symtab_resolve_alias): Alias share the section of its target.
24225         (set_section_1): New function.
24226         (symtab_node::set_section): Move here, recurse to aliases.
24227         (verify_symtab): Check for duplicated symtab lists.
24228         * tree-core.h (implicit_section_name_p): Remove.
24229         * tree-vect-data-refs.c: Include varasm.h.
24230         (vect_can_force_dr_alignment_p): Fix conditional on when
24231         decl bints to current definition; use
24232         symtab_get_node (decl)->implicit_section.
24233         * cgraph.c (cgraph_make_node_local_1): Fix section set.
24234         * cgraph.h (struct symtab_node): Add implicit_section.
24235         (set_section): Rename to ...
24236         (set_section_for_node): ... this one.
24237         (set_section): Declare.
24238         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
24239         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24240         input_overwrite_node, input_varpool_node): Stream implicit_section.
24241         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
24242         removal; it will fail in LTO.
24243
24244 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24245
24246         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
24247         Change second alternative type to f_mcr.
24248         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
24249         and 12th alternatives' types to f_mcr and f_mrc.
24250         (*movdi_aarch64): Same for 12th and 13th alternatives.
24251         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
24252         (aarch64_movtilow_tilow): Change type to fmov.
24253
24254 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
24255
24256         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
24257         (aarch64_save_or_restore_callee_save_registers): Fix layout.
24258
24259 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24260
24261         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
24262         New expander.
24263         (aarch64_sqrdmulh_lane<mode>): Likewise.
24264         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
24265         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
24266         (aarch64_sqdmulh_laneq<mode>): New expander.
24267         (aarch64_sqrdmulh_laneq<mode>): Likewise.
24268         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
24269         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
24270         (aarch64_sqdmulh_lane<mode>): New expander.
24271         (aarch64_sqrdmulh_lane<mode>): Likewise.
24272         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
24273         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
24274         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
24275         (aarch64_sqdmlal_laneq<mode>): Likewise.
24276         (aarch64_sqdmlsl_lane<mode>): Likewise.
24277         (aarch64_sqdmlsl_laneq<mode>): Likewise.
24278         (aarch64_sqdmlal2_lane<mode>): Likewise.
24279         (aarch64_sqdmlal2_laneq<mode>): Likewise.
24280         (aarch64_sqdmlsl2_lane<mode>): Likewise.
24281         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
24282         (aarch64_sqdmull_lane<mode>): Likewise.
24283         (aarch64_sqdmull_laneq<mode>): Likewise.
24284         (aarch64_sqdmull2_lane<mode>): Likewise.
24285         (aarch64_sqdmull2_laneq<mode>): Likewise.
24286
24287 2014-06-10  Richard Biener  <rguenther@suse.de>
24288
24289         PR tree-optimization/61438
24290         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
24291         (eliminate_dom_walker::before_dom_children): Only try to inhibit
24292         insertion of IVs if running PRE.
24293         (eliminate): Adjust.
24294         (pass_pre::execute): Likewise.
24295         (pass_fre::execute): Likewise.
24296
24297 2014-06-10  Richard Biener  <rguenther@suse.de>
24298
24299         PR middle-end/61456
24300         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24301         Do not use the main variant for the type comparison.
24302         (ncr_compar): Likewise.
24303         (nonoverlapping_component_refs_p): Likewise.
24304
24305 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24306
24307         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
24308         REG_CFA_RESTORE mode.
24309
24310 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
24311
24312         * config/i386/i386.c (expand_vec_perm_pblendv): New.
24313         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
24314         expand_vec_perm_pblendv.
24315
24316 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24317
24318         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
24319         available.
24320         Simplify description of __crc32d and __crc32cd intrinsics.
24321         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
24322         availability.
24323
24324 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
24325
24326         PR lto/61334
24327         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
24328         * config.in: Regenerate.
24329         * configure: Likewise.
24330
24331 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
24332
24333         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
24334         and public vars.
24335         (intersect_static_var_sets): Remove.
24336         (propagate): Do not prune local statics.
24337
24338 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
24339
24340         PR fortran/60928
24341         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
24342         Set lastprivate_firstprivate even if omp_private_outer_ref
24343         langhook returns true.
24344         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
24345         langhook, call unshare_expr on new_var and call
24346         build_outer_var_ref to get the last argument.
24347
24348 2014-06-10  Marek Polacek  <polacek@redhat.com>
24349
24350         PR c/60988
24351         * doc/extend.texi: Add cindex for transparent_union.
24352
24353 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24354
24355         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
24356         init_symbolic_number ().
24357
24358 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
24359
24360         PR middle-end/61141
24361         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
24362         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
24363         (verify_rtl_sharing): Likewise.
24364
24365 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
24366
24367         PR c++/54442
24368         * tree.c (build_qualified_type): Use a canonical type for
24369         TYPE_CANONICAL.
24370
24371 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24372
24373         * config/arm/arm-modes.def: Remove XFmode.
24374
24375 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
24376
24377         PR target/61062
24378         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
24379         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
24380         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
24381         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
24382         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
24383         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
24384         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
24385         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
24386         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
24387
24388 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
24389
24390         * tree-core.h (tree_decl_with_vis): Remove section_name.
24391
24392 2014-06-09  Kito Cheng  <kito@0xlab.org>
24393
24394         * ira.c (ira): Don't call init_caller_save if LRA enabled
24395         since LRA use its own infrastructure to handle that.
24396
24397 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
24398
24399         * symtab.c (dump_symtab_base): Update dumping.
24400         (symtab_make_decl_local): Clear only DECL_COMDAT.
24401         * tree-vect-data-refs.c (Check that variable is static before
24402         tampering with sections.
24403         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
24404         (cgraph_create_virtual_clone): Likewise.
24405         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
24406         (decl_section_name, set_decl_section_name): New accessors.
24407         (find_decls_types_r): Do not walk section name
24408         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
24409         (decl_comdat_group, decl_comdat_group_id): Constify.
24410         (decl_section_name, set_decl_section_name): Update.
24411         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
24412         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
24413         (cgraph_make_node_local_1): Clear section and comdat group.
24414         * cgraph.h (set_comdat_group): Sanity check.
24415         (get_section, set_section): New.
24416         * ipa-comdats.c (ipa_comdats): Use get_section.
24417         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
24418         * lto-streamer-out.c: Do not follow section names.
24419         * c-family/c-common.c (handle_section_attribute): Update.
24420         * lto-cgraph.c (lto_output_node): Output section.
24421         (lto_output_varpool_node): Likewise.
24422         (read_comdat_group): Rename to ...
24423         (read_identifier): ... this one.
24424         (read_string_cst): New function.
24425         (input_node, input_varpool_node): Input section names.
24426         * tree-emutls.c (get_emutls_init_templ_addr): Update.
24427         (new_emutls_decl): Update.
24428         (secname_for_decl): Check section names only of static vars.
24429         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
24430         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
24431         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24432         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24433         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
24434         * config/mcore/mcore.c (mcore_unique_section): Likewise.
24435         * config/mips/mips.c (mips16_build_function_stub): Likewise.
24436         * config/v850/v850.c (v850_insert_attributes): Likewise.
24437         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
24438         Likewise.
24439         (h8300_handle_tiny_data_attribute): Likewise.
24440         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
24441         (bfin_handle_l2_attribute): Likewise.
24442
24443 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
24444
24445         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
24446         remove static initializer.
24447
24448 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
24449
24450         * varasm.c (use_blocks_for_decl_p): Check symbol table
24451         instead of alias attribute.
24452         (place_block_symbol): Recurse on aliases.
24453
24454 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
24455
24456         * ipa-visibility.c: Include varasm.h
24457         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
24458
24459 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
24460
24461         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
24462         outputting aliases.
24463
24464 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
24465
24466         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
24467         from test_insn into GGC space escape via SET_SRC.
24468
24469 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
24470
24471         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
24472         call statement, if any.
24473         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
24474         statements, if any.  Tidy up.
24475
24476 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24477
24478         PR target/61431
24479         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
24480         iterators, VSX_D that handles 64-bit types, and VSX_LE that
24481         handles swapping the two 64-bit double words on little endian
24482         systems.  Include V1TImode and optionally TImode in VSX_LE so that
24483         these types are properly swapped.  Change all of the insns and
24484         splits that do the 64-bit swaps to use VSX_LE.
24485         (vsx_le_perm_load_<mode>): Likewise.
24486         (vsx_le_perm_store_<mode>): Likewise.
24487         (splitters for little endian memory operations): Likewise.
24488         (vsx_xxpermdi2_le_<mode>): Likewise.
24489         (vsx_lxvd2x2_le_<mode>): Likewise.
24490         (vsx_stxvd2x2_le_<mode>): Likewise.
24491
24492 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
24493
24494         PR target/61423
24495         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
24496         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
24497         and corresponding splitters.  Zero extend general register
24498         or memory input operand to XMM temporary.  Enable for
24499         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
24500         (floatunssi<mode>2): Update expander predicate.
24501
24502 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24503
24504         PR rtl-optimization/61325
24505         * lra-constraints.c (process_address_1): Check scale equal to one
24506         to prevent transformation: base + scale * index => base + new_reg.
24507
24508 2014-06-06  Richard Biener  <rguenther@suse.de>
24509
24510         PR tree-optimization/59299
24511         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
24512         a def operand.
24513         (nearest_common_dominator_of_uses): Likewise.
24514         (statement_sink_location): Adjust.  Support sinking loads.
24515
24516 2014-06-06  Martin Jambor  <mjambor@suse.cz>
24517
24518         * ipa-prop.c (get_place_in_agg_contents_list): New function.
24519         (build_agg_jump_func_from_list): Likewise.
24520         (determine_known_aggregate_parts): Renamed to
24521         determine_locally_known_aggregate_parts.  Moved some functionality
24522         to the two functions above, removed bound checks.
24523
24524 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
24525
24526         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
24527         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
24528         (aarch64_progress_pointer): Likewise.
24529         (aarch64_copy_one_part_and_move_pointers): Likewise.
24530         (aarch64_expand_movmen): Likewise.
24531         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
24532         * config/aarch64/aarch64.md (movmem<mode>): New.
24533
24534 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
24535
24536         * targhooks.c (default_add_stmt_cost): Call target specific
24537         hook instead of default one.
24538
24539 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24540
24541         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
24542         endianness instead of host endianness.
24543         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
24544         comments.
24545
24546 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24547
24548         PR debug/53927
24549         * function.c (instantiate_decls): Process the saved static chain.
24550         (expand_function_start): If not optimizing, save the static chain
24551         onto the stack.
24552         * tree-nested.c (convert_all_function_calls): Always create the static
24553         chain for nested functions if not optimizing.
24554
24555 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24556
24557         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
24558
24559 2014-06-06  Richard Biener  <rguenther@suse.de>
24560
24561         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
24562         (construct_init_block): Likewise.
24563         (construct_exit_block): Likewise.
24564         (pass_expand::execute): Likewise.
24565         * graphite.c (graphite_transforms): Replace check for current_loops
24566         with a check for > 1 loops.
24567         (pass_graphite_transforms::execute): Adjust.
24568         * ipa-split.c (split_function): Remove check for current_loops.
24569         * omp-low.c (expand_parallel_call): Likewise.
24570         (expand_omp_for_init_counts): Likewise.
24571         (extract_omp_for_update_vars): Likewise.
24572         (expand_omp_for_generic): Likewise.
24573         (expand_omp_sections): Likewise.
24574         (expand_omp_target): Likewise.
24575         * tracer.c (tail_duplicate): Likewise.
24576         (pass_tracer::execute): Likewise.
24577         * trans-mem.c (expand_transaction): Likewise.
24578         * tree-complex.c (expand_complex_div_wide): Likewise.
24579         * tree-eh.c (lower_resx): Likewise.
24580         (cleanup_empty_eh_merge_phis): Likewise.
24581         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
24582         current_loops with a check for > 1 loops.
24583         (pass_predcom::execute): Adjust.
24584         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
24585         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
24586         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
24587         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
24588         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
24589         * tree-switch-conversion.c (process_switch): Likewise.
24590         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
24591         * tree-vrp.c (vrp_visit_phi_node): Likewise.
24592         (execute_vrp): Likewise.
24593         * ubsan.c (ubsan_expand_null_ifn): Likewise.
24594
24595 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24596
24597         * rtl.h (insn_location): Declare.
24598         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
24599         with UNKNOWN_LOCATION.
24600         * emit-rtl.c (insn_location): New function.
24601         * final.c (notice_source_line): Check that the instruction has a
24602         location before retrieving it and use insn_location.
24603         * modulo-sched.c (loop_single_full_bb_p): Likewise.
24604         * print-rtl.c (print_rtx): Likewise.
24605
24606 2014-06-06  Richard Biener  <rguenther@suse.de>
24607
24608         * passes.def: Move 2nd VRP pass before phi-only-cprop.
24609
24610 2014-06-06  Christian Bruel  <christian.bruel@st.com>
24611
24612         PR tree-optimization/43934
24613         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
24614         cost.
24615
24616 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
24617
24618         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
24619         return NO_REGS for extra address and memory constraints.  Handle
24620         operands that match (or are equivalent to something that matches)
24621         extra constant constraints.  Ignore other non-register operands.
24622
24623 2014-06-06  Alan Modra  <amodra@gmail.com>
24624
24625         PR target/61300
24626         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
24627         * doc/tm.texi: Regenerate.
24628         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
24629         Use throughout in place of REG_PARM_STACK_SPACE.
24630         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
24631         "incoming" param.  Pass to rs6000_function_parms_need_stack.
24632         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
24633         prototype_p when incoming.  Use function decl when incoming
24634         to handle K&R style functions.
24635         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
24636         (INCOMING_REG_PARM_STACK_SPACE): Define.
24637
24638 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24639
24640         PR target/52472
24641         * cfgexpand.c (expand_debug_expr): Use address space of nested
24642         TREE_TYPE for ADDR_EXPR and MEM_REF.
24643
24644 2014-06-05  Jeff Law  <law@redhat.com>
24645
24646         PR tree-optimization/61289
24647         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
24648         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
24649         looking for those which match LHS.  All callers changed.
24650         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
24651         parameters and code which manipulated them.  All callers changed.
24652         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
24653         and DST_MAP parameters.  Simplify invalidation code by just calling
24654         invalidate_equivalences.  All callers changed.
24655         (thread_across_edge): Simplify now that we don't need to maintain
24656         the map of equivalences to invalidate.
24657
24658 2014-06-05  Kai Tietz  <ktietz@redhat.com>
24659             Richard Henderson  <rth@redhat.com>
24660
24661         PR target/46219
24662         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
24663         checking for !TARGET_X32.
24664         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
24665         (sibcall_intern): New define_insn, plus required peepholes.
24666         (sibcall_pop_intern): Likewise.
24667         (sibcall_value_intern): Likewise.
24668         (sibcall_value_pop_intern): Likewise.
24669
24670 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
24671
24672         * tree-inline.c (tree_function_versioning): Check DF info existence
24673         before accessing it.
24674
24675 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24676
24677         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
24678         frame_size.
24679         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
24680         aarch64_frame hard_fp_offset and frame_size.
24681         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
24682         frame_size; remove original_frame_size.
24683         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
24684         (aarch64_initial_elimination_offset): Remove frame_size and
24685         offset.  Use aarch64_frame frame_size.
24686
24687 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24688             Jiong Wang  <jiong.wang@arm.com>
24689             Renlin  <renlin.li@arm.com>
24690
24691         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
24692         initialization of R30 offset.  Update offset.  Iterate core
24693         regisers upto X30.  Remove X29, X30 specific code.
24694
24695 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24696             Jiong Wang  <jiong.wang@arm.com>
24697
24698         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
24699         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
24700         (aarch64_register_saved_on_entry): Adjust test.
24701
24702 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24703
24704         * config/aarch64/aarch64.h (machine_function): Move
24705         saved_varargs_size from here...
24706         (aarch64_frame): ... to here.
24707
24708         * config/aarch64/aarch64.c (aarch64_expand_prologue)
24709         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
24710         (aarch64_initial_elimination_offset)
24711         (aarch64_setup_incoming_varargs): Adjust location of
24712         saved_varargs_size.
24713
24714 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24715
24716         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
24717         layout comment.
24718
24719 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
24720             Prachi Godbole  <Prachi.Godbole@imgtec.com>
24721
24722         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
24723         mips32r5 entry to use PROCESSOR_P5600.
24724         * config/mips/mips-tables.opt: Regenerate.
24725         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
24726         * config/mips/mips.c (mips_fmadd_bypass): New function.
24727         (mips_rtx_cost_data): Add costs for p5600.
24728         (mips_issue_rate): Add support for p5600.
24729         (mips_multipass_dfa_lookahead): Likewise.
24730         * config/mips/mips.h (TUNE_P5600): New define.
24731         (TUNE_MACC_CHAINS): Add TUNE_P5600.
24732         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
24733         * config/mips/mips.md: Include p5600.md.
24734         (processor): Add p5600.
24735         * config/mips/p5600.md: New file.
24736
24737 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
24738
24739         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
24740         * config/i386/predicates.md (palignr_operand): New.
24741         Indicates if permutation is suitable for palignr instruction.
24742
24743 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
24744
24745         PR tree-optimization/61319
24746         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
24747         stmt belongs to loop.
24748
24749 2014-06-05  Richard Biener  <rguenther@suse.de>
24750
24751         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
24752         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
24753         (lookup_tmp_var): Adjust.
24754         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
24755
24756 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24757
24758         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
24759
24760 2014-06-05  Marek Polacek  <polacek@redhat.com>
24761
24762         PR c/49706
24763         * doc/invoke.texi: Document -Wlogical-not-parentheses.
24764
24765 2014-06-04  Tom de Vries  <tom@codesourcery.com>
24766
24767         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
24768         CONST_INT.
24769
24770 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
24771
24772         PR tree-optimization/61385
24773         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
24774
24775 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
24776
24777         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
24778         changed to use fatal_error.
24779         (main): Ensure lto_wrapper_cleanup is run atexit.
24780
24781 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
24782
24783         * lra-constraints.c (valid_address_p): Move earlier in file.
24784         (address_eliminator): New structure.
24785         (satisfies_memory_constraint_p): New function.
24786         (satisfies_address_constraint_p): Likewise.
24787         (process_alt_operands, process_address, curr_insn_transform): Use them.
24788
24789 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
24790
24791         * lra-int.h (lra_static_insn_data): Make operand_alternative a
24792         const pointer.
24793         (target_lra_int, default_target_lra_int, this_target_lra_int)
24794         (op_alt_data): Delete.
24795         * lra.h (lra_init): Delete.
24796         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
24797         (init_insn_code_data_once): Remove op_alt_data handling.
24798         (finish_insn_code_data_once): Likewise.
24799         (init_op_alt_data): Delete.
24800         (get_static_insn_data): Initialize operand_alternative to null.
24801         (free_insn_recog_data): Cast operand_alternative before freeing it.
24802         (setup_operand_alternative): Take the operand_alternative as
24803         parameter and assume it isn't already cached in the static
24804         insn data.
24805         (lra_set_insn_recog_data): Update accordingly.
24806         (lra_init): Delete.
24807         * ira.c (ira_init): Don't call lra_init.
24808         * target-globals.h (this_target_lra_int): Declare.
24809         (target_globals): Remove lra_int.
24810         (restore_target_globals): Update accordingly.
24811         * target-globals.c: Don't include lra-int.h.
24812         (default_target_globals, save_target_globals): Remove lra_int.
24813
24814 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
24815
24816         * recog.h (operand_alternative): Convert reg_class, reject,
24817         matched and matches into bitfields.
24818         (preprocess_constraints): New overload.
24819         (preprocess_insn_constraints): New function.
24820         (preprocess_constraints): Take the insn as parameter.
24821         (recog_op_alt): Change into a pointer.
24822         (target_recog): Add x_op_alt.
24823         * recog.c (asm_op_alt): New variable.
24824         (recog_op_alt): Change into a pointer.
24825         (preprocess_constraints): New overload, replacing the old function
24826         definition with one that doesn't use global state.
24827         (preprocess_insn_constraints): New function.
24828         (preprocess_constraints): Use them.  Take the insn as parameter.
24829         Use asm_op_alt for asms.
24830         (recog_init): Free existing x_op_alt entries.
24831         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
24832         pointer const.
24833         (make_early_clobber_and_input_conflicts): Likewise.
24834         (process_bb_node_lives): Pass the insn to process_constraints.
24835         * reg-stack.c (check_asm_stack_operands): Likewise.
24836         (subst_asm_stack_regs): Likewise.
24837         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
24838         * regrename.c (build_def_use): Likewise.
24839         * sched-deps.c (sched_analyze_insn): Likewise.
24840         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
24841         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
24842         (note_invalid_constants): Likewise.
24843         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
24844         (ix86_legitimate_combined_insn): Make operand_alternative pointer
24845         const.
24846
24847 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
24848
24849         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
24850         * ira-lives.c (check_and_make_def_conflict): Check for disabled
24851         alternatives.
24852         (make_early_clobber_and_input_conflicts): Likewise.
24853         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
24854
24855 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
24856
24857         * recog.h (alternative_class): New function.
24858         (which_op_alt): Return a const recog_op_alt.
24859         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
24860         (subst_asm_stack_regs): Likewise.
24861         * config/arm/arm.c (note_invalid_constants): Likewise.
24862         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
24863         the operand_alternative; use alternative class instead.
24864         * sel-sched.c (get_reg_class): Likewise.
24865         * regrename.c (build_def_use): Likewise.
24866         (hide_operands, restore_operands, record_out_operands): Update type
24867         accordingly.
24868
24869 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
24870
24871         * recog.h (recog_op_alt): Convert to a flat array.
24872         (which_op_alt): New function.
24873         * recog.c (recog_op_alt): Convert to a flat array.
24874         (preprocess_constraints): Update accordingly, grouping all
24875         operands of the same alternative together, rather than the
24876         other way around.
24877         * ira-lives.c (check_and_make_def_conflict): Likewise.
24878         (make_early_clobber_and_input_conflicts): Likewise.
24879         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
24880         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
24881         (subst_asm_stack_regs): Likewise.
24882         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
24883         * regrename.c (hide_operands, record_out_operands): Likewise.
24884         (build_def_use): Likewise.
24885         * sel-sched.c (get_reg_class): Likewise.
24886         * config/arm/arm.c (note_invalid_constants): Likewise.
24887
24888 2014-06-04  Jason Merrill  <jason@redhat.com>
24889
24890         PR c++/51253
24891         PR c++/61382
24892         * gimplify.c (gimplify_arg): Non-static.
24893         * gimplify.h: Declare it.
24894
24895 2014-06-04  Richard Biener  <rguenther@suse.de>
24896
24897         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
24898         TREE_PUBLIC and DECL_EXTERNAL decls.
24899
24900 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
24901
24902         * regcprop.c (copyprop_hardreg_forward_1): Account for
24903         HARD_REGNO_CALL_PART_CLOBBERED.
24904
24905 2014-06-04  Richard Biener  <rguenther@suse.de>
24906
24907         * configure.ac: Check whether the underlying type of int64_t
24908         is long or long long.
24909         * configure: Regenerate.
24910         * config.in: Likewise.
24911         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
24912         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
24913
24914 2014-06-04  Richard Biener  <rguenther@suse.de>
24915
24916         PR tree-optimization/60098
24917         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
24918         we hit a kill.
24919         (dse_optimize_stmt): Simplify, now that we found a kill
24920         earlier.
24921
24922 2014-06-04  Richard Biener  <rguenther@suse.de>
24923
24924         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
24925         of accesses with non-invariant address.
24926
24927 2014-06-04  Martin Liska  <mliska@suse.cz>
24928
24929         * cgraph.h (cgraph_make_wrapper): New function introduced.
24930         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
24931         * ipa-inline.h (inline_analyze_function): The function is global.
24932         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
24933
24934 2014-06-04  Martin Liska  <mliska@suse.cz>
24935
24936         * tree.h (private_lookup_attribute_starting): New function.
24937         (lookup_attribute_starting): Likewise.
24938         * tree.c (private_lookup_attribute_starting): Likewise.
24939
24940 2014-06-04  Martin Liska  <mliska@suse.cz>
24941
24942         * cgraph.h (expand_thunk): New argument added.
24943         (address_taken_from_non_vtable_p): New global function.
24944         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
24945         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
24946         * cgraphunit.c (analyze_function): Likewise.
24947         (assemble_thunks_and_aliases): Argument added to call.
24948         (expand_thunk): New argument forces to produce GIMPLE thunk.
24949
24950 2014-06-04  Martin Liska  <mliska@suse.cz>
24951
24952         * coverage.h (coverage_compute_cfg_checksum): Argument added.
24953         * coverage.c (coverage_compute_cfg_checksum): Likewise.
24954         * profile.c (branch_prob): Likewise.
24955
24956 2014-06-04  Martin Jambor  <mjambor@suse.cz>
24957
24958         PR ipa/61340
24959         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
24960         handler for switch on an ipa_ref_use enum.
24961         * ipa-reference.c (analyze_function): Likewise.
24962
24963 2014-06-04  Kai Tietz  <ktietz@redhat.com>
24964
24965         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
24966         from old call-instruction.
24967
24968 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
24969
24970         * config/aarch64/aarch64.c (aarch64_classify_address)
24971         (aarch64_legitimize_reload_address): Support full addressing modes
24972         for vector modes.
24973         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
24974         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
24975
24976 2014-06-03  Andrew Pinski  <apinski@cavium.com>
24977
24978         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
24979         for OP0.
24980
24981 2014-06-03  Andrew Pinski  <apinski@cavium.com>
24982
24983         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
24984         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
24985
24986 2014-06-03  Kai Tietz  <ktietz@redhat.com>
24987
24988         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
24989         for 64-bit ms-abi.
24990
24991 2014-06-03  Dehao Chen  <dehao@google.com>
24992
24993         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
24994         the same loop.
24995
24996 2014-06-03  Marek Polacek  <polacek@redhat.com>
24997
24998         PR c/60439
24999         * doc/invoke.texi: Document -Wswitch-bool.
25000         * function.c (stack_protect_epilogue): Cast controlling expression of
25001         the switch to int.
25002         * gengtype.c (walk_type): Generate switch expression with its
25003         controlling expression cast to int.
25004
25005 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
25006
25007         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
25008         and attiny841.
25009         * config/avr/avr-tables.opt: Regenerate.
25010         * config/avr/t-multilib: Regenerate.
25011         * doc/avr-mmcu.texi: Regenerate.
25012
25013 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
25014             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
25015
25016         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
25017         (ata6617c, ata664251): Add new avr35 devices.
25018         (ata6612c): Add new avr4 device.
25019         (ata6613c, ata6614q): Add new avr5 devices.
25020         * config/avr/avr-tables.opt: Regenerate.
25021         * config/avr/t-multilib: Regenerate.
25022         * doc/avr-mmcu.texi: Regenerate.
25023
25024 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
25025
25026         * gcc/config/aarch64/aarch64-builtins.c
25027         (aarch64_types_binop_ssu_qualifiers): New static data.
25028         (TYPES_BINOP_SSU): Define.
25029         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
25030         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
25031         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
25032         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
25033         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
25034         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
25035         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
25036         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
25037         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
25038         suffix to builtin function name, remove cast.
25039         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
25040         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
25041         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
25042
25043 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
25044
25045         * gcc/config/aarch64/aarch64-builtins.c
25046         (aarch64_types_binop_uus_qualifiers,
25047         aarch64_types_shift_to_unsigned_qualifiers,
25048         aarch64_types_unsigned_shiftacc_qualifiers): Define.
25049         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
25050         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
25051         sqshlu_n, uqshl_n): Update qualifiers.
25052         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
25053         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
25054         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
25055         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
25056         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
25057         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
25058         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
25059         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
25060         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
25061         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
25062         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
25063         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
25064         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
25065         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
25066         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
25067         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
25068         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
25069         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
25070         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
25071         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
25072         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
25073         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
25074         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
25075         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
25076         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
25077         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
25078         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
25079
25080 2014-06-03  Teresa Johnson  <tejohnson@google.com>
25081
25082         * tree-sra.c (modify_function): Record caller nodes after rebuild.
25083
25084 2014-06-02  Jason Merrill  <jason@redhat.com>
25085
25086         PR c++/61020
25087         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
25088
25089 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
25090
25091         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
25092         location == 0.
25093
25094 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
25095
25096         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
25097         New pattern.
25098         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
25099         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
25100         * config/aarch64/iterators.md (REVERSE): New iterator.
25101         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
25102         (rev_op): New int_attribute.
25103         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
25104         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
25105         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
25106         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
25107         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
25108         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
25109         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
25110         Replace temporary __asm__ with __builtin_shuffle.
25111
25112 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
25113
25114         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
25115         mips64r5.
25116         * config/mips/mips-tables.opt: Regenerate.
25117         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
25118         to use mips_isa_rev rather than ISA_MIPS32R2.
25119         * config/mips/mips.h (ISA_MIPS32R3): New define.
25120         (ISA_MIPS32R5): New define.
25121         (ISA_MIPS64R3): New define.
25122         (ISA_MIPS64R5): New define.
25123         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
25124         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
25125         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
25126         and mips64r5.
25127         (MIPS_ISA_SYNCI_SPEC): Likewise.
25128         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
25129         (LINK_SPEC): Added mips32r3 and mips32r5.
25130         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
25131         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
25132         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
25133         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
25134         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
25135         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
25136         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
25137
25138 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
25139
25140         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
25141         options.
25142         * config/mips/mips.opt (mxpa): New option.
25143         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
25144         assembler.
25145
25146 2014-06-03  Martin Jambor  <mjambor@suse.cz>
25147
25148         PR ipa/61160
25149         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
25150         thunks.
25151
25152 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25153
25154         PR tree-optimization/61328
25155         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
25156         initialization from find_bswap_or_nop_1.
25157         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
25158         in source_expr2 before using the size value the function sets. Also
25159         make use of init_symbolic_number () in both the old place and
25160         find_bswap_or_nop_load () to avoid reading uninitialized memory when
25161         doing recursion in the GIMPLE_BINARY_RHS case.
25162
25163 2014-06-03  Richard Biener  <rguenther@suse.de>
25164
25165         PR tree-optimization/61383
25166         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
25167         stmts can't trap.
25168
25169 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
25170
25171         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
25172         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
25173         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
25174         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
25175         in this file.
25176         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
25177         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
25178         * system.h: ...here and make it unconditional.
25179         * target.def (conditional_register_usage): Mention
25180         define_register_constraint instead of old-style constraint macros.
25181         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
25182         * doc/tm.texi: Regenerate.
25183         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
25184         protected by !USE_MD_CONSTRAINTS.
25185         * config/frv/frv.md: Remove quote from old version of documentation.
25186         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
25187         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
25188         CONST_DOUBLE_OK_FOR_LETTER.
25189         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
25190
25191 2014-06-02  Andrew Pinski  <apinski@cavium.com>
25192
25193         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
25194         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
25195         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
25196         file whose name depends on -mabi= and -mbig-endian.
25197         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
25198         Handle LP64 better and handle ilp32 too.
25199         (MULTILIB_OPTIONS): Delete.
25200         (MULTILIB_DIRNAMES): Delete.
25201
25202 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
25203
25204         * expr.h: Remove prototypes of functions defined in builtins.c.
25205         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
25206         Remove prototypes of functions defined in builtins.c.
25207         * builtins.h: Update prototype list to include all exported functions.
25208         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
25209         no_c99_libc_has_function): Move to targhooks.c
25210         (build_string_literal, build_call_expr_loc_array,
25211         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
25212         to tree.c.
25213         (expand_builtin_object_size, fold_builtin_object_size): Make static.
25214         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
25215         no_c99_libc_has_function): Relocate from builtins.c.
25216         * tree.c: Include builtins.h.
25217         (build_call_expr_loc_array, build_call_expr_loc_vec,
25218         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
25219         from builtins.c.
25220         * fold-const.h (fold_fma): Move prototype to builtins.h.
25221         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
25222         * asan.c: Include builtins.h.
25223         * cfgexpand.c: Likewise.
25224         * convert.c: Likewise.
25225         * emit-rtl.c: Likewise.
25226         * except.c: Likewise.
25227         * expr.c: Likewise.
25228         * fold-const.c: Likewise.
25229         * gimple-fold.c: Likewise.
25230         * gimple-ssa-strength-reduction.c: Likewise.
25231         * gimplify.c: Likewise.
25232         * ipa-inline.c: Likewise.
25233         * ipa-prop.c: Likewise.
25234         * lto-streamer-out.c: Likewise.
25235         * stmt.c: Likewise.
25236         * tree-inline.c: Likewise.
25237         * tree-object-size.c: Likewise.
25238         * tree-sra.c: Likewise.
25239         * tree-ssa-ccp.c: Likewise.
25240         * tree-ssa-forwprop.c: Likewise.
25241         * tree-ssa-loop-ivcanon.c: Likewise.
25242         * tree-ssa-loop-ivopts.c: Likewise.
25243         * tree-ssa-math-opts.c: Likewise.
25244         * tree-ssa-reassoc.c: Likewise.
25245         * tree-ssa-threadedge.c: Likewise.
25246         * tree-streamer-in.c: Likewise.
25247         * tree-vect-data-refs.c: Likewise.
25248         * tree-vect-patterns.c: Likewise.
25249         * tree-vect-stmts.c: Likewise.
25250         * config/aarch64/aarch64.c: Likewise.
25251         * config/alpha/alpha.c: Likewise.
25252         * config/arc/arc.c: Likewise.
25253         * config/arm/arm.c: Likewise.
25254         * config/avr/avr.c: Likewise.
25255         * config/bfin/bfin.c: Likewise.
25256         * config/c6x/c6x.c: Likewise.
25257         * config/cr16/cr16.c: Likewise.
25258         * config/cris/cris.c: Likewise.
25259         * config/epiphany/epiphany.c: Likewise.
25260         * config/fr30/fr30.c: Likewise.
25261         * config/frv/frv.c: Likewise.
25262         * config/h8300/h8300.c: Likewise.
25263         * config/i386/i386.c: Likewise.
25264         * config/i386/winnt.c: Likewise.
25265         * config/ia64/ia64.c: Likewise.
25266         * config/iq2000/iq2000.c: Likewise.
25267         * config/lm32/lm32.c: Likewise.
25268         * config/m32c/m32c.c: Likewise.
25269         * config/m32r/m32r.c: Likewise.
25270         * config/m68k/m68k.c: Likewise.
25271         * config/mcore/mcore.c: Likewise.
25272         * config/mep/mep.c: Likewise.
25273         * config/microblaze/microblaze.c: Likewise.
25274         * config/mips/mips.c: Likewise.
25275         * config/mmix/mmix.c: Likewise.
25276         * config/mn10300/mn10300.c: Likewise.
25277         * config/moxie/moxie.c: Likewise.
25278         * config/msp430/msp430.c: Likewise.
25279         * config/nds32/nds32.c: Likewise.
25280         * config/pa/pa.c: Likewise.
25281         * config/pdp11/pdp11.c: Likewise.
25282         * config/picochip/picochip.c: Likewise.
25283         * config/rl78/rl78.c: Likewise.
25284         * config/rs6000/rs6000.c: Likewise.
25285         * config/rx/rx.c: Likewise.
25286         * config/s390/s390.c: Likewise.
25287         * config/score/score.c: Likewise.
25288         * config/sh/sh.c: Likewise.
25289         * config/sparc/sparc.c: Likewise.
25290         * config/spu/spu.c: Likewise.
25291         * config/stormy16/stormy16.c: Likewise.
25292         * config/tilegx/tilegx.c: Likewise.
25293         * config/tilepro/tilepro.c: Likewise.
25294         * config/v850/v850.c: Likewise.
25295         * config/vax/vax.c: Likewise.
25296         * config/xtensa/xtensa.c: Likewise.
25297
25298 2014-06-02  Jeff Law  <law@redhat.com>
25299
25300         PR rtl-optimization/61094
25301         * ree.c (combine_reaching_defs): Do not reextend an insn if it
25302         was marked as do_no_reextend.  If a copy is needed to eliminate
25303         an extension, then mark it as do_not_reextend.
25304
25305 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25306
25307         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
25308
25309 2014-06-02  Richard Henderson  <rth@redhat.com>
25310
25311         PR target/61336
25312         * config/alpha/alpha.c (print_operand_address): Allow symbolic
25313         addresses inside asms.  Use output_operand_lossage instead of
25314         gcc_unreachable.
25315
25316 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
25317
25318         PR target/61239
25319         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
25320         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
25321
25322 2014-06-02  Tom de Vries  <tom@codesourcery.com>
25323
25324         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
25325         case that x has VOIDmode.
25326
25327 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
25328
25329         * varasm.c (copy_constant): Delete function.
25330         (build_constant_desc): Don't call it.
25331
25332 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25333
25334         PR target/61154
25335         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
25336         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
25337         with immediate_operand.
25338
25339 2014-06-02  Andreas Schwab  <schwab@suse.de>
25340
25341         * config/ia64/ia64.c
25342         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
25343         pending_data_specs first.
25344
25345 2014-06-02  Richard Biener  <rguenther@suse.de>
25346
25347         PR tree-optimization/61378
25348         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
25349         valueized_anything.
25350
25351 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
25352
25353         * config/i386/constraints.md (Bw): Rename from 'w'.
25354         (Bz): Rename from 'z'.
25355         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
25356
25357 2014-06-01  Kai Tietz  <ktietz@redhat.com>
25358
25359         PR target/61377
25360         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
25361         * config/i386/i386.md (sibcall_insn_operand): Use Bs
25362         instead of m constraint.
25363
25364 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
25365
25366         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
25367         a separate alternative where the scratch operand 2 is marked as
25368         early clobber.
25369
25370 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
25371
25372         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
25373         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
25374         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
25375         and __builtins_arm_get_fpscr.
25376         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
25377         __builtins_arm_get_fpscr.
25378         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
25379         __builtins_arm_ldfpscr.
25380         (arm_atomic_assign_expand_fenv): New function.
25381         * config/arm/vfp.md (set_fpscr): New pattern.
25382         (get_fpscr) : Likewise.
25383         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
25384         VUNSPEC_SET_FPSCR.
25385         * doc/extend.texi (AARCH64 Built-in Functions) : Document
25386         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
25387
25388 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
25389
25390         * asan.c (report_error_func): Add SLOW_P argument, use
25391         BUILT_IN_ASAN_*_N if set.
25392         (build_check_stmt): Likewise.
25393         (instrument_derefs): If T has insufficient alignment,
25394         force same handling as for odd sizes.
25395
25396         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
25397         BUILT_IN_ASAN_REPORT_STORE_N): New.
25398         * asan.c (struct asan_mem_ref): Change access_size type to
25399         HOST_WIDE_INT.
25400         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
25401         update_mem_ref_hash_table): Likewise.
25402         (asan_mem_ref_hasher::hash): Hash in a HWI.
25403         (report_error_func): Change size_in_bytes argument to HWI.
25404         Use *_N builtins if size_in_bytes is larger than 16 or not power of
25405         two.
25406         (build_shadow_mem_access): New function.
25407         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
25408         Handle size_in_bytes not power of two or larger than 16.
25409         (instrument_derefs): Don't give up if size_in_bytes is not
25410         power of two or is larger than 16.
25411
25412 2014-05-30  Kai Tietz  <ktietz@redhat.com>
25413
25414         PR target/60104
25415         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
25416         for sibling-tail-calls.
25417         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
25418         to its use.
25419         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
25420         (sibcall_insn_operand): Add check for sibcall_memory_operand.
25421
25422 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
25423
25424         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
25425         * config/avr/avr-tables.opt: Regenerate.
25426         * config/avr/t-multilib: Regenerate.
25427         * doc/avr-mmcu.texi: Regenerate.
25428
25429 2014-05-30  Ian Lance Taylor  <iant@google.com>
25430
25431         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
25432         target("sse").
25433
25434 2014-05-30  Tom de Vries  <tom@codesourcery.com>
25435
25436         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
25437         Redefine as true.
25438
25439 2014-05-30  Tom de Vries  <tom@codesourcery.com>
25440
25441         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
25442         * lra.c (initialize_lra_reg_info_element): Add init of
25443         actual_call_used_reg_set field.
25444         (lra): Call lra_create_live_ranges before lra_inheritance for
25445         -fuse-caller-save.
25446         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
25447         -fuse-caller-save.
25448         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
25449         instead of call_used_reg_set for -fuse-caller-save.
25450         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
25451
25452 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25453
25454         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
25455         to mov_imm.
25456         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
25457
25458 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
25459
25460         * ira.c (ira_get_dup_out_num): Check for output operands at
25461         the start of the loop.  Handle cases where an included alternative
25462         follows an excluded one.
25463
25464 2014-05-29  Mike Stump  <mikestump@comcast.net>
25465
25466         PR debug/61352
25467         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
25468         post ld passes when lto is used.
25469
25470 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
25471
25472         PR rtl-optimization/61325
25473         * lra-constraints.c (process_address): Rename to process_address_1.
25474         (process_address): New function.
25475
25476 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
25477
25478         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
25479         TYPES_BINOPV): New static data.
25480         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
25481         New builtin.
25482         * config/aarch64/aarch64-simd.md (aarch64_ext,
25483         aarch64_im_lane_boundsi): New patterns.
25484         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
25485         patterns for EXT.
25486         (aarch64_evpc_ext): New function.
25487
25488         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
25489
25490         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
25491         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
25492         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
25493         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
25494         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
25495
25496 2014-05-29  Tom de Vries  <tom@codesourcery.com>
25497
25498         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
25499
25500 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
25501             Richard Sandiford  <rdsandiford@googlemail.com>
25502
25503         * arm/iterators.md (shiftable_ops): New code iterator.
25504         (t2_binop0, arith_shift_insn): New code attributes.
25505         * arm/predicates.md (shift_nomul_operator): New predicate.
25506         * arm/arm.md (insn_enabled): Delete.
25507         (enabled): Remove insn_enabled test.
25508         (*arith_shiftsi): Delete.  Replace with ...
25509         (*<arith_shift_insn>_multsi): ... new pattern.
25510         (*<arith_shift_insn>_shiftsi): ... new pattern.
25511         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
25512
25513 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
25514             Tom de Vries  <tom@codesourcery.com>
25515
25516         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
25517         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
25518         clobber.
25519         (mips_split_call): Use POST_CALL_TMP_REG.
25520         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
25521
25522 2014-05-29  Tom de Vries  <tom@codesourcery.com>
25523
25524         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
25525         with #ifdef STACK_REGS.
25526
25527 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
25528
25529         * varasm.c (get_variable_section): Walk aliases.
25530         (place_block_symbol): Walk aliases.
25531
25532 2014-05-28  Tom de Vries  <tom@codesourcery.com>
25533
25534         Revert:
25535         2014-05-28  Tom de Vries  <tom@codesourcery.com>
25536
25537         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
25538         * lra.c (initialize_lra_reg_info_element): Add init of
25539         actual_call_used_reg_set field.
25540         (lra): Call lra_create_live_ranges before lra_inheritance for
25541         -fuse-caller-save.
25542         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
25543         -fuse-caller-save.
25544         * lra-constraints.c (need_for_call_save_p): Use
25545         actual_call_used_reg_set instead of call_used_reg_set for
25546         -fuse-caller-save.
25547         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
25548
25549 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
25550
25551         * doc/md.texi: Document that the % constraint character must
25552         be at the beginning of the string.
25553         * genoutput.c (validate_insn_alternatives): Check that '=',
25554         '+' and '%' only appear at the beginning of a constraint.
25555         * ira.c (commutative_constraint_p): Delete.
25556         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
25557         at the start of the string.
25558         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
25559         duplicate '='s.
25560         * config/arm/neon.md (bicdi3_neon): Likewise.
25561         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
25562         (slt_si, sltu_si): Likewise.
25563         * config/vax/vax.md (sbcdi3): Likewise.
25564         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
25565         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
25566         (mul64): Move '%' to beginning of constraint.
25567         * config/arm/arm.md (*xordi3_insn): Likewise.
25568         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
25569         (xorsi3): Likewise.
25570
25571 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
25572
25573         * doc/md.texi: Document the restrictions on the "enabled" attribute.
25574
25575 2014-05-28  Jason Merrill  <jason@redhat.com>
25576
25577         PR c++/47202
25578         * cgraph.h (symtab_node::get_comdat_group_id): New.
25579         * cgraphunit.c (analyze_functions): Call it.
25580         * symtab.c (dump_symtab_node): Likewise.
25581         * tree.c (decl_comdat_group_id): New.
25582         * tree.h: Declare it.
25583         * lto-streamer-out.c (write_symbol): Use it.
25584         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
25585
25586 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
25587
25588         PR bootstrap/PR61146
25589         * wide-int.cc: Do not include longlong.h when compiling with clang.
25590
25591 2014-05-28  Richard Biener  <rguenther@suse.de>
25592
25593         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
25594         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
25595         (vrp_visit_assignment_or_call): Print less vertical space.
25596         (vrp_visit_stmt): Likewise.
25597         (vrp_visit_phi_node): Likewise.  For a PHI argument with
25598         VR_VARYING range consider recording it as copy.
25599
25600 2014-05-28  Richard Biener  <rguenther@suse.de>
25601
25602         Revert
25603         2014-05-28  Richard Biener  <rguenther@suse.de>
25604
25605         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
25606
25607 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25608
25609         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
25610         sufficiently aligned and an offset is used at the same time.
25611         (expand_expr_real_1): Likewise.
25612
25613 2014-05-28  Richard Biener  <rguenther@suse.de>
25614
25615         PR middle-end/61045
25616         * fold-const.c (fold_comparison): When folding
25617         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
25618         the sign of the remaining constant operand stays the same.
25619
25620 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
25621
25622         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
25623         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
25624         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
25625         to the assembler.
25626         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
25627         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
25628         (m32bit-doubles) Likewise.
25629         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
25630         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
25631         option for RL78.
25632
25633 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25634
25635         * configure.ac ($gcc_cv_ld_clearcap): New test.
25636         * configure: Regenerate.
25637         * config.in: Regenerate.
25638         * config/sol2.opt (mclear-hwcap): New option.
25639         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
25640         * config/sol2-clearcap.map: Moved here from
25641         testsuite/gcc.target/i386/clearcap.map.
25642         * config/sol2-clearcapv2.map: Move here from
25643         gcc.target/i386/clearcapv2.map.
25644         * config/t-sol2 (install): Depend on install-clearcap-map.
25645         (install-clearcap-map): New target.
25646         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
25647         -mclear-hwcap.
25648
25649 2014-05-28  Richard Biener  <rguenther@suse.de>
25650
25651         * hwint.h (*_HALF_WIDE_INT*): Move to ...
25652         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
25653         ... here and remove the rest.
25654         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
25655
25656 2014-05-28  Richard Biener  <rguenther@suse.de>
25657
25658         PR tree-optimization/61335
25659         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
25660         new range fails, drop to varying.
25661
25662 2014-05-28  Olivier Hainque  <hainque@adacore.com>
25663
25664         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
25665         (CPP_SPEC): Add entry for -mcpu=8548.
25666         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
25667         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
25668
25669 2014-05-28  Tom de Vries  <tom@codesourcery.com>
25670
25671         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
25672         * lra.c (initialize_lra_reg_info_element): Add init of
25673         actual_call_used_reg_set field.
25674         (lra): Call lra_create_live_ranges before lra_inheritance for
25675         -fuse-caller-save.
25676         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
25677         -fuse-caller-save.
25678         * lra-constraints.c (need_for_call_save_p): Use
25679         actual_call_used_reg_set instead of call_used_reg_set for
25680         -fuse-caller-save.
25681         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
25682
25683 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
25684             Tom de Vries  <tom@codesourcery.com>
25685
25686         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
25687         to gccoptlist.
25688         (@item -fuse-caller-save): New item.
25689
25690 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
25691             Tom de Vries  <tom@codesourcery.com>
25692
25693         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
25694         OPT_fuse_caller_save.
25695
25696 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
25697             Tom de Vries  <tom@codesourcery.com>
25698
25699         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
25700         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
25701         get_call_reg_set_usage.
25702         * resource.c (mark_set_resources, mark_target_live_regs): Use
25703         get_call_reg_set_usage.
25704         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
25705         field.
25706         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
25707         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
25708         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
25709         * ira-build.c (ira_create_allocno): Init
25710         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
25711         (create_cap_allocno, propagate_allocno_info)
25712         (propagate_some_info_from_allocno)
25713         (copy_info_to_removed_store_destinations): Handle
25714         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
25715         * ira-costs.c (ira_tune_allocno_costs): Use
25716         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
25717
25718 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
25719             Tom de Vries  <tom@codesourcery.com>
25720
25721         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
25722         and function_used_regs_valid fields.
25723         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
25724         find_all_hard_reg_sets.
25725         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
25726         (get_call_reg_set_usage): New function.
25727         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
25728         * regs.h (get_call_reg_set_usage): Declare.
25729
25730 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
25731
25732         PR libgcc/61152
25733         * config/dbx.h (License): Add Runtime Library Exception.
25734         * config/newlib-stdint.h (License): Same.
25735         * config/rtems.h (License): Same
25736         * config/initfini-array.h (License): Same
25737         * config/v850/v850.h (License): Same.
25738         * config/v850/v850-opts.h (License): Same
25739         * config/v850/rtems.h (License): Same.
25740
25741 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
25742
25743         PR target/61044
25744         * doc/extend.texi (Local Labels): Note that label differences are
25745         not supported for AVR.
25746
25747 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
25748             Olivier Hainque  <hainque@adacore.com>
25749
25750         * rtl.h (set_for_reg_notes): Declare.
25751         * emit-rtl.c (set_for_reg_notes): New function.
25752         (set_unique_reg_note): Use it.
25753         * optabs.c (add_equal_note): Likewise
25754
25755 2014-05-27  Andrew Pinski  <apinski@cavium.com>
25756
25757         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
25758         Use <w> for the register in assembly template.
25759         (stack_protect_test): Use the mode of operands[0] for the result.
25760         (stack_protect_test_<mode>): Use <w> for the register
25761         in assembly template.
25762
25763 2014-05-27  DJ Delorie  <dj@redhat.com>
25764
25765         * config/rx/rx.c (add_vector_labels): New.
25766         (rx_output_function_prologue): Call it.
25767         (rx_handle_func_attribute): Don't require empty arguments.
25768         (rx_handle_vector_attribute): New.
25769         (rx_attribute_table): Add "vector" attribute.
25770         * doc/extend.texi (interrupt, vector): Document new/changed
25771         RX-specific attributes.
25772
25773         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
25774
25775 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
25776
25777         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
25778         predicate to detect a negative quotient.
25779
25780 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
25781
25782         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
25783         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
25784         Add X - Y CMP 0 to X CMP Y transformation.
25785         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
25786
25787 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
25788
25789         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
25790         before printing.
25791
25792 2014-05-27  Steve Ellcey  <sellcey@mips.com>
25793
25794         * config/mips/mips.c: Add include of cgraph.h.
25795
25796 2014-05-27  Richard Biener  <rguenther@suse.de>
25797
25798         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
25799
25800 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
25801
25802         PR libgcc/61152
25803         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
25804         * config/arm/arm-cores.def (License): Same.
25805         * config/arm/arm-opts.h (License): Same.
25806         * config/arm/aout.h (License): Same.
25807         * config/arm/bpabi.h (License): Same.
25808         * config/arm/elf.h (License): Same.
25809         * config/arm/linux-elf.h (License): Same.
25810         * config/arm/linux-gas.h (License): Same.
25811         * config/arm/netbsd-elf.h (License): Same.
25812         * config/arm/uclinux-eabi.h (License): Same.
25813         * config/arm/uclinux-elf.h (License): Same.
25814         * config/arm/vxworks.h (License): Same.
25815
25816 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25817
25818         * config/arm/neon.md (neon_bswap<mode>): New pattern.
25819         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
25820         (arm_init_neon_builtins): Handle NEON_BSWAP.
25821         Define required type nodes.
25822         (arm_expand_neon_builtin): Handle NEON_BSWAP.
25823         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
25824         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
25825         * config/arm/iterators.md (VDQHSD): New mode iterator.
25826
25827 2014-05-27  Richard Biener  <rguenther@suse.de>
25828
25829         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
25830         Try using literal operands when comparing value-ranges failed.
25831
25832 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
25833
25834         * ira.c (commutative_operand): Adjust for change to recog_data.
25835         [Missing from previous commit.]
25836
25837 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
25838
25839         * system.h (TEST_BIT): New macro.
25840         * recog.h (alternative_mask): New type.
25841         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
25842         (recog_data_d): Replace alternative_enabled_p array with
25843         enabled_alternatives.
25844         (target_recog): New structure.
25845         (default_target_recog, this_target_recog): Declare.
25846         (get_enabled_alternatives, recog_init): Likewise.
25847         * recog.c (default_target_recog, this_target_recog): New variables.
25848         (get_enabled_alternatives): New function.
25849         (extract_insn): Use it.
25850         (recog_init): New function.
25851         (preprocess_constraints, constrain_operands): Adjust for change to
25852         recog_data.
25853         * postreload.c (reload_cse_simplify_operands): Likewise.
25854         * reload.c (find_reloads): Likewise.
25855         * ira-costs.c (record_reg_classes): Likewise.
25856         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
25857         all alternatives after a disabled one would be skipped.
25858         (ira_implicitly_set_insn_hard_regs): Likewise.
25859         * ira.c (ira_setup_alts): Adjust for change to recog_data.
25860         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
25861         with enabled_alternatives.
25862         * lra.c (free_insn_recog_data): Update accordingly.
25863         (lra_update_insn_recog_data): Likewise.
25864         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
25865         * lra-constraints.c (process_alt_operands): Likewise.  Handle
25866         only_alternative as part of the enabled mask.
25867         * target-globals.h (this_target_recog): Declare.
25868         (target_globals): Add a recog field.
25869         (restore_target_globals): Restore this_target_recog.
25870         * target-globals.c: Include recog.h.
25871         (default_target_globals): Initialize recog field.
25872         (save_target_globals): Likewise.
25873         * reginfo.c (reinit_regs): Call recog_init.
25874         * toplev.c (backend_init_target): Likewise.
25875
25876 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
25877
25878         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
25879         rather than any named insn's code.
25880
25881 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
25882
25883         PR libgcc/61152
25884         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
25885         * config/arm/arm-cores.def (License): Same.
25886
25887 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
25888
25889         * tree.h (decl_comdat_group): Declare.
25890         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
25891         * tree.c (decl_comdat_group): Here.
25892
25893 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
25894
25895         PR rtl-optimization/61222
25896         * combine.c (simplify_shift_const_1): When moving a PLUS outside
25897         the shift, truncate the PLUS operand to the result mode.
25898
25899 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
25900
25901         PR target/61271
25902         * config/i386/i386.c (ix86_rtx_costs)
25903         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
25904         Fix condition.
25905
25906 2014-05-26  Martin Jambor  <mjambor@suse.cz>
25907
25908         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
25909         subreg uses.
25910
25911 2014-05-26  Richard Biener  <rguenther@suse.de>
25912
25913         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
25914         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
25915         Provide specializations.
25916         (wi::int_traits <HOST_WIDE_INT>,
25917         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
25918
25919 2014-05-26  Alan Modra  <amodra@gmail.com>
25920
25921         PR target/61098
25922         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
25923         params and return a bool.  Remove dead code.  Update comment.
25924         Assert we have a const_int source.  Remove bogus code from
25925         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
25926         handling of constants > 2G and reg_equal note, from..
25927         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
25928         return value.  Update comment.  If we can, use a new pseudo
25929         for intermediate calculations.
25930         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
25931         prototype.
25932         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
25933         call to rs6000_emit_set_const in splitter.
25934         (movdi_internal64+2, +3): Likewise.
25935
25936 2014-05-26  Richard Biener  <rguenther@suse.de>
25937
25938         * system.h: Define __STDC_FORMAT_MACROS before
25939         including inttypes.h.
25940         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
25941         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
25942         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
25943         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
25944         HOST_WIDEST_INT_C): Remove.
25945         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
25946         if C99 inttypes.h is not available.
25947         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
25948         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
25949         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
25950         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
25951         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
25952         (struct output_info): Likewise.
25953         (print_statistics): Adjust.
25954         (dump_bitmap_statistics): Likewise.
25955         * bt-load.c (migrate_btr_defs): Print with PRId64.
25956         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
25957         (MAX_SAFE_MULTIPLIER): Adjust.
25958         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
25959         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
25960         dump_cgraph_node): Likewise.
25961         * final.c (dump_basic_block_info): Likewise.
25962         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
25963         * gcov.c (format_gcov): Likewise.
25964         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
25965         for calculation.
25966         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
25967         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
25968         (inline_small_functions, dump_overall_stats, dump_inline_stats):
25969         Use PRId64 for dumping.
25970         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
25971         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
25972         (add_allocno_hard_regs): Adjust.
25973         * loop-doloop.c (doloop_modify): Print using PRId64.
25974         * loop-iv.c (inverse): Compute in uint64_t.
25975         (determine_max_iter, iv_number_of_iterations): Likewise.
25976         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
25977         Print using PRId64.
25978         * lto-streamer-out.c (write_symbol): Use uint64_t.
25979         * mcf.c (CAP_INFINITY): Use int64_t maximum.
25980         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
25981         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
25982         * modulo-sched.c (const_iteration_count): Use int64_t.
25983         (sms_schedule): Dump using PRId64.
25984         * predict.c (dump_prediction): Likewise.
25985         * pretty-print.h (pp_widest_integer): Remove.
25986         * profile.c (get_working_sets, is_edge_inconsistent,
25987         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
25988         * tree-pretty-print.c (pp_double_int): Remove case handling
25989         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
25990         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
25991         and adjust users.
25992         (pass_optimize_bswap::execute): Remove restriction on hosts.
25993         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
25994         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
25995         * tree.c (widest_int_cst_value): Remove.
25996         * tree.h (widest_int_cst_value): Likewise.
25997         * value-prof.c (dump_histogram_value): Print using PRId64.
25998         * gengtype.c (main): Also inject int64_t.
25999         * ggc-page.c (struct max_alignment): Use int64_t.
26000         * alloc-pool.c (struct allocation_object_def): Likewise.
26001         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
26002         for computation.
26003         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
26004         * doc/tm.texi: Regenerated.
26005         * gengtype-lex.l (IWORD): Handle [u]int64_t.
26006         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
26007         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
26008         mmix_output_register_setting): Use [u]int64_t in prototypes.
26009         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
26010         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
26011         mmix_output_octa, mmix_output_shifted_value): Adjust.
26012         (mmix_intval): Adjust.  Remove unreachable case.
26013         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
26014
26015 2014-05-26  Richard Biener  <rguenther@suse.de>
26016
26017         * configure.ac: Drop __int64 type check.  Insist that we
26018         found uint64_t and int64_t.
26019         * hwint.h (HOST_BITS_PER___INT64): Remove.
26020         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
26021         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
26022         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
26023         (HOST_WIDEST_FAST_INT): Remove __int64 case.
26024         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
26025         for dst_q_src_df_rms_cdt.
26026         * configure: Regenerate.
26027         * config.in: Likewise.
26028
26029 2014-05-26  Michael Tautschnig  <mt@debian.org>
26030
26031         PR target/61249
26032         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
26033         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
26034
26035 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26036
26037         PR rtl-optimization/61278
26038         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
26039
26040 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26041
26042         PR rtl-optimization/61220
26043         Part of PR rtl-optimization/61225
26044         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
26045         insn; skip split_edge for a block with only one successor.
26046
26047 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26048
26049         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
26050         for variables.
26051
26052 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26053
26054         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
26055         (update_vtable_references): New function.
26056         (function_and_variable_visibility): Rewrite also vtable initializers.
26057         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
26058
26059 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26060
26061         * ggc.h (ggc_grow): New function.
26062         * ggc-none.c (ggc_grow): New function.
26063         * ggc-page.c (ggc_grow): Likewise.
26064
26065 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26066
26067         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
26068         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
26069         comdat_can_be_unshared_p, cgraph_externally_visible_p,
26070         varpool_externally_visible_p, can_replace_by_local_alias,
26071         update_visibility_by_resolution_info, function_and_variable_visibility,
26072         pass_data_ipa_function_and_variable_visibility,
26073         make_pass_ipa_function_and_variable_visibility,
26074         whole_program_function_and_variable_visibility,
26075         pass_data_ipa_whole_program_visibility,
26076         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
26077         * cgraph.h (cgraph_local_node_p): Declare.
26078         * ipa-visibility.c: New file.
26079         * Makefile.in (OBJS): Add ipa-visiblity.o
26080
26081 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26082
26083         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
26084         that var decl is available.
26085
26086 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26087
26088         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
26089         symtab_node pointer.
26090         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
26091         (find_decls_types_r): Do not walk COMDAT_GROUP.
26092         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
26093         * varasm.c (make_decl_one_only): Use set_comdat_group;
26094         create node if needed.
26095         * ipa-inline-transform.c (save_inline_function_body): Update
26096         way we decl->symtab mapping.
26097         * symtab.c (symtab_hash, hash_node, eq_node
26098         symtab_insert_node_to_hashtable): Remove.
26099         (symtab_register_node): Update.
26100         (symtab_unregister_node): Update.
26101         (symtab_get_node): Reimplement as inline function.
26102         (symtab_add_to_same_comdat_group): Update.
26103         (symtab_dissolve_same_comdat_group_list): Update.
26104         (dump_symtab_base): Update.
26105         (verify_symtab_base): Update.
26106         (symtab_make_decl_local): Update.
26107         (fixup_same_cpp_alias_visibility): Update.
26108         (symtab_nonoverwritable_alias): Update.
26109         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
26110         * ipa.c (update_visibility_by_resolution_info): UPdate.
26111         * bb-reorder.c: Include cgraph.h
26112         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
26113         with comdat groups.
26114         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
26115         * cgraph.c (cgraph_get_create_node): Update.
26116         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
26117         and comdat_group_.
26118         (symtab_get_node): Make inline.
26119         (symtab_insert_node_to_hashtable): Remove.
26120         (symtab_can_be_discarded): Update.
26121         (decl_comdat_group): New function.
26122         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
26123         Update.
26124         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
26125         comdat group name.
26126         (read_comdat_group): New function.
26127         (input_node, input_varpool_node): Use it.
26128         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
26129         comdat groups.
26130         * mips.c (mips_start_unique_function): Likewise.
26131         (ix86_code_end): Likewise.
26132         (rs6000_code_end): Likweise.
26133         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
26134
26135 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26136
26137         * gengtype-state.c (fatal_reading_state): Bring offline.
26138         * optabs.c (widening_optab_handler): Bring offline.
26139         * optabs.h (widening_optab_handler): Likewise.
26140         * final.c (get_attr_length_1): Likewise.
26141
26142 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26143
26144         * sched-int.h (sd_iterator_cond): Manually tail recurse.
26145
26146 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26147
26148         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
26149         (ppc440-compare): Include shift with dot.
26150         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
26151         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
26152         without dot.
26153         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
26154         without dot.
26155         (e6500_sfx2): Include it.
26156         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
26157         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
26158         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
26159         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
26160         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
26161         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
26162         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
26163         *lshiftrt_internal1le, *lshiftrt_internal1be,
26164         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
26165         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
26166         *rotldi3_internal10le, *rotldi3_internal10be,
26167         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
26168         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
26169         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
26170         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
26171         define_insns): Use type "shift" in the appropriate alternatives.
26172
26173 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26174
26175         * config/rs6000/rs6000.md (type): Add "logical".  Delete
26176         "fast_compare".
26177         (dot): Adjust comment.
26178         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
26179         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
26180         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
26181         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
26182         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
26183         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
26184         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
26185         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
26186
26187         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
26188         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
26189         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
26190         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
26191         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
26192         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
26193         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
26194         * config/rs6000/8540.md (ppc8540_su): Adjust.
26195         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
26196         cell-cmp-microcoded): Adjust.
26197         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
26198         * config/rs6000/e500mc.md (e500mc_su): Adjust.
26199         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
26200         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
26201         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
26202         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
26203         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
26204         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
26205         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
26206         Adjust.
26207         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
26208         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
26209         Adjust.  Adjust comment.
26210         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
26211         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
26212
26213 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26214
26215         * config/rs6000/rs6000.md (type): Add "add".
26216         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
26217         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
26218         define_insns): Use it.
26219         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
26220
26221         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
26222         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
26223         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
26224         * config/rs6000/601.md (ppc601-integer): Adjust.
26225         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
26226         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
26227         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
26228         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
26229         * config/rs6000/8540.md (ppc8540_su): Adjust.
26230         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
26231         cell-cmp-microcoded): Adjust.
26232         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
26233         * config/rs6000/e500mc.md (e500mc_su): Adjust.
26234         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
26235         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
26236         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
26237         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
26238         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
26239         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
26240         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
26241         Adjust.
26242         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
26243         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
26244         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
26245         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
26246
26247 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26248
26249         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
26250         "delayed_compare", "var_delayed_compare".
26251         (var_shift): New attribute.
26252         (cell_micro): Adjust.
26253         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
26254         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
26255         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
26256         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
26257         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
26258         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
26259         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
26260         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
26261         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
26262         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26263         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
26264         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
26265         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
26266         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
26267         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
26268         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
26269         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
26270         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
26271         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
26272         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
26273         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
26274         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
26275         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
26276         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
26277         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
26278
26279         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
26280         * config/rs6000/440.md (ppc440-integer): Adjust.
26281         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
26282         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
26283         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
26284         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
26285         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
26286         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
26287         * config/rs6000/8540.md (ppc8540_su): Adjust.
26288         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
26289         cell-cmp-microcoded): Adjust.
26290         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
26291         * config/rs6000/e500mc.md (e500mc_su): Adjust.
26292         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
26293         e500mc64_delayed): Adjust.
26294         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
26295         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
26296         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
26297         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
26298         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
26299         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
26300         power6-delayed-compare, power6-var-delayed-compare): Adjust.
26301         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
26302         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
26303         Adjust comment.
26304         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
26305         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
26306
26307 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26308
26309         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
26310         (bits): New mode_attr.
26311         (idiv_ldiv): Delete mode_attr.
26312         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
26313         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
26314         rs6000_adjust_priority, is_nonpipeline_insn,
26315         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
26316
26317         * config/rs6000/40x.md (ppc403-idiv): Adjust.
26318         * config/rs6000/440.md (ppc440-idiv): Adjust.
26319         * config/rs6000/476.md (ppc476-idiv): Adjust.
26320         * config/rs6000/601.md (ppc601-idiv): Adjust.
26321         * config/rs6000/603.md (ppc603-idiv): Adjust.
26322         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
26323         ppc620-ldiv): Adjust.
26324         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
26325         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
26326         * config/rs6000/8540.md (ppc8540_divide): Adjust.
26327         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
26328         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
26329         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
26330         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
26331         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
26332         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
26333         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
26334         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
26335         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
26336         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
26337         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
26338         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
26339         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
26340         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
26341         * config/rs6000/titan.md (titan_fxu_div): Adjust.
26342
26343 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26344
26345         * config/rs6000/rs6000.md (type): Delete "insert_word",
26346         "insert_dword".  Add "insert".
26347         (size): Update comment.
26348         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
26349         insn_must_be_first_in_group): Adjust.
26350         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
26351         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
26352         *insvsi_internal6, insvdi_internal): Adjust.
26353
26354         * config/rs6000/40x.md (ppc403-integer): Adjust.
26355         * config/rs6000/440.md (ppc440-integer): Adjust.
26356         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
26357         * config/rs6000/601.md (ppc601-integer): Adjust.
26358         * config/rs6000/603.md (ppc603-integer): Adjust.
26359         * config/rs6000/6xx.md (ppc604-integer): Adjust.
26360         * config/rs6000/7450.md (ppc7450-integer): Adjust.
26361         * config/rs6000/7xx.md (ppc750-integer): Adjust.
26362         * config/rs6000/8540.md (ppc8540_su): Adjust.
26363         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
26364         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
26365         * config/rs6000/e500mc.md (e500mc_su): Adjust.
26366         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
26367         * config/rs6000/e5500.md (e5500_sfx): Adjust.
26368         * config/rs6000/e6500.md (e6500_sfx): Adjust.
26369         * config/rs6000/mpc.md (mpccore-integer): Adjust.
26370         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
26371         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
26372         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
26373         * config/rs6000/power7.md (power7-integer): Adjust.
26374         * config/rs6000/power8.md (power8-1cyc): Adjust.
26375         * config/rs6000/rs64.md (rs64a-integer): Adjust.
26376         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
26377
26378 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26379
26380         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
26381         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
26382         (size): New attribute.
26383         (dot): New attribute.
26384         (cell_micro): Adjust.
26385         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
26386         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
26387         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
26388         umuldi3_highpart): Adjust.
26389         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
26390         rs6000_adjust_priority, is_nonpipeline_insn,
26391         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
26392
26393         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
26394         ppc405-imul3): Adjust.
26395         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
26396         * config/rs6000/476.md (ppc476-imul): Adjust.
26397         * config/rs6000/601.md (ppc601-imul): Adjust.
26398         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
26399         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
26400         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
26401         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
26402         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
26403         Adjust.
26404         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
26405         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
26406         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
26407         cell-imul): Adjust.
26408         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
26409         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
26410         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
26411         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
26412         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
26413         * config/rs6000/mpc.md (mpccore-imul): Adjust.
26414         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
26415         power4-lmul, power4-imul, power4-imul3): Adjust.
26416         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
26417         power5-lmul, power5-imul, power5-imul3): Adjust.
26418         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
26419         power6-lmul, power6-imul, power6-imul3): Adjust.
26420         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
26421         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
26422
26423         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
26424         rs64a-lmul): Adjust.
26425         * config/rs6000/titan.md (titan_imul): Adjust.
26426
26427 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26428
26429         * config/rs6000/rs6000.md (type): Add new value "halfmul".
26430         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
26431         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
26432         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
26433         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
26434         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
26435         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
26436         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
26437         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
26438         * config/rs6000/titan.md: Delete nonsensical comment.
26439         (titan_imul): Add type imul3.
26440         (titan_mulhw): Remove type imul3; add type halfmul.
26441
26442 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26443
26444         * config/rs6000/rs6000.md (type): Reorder, reformat.
26445
26446 2014-05-23  Martin Jambor  <mjambor@suse.cz>
26447
26448         PR tree-optimization/53787
26449         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
26450         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
26451         analysis_done, update all uses.
26452         * ipa-prop.c: Include domwalk.h
26453         (param_analysis_info): Removed.
26454         (param_aa_status): New type.
26455         (ipa_bb_info): Likewise.
26456         (func_body_info): Likewise.
26457         (ipa_get_bb_info): New function.
26458         (aa_overwalked): Likewise.
26459         (find_dominating_aa_status): Likewise.
26460         (parm_bb_aa_status_for_bb): Likewise.
26461         (parm_preserved_before_stmt_p): Changed to use new param AA info.
26462         (load_from_unmodified_param): Accept func_body_info as a parameter
26463         instead of parms_ainfo.
26464         (parm_ref_data_preserved_p): Changed to use new param AA info.
26465         (parm_ref_data_pass_through_p): Likewise.
26466         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
26467         (compute_complex_assign_jump_func): Changed to use new param AA info.
26468         (compute_complex_ancestor_jump_func): Likewise.
26469         (ipa_compute_jump_functions_for_edge): Likewise.
26470         (ipa_compute_jump_functions): Removed.
26471         (ipa_compute_jump_functions_for_bb): New function.
26472         (ipa_analyze_indirect_call_uses): Likewise, moved variable
26473         declarations down.
26474         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
26475         and info, moved variable declarations down.
26476         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
26477         node and info.
26478         (ipa_analyze_stmt_uses): Likewise.
26479         (ipa_analyze_params_uses): Removed.
26480         (ipa_analyze_params_uses_in_bb): New function.
26481         (ipa_analyze_controlled_uses): Likewise.
26482         (free_ipa_bb_info): Likewise.
26483         (analysis_dom_walker): New class.
26484         (ipa_analyze_node): Handle node-specific forbidden analysis,
26485         initialize and free func_body_info, use dominator walker.
26486         (ipcp_modif_dom_walker): New class.
26487         (ipcp_transform_function): Create and free func_body_info, use
26488         ipcp_modif_dom_walker, moved a lot of functionality there.
26489
26490 2014-05-23  Marek Polacek  <polacek@redhat.com>
26491             Jakub Jelinek  <jakub@redhat.com>
26492
26493         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
26494         * gcc.c (sanitize_spec_function): Likewise.
26495         * convert.c (convert_to_integer): Include "ubsan.h".  Add
26496         floating-point to integer instrumentation.
26497         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
26498         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
26499         SANITIZE_NONDEFAULT.
26500         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
26501         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
26502         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
26503         * ubsan.c: Include "realmpfr.h" and "dfp.h".
26504         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
26505         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
26506         float/double/long double.
26507         (ubsan_instrument_float_cast): New function.
26508         * ubsan.h (ubsan_instrument_float_cast): Declare.
26509
26510 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
26511
26512         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
26513         predicate.
26514         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
26515         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
26516         Adjust for tailcalling through registers.
26517         * config/aarch64/aarch64.h (enum reg_class): New caller save
26518         register class.
26519         (REG_CLASS_NAMES): Likewise.
26520         (REG_CLASS_CONTENTS): Likewise.
26521         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
26522         Allow tailcalling without decls.
26523
26524 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
26525
26526         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
26527         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
26528
26529         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
26530         gsi, and variables v_* to v*.
26531
26532 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
26533
26534         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
26535
26536 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
26537
26538         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
26539         * omp-low.c: Update accordingly.
26540
26541         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
26542         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
26543         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
26544         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
26545         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
26546         GF_OMP_TARGET_KIND_UPDATE.
26547
26548         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
26549         Explicitly enumerate the expected region types.
26550
26551 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
26552
26553         PR other/56955
26554         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
26555         documentation; the old documentation didn't clearly state the
26556         constraints on the contents of the pointed-to storage.
26557
26558 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26559
26560         Fix bootstrap error on ia64
26561         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
26562         Return default value.
26563
26564 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26565
26566         PR tree-optimization/54733
26567         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
26568         (CMPNOP): Define.
26569         (find_bswap_or_nop_load): New.
26570         (find_bswap_1): Renamed to ...
26571         (find_bswap_or_nop_1): This. Also add support for memory source.
26572         (find_bswap): Renamed to ...
26573         (find_bswap_or_nop): This. Also add support for memory source and
26574         detection of bitwise operations equivalent to load in target
26575         endianness.
26576         (execute_optimize_bswap): Likewise. Also move its leading comment back
26577         in place and split statement transformation into ...
26578         (bswap_replace): This.
26579
26580 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
26581
26582         PR rtl-optimization/61215
26583         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
26584         simplify_gen_subreg until final substitution.
26585
26586 2014-05-23  Alan Modra  <amodra@gmail.com>
26587
26588         PR target/61231
26589         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
26590         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
26591         Use "Y" constraint rather than "m".
26592
26593 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
26594
26595         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
26596         define.
26597         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
26598         New function declaration.
26599         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
26600         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
26601         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
26602         (aarch64_init_builtins) : Initialize builtins
26603         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
26604         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
26605         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
26606         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
26607         and __builtins_aarch64_set_fpsr.
26608         (aarch64_atomic_assign_expand_fenv): New function.
26609         * config/aarch64/aarch64.md (set_fpcr): New pattern.
26610         (get_fpcr) : Likewise.
26611         (set_fpsr) : Likewise.
26612         (get_fpsr) : Likewise.
26613         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
26614         and UNSPECV_SET_FPSR.
26615         * doc/extend.texi (AARCH64 Built-in Functions) : Document
26616         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
26617         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
26618
26619 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
26620
26621         PR rtl-optimization/60969
26622         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
26623         constraints.  Set up mem cost for NO_REGS case.
26624
26625 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
26626
26627         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
26628
26629 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
26630
26631         * config/darwin.c: Include "lto-section-names.h".
26632         (LTO_SEGMENT_NAME): Don't define.
26633         * config/i386/winnt.c: Include "lto-section-names.h".
26634         * lto-streamer.c: Include "lto-section-names.h".
26635         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
26636         * lto-wrapper.c: Include "lto-section-names.h".
26637         (LTO_SECTION_NAME_PREFIX): Don't define.
26638         * lto-section-names.h: New file.
26639         * cgraphunit.c: Include "lto-section-names.h".
26640
26641 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
26642
26643         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
26644
26645 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
26646
26647         PR target/61208
26648         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
26649
26650 2014-05-22  Nick Clifton  <nickc@redhat.com>
26651
26652         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
26653
26654 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
26655
26656         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
26657         -> (T)A transformation to integer types.
26658
26659 2014-05-22  Teresa Johnson  <tejohnson@google.com>
26660
26661         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
26662         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
26663         (gcov_rewrite): Use gcov_nonruntime_assert.
26664         (gcov_open): Ditto.
26665         (gcov_write_words): Ditto.
26666         (gcov_write_length): Ditto.
26667         (gcov_read_words): Use gcov_nonruntime_assert, and remove
26668         gcc_assert from IN_LIBGCOV code.
26669         (gcov_read_summary): Use gcov_error to flag profile corruption.
26670         (gcov_sync): Use gcov_nonruntime_assert.
26671         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
26672         (gcov_histo_index): Use gcov_nonruntime_assert.
26673         (static void gcov_histogram_merge): Ditto.
26674         (compute_working_sets): Ditto.
26675         * gcov-io.h (gcov_nonruntime_assert): Define.
26676         (gcov_error): Define for !IN_LIBGCOV
26677
26678 2014-05-22  Richard Biener  <rguenther@suse.de>
26679
26680         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26681         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
26682         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
26683         and deallocation site.
26684         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26685         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
26686         passing through the incoming points-to set.
26687         (handle_lhs_call): Use flags argument instead of recomputing it.
26688         (find_func_aliases_for_call): Call handle_lhs_call with proper
26689         call return flags.
26690
26691 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
26692
26693         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
26694         all padding bits in REAL_VALUE_TYPE are cleared.
26695
26696 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26697
26698         Cleanup and improve multipass_dfa_lookahead_guard
26699         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
26700         (core2i7_first_cycle_multipass_begin,)
26701         (core2i7_first_cycle_multipass_issue,)
26702         (core2i7_first_cycle_multipass_backtrack): Update signature.
26703         * config/ia64/ia64.c
26704         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
26705         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
26706         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
26707         hook definition.
26708         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
26709         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
26710         values.
26711         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
26712         return values.
26713         * doc/tm.texi: Regenerate.
26714         * doc/tm.texi.in
26715         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
26716         * haifa-sched.c (ready_try): Make signed to allow negative values.
26717         (rebug_ready_list_1): Update.
26718         (choose_ready): Simplify.
26719         (sched_extend_ready_list): Update.
26720
26721 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26722
26723         Remove IA64 speculation tweaking flags
26724         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
26725         speculation tuning flags.
26726         (msched-prefer-non-data-spec-insns,)
26727         (msched-prefer-non-control-spec-insns): Obsolete options.
26728         * haifa-sched.c (choose_ready): Remove handling of
26729         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
26730         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
26731         and PREFER_NON_DATA_SPEC.
26732         * sel-sched.c (process_spec_exprs): Remove handling of
26733         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
26734
26735 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26736
26737         Improve scheduling debug output
26738         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
26739         (advance_one_cycle): Update.
26740         (schedule_insn, queue_to_ready): Add debug printouts.
26741         (debug_ready_list_1): New static function.
26742         (debug_ready_list): Update.
26743         (max_issue): Add debug printouts.
26744         (dump_insn_stream): New static function.
26745         (schedule_block): Use it.  Also better indent printouts.
26746
26747 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26748
26749         Fix sched_insn debug counter
26750         * haifa-sched.c (schedule_insn): Update.
26751         (struct haifa_saved_data): Add nonscheduled_insns_begin.
26752         (save_backtrack_point, restore_backtrack_point): Update.
26753         (first_nonscheduled_insn): New static function.
26754         (queue_to_ready, choose_ready): Use it.
26755         (schedule_block): Init nonscheduled_insns_begin.
26756         (sched_emit_insn): Update.
26757
26758
26759 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
26760
26761         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
26762         to GENERAL_REGS.
26763         (aarch64_secondary_reload) : LikeWise.
26764         (aarch64_class_max_nregs) : Remove CORE_REGS.
26765         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
26766         (REG_CLASS_NAMES) : Likewise.
26767         (REG_CLASS_CONTENTS) : LikeWise.
26768         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
26769
26770 2014-05-21  Guozhi Wei  <carrot@google.com>
26771
26772         PR target/61202
26773         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
26774         constraint.
26775         (vqdmulhq_n_s16): Likewise.
26776
26777 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
26778
26779         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
26780
26781 2014-05-21  Marek Polacek  <polacek@redhat.com>
26782
26783         PR sanitizer/61272
26784         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
26785
26786 2014-05-21  Martin Jambor  <mjambor@suse.cz>
26787
26788         * doc/invoke.texi (Optimize Options): Document parameters
26789         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
26790         ipa-cp-array-index-hint-bonus.
26791
26792 2014-05-21  Mark Wielaard  <mjw@redhat.com>
26793
26794         PR debug/16063
26795         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
26796         version >= 3 or not strict DWARF.
26797         * langhooks.h (struct lang_hooks_for_types): Add
26798         enum_underlying_base_type.
26799         * langhooks.c (lhd_enum_underlying_base_type): New function.
26800         * gcc/langhooks.h (struct lang_hooks_for_types): Add
26801         enum_underlying_base_type.
26802         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
26803         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
26804         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
26805
26806 2014-05-21  Richard Biener  <rguenther@suse.de>
26807
26808         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
26809
26810 2014-05-21  John Marino  <gnugcc@marino.st>
26811
26812         * config.gcc (*-*-dragonfly*): New target.
26813         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
26814         * configure: Regenerate.
26815         * config/dragonfly-stdint.h: New.
26816         * config/dragonfly.h: New.
26817         * config/dragonfly.opt: New.
26818         * config/i386/dragonfly.h: New.
26819         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
26820
26821 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26822
26823         * tree.def (VOID_CST): New.
26824         * tree-core.h (TI_VOID): New.
26825         * tree.h (void_node): New.
26826         * tree.c (tree_node_structure_for_code, tree_code_size)
26827         (iterative_hash_expr): Handle VOID_CST.
26828         (build_common_tree_nodes): Initialize void_node.
26829
26830 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
26831
26832         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
26833         functions.
26834         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
26835
26836         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
26837         more places.
26838
26839         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
26840         flag_reorder_blocks_and_partition.
26841         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
26842
26843 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
26844
26845         PR target/54236
26846         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
26847         constraints.
26848         (*addc_r_t): Add new insn_and_split.
26849
26850 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
26851
26852         PR middle-end/61252
26853         * omp-low.c (handle_simd_reference): New function.
26854         (lower_rec_input_clauses): Use it.  Defer adding reference
26855         initialization even for reduction without placeholder if in simd,
26856         handle it properly later on.
26857
26858 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
26859
26860         PR tree-optimization/60899
26861         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
26862         assume all static symbols will have definition wile parsing and
26863         check the do have definition later in compilation; check that
26864         variable referring symbol will be output before concluding that
26865         reference is safe; be conservative for referring local statics;
26866         be more precise about when comdat is output in other partition.
26867
26868 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
26869
26870         PR bootstrap/60984
26871         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
26872         parameter.
26873         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
26874         (ipa_inline): Loop inline_to_all_callers until no more aliases
26875         are removed.
26876
26877 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
26878
26879         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
26880         set writeonly flag only for vars actually written to.
26881
26882 2014-05-20  Dehao Chen  <dehao@google.com>
26883
26884         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
26885         and callee count to get clone count.
26886         * tree-inline.c (expand_call_inline): Use callee count instead of bb
26887         count in copy_body.
26888
26889 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
26890
26891         PR rtl-optimization/61243
26892         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
26893
26894 2014-05-20  Xinliang David Li  <davidxl@google.com>
26895
26896         * cgraphunit.c (walk_polymorphic_call_targets): Add
26897         dbgcnt and fopt-info support.
26898         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
26899         * ipa-devirt.c (ipa_devirt): Ditto.
26900         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
26901         * ipa.c (walk_polymorphic_call_targets): Ditto.
26902         * gimple-fold.c (fold_gimple_assign): Ditto.
26903         (gimple_fold_call): Ditto.
26904         * dbgcnt.def: New counter.
26905
26906 2014-05-20  DJ Delorie  <dj@redhat.com>
26907
26908         * config/msp430/msp430.md (split): Don't allow subregs when
26909         splitting SImode adds.
26910         (andneghi): Fix subtraction logic.
26911         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
26912
26913 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
26914
26915         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
26916         symbols.
26917         * except.c (switch_to_exception_section, resolve_unique_section,
26918         get_named_text_section, default_function_rodata_section,
26919         align_variable, get_block_for_decl, default_section_type_flags):
26920         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
26921         * symtab.c (symtab_add_to_same_comdat_group,
26922         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
26923         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
26924         Likewise.
26925         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
26926         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
26927         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
26928         (c6x_function_in_section_p): Likewise.
26929         * config/darwin.c (machopic_select_section): Likewise.
26930         * config/arm/arm.c (arm_function_in_section_p): Likewise.
26931         * config/mips/mips.c (mips_function_rodata_section): Likewise.
26932         * config/mep/mep.c (mep_select_section): LIkewise.
26933         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
26934
26935 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
26936
26937         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
26938         EH region of calls to pure functions that can throw an exception.
26939         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
26940         (copy_reference_ops_from_call): Also copy the EH region of the call if
26941         it can throw an exception.
26942
26943 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26944
26945         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
26946         nested VEC_SELECTs that are inverses of each other.
26947
26948 2014-05-20  Richard Biener  <rguenther@suse.de>
26949
26950         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
26951         (extract_and_process_scc_for_name): not here.
26952         (cond_dom_walker::before_dom_children): Only process
26953         stmts that end the BB in interesting ways.
26954         (run_scc_vn): Mark param uses as visited.
26955
26956 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26957
26958         * config/arm/arm.md (arith_shiftsi): Do not predicate for
26959         arm_restrict_it.
26960
26961 2014-05-20  Nick Clifton  <nickc@redhat.com>
26962
26963         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
26964         (msp430_gimplify_va_arg_expr): New function.
26965         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
26966
26967         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
26968         operand 0 in order to prevent confusion about the number of
26969         registers involved.
26970
26971 2014-05-20  Richard Biener  <rguenther@suse.de>
26972
26973         PR tree-optimization/61221
26974         * tree-ssa-pre.c (el_to_update): Remove.
26975         (eliminate_dom_walker::before_dom_children): Handle released
26976         VDEFs by value-numbering them to the associated VUSE.  Update
26977         stmt immediately for substituted call address.
26978         (eliminate): Remove delayed stmt updating code.
26979         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
26980         possibly late re-numbered vuses.
26981         (vn_reference_lookup_2): Adjust.
26982         (vn_reference_lookup_pieces): Likewise.
26983         (vn_reference_lookup): Likewise.
26984
26985 2014-05-20  Richard Biener  <rguenther@suse.de>
26986
26987         * config.gcc: Remove need_64bit_hwint.
26988         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
26989         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
26990         it to be true.
26991         * config.in: Regenerate.
26992         * configure: Likewise.
26993
26994 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
26995
26996         * doc/extend.texi: Create Label Attributes section,
26997         move all label attributes into it and reference it.
26998
26999 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
27000
27001         * arm.c (thumb1_reorg): When scanning backwards skip anything
27002         that's not a proper insn.
27003
27004 2014-05-19  Richard Biener  <rguenther@suse.de>
27005
27006         PR tree-optimization/61221
27007         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
27008         Do nothing for unreachable blocks.
27009         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
27010         Improve unreachability detection.
27011
27012 2014-05-19  Richard Biener  <rguenther@suse.de>
27013
27014         PR tree-optimization/61209
27015         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
27016
27017 2014-05-19  Nick Clifton  <nickc@redhat.com>
27018
27019         * except.c (init_eh): Fix computation of builtin setjmp buffer
27020         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
27021
27022 2014-05-19  Richard Biener  <rguenther@suse.de>
27023
27024         PR tree-optimization/61184
27025         * tree-vrp.c (is_negative_overflow_infinity): Use
27026         TREE_OVERFLOW_P and do that check first.
27027         (is_positive_overflow_infinity): Likewise.
27028         (is_overflow_infinity): Likewise.
27029         (vrp_operand_equal_p): Properly treat operands with
27030         differing overflow as not equal.
27031
27032 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
27033
27034         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
27035         shift simplification where it was intended.
27036
27037 2014-05-19  Christian Bruel  <christian.bruel@st.com>
27038
27039         PR target/61195
27040         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
27041
27042 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
27043
27044         PR target/61084
27045         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
27046         than wide_int.
27047
27048 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
27049
27050         * reg-notes.def (CROSSING_JUMP): Likewise.
27051         * rtl.h (rtx_def): Update comment for jump flag.
27052         (CROSSING_JUMP_P): Define.
27053         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
27054         of a REG_CROSSING_JUMP note.
27055         * cfghooks.c (tidy_fallthru_edges): Likewise.
27056         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
27057         * emit-rtl.c (try_split): Likewise.
27058         * haifa-sched.c (sched_create_recovery_edges): Likewise.
27059         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
27060         * jump.c (redirect_jump_2): Likewise.
27061         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
27062         (relax_delay_slots): Likewise.
27063         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
27064         (bbit_di): Likewise.
27065         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
27066         * config/sh/sh.md (jump_compact): Likewise.
27067         * bb-reorder.c (rotate_loop): Likewise.
27068         (pass_duplicate_computed_gotos::execute): Likewise.
27069         (add_reg_crossing_jump_notes): Rename to...
27070         (update_crossing_jump_flags): ...this.
27071         (pass_partition_blocks::execute): Update accordingly.
27072
27073 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
27074
27075         * tree.h: Remove extraneous template <>.
27076
27077 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
27078
27079         * ipa.c (symtab_remove_unreachable_nodes): Remove
27080         symbol from comdat group if its body was eliminated.
27081         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
27082         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
27083         (symtab_unregister_node): ... this one.
27084         (verify_symtab_base): More strict checking of comdats.
27085         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
27086
27087 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
27088
27089         * tree-pass.h (make_pass_ipa_comdats): New pass.
27090         * timevar.def (TV_IPA_COMDATS): New timevar.
27091         * passes.def (pass_ipa_comdats): Add.
27092         * Makefile.in (OBJS): Add ipa-comdats.o
27093         * ipa-comdats.c: New file.
27094
27095 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
27096
27097         * ipa.c (update_visibility_by_resolution_info): New function.
27098         (function_and_variable_visibility): Use it.
27099
27100 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
27101
27102         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
27103         New functions.
27104         (FOR_EACH_DEFINED_SYMBOL): New macro.
27105         (varpool_first_static_initializer, varpool_next_static_initializer,
27106         varpool_first_defined_variable, varpool_next_defined_variable):
27107         Fix comments.
27108         (symtab_in_same_comdat_p): Correctly deal with inline functions.
27109
27110 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27111
27112         * ggc-page.c (ggc_handle_finalizers): Add comment.
27113
27114 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27115
27116         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
27117         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
27118         (ggc_internal_cleared_alloc): Likewise.
27119         * ggc-page.c (finalizer): New class.
27120         (vec_finalizer): Likewise.
27121         (globals::finalizers): New member.
27122         (globals::vec_finalizers): Likewise.
27123         (ggc_internal_alloc): Record the finalizer if any for the block being
27124         allocated.
27125         (ggc_handle_finalizers): New function.
27126         (ggc_collect): Call ggc_handle_finalizers.
27127         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
27128         finalizer.
27129         (ggc_internal_cleared_alloc): Likewise.
27130         (finalize): New function.
27131         (need_finalization_p): Likewise.
27132         (ggc_alloc): Install the type's destructor as the finalizer if it
27133         might do something.
27134         (ggc_cleared_alloc): Likewise.
27135         (ggc_vec_alloc): Likewise.
27136         (ggc_cleared_vec_alloc): Likewise.
27137
27138 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27139
27140         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
27141
27142 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27143
27144         * alias.c (record_alias_subset): Adjust.
27145         * bitmap.c (bitmap_element_allocate): Likewise.
27146         (bitmap_gc_alloc_stat): Likewise.
27147         * cfg.c (init_flow): Likewise.
27148         (alloc_block): Likewise.
27149         (unchecked_make_edge): Likewise.
27150         * cfgloop.c (alloc_loop): Likewise.
27151         (flow_loops_find): Likewise.
27152         (rescan_loop_exit): Likewise.
27153         * cfgrtl.c (init_rtl_bb_info): Likewise.
27154         * cgraph.c (insert_new_cgraph_node_version): Likewise.
27155         (cgraph_allocate_node): Likewise.
27156         (cgraph_create_edge_1): Likewise.
27157         (cgraph_allocate_init_indirect_info): Likewise.
27158         * cgraphclones.c (cgraph_clone_edge): Likewise.
27159         * cgraphunit.c (add_asm_node): Likewise.
27160         (init_lowered_empty_function): Likewise.
27161         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
27162         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
27163         (alpha_use_linkage): Likewise.
27164         * config/arc/arc.c (arc_init_machine_status): Likewise.
27165         * config/arm/arm.c (arm_init_machine_status): Likewise.
27166         * config/avr/avr.c (avr_init_machine_status): Likewise.
27167         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
27168         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
27169         * config/cris/cris.c (cris_init_machine_status): Likewise.
27170         * config/darwin.c (machopic_indirection_name): Likewise.
27171         (darwin_build_constant_cfstring): Likewise.
27172         (darwin_enter_string_into_cfstring_table): Likewise.
27173         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
27174         * config/frv/frv.c (frv_init_machine_status): Likewise.
27175         * config/i386/i386.c (get_dllimport_decl): Likewise.
27176         (ix86_init_machine_status): Likewise.
27177         (assign_386_stack_local): Likewise.
27178         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
27179         (i386_pe_maybe_record_exported_symbol): Likewise.
27180         (i386_pe_record_stub): Likewise.
27181         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
27182         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
27183         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
27184         (m32c_note_pragma_address): Likewise.
27185         * config/mep/mep.c (mep_init_machine_status): Likewise.
27186         (mep_note_pragma_flag): Likewise.
27187         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
27188         (mips16_local_alias): Likewise.
27189         (mips_init_machine_status): Likewise.
27190         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
27191         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
27192         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
27193         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
27194         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
27195         * config/pa/pa.c (pa_init_machine_status): Likewise.
27196         (pa_get_deferred_plabel): Likewise.
27197         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
27198         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
27199         (rs6000_init_machine_status): Likewise.
27200         (output_toc): Likewise.
27201         * config/s390/s390.c (s390_init_machine_status): Likewise.
27202         * config/score/score.c (score_output_external): Likewise.
27203         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
27204         * config/spu/spu.c (spu_init_machine_status): Likewise.
27205         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
27206         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
27207         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
27208         * coverage.c (coverage_end_function): Likewise.
27209         * dbxout.c (dbxout_init): Likewise.
27210         * doc/gty.texi: Don't mention variable_size attribute.
27211         * dwarf2cfi.c (new_cfi): Adjust.
27212         (new_cfi_row): Likewise.
27213         (copy_cfi_row): Likewise.
27214         (create_cie_data): Likewise.
27215         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
27216         (new_loc_descr): Likewise.
27217         (find_AT_string_in_table): Likewise.
27218         (add_addr_table_entry): Likewise.
27219         (new_die): Likewise.
27220         (add_var_loc_to_decl): Likewise.
27221         (clone_die): Likewise.
27222         (clone_as_declaration): Likewise.
27223         (break_out_comdat_types): Likewise.
27224         (new_loc_list): Likewise.
27225         (add_loc_descr_to_each): Likewise.
27226         (add_location_or_const_value_attribute): Likewise.
27227         (add_linkage_name): Likewise.
27228         (lookup_filename): Likewise.
27229         (dwarf2out_var_location): Likewise.
27230         (new_line_info_table): Likewise.
27231         (dwarf2out_init): Likewise.
27232         (mem_loc_descriptor): Likewise.
27233         (loc_descriptor): Likewise.
27234         (add_const_value_attribute): Likewise.
27235         (tree_add_const_value_attribute): Likewise.
27236         (comp_dir_string): Likewise.
27237         (dwarf2out_vms_debug_main_pointer): Likewise.
27238         (string_cst_pool_decl): Likewise.
27239         * emit-rtl.c (set_mem_attrs): Likewise.
27240         (get_reg_attrs): Likewise.
27241         (start_sequence): Likewise.
27242         (init_emit): Likewise.
27243         (init_emit_regs): Likewise.
27244         * except.c (init_eh_for_function): Likewise.
27245         (gen_eh_region): Likewise.
27246         (gen_eh_region_catch): Likewise.
27247         (gen_eh_landing_pad): Likewise.
27248         (add_call_site): Likewise.
27249         * function.c (add_frame_space): Likewise.
27250         (insert_temp_slot_address): Likewise.
27251         (assign_stack_temp_for_type): Likewise.
27252         (get_hard_reg_initial_val): Likewise.
27253         (allocate_struct_function): Likewise.
27254         (prepare_function_start): Likewise.
27255         (types_used_by_var_decl_insert): Likewise.
27256         * gengtype.c (variable_size_p): Remove function.
27257         (enum alloc_quantity): Remove enum.
27258         (write_typed_alloc_def): Remove function.
27259         (write_typed_struct_alloc_def): Likewise.
27260         (write_typed_typedef_alloc_def): Likewise.
27261         (write_typed_alloc_defns): Likewise.
27262         (main): Adjust.
27263         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
27264         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
27265         * ggc.h (ggc_alloc): new function.
27266         (ggc_cleared_alloc): Likewise.
27267         (ggc_vec_alloc): Template on type of vector element, and remove
27268         element size argument.
27269         (ggc_cleared_vec_alloc): Likewise.
27270         * gimple.c (gimple_build_omp_for): Adjust.
27271         (gimple_copy): Likewise.
27272         * ipa-cp.c (get_replacement_map): Likewise.
27273         (find_aggregate_values_for_callers_subset): Likewise.
27274         (known_aggs_to_agg_replacement_list): Likewise.
27275         * ipa-devirt.c (get_odr_type): Likewise.
27276         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
27277         (read_agg_replacement_chain): Likewise.
27278         * loop-iv.c (get_simple_loop_desc): Likewise.
27279         * lto-cgraph.c (input_node_opt_summary): Likewise.
27280         * lto-section-in.c (lto_new_in_decl_state): Likewise.
27281         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
27282         (input_eh_region): Likewise.
27283         (input_eh_lp): Likewise.
27284         (input_cfg): Likewise.
27285         * optabs.c (set_optab_libfunc): Likewise.
27286         (init_tree_optimization_optabs): Likewise.
27287         (set_conv_libfunc): Likewise.
27288         * passes.c (do_per_function_toporder): Likewise.
27289         * rtl.h: Don't use variable_size gty attribute.
27290         * sese.c (if_region_set_false_region): Adjust.
27291         * stringpool.c (gt_pch_save_stringpool): Likewise.
27292         * target-globals.c (save_target_globals): Likewise.
27293         * toplev.c (general_init): Likewise.
27294         * trans-mem.c (record_tm_replacement): Likewise.
27295         (split_bb_make_tm_edge): Likewise.
27296         * tree-cfg.c (move_sese_region_to_fn): Likewise.
27297         * tree-data-ref.h (lambda_vector_new): Likewise.
27298         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
27299         * tree-iterator.c (tsi_link_before): Likewise.
27300         (tsi_link_after): Likewise.
27301         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
27302         * tree-ssa-loop-niter.c (record_estimate): Likewise.
27303         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
27304         * tree-ssa-operands.h: Don't use variable_size gty attribute.
27305         * tree-ssa.c (init_tree_ssa): Adjust.
27306         * tree-ssanames.c (set_range_info): Likewise.
27307         (get_ptr_info): Likewise.
27308         (duplicate_ssa_name_ptr_info): Likewise.
27309         (duplicate_ssa_name_range_info): Likewise.
27310         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
27311         (unpack_ts_fixed_cst_value_fields): Likewise.
27312         * tree.c (build_fixed): Likewise.
27313         (build_real): Likewise.
27314         (build_string): Likewise.
27315         (decl_priority_info): Likewise.
27316         (decl_debug_expr_insert): Likewise.
27317         (decl_value_expr_insert): Likewise.
27318         (decl_debug_args_insert): Likewise.
27319         (type_hash_add): Likewise.
27320         (build_omp_clause): Likewise.
27321         * ubsan.c (decl_for_type_insert): Likewise.
27322         * varasm.c (get_unnamed_section): Likewise.
27323         (get_noswitch_section): Likewise.
27324         (get_section): Likewise.
27325         (get_block_for_section): Likewise.
27326         (create_block_symbol): Likewise.
27327         (build_constant_desc): Likewise.
27328         (create_constant_pool): Likewise.
27329         (force_const_mem): Likewise.
27330         (record_tm_clone_pair): Likewise.
27331         * varpool.c (varpool_create_empty_node): Likewise.
27332
27333 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27334
27335         * dwarf2out.c (tree_add_const_value_attribute): Call
27336         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
27337         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
27338         instead of ggc_internal_<x>alloc_stat.
27339         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
27340         (ggc_realloc): Likewise.
27341         * ggc-none.c (ggc_internal_alloc): Likewise.
27342         (ggc_internal_cleared_alloc): Likewise.
27343         * ggc-page.c: Likewise.
27344         * ggc.h (ggc_internal_alloc_stat): Likewise.
27345         (ggc_internal_alloc): Remove macro.
27346         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
27347         (ggc_internal_cleared_alloc): Remove macro.
27348         (GGC_RESIZEVEC): Adjust.
27349         (ggc_resizevar): Remove macro.
27350         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
27351         (ggc_internal_cleared_vec_alloc_stat): Likewise.
27352         (ggc_internal_vec_cleared_alloc): Remove macro.
27353         (ggc_alloc_atomic_stat): Drop _stat suffix.
27354         (ggc_alloc_atomic): Remove macro.
27355         (ggc_alloc_cleared_atomic): Remove macro.
27356         (ggc_alloc_string_stat): Drop _stat suffix.
27357         (ggc_alloc_string): Remove macro.
27358         (ggc_alloc_rtx_def_stat): Adjust.
27359         (ggc_alloc_tree_node_stat): Likewise.
27360         (ggc_alloc_cleared_tree_node_stat): Likewise.
27361         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
27362         (ggc_alloc_cleared_simd_clone_stat): Likewise.
27363         * gimple.c (gimple_build_omp_for): Likewise.
27364         (gimple_copy): Likewise.
27365         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
27366         * toplev.c (realloc_for_line_map): Adjust.
27367         * tree-data-ref.h (lambda_vector_new): Likewise.
27368         * tree-phinodes.c (allocate_phi_node): Likewise.
27369         * tree.c (grow_tree_vec_stat): Likewise.
27370         * vec.h (va_gc::reserve): Adjust.
27371
27372 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
27373
27374         * config/microblaze/microblaze.c (break_handler): New Declaration.
27375         (microblaze_break_function_p,microblaze_is_break_handler): New.
27376         (compute_frame_size): Use microblaze_break_function_p.
27377         Add the test of break_handler.
27378         (microblaze_function_prologue) : Add the test of variable
27379         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
27380         (microblaze_function_epilogue) : Add the test of break_handler.
27381         (microblaze_globalize_label) : Add the test of break_handler.
27382         Check the name by BREAK_HANDLER_NAME.
27383
27384         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
27385
27386         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
27387         microblaze_is_break_handler test.
27388         (call_internal1,call_value_intern): Use microblaze_break_function_p.
27389         Use SYMBOL_REF_DECL.
27390
27391         * config/microblaze/microblaze-protos.h
27392         (microblaze_break_function_p,microblaze_is_break_handler):
27393         New Declaration.
27394
27395         * doc/extend.texi (MicroBlaze break_handler Functions): Document
27396         new MicroBlaze break_handler functions.
27397
27398 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
27399
27400         * doc/extend.texi (Size of an asm): Move node text according
27401         to its @menu entry position.
27402
27403 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
27404
27405         PR tree-optimization/61140
27406         PR tree-optimization/61150
27407         PR tree-optimization/61197
27408         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
27409
27410 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
27411
27412         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
27413
27414 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
27415
27416         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
27417         __SIZEOF_INT128__ is defined.
27418
27419 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
27420
27421         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
27422         (rs6000_delegitimize_address): Use it.
27423
27424 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
27425
27426         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
27427         inplace argument.  Store the new address in the original MEM when true.
27428         * emit-rtl.c (change_address_1): Likewise.
27429         (adjust_address_1, adjust_automodify_address_1, offset_address):
27430         Update accordingly.
27431         * rtl.h (plus_constant): Add an inplace argument.
27432         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
27433         when true.  Avoid generating (plus X (const_int 0)).
27434         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
27435         in-place.  Pass true to plus_constant.
27436         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
27437
27438 2014-05-16  Dehao Chen  <dehao@google.com>
27439
27440         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
27441
27442 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
27443
27444         PR target/54089
27445         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
27446         patterns.
27447         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
27448
27449 2014-05-16  Dehao Chen  <dehao@google.com>
27450
27451         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
27452         optimize_function_for_size_p.
27453         * regs.h (REG_FREQ_FROM_BB): Likewise.
27454
27455 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
27456
27457         PR target/51244
27458         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
27459         negt_reg_operand cases.
27460         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
27461         predicate.
27462         * config/sh/predicates.md (cbranch_treg_value): Simplify.
27463
27464 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
27465
27466         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
27467         target variants.
27468
27469 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
27470
27471         Revert:
27472         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
27473
27474         * tree-cfg.c (dump_function_to_file): Dump the return type of
27475         functions, in a line to itself before the function body, mimicking
27476         the layout of a C function.
27477
27478 2014-05-16  Dehao Chen  <dehao@google.com>
27479
27480         * cfghooks.c (make_forwarder_block): Use direct computation to
27481         get fall-through edge's count and frequency.
27482
27483 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
27484
27485         * config/arc/arc.c (arc_init): Fix typo in error message.
27486         * config/i386/i386.c (ix86_expand_builtin): Likewise.
27487         (split_stack_prologue_scratch_regno): Likewise.
27488         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
27489         word from error message.
27490
27491 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27492
27493         * ira-costs.c: Fix typo in comment.
27494
27495 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
27496
27497         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
27498
27499 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
27500
27501         * varpool.c (dump_varpool_node): Dump write-only flag.
27502         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
27503         write-only flag.
27504         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
27505         write-only variables.
27506         * ipa.c (process_references): New function.
27507         (set_readonly_bit): New function.
27508         (set_writeonly_bit): New function.
27509         (clear_addressable_bit): New function.
27510         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
27511         fix handling of aliases.
27512         * cgraph.h (struct varpool_node): Add writeonly flag.
27513
27514 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
27515
27516         PR rtl-optimization/60969
27517         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
27518         Calculate costs for this case.
27519
27520 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
27521
27522         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
27523         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
27524
27525 2014-05-16  Richard Biener  <rguenther@suse.de>
27526
27527         PR tree-optimization/61194
27528         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
27529         bool patterns ending in a COND_EXPR.
27530
27531 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27532
27533         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
27534
27535 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27536
27537         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
27538         where we were unable to cost an RTX.
27539
27540 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27541
27542         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
27543         HIGH, LO_SUM.
27544
27545 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27546             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27547
27548         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
27549
27550 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27551             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27552
27553         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
27554         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
27555
27556 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27557             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27558
27559         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
27560         operators.
27561
27562 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27563             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27564
27565         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
27566         DIV/MOD.
27567
27568 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27569             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27570
27571         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
27572         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
27573
27574 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27575             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27576
27577         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
27578         rotates and shifts.
27579
27580 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27581             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27582
27583         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
27584         ZERO_EXTEND and SIGN_EXTEND better.
27585
27586 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27587             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27588
27589         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
27590         logical operations.
27591
27592 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27593             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27594
27595         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
27596         costs when costing loads and stores to memory.
27597
27598 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27599             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
27600
27601         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
27602         for SET RTX.
27603
27604 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27605
27606         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
27607
27608 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27609             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27610
27611         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
27612         to...
27613         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
27614         well formed.
27615         (aarch64_rtx_mult_cost): New.
27616         (aarch64_rtx_costs): Use it, refactor as appropriate.
27617
27618 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27619             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27620
27621         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
27622         emit instructions, return number of instructions which would
27623         be emitted.
27624         (aarch64_add_constant): Update call to aarch64_build_constant.
27625         (aarch64_output_mi_thunk): Likewise.
27626         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
27627         a CONST_DOUBLE.
27628
27629 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27630
27631         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
27632         (TARGET_RTX_COSTS): Call it.
27633
27634 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27635
27636         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
27637         (cortexa57_vector_cost): Likewise.
27638         (cortexa57_tunings): Use them.
27639
27640 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
27641
27642         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
27643         (cpu_addrcost_table): Use it.
27644         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
27645         (aarch64_address_cost): Rewrite using aarch64_classify_address,
27646         move it.
27647
27648 2014-05-16  Richard Biener  <rguenther@suse.de>
27649
27650         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
27651         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
27652         (visit_phi): Ignore edges marked as not executable.
27653         (class cond_dom_walker): New.
27654         (cond_dom_walker::before_dom_children): Value-number
27655         control statements and mark successor edges as not
27656         executable if possible.
27657         (run_scc_vn): First walk all control statements in
27658         dominator order, marking edges as not executable.
27659         * tree-inline.c (copy_edges_for_bb): Be not confused
27660         about random edge flags.
27661
27662 2014-05-16  Richard Biener  <rguenther@suse.de>
27663
27664         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
27665
27666 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
27667
27668         PR target/61193
27669         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
27670         (__TM_simple_begin): Use it.
27671         (__TM_begin): Likewise.
27672
27673 2014-05-15  Martin Jambor  <mjambor@suse.cz>
27674
27675         PR ipa/61085
27676         * ipa-prop.c (update_indirect_edges_after_inlining): Check
27677         type_preserved flag when the indirect edge is polymorphic.
27678
27679 2014-05-15  Martin Jambor  <mjambor@suse.cz>
27680
27681         PR tree-optimization/61090
27682         * tree-sra.c (sra_modify_expr): Pass the current gsi to
27683         build_ref_for_model.
27684
27685 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27686
27687         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
27688         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
27689
27690 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
27691
27692         PR tree-optimization/61158
27693         * fold-const.c (fold_binary_loc): If X is zero-extended and
27694         shiftc >= prec, make sure zerobits is all ones instead of
27695         invoking undefined behavior.
27696
27697 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27698
27699         * regcprop.h: New file.
27700         * regcprop.c (skip_debug_insn_p): New decl.
27701         (replace_oldest_value_reg): Check skip_debug_insn_p.
27702         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
27703         * shrink-wrap.c: Include regcprop.h.
27704         (prepare_shrink_wrap): Call
27705         copyprop_hardreg_forward_bb_without_debug_insn.
27706
27707 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27708
27709         * shrink-wrap.h: Update comment.
27710         * shrink-wrap.c: Update comment.
27711         (next_block_for_reg): Rename to live_edge_for_reg.
27712         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
27713         (move_insn_for_shrink_wrap): Split live_edge.
27714         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
27715
27716 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
27717
27718         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
27719         Delete.
27720         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
27721         * config/sparc/sparc.md (fptype_ut699): New attribute.
27722         (in_branch_delay): Return false if -mfix-ut699 is specified and
27723         fptype_ut699 is set to single.
27724         (truncdfsf2): Add fptype_ut699 attribute.
27725         (fix_truncdfsi2): Likewise.
27726         (floatsisf2): Change fptype attribute.
27727         (fix_truncsfsi2): Likewise.
27728         (negtf2_notv9): Delete.
27729         (negtf2_v9): Likewise.
27730         (negtf2_hq): New instruction.
27731         (negtf2): New instruction and splitter.
27732         (negdf2_notv9): Rewrite.
27733         (abstf2_notv9): Delete.
27734         (abstf2_hq_v9): Likewise.
27735         (abstf2_v9): Likewise.
27736         (abstf2_hq): New instruction.
27737         (abstf2): New instruction and splitter.
27738         (absdf2_notv9): Rewrite.
27739
27740 2014-05-14  Cary Coutant  <ccoutant@google.com>
27741
27742         PR debug/61013
27743         * opts.c (common_handle_option): Don't special-case "-g".
27744         (set_debug_level): Default to at least level 2 with "-g".
27745
27746 2014-05-14  DJ Delorie  <dj@redhat.com>
27747
27748         * config/msp430/msp430.c (msp430_builtin): Add
27749         MSP430_BUILTIN_DELAY_CYCLES.
27750         (msp430_init_builtins): Register void __delay_cycles(long long).
27751         (msp430_builtin_decl): Add it.
27752         (cg_magic_constant): New.
27753         (msp430_expand_delay_cycles): New.
27754         (msp430_expand_builtin): Call it.
27755         (msp430_print_operand_raw): Change integer printing from "int" to
27756         HOST_WIDE_INT.
27757         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
27758         (delay_cycles_start): New.
27759         (delay_cycles_end): New.
27760         (delay_cycles_32): New.
27761         (delay_cycles_32x): New.
27762         (delay_cycles_16): New.
27763         (delay_cycles_16x): New.
27764         (delay_cycles_2): New.
27765         (delay_cycles_1): New.
27766         * doc/extend.texi: Document __delay_cycles().
27767
27768 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
27769
27770         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
27771         length attribute computation.
27772
27773 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
27774
27775         PR debug/61188
27776         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
27777
27778 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
27779
27780         PR target/61084
27781         * config/sparc/sparc.md: Fix types of low and high in DI constant
27782         splitter.  Use gen_int_mode in some other splitters.
27783
27784 2014-05-14  Martin Jambor  <mjambor@suse.cz>
27785
27786         PR ipa/60897
27787         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
27788
27789 2014-05-14  James Norris  <jnorris@codesourcery.com>
27790
27791         * omp-low.c (expand_parallel_call): Remove shadow variable.
27792         (expand_omp_taskreg): Likewise.
27793
27794 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
27795
27796         * common/config/i386/i386-common.c
27797         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
27798         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
27799         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
27800         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
27801         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
27802         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
27803         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
27804         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
27805         xsavecintrin.h, xsavesintrin.h.
27806         (x86_64-*-*): Ditto.
27807         * config/i386/clflushoptintrin.h: New.
27808         * config/i386/xsavecintrin.h: Ditto.
27809         * config/i386/xsavesintrin.h: Ditto.
27810         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
27811         (bit_XSAVES): Ditto.
27812         (bit_XSAVES): Ditto.
27813         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
27814         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
27815         -mno-clflushopt.
27816         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27817         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
27818         OPTION_MASK_ISA_XSAVES.
27819         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
27820         -mxsavec, -mxsaves.
27821         (PTA_CLFLUSHOPT) Define.
27822         (PTA_XSAVEC): Ditto.
27823         (PTA_XSAVES): Ditto.
27824         (ix86_option_override_internal): Handle new options.
27825         (ix86_valid_target_attribute_inner_p): Ditto.
27826         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
27827         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
27828         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
27829         (bdesc_special_args): Add __builtin_ia32_xsaves,
27830         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
27831         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
27832         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
27833         (ix86_expand_builtin): Handle new builtins.
27834         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
27835         (TARGET_CLFLUSHOPT_P): Ditto.
27836         (TARGET_XSAVEC): Ditto.
27837         (TARGET_XSAVEC_P): Ditto.
27838         (TARGET_XSAVES): Ditto.
27839         (TARGET_XSAVES_P): Ditto.
27840         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
27841         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
27842         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
27843         (ANY_XRSTOR): New.
27844         (ANY_XRSTOR64): Ditto.
27845         (xrstor): Ditto.
27846         (xrstor): Change into <xrstor>.
27847         (xrstor_rex64): Change into <xrstor>_rex64.
27848         (xrstor64): Change into <xrstor>64
27849         (clflushopt): New.
27850         * config/i386/i386.opt (mclflushopt): New.
27851         (mxsavec): Ditto.
27852         (mxsaves): Ditto.
27853         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
27854         xsavecintrin.h.
27855         * doc/invoke.texi: Document new options.
27856
27857 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
27858
27859         PR rtl-optimization/60866
27860         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
27861         Default it to -1.  Pass it down to init_simplejump_data.
27862         (init_simplejump_data): New parameter old_seqno.  Pass it down
27863         to get_seqno_for_a_jump.
27864         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
27865         initializing new jump seqno as a last resort.  Add comment.
27866         (sel_redirect_edge_and_branch): Save old seqno of the conditional
27867         jump and pass it down to sel_init_new_insn.
27868         (sel_redirect_edge_and_branch_force): Likewise.
27869
27870 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
27871
27872         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
27873         shifted values to avoid build warning.
27874
27875 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
27876
27877         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
27878         * cfgrtl.c (rtl_merge_blocks): Fix comment.
27879         (cfg_layout_merge_blocks): Likewise.
27880         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
27881
27882 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
27883
27884         PR rtl-optimization/60901
27885         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
27886         bb predecessor belongs to the same scheduling region.  Adjust comment.
27887
27888 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
27889
27890         * doc/sourcebuild.texi: (dfp_hw): Document.
27891         (p8vector_hw): Likewise.
27892         (powerpc_eabi_ok): Likewise.
27893         (powerpc_elfv2): Likewise.
27894         (powerpc_htm_ok): Likewise.
27895         (ppc_recip_hw): Likewise.
27896         (vsx_hw): Likewise.
27897
27898 2014-05-13  Cary Coutant  <ccoutant@google.com>
27899
27900         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
27901
27902 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
27903
27904         * gengtype-parse.c (require3): Eliminate in favor of...
27905         (require4): New.
27906         (require_template_declaration): Update to support optional single *
27907         on a type.
27908
27909         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
27910         (create_user_defined_type): Handle a single level of explicit
27911         pointerness within template arguments.
27912         (struct write_types_data): Add field "kind".
27913         (filter_type_name): Handle "*" character.
27914         (write_user_func_for_structure_ptr): Require a write_types_data
27915         rather than just a prefix string, so that we can look up the kind
27916         of the wtd and use it as an index into wrote_user_func_for_ptr,
27917         ensuring that such functions are written at most once.  Support
27918         subclasses by invoking the marking function of the ultimate base class.
27919         (write_user_func_for_structure_body): Require a write_types_data
27920         rather than just a prefix string, so that we can pass this to
27921         write_user_func_for_structure_ptr.
27922         (write_func_for_structure): Likewise.
27923         (ggc_wtd): Add initializer of new "kind" field.
27924         (pch_wtd): Likewise.
27925
27926         * gengtype.h (enum write_types_kinds): New.
27927         (struct type): Add field wrote_user_func_for_ptr to the "s"
27928         union member.
27929
27930 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
27931
27932         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
27933         instead of const_binop.
27934         (fold_binary_loc): Likewise.
27935
27936 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
27937
27938         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
27939         calculation to match get_ref_base_and_extent.
27940
27941 2014-05-13  Catherine Moore  <clm@codesourcery.com>
27942             Sandra Loosemore  <sandra@codesourcery.com>
27943
27944         * configure.ac: Fix assembly for explicit JALR relocation check.
27945         * configure: Regenerate.
27946
27947 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27948
27949         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
27950         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
27951         Remove associated type declarations and initialisations.
27952         (arm_expand_neon_builtin): Likewise.
27953         (neon_emit_pair_result_insn): Delete.
27954         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
27955         * config/arm/neon.md (neon_vtrn<mode>): Delete.
27956         (neon_vzip<mode>): Likewise.
27957         (neon_vuzp<mode>): Likewise.
27958
27959 2014-05-13  Richard Biener  <rguenther@suse.de>
27960
27961         PR ipa/60973
27962         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
27963         it needs revisiting whether the call still may be tail-called.
27964
27965 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
27966
27967         * rtl.def (SYMBOL_REF): Remove middle "0" field.
27968         * rtl.h (block_symbol): Reduce number of fields to 2.
27969         (rtx_def): Add u2.symbol_ref_flags.
27970         (SYMBOL_REF_FLAGS): Use it.
27971         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
27972         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
27973         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
27974         Lower index of SYMBOL_REF_DATA.
27975         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
27976         Print SYMBOL_REF_FLAGS at the same time.
27977         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
27978
27979 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
27980
27981         * rtl.def (VAR_LOCATION): Remove "i" field.
27982         * rtl.h (rtx_def): Add u2.var_location_status.
27983         (PAT_VAR_LOCATION_STATUS): Use it.
27984         (gen_rtx_VAR_LOCATION): Declare.
27985         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
27986         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
27987         * var-tracking.c (emit_note_insn_var_location): Remove casts.
27988
27989 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
27990
27991         * rtl.def (scratch): Fix outdated comment and remove "0" field.
27992         * gengtype.c (adjust_field_rtx_def): Update accordingly.
27993
27994 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
27995
27996         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
27997         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
27998         * rtl.h (rtx_def): Add insn_uid to u2 field.
27999         (RTX_FLAG_CHECK8): Delete in favor of...
28000         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
28001         (INSN_DELETED_P): Update accordingly.
28002         (INSN_UID): Use u2.insn_uid.
28003         (INSN_CHAIN_CODE_P): Define.
28004         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
28005         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
28006         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
28007         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
28008         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
28009         indices accordingly.
28010         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
28011         Update indices for insn-chain rtxes.
28012         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
28013         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
28014         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
28015         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
28016         * combine.c (try_combine): Likewise.
28017         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28018
28019 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28020
28021         * rtl.def (REG): Remove middle field.
28022         * rtl.h (rtx_def): Add orignal_regno to u2.
28023         (ORIGINAL_REGNO): Use it instead of field 1.
28024         (REG_ATTRS): Lower field index accordingly.
28025         * gengtype.c (adjust_field_rtx_def): Remove handling of
28026         ORIGINAL_REGNO.  Move REG_ATTRS index down.
28027         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
28028         code that prints the REGNO.
28029
28030 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28031
28032         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
28033         GENERATOR_FILE.
28034
28035 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28036
28037         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
28038
28039 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
28040
28041         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
28042         (alloc_iv): Lower base expressions containing ADDR_EXPR.
28043
28044 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
28045
28046         * config/aarch64/aarch64-protos.h
28047         (aarch64_hard_regno_caller_save_mode): New prototype.
28048         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
28049         New function.
28050         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
28051
28052 2014-05-13  Christian Bruel  <christian.bruel@st.com>
28053
28054         * target.def (mode_switching): New hook vector.
28055         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
28056         (mode_exit, modepriority_to_mode): Likewise.
28057         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
28058         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
28059         * target.h: Include tm.h and hard-reg-set.h.
28060         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
28061         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
28062         * doc/tm.texi Regenerate.
28063         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
28064         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
28065         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
28066         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
28067         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
28068         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
28069         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
28070         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
28071         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
28072         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
28073         (ix86_emit_mode_set): Hookify.
28074         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
28075         Delete.
28076         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
28077         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
28078         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
28079         (epiphany_mode_priority_to_mode): Remove declaration.
28080         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
28081         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
28082         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
28083         Likewise.
28084         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
28085         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
28086         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
28087
28088 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
28089
28090         PR target/61060
28091         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
28092         is const0_rtx, return immediately.  Don't test count == 0 when
28093         it is always true.
28094
28095 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28096
28097         * Makefile.in: add shrink-wrap.o.
28098         * config/i386/i386.c: include "shrink-wrap.h"
28099         * function.c: Likewise.
28100         (requires_stack_frame_p, next_block_for_reg,
28101         move_insn_for_shrink_wrap, prepare_shrink_wrap,
28102         dup_block_and_redirect): Move to shrink-wrap.c
28103         (thread_prologue_and_epilogue_insns): Extract three code segments
28104         as functions in shrink-wrap.c
28105         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
28106         shrink-wrap.h
28107         * shrink-wrap.c: New file.
28108         * shrink-wrap.h: New file.
28109
28110 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
28111
28112         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
28113         reference to Solaris.
28114
28115 2014-05-12  Mike Stump  <mikestump@comcast.net>
28116
28117         PR other/31778
28118         * genattrtab.c (filename): Add.
28119         (convert_set_attr_alternative): Improve error message.
28120         (check_defs): Restore read_md_filename for error messages.
28121         (gen_insn): Save filename.
28122
28123 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
28124
28125         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
28126         -fno-local-ivars and -fivar-visibility.
28127         * c-family/c.opt: Make -Wshadow also implicitly enable
28128         -Wshadow-ivar.
28129
28130 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
28131
28132         * doc/tm.texi: Remove reference to deleted macro.
28133         * doc/tm.texi.in: Likewise.
28134
28135 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28136
28137         PR target/60991
28138         * config/avr/avr.c (avr_out_store_psi): Use correct constant
28139         to restore Y.
28140
28141 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
28142
28143         PR libgcc/61152
28144         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
28145         * config/arm/aout.h (License): Same.
28146         * config/arm/bpabi.h (License): Same.
28147         * config/arm/elf.h (License): Same.
28148         * config/arm/linux-elf.h (License): Same.
28149         * config/arm/linux-gas.h (License): Same.
28150         * config/arm/netbsd-elf.h (License): Same.
28151         * config/arm/uclinux-eabi.h (License): Same.
28152         * config/arm/uclinux-elf.h (License): Same.
28153         * config/arm/vxworks.h (License): Same.
28154
28155 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
28156
28157         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
28158         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
28159         number of operands to 3.
28160         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
28161         * tree-nested.c (convert_nonlocal_omp_clauses,
28162         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
28163         * gimplify.c (gimplify_scan_omp_clauses): Handle
28164         OMP_CLAUSE_LINEAR_STMT.
28165         * omp-low.c (lower_rec_input_clauses): Fix typo.
28166         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
28167         cast between Fortran boolean_type_node and C _Bool if
28168         needed.
28169
28170 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
28171
28172         PR tree-optimization/61136
28173         * wide-int.h (multiple_of_p): Define a version that doesn't return
28174         the quotient.
28175         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
28176         integer_zerop/const_binop pair.
28177         (multiple_of_p): Likewise, converting both operands to widest_int
28178         precision.
28179
28180 2014-05-09  Teresa Johnson  <tejohnson@google.com>
28181
28182         * cgraphunit.c (analyze_functions): Use correct dump file.
28183
28184 2014-05-09  Florian Weimer  <fweimer@redhat.com>
28185
28186         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
28187         expand_used_vars.
28188         (stack_protect_return_slot_p): New function.
28189         (expand_used_vars): Call stack_protect_decl_p and
28190         stack_protect_return_slot_p for -fstack-protector-strong.
28191
28192 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
28193         Andrew Haley <aph@redhat.com>
28194         Richard Sandiford <rdsandiford@googlemail.com>
28195
28196         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
28197         pages.
28198
28199 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
28200
28201         PR middle-end/61111
28202         * fold-const.c (fold_binary_loc): Changed width of mask.
28203
28204 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
28205
28206         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
28207         unsigned int initializers for regno_in, regno_out.
28208
28209 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
28210
28211         PR target/61055
28212         * config/avr/avr.md (cc): Add new attribute set_vzn.
28213         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
28214         Set cc insn attribute to set_vzn instead of set_zn for alternatives
28215         with INC, DEC or NEG.
28216         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
28217         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
28218         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
28219
28220 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28221
28222         Revert:
28223         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28224
28225         * wide-int.cc (UTItype): Define.
28226         (UDWtype): Define for appropriate W_TYPE_SIZE.
28227
28228 2014-05-09  Richard Biener  <rguenther@suse.de>
28229
28230         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
28231         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
28232         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
28233         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
28234         ssa_propagate): Adjust.
28235
28236 2014-05-08  Jeff Law  <law@redhat.com>
28237
28238         PR tree-optimization/61009
28239         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
28240         tri-state rather than a boolean.  When a block is too big to
28241         thread through, inform caller via negative return value.
28242         (thread_across_edge): If a block was too big for normal threading,
28243         then it's too big for a joiner too, so remove temporary equivalences
28244         and return immediately.
28245
28246 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28247             Matthias Klose  <doko@ubuntu.com>
28248
28249         PR driver/61106
28250         * optc-gen.awk: Fix option handling for -Wunused-parameter.
28251
28252 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
28253
28254         PR target/59952
28255         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
28256
28257 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
28258
28259         PR target/61092
28260         * config/alpha/alpha.c: Include gimple-iterator.h.
28261         (alpha_gimple_fold_builtin): New function.  Move
28262         ALPHA_BUILTIN_UMULH folding from ...
28263         (alpha_fold_builtin): ... here.
28264         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
28265
28266 2014-05-08  Wei Mi  <wmi@google.com>
28267
28268         PR target/58066
28269         * config/i386/i386.c (ix86_compute_frame_layout): Update
28270         preferred_stack_boundary for call, expanded from tls descriptor.
28271         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
28272         to depend on SP register.
28273         (*tls_local_dynamic_base_32_gnu): Ditto.
28274         (*tls_local_dynamic_32_once): Ditto.
28275         (tls_global_dynamic_64_<mode>): Set
28276         ix86_tls_descriptor_calls_expanded_in_cfun.
28277         (tls_local_dynamic_base_64_<mode>): Ditto.
28278         (tls_global_dynamic_32): Set
28279         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
28280         to depend on SP register.
28281         (tls_local_dynamic_base_32): Ditto.
28282
28283 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28284
28285         * config/arm/arm_neon.h: Update comment.
28286         * config/arm/neon-docgen.ml: Delete.
28287         * config/arm/neon-gen.ml: Delete.
28288         * doc/arm-neon-intrinsics.texi: Update comment.
28289
28290 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28291
28292         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
28293         and v4sf versions.
28294         (vand, vorr, veor, vorn, vbic): Remove.
28295         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
28296         iterator.
28297         (neon_vsub_unspec): Likewise.
28298         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
28299
28300 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28301
28302         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
28303         (vadd_s16): Likewise.
28304         (vadd_s32): Likewise.
28305         (vadd_f32): Likewise.
28306         (vadd_u8): Likewise.
28307         (vadd_u16): Likewise.
28308         (vadd_u32): Likewise.
28309         (vadd_s64): Likewise.
28310         (vadd_u64): Likewise.
28311         (vaddq_s8): Likewise.
28312         (vaddq_s16): Likewise.
28313         (vaddq_s32): Likewise.
28314         (vaddq_s64): Likewise.
28315         (vaddq_f32): Likewise.
28316         (vaddq_u8): Likewise.
28317         (vaddq_u16): Likewise.
28318         (vaddq_u32): Likewise.
28319         (vaddq_u64): Likewise.
28320         (vmul_s8): Likewise.
28321         (vmul_s16): Likewise.
28322         (vmul_s32): Likewise.
28323         (vmul_f32): Likewise.
28324         (vmul_u8): Likewise.
28325         (vmul_u16): Likewise.
28326         (vmul_u32): Likewise.
28327         (vmul_p8): Likewise.
28328         (vmulq_s8): Likewise.
28329         (vmulq_s16): Likewise.
28330         (vmulq_s32): Likewise.
28331         (vmulq_f32): Likewise.
28332         (vmulq_u8): Likewise.
28333         (vmulq_u16): Likewise.
28334         (vmulq_u32): Likewise.
28335         (vsub_s8): Likewise.
28336         (vsub_s16): Likewise.
28337         (vsub_s32): Likewise.
28338         (vsub_f32): Likewise.
28339         (vsub_u8): Likewise.
28340         (vsub_u16): Likewise.
28341         (vsub_u32): Likewise.
28342         (vsub_s64): Likewise.
28343         (vsub_u64): Likewise.
28344         (vsubq_s8): Likewise.
28345         (vsubq_s16): Likewise.
28346         (vsubq_s32): Likewise.
28347         (vsubq_s64): Likewise.
28348         (vsubq_f32): Likewise.
28349         (vsubq_u8): Likewise.
28350         (vsubq_u16): Likewise.
28351         (vsubq_u32): Likewise.
28352         (vsubq_u64): Likewise.
28353         (vand_s8): Likewise.
28354         (vand_s16): Likewise.
28355         (vand_s32): Likewise.
28356         (vand_u8): Likewise.
28357         (vand_u16): Likewise.
28358         (vand_u32): Likewise.
28359         (vand_s64): Likewise.
28360         (vand_u64): Likewise.
28361         (vandq_s8): Likewise.
28362         (vandq_s16): Likewise.
28363         (vandq_s32): Likewise.
28364         (vandq_s64): Likewise.
28365         (vandq_u8): Likewise.
28366         (vandq_u16): Likewise.
28367         (vandq_u32): Likewise.
28368         (vandq_u64): Likewise.
28369         (vorr_s8): Likewise.
28370         (vorr_s16): Likewise.
28371         (vorr_s32): Likewise.
28372         (vorr_u8): Likewise.
28373         (vorr_u16): Likewise.
28374         (vorr_u32): Likewise.
28375         (vorr_s64): Likewise.
28376         (vorr_u64): Likewise.
28377         (vorrq_s8): Likewise.
28378         (vorrq_s16): Likewise.
28379         (vorrq_s32): Likewise.
28380         (vorrq_s64): Likewise.
28381         (vorrq_u8): Likewise.
28382         (vorrq_u16): Likewise.
28383         (vorrq_u32): Likewise.
28384         (vorrq_u64): Likewise.
28385         (veor_s8): Likewise.
28386         (veor_s16): Likewise.
28387         (veor_s32): Likewise.
28388         (veor_u8): Likewise.
28389         (veor_u16): Likewise.
28390         (veor_u32): Likewise.
28391         (veor_s64): Likewise.
28392         (veor_u64): Likewise.
28393         (veorq_s8): Likewise.
28394         (veorq_s16): Likewise.
28395         (veorq_s32): Likewise.
28396         (veorq_s64): Likewise.
28397         (veorq_u8): Likewise.
28398         (veorq_u16): Likewise.
28399         (veorq_u32): Likewise.
28400         (veorq_u64): Likewise.
28401         (vbic_s8): Likewise.
28402         (vbic_s16): Likewise.
28403         (vbic_s32): Likewise.
28404         (vbic_u8): Likewise.
28405         (vbic_u16): Likewise.
28406         (vbic_u32): Likewise.
28407         (vbic_s64): Likewise.
28408         (vbic_u64): Likewise.
28409         (vbicq_s8): Likewise.
28410         (vbicq_s16): Likewise.
28411         (vbicq_s32): Likewise.
28412         (vbicq_s64): Likewise.
28413         (vbicq_u8): Likewise.
28414         (vbicq_u16): Likewise.
28415         (vbicq_u32): Likewise.
28416         (vbicq_u64): Likewise.
28417         (vorn_s8): Likewise.
28418         (vorn_s16): Likewise.
28419         (vorn_s32): Likewise.
28420         (vorn_u8): Likewise.
28421         (vorn_u16): Likewise.
28422         (vorn_u32): Likewise.
28423         (vorn_s64): Likewise.
28424         (vorn_u64): Likewise.
28425         (vornq_s8): Likewise.
28426         (vornq_s16): Likewise.
28427         (vornq_s32): Likewise.
28428         (vornq_s64): Likewise.
28429         (vornq_u8): Likewise.
28430         (vornq_u16): Likewise.
28431         (vornq_u32): Likewise.
28432         (vornq_u64): Likewise.
28433
28434 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28435
28436         * wide-int.cc (UTItype): Define.
28437         (UDWtype): Define for appropriate W_TYPE_SIZE.
28438
28439 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
28440
28441         PR tree-optimization/59100
28442         * tree-ssa-phiopt.c: Include tree-inline.h.
28443         (neutral_element_p, absorbing_element_p): New functions.
28444         (value_replacement): Handle conditional binary operations with a
28445         neutral or absorbing element.
28446
28447 2014-05-08  Richard Biener  <rguenther@suse.de>
28448
28449         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
28450         folding the expression.
28451         (valueize_expr): Remove.
28452         (visit_reference_op_load): Do not valueize the result of
28453         vn_get_expr_for.
28454         (simplify_binary_expression): Likewise.
28455         (simplify_unary_expression): Likewise.
28456
28457 2014-05-08  Richard Biener  <rguenther@suse.de>
28458
28459         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
28460         looking at TYPE_ARG_TYPES.
28461
28462 2014-05-08  Richard Biener  <rguenther@suse.de>
28463
28464         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
28465         pointer propagation special-case.
28466
28467 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
28468
28469         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
28470         core part of address expressions.
28471
28472 2014-05-08  Alan Modra  <amodra@gmail.com>
28473
28474         PR target/60737
28475         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
28476         loads and stores when -mno-strict-align at any alignment.
28477         (expand_block_clear): Similarly.  Also correct calculation of
28478         instruction count.
28479
28480 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28481
28482         PR middle-end/39246
28483         * tree-complex.c (expand_complex_move): Keep line info when expanding
28484         complex move.
28485         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
28486         of complex expression. Use new argument to display correct location
28487         for values coming from phi statement.
28488         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
28489         (warn_uninitialized_phi): Pass location of phi argument to
28490         warn_uninit.
28491         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
28492         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
28493
28494 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
28495
28496         * config/rs6000/predicates.md (indexed_address_mem): New.
28497         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
28498         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
28499         fpstore_ux, fpstore_u.
28500         (sign_extend, indexed, update): New.
28501         (cell_micro): Adjust.
28502         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
28503         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
28504         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
28505         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
28506         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
28507         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
28508         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
28509         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
28510         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
28511         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
28512         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
28513         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
28514         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
28515         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
28516         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
28517
28518         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
28519         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
28520         *vsx_extract_<mode>_store): Adjust.
28521         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
28522         is_cracked_insn, insn_must_be_first_in_group,
28523         insn_must_be_last_in_group): Adjust.
28524
28525         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
28526         Adjust.
28527         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
28528         ppc440-fpstore): Adjust.
28529         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
28530         ppc476-fpstore): Adjust.
28531         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
28532         ppc601-fpstore): Adjust.
28533         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
28534         Adjust.
28535         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
28536         Adjust.
28537         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
28538         ppc7450-fpstore): Adjust.
28539         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
28540         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
28541         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
28542         Adjust.
28543         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
28544         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
28545         cell-fpstore, cell-fpstore-update): Adjust.
28546         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
28547         ppce300c3_store, ppce300c3_fpstore): Adjust.
28548         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
28549         e500mc_fpstore): Adjust.
28550         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
28551         e500mc64_store, e500mc64_fpstore): Adjust.
28552         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
28553         e5500_fpstore): Adjust.
28554         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
28555         e6500_fpstore): Adjust.
28556         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
28557         Adjust.
28558         * config/rs6000/power4.md (power4-load, power4-load-ext,
28559         power4-load-ext-update, power4-load-ext-update-indexed,
28560         power4-load-update-indexed, power4-load-update, power4-fpload,
28561         power4-fpload-update, power4-store, power4-store-update,
28562         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
28563         Adjust.
28564         * config/rs6000/power5.md (power5-load, power5-load-ext,
28565         power5-load-ext-update, power5-load-ext-update-indexed,
28566         power5-load-update-indexed, power5-load-update, power5-fpload,
28567         power5-fpload-update, power5-store, power5-store-update,
28568         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
28569         Adjust.
28570         * config/rs6000/power6.md (power6-load, power6-load-ext,
28571         power6-load-update, power6-load-update-indexed,
28572         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
28573         power6-fpload-update, power6-store, power6-store-update,
28574         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
28575         Adjust.
28576         * config/rs6000/power7.md (power7-load, power7-load-ext,
28577         power7-load-update, power7-load-update-indexed,
28578         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
28579         power7-fpload-update, power7-store, power7-store-update,
28580         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
28581         Adjust.
28582         * config/rs6000/power8.md (power8-load, power8-load-update,
28583         power8-load-ext, power8-load-ext-update, power8-fpload,
28584         power8-fpload-update, power8-store, power8-store-update-indexed,
28585         power8-fpstore, power8-fpstore-update): Adjust.
28586         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
28587         Adjust.
28588         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
28589         titan_lsu_store, titan_lsu_fpstore): Adjust.
28590         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
28591
28592 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
28593
28594         PR target/60884
28595         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
28596         unrolled byte insns.  Emit address increments after move insns.
28597
28598 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
28599
28600         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
28601         const_gimple, rather than a gimple.
28602         (gimple_call_builtin_p): Likewise, for the three variants.
28603
28604         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
28605         (gimple_call_builtin_p): Likewise, for the three variants.
28606
28607 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28608
28609         PR tree-optimization/61095
28610         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
28611
28612 2014-05-07  Richard Biener  <rguenther@suse.de>
28613
28614         PR tree-optimization/61034
28615         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
28616         (maybe_skip_until): Use translate to take into account
28617         lattices when trying to do disambiguations.
28618         (get_continuation_for_phi_1): Likewise.
28619         (get_continuation_for_phi): Adjust for added translate arguments.
28620         (walk_non_aliased_vuses): Likewise.
28621         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
28622         (walk_non_aliased_vuses): Likewise.
28623         (call_may_clobber_ref_p_1): Declare.
28624         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
28625         calls.  Stop early if we are only supposed to disambiguate.
28626         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
28627
28628 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
28629
28630         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
28631         Emit an error when the function has arguments.
28632
28633 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
28634
28635         * cfgloop.h (unswitch_loops): Remove.
28636         * doc/passes.texi: Remove references to loop-unswitch.c
28637         * timevar.def (TV_LOOP_UNSWITCH): Remove.
28638
28639 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
28640
28641         * tree-vect-data-refs.c (vect_grouped_load_supported): New
28642         check for loads group of length 3.
28643         (vect_permute_load_chain): New permutations for loads group of
28644         length 3.
28645         * tree-vect-stmts.c (vect_model_load_cost): Change cost
28646         of vec_perm_shuffle for the new permutations.
28647
28648 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
28649
28650         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
28651         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
28652         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
28653         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
28654         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
28655         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
28656         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
28657         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
28658
28659 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
28660
28661         * loop-unswitch.c: Delete.
28662
28663 2014-05-07  Richard Biener  <rguenther@suse.de>
28664
28665         * config.gcc: Always set need_64bit_hwint to yes.
28666
28667 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
28668
28669         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
28670         of using optimize_size.
28671
28672 2014-05-06  Mike Stump  <mikestump@comcast.net>
28673
28674         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
28675
28676 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
28677
28678         * config/i386/sse.md (*mov<mode>_internal)
28679         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
28680         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
28681         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
28682         (*<code><mode>3, *andnot<mode>3<mask_name>)
28683         (<mask_codefor><code><mode>3<mask_name>): Only consider
28684         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
28685
28686 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
28687
28688         Revert:
28689         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
28690
28691         * lra-constraints.c (valid_address_p): Move earlier in file.
28692         Add a constraint argument to the address_info version.
28693         (satisfies_memory_constraint_p): New function.
28694         (satisfies_address_constraint_p): Likewise.
28695         (process_alt_operands, curr_insn_transform): Use them.
28696         (process_address): Pass the constraint to valid_address_p when
28697         checking address operands.
28698
28699 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
28700
28701         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
28702         to their respective blocks.  Fix inadvertent use of "node".
28703
28704 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
28705
28706         * emit-rtl.c (init_derived_machine_modes): New functionm, split
28707         out from...
28708         (init_emit_once): ...here.
28709         * rtl.h (init_derived_machine_modes): Declare.
28710         * toplev.c (do_compile): Call it even if no_backend.
28711
28712 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
28713             Mike Stump  <mikestump@comcast.net>
28714             Richard Sandiford  <rdsandiford@googlemail.com>
28715             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28716
28717         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
28718         (rtx_equal_for_memref_p): Update comment.
28719         (adjust_offset_for_component_ref): Use wide-int interfaces.
28720         * builtins.c (get_object_alignment_2): Likewise.
28721         (c_readstr): Likewise.
28722         (target_char_cast): Add comment.
28723         (determine_block_size): Use wide-int interfaces.
28724         (expand_builtin_signbit): Likewise.
28725         (fold_builtin_int_roundingfn): Likewise.
28726         (fold_builtin_bitop): Likewise.
28727         (fold_builtin_bswap): Likewise.
28728         (fold_builtin_logarithm): Use signop.
28729         (fold_builtin_pow): Likewise.
28730         (fold_builtin_memory_op): Use wide-int interfaces.
28731         (fold_builtin_object_size): Likewise.
28732         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
28733         nb_iterations_estimate.
28734         (record_niter_bound): Use wide-int interfaces.
28735         (get_estimated_loop_iterations_int): Likewise.
28736         (get_estimated_loop_iterations): Likewise.
28737         (get_max_loop_iterations): Likewise.
28738         * cfgloop.h: Include wide-int.h.
28739         (struct nb_iter_bound): Change bound to widest_int.
28740         (struct loop): Change nb_iterations_upper_bound and
28741         nb_iterations_estimate to widest_int.
28742         (record_niter_bound): Switch to use widest_int.
28743         (get_estimated_loop_iterations): Likewise.
28744         (get_max_loop_iterations): Likewise.
28745         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
28746         update for wide-int.
28747         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
28748         * combine.c (try_combine): Likewise.
28749         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
28750         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
28751         interfaces.
28752         (aarch64_float_const_representable_p): Likewise.
28753         * config/arc/arc.c: Include wide-int.h.
28754         (arc_can_use_doloop_p): Use wide-int interfaces.
28755         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
28756         (vfp3_const_double_index): Likewise.
28757         * config/avr/avr.c (avr_out_round): Likewise.
28758         (avr_fold_builtin): Likewise.
28759         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
28760         (bfin_can_use_doloop_p): Likewise.
28761         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
28762         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
28763         * config/i386/i386.c: Include wide-int.h.
28764         (ix86_data_alignment): Use wide-int interfaces.
28765         (ix86_local_alignment): Likewise.
28766         (ix86_emit_swsqrtsf): Update real_from_integer.
28767         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
28768         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
28769         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
28770         (zero_constant): Likewise.
28771         (input_operand): Likewise.
28772         (splat_input_operand): Likewise.
28773         (non_logical_cint_operand): Change const_double to const_wide_int.
28774         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
28775         (easy_altivec_constant): Remove comment.
28776         (paired_expand_vector_init): Use CONSTANT_P.
28777         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
28778         (rs6000_emit_move): Update checks.
28779         (rs6000_aggregate_candidate): Use wide-int interfaces.
28780         (rs6000_expand_ternop_builtin): Likewise.
28781         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
28782         (rs6000_assemble_integer): Likewise.
28783         (rs6000_hash_constant): Likewise.
28784         (output_toc): Likewise.
28785         (rs6000_rtx_costs): Likewise.
28786         (rs6000_emit_swrsqrt); Update call to real_from_integer.
28787         * config/rs6000/rs6000-c.c: Include wide-int.h.
28788         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
28789         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
28790         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
28791         Handle CONST_WIDE_INT.
28792         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
28793         Use tree_fits_uhwi_p.
28794         * config/sparc/sparc.c: Include wide-int.h.
28795         (sparc_fold_builtin): Use wide-int interfaces.
28796         * config/vax/vax.c: Include wide-int.h.
28797         (vax_float_literal): Use real_from_integer.
28798         * coretypes.h (struct hwivec_def): New.
28799         (hwivec): New.
28800         (const_hwivec): New.
28801         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
28802         (equiv_constant): Handle CONST_WIDE_INT.
28803         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
28804         (cselib_hash_rtx): Handle CONST_WIDE_INT.
28805         * dbxout.c (stabstr_U): Use wide-int interfaces.
28806         (dbxout_type): Update to use cst_fits_shwi_p.
28807         * defaults.h (LOG2_BITS_PER_UNIT): Define.
28808         (TARGET_SUPPORTS_WIDE_INT): Add default.
28809         * dfp.c: Include wide-int.h.
28810         (decimal_real_to_integer2): Use wide-int interfaces and rename to
28811         decimal_real_to_integer.
28812         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
28813         decimal_real_to_integer.
28814         * doc/generic.texi (Constant expressions): Update for wide_int.
28815         * doc/rtl.texi (const_double): Likewise.
28816         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
28817         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
28818         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
28819         (REAL_VALUE_FROM_INT): Remove.
28820         (TARGET_SUPPORTS_WIDE_INT): New.
28821         * doc/tm.texi: Regenerate.
28822         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
28823         * double-int.h: Include wide-int.h.
28824         (struct wi::int_traits): New.
28825         * dwarf2out.c (get_full_len): New.
28826         (dw_val_equal_p): Add case dw_val_class_wide_int.
28827         (size_of_loc_descr): Likewise.
28828         (output_loc_operands): Likewise.
28829         (insert_double): Remove.
28830         (insert_wide_int): New.
28831         (add_AT_wide): New.
28832         (print_die): Add case dw_val_class_wide_int.
28833         (attr_checksum): Likewise.
28834         (attr_checksum_ordered): Likewise.
28835         (same_dw_val_p): Likewise.
28836         (size_of_die): Likewise.
28837         (value_format): Likewise.
28838         (output_die): Likewise.
28839         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
28840         Use wide-int.
28841         (clz_loc_descriptor): Use wide-int interfaces.
28842         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
28843         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
28844         (round_up_to_align): Use wide-int interfaces.
28845         (field_byte_offset): Likewise.
28846         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
28847         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
28848         CONST_DOUBLE handling.  Use wide-int interfaces.
28849         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
28850         (gen_enumeration_type_die): Use add_AT_wide.
28851         (hash_loc_operands): Add case dw_val_class_wide_int.
28852         (compare_loc_operands): Likewise.
28853         * dwarf2out.h: Include wide-int.h.
28854         (wide_int_ptr): New.
28855         (enum dw_val_class): Add dw_val_class_wide_int.
28856         (struct dw_val_struct): Add val_wide.
28857         * emit-rtl.c (const_wide_int_htab): New.
28858         (const_wide_int_htab_hash): New.
28859         (const_wide_int_htab_eq): New.
28860         (lookup_const_wide_int): New.
28861         (const_double_htab_hash): Use wide-int interfaces.
28862         (const_double_htab_eq): Likewise.
28863         (rtx_to_double_int): Conditionally compile for wide-int.
28864         (immed_double_int_const): Rename to immed_wide_int_const and
28865         update for wide-int.
28866         (immed_double_const): Conditionally compile for wide-int.
28867         (init_emit_once): Use wide-int interfaces.
28868         * explow.c (plus_constant): Likewise.
28869         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
28870         (lshift_value): Use wide-int interfaces.
28871         (expand_mult): Likewise.
28872         (choose_multiplier): Likewise.
28873         (expand_smod_pow2): Likewise.
28874         (make_tree): Likewise.
28875         * expr.c (convert_modes): Consolidate handling of constants.
28876         Use wide-int interfaces.
28877         (emit_group_load_1): Add note.
28878         (store_expr): Update comment.
28879         (get_inner_reference): Use wide-int interfaces.
28880         (expand_constructor): Update comment.
28881         (expand_expr_real_2): Use wide-int interfaces.
28882         (expand_expr_real_1): Likewise.
28883         (reduce_to_bit_field_precision): Likewise.
28884         (const_vector_from_tree): Likewise.
28885         * final.c: Include wide-int-print.h.
28886         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
28887         * fixed-value.c: Include wide-int.h.
28888         (fixed_from_string): Use wide-int interfaces.
28889         (fixed_to_decimal): Likewise.
28890         (fixed_convert_from_real): Likewise.
28891         (real_convert_from_fixed): Likewise.
28892         * fold-const.h (mem_ref_offset): Return an offset_int.
28893         (div_if_zero_remainder): Remove code parameter.
28894         * fold-const.c (div_if_zero_remainder): Remove code parameter.
28895         Use wide-int interfaces.
28896         (may_negate_without_overflow_p): Use wide-int interfaces.
28897         (negate_expr_p): Likewise.
28898         (fold_negate_expr): Likewise.
28899         (int_const_binop_1): Likewise.
28900         (const_binop): Likewise.
28901         (fold_convert_const_int_from_int): Likewise.
28902         (fold_convert_const_int_from_real): Likewise.
28903         (fold_convert_const_int_from_fixed): Likewise.
28904         (fold_convert_const_fixed_from_int): Likewise.
28905         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
28906         (sign_bit_p): Use wide-int interfaces.
28907         (make_range_step): Likewise.
28908         (build_range_check): Likewise.  Pass an integer of the correct type
28909         instead of using integer_one_node.
28910         (range_predecessor): Pass an integer of the correct type instead
28911         of using integer_one_node.
28912         (range_successor): Likewise.
28913         (merge_ranges): Likewise.
28914         (unextend): Use wide-int interfaces.
28915         (extract_muldiv_1): Likewise.
28916         (fold_div_compare): Likewise.
28917         (fold_single_bit_test): Likewise.
28918         (fold_sign_changed_comparison): Likewise.
28919         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
28920         (fold_plusminus_mult_expr): Use wide-int interfaces.
28921         (native_encode_int): Likewise.
28922         (native_interpret_int): Likewise.
28923         (fold_unary_loc): Likewise.
28924         (pointer_may_wrap_p): Likewise.
28925         (size_low_cst): Likewise.
28926         (mask_with_tz): Likewise.
28927         (fold_binary_loc): Likewise.
28928         (fold_ternary_loc): Likewise.
28929         (multiple_of_p): Likewise.
28930         (tree_call_nonnegative_warnv_p): Update calls to
28931         tree_int_cst_min_precision and real_from_integer.
28932         (fold_negate_const): Use wide-int interfaces.
28933         (fold_abs_const): Likewise.
28934         (fold_relational_const): Use tree_int_cst_lt.
28935         (round_up_loc): Use wide-int interfaces.
28936         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
28937         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
28938         * gengtype.c: Remove include of double-int.h.
28939         (do_typedef): Use wide-int interfaces.
28940         (open_base_files): Add wide-int.h.
28941         (main): Add offset_int and widest_int typedefs.
28942         * gengtype-lex.l: Handle "^".
28943         (CXX_KEYWORD): Add "static".
28944         * gengtype-parse.c (require3): New.
28945         (require_template_declaration): Handle constant template arguments
28946         and nested templates.
28947         * gengtype-state.c: Don't include "double-int.h".
28948         * genpreds.c (write_one_predicate_function): Update comment.
28949         (write_tm_constrs_h): Add check for hval and lval use in
28950         CONST_WIDE_INT.
28951         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
28952         (add_to_sequence): Likewise.
28953         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
28954         and const_double_operand.
28955         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
28956         interfaces.
28957         * gimple-fold.c (get_base_constructor): Likewise.
28958         (fold_array_ctor_reference): Likewise.
28959         (fold_nonarray_ctor_reference): Likewise.
28960         (fold_const_aggregate_ref_1): Likewise.
28961         (gimple_val_nonnegative_real_p): Likewise.
28962         (gimple_fold_indirect_ref): Likewise.
28963         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
28964         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
28965         (struct slsr_cand_d): Change index to be widest_int.
28966         (struct incr_info_d): Change incr to be widest_int.
28967         (alloc_cand_and_find_basis): Use wide-int interfaces.
28968         (slsr_process_phi): Likewise.
28969         (backtrace_base_for_ref): Likewise.  Return a widest_int.
28970         (restructure_reference): Take a widest_int instead of a double_int.
28971         (slsr_process_ref): Use wide-int interfaces.
28972         (create_mul_ssa_cand): Likewise.
28973         (create_mul_imm_cand): Likewise.
28974         (create_add_ssa_cand): Likewise.
28975         (create_add_imm_cand): Take a widest_int instead of a double_int.
28976         (slsr_process_add): Use wide-int interfaces.
28977         (slsr_process_cast): Likewise.
28978         (slsr_process_copy): Likewise.
28979         (dump_candidate): Likewise.
28980         (dump_incr_vec): Likewise.
28981         (replace_ref): Likewise.
28982         (cand_increment): Likewise.  Return a widest_int.
28983         (cand_abs_increment): Likewise.
28984         (replace_mult_candidate): Take a widest_int instead of a double_int.
28985         (replace_unconditional_candidate): Use wide-int interfaces.
28986         (incr_vec_index): Take a widest_int instead of a double_int.
28987         (create_add_on_incoming_edge): Likewise.
28988         (create_phi_basis): Use wide-int interfaces.
28989         (replace_conditional_candidate): Likewise.
28990         (record_increment): Take a widest_int instead of a double_int.
28991         (record_phi_increments): Use wide-int interfaces.
28992         (phi_incr_cost): Take a widest_int instead of a double_int.
28993         (lowest_cost_path): Likewise.
28994         (total_savings): Likewise.
28995         (analyze_increments): Use wide-int interfaces.
28996         (ncd_with_phi): Take a widest_int instead of a double_int.
28997         (ncd_of_cand_and_phis): Likewise.
28998         (nearest_common_dominator_for_cands): Likewise.
28999         (insert_initializers): Use wide-int interfaces.
29000         (all_phi_incrs_profitable): Likewise.
29001         (replace_one_candidate): Likewise.
29002         (replace_profitable_candidates): Likewise.
29003         * godump.c: Include wide-int-print.h.
29004         (go_output_typedef): Use wide-int interfaces.
29005         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
29006         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
29007         (build_loop_iteration_domains): Likewise.
29008         * hooks.h: Include wide-int.h rather than double-int.h.
29009         (hook_bool_dint_dint_uint_bool_true): Delete.
29010         (hook_bool_wint_wint_uint_bool_true): Declare.
29011         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
29012         (hook_bool_wint_wint_uint_bool_true): New.
29013         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
29014         interfaces.
29015         (ubsan_expand_si_overflow_mul_check): Likewise.
29016         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
29017         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
29018         (get_ancestor_addr_info): Likewise.
29019         (ipa_modify_call_arguments): Likewise.
29020         * loop-doloop.c (doloop_modify): Likewise.
29021         (doloop_optimize): Likewise.
29022         * loop-iv.c (iv_number_of_iterations): Likewise.
29023         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
29024         (unroll_loop_constant_iterations): Likewise.
29025         (decide_unroll_runtime_iterations): Likewise.
29026         (unroll_loop_runtime_iterations): Likewise.
29027         (decide_peel_simple): Likewise.
29028         (decide_unroll_stupid): Likewise.
29029         * lto-streamer-in.c (streamer_read_wi): Add.
29030         (input_cfg): Use wide-int interfaces.
29031         (lto_input_tree_1): Likewise.
29032         * lto-streamer-out.c (streamer_write_wi): Add.
29033         (hash_tree): Use wide-int interfaces.
29034         (output_cfg): Likewise.
29035         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
29036         (GTFILES): Add wide-int.h and signop.h.
29037         (TAGS): Look for .cc files too.
29038         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
29039         * optabs.c (expand_subword_shift): Likewise.
29040         (expand_doubleword_shift): Likewise.
29041         (expand_absneg_bit): Likewise.
29042         (expand_copysign_absneg): Likewise.
29043         (expand_copysign_bit): Likewise.
29044         * postreload.c (reload_cse_simplify_set): Likewise.
29045         * predict.c (predict_iv_comparison): Likewise.
29046         * pretty-print.h: Include wide-int-print.h.
29047         (pp_wide_int) New.
29048         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
29049         * print-tree.c: Include wide-int-print.h.
29050         (print_node_brief): Use wide-int interfaces.
29051         (print_node): Likewise.
29052         * read-rtl.c (validate_const_wide_int): New.
29053         (read_rtx_code): Add CONST_WIDE_INT case.
29054         * real.c: Include wide-int.h.
29055         (real_to_integer2): Delete.
29056         (real_to_integer): New function, returning a wide_int.
29057         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
29058         (ten_to_ptwo): Update call to real_from_integer.
29059         (real_digit): Likewise.
29060         * real.h: Include signop.h, wide-int.h and insn-modes.h.
29061         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
29062         (REAL_VALUE_TO_INT): Delete.
29063         (real_to_integer): Declare a wide-int form.
29064         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
29065         * recog.c (const_int_operand): Improve comment.
29066         (const_scalar_int_operand): New.
29067         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
29068         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
29069         (split_double): Likewise.
29070         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
29071         (rtx_size): Likewise.
29072         (rtx_alloc_stat_v): New.
29073         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
29074         (cwi_output_hex): New.
29075         (iterative_hash_rtx): Handle CONST_WIDE_INT.
29076         (cwi_check_failed_bounds): New.
29077         * rtl.def (CONST_WIDE_INT): New.
29078         * rtl.h: Include <utility> and wide-int.h.
29079         (struct hwivec_def): New.
29080         (CWI_GET_NUM_ELEM): New.
29081         (CWI_PUT_NUM_ELEM): New.
29082         (struct rtx_def): Add num_elem and hwiv.
29083         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
29084         (CASE_CONST_UNIQUE): Likewise.
29085         (CASE_CONST_ANY): Likewise.
29086         (CONST_SCALAR_INT_P): Likewise.
29087         (CONST_WIDE_INT_P): New.
29088         (CWI_ELT): New.
29089         (HWIVEC_CHECK): New.
29090         (cwi_check_failed_bounds): New.
29091         (CWI_ELT): New.
29092         (HWIVEC_CHECK): New.
29093         (CONST_WIDE_INT_VEC) New.
29094         (CONST_WIDE_INT_NUNITS) New.
29095         (CONST_WIDE_INT_ELT) New.
29096         (rtx_mode_t): New type.
29097         (wi::int_traits <rtx_mode_t>): New.
29098         (wi::shwi): New.
29099         (wi::min_value): New.
29100         (wi::max_value): New.
29101         (rtx_alloc_v) New.
29102         (const_wide_int_alloc): New.
29103         (immed_wide_int_const): New.
29104         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
29105         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
29106         * signop.h: New file.
29107         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
29108         (simplify_const_unary_operation): Use wide-int interfaces.
29109         (simplify_binary_operation_1): Likewise.
29110         (simplify_const_binary_operation): Likewise.
29111         (simplify_const_relational_operation): Likewise.
29112         (simplify_immed_subreg): Likewise.
29113         * stmt.c (expand_case): Likewise.
29114         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
29115         signop rather than a bool.
29116         * stor-layout.c (layout_type): Use wide-int interfaces.
29117         (initialize_sizetypes): Update calls to
29118         set_min_and_max_values_for_integral_type.
29119         (set_min_and_max_values_for_integral_type): Take a signop rather
29120         than a bool.  Use wide-int interfaces.
29121         (fixup_signed_type): Update accordingly.  Remove
29122         HOST_BITS_PER_DOUBLE_INT limit.
29123         (fixup_unsigned_type): Likewise.
29124         * system.h (STATIC_CONSTANT_P): New.
29125         (STATIC_ASSERT): New.
29126         * target.def (can_use_doloop_p): Take widest_ints rather than
29127         double_ints.
29128         * target.h: Include wide-int.h rather than double-int.h.
29129         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
29130         than double_ints.
29131         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
29132         rather than INT_CST_LT_UNSIGNED.
29133         (can_use_doloop_if_innermost): Take widest_ints rather than
29134         double_ints.
29135         * tree-affine.c: Include wide-int-print.h.
29136         (double_int_ext_for_comb): Delete.
29137         (wide_int_ext_for_comb): New.
29138         (aff_combination_zero): Use wide-int interfaces.
29139         (aff_combination_const): Take a widest_int instead of a double_int.
29140         (aff_combination_elt): Use wide-int interfaces.
29141         (aff_combination_scale): Take a widest_int instead of a double_int.
29142         (aff_combination_add_elt): Likewise.
29143         (aff_combination_add_cst): Likewise.
29144         (aff_combination_add): Use wide-int interfaces.
29145         (aff_combination_convert): Likewise.
29146         (tree_to_aff_combination): Likewise.
29147         (add_elt_to_tree): Take a widest_int instead of a double_int.
29148         (aff_combination_to_tree): Use wide-int interfaces.
29149         (aff_combination_remove_elt): Likewise.
29150         (aff_combination_add_product): Take a widest_int instead of
29151         a double_int.
29152         (aff_combination_mult): Use wide-int interfaces.
29153         (aff_combination_expand): Likewise.
29154         (double_int_constant_multiple_p): Delete.
29155         (wide_int_constant_multiple_p): New.
29156         (aff_combination_constant_multiple_p): Take a widest_int pointer
29157         instead of a double_int pointer.
29158         (print_aff): Use wide-int interfaces.
29159         (get_inner_reference_aff): Take a widest_int pointer
29160         instead of a double_int pointer.
29161         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
29162         * tree-affine.h: Include wide-int.h.
29163         (struct aff_comb_elt): Change type of coef to widest_int.
29164         (struct affine_tree_combination): Change type of offset to widest_int.
29165         (double_int_ext_for_comb): Delete.
29166         (wide_int_ext_for_comb): New.
29167         (aff_combination_const): Use widest_int instead of double_int.
29168         (aff_combination_scale): Likewise.
29169         (aff_combination_add_elt): Likewise.
29170         (aff_combination_constant_multiple_p): Likewise.
29171         (get_inner_reference_aff): Likewise.
29172         (aff_comb_cannot_overlap_p): Likewise.
29173         (aff_combination_zero_p): Use wide-int interfaces.
29174         * tree.c: Include tree.h.
29175         (init_ttree): Use make_int_cst.
29176         (tree_code_size): Removed code for INTEGER_CST case.
29177         (tree_size): Add INTEGER_CST case.
29178         (make_node_stat): Update comment.
29179         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
29180         (build_int_cst_type): Use wide-int interfaces.
29181         (double_int_to_tree): Likewise.
29182         (double_int_fits_to_tree_p): Delete.
29183         (force_fit_type_double): Delete.
29184         (force_fit_type): New.
29185         (int_cst_hash_hash): Use wide-int interfaces.
29186         (int_cst_hash_eq): Likewise.
29187         (build_int_cst_wide): Delete.
29188         (wide_int_to_tree): New.
29189         (cache_integer_cst): Use wide-int interfaces.
29190         (build_low_bits_mask): Likewise.
29191         (cst_and_fits_in_hwi): Likewise.
29192         (real_value_from_int_cst): Likewise.
29193         (make_int_cst_stat): New.
29194         (integer_zerop): Use wide_int interfaces.
29195         (integer_onep): Likewise.
29196         (integer_all_onesp): Likewise.
29197         (integer_pow2p): Likewise.
29198         (integer_nonzerop): Likewise.
29199         (tree_log2): Likewise.
29200         (tree_floor_log2): Likewise.
29201         (tree_ctz): Likewise.
29202         (int_size_in_bytes): Likewise.
29203         (mem_ref_offset): Return an offset_int rather than a double_int.
29204         (build_type_attribute_qual_variant): Use wide_int interfaces.
29205         (type_hash_eq): Likewise
29206         (tree_int_cst_equal): Likewise.
29207         (tree_int_cst_lt): Delete.
29208         (tree_int_cst_compare): Likewise.
29209         (tree_fits_shwi_p): Use wide_int interfaces.
29210         (tree_fits_uhwi_p): Likewise.
29211         (tree_int_cst_sign_bit): Likewise.
29212         (tree_int_cst_sgn): Likewise.
29213         (tree_int_cst_min_precision): Take a signop rather than a bool.
29214         (simple_cst_equal): Use wide_int interfaces.
29215         (compare_tree_int): Likewise.
29216         (iterative_hash_expr): Likewise.
29217         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
29218         INT_CST_LT.
29219         (get_type_static_bounds): Use wide_int interfaces.
29220         (tree_int_cst_elt_check_failed): New.
29221         (build_common_tree_nodes): Reordered to set prec before filling in
29222         value.
29223         (int_cst_value): Check cst_and_fits_in_hwi.
29224         (widest_int_cst_value): Use wide_int interfaces.
29225         (upper_bound_in_type): Likewise.
29226         (lower_bound_in_type): Likewise.
29227         (num_ending_zeros): Likewise.
29228         (drop_tree_overflow): Likewise.
29229         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
29230         (gen_conditions_for_pow_cst_base): Likewise.
29231         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
29232         (group_case_labels_stmt): Use wide-int interfaces.
29233         (verify_gimple_assign_binary): Likewise.
29234         (print_loop): Likewise.
29235         * tree-chrec.c (tree_fold_binomial): Likewise.
29236         * tree-core.h (struct tree_base): Add int_length.
29237         (struct tree_int_cst): Change rep of value.
29238         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
29239         (dr_may_alias_p): Likewise.
29240         (max_stmt_executions_tree): Likewise.
29241         * tree.def (INTEGER_CST): Update comment.
29242         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
29243         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
29244         * tree-dump.c: Include wide-int.h and wide-int-print.h.
29245         (dequeue_and_dump): Use wide-int interfaces.
29246         * tree.h: Include wide-int.h.
29247         (NULL_TREE): Moved to earlier loc in file.
29248         (TREE_INT_CST_ELT_CHECK): New.
29249         (tree_int_cst_elt_check_failed): New.
29250         (TYPE_SIGN): New.
29251         (TREE_INT_CST): Delete.
29252         (TREE_INT_CST_LOW): Use wide-int interfaces.
29253         (TREE_INT_CST_HIGH): Delete.
29254         (TREE_INT_CST_NUNITS): New.
29255         (TREE_INT_CST_EXT_NUNITS): Likewise.
29256         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
29257         (TREE_INT_CST_ELT): Likewise.
29258         (INT_CST_LT): Delete.
29259         (tree_int_cst_elt_check): New (two forms).
29260         (type_code_size): Update comment.
29261         (make_int_cst_stat, make_int_cst): New.
29262         (tree_to_double_int): Delete.
29263         (double_int_fits_to_tree_p): Delete.
29264         (force_fit_type_double): Delete.
29265         (build_int_cstu): Replace with out-of-line function.
29266         (build_int_cst_wide): Delete.
29267         (tree_int_cst_lt): Define inline.
29268         (tree_int_cst_le): New.
29269         (tree_int_cst_compare): Define inline.
29270         (tree_int_cst_min_precision): Take a signop rather than a bool.
29271         (wi::int_traits <const_tree>): New.
29272         (wi::int_traits <tree>): New.
29273         (wi::extended_tree): New.
29274         (wi::int_traits <wi::extended_tree>): New.
29275         (wi::to_widest): New.
29276         (wi::to_offset): New.
29277         (wi::fits_to_tree_p): New.
29278         (wi::min_value): New.
29279         (wi::max_value): New.
29280         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
29281         (copy_tree_body_r): Likewise.
29282         * tree-object-size.c (compute_object_offset): Likewise.
29283         (addr_object_size): Likewise.
29284         * tree-predcom.c: Include wide-int-print.h.
29285         (struct dref_d): Change type of offset to widest_int.
29286         (dump_dref): Call wide-int printer.
29287         (aff_combination_dr_offset): Use wide-int interfaces.
29288         (determine_offset): Take a widest_int pointer rather than a
29289         double_int pointer.
29290         (split_data_refs_to_components): Use wide-int interfaces.
29291         (suitable_component_p): Likewise.
29292         (order_drefs): Likewise.
29293         (add_ref_to_chain): Likewise.
29294         (valid_initializer_p): Likewise.
29295         (determine_roots_comp): Likewise.
29296         * tree-pretty-print.c: Include wide-int-print.h.
29297         (dump_generic_node): Use wide-int interfaces.
29298         * tree-sra.c (sra_ipa_modify_expr): Likewise.
29299         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
29300         (move_fixed_address_to_symbol): Likewise.
29301         (move_hint_to_base): Likewise.
29302         (move_pointer_to_base): Likewise.
29303         (move_variant_to_index): Likewise.
29304         (most_expensive_mult_to_index): Likewise.
29305         (addr_to_parts): Likewise.
29306         (copy_ref_info): Likewise.
29307         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
29308         (indirect_refs_may_alias_p): Likewise.
29309         (stmt_kills_ref_p_1): Likewise.
29310         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
29311         * tree-ssa-ccp.c: Update comment at top of file.  Include
29312         wide-int-print.h.
29313         (struct prop_value_d): Change type of mask to widest_int.
29314         (extend_mask): New function.
29315         (dump_lattice_value): Use wide-int interfaces.
29316         (get_default_value): Likewise.
29317         (set_constant_value): Likewise.
29318         (set_value_varying): Likewise.
29319         (valid_lattice_transition): Likewise.
29320         (set_lattice_value): Likewise.
29321         (value_to_double_int): Delete.
29322         (value_to_wide_int): New.
29323         (get_value_from_alignment): Use wide-int interfaces.
29324         (get_value_for_expr): Likewise.
29325         (do_dbg_cnt): Likewise.
29326         (ccp_finalize): Likewise.
29327         (ccp_lattice_meet): Likewise.
29328         (bit_value_unop_1): Use widest_ints rather than double_ints.
29329         (bit_value_binop_1): Likewise.
29330         (bit_value_unop): Use wide-int interfaces.
29331         (bit_value_binop): Likewise.
29332         (bit_value_assume_aligned): Likewise.
29333         (evaluate_stmt): Likewise.
29334         (ccp_fold_stmt): Likewise.
29335         (visit_cond_stmt): Likewise.
29336         (ccp_visit_stmt): Likewise.
29337         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
29338         (constant_pointer_difference): Likewise.
29339         (associate_pointerplus): Likewise.
29340         (combine_conversions): Likewise.
29341         * tree-ssa-loop.h: Include wide-int.h.
29342         (struct tree_niter_desc): Change type of max to widest_int.
29343         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
29344         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
29345         (remove_redundant_iv_tests): Likewise.
29346         (canonicalize_loop_induction_variables): Likewise.
29347         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
29348         (constant_multiple_of): Take a widest_int pointer instead of
29349         a double_int pointer.
29350         (get_computation_aff): Use wide-int interfaces.
29351         (ptr_difference_cost): Likewise.
29352         (difference_cost): Likewise.
29353         (get_loop_invariant_expr_id): Likewise.
29354         (get_computation_cost_at): Likewise.
29355         (iv_elimination_compare_lt): Likewise.
29356         (may_eliminate_iv): Likewise.
29357         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
29358         instead of double_int.
29359         (max_loop_iterations): Likewise.
29360         (max_stmt_executions): Likewise.
29361         (estimated_stmt_executions): Likewise.
29362         * tree-ssa-loop-niter.c: Include wide-int-print.h.
29363         (split_to_var_and_offset): Use wide-int interfaces.
29364         (determine_value_range): Likewise.
29365         (bound_difference_of_offsetted_base): Likewise.
29366         (bounds_add): Take a widest_int instead of a double_int.
29367         (number_of_iterations_ne_max): Use wide-int interfaces.
29368         (number_of_iterations_ne): Likewise.
29369         (number_of_iterations_lt_to_ne): Likewise.
29370         (assert_loop_rolls_lt): Likewise.
29371         (number_of_iterations_lt): Likewise.
29372         (number_of_iterations_le): Likewise.
29373         (number_of_iterations_cond): Likewise.
29374         (number_of_iterations_exit): Likewise.
29375         (finite_loop_p): Likewise.
29376         (derive_constant_upper_bound_assign): Likewise.
29377         (derive_constant_upper_bound): Return a widest_int.
29378         (derive_constant_upper_bound_ops): Likewise.
29379         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
29380         (record_estimate): Take a widest_int rather than a double_int.
29381         (record_nonwrapping_iv): Use wide-int interfaces.
29382         (double_int_cmp): Delete.
29383         (wide_int_cmp): New.
29384         (bound_index): Take a widest_int rather than a double_int.
29385         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
29386         (maybe_lower_iteration_bound): Likewise.
29387         (estimate_numbers_of_iterations_loop): Likewise.
29388         (estimated_loop_iterations): Take a widest_int pointer than than
29389         a double_int pointer.
29390         (estimated_loop_iterations_int): Use wide-int interfaces.
29391         (max_loop_iterations): Take a widest_int pointer than than
29392         a double_int pointer.
29393         (max_loop_iterations_int): Use wide-int interfaces.
29394         (max_stmt_executions): Take a widest_int pointer than than
29395         a double_int pointer.
29396         (estimated_stmt_executions): Likewise.
29397         (n_of_executions_at_most): Use wide-int interfaces.
29398         (scev_probably_wraps_p): Likewise.
29399         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
29400         to real_to_integer.
29401         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
29402         interfaces.
29403         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
29404         double_ints.  Adjust for trailing_wide_ints <3> representation.
29405         (set_nonzero_bits): Likewise.
29406         (get_range_info): Return wide_ints rather than double_ints.
29407         Adjust for trailing_wide_ints <3> representation.
29408         (get_nonzero_bits): Likewise.
29409         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
29410         representation.
29411         * tree-ssanames.h (struct range_info_def): Replace min, max and
29412         nonzero_bits with a trailing_wide_ints <3>.
29413         (set_range_info): Use wide_int_refs rather than double_ints.
29414         (set_nonzero_bits): Likewise.
29415         (get_range_info): Return wide_ints rather than double_ints.
29416         (get_nonzero_bits): Likewise.
29417         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
29418         * tree-ssa-pre.c (phi_translate_1): Likewise.
29419         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
29420         (acceptable_pow_call): Likewise.
29421         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
29422         interfaces.
29423         (vn_reference_fold_indirect): Likewise.
29424         (vn_reference_maybe_forwprop_address): Likewise.
29425         (valueize_refs_1): Likewise.
29426         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
29427         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
29428         tree_int_cst_lt and tree_int_cst_le.
29429         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
29430         interfaces.
29431         (streamer_alloc_tree): Likewise.
29432         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
29433         (streamer_write_tree_header): Likewise.
29434         (streamer_write_integer_cst): Likewise.
29435         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
29436         (build_constructors): Likewise.
29437         (array_value_type): Likewise.
29438         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
29439         (vect_check_gather): Likewise.
29440         * tree-vect-generic.c (build_replicated_const): Likewise.
29441         (expand_vector_divmod): Likewise.
29442         * tree-vect-loop.c (vect_transform_loop): Likewise.
29443         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29444         (vect_do_peeling_for_alignment): Likewise.
29445         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
29446         * tree-vrp.c: Include wide-int.h.
29447         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
29448         (extract_range_from_assert): Use wide-int interfaces.
29449         (vrp_int_const_binop): Likewise.
29450         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
29451         double_int pointers.
29452         (ranges_from_anti_range): Use wide-int interfaces.
29453         (quad_int_cmp): Delete.
29454         (quad_int_pair_sort): Likewise.
29455         (extract_range_from_binary_expr_1): Use wide-int interfaces.
29456         (extract_range_from_unary_expr_1): Likewise.
29457         (adjust_range_with_scev): Likewise.
29458         (masked_increment): Take and return wide_ints rather than double_ints.
29459         (register_edge_assert_for_2): Use wide-int interfaces.
29460         (check_array_ref): Likewise.
29461         (search_for_addr_array): Likewise.
29462         (maybe_set_nonzero_bits): Likewise.
29463         (union_ranges): Pass an integer of the correct type instead of
29464         using integer_one_node.
29465         (intersect_ranges): Likewise.
29466         (simplify_truth_ops_using_ranges): Likewise.
29467         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
29468         (range_fits_type_p): Likewise.
29469         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
29470         a bool.
29471         (simplify_conversion_using_ranges): Use wide-int interfaces.
29472         (simplify_float_conversion_using_ranges): Likewise.
29473         (vrp_finalize): Likewise.
29474         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
29475         (gimple_stringops_transform): Likewise.
29476         * varasm.c (decode_addr_const): Likewise.
29477         (const_hash_1): Likewise.
29478         (const_rtx_hash_1): Likewise
29479         (output_constant): Likewise.
29480         (array_size_for_constructor): Likewise.
29481         (output_constructor_regular_field): Likewise.
29482         (output_constructor_bitfield): Likewise.
29483         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
29484         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
29485         GENERATOR_FILEs.
29486         * gencheck.c: Define BITS_PER_UNIT.
29487         * wide-int.cc: New.
29488         * wide-int.h: New.
29489         * wide-int-print.cc: New.
29490         * wide-int-print.h: New.
29491
29492 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29493
29494         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
29495
29496 2014-05-06  Richard Biener  <rguenther@suse.de>
29497
29498         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
29499         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
29500         (TODO_verify_all): Adjust.
29501         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
29502         TODO_verify_stmts and TODO_verify_rtl_sharing.
29503         * bb-reorder.c: Likewise.
29504         * cfgexpand.c: Likewise.
29505         * cprop.c: Likewise.
29506         * cse.c: Likewise.
29507         * function.c: Likewise.
29508         * fwprop.c: Likewise.
29509         * gcse.c: Likewise.
29510         * gimple-ssa-isolate-paths.c: Likewise.
29511         * gimple-ssa-strength-reduction.c: Likewise.
29512         * ipa-split.c: Likewise.
29513         * loop-init.c: Likewise.
29514         * loop-unroll.c: Likewise.
29515         * lower-subreg.c: Likewise.
29516         * modulo-sched.c: Likewise.
29517         * postreload-gcse.c: Likewise.
29518         * predict.c: Likewise.
29519         * recog.c: Likewise.
29520         * sched-rgn.c: Likewise.
29521         * store-motion.c: Likewise.
29522         * tracer.c: Likewise.
29523         * trans-mem.c: Likewise.
29524         * tree-call-cdce.c: Likewise.
29525         * tree-cfg.c: Likewise.
29526         * tree-cfgcleanup.c: Likewise.
29527         * tree-complex.c: Likewise.
29528         * tree-eh.c: Likewise.
29529         * tree-emutls.c: Likewise.
29530         * tree-if-conv.c: Likewise.
29531         * tree-into-ssa.c: Likewise.
29532         * tree-loop-distribution.c: Likewise.
29533         * tree-object-size.c: Likewise.
29534         * tree-parloops.c: Likewise.
29535         * tree-pass.h: Likewise.
29536         * tree-sra.c: Likewise.
29537         * tree-ssa-ccp.c: Likewise.
29538         * tree-ssa-copy.c: Likewise.
29539         * tree-ssa-copyrename.c: Likewise.
29540         * tree-ssa-dce.c: Likewise.
29541         * tree-ssa-dom.c: Likewise.
29542         * tree-ssa-dse.c: Likewise.
29543         * tree-ssa-forwprop.c: Likewise.
29544         * tree-ssa-ifcombine.c: Likewise.
29545         * tree-ssa-loop-ch.c: Likewise.
29546         * tree-ssa-loop-ivcanon.c: Likewise.
29547         * tree-ssa-loop.c: Likewise.
29548         * tree-ssa-math-opts.c: Likewise.
29549         * tree-ssa-phiopt.c: Likewise.
29550         * tree-ssa-phiprop.c: Likewise.
29551         * tree-ssa-pre.c: Likewise.
29552         * tree-ssa-reassoc.c: Likewise.
29553         * tree-ssa-sink.c: Likewise.
29554         * tree-ssa-strlen.c: Likewise.
29555         * tree-ssa-tail-merge.c: Likewise.
29556         * tree-ssa-uncprop.c: Likewise.
29557         * tree-switch-conversion.c: Likewise.
29558         * tree-tailcall.c: Likewise.
29559         * tree-vect-generic.c: Likewise.
29560         * tree-vectorizer.c: Likewise.
29561         * tree-vrp.c: Likewise.
29562         * tsan.c: Likewise.
29563         * var-tracking.c: Likewise.
29564         * bt-load.c: Likewise.
29565         * cfgcleanup.c: Likewise.
29566         * combine-stack-adj.c: Likewise.
29567         * combine.c: Likewise.
29568         * compare-elim.c: Likewise.
29569         * config/epiphany/resolve-sw-modes.c: Likewise.
29570         * config/i386/i386.c: Likewise.
29571         * config/mips/mips.c: Likewise.
29572         * config/s390/s390.c: Likewise.
29573         * config/sh/sh_treg_combine.cc: Likewise.
29574         * config/sparc/sparc.c: Likewise.
29575         * dce.c: Likewise.
29576         * dse.c: Likewise.
29577         * final.c: Likewise.
29578         * ifcvt.c: Likewise.
29579         * mode-switching.c: Likewise.
29580         * passes.c: Likewise.
29581         * postreload.c: Likewise.
29582         * ree.c: Likewise.
29583         * reg-stack.c: Likewise.
29584         * regcprop.c: Likewise.
29585         * regrename.c: Likewise.
29586         * web.c: Likewise.
29587
29588 2014-05-06  Richard Biener  <rguenther@suse.de>
29589
29590         PR middle-end/61070
29591         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
29592         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
29593
29594 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
29595
29596         PR ipa/60965
29597         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
29598
29599 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
29600             Tom de Vries  <tom@codesourcery.com>
29601
29602         * target.def (call_fusage_contains_non_callee_clobbers): New
29603         DEFHOOKPOD.
29604         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
29605         Hooks to @menu.
29606         (@node Miscellaneous Register Hooks): New node.
29607         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
29608         * doc/tm.texi: Regenerate.
29609
29610 2014-05-05  Marek Polacek  <polacek@redhat.com>
29611
29612         PR driver/61065
29613         * opts.c (common_handle_option): Call error_at instead of warning_at.
29614
29615 2014-05-05  Richard Biener  <rguenther@suse.de>
29616
29617         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
29618         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
29619         under the TODO_verify_il umbrella.
29620
29621 2014-05-05  Richard Biener  <rguenther@suse.de>
29622
29623         * passes.c (execute_function_todo): Move TODO_verify_flow under
29624         the TODO_verify_ul umbrella.
29625
29626 2014-05-05  Richard Biener  <rguenther@suse.de>
29627
29628         PR middle-end/61010
29629         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
29630         X & CST away from a CST that is the mask of a mode.
29631
29632 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29633
29634         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
29635         int argument to enum machine_mode.
29636         (picochip_class_max_nregs): Ditto.
29637         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
29638         (picochip_class_max_nregs): Ditto.
29639
29640 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29641
29642         * target.def: Add new target hook.
29643         * doc/tm.texi: Regenerate.
29644         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
29645         * targhooks.c (default_keep_leaf_when_profiled): New function.
29646
29647         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
29648         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
29649
29650 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
29651
29652         PR tree-optimization/60363
29653         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
29654         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
29655         (update_destination_phis): New parameter.
29656         (create_edge_and_update_destination_phis): Ditto.
29657         (ssa_fix_duplicate_block_edges): Pass new arguments.
29658         (thread_single_edge): Ditto.
29659
29660 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
29661
29662         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
29663         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
29664         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
29665         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
29666         Use RS6000_BTM_HARD_FLOAT.
29667         (BU_MISC_2): Likewise.
29668         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
29669         RS6000_BTM_HARD_FLOAT.
29670         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
29671         is explicitly used.
29672         (rs6000_invalid_builtin): Add hard floating builtin support.
29673         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
29674         hard float builtins.
29675         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
29676
29677 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
29678
29679         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
29680         Add missing function* argument.
29681
29682 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
29683
29684         * lra-constraints.c (valid_address_p): Move earlier in file.
29685         Add a constraint argument to the address_info version.
29686         (satisfies_memory_constraint_p): New function.
29687         (satisfies_address_constraint_p): Likewise.
29688         (process_alt_operands, curr_insn_transform): Use them.
29689         (process_address): Pass the constraint to valid_address_p when
29690         checking address operands.
29691
29692 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
29693
29694         * config/mips/mips.c (mips_isa_rev): New variable.
29695         (mips_set_architecture): Set it.
29696         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
29697         from mips_isa_rev.
29698         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
29699         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
29700         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
29701         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
29702         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
29703         conditions in terms of mips_isa_rev.
29704         (mips_isa_rev): Declare.
29705
29706 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
29707
29708         * config/sh/sh-mem.cc: Use tabs instead of spaces.
29709         (prob_unlikely, prob_likely): Make variables const.
29710
29711 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
29712
29713         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
29714
29715 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
29716
29717         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
29718
29719 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
29720
29721         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
29722         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
29723         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
29724         functions.
29725         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
29726         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
29727         sh_pass_in_reg_p.
29728         Replace usage of ROUND_REG with sh_round_reg.
29729         Use CEIL instead of ROUND_ADVANCE.
29730
29731 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
29732
29733         PR target/61026
29734         * config/sh/sh.c: Include stdlib headers before everything else.
29735
29736 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
29737
29738         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
29739         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
29740         (gimplify_adjust_omp_clauses): Simd region is never
29741         directly nested in combined parallel.  Instead, for linear
29742         with copyin/copyout, if in combined for simd loop, make decl
29743         firstprivate/lastprivate on OMP_FOR.
29744         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29745         expand_omp_for_static_chunk): When setting endvar, also set
29746         fd->loop.v to the same value.
29747
29748 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29749
29750         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
29751
29752 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
29753
29754         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
29755         expression.
29756
29757 2014-05-02  Marek Polacek  <polacek@redhat.com>
29758
29759         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
29760
29761 2014-05-02  Kito Cheng  <kito@0xlab.org>
29762
29763         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
29764         to a C expression marco.
29765         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
29766         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
29767         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
29768         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
29769         HONOR_REG_ALLOC_ORDER.
29770         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
29771
29772 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29773
29774         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
29775
29776 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29777
29778         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
29779
29780 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
29781
29782         * tree-if-conv.c (is_cond_scalar_reduction): New function.
29783         (convert_scalar_cond_reduction): Likewise.
29784         (predicate_scalar_phi): Add recognition and transformation
29785         of simple conditioanl reduction to be vectorizable.
29786
29787 2014-05-01  Marek Polacek  <polacek@redhat.com>
29788
29789         PR c/43245
29790         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
29791
29792 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
29793
29794         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
29795         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
29796         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
29797         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
29798         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
29799         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
29800         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
29801         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
29802
29803 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
29804
29805         * config/arc/arc.opt (mlra): Move comment above option name
29806         to avoid mis-parsing as language options.
29807
29808 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29809
29810         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
29811         * config/sol2.h: ... here.
29812         * config/sol2-10.h: Remove.
29813
29814         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
29815         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
29816         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
29817         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
29818         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
29819         * config/sol2.h: ... here.
29820         (SECTION_NAME_FORMAT): Don't redefine.
29821         (STARTFILE_ARCH32_SPEC): Rename to ...
29822         (STARTFILE_ARCH_SPEC): ... this.
29823         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
29824         * config/sparc/sol2.h: ... here.
29825         (SECTION_NAME_FORMAT): Don't undef.
29826         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
29827         (SUBTARGET_EXTRA_SPECS): Remove.
29828         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
29829
29830         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
29831         (MD_STARTFILE_PREFIX): Remove.
29832         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
29833         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
29834         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
29835         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
29836         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
29837         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
29838         * config/i386/sol2.h: ... here.
29839         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
29840         * config/i386/sol2-bi.h: Remove.
29841         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
29842         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
29843
29844         * config/i386/t-sol2-64: Rename to ...
29845         * config/i386/t-sol2: ... this.
29846         * config/sparc/t-sol2-64: Rename to ...
29847         * config/sparc/t-sol2: ... this.
29848
29849         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
29850         sol2_tm_file_head, sol2_tm_file_tail.
29851         Include ${cpu_type}/sol2.h before sol2.h.
29852         Remove sol2-10.h.
29853         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
29854         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
29855         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
29856         Reflect i386/t-sol2-64 renaming.
29857         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
29858         Reflect sparc/t-sol2-64 renaming.
29859
29860 2014-04-30  Richard Biener  <rguenther@suse.de>
29861
29862         * passes.c (execute_function_todo): Move TODO_verify_stmts
29863         and TODO_verify_ssa under the TODO_verify_il umbrella.
29864         * tree-ssa.h (verify_ssa): Adjust prototype.
29865         * tree-ssa.c (verify_ssa): Add parameter to tell whether
29866         we should verify SSA operands.
29867         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
29868         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
29869         whether we should verify whether not throwing stmts have EH info.
29870         * graphite-scop-detection.c (create_sese_edges): Adjust.
29871         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
29872         * tree-eh.c (lower_try_finally_switch): Do not add the
29873         default case label twice.
29874
29875 2014-04-30  Marek Polacek  <polacek@redhat.com>
29876
29877         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
29878         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
29879         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
29880         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
29881
29882 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
29883
29884         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
29885         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
29886         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
29887         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
29888         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
29889         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
29890         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
29891         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
29892
29893 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
29894
29895         * tree-cfg.c (dump_function_to_file): Dump the return type of
29896         functions, in a line to itself before the function body, mimicking
29897         the layout of a C function.
29898
29899 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
29900
29901         PR tree-optimization/60971
29902         * tree-tailcall.c (process_assignment): Reject conversions which
29903         reduce precision.
29904
29905 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
29906
29907         * calls.c (initialize_argument_information): Always treat
29908         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
29909         (expand_call): Likewise.
29910         (emit_library_call_calue_1): Likewise.
29911         * expr.c (PUSH_ARGS_REVERSED): Do not define.
29912         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
29913         code accordingly.
29914
29915 2014-04-29  Nick Clifton  <nickc@redhat.com>
29916
29917         * config/msp430/msp430.md (umulsidi): Fix typo.
29918         (mulhisi3): Enable even inside interrupt handlers.
29919         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
29920         bigger return address pushed in large mode.
29921
29922 2014-04-29  Nick Clifton  <nickc@redhat.com>
29923
29924         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
29925         (arc_init_reg_tables): Use a machine_mode enum to iterate over
29926         available modes.
29927         * config/m32r/m32r.c (init_reg_tables): Likewise.
29928         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
29929         enum to hold the modes.
29930
29931 2014-04-29  Richard Biener  <rguenther@suse.de>
29932
29933         * dominance.c (free_dominance_info): Add overload with
29934         function parameter.
29935         (dom_info_state): Likewise.
29936         (dom_info_available_p): Likewise.
29937         * basic-block.h (free_dominance_info, dom_info_state,
29938         dom_info_available_p): Declare overloads.
29939         * passes.c (execute_function_todo): Verify that verifiers
29940         don't change dominator info state.  Drop dominator info
29941         for IPA pass invocations.
29942         * cgraph.c (release_function_body): Restore asserts that
29943         dominator information is released.
29944
29945 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
29946
29947         * doc/invoke.texi: Fix typo.
29948         * tree-vrp.c: Fix typos.
29949         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
29950
29951 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29952
29953         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
29954
29955 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
29956
29957         * config/aarch64/aarch64-builtins.c
29958         (aarch64_types_storestruct_lane_qualifiers): New.
29959         (TYPES_STORESTRUCT_LANE): Likewise.
29960         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
29961         (st3_lane): Likewise.
29962         (st4_lane): Likewise.
29963         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
29964         (vec_store_lanesci_lane<mode>): Likewise.
29965         (vec_store_lanesxi_lane<mode>): Likewise.
29966         (aarch64_st2_lane<VQ:mode>): Likewise.
29967         (aarch64_st3_lane<VQ:mode>): Likewise.
29968         (aarch64_st4_lane<VQ:mode>): Likewise.
29969         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
29970         * config/aarch64/arm_neon.h
29971         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
29972         use new macro arguments.
29973         (__ST3_LANE_FUNC): Likewise.
29974         (__ST4_LANE_FUNC): Likewise.
29975         * config/aarch64/iterators.md (V_TWO_ELEM): New.
29976         (V_THREE_ELEM): Likewise.
29977         (V_FOUR_ELEM): Likewise.
29978
29979 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
29980
29981         * doc/gimple.texi: Replace the description of the now-defunct
29982         union gimple_statement_d with a diagram showing the
29983         gimple_statement_base class hierarchy and its relationships to
29984         the GSS_ and GIMPLE_ enums.
29985
29986 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
29987
29988         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
29989         * config/aarch64/aarch64.c
29990         (aarch64_cannot_change_mode_class): Weaken conditions.
29991         (aarch64_modes_tieable_p): New.
29992         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
29993
29994 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
29995
29996         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29997         (loadsync_<mode>): Change mode.
29998         (load_quadpti, store_quadpti): New.
29999         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30000         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30001
30002 2014-04-28  Martin Jambor  <mjambor@suse.cz>
30003
30004         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
30005         same alias type as the original statement.
30006         (subreplacement_assignment_data): New type.
30007         (handle_unscalarized_data_in_subtree): New type of parameter,
30008         generate new memory accesses with same alias type as the original
30009         statement.
30010         (load_assign_lhs_subreplacements): Likewise.
30011         (sra_modify_constructor_assign): Generate new memory accesses with
30012         same alias type as the original statement.
30013
30014 2014-04-28  Richard Biener  <rguenther@suse.de>
30015
30016         * tree-pass.h (TODO_verify_il): Define.
30017         (TODO_verify_all): Complete properly.
30018         * passes.c (execute_function_todo): Move existing loop-closed
30019         SSA verification under TODO_verify_il.
30020         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
30021         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
30022         Fix tree sharing issue.
30023
30024 2014-04-28  Richard Biener  <rguenther@suse.de>
30025
30026         PR middle-end/60092
30027         * builtins.def (DEF_C11_BUILTIN): Add.
30028         (BUILT_IN_ALIGNED_ALLOC): Likewise.
30029         * coretypes.h (enum function_class): Add function_c11_misc.
30030         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
30031         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
30032         (call_may_clobber_ref_p_1): Likewise.
30033         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
30034         (mark_all_reaching_defs_necessary_1): Likewise.
30035         (propagate_necessity): Likewise.
30036         (eliminate_unnecessary_stmts): Likewise.
30037         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
30038
30039 2014-04-28  Richard Biener  <rguenther@suse.de>
30040
30041         * tree-vrp.c (vrp_var_may_overflow): Remove.
30042         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
30043         with overflow immediately bump to one before that value and
30044         let iteration figure out overflow status.
30045
30046 2014-04-28  Richard Biener  <rguenther@suse.de>
30047
30048         * configure.ac: Do valgrind header checks unconditionally.
30049         Add --enable-valgrind-annotations.
30050         * system.h: Guard valgrind header inclusion with
30051         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
30052         * alloc-pool.c (pool_alloc, pool_free): Use
30053         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
30054         to guard possibly dead code.
30055         * config.in: Regenerated.
30056         * configure: Likewise.
30057
30058 2014-04-28  Jeff Law  <law@redhat.com>
30059
30060         PR tree-optimization/60902
30061         * tree-ssa-threadedge.c
30062         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
30063         over real defs when invalidating outputs from statements that do not
30064         produce useful outputs for threading.
30065
30066 2014-04-28  Richard Biener  <rguenther@suse.de>
30067
30068         PR tree-optimization/60979
30069         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
30070         SCOPs that end in a block with a successor with abnormal
30071         predecessors.
30072
30073 2014-04-28  Richard Biener  <rguenther@suse.de>
30074
30075         * tree-pass.h (execute_pass_list): Adjust prototype.
30076         * passes.c (pass_manager::execute_early_local_passes): Adjust.
30077         (do_per_function): Change callback signature, push all actual
30078         work to the callbals.
30079         (do_per_function_toporder): Likewise.
30080         (execute_function_dump): Adjust.
30081         (execute_function_todo): Likewise.
30082         (clear_last_verified): Likewise.
30083         (verify_curr_properties): Likewise.
30084         (update_properties_after_pass): Likewise.
30085         (execute_pass_list_1): Split out from ...
30086         (execute_pass_list): ... here.  Adjust.
30087         (execute_ipa_pass_list): Likewise.
30088         * cgraphunit.c (cgraph_add_new_function): Adjust.
30089         (analyze_function): Likewise.
30090         (expand_function): Likewise.
30091         * cgraph.c (release_function_body): Free dominance info
30092         here instead of asserting it was magically freed elsewhere.
30093
30094 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30095
30096         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
30097         * configure: Regenerate.
30098         * config/sparc/sparc.opt (muser-mode): New option.
30099         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
30100         for LEON3.
30101         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
30102         * doc/invoke.texi (SPARC options): Document -muser-mode.
30103
30104 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
30105
30106         * cselib.c (find_slot_memmode): Delete.
30107         (cselib_hasher): Change compare_type to a struct.
30108         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
30109         constants.
30110         (preserve_constants_and_equivs): Adjust for new compare_type.
30111         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
30112         (wrap_constant): Delete.
30113         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
30114
30115 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
30116
30117         * doc/install.texi (Building with profile feedback): Remove
30118         outdated sentence.
30119
30120 2014-04-26  Tom de Vries  <tom@codesourcery.com>
30121
30122         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
30123         array accesses.
30124
30125 2014-04-25  Cary Coutant  <ccoutant@google.com>
30126
30127         PR debug/60929
30128         * dwarf2out.c (should_move_die_to_comdat): A type definition
30129         can contain a subprogram definition, but don't move it to a
30130         comdat unit.
30131         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
30132         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
30133         from original DIE.
30134         (clone_tree_hash): Rename to...
30135         (clone_tree_partial): ...this; change callers.  Copy
30136         DW_TAG_subprogram DIEs as declarations.
30137         (copy_decls_walk): Don't copy children of a declaration into a
30138         type unit.
30139
30140 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
30141
30142         PR target/60969
30143         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
30144         alternative 12.
30145
30146 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
30147
30148         * config/arm/predicates.md (call_insn_operand): Add long_call check.
30149         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
30150         reg for long_call.
30151         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
30152         restriction.
30153
30154 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30155
30156         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
30157
30158 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30159
30160         PR tree-optimization/60930
30161         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
30162         creating a multiply candidate by folding two constant
30163         multiplicands when the result overflows.
30164
30165 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
30166
30167         PR tree-optimization/60960
30168         * tree-vect-generic.c (expand_vector_operation): Only call
30169         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
30170
30171 2014-04-25  Tom de Vries  <tom@codesourcery.com>
30172
30173         * expr.c (clobber_reg_mode): New function.
30174         * expr.h (clobber_reg): New function.
30175
30176 2014-04-25  Tom de Vries  <tom@codesourcery.com>
30177
30178         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
30179         clobbers.
30180
30181 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
30182             Tom de Vries  <tom@codesourcery.com>
30183
30184         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
30185         handle.
30186         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
30187         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
30188         new argument to find_all_hard_reg_sets call.
30189
30190 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30191
30192         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
30193         Use HOST_WIDE_INT_C for mask literal.
30194         (aarch_rev16_shleft_mask_imm_p): Likewise.
30195
30196 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
30197
30198         PR target/60941
30199         * config/sparc/sparc.md (ashlsi3_extend): Delete.
30200
30201 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
30202
30203         PR preprocessor/56540
30204         * config/i386/i386-c.c (ix86_target_macros): Define
30205         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
30206
30207 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30208
30209         * configure.ac (tga_func): Remove.
30210         (LIB_TLS_SPEC): Remove.
30211         * configure: Regenerate.
30212         * config.in: Regenerate.
30213         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
30214
30215 2014-04-25  Richard Biener  <rguenther@suse.de>
30216
30217         PR ipa/60912
30218         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
30219         call stmt use/clobber sets during stmt walk instead of
30220         walking the possibly incomplete set of caller edges.
30221
30222 2014-04-25  Richard Biener  <rguenther@suse.de>
30223
30224         PR ipa/60911
30225         * passes.c (apply_ipa_transforms): Inline into only caller ...
30226         (execute_one_pass): ... here.  Properly bring in function
30227         bodies for nodes we want to apply IPA transforms to.
30228
30229 2014-04-24  Cong Hou  <congh@google.com>
30230
30231         PR tree-optimization/60896
30232         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
30233         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
30234         (vect_mark_pattern_stmts): Set the def type of all statements in
30235         PATTERN_DEF_SEQ as vect_internal_def.
30236
30237 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30238
30239         * doc/extend.texi (PowerPC Built-in Functions): Document new
30240         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
30241         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
30242
30243         * config/rs6000/predicates.md (const_0_to_3_operand): New
30244         predicate to match 0..3 integer constants.
30245
30246         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
30247         to support adding miscellaneous builtin functions.
30248         (BU_DFP_MISC_2): Likewise.
30249         (BU_P7_MISC_1): Likewise.
30250         (BU_P7_MISC_2): Likewise.
30251         (BU_P8V_MISC_3): Likewise.
30252         (BU_MISC_1): Likewise.
30253         (BU_MISC_2): Likewise.
30254         (DIVWE): Add extended divide builtin functions.
30255         (DIVWEO): Likewise.
30256         (DIVWEU): Likewise.
30257         (DIVWEUO): Likewise.
30258         (DIVDE): Likewise.
30259         (DIVDEO): Likewise.
30260         (DIVDEU): Likewise.
30261         (DIVDEUO): Likewise.
30262         (DXEX): Add decimal floating-point builtin functions.
30263         (DXEXQ): Likewise.
30264         (DDEDPD): Likewise.
30265         (DDEDPDQ): Likewise.
30266         (DENBCD): Likewise.
30267         (DENBCDQ): Likewise.
30268         (DIEX): Likewise.
30269         (DIEXQ): Likewise.
30270         (DSCLI): Likewise.
30271         (DSCLIQ): Likewise.
30272         (DSCRI): Likewise.
30273         (DSCRIQ): Likewise.
30274         (CDTBCD): Add new BCD builtin functions.
30275         (CBCDTD): Likewise.
30276         (ADDG6S): Likewise.
30277         (BCDADD): Likewise.
30278         (BCDADD_LT): Likewise.
30279         (BCDADD_EQ): Likewise.
30280         (BCDADD_GT): Likewise.
30281         (BCDADD_OV): Likewise.
30282         (BCDSUB): Likewise.
30283         (BCDSUB_LT): Likewise.
30284         (BCDSUB_EQ): Likewise.
30285         (BCDSUB_GT): Likewise.
30286         (BCDSUB_OV): Likewise.
30287         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
30288         (UNPACK_TD): Likewise.
30289         (PACK_TF): Likewise.
30290         (UNPACK_TF): Likewise.
30291         (UNPACK_TF_0): Likewise.
30292         (UNPACK_TF_1): Likewise.
30293         (PACK_V1TI): Likewise.
30294         (UNPACK_V1TI): Likewise.
30295
30296         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
30297         support for decimal floating point builtin functions.
30298         (rs6000_expand_ternop_builtin): Add checks for the new builtin
30299         functions that take constant arguments.
30300         (rs6000_invalid_builtin): Add decimal floating point builtin support.
30301         (rs6000_init_builtins): Setup long double, _Decimal64, and
30302         _Decimal128 types for new builtin functions.
30303         (builtin_function_type): Set the unsigned flags appropriately for
30304         the new builtin functions.
30305         (rs6000_opt_masks): Add support for decimal floating point builtin
30306         functions.
30307
30308         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
30309         floating point builtin functions.
30310         (RS6000_BTM_COMMON): Likewise.
30311         (RS6000_BTI_long_double): Likewise.
30312         (RS6000_BTI_dfloat64): Likewise.
30313         (RS6000_BTI_dfloat128): Likewise.
30314         (long_double_type_internal_node): Likewise.
30315         (dfloat64_type_internal_node): Likewise.
30316         (dfloat128_type_internal_node): Likewise.
30317
30318         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
30319         2.07 bcd arithmetic instructions.
30320         (UNSPEC_BCDSUB): Likewise.
30321         (UNSPEC_BCD_OVERFLOW): Likewise.
30322         (UNSPEC_BCD_ADD_SUB): Likewise.
30323         (bcd_add_sub): Likewise.
30324         (BCD_TEST): Likewise.
30325         (bcd<bcd_add_sub>): Likewise.
30326         (bcd<bcd_add_sub>_test): Likewise.
30327         (bcd<bcd_add_sub>_test2): Likewise.
30328         (bcd<bcd_add_sub>_<code>): Likewise.
30329         (peephole2 for combined bcd ops): Likewise.
30330
30331         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
30332         decimal floating point builtin functions.
30333         (UNSPEC_DENBCD): Likewise.
30334         (UNSPEC_DXEX): Likewise.
30335         (UNSPEC_DIEX): Likewise.
30336         (UNSPEC_DSCLI): Likewise.
30337         (UNSPEC_DSCRI): Likewise.
30338         (D64_D128): Likewise.
30339         (dfp_suffix): Likewise.
30340         (dfp_ddedpd_<mode>): Likewise.
30341         (dfp_denbcd_<mode>): Likewise.
30342         (dfp_dxex_<mode>): Likewise.
30343         (dfp_diex_<mode>): Likewise.
30344         (dfp_dscli_<mode>): Likewise.
30345         (dfp_dscri_<mode>): Likewise.
30346
30347         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
30348         builtin functions.
30349         (UNSPEC_CDTBCD): Likewise.
30350         (UNSPEC_CBCDTD): Likewise.
30351         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
30352         (UNSPEC_DIVEO): Likewise.
30353         (UNSPEC_DIVEU): Likewise.
30354         (UNSPEC_DIVEUO): Likewise.
30355         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
30356         pack/unpack 128-bit types.
30357         (UNSPEC_PACK_128BIT): Likewise.
30358         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
30359         (udiv<mode>3): Use idiv_ldiv mode attribute.
30360         (div<mode>3): Likewise.
30361         (addg6s): Add new BCD builtin functions.
30362         (cdtbcd): Likewise.
30363         (cbcdtd): Likewise.
30364         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
30365         (div_extend): Likewise.
30366         (div<div_extend>_<mode>"): Likewise.
30367         (FP128_64): Add support for new builtin functions to pack/unpack
30368         128-bit types.
30369         (unpack<mode>): Likewise.
30370         (unpacktf_0): Likewise.
30371         (unpacktf_1): Likewise.
30372         (unpack<mode>_dm): Likewise.
30373         (unpack<mode>_nodm): Likewise.
30374         (pack<mode>): Likewise.
30375         (unpackv1ti): Likewise.
30376         (packv1ti): Likewise.
30377
30378 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
30379
30380         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
30381         is disabled.
30382
30383 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
30384
30385         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
30386         * gimplify.c (omp_is_private): Change last argument's type to int.
30387         Only diagnose lastprivate if the simd argument is 1, only diagnose
30388         linear if the simd argument is 2.
30389         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
30390         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
30391         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
30392         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
30393         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
30394         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
30395         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
30396         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
30397         * tree-nested.c (convert_nonlocal_omp_clauses,
30398         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
30399
30400 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
30401
30402         PR target/60822
30403         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
30404         operand 1.
30405
30406 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
30407
30408         * flag-types.h (enum ivar_visibility): Add.
30409
30410 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
30411
30412         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
30413         function * argument.
30414
30415 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
30416
30417         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
30418
30419 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
30420             Tom de Vries  <tom@codesourcery.com>
30421
30422         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
30423         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
30424         reg-note.
30425         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
30426         * emit-rtl.c (try_split): Same.
30427
30428 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
30429             Tom de Vries  <tom@codesourcery.com>
30430
30431         * common.opt (fuse-caller-save): New option.
30432
30433 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
30434
30435         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
30436         elements for big-endian.
30437
30438 2014-04-24  Richard Biener  <rguenther@suse.de>
30439
30440         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
30441         during TER and instead use the sepops interface for expanding
30442         non-GIMPLE_SINGLE_RHS.
30443
30444 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30445
30446         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
30447         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
30448
30449 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30450
30451         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
30452         assembler 64-bit option.
30453         * configure: Regenerate.
30454
30455 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30456
30457         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
30458         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
30459         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
30460         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
30461         (TARGET_CRYPTO): Take TARGET_SIMD into account.
30462
30463 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30464
30465         * config/aarch64/aarch64-builtins.c
30466         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
30467         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
30468         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
30469         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
30470         builtins.
30471         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
30472         (Vrevsuff): New mode attribute.
30473
30474 2014-04-24  Terry Guo  <terry.guo@arm.com>
30475
30476         * config/arm/arm.h (machine_function): Define variable
30477         after_arm_reorg here.
30478         * config/arm/arm.c (after_arm_reorg): Remove the definition.
30479         (arm_split_constant): Update the way to access variable
30480         after_arm_reorg.
30481         (arm_reorg): Ditto.
30482         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
30483
30484 2014-04-23  Tom de Vries  <tom@codesourcery.com>
30485
30486         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
30487
30488 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
30489
30490         * is-a.h: Update comments to reflect the following changes to the
30491         "pointerness" of the API, making the template parameter match the
30492         return type, allowing use of is-a.h with typedefs of pointers.
30493         (is_a_helper::cast): Return a T rather then a pointer to a T, so
30494         that the return type matches the parameter to the is_a_helper.
30495         (as_a): Likewise.
30496         (dyn_cast): Likewise.
30497
30498         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
30499         pointer from the is-a.h API.
30500
30501         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
30502         (is_a_helper <cgraph_node *>::test): ...this, matching change to
30503         is-a.h API.
30504         (is_a_helper <varpool_node>::test): Likewise, convert to...
30505         (is_a_helper <varpool_node *>::test): ...this.
30506
30507         (varpool_first_variable): Update for removal of implicit pointer
30508         from the is-a.h API.
30509         (varpool_next_variable): Likewise.
30510         (varpool_first_static_initializer): Likewise.
30511         (varpool_next_static_initializer): Likewise.
30512         (varpool_first_defined_variable): Likewise.
30513         (varpool_next_defined_variable): Likewise.
30514         (cgraph_first_defined_function): Likewise.
30515         (cgraph_next_defined_function): Likewise.
30516         (cgraph_first_function): Likewise.
30517         (cgraph_next_function): Likewise.
30518         (cgraph_first_function_with_gimple_body): Likewise.
30519         (cgraph_next_function_with_gimple_body): Likewise.
30520         (cgraph_alias_target): Likewise.
30521         (varpool_alias_target): Likewise.
30522         (cgraph_function_or_thunk_node): Likewise.
30523         (varpool_variable_node): Likewise.
30524         (symtab_real_symbol_p): Likewise.
30525         * cgraphunit.c (referred_to_p): Likewise.
30526         (analyze_functions): Likewise.
30527         (handle_alias_pairs): Likewise.
30528         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
30529         * gimple-ssa.h (gimple_vuse_op): Likewise.
30530         (gimple_vdef_op): Likewise.
30531         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
30532         * gimple.c (gimple_build_asm_1): Likewise.
30533         (gimple_build_try): Likewise.
30534         (gimple_build_resx): Likewise.
30535         (gimple_build_eh_dispatch): Likewise.
30536         (gimple_build_omp_for): Likewise.
30537         (gimple_omp_for_set_clauses): Likewise.
30538
30539         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
30540         (is_a_helper <gimple_statement_asm *>::test): ...this.
30541         (is_a_helper <gimple_statement_bind>::test): Convert to...
30542         (is_a_helper <gimple_statement_bind *>::test): ...this.
30543         (is_a_helper <gimple_statement_call>::test): Convert to...
30544         (is_a_helper <gimple_statement_call *>::test): ...this.
30545         (is_a_helper <gimple_statement_catch>::test): Convert to...
30546         (is_a_helper <gimple_statement_catch *>::test): ...this.
30547         (is_a_helper <gimple_statement_resx>::test): Convert to...
30548         (is_a_helper <gimple_statement_resx *>::test): ...this.
30549         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
30550         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
30551         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
30552         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
30553         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
30554         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
30555         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
30556         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
30557         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
30558         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
30559         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
30560         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
30561         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
30562         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
30563         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
30564         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
30565         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
30566         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
30567         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
30568         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
30569         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
30570         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
30571         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
30572         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
30573         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
30574         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
30575         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
30576         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
30577         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
30578         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
30579         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
30580         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
30581         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
30582         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
30583         (is_a_helper <gimple_statement_phi>::test): Convert to...
30584         (is_a_helper <gimple_statement_phi *>::test): ...this.
30585         (is_a_helper <gimple_statement_transaction>::test): Convert to...
30586         (is_a_helper <gimple_statement_transaction *>::test): ...this.
30587         (is_a_helper <gimple_statement_try>::test): Convert to...
30588         (is_a_helper <gimple_statement_try *>::test): ...this.
30589         (is_a_helper <gimple_statement_wce>::test): Convert to...
30590         (is_a_helper <gimple_statement_wce *>::test): ...this.
30591         (is_a_helper <const gimple_statement_asm>::test): Convert to...
30592         (is_a_helper <const gimple_statement_asm *>::test): ...this.
30593         (is_a_helper <const gimple_statement_bind>::test): Convert to...
30594         (is_a_helper <const gimple_statement_bind *>::test): ...this.
30595         (is_a_helper <const gimple_statement_call>::test): Convert to...
30596         (is_a_helper <const gimple_statement_call *>::test): ...this.
30597         (is_a_helper <const gimple_statement_catch>::test): Convert to...
30598         (is_a_helper <const gimple_statement_catch *>::test): ...this.
30599         (is_a_helper <const gimple_statement_resx>::test): Convert to...
30600         (is_a_helper <const gimple_statement_resx *>::test): ...this.
30601         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
30602         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
30603         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
30604         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
30605         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
30606         Convert to...
30607         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
30608         ...this.
30609         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
30610         Convert to...
30611         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
30612         ...this.
30613         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
30614         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
30615         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
30616         to...
30617         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
30618         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
30619         to...
30620         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
30621         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
30622         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
30623         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
30624         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
30625         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
30626         to...
30627         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
30628         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
30629         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
30630         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
30631         to...
30632         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
30633         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
30634         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
30635         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
30636         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
30637         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
30638         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
30639         (is_a_helper <const gimple_statement_phi>::test): Convert to...
30640         (is_a_helper <const gimple_statement_phi *>::test): ...this.
30641         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
30642         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
30643         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
30644         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
30645         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
30646         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
30647         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
30648         to...
30649         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
30650         ...this.
30651         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
30652         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
30653
30654         (gimple_use_ops): Update for removal of implicit pointer from the
30655         is-a.h API.
30656         (gimple_set_use_ops): Likewise.
30657         (gimple_vuse): Likewise.
30658         (gimple_vdef): Likewise.
30659         (gimple_vuse_ptr): Likewise.
30660         (gimple_vdef_ptr): Likewise.
30661         (gimple_set_vuse): Likewise.
30662         (gimple_set_vdef): Likewise.
30663         (gimple_omp_return_set_lhs): Likewise.
30664         (gimple_omp_return_lhs): Likewise.
30665         (gimple_omp_return_lhs_ptr): Likewise.
30666         (gimple_call_fntype): Likewise.
30667         (gimple_call_set_fntype): Likewise.
30668         (gimple_call_set_internal_fn): Likewise.
30669         (gimple_call_use_set): Likewise.
30670         (gimple_call_clobber_set): Likewise.
30671         (gimple_bind_vars): Likewise.
30672         (gimple_bind_set_vars): Likewise.
30673         (gimple_bind_body_ptr): Likewise.
30674         (gimple_bind_set_body): Likewise.
30675         (gimple_bind_add_stmt): Likewise.
30676         (gimple_bind_block): Likewise.
30677         (gimple_bind_set_block): Likewise.
30678         (gimple_asm_ninputs): Likewise.
30679         (gimple_asm_noutputs): Likewise.
30680         (gimple_asm_nclobbers): Likewise.
30681         (gimple_asm_nlabels): Likewise.
30682         (gimple_asm_input_op): Likewise.
30683         (gimple_asm_input_op_ptr): Likewise.
30684         (gimple_asm_output_op): Likewise.
30685         (gimple_asm_output_op_ptr): Likewise.
30686         (gimple_asm_set_output_op): Likewise.
30687         (gimple_asm_clobber_op): Likewise.
30688         (gimple_asm_set_clobber_op): Likewise.
30689         (gimple_asm_label_op): Likewise.
30690         (gimple_asm_set_label_op): Likewise.
30691         (gimple_asm_string): Likewise.
30692         (gimple_catch_types): Likewise.
30693         (gimple_catch_types_ptr): Likewise.
30694         (gimple_catch_handler_ptr): Likewise.
30695         (gimple_catch_set_types): Likewise.
30696         (gimple_catch_set_handler): Likewise.
30697         (gimple_eh_filter_types): Likewise.
30698         (gimple_eh_filter_types_ptr): Likewise.
30699         (gimple_eh_filter_failure_ptr): Likewise.
30700         (gimple_eh_filter_set_types): Likewise.
30701         (gimple_eh_filter_set_failure): Likewise.
30702         (gimple_eh_must_not_throw_fndecl): Likewise.
30703         (gimple_eh_must_not_throw_set_fndecl): Likewise.
30704         (gimple_eh_else_n_body_ptr): Likewise.
30705         (gimple_eh_else_e_body_ptr): Likewise.
30706         (gimple_eh_else_set_n_body): Likewise.
30707         (gimple_eh_else_set_e_body): Likewise.
30708         (gimple_try_eval_ptr): Likewise.
30709         (gimple_try_cleanup_ptr): Likewise.
30710         (gimple_try_set_eval): Likewise.
30711         (gimple_try_set_cleanup): Likewise.
30712         (gimple_wce_cleanup_ptr): Likewise.
30713         (gimple_wce_set_cleanup): Likewise.
30714         (gimple_phi_capacity): Likewise.
30715         (gimple_phi_num_args): Likewise.
30716         (gimple_phi_result): Likewise.
30717         (gimple_phi_result_ptr): Likewise.
30718         (gimple_phi_set_result): Likewise.
30719         (gimple_phi_arg): Likewise.
30720         (gimple_phi_set_arg): Likewise.
30721         (gimple_resx_region): Likewise.
30722         (gimple_resx_set_region): Likewise.
30723         (gimple_eh_dispatch_region): Likewise.
30724         (gimple_eh_dispatch_set_region): Likewise.
30725         (gimple_omp_critical_name): Likewise.
30726         (gimple_omp_critical_name_ptr): Likewise.
30727         (gimple_omp_critical_set_name): Likewise.
30728         (gimple_omp_for_clauses): Likewise.
30729         (gimple_omp_for_clauses_ptr): Likewise.
30730         (gimple_omp_for_set_clauses): Likewise.
30731         (gimple_omp_for_collapse): Likewise.
30732         (gimple_omp_for_index): Likewise.
30733         (gimple_omp_for_index_ptr): Likewise.
30734         (gimple_omp_for_set_index): Likewise.
30735         (gimple_omp_for_initial): Likewise.
30736         (gimple_omp_for_initial_ptr): Likewise.
30737         (gimple_omp_for_set_initial): Likewise.
30738         (gimple_omp_for_final): Likewise.
30739         (gimple_omp_for_final_ptr): Likewise.
30740         (gimple_omp_for_set_final): Likewise.
30741         (gimple_omp_for_incr): Likewise.
30742         (gimple_omp_for_incr_ptr): Likewise.
30743         (gimple_omp_for_set_incr): Likewise.
30744         (gimple_omp_for_pre_body_ptr): Likewise.
30745         (gimple_omp_for_set_pre_body): Likewise.
30746         (gimple_omp_parallel_clauses): Likewise.
30747         (gimple_omp_parallel_clauses_ptr): Likewise.
30748         (gimple_omp_parallel_set_clauses): Likewise.
30749         (gimple_omp_parallel_child_fn): Likewise.
30750         (gimple_omp_parallel_child_fn_ptr): Likewise.
30751         (gimple_omp_parallel_set_child_fn): Likewise.
30752         (gimple_omp_parallel_data_arg): Likewise.
30753         (gimple_omp_parallel_data_arg_ptr): Likewise.
30754         (gimple_omp_parallel_set_data_arg): Likewise.
30755         (gimple_omp_task_clauses): Likewise.
30756         (gimple_omp_task_clauses_ptr): Likewise.
30757         (gimple_omp_task_set_clauses): Likewise.
30758         (gimple_omp_task_child_fn): Likewise.
30759         (gimple_omp_task_child_fn_ptr): Likewise.
30760         (gimple_omp_task_set_child_fn): Likewise.
30761         (gimple_omp_task_data_arg): Likewise.
30762         (gimple_omp_task_data_arg_ptr): Likewise.
30763         (gimple_omp_task_set_data_arg): Likewise.
30764         (gimple_omp_taskreg_clauses): Likewise.
30765         (gimple_omp_taskreg_clauses_ptr): Likewise.
30766         (gimple_omp_taskreg_set_clauses): Likewise.
30767         (gimple_omp_taskreg_child_fn): Likewise.
30768         (gimple_omp_taskreg_child_fn_ptr): Likewise.
30769         (gimple_omp_taskreg_set_child_fn): Likewise.
30770         (gimple_omp_taskreg_data_arg): Likewise.
30771         (gimple_omp_taskreg_data_arg_ptr): Likewise.
30772         (gimple_omp_taskreg_set_data_arg): Likewise.
30773         (gimple_omp_task_copy_fn): Likewise.
30774         (gimple_omp_task_copy_fn_ptr): Likewise.
30775         (gimple_omp_task_set_copy_fn): Likewise.
30776         (gimple_omp_task_arg_size): Likewise.
30777         (gimple_omp_task_arg_size_ptr): Likewise.
30778         (gimple_omp_task_set_arg_size): Likewise.
30779         (gimple_omp_task_arg_align): Likewise.
30780         (gimple_omp_task_arg_align_ptr): Likewise.
30781         (gimple_omp_task_set_arg_align): Likewise.
30782         (gimple_omp_single_clauses): Likewise.
30783         (gimple_omp_single_clauses_ptr): Likewise.
30784         (gimple_omp_single_set_clauses): Likewise.
30785         (gimple_omp_target_clauses): Likewise.
30786         (gimple_omp_target_clauses_ptr): Likewise.
30787         (gimple_omp_target_set_clauses): Likewise.
30788         (gimple_omp_target_child_fn): Likewise.
30789         (gimple_omp_target_child_fn_ptr): Likewise.
30790         (gimple_omp_target_set_child_fn): Likewise.
30791         (gimple_omp_target_data_arg): Likewise.
30792         (gimple_omp_target_data_arg_ptr): Likewise.
30793         (gimple_omp_target_set_data_arg): Likewise.
30794         (gimple_omp_teams_clauses): Likewise.
30795         (gimple_omp_teams_clauses_ptr): Likewise.
30796         (gimple_omp_teams_set_clauses): Likewise.
30797         (gimple_omp_sections_clauses): Likewise.
30798         (gimple_omp_sections_clauses_ptr): Likewise.
30799         (gimple_omp_sections_set_clauses): Likewise.
30800         (gimple_omp_sections_control): Likewise.
30801         (gimple_omp_sections_control_ptr): Likewise.
30802         (gimple_omp_sections_set_control): Likewise.
30803         (gimple_omp_for_set_cond): Likewise.
30804         (gimple_omp_for_cond): Likewise.
30805         (gimple_omp_atomic_store_set_val): Likewise.
30806         (gimple_omp_atomic_store_val): Likewise.
30807         (gimple_omp_atomic_store_val_ptr): Likewise.
30808         (gimple_omp_atomic_load_set_lhs): Likewise.
30809         (gimple_omp_atomic_load_lhs): Likewise.
30810         (gimple_omp_atomic_load_lhs_ptr): Likewise.
30811         (gimple_omp_atomic_load_set_rhs): Likewise.
30812         (gimple_omp_atomic_load_rhs): Likewise.
30813         (gimple_omp_atomic_load_rhs_ptr): Likewise.
30814         (gimple_omp_continue_control_def): Likewise.
30815         (gimple_omp_continue_control_def_ptr): Likewise.
30816         (gimple_omp_continue_set_control_def): Likewise.
30817         (gimple_omp_continue_control_use): Likewise.
30818         (gimple_omp_continue_control_use_ptr): Likewise.
30819         (gimple_omp_continue_set_control_use): Likewise.
30820         (gimple_transaction_body_ptr): Likewise.
30821         (gimple_transaction_label): Likewise.
30822         (gimple_transaction_label_ptr): Likewise.
30823         (gimple_transaction_set_body): Likewise.
30824         (gimple_transaction_set_label): Likewise.
30825
30826         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
30827         * ipa-inline-analysis.c (inline_write_summary): Likewise.
30828         * ipa-ref.c (ipa_record_reference): Likewise.
30829         * ipa-reference.c (analyze_function): Likewise.
30830         (ipa_reference_write_optimization_summary): Likewise.
30831         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
30832         (address_taken_from_non_vtable_p): Likewise.
30833         (comdat_can_be_unshared_p_1): Likewise.
30834         * lto-cgraph.c (lto_output_ref): Likewise.
30835         (add_references): Likewise.
30836         (compute_ltrans_boundary): Likewise.
30837         (output_symtab): Likewise.
30838         (input_ref): Likewise.
30839         (input_cgraph_1): Likewise.
30840         (output_cgraph_opt_summary): Likewise.
30841         * lto-streamer-out.c (lto_output): Likewise.
30842         (output_symbol_p): Likewise.
30843         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
30844         (lsei_start_function_in_partition): Likewise.
30845         (lsei_next_variable_in_partition): Likewise.
30846         (lsei_start_variable_in_partition): Likewise.
30847         * symtab.c (insert_to_assembler_name_hash): Likewise.
30848         (unlink_from_assembler_name_hash): Likewise.
30849         (symtab_unregister_node): Likewise.
30850         (symtab_remove_node): Likewise.
30851         (dump_symtab_node): Likewise.
30852         (verify_symtab_base): Likewise.
30853         (verify_symtab_node): Likewise.
30854         (symtab_make_decl_local): Likewise.
30855         (symtab_alias_ultimate_target): Likewise.
30856         (symtab_resolve_alias): Likewise.
30857         (symtab_get_symbol_partitioning_class): Likewise.
30858         * tree-phinodes.c (allocate_phi_node): Likewise.
30859         (reserve_phi_args_for_new_edge): Likewise.
30860         (remove_phi_args): Likewise.
30861         * varpool.c (varpool_node_for_asm): Likewise.
30862         (varpool_remove_unreferenced_decls): Likewise.
30863
30864 2014-04-23  Jeff Law  <law@redhat.com>
30865
30866         PR tree-optimization/60902
30867         * tree-ssa-threadedge.c
30868         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
30869         invalidate outputs from statements that do not produce useful
30870         outputs for threading.
30871
30872 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
30873
30874         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
30875         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
30876         machine descriptions for Stack Smashing Protector.
30877
30878 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
30879
30880         * aarch64.md (<optab>_rol<mode>3): New pattern.
30881         (<optab>_rolsi3_uxtw): Likewise.
30882         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
30883
30884 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
30885
30886         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
30887         (arm_cortex_a12_tune): Likewise.
30888
30889 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30890
30891         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
30892
30893 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30894
30895         * config/arm/arm.md (arm_rev16si2): New pattern.
30896         (arm_rev16si2_alt): Likewise.
30897         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
30898
30899 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30900
30901         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
30902         (rev16<mode>2_alt): Likewise.
30903         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
30904         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
30905         (aarch_rev16_shleft_mask_imm_p): Likewise.
30906         (aarch_rev16_p_1): Likewise.
30907         (aarch_rev16_p): Likewise.
30908         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
30909         (aarch_rev16_shright_mask_imm_p): Likewise.
30910         (aarch_rev16_shleft_mask_imm_p): Likewise.
30911
30912 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30913
30914         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
30915         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
30916         rev cost.
30917         (cortex_a53_extra_costs): Likewise.
30918         (cortex_a57_extra_costs): Likewise.
30919         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
30920         (cortexa7_extra_costs): Likewise.
30921         (cortexa8_extra_costs): Likewise.
30922         (cortexa12_extra_costs): Likewise.
30923         (cortexa15_extra_costs): Likewise.
30924         (v7m_extra_costs): Likewise.
30925         (arm_new_rtx_costs): Handle BSWAP.
30926
30927 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30928
30929         * config/arm/arm.c (cortexa8_extra_costs): New table.
30930         (arm_cortex_a8_tune): New tuning struct.
30931         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
30932
30933 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30934
30935         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
30936
30937 2014-04-23  Richard Biener  <rguenther@suse.de>
30938
30939         * Makefile.in (OBJS): Remove loop-unswitch.o.
30940         * tree-pass.h (make_pass_rtl_unswitch): Remove.
30941         * passes.def (pass_rtl_unswitch): Likewise.
30942         * loop-init.c (gate_rtl_unswitch): Likewise.
30943         (rtl_unswitch): Likewise.
30944         (pass_data_rtl_unswitch): Likewise.
30945         (pass_rtl_unswitch): Likewise.
30946         (make_pass_rtl_unswitch): Likewise.
30947         * rtl.h (reversed_condition): Likewise.
30948         (compare_and_jump_seq): Likewise.
30949         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
30950         and make static.
30951         * loop-unroll.c (compare_and_jump_seq): Likewise.
30952
30953 2014-04-23  Richard Biener  <rguenther@suse.de>
30954
30955         PR tree-optimization/60903
30956         * tree-ssa-loop-im.c (analyze_memory_references): Remove
30957         commented code block.
30958         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
30959         loop flags to newly created BBs and edges.
30960
30961 2014-04-23  Nick Clifton  <nickc@redhat.com>
30962
30963         * config/msp430/msp430.c (msp430_handle_option): Move function
30964         to msp430-common.c
30965         (msp430_option_override): Simplify mcu and mcpu option handling.
30966         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
30967         support for -mhwmult command line option.
30968         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
30969         -mhwmult command line option.
30970         (msp430_hwmult_enabled): Delete.
30971         (msp43o_output_labelref): Add support for -mhwmult command line option.
30972         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
30973         (umulsidi3): Likewise.
30974         * config/msp430/msp430.opt (mmcu): Add Report attribute.
30975         (mcpu, mlarge, msmall): Likewise.
30976         (mhwmult): New option.
30977         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
30978         prototype.
30979         (msp430_is_f5_mcu): Remove prototype.
30980         (msp430_use_f5_series_hwmult): Add prototype.
30981         * config/msp430/msp430-opts.h: New file.
30982         * common/config/msp430: New directory.
30983         * common/config/msp430/msp430-common.c: New file.
30984         * config.gcc (msp430): Remove target_has_targetm_common.
30985         * doc/invoke.texi: Document -mhwmult command line option.
30986
30987 2014-04-23  Nick Clifton  <nickc@redhat.com>
30988
30989         * config/i386/cygwin.h (ENDFILE_SPEC): Include
30990         default-manifest.o if it can be found in the search path.
30991         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30992
30993 2014-04-23  Terry Guo  <terry.guo@arm.com>
30994
30995         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
30996
30997 2014-04-23  Richard Biener  <rguenther@suse.de>
30998
30999         PR middle-end/60895
31000         * tree-inline.c (declare_return_variable): Use mark_addressable.
31001
31002 2014-04-23  Richard Biener  <rguenther@suse.de>
31003
31004         PR middle-end/60891
31005         * loop-init.c (loop_optimizer_init): Make sure to apply
31006         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
31007
31008 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
31009
31010         PR sanitizer/60275
31011         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
31012         New options.
31013         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
31014         if flag_sanitize_undefined_trap_on_error.
31015         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
31016         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
31017         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
31018         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
31019         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
31020         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
31021         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
31022         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
31023         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
31024         * ubsan.c (ubsan_instrument_unreachable): Return
31025         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
31026         (ubsan_expand_null_ifn): Emit __builtin_trap ()
31027         if flag_sanitize_undefined_trap_on_error and
31028         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
31029         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
31030         instrument_bool_enum_load): Emit __builtin_trap () if
31031         flag_sanitize_undefined_trap_on_error and
31032         __builtin_handle_*_abort () if !flag_sanitize_recover.
31033         * doc/invoke.texi (-fsanitize-recover,
31034         -fsanitize-undefined-trap-on-error): Document.
31035
31036 2014-04-22  Christian Bruel  <christian.bruel@st.com>
31037
31038         * config/sh/sh.md (mov<mode>): Replace movQIHI.
31039         Force immediates to SImode.
31040
31041 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
31042
31043         * config/nios2/nios2.md (UNSPEC_ROUND): New.
31044         (lroundsfsi2): New.
31045         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
31046         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
31047         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
31048         (nios2_fpu_insn): Add entry for round.
31049         (N2FPU_NO_ERRNO_P): Define.
31050         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
31051         flag_errno_math.
31052         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
31053
31054 2014-04-22  Richard Henderson  <rth@redhat.com>
31055
31056         * config/aarch64/aarch64 (addti3, subti3): New expanders.
31057         (add<GPI>3_compare0): Remove leading * from name.
31058         (add<GPI>3_carryin): Likewise.
31059         (sub<GPI>3_compare0): Likewise.
31060         (sub<GPI>3_carryin): Likewise.
31061         (<su_optab>mulditi3): New expander.
31062         (multi3): New expander.
31063         (madd<GPI>): Remove leading * from name.
31064
31065 2014-04-22  Martin Jambor  <mjambor@suse.cz>
31066
31067         * cgraphclones.c (cgraph_function_versioning): Copy
31068         ipa_transforms_to_apply instead of asserting it is empty.
31069
31070 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
31071
31072         PR target/60868
31073         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
31074         on count_exp to get mode.
31075
31076 2014-04-22  Andrew Pinski  <apinski@cavium.com>
31077
31078         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
31079         Handle TLS for ILP32.
31080         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
31081         (tlsie_small_<mode>): this and handle PTR.
31082         (tlsie_small_sidi): New pattern.
31083         (tlsle_small): Change to an expand to handle ILP32.
31084         (tlsle_small_<mode>): New pattern.
31085         (tlsdesc_small): Rename to ...
31086         (tlsdesc_small_<mode>): this and handle PTR.
31087
31088 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31089
31090         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
31091
31092 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
31093
31094         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
31095         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
31096         (aarch64_types_signed_poly_qualifiers): Likewise.
31097         (aarch64_types_unsigned_signed_qualifiers): Likewise.
31098         (aarch64_types_poly_signed_qualifiers): Likewise.
31099         (TYPES_REINTERP_SS): Type macro added.
31100         (TYPES_REINTERP_SU): Likewise.
31101         (TYPES_REINTERP_SP): Likewise.
31102         (TYPES_REINTERP_US): Likewise.
31103         (TYPES_REINTERP_PS): Likewise.
31104         (aarch64_fold_builtin): New expression folding added.
31105         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
31106         Declarations removed.
31107         (REINTERP_SS): Declarations added.
31108         (REINTERP_US): Likewise.
31109         (REINTERP_PS): Likewise.
31110         (REINTERP_SU): Likewise.
31111         (REINTERP_SP): Likewise.
31112         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
31113         (vreinterpretq_p8_f64): Likewise.
31114         (vreinterpret_p16_f64): Likewise.
31115         (vreinterpretq_p16_f64): Likewise.
31116         (vreinterpret_f32_f64): Likewise.
31117         (vreinterpretq_f32_f64): Likewise.
31118         (vreinterpret_f64_f32): Likewise.
31119         (vreinterpret_f64_p8): Likewise.
31120         (vreinterpret_f64_p16): Likewise.
31121         (vreinterpret_f64_s8): Likewise.
31122         (vreinterpret_f64_s16): Likewise.
31123         (vreinterpret_f64_s32): Likewise.
31124         (vreinterpret_f64_s64): Likewise.
31125         (vreinterpret_f64_u8): Likewise.
31126         (vreinterpret_f64_u16): Likewise.
31127         (vreinterpret_f64_u32): Likewise.
31128         (vreinterpret_f64_u64): Likewise.
31129         (vreinterpretq_f64_f32): Likewise.
31130         (vreinterpretq_f64_p8): Likewise.
31131         (vreinterpretq_f64_p16): Likewise.
31132         (vreinterpretq_f64_s8): Likewise.
31133         (vreinterpretq_f64_s16): Likewise.
31134         (vreinterpretq_f64_s32): Likewise.
31135         (vreinterpretq_f64_s64): Likewise.
31136         (vreinterpretq_f64_u8): Likewise.
31137         (vreinterpretq_f64_u16): Likewise.
31138         (vreinterpretq_f64_u32): Likewise.
31139         (vreinterpretq_f64_u64): Likewise.
31140         (vreinterpret_s64_f64): Likewise.
31141         (vreinterpretq_s64_f64): Likewise.
31142         (vreinterpret_u64_f64): Likewise.
31143         (vreinterpretq_u64_f64): Likewise.
31144         (vreinterpret_s8_f64): Likewise.
31145         (vreinterpretq_s8_f64): Likewise.
31146         (vreinterpret_s16_f64): Likewise.
31147         (vreinterpretq_s16_f64): Likewise.
31148         (vreinterpret_s32_f64): Likewise.
31149         (vreinterpretq_s32_f64): Likewise.
31150         (vreinterpret_u8_f64): Likewise.
31151         (vreinterpretq_u8_f64): Likewise.
31152         (vreinterpret_u16_f64): Likewise.
31153         (vreinterpretq_u16_f64): Likewise.
31154         (vreinterpret_u32_f64): Likewise.
31155         (vreinterpretq_u32_f64): Likewise.
31156
31157 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
31158
31159         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
31160         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
31161         (vreinterpret_p8_s8): Likewise.
31162         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
31163         (vreinterpret_p8_s16): Likewise.
31164         (vreinterpret_p8_s32): Likewise.
31165         (vreinterpret_p8_s64): Likewise.
31166         (vreinterpret_p8_f32): Likewise.
31167         (vreinterpret_p8_u8): Likewise.
31168         (vreinterpret_p8_u16): Likewise.
31169         (vreinterpret_p8_u32): Likewise.
31170         (vreinterpret_p8_u64): Likewise.
31171         (vreinterpret_p8_p16): Likewise.
31172         (vreinterpretq_p8_s8): Likewise.
31173         (vreinterpretq_p8_s16): Likewise.
31174         (vreinterpretq_p8_s32): Likewise.
31175         (vreinterpretq_p8_s64): Likewise.
31176         (vreinterpretq_p8_f32): Likewise.
31177         (vreinterpretq_p8_u8): Likewise.
31178         (vreinterpretq_p8_u16): Likewise.
31179         (vreinterpretq_p8_u32): Likewise.
31180         (vreinterpretq_p8_u64): Likewise.
31181         (vreinterpretq_p8_p16): Likewise.
31182         (vreinterpret_p16_s8): Likewise.
31183         (vreinterpret_p16_s16): Likewise.
31184         (vreinterpret_p16_s32): Likewise.
31185         (vreinterpret_p16_s64): Likewise.
31186         (vreinterpret_p16_f32): Likewise.
31187         (vreinterpret_p16_u8): Likewise.
31188         (vreinterpret_p16_u16): Likewise.
31189         (vreinterpret_p16_u32): Likewise.
31190         (vreinterpret_p16_u64): Likewise.
31191         (vreinterpret_p16_p8): Likewise.
31192         (vreinterpretq_p16_s8): Likewise.
31193         (vreinterpretq_p16_s16): Likewise.
31194         (vreinterpretq_p16_s32): Likewise.
31195         (vreinterpretq_p16_s64): Likewise.
31196         (vreinterpretq_p16_f32): Likewise.
31197         (vreinterpretq_p16_u8): Likewise.
31198         (vreinterpretq_p16_u16): Likewise.
31199         (vreinterpretq_p16_u32): Likewise.
31200         (vreinterpretq_p16_u64): Likewise.
31201         (vreinterpretq_p16_p8): Likewise.
31202         (vreinterpret_f32_s8): Likewise.
31203         (vreinterpret_f32_s16): Likewise.
31204         (vreinterpret_f32_s32): Likewise.
31205         (vreinterpret_f32_s64): Likewise.
31206         (vreinterpret_f32_u8): Likewise.
31207         (vreinterpret_f32_u16): Likewise.
31208         (vreinterpret_f32_u32): Likewise.
31209         (vreinterpret_f32_u64): Likewise.
31210         (vreinterpret_f32_p8): Likewise.
31211         (vreinterpret_f32_p16): Likewise.
31212         (vreinterpretq_f32_s8): Likewise.
31213         (vreinterpretq_f32_s16): Likewise.
31214         (vreinterpretq_f32_s32): Likewise.
31215         (vreinterpretq_f32_s64): Likewise.
31216         (vreinterpretq_f32_u8): Likewise.
31217         (vreinterpretq_f32_u16): Likewise.
31218         (vreinterpretq_f32_u32): Likewise.
31219         (vreinterpretq_f32_u64): Likewise.
31220         (vreinterpretq_f32_p8): Likewise.
31221         (vreinterpretq_f32_p16): Likewise.
31222         (vreinterpret_s64_s8): Likewise.
31223         (vreinterpret_s64_s16): Likewise.
31224         (vreinterpret_s64_s32): Likewise.
31225         (vreinterpret_s64_f32): Likewise.
31226         (vreinterpret_s64_u8): Likewise.
31227         (vreinterpret_s64_u16): Likewise.
31228         (vreinterpret_s64_u32): Likewise.
31229         (vreinterpret_s64_u64): Likewise.
31230         (vreinterpret_s64_p8): Likewise.
31231         (vreinterpret_s64_p16): Likewise.
31232         (vreinterpretq_s64_s8): Likewise.
31233         (vreinterpretq_s64_s16): Likewise.
31234         (vreinterpretq_s64_s32): Likewise.
31235         (vreinterpretq_s64_f32): Likewise.
31236         (vreinterpretq_s64_u8): Likewise.
31237         (vreinterpretq_s64_u16): Likewise.
31238         (vreinterpretq_s64_u32): Likewise.
31239         (vreinterpretq_s64_u64): Likewise.
31240         (vreinterpretq_s64_p8): Likewise.
31241         (vreinterpretq_s64_p16): Likewise.
31242         (vreinterpret_u64_s8): Likewise.
31243         (vreinterpret_u64_s16): Likewise.
31244         (vreinterpret_u64_s32): Likewise.
31245         (vreinterpret_u64_s64): Likewise.
31246         (vreinterpret_u64_f32): Likewise.
31247         (vreinterpret_u64_u8): Likewise.
31248         (vreinterpret_u64_u16): Likewise.
31249         (vreinterpret_u64_u32): Likewise.
31250         (vreinterpret_u64_p8): Likewise.
31251         (vreinterpret_u64_p16): Likewise.
31252         (vreinterpretq_u64_s8): Likewise.
31253         (vreinterpretq_u64_s16): Likewise.
31254         (vreinterpretq_u64_s32): Likewise.
31255         (vreinterpretq_u64_s64): Likewise.
31256         (vreinterpretq_u64_f32): Likewise.
31257         (vreinterpretq_u64_u8): Likewise.
31258         (vreinterpretq_u64_u16): Likewise.
31259         (vreinterpretq_u64_u32): Likewise.
31260         (vreinterpretq_u64_p8): Likewise.
31261         (vreinterpretq_u64_p16): Likewise.
31262         (vreinterpret_s8_s16): Likewise.
31263         (vreinterpret_s8_s32): Likewise.
31264         (vreinterpret_s8_s64): Likewise.
31265         (vreinterpret_s8_f32): Likewise.
31266         (vreinterpret_s8_u8): Likewise.
31267         (vreinterpret_s8_u16): Likewise.
31268         (vreinterpret_s8_u32): Likewise.
31269         (vreinterpret_s8_u64): Likewise.
31270         (vreinterpret_s8_p8): Likewise.
31271         (vreinterpret_s8_p16): Likewise.
31272         (vreinterpretq_s8_s16): Likewise.
31273         (vreinterpretq_s8_s32): Likewise.
31274         (vreinterpretq_s8_s64): Likewise.
31275         (vreinterpretq_s8_f32): Likewise.
31276         (vreinterpretq_s8_u8): Likewise.
31277         (vreinterpretq_s8_u16): Likewise.
31278         (vreinterpretq_s8_u32): Likewise.
31279         (vreinterpretq_s8_u64): Likewise.
31280         (vreinterpretq_s8_p8): Likewise.
31281         (vreinterpretq_s8_p16): Likewise.
31282         (vreinterpret_s16_s8): Likewise.
31283         (vreinterpret_s16_s32): Likewise.
31284         (vreinterpret_s16_s64): Likewise.
31285         (vreinterpret_s16_f32): Likewise.
31286         (vreinterpret_s16_u8): Likewise.
31287         (vreinterpret_s16_u16): Likewise.
31288         (vreinterpret_s16_u32): Likewise.
31289         (vreinterpret_s16_u64): Likewise.
31290         (vreinterpret_s16_p8): Likewise.
31291         (vreinterpret_s16_p16): Likewise.
31292         (vreinterpretq_s16_s8): Likewise.
31293         (vreinterpretq_s16_s32): Likewise.
31294         (vreinterpretq_s16_s64): Likewise.
31295         (vreinterpretq_s16_f32): Likewise.
31296         (vreinterpretq_s16_u8): Likewise.
31297         (vreinterpretq_s16_u16): Likewise.
31298         (vreinterpretq_s16_u32): Likewise.
31299         (vreinterpretq_s16_u64): Likewise.
31300         (vreinterpretq_s16_p8): Likewise.
31301         (vreinterpretq_s16_p16): Likewise.
31302         (vreinterpret_s32_s8): Likewise.
31303         (vreinterpret_s32_s16): Likewise.
31304         (vreinterpret_s32_s64): Likewise.
31305         (vreinterpret_s32_f32): Likewise.
31306         (vreinterpret_s32_u8): Likewise.
31307         (vreinterpret_s32_u16): Likewise.
31308         (vreinterpret_s32_u32): Likewise.
31309         (vreinterpret_s32_u64): Likewise.
31310         (vreinterpret_s32_p8): Likewise.
31311         (vreinterpret_s32_p16): Likewise.
31312         (vreinterpretq_s32_s8): Likewise.
31313         (vreinterpretq_s32_s16): Likewise.
31314         (vreinterpretq_s32_s64): Likewise.
31315         (vreinterpretq_s32_f32): Likewise.
31316         (vreinterpretq_s32_u8): Likewise.
31317         (vreinterpretq_s32_u16): Likewise.
31318         (vreinterpretq_s32_u32): Likewise.
31319         (vreinterpretq_s32_u64): Likewise.
31320         (vreinterpretq_s32_p8): Likewise.
31321         (vreinterpretq_s32_p16): Likewise.
31322         (vreinterpret_u8_s8): Likewise.
31323         (vreinterpret_u8_s16): Likewise.
31324         (vreinterpret_u8_s32): Likewise.
31325         (vreinterpret_u8_s64): Likewise.
31326         (vreinterpret_u8_f32): Likewise.
31327         (vreinterpret_u8_u16): Likewise.
31328         (vreinterpret_u8_u32): Likewise.
31329         (vreinterpret_u8_u64): Likewise.
31330         (vreinterpret_u8_p8): Likewise.
31331         (vreinterpret_u8_p16): Likewise.
31332         (vreinterpretq_u8_s8): Likewise.
31333         (vreinterpretq_u8_s16): Likewise.
31334         (vreinterpretq_u8_s32): Likewise.
31335         (vreinterpretq_u8_s64): Likewise.
31336         (vreinterpretq_u8_f32): Likewise.
31337         (vreinterpretq_u8_u16): Likewise.
31338         (vreinterpretq_u8_u32): Likewise.
31339         (vreinterpretq_u8_u64): Likewise.
31340         (vreinterpretq_u8_p8): Likewise.
31341         (vreinterpretq_u8_p16): Likewise.
31342         (vreinterpret_u16_s8): Likewise.
31343         (vreinterpret_u16_s16): Likewise.
31344         (vreinterpret_u16_s32): Likewise.
31345         (vreinterpret_u16_s64): Likewise.
31346         (vreinterpret_u16_f32): Likewise.
31347         (vreinterpret_u16_u8): Likewise.
31348         (vreinterpret_u16_u32): Likewise.
31349         (vreinterpret_u16_u64): Likewise.
31350         (vreinterpret_u16_p8): Likewise.
31351         (vreinterpret_u16_p16): Likewise.
31352         (vreinterpretq_u16_s8): Likewise.
31353         (vreinterpretq_u16_s16): Likewise.
31354         (vreinterpretq_u16_s32): Likewise.
31355         (vreinterpretq_u16_s64): Likewise.
31356         (vreinterpretq_u16_f32): Likewise.
31357         (vreinterpretq_u16_u8): Likewise.
31358         (vreinterpretq_u16_u32): Likewise.
31359         (vreinterpretq_u16_u64): Likewise.
31360         (vreinterpretq_u16_p8): Likewise.
31361         (vreinterpretq_u16_p16): Likewise.
31362         (vreinterpret_u32_s8): Likewise.
31363         (vreinterpret_u32_s16): Likewise.
31364         (vreinterpret_u32_s32): Likewise.
31365         (vreinterpret_u32_s64): Likewise.
31366         (vreinterpret_u32_f32): Likewise.
31367         (vreinterpret_u32_u8): Likewise.
31368         (vreinterpret_u32_u16): Likewise.
31369         (vreinterpret_u32_u64): Likewise.
31370         (vreinterpret_u32_p8): Likewise.
31371         (vreinterpret_u32_p16): Likewise.
31372         (vreinterpretq_u32_s8): Likewise.
31373         (vreinterpretq_u32_s16): Likewise.
31374         (vreinterpretq_u32_s32): Likewise.
31375         (vreinterpretq_u32_s64): Likewise.
31376         (vreinterpretq_u32_f32): Likewise.
31377         (vreinterpretq_u32_u8): Likewise.
31378         (vreinterpretq_u32_u16): Likewise.
31379         (vreinterpretq_u32_u64): Likewise.
31380         (vreinterpretq_u32_p8): Likewise.
31381         (vreinterpretq_u32_p16): Likewise.
31382
31383 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
31384
31385         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
31386         Pattern extended.
31387         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
31388         (sqabs): Likewise.
31389         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
31390         (vqnegd_s64): Likewise.
31391         (vqabs_s64): Likewise.
31392         (vqabsd_s64): Likewise.
31393
31394 2014-04-22  Richard Henderson  <rth@redhat.com>
31395
31396         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
31397         computation to the top of the loop.
31398
31399 2014-04-22  Renlin  <renlin.li@arm.com>
31400             Jiong Wang  <jiong.wang@arm.com>
31401
31402         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
31403         * config/aarch64/aarch64.c (aarch64_layout_frame)
31404         (aarch64_initial_elimination_offset): Likewise.
31405
31406 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31407
31408         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
31409         Fix indentation.
31410
31411 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
31412
31413         * machmode.h (bitwise_mode_for_mode): Declare.
31414         * stor-layout.h (bitwise_type_for_mode): Likewise.
31415         * stor-layout.c (bitwise_mode_for_mode): New function.
31416         (bitwise_type_for_mode): Likewise.
31417         * builtins.c (fold_builtin_memory_op): Use it instead of
31418         int_mode_for_mode and build_nonstandard_integer_type.
31419
31420 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31421
31422         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
31423         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
31424         (*-*-solaris2*): Simplify.
31425         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
31426         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
31427         *-*-solaris2.9* handling.
31428
31429         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
31430         as bug.
31431         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
31432         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
31433         handling, simplify.
31434         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
31435         * configure: Regenerate.
31436
31437         * config/i386/sol2-9.h: Remove.
31438
31439         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
31440         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
31441         Remove Solaris 9 references.
31442
31443 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
31444
31445         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
31446         (floatuns<GPI:mode><GPF:mode>2): Remove.
31447         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
31448         and floatuns conversions.
31449         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
31450         and floatuns conversions.
31451         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
31452         (w1,w2): New mode attributes for inequal width conversions.
31453
31454 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
31455
31456         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
31457         the output asm format.
31458
31459 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
31460
31461         * config/aarch64/aarch64-simd.md
31462         (aarch64_cm<optab>di): Always split.
31463         (*aarch64_cm<optab>di): New.
31464         (aarch64_cmtstdi): Always split.
31465         (*aarch64_cmtstdi): New.
31466
31467 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
31468
31469         PR tree-optimization/60823
31470         * omp-low.c (ipa_simd_modify_function_body): Go through
31471         all SSA_NAMEs and for those refering to vector arguments
31472         which are going to be replaced adjust SSA_NAME_VAR and,
31473         if it is a default definition, change it into a non-default
31474         definition assigned at the beginning of function from new_decl.
31475         (ipa_simd_modify_stmt_ops): Rewritten.
31476         * tree-dfa.c (set_ssa_default_def): When removing default def,
31477         check for NULL loc instead of NULL *loc.
31478
31479 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31480
31481         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
31482         restrictions on core registers for DImode values in Thumb2.
31483
31484 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
31485
31486         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
31487         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
31488
31489 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
31490
31491         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
31492         (*iordi_notzesidi_di): Likewise.
31493         (*iordi_notsesidi_di): Likewise.
31494
31495 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
31496
31497         * config/arm/arm-protos.h (tune_params): New struct members.
31498         * config/arm/arm.c: Initialise tune_params per processor.
31499         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
31500         for speed, based on new tune_params.
31501
31502 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
31503
31504         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
31505         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
31506         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
31507         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
31508         * config/aarch64/arm_neon.h (vrnd_f64): Added.
31509         (vrnda_f64): Likewise.
31510         (vrndi_f64): Likewise.
31511         (vrndm_f64): Likewise.
31512         (vrndn_f64): Likewise.
31513         (vrndp_f64): Likewise.
31514         (vrndx_f64): Likewise.
31515
31516 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31517
31518         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
31519         GET_MODE_SIZE argument is enum machine_mode.
31520
31521 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
31522
31523         PR target/60910
31524         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
31525         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
31526
31527 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
31528
31529         PR middle-end/60281
31530         * asan.c (asan_emit_stack_protection): Force the base to align to
31531         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
31532         appropriate bits if STRICT_ALIGNMENT.
31533         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
31534         when asan is on.
31535         (expand_used_vars): Leave a space in the stack frame for alignment
31536         if STRICT_ALIGNMENT.
31537
31538 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
31539
31540         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
31541         than a gimple.
31542         (gimple_store_p): Likewise.
31543         (gimple_assign_load_p): Likewise.
31544         (gimple_assign_cast_p): Likewise.
31545         (gimple_clobber_p): Likewise.
31546
31547         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
31548         rather than a gimple.
31549         (gimple_assign_cast_p): Likewise.
31550
31551 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
31552
31553         PR target/60735
31554         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
31555         If mode is DDmode and TARGET_E500_DOUBLE allow move.
31556
31557         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
31558         more debug information for E500 if -mdebug=reg.
31559
31560 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
31561
31562         PR target/60909
31563         * config/i386/i386.c (ix86_expand_builtin)
31564         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
31565         register for target RTX.
31566         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
31567
31568 2014-04-18  Cong Hou  <congh@google.com>
31569
31570         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
31571         the widen-mult pattern by handling two operands with different sizes,
31572         and operands whose size is smaller than half of the result type.
31573
31574 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
31575
31576         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
31577         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
31578         (do_estimate_edge_time): Compute it.
31579         * ipa-inline.c (want_inline_small_function_p): Bypass
31580         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
31581
31582 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
31583
31584         * ipa-inline.c (spec_rem): New static variable.
31585         (dump_overall_stats): New function.
31586         (dump_inline_stats): New function.
31587
31588 2014-04-18  Richard Henderson  <rth@redhat.com>
31589
31590         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
31591         to GET_MODE_SIZE, not a reg_class_t.
31592
31593 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31594
31595         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
31596         (vsx_xxmrglw_<mode>): Likewise.
31597
31598 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
31599
31600         PR target/60876
31601         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
31602         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
31603         (rs6000_init_hard_regno_mode_ok): Likewise.
31604
31605 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
31606
31607         * ipa-inline.c (inline_small_functions): Account only non-cold
31608         functions.
31609         * doc/invoke.texi (inline-unit-growth): Update documentation.
31610
31611 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
31612
31613         * config/rs6000/rs6000.md (addti3, subti3): New.
31614
31615 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31616
31617         PR target/60863
31618         * config/i386/i386.c (ix86_expand_clear): Remove outdated
31619         comment.  Check optimize_insn_for_size_p instead of
31620         optimize_insn_for_speed_p.
31621
31622 2014-04-17  Martin Jambor  <mjambor@suse.cz>
31623
31624         * gimple-iterator.c (gsi_start_edge): New function.
31625         * gimple-iterator.h (gsi_start_edge): Declare.
31626         * tree-sra.c (single_non_eh_succ): New function.
31627         (disqualify_ops_if_throwing_stmt): Renamed to
31628         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
31629         having one non-EH successor BB.
31630         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
31631         generate loads into replacements.
31632         (sra_modify_assign): Likewise and and also use the simple path for
31633         such statements.
31634         (sra_modify_function_body): Commit statements on edges.
31635
31636 2014-04-17  Richard Biener  <rguenther@suse.de>
31637
31638         PR middle-end/60849
31639         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
31640         comparison results and add clarifying comment.
31641
31642 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
31643
31644         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
31645         (blank_mode): Initialize it.
31646         (emit_mode_size_inline, emit_mode_nunits_inline,
31647         emit_mode_inner_inline): New functions.
31648         (emit_insn_modes_h): Call them and surround their output with
31649         #if GCC_VERSION >= 4001 ... #endif.
31650         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
31651         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
31652         mode_* arrays if the argument is __builtin_constant_p.
31653         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
31654         is enum machine_mode.
31655
31656 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
31657
31658         * passes.c (opt_pass::execute): Adjust.
31659         (pass_manager::execute_pass_mode_switching): Likewise.
31660         (early_local_passes::execute): Likewise.
31661         (execute_one_pass): Pass cfun to the pass's execute method.
31662         * tree-pass.h (opt_pass::execute): Add function * argument.
31663         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31664         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31665         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31666         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31667         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31668         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
31669         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
31670         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
31671         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
31672         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
31673         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
31674         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
31675         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
31676         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
31677         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
31678         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
31679         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
31680         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
31681         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
31682         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31683         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31684         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31685         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31686         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31687         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31688         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31689         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31690         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31691         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
31692         Adjust.
31693
31694 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
31695
31696         * passes.c (opt_pass::gate): Take function * argument.
31697         (gate_all_early_local_passes): Merge into
31698         (early_local_passes::gate): this.
31699         (gate_all_early_optimizations): Merge into
31700         (all_early_optimizations::gate): this.
31701         (gate_all_optimizations): Mege into
31702         (all_optimizations::gate): this.
31703         (gate_all_optimizations_g): Merge into
31704         (all_optimizations_g::gate): this.
31705         (gate_rest_of_compilation): Mege into
31706         (rest_of_compilation::gate): this.
31707         (gate_postreload): Merge into
31708         (postreload::gate): this.
31709         (dump_one_pass): Pass cfun to the pass's gate method.
31710         (execute_ipa_summary_passes): Likewise.
31711         (execute_one_pass): Likewise.
31712         (ipa_write_summaries_2): Likewise.
31713         (ipa_write_optimization_summaries_1): Likewise.
31714         (ipa_read_summaries_1): Likewise.
31715         (ipa_read_optimization_summaries_1): Likewise.
31716         (execute_ipa_stmt_fixups): Likewise.
31717         * tree-pass.h (opt_pass::gate): Add function * argument.
31718         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
31719         combine-stack-adj.c, combine.c, compare-elim.c,
31720         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31721         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
31722         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
31723         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
31724         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
31725         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
31726         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
31727         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
31728         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
31729         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
31730         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
31731         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
31732         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
31733         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
31734         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31735         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31736         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31737         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31738         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31739         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31740         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31741         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31742         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
31743         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
31744         var-tracking.c, vtable-verify.c, web.c: Adjust.
31745
31746 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
31747
31748         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
31749         * configure: Regenerate.
31750
31751 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
31752
31753         * passes.c (dump_one_pass): don't check pass->has_gate.
31754         (execute_ipa_summary_passes): Likewise.
31755         (execute_one_pass): Likewise.
31756         (ipa_write_summaries_2): Likewise.
31757         (ipa_write_optimization_summaries_1): Likewise.
31758         (ipa_read_optimization_summaries_1): Likewise.
31759         (execute_ipa_stmt_fixups): Likewise.
31760         * tree-pass.h (pass_data::has_gate): Remove.
31761         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31762         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31763         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31764         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31765         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31766         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
31767         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
31768         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
31769         gimple-low.c, gimple-ssa-isolate-paths.c,
31770         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
31771         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
31772         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
31773         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
31774         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
31775         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
31776         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
31777         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
31778         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
31779         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
31780         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
31781         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31782         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31783         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31784         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31785         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31786         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31787         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31788         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31789         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31790         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31791         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
31792         Adjust.
31793
31794 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
31795
31796         * pass_manager.h (pass_manager::register_dump_files_1): Remove
31797         declaration.
31798         * passes.c (pass_manager::register_dump_files_1): Merge into
31799         (pass_manager::register_dump_files): this, and remove its handling of
31800         properties since the pass always has the properties anyway.
31801         (pass_manager::pass_manager): Adjust.
31802
31803 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
31804
31805         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
31806         * passes.c (pass_manager::register_dump_files_1): Remove dead code
31807         dealing with properties.
31808         (pass_manager::register_dump_files): Adjust.
31809
31810 2014-03-20  Mark Wielaard  <mjw@redhat.com>
31811
31812         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
31813         then represent the bound as normal constant value.
31814
31815 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
31816
31817         PR target/60847
31818         Forward port from 4.8 branch
31819         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
31820
31821         * config/i386/bmiintrin.h (_blsi_u32): New.
31822         (_blsi_u64): Ditto.
31823         (_blsr_u32): Ditto.
31824         (_blsr_u64): Ditto.
31825         (_blsmsk_u32): Ditto.
31826         (_blsmsk_u64): Ditto.
31827         (_tzcnt_u32): Ditto.
31828         (_tzcnt_u64): Ditto.
31829
31830 2014-04-17  Kito Cheng  <kito@0xlab.org>
31831
31832         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
31833
31834 2014-04-17  Richard Biener  <rguenther@suse.de>
31835
31836         PR middle-end/60849
31837         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
31838         boolean results for comparisons.
31839
31840 2014-04-17  Richard Biener  <rguenther@suse.de>
31841
31842         PR tree-optimization/60836
31843         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
31844         initial PHI args to be gimple values.
31845
31846 2014-04-17  Richard Biener  <rguenther@suse.de>
31847
31848         PR tree-optimization/60841
31849         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
31850         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
31851         of stmts to SLP build.
31852         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
31853         (vect_analyze_slp): Likewise.
31854         (vect_analyze_slp_instance): Likewise.
31855         (vect_build_slp_tree): Limit overall SLP tree growth.
31856         * tree-vectorizer.h (vect_analyze_data_refs,
31857         vect_analyze_slp): Adjust prototypes.
31858
31859 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
31860
31861         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
31862         Silvermont.
31863
31864 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
31865
31866         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
31867         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
31868         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
31869         for TARGET_SLOW_PSHUFB
31870
31871 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
31872
31873         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
31874         * config/i386/i386.c (intel_cost): Ditto.
31875
31876 2014-04-17  Joey Ye  <joey.ye@arm.com>
31877
31878         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
31879
31880 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
31881
31882         * opts.c (common_handle_option): Disable -fipa-reference coorectly
31883         with -fuse-profile.
31884
31885 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
31886
31887         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
31888         (type_all_derivations_known_p): New predicate.
31889         (type_all_ctors_visible_p): New predicate.
31890         (type_possibly_instantiated_p): New predicate.
31891         (get_odr_type): Compute all_derivations_known.
31892         (dump_odr_type): Dump the flag.
31893         (maybe_record_type): Cleanup.
31894         (record_target_from_binfo): Add bases_to_consider array;
31895         record bases for types w/o instances and skip CXX destructor.
31896         (possible_polymorphic_call_targets_1): Add bases_to_consider
31897         and consider_construction parameters; check if type may have instance.
31898         (get_polymorphic_call_info): Set maybe_in_construction to true
31899         when we know nothing.
31900         (record_targets_from_bases): Skip CXX destructors; they are
31901         never called for types in construction.
31902         (possible_polymorphic_call_targets): Do not record target when
31903         type may not have instance.
31904
31905 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
31906
31907         PR ipa/60854
31908         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
31909         external aliases alive, too.
31910
31911 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
31912
31913         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
31914         definition.
31915
31916 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
31917
31918         * final.c (compute_alignments): Do not apply loop alignment to a block
31919         falling through to the exit.
31920
31921 2014-04-16  Catherine Moore  <clm@codesourcery.com>
31922
31923         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
31924         Adjust constraints for microMIPS store patterns.
31925
31926 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
31927
31928         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
31929
31930 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
31931
31932         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
31933         (append_use): Run at -O0.
31934         (append_vdef): Likewise.
31935         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
31936         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
31937
31938 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
31939
31940         PR tree-optimization/60844
31941         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
31942         (propagate_op_to_single_use, remove_visited_stmt_chain,
31943         linearize_expr, repropagate_negates, reassociate_bb): Use it
31944         instead of gsi_remove.
31945
31946 2014-04-16  Martin Jambor  <mjambor@suse.cz>
31947
31948         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
31949         ipa_transforms_to_apply.
31950         (cgraph_function_versioning): Assert that old_node has empty
31951         ipa_transforms_to_apply.
31952         * trans-mem.c (ipa_tm_create_version): Likewise.
31953         * tree-inline.c (tree_function_versioning): Do not duplicate
31954         ipa_transforms_to_apply.
31955
31956 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31957
31958         PR target/60817
31959         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
31960         x86_64-*-* cases.
31961         Pass necessary as flags on 64-bit Solaris/x86.
31962         Use lowercase relocs for x86_64-*-*.
31963         * configure: Regenerate.
31964
31965 2014-04-15  Jan Hubicka  <jh@suse.cz>
31966
31967         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
31968         (maybe_record_node, likely_target_p): Use it.
31969
31970 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31971
31972         PR target/60839
31973         Revert following patch
31974
31975         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
31976
31977         PR target/60735
31978         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
31979         software floating point or no floating point registers, do not
31980         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
31981         in GPRs that occurs after we tested for GPRs that would never be
31982         true.
31983
31984         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
31985         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
31986         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
31987         specifically allow DDmode, since that does not use the SPE SIMD
31988         instructions.
31989
31990 2014-03-21  Mark Wielaard  <mjw@redhat.com>
31991
31992         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
31993         as unsigned or int depending on type and value used.
31994
31995 2014-04-15  Richard Biener  <rguenther@suse.de>
31996
31997         PR rtl-optimization/56965
31998         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
31999         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
32000         ... here.
32001         * alias.c (true_dependence_1): Do not call
32002         nonoverlapping_component_refs_p.
32003         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
32004         nonoverlapping_component_refs_p.
32005         (indirect_refs_may_alias_p): Likewise.
32006
32007 2014-04-15  Teresa Johnson  <tejohnson@google.com>
32008
32009         * cfg.c (dump_bb_info): Fix flags check.
32010         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
32011
32012 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32013
32014         PR rtl-optimization/60663
32015         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
32016         avoid 0 cost.
32017
32018 2014-04-15  Richard Biener  <rguenther@suse.de>
32019
32020         * lto-streamer.h (LTO_major_version): Bump to 4.
32021
32022 2014-04-15  Richard Biener  <rguenther@suse.de>
32023
32024         * common.opt (lto_partition_model): New enum.
32025         (flto-partition=): Merge separate options with a single with argument,
32026         add -flto-partition=one support.
32027         * flag-types.h (enum lto_partition_model): Declare.
32028         * opts.c (finish_options): Remove duplicate -flto-partition=
32029         option check.
32030         * lto-wrapper.c (run_gcc): Adjust.
32031
32032 2014-04-15  Richard Biener  <rguenther@suse.de>
32033
32034         * alias.c (ncr_compar): New function.
32035         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
32036
32037 2014-04-15  Richard Biener  <rguenther@suse.de>
32038
32039         * alias.c (record_component_aliases): Do not walk BINFOs.
32040
32041 2014-04-15  Richard Biener  <rguenther@suse.de>
32042
32043         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32044         Add struct function argument and adjust.
32045         (find_func_aliases_for_call): Likewise.
32046         (find_func_aliases): Likewise.
32047         (find_func_clobbers): Likewise.
32048         (intra_create_variable_infos): Likewise.
32049         (compute_points_to_sets): Likewise.
32050         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
32051
32052 2014-04-15  Richard Biener  <rguenther@suse.de>
32053
32054         * tree.c (iterative_hash_expr): Use enum tree_code_class
32055         to store TREE_CODE_CLASS.
32056         (tree_block): Likewise.
32057         (tree_set_block): Likewise.
32058         * tree.h (fold_build_pointer_plus_loc): Use
32059         convert_to_ptrofftype_loc.
32060
32061 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
32062
32063         PR plugins/59335
32064         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
32065         added in 4.9.
32066
32067 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
32068
32069         * cfgloop.h (struct loop): Move force_vectorize down.
32070         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
32071         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
32072         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
32073         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
32074         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
32075         * tree-core.h (enum annot_expr_kind): Add new kind values.
32076         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
32077         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
32078         kinds.
32079         * tree.def (ANNOTATE_EXPR): Tweak comment.
32080
32081 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
32082
32083         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
32084         cxa_pure_virtual).
32085
32086 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
32087
32088         * tree.h (TYPE_IDENTIFIER): Declare.
32089         * tree.c (subrange_type_for_debug_p): Use it.
32090         * godump.c (go_format_type): Likewise.
32091         * dwarf2out.c (is_cxx_auto, modified_type_die,
32092         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
32093         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
32094
32095 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
32096
32097         PR lto/60820
32098         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
32099
32100 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
32101
32102         * config/i386/i386.c (examine_argument): Return bool.  Return true if
32103         parameter should be passed in memory.
32104         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
32105         (construct_container): Update calls to examine_argument.
32106         (function_arg_advance_64): Ditto.
32107         (return_in_memory_32): Merge with ix86_return_in_memory.
32108         (return_in_memory_64): Ditto.
32109         (return_in_memory_ms_64): Ditto.
32110
32111 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
32112
32113         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
32114         * coverage.c (coverage_compute_profile_id): Handle externally visible
32115         symbols.
32116
32117 2014-04-14  Martin Jambor  <mjambor@suse.cz>
32118
32119         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
32120         DECL_DISREGARD_INLINE_LIMITS functions.
32121
32122 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
32123
32124         PR target/60827
32125         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
32126
32127 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
32128
32129         PR target/60827
32130         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
32131         optimize_insn_for_speed_p instead of
32132         optimize_function_for_speed_p.
32133
32134 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
32135
32136         * doc/invoke.texi (free): Document AArch64.
32137
32138 2014-04-14  Richard Biener  <rguenther@suse.de>
32139
32140         PR tree-optimization/60042
32141         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
32142         (insert_into_preds_of_block): Do not prevent PHI insertion
32143         for REFERENCE exprs here ...
32144         (eliminate_dom_walker::before_dom_children): ... but prevent
32145         their use here under similar conditions when applied to the
32146         IL after PRE optimizations.
32147
32148 2014-04-14  Richard Biener  <rguenther@suse.de>
32149
32150         * passes.def: Move early points-to after early SRA.
32151
32152 2014-04-14  Richard Biener  <rguenther@suse.de>
32153
32154         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
32155         check for which sign-changes we allow when forwarding
32156         a converted value into a switch.
32157
32158 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
32159
32160         * stor-layout.c (place_field): Finalize non-constant offset for the
32161         field, if any.
32162
32163 2014-04-14  Richard Biener  <rguenther@suse.de>
32164
32165         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
32166         as argument.
32167         (expand_switch_using_bit_tests_p): Likewise.
32168         (process_switch): Compute and pass on speed_p based on the
32169         switch stmt.
32170         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
32171         optimize_bb_for_speed_p.
32172
32173 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
32174
32175         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
32176         * function.h (struct function): Rename has_force_vect_loops into
32177         has_force_vectorize_loops.
32178         * lto-streamer-in.c (input_cfg): Adjust for renaming.
32179         (input_struct_function_base): Likewise.
32180         * lto-streamer-out.c (output_cfg): Likewise.
32181         (output_struct_function_base): Likewise.
32182         * omp-low.c (expand_omp_simd): Likewise.
32183         * tree-cfg.c (move_sese_region_to_fn): Likewise.
32184         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
32185         (version_loop_for_if_conversion): Likewise.
32186         (tree_if_conversion): Likewise.
32187         (main_tree_if_conversion): Likewise.
32188         (gate_tree_if_conversion): Likewise.
32189         * tree-inline.c (copy_loops): Likewise.
32190         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
32191         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
32192         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
32193         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
32194         * tree-vectorizer.c (vectorize_loops): Likewise.
32195         * tree-vectorizer.h (unlimited_cost_model): Likewise.
32196
32197 2014-04-14  Richard Biener  <rguenther@suse.de>
32198
32199         PR lto/60720
32200         * lto-streamer-out.c (wrap_refs): New function.
32201         (lto_output): Wrap symbol references in global initializes in
32202         type-preserving MEM_REFs.
32203
32204 2014-04-14  Christian Bruel  <christian.bruel@st.com>
32205
32206         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
32207
32208 2014-04-14  Christian Bruel  <christian.bruel@st.com>
32209
32210         * config/sh/sh.md (setmemqi): New expand pattern.
32211         * config/sh/sh.h (CLEAR_RATIO): Define.
32212         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
32213         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
32214
32215 2014-04-14  Richard Biener  <rguenther@suse.de>
32216
32217         PR middle-end/55022
32218         * fold-const.c (negate_expr_p): Don't negate directional rounding
32219         division.
32220         (fold_negate_expr): Likewise.
32221
32222 2014-04-14  Richard Biener  <rguenther@suse.de>
32223
32224         PR tree-optimization/59817
32225         PR tree-optimization/60453
32226         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
32227         recursion to catch all CHRECs in the scalar evolution and restrict
32228         the predicate for the remains appropriately.
32229
32230 2014-04-12  Catherine Moore  <clm@codesourcery.com>
32231
32232         * config/mips/constraints.md: Add new register constraint "kb".
32233         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
32234         (*movhi_internal): Likewise.
32235         (*movqi_internal): Likewise.
32236         * config/mips/mips.h (M16_STORE_REGS): New register class.
32237         (REG_CLASS_NAMES): Add M16_STORE_REGS.
32238         (REG_CLASS_CONTENTS): Likewise.
32239         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
32240
32241 2014-04-11  Tobias Burnus  <burnus@net-b.de>
32242
32243         PR c/60194
32244         * doc/invoke.texi (-Wformat-signedness): Document it.
32245         (Wformat=2): Mention that this enables -Wformat-signedness.
32246
32247 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32248
32249         * common/config/epiphany/epiphany-common.c
32250         (epiphany_option_optimization_table): Enable section anchors by
32251         default at -O1 or higher.
32252         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
32253         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
32254         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
32255         carries no extra cost.
32256         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
32257         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
32258         * config/epiphany/predicates.md (memclob_operand): New predicate.
32259         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
32260         Use memclob_operand predicate and X constraint for operand 3.
32261
32262 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32263
32264         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
32265         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
32266         its operands.
32267
32268 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32269
32270         PR rtl-optimization/60651
32271         * mode-switching.c (optimize_mode_switching): Make sure to emit
32272         sets of a lower numbered entity before sets of a higher numbered
32273         entity to a mode of the same or lower priority.
32274         When creating a seginfo for a basic block that starts with a code
32275         label, move the insertion point past the code label.
32276         (new_seginfo): Document and enforce requirement that
32277         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
32278         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
32279         * doc/tm.texi: Regenerate.
32280
32281 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32282
32283         PR target/60811
32284         * config/arc/arc.c (arc_save_restore): Fix assert typo.
32285
32286 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
32287
32288         * BASE-VER: Set to 4.10.0.
32289
32290 2014-04-11  Tobias Burnus  <burnus@net-b.de>
32291
32292         PR other/59055
32293         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
32294         * doc/gcc.texi (Service): Update description in the @menu
32295         * doc/invoke.texi (Option Summary): Remove misplaced and
32296         duplicated @menu.
32297
32298 2014-04-11  Steve Ellcey  <sellcey@mips.com>
32299             Jakub Jelinek  <jakub@redhat.com>
32300
32301         PR middle-end/60556
32302         * expr.c (convert_move): Use emit_store_flag_force instead of
32303         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
32304         argument to it.
32305
32306 2014-04-11  Richard Biener  <rguenther@suse.de>
32307
32308         PR middle-end/60797
32309         * varasm.c (assemble_alias): Avoid endless error reporting
32310         recursion by setting TREE_ASM_WRITTEN.
32311
32312 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32313
32314         * config/s390/s390.md: Add a splitter for NOT rtx.
32315
32316 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
32317
32318         PR rtl-optimization/60663
32319         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
32320
32321 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
32322             Jakub Jelinek  <jakub@redhat.com>
32323
32324         PR lto/60567
32325         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
32326         flag from decl_node to node.
32327
32328 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32329
32330         PR debug/60655
32331         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
32332         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
32333         ameliorating the cases where it can be.
32334
32335 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
32336
32337         Revert
32338         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
32339
32340         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
32341         (loadsync_<mode>): Change mode.
32342         (load_quadpti, store_quadpti): New.
32343         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
32344         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
32345         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
32346
32347 2014-04-09  Cong Hou  <congh@google.com>
32348
32349         PR testsuite/60773
32350         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
32351         documentation.
32352
32353 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32354
32355         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
32356         instead of vnor to exploit possible fusion opportunity in the
32357         future.
32358         (altivec_expand_vec_perm_const_le): Likewise.
32359
32360 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
32361
32362         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
32363         (loadsync_<mode>): Change mode.
32364         (load_quadpti, store_quadpti): New.
32365         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
32366         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
32367
32368 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
32369
32370         PR target/60763
32371         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
32372         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
32373         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
32374
32375 2014-04-08  Richard Biener  <rguenther@suse.de>
32376
32377         PR middle-end/60706
32378         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
32379         a 64bit widest int print double-int similar to on HWI64 hosts.
32380
32381 2014-04-08  Richard Biener  <rguenther@suse.de>
32382
32383         PR tree-optimization/60785
32384         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
32385         default defs properly.
32386
32387 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
32388
32389         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
32390         (Weffc++): Likewise.
32391
32392 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
32393
32394         * ipa-devirt.c (maybe_record_node): When node is not recorded,
32395         set completep to false rather than true.
32396
32397 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
32398
32399         PR target/60504
32400         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
32401         ARM_TARGET2_DWARF_FORMAT.
32402
32403 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
32404
32405         PR target/60609
32406         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
32407         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
32408         ADDR_DIFF_VEC.
32409
32410 2014-04-07  Richard Biener  <rguenther@suse.de>
32411
32412         PR tree-optimization/60766
32413         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
32414         (may_eliminate_iv): Convert cand_value_at result to desired type.
32415
32416 2014-04-07  Jason Merrill  <jason@redhat.com>
32417
32418         PR c++/60731
32419         * common.opt (-fno-gnu-unique): Add.
32420         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
32421
32422 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32423
32424         * haifa-sched.c: Fix outdated function reference and minor
32425         grammar errors in introductory comment.
32426
32427 2014-04-07  Richard Biener  <rguenther@suse.de>
32428
32429         PR middle-end/60750
32430         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
32431         for noreturn calls.
32432         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
32433
32434 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
32435
32436         PR debug/55794
32437         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
32438         size accounting for thunks.
32439         (pa_asm_output_mi_thunk): Use final_start_function() and
32440         final_end_function() to output function start and end directives.
32441
32442 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
32443
32444         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
32445         device specific ISA/ feature information. Remove short_sp and
32446         errata_skip ds.  Add avr_device_specific_features enum to have device
32447         specific info.
32448         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
32449         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
32450         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
32451         updated device specific info.
32452         * config/avr/avr-mcus.def: Merge device specific details to
32453         dev_attribute field.
32454         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
32455         errata_skip.
32456         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
32457         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
32458         assembler if RMW isa supported by current device.
32459         * config/avr/genmultilib.awk: Update as device info structure changed.
32460         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
32461
32462 2014-04-04  Cong Hou  <congh@google.com>
32463
32464         PR tree-optimization/60656
32465         * tree-vect-stmts.c (supportable_widening_operation):
32466         Fix a bug that elements in a vector with vect_used_by_reduction
32467         property are incorrectly reordered when the operation on it is not
32468         consistant with the one in reduction operation.
32469
32470 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
32471
32472         PR rtl-optimization/60155
32473         * gcse.c (record_set_data): New function.
32474         (single_set_gcse): New function.
32475         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
32476         (hoist_code): Likewise.
32477         (get_pressure_class_and_nregs): Likewise.
32478
32479 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
32480
32481         * explow.c (probe_stack_range): Emit a final optimization blockage.
32482
32483 2014-04-04  Anthony Green  <green@moxielogic.com>
32484
32485         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
32486         typos.
32487
32488 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
32489
32490         PR ipa/59626
32491         * lto-cgraph.c (input_overwrite_node): Check that partitioning
32492         flags are set only during streaming.
32493         * ipa.c (process_references, walk_polymorphic_call_targets,
32494         symtab_remove_unreachable_nodes): Drop bodies of always inline
32495         after early inlining.
32496         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
32497
32498 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
32499         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32500
32501         PR debug/60655
32502         * dwarf2out.c (const_ok_for_output_1): Reject expressions
32503         containing a NOT.
32504
32505 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32506
32507         PR bootstrap/60743
32508         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
32509         duration.
32510         (cortex_a53_fdivd): Likewise.
32511
32512 2014-04-04  Martin Jambor  <mjambor@suse.cz>
32513
32514         PR ipa/60640
32515         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
32516         Adjust all callers.
32517         * cgraph.c (clone_of_p): Also return true if thunks match.
32518         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
32519         cgraph_function_or_thunk_node and an obsolete comment.
32520         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
32521         file.
32522         (build_function_decl_skip_args): Likewise.
32523         (set_new_clone_decl_and_node_flags): New function.
32524         (duplicate_thunk_for_node): Likewise.
32525         (redirect_edge_duplicating_thunks): Likewise.
32526         (cgraph_clone_node): New parameter args_to_skip, pass it to
32527         redirect_edge_duplicating_thunks which is called instead of
32528         cgraph_redirect_edge_callee.
32529         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
32530         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
32531
32532 2014-04-04  Jeff Law  <law@redhat.com>
32533
32534         PR target/60657
32535         * config/arm/predicates.md (const_int_I_operand): New predicate.
32536         (const_int_M_operand): Similarly.
32537         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
32538         const_int_operand.
32539         (insv_t2, extv_reg, extzv_t2): Likewise.
32540         (load_multiple_with_writeback): Similarly for const_int_I_operand.
32541         (pop_multiple_with_writeback_and_return): Likewise.
32542         (vfp_pop_multiple_with_writeback): Likewise
32543
32544 2014-04-04  Richard Biener  <rguenther@suse.de>
32545
32546         PR ipa/60746
32547         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
32548         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
32549         non-GIMPLE_LABELs.
32550         * gimplify.h (gimple_add_tmp_var_fn): Declare.
32551         * gimplify.c (gimple_add_tmp_var_fn): New function.
32552         * gimple-expr.h (create_tmp_reg_fn): Declare.
32553         * gimple-expr.c (create_tmp_reg_fn): New function.
32554         * gimple-low.c (record_vars_into): Don't change cfun.
32555         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
32556         code generation without cfun.
32557
32558 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
32559
32560         PR bootstrap/60719
32561         * Makefile.in (install-driver): Fix shell scripting.
32562
32563 2014-04-03  Cong Hou  <congh@google.com>
32564
32565         PR tree-optimization/60505
32566         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
32567         threshold of number of iterations below which no vectorization
32568         will be done.
32569         * tree-vect-loop.c (new_loop_vec_info):
32570         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
32571         * tree-vect-loop.c (vect_analyze_loop_operations):
32572         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
32573         * tree-vect-loop.c (vect_transform_loop):
32574         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
32575         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
32576         of iterations of the loop and see if we should build the epilogue.
32577
32578 2014-04-03  Richard Biener  <rguenther@suse.de>
32579
32580         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
32581         (streamer_tree_cache_create): Adjust.
32582         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
32583         to allow optional nodes array.
32584         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
32585         (streamer_tree_cache_append): Likewise.
32586         (streamer_tree_cache_create): Create nodes array optionally
32587         as specified by parameter.
32588         * lto-streamer-out.c (create_output_block): Avoid maintaining
32589         the node array in the writer cache.
32590         (DFS_write_tree): Remove assertion.
32591         (produce_asm_for_decls): Free the out decl state hash table early.
32592         * lto-streamer-in.c (lto_data_in_create): Adjust for
32593         streamer_tree_cache_create prototype change.
32594
32595 2014-04-03  Richard Biener  <rguenther@suse.de>
32596
32597         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
32598         set TREE_CHAIN to NULL_TREE.
32599
32600 2014-04-03  Richard Biener  <rguenther@suse.de>
32601
32602         PR tree-optimization/60740
32603         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
32604         over all GIMPLE_COND operands.
32605
32606 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
32607
32608         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
32609         (Weffc++): Remove Scott's numbering, merge lists and reference
32610         Wnon-virtual-dtor.
32611
32612 2014-04-03  Nick Clifton  <nickc@redhat.com>
32613
32614         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
32615         properly.
32616
32617 2014-04-03  Martin Jambor  <mjambor@suse.cz>
32618
32619         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
32620         mention gcc_unreachable before failing.
32621         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
32622         removed symbols.
32623
32624 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
32625
32626         PR ipa/60659
32627         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
32628         inconsistent code and instead mark the context inconsistent.
32629         (possible_polymorphic_call_targets): For inconsistent contexts
32630         return empty complete list.
32631
32632 2014-04-02  Anthony Green  <green@moxielogic.com>
32633
32634         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
32635         (extendqisi2, extendhisi2): Define.
32636         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
32637         (WCHAR_TYPE): Change to unsigned int.
32638
32639 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32640
32641         PR tree-optimization/60733
32642         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
32643         insertion point for PHI candidates to be the end of the feeding
32644         block for the PHI argument.
32645
32646 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
32647
32648         PR rtl-optimization/60650
32649         * lra-constraints.c (process_alt_operands): Decrease reject for
32650         earlyclobber matching.
32651
32652 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32653
32654         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
32655
32656 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32657
32658         * config/spu/spu.c (pad_bb): Do not crash when the last
32659         insn is CODE_FOR_blockage.
32660
32661 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32662
32663         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
32664         lies outside the target mode.
32665
32666 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
32667
32668         PR target/60735
32669         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
32670         software floating point or no floating point registers, do not
32671         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
32672         in GPRs that occurs after we tested for GPRs that would never be
32673         true.
32674
32675         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
32676         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
32677         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
32678         specifically allow DDmode, since that does not use the SPE SIMD
32679         instructions.
32680
32681 2014-04-02  Richard Biener  <rguenther@suse.de>
32682
32683         PR middle-end/60729
32684         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
32685         MODE_INTs.  Properly use negv_optab.
32686         (expand_abs): Likewise.
32687
32688 2014-04-02  Richard Biener  <rguenther@suse.de>
32689
32690         PR bootstrap/60719
32691         * Makefile.in (install-driver): Guard extra installs with special
32692         names properly.
32693
32694 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
32695
32696         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
32697         Document vec_vgbbd.
32698
32699 2014-04-01  Richard Henderson  <rth@redhat.com>
32700
32701         PR target/60704
32702         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
32703         alternative enabled before register allocation.
32704
32705 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
32706
32707         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
32708         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
32709         typo.
32710         (nios2_large_got_address): Remove unneeded 'sym' parameter.
32711         (nios2_got_address): Update nios2_large_got_address call site.
32712         (nios2_delegitimize_address): New function.
32713         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
32714         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
32715         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
32716
32717 2014-04-01  Martin Husemann  <martin@duskware.de>
32718
32719         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
32720         for -mabi=32.
32721
32722 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
32723
32724         PR rtl-optimization/60604
32725         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
32726         check from register_operand.
32727         (register_operand): Redefine in terms of general_operand.
32728         (nonmemory_operand): Use register_operand for the non-constant cases.
32729
32730 2014-04-01  Richard Biener  <rguenther@suse.de>
32731
32732         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
32733
32734 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32735
32736         * doc/invoke.texi (mapp-regs): Clarify.
32737
32738 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
32739
32740         * config/i386/avx512fintrin.h (__v32hi): Define type.
32741         (__v64qi): Likewise.
32742         (_mm512_set1_epi8): Define.
32743         (_mm512_set1_epi16): Define.
32744         (_mm512_set4_epi32): Define.
32745         (_mm512_set4_epi64): Define.
32746         (_mm512_set4_pd): Define.
32747         (_mm512_set4_ps): Define.
32748         (_mm512_setr4_epi64): Define.
32749         (_mm512_setr4_epi32): Define.
32750         (_mm512_setr4_pd): Define.
32751         (_mm512_setr4_ps): Define.
32752         (_mm512_setzero_epi32): Define.
32753
32754 2014-03-31  Martin Jambor  <mjambor@suse.cz>
32755
32756         PR middle-end/60647
32757         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
32758         callsite_arguments_match_p.  Updated all callers.  Also check types of
32759         corresponding formal parameters and actual arguments.
32760         (not_all_callers_have_enough_arguments_p) Renamed to
32761         some_callers_have_mismatched_arguments_p.
32762
32763 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
32764
32765         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
32766
32767 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
32768
32769         PR target/60034
32770         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
32771         section anchor.
32772
32773 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
32774
32775         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
32776         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
32777         Split out
32778         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
32779         Use FMAMODE_NOVF512 mode iterator.
32780         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
32781         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
32782         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
32783         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
32784         Split out
32785         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
32786         Use VF_128_256 mode iterator.
32787         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
32788         Ditto.
32789
32790 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
32791
32792         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
32793         static chain if needed.
32794
32795 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
32796
32797         PR target/60697
32798         * lra-constraints.c (index_part_to_reg): New.
32799         (process_address): Use it.
32800
32801 2014-03-27  Jeff Law  <law@redhat.com>
32802             Jakub Jelinek  <jakub@redhat.com>
32803
32804         PR target/60648
32805         * expr.c (do_tablejump): Use simplify_gen_binary rather than
32806         gen_rtx_{PLUS,MULT} to build up the address expression.
32807
32808         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
32809         creating non-canonical RTL.
32810
32811 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
32812
32813         PR ipa/60243
32814         * ipa-inline.c (want_inline_small_function_p): Short circuit large
32815         functions; reorganize to make cheap checks first.
32816         (inline_small_functions): Do not estimate growth when dumping;
32817         it is expensive.
32818         * ipa-inline.h (inline_summary): Add min_size.
32819         (growth_likely_positive): New function.
32820         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
32821         (set_cond_stmt_execution_predicate): Cleanup.
32822         (estimate_edge_size_and_time): Compute min_size.
32823         (estimate_calls_size_and_time): Likewise.
32824         (estimate_node_size_and_time): Likewise.
32825         (inline_update_overall_summary): Update min_size.
32826         (do_estimate_edge_time): Likewise.
32827         (do_estimate_edge_size): Update.
32828         (do_estimate_edge_hints): Update.
32829         (growth_likely_positive): New function.
32830
32831 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
32832
32833         PR target/60693
32834         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
32835         also if addr has VOIDmode.
32836
32837 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32838
32839         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
32840         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
32841         Declare extern.
32842         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
32843         instructions as well as AdvancedSIMD loads.
32844
32845 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32846
32847         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
32848         Use crypto_aese type.
32849         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
32850         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
32851         crypto_aese, crypto_aesmc.  Move to types.md.
32852         * config/arm/types.md (crypto_aes): Split into crypto_aese,
32853         crypto_aesmc.
32854         * config/arm/iterators.md (crypto_type): Likewise.
32855
32856 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
32857
32858         * cgraph.c: Include expr.h and tree-dfa.h.
32859         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
32860         remove LHS.
32861
32862 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
32863
32864         PR target/60675
32865         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
32866         regs from checking multi-reg pseudos.
32867
32868 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32869
32870         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
32871
32872 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32873
32874         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
32875         if it would clobber the stack pointer, even temporarily.
32876
32877 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
32878
32879         * mode-switching.c: Make small adjustments to the top comment.
32880
32881 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
32882
32883         * config/rs6000/constraints.md (wD constraint): New constraint to
32884         match the constant integer to get the top DImode/DFmode out of a
32885         vector in a VSX register.
32886
32887         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
32888         match the constant integer to get the top DImode/DFmode out of a
32889         vector in a VSX register.
32890
32891         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
32892         for ISA 2.07.
32893
32894         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
32895         vbpermq builtins.
32896
32897         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32898         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
32899
32900         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
32901         Optimize vec_extract of 64-bit values, where the value being
32902         extracted is in the top word, where we can use scalar
32903         instructions.  Add direct move and store support.  Combine the big
32904         endian/little endian vector select load support into a single insn.
32905         (vsx_extract_<mode>_internal1): Likewise.
32906         (vsx_extract_<mode>_internal2): Likewise.
32907         (vsx_extract_<mode>_load): Likewise.
32908         (vsx_extract_<mode>_store): Likewise.
32909         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
32910         combined into vsx_extract_<mode>_load.
32911         (vsx_extract_<mode>_one_le): Likewise.
32912
32913         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
32914         define the top 64-bit vector element.
32915
32916         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
32917         constraint.
32918
32919         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
32920         Document vec_vbpermq builtin.
32921
32922         PR target/60672
32923         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
32924         enable use of xxsldwi and xxpermdi builtin functions.
32925         (vec_xxpermdi): Likewise.
32926
32927         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
32928         Document use of vec_xxsldwi and vec_xxpermdi builtins.
32929
32930 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
32931
32932         PR rtl-optimization/60650
32933         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
32934         first_p.  Use it.
32935         (find_spills_for): New.
32936         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
32937         Spill all pseudos on the second iteration.
32938
32939 2014-03-27  Marek Polacek  <polacek@redhat.com>
32940
32941         PR c/50347
32942         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
32943         types.
32944
32945 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32946
32947         * config/s390/s390.c (s390_can_use_return_insn): Check for
32948         call-saved FPRs on 31 bit.
32949
32950 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
32951
32952         PR middle-end/60682
32953         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
32954         if they need regimplification, just drop them instead of
32955         calling gimple_regimplify_operands on them.
32956
32957 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32958
32959         PR target/60580
32960         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
32961         (aarch64_frame_pointer_required): Adjust logic.
32962         (aarch64_can_eliminate): Adjust logic.
32963         (aarch64_override_options_after_change): Adjust logic.
32964
32965 2014-03-27  Dehao Chen  <dehao@google.com>
32966
32967         * ipa-inline.c (early_inliner): Update node's inline info.
32968
32969 2014-03-26  Dehao Chen  <dehao@google.com>
32970
32971         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
32972         compiler inserted conditional jumps for NAN float check.
32973
32974 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
32975
32976         * ubsan.h (ubsan_create_data): Change second argument's type
32977         to const location_t *.
32978         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
32979         _("<unknown>").
32980         (ubsan_create_data): Change second argument to const location_t *PLOC.
32981         Create Loc field whenever PLOC is non-NULL.
32982         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
32983         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
32984         callers.
32985
32986         PR other/59545
32987         * real.c (real_to_integer2): Change type of low to UHWI.
32988
32989 2014-03-26  Tobias Burnus  <burnus@net-b.de>
32990
32991         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
32992         (CILK_SELF_SPECS): New define.
32993         (driver_self_specs): Use it.
32994
32995 2014-03-26  Richard Biener  <rguenther@suse.de>
32996
32997         * tree-pretty-print.c (percent_K_format): Implement special
32998         case for LTO and its stripped down BLOCK tree.
32999
33000 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
33001
33002         PR sanitizer/60636
33003         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
33004
33005         * tree-vrp.c (simplify_internal_call_using_ranges): If only
33006         one range is range_int_cst_p, but not both, at least optimize
33007         addition/subtraction of 0 and multiplication by 0 or 1.
33008         * gimple-fold.c (gimple_fold_call): Fold
33009         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
33010         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
33011         INTEGER_CSTs, try to fold at least x * 0 and y - y.
33012
33013 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
33014
33015         PR rtl-optimization/60452
33016         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
33017         <case REG>: Return 1 for invalid offsets from the frame pointer.
33018
33019 2014-03-26  Marek Polacek  <polacek@redhat.com>
33020
33021         PR c/37428
33022         * doc/extend.texi (C Extensions): Mention variable-length arrays in
33023         a structure/union.
33024
33025 2014-03-26  Marek Polacek  <polacek@redhat.com>
33026
33027         PR c/39525
33028         * doc/extend.texi (Designated Inits): Describe what happens to omitted
33029         field members.
33030
33031 2014-03-26  Marek Polacek  <polacek@redhat.com>
33032
33033         PR other/59545
33034         * ira-color.c (update_conflict_hard_regno_costs): Perform the
33035         multiplication in unsigned type.
33036
33037 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
33038
33039         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
33040
33041 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
33042
33043         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
33044
33045 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
33046
33047         PR ipa/60315
33048         * cif-code.def (UNREACHABLE) New code.
33049         * ipa-inline.c (inline_small_functions): Skip edges to
33050         __builtlin_unreachable.
33051         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
33052         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
33053         predicate to __bulitin_unreachable.
33054         (set_cond_stmt_execution_predicate): Fix issue when
33055         invert_tree_comparison returns ERROR_MARK.
33056         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
33057         propagate to inline clones.
33058         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
33059         to unreachable.
33060         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
33061         * cgraphclones.c (cgraph_clone_node): If call destination is already
33062         ureachable, do not redirect it back.
33063         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
33064         unreachable.
33065
33066 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
33067
33068         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
33069         Do not modify inline clones.
33070
33071 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
33072
33073         * config/i386/i386.md (general_sext_operand): New mode attr.
33074         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
33075         don't generate (sign_extend (const_int)).
33076         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
33077         operands[2].  Use We constraint instead of <i> and
33078         <general_sext_operand> predicate instead of <general_operand>.
33079         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
33080         * config/i386/constraints.md (We): New constraint.
33081         * config/i386/predicates.md (x86_64_sext_operand,
33082         sext_operand): New predicates.
33083
33084 2014-03-25  Martin Jambor  <mjambor@suse.cz>
33085
33086         PR ipa/60600
33087         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
33088         inconsistent devirtualizations to __builtin_unreachable.
33089
33090 2014-03-25  Marek Polacek  <polacek@redhat.com>
33091
33092         PR c/35449
33093         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
33094
33095 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
33096
33097         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
33098         order of elements for big-endian.
33099
33100 2014-03-25  Richard Biener  <rguenther@suse.de>
33101
33102         PR middle-end/60635
33103         * gimplify-me.c (gimple_regimplify_operands): Update the
33104         re-gimplifed stmt.
33105
33106 2014-03-25  Martin Jambor  <mjambor@suse.cz>
33107
33108         PR ipa/59176
33109         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
33110         (lto_output_varpool_node): Likewise.
33111         (input_overwrite_node): Likewise.
33112         (input_varpool_node): Likewise.
33113
33114 2014-03-25  Richard Biener  <rguenther@suse.de>
33115
33116         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
33117         (run_gcc): Likewise.
33118
33119 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
33120
33121         * combine.c (simplify_compare_const): Add MODE argument.
33122         Handle mode_width 0 as very large mode_width.
33123         (try_combine, simplify_comparison): Adjust callers.
33124
33125         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
33126         type to avoid signed integer overflow.
33127         * explow.c (plus_constant): Likewise.
33128
33129 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33130
33131         * doc/generic.texi: Correct typos.
33132
33133 2014-03-24  Tobias Burnus  <burnus@net-b.de>
33134
33135         * doc/invoke.texi (-flto): Expand section about
33136         using static libraries with LTO.
33137
33138 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33139
33140         PR rtl-optimization/60501
33141         * optabs.def (addptr3_optab): New optab.
33142         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
33143         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
33144         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
33145
33146         * lra.c (emit_add3_insn): Use the addptr pattern if available.
33147
33148         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
33149
33150 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
33151
33152         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
33153         _mm512_set1_pd.
33154
33155         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
33156         (_mm256_undefined_ps): Define.
33157         (_mm256_undefined_pd): Define.
33158         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
33159         (_mm_undefined_pd): Define.
33160         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
33161         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
33162         (_mm512_undefined_ps): Define.
33163         (_mm512_undefined_pd): Define.
33164         Use _mm*_undefined_*.
33165         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
33166
33167 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
33168
33169         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
33170         (lshr_simd): DI mode added.
33171         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
33172         (aarch64_ushr_simddi): Likewise.
33173         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
33174         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
33175         (vshrd_n_u64): Likewise.
33176
33177 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33178
33179         * Makefile.in (s-macro_list): Depend on cc1.
33180
33181 2014-03-23  Teresa Johnson  <tejohnson@google.com>
33182
33183         * ipa-utils.c (ipa_print_order): Use specified dump file.
33184
33185 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
33186
33187         PR rtl-optimization/60601
33188         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
33189
33190         * gcc.c (eval_spec_function): Initialize save_growing_value.
33191
33192 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
33193
33194         PR sanitizer/60613
33195         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
33196         code == MINUS_EXPR, never swap op0 with op1.
33197
33198         * toplev.c (init_local_tick): Avoid signed integer multiplication
33199         overflow.
33200         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
33201         shift by first operand's bitsize.
33202
33203 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
33204
33205         PR target/60610
33206         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
33207         redefine to 1 or 0.
33208         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
33209         TARGET_ISA_64BIT_P(x).
33210
33211 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33212
33213         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
33214         pattern for vector nor instead of subtract from splat(-1).
33215         (altivec_expand_vec_perm_const_le): Likewise.
33216
33217 2014-03-21  Richard Henderson  <rth@twiddle.net>
33218
33219         PR target/60598
33220         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
33221         related insns after epilogue_completed.
33222
33223 2014-03-21  Martin Jambor  <mjambor@suse.cz>
33224
33225         PR ipa/59176
33226         * cgraph.h (symtab_node): New flag body_removed.
33227         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
33228         when removing bodies.
33229         * symtab.c (dump_symtab_base): Dump body_removed flag.
33230         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
33231         had their bodies removed.
33232
33233 2014-03-21  Martin Jambor  <mjambor@suse.cz>
33234
33235         PR ipa/60419
33236         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
33237         in the border.
33238
33239 2014-03-21  Richard Biener  <rguenther@suse.de>
33240
33241         PR tree-optimization/60577
33242         * tree-core.h (struct tree_base): Document nothrow_flag use
33243         in DECL_NONALIASED.
33244         * tree.h (DECL_NONALIASED): New.
33245         (may_be_aliased): Adjust.
33246         * coverage.c (build_var): Set DECL_NONALIASED.
33247
33248 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
33249
33250         * expr.c (expand_expr_real_1): Remove outdated comment.
33251
33252 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
33253
33254         PR middle-end/60597
33255         * ira.c (adjust_cleared_regs): Call copy_rtx on
33256         *reg_equiv[REGNO (loc)].src_p before passing it to
33257         simplify_replace_fn_rtx.
33258
33259         PR target/60568
33260         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
33261         into CONST, put pic register as first operand of PLUS.  Use
33262         gen_const_mem for both 32-bit and 64-bit PIC got loads.
33263
33264 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33265
33266         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
33267
33268 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
33269
33270         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
33271         around for store forwarding issue in the FPU on the UT699.
33272         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
33273         loads and operations if -mfix-ut699 is specified.
33274         (divtf3_hq): Tweak attribute.
33275         (sqrttf2_hq): Likewise.
33276
33277 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
33278
33279         * calls.c (store_one_arg): Remove incorrect const qualification on the
33280         type of the temporary.
33281         * cfgexpand.c (expand_return): Likewise.
33282         * expr.c (expand_constructor): Likewise.
33283         (expand_expr_real_1): Likewise.
33284
33285 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
33286
33287         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
33288         of parts.
33289
33290 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
33291
33292         PR target/60039
33293         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
33294
33295 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
33296
33297         * config/arm/aarch-common-protos.h
33298         (alu_cost_table): Fix spelling of "extend".
33299         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
33300
33301 2014-03-19  Richard Biener  <rguenther@suse.de>
33302
33303         PR middle-end/60553
33304         * tree-core.h (tree_type_common): Re-order pointer members
33305         to reduce recursion depth during GC walks.
33306
33307 2014-03-19  Marek Polacek  <polacek@redhat.com>
33308
33309         PR sanitizer/60569
33310         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
33311         before accessing it.
33312
33313 2014-03-19  Richard Biener  <rguenther@suse.de>
33314
33315         PR lto/59543
33316         * lto-streamer-in.c (input_function): In WPA stage do not drop
33317         debug stmts.
33318
33319 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
33320
33321         PR tree-optimization/60559
33322         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
33323         with build_zero_cst assignment.
33324
33325 2014-03-18  Kai Tietz  <ktietz@redhat.com>
33326
33327         PR rtl-optimization/56356
33328         * sdbout.c (sdbout_parms): Verify that parms'
33329         incoming argument is valid.
33330         (sdbout_reg_parms): Likewise.
33331
33332 2014-03-18  Richard Henderson  <rth@redhat.com>
33333
33334         PR target/60562
33335         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
33336         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
33337         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
33338
33339 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
33340
33341         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
33342         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
33343         Italicize plugin event names in description.  Explain that
33344         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
33345         Remind that no GCC functions should be called after PLUGIN_FINISH.
33346         Explain what pragmas with expansion are.
33347
33348 2014-03-18  Martin Liska  <mliska@suse.cz>
33349
33350         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
33351         gimple call statement is update.
33352         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
33353         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
33354
33355 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
33356
33357         PR sanitizer/60557
33358         * ubsan.c (ubsan_instrument_unreachable): Call
33359         initialize_sanitizer_builtins.
33360         (ubsan_pass): Likewise.
33361
33362         PR sanitizer/60535
33363         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
33364         varpool_finalize_decl instead of rest_of_decl_compilation.
33365
33366 2014-03-18  Richard Biener  <rguenther@suse.de>
33367
33368         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
33369         by using bitmap_and_compl instead of bitmap_and_compl_into.
33370         (df_rd_transfer_function): Likewise.
33371
33372 2014-03-18  Richard Biener  <rguenther@suse.de>
33373
33374         * doc/lto.texi (fresolution): Fix typo.
33375
33376 2014-03-18  Richard Biener  <rguenther@suse.de>
33377
33378         * doc/invoke.texi (flto): Update for changes in 4.9.
33379
33380 2014-03-18  Richard Biener  <rguenther@suse.de>
33381
33382         * doc/loop.texi: Remove section on the removed lambda framework.
33383         Update loop docs with recent changes in preserving loop structure.
33384
33385 2014-03-18  Richard Biener  <rguenther@suse.de>
33386
33387         * doc/lto.texi (-fresolution): Document.
33388
33389 2014-03-18  Richard Biener  <rguenther@suse.de>
33390
33391         * doc/contrib.texi: Adjust my name.
33392
33393 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
33394
33395         PR ipa/58721
33396         * internal-fn.c: Include diagnostic-core.h.
33397         (expand_BUILTIN_EXPECT): New function.
33398         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
33399         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
33400         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
33401         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
33402         IFN_BUILTIN_EXPECT.
33403         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
33404         Revert 3 argument __builtin_expect code.
33405         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
33406         * gimple-fold.c (gimple_fold_call): Likewise.
33407         * tree.h (fold_builtin_expect): New prototype.
33408         * builtins.c (build_builtin_expect_predicate): Add predictor
33409         argument, if non-NULL, create 3 argument __builtin_expect.
33410         (fold_builtin_expect): No longer static.  Add ARG2 argument,
33411         pass it through to build_builtin_expect_predicate.
33412         (fold_builtin_2): Adjust caller.
33413         (fold_builtin_3): Handle BUILT_IN_EXPECT.
33414         * internal-fn.def (BUILTIN_EXPECT): New.
33415
33416 2014-03-18  Tobias Burnus  <burnus@net-b.de>
33417
33418         PR ipa/58721
33419         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
33420         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
33421         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
33422
33423 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
33424
33425         PR ipa/58721
33426         * predict.c (combine_predictions_for_bb): Fix up formatting.
33427         (expr_expected_value_1, expr_expected_value): Add predictor argument,
33428         fill what it points to if non-NULL.
33429         (tree_predict_by_opcode): Adjust caller, use the predictor.
33430         * predict.def (PRED_COMPARE_AND_SWAP): Add.
33431
33432 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
33433
33434         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
33435         proper constant for the store mode.
33436
33437 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
33438
33439         * symtab.c (change_decl_assembler_name): Fix transparent alias
33440         chain construction.
33441
33442 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
33443
33444         * config/aarch64/aarch64.c: Correct the comments about the
33445         aarch64 stack layout.
33446
33447 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
33448
33449         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
33450         check for GF_OMP_FOR_KIND_FOR.
33451
33452 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
33453
33454         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
33455         ymm and zmm register names.
33456
33457 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
33458
33459         PR target/60516
33460         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
33461         note creation for the 2010-08-31 changes.
33462
33463 2014-03-17  Marek Polacek  <polacek@redhat.com>
33464
33465         PR middle-end/60534
33466         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
33467         as -fno-tree-loop-vectorize.
33468         (expand_omp_simd): Likewise.
33469
33470 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
33471
33472         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
33473         (eligible_for_call_delay): New prototype.
33474         * config/sparc/sparc.c (tls_call_delay): Rename into...
33475         (eligible_for_call_delay): ...this.  Return false if the instruction
33476         cannot be put in the delay slot of a branch.
33477         (eligible_for_restore_insn): Simplify.
33478         (eligible_for_return_delay): Return false if the instruction cannot be
33479         put in the delay slot of a branch and simplify.
33480         (eligible_for_sibcall_delay): Return false if the instruction cannot be
33481         put in the delay slot of a branch.
33482         * config/sparc/sparc.md (fix_ut699): New attribute.
33483         (tls_call_delay): Delete.
33484         (in_call_delay): Reimplement.
33485         (eligible_for_sibcall_delay): Rename into...
33486         (in_sibcall_delay): ...this.
33487         (eligible_for_return_delay): Rename into...
33488         (in_return_delay): ...this.
33489         (in_branch_delay): Reimplement.
33490         (in_uncond_branch_delay): Delete.
33491         (in_annul_branch_delay): Delete.
33492
33493 2014-03-14  Richard Henderson  <rth@redhat.com>
33494
33495         PR target/60525
33496         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
33497         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
33498         (*floathi<X87MODEF>2_i387_with_temp): Remove.
33499         (floathi splitters): Remove.
33500         (float<SWI48x>xf2): New pattern.
33501         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
33502         code that tried to handle DImode for 32-bit, but which was excluded
33503         by the pattern's condition.  Drop allocation of stack temporary.
33504         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
33505         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
33506         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
33507         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
33508         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
33509         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
33510         (*float<SWI48><MODEF>2_sse_interunit): Remove.
33511         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
33512         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
33513         (*float<SWI48x><X87MODEF>2_i387): Remove.
33514         (all float _with_temp splitters): Remove.
33515         (*float<SWI48x><MODEF>2_i387): New pattern.
33516         (*float<SWI48><MODEF>2_sse): New pattern.
33517         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
33518         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
33519
33520 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
33521             Marek Polacek  <polacek@redhat.com>
33522
33523         PR middle-end/60484
33524         * common.opt (dump_base_name_prefixed): New Variable.
33525         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
33526         if x_dump_base_name_prefixed is already set, set it at the end.
33527
33528 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
33529
33530         PR rtl-optimization/60508
33531         * lra-constraints.c (get_reload_reg): Add new parameter
33532         in_subreg_p.
33533         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
33534         Pass the new parameter values.
33535
33536 2014-03-14  Richard Biener  <rguenther@suse.de>
33537
33538         * common.opt: Revert unintented changes from r205065.
33539         * opts.c: Likewise.
33540
33541 2014-03-14  Richard Biener  <rguenther@suse.de>
33542
33543         PR middle-end/60518
33544         * cfghooks.c (split_block): Properly adjust all loops the
33545         block was a latch of.
33546
33547 2014-03-14  Martin Jambor  <mjambor@suse.cz>
33548
33549         PR lto/60461
33550         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
33551         and simplify it.
33552
33553 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
33554
33555         PR target/59396
33556         * config/avr/avr.c (avr_set_current_function): Pass function name
33557         through default_strip_name_encoding before sanity checking instead
33558         of skipping the first char of the assembler name.
33559
33560 2014-03-13  Richard Henderson  <rth@redhat.com>
33561
33562         PR debug/60438
33563         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
33564         (ix86_force_to_memory, ix86_free_from_memory): Remove.
33565         * config/i386/i386-protos.h: Likewise.
33566         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
33567         in the expander instead of a splitter.
33568         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
33569         any possibility of requiring a memory.
33570         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
33571         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
33572         (fp branch splitters): Update for ix86_split_fp_branch.
33573         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
33574         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
33575         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
33576         (*fop_<MODEF>_2_i387): Remove f/r alternative.
33577         (*fop_<MODEF>_3_i387): Likewise.
33578         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
33579         (splitters for the fop_* register patterns): Remove.
33580         (fscalexf4_i387): Rename from *fscalexf4_i387.
33581         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
33582
33583 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
33584
33585         PR tree-optimization/59779
33586         * tree-dfa.c (get_ref_base_and_extent): Use double_int
33587         type for bitsize and maxsize instead of HOST_WIDE_INT.
33588
33589 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
33590
33591         PR rtl-optimization/57320
33592         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
33593         the CFG after thread_prologue_and_epilogue_insns.
33594
33595 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
33596
33597         PR rtl-optimization/57189
33598         * lra-constraints.c (process_alt_operands): Disfavor spilling
33599         vector pseudos.
33600
33601 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
33602
33603         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
33604
33605 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
33606
33607         PR tree-optimization/59025
33608         PR middle-end/60418
33609         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
33610         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
33611
33612 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
33613
33614         PR target/60486
33615         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
33616         calls of avr_out_plus_1.
33617
33618 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
33619
33620         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
33621         BB's single pred and update the father loop's latch info later.
33622
33623 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
33624
33625         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
33626         (VEC_M): Likewise.
33627         (VEC_N): Likewise.
33628         (VEC_R): Likewise.
33629         (VEC_base): Likewise.
33630         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
33631         registers, we need to swap double words in little endian mode.
33632
33633         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
33634         to be a container mode for 128-bit integer operations added in ISA
33635         2.07.  Unlike TImode and PTImode, the preferred register set is
33636         the Altivec/VMX registers for the 128-bit operations.
33637
33638         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
33639         declarations.
33640         (rs6000_split_128bit_ok_p): Likewise.
33641
33642         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
33643         macros for creating ISA 2.07 normal and overloaded builtin
33644         functions with 3 arguments.
33645         (BU_P8V_OVERLOAD_3): Likewise.
33646         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
33647         for use as overloaded functions.
33648         (VPERM_1TI_UNS): Likewise.
33649         (VSEL_1TI): Likewise.
33650         (VSEL_1TI_UNS): Likewise.
33651         (ST_INTERNAL_1ti): Likewise.
33652         (LD_INTERNAL_1ti): Likewise.
33653         (XXSEL_1TI): Likewise.
33654         (XXSEL_1TI_UNS): Likewise.
33655         (VPERM_1TI): Likewise.
33656         (VPERM_1TI_UNS): Likewise.
33657         (XXPERMDI_1TI): Likewise.
33658         (SET_1TI): Likewise.
33659         (LXVD2X_V1TI): Likewise.
33660         (STXVD2X_V1TI): Likewise.
33661         (VEC_INIT_V1TI): Likewise.
33662         (VEC_SET_V1TI): Likewise.
33663         (VEC_EXT_V1TI): Likewise.
33664         (EQV_V1TI): Likewise.
33665         (NAND_V1TI): Likewise.
33666         (ORC_V1TI): Likewise.
33667         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
33668         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
33669         overloaded builtin.
33670         (VADDUQM): Likewise.
33671         (VSUBCUQ): Likewise.
33672         (VADDEUQM): Likewise.
33673         (VADDECUQ): Likewise.
33674         (VSUBEUQM): Likewise.
33675         (VSUBECUQ): Likewise.
33676
33677         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
33678         __int128_t and __uint128_t types.
33679         (__uint128_type): Likewise.
33680         (altivec_categorize_keyword): Add support for vector __int128_t,
33681         vector __uint128_t, vector __int128, and vector unsigned __int128
33682         as a container type for TImode operations that need to be done in
33683         VSX/Altivec registers.
33684         (rs6000_macro_to_expand): Likewise.
33685         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
33686         to support 128-bit integer instructions vaddcuq, vadduqm,
33687         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
33688         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
33689
33690         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
33691         for V1TImode, and set up preferences to use VSX/Altivec registers.
33692         Setup VSX reload handlers.
33693         (rs6000_debug_reg_global): Likewise.
33694         (rs6000_init_hard_regno_mode_ok): Likewise.
33695         (rs6000_preferred_simd_mode): Likewise.
33696         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
33697         (easy_altivec_constant): Likewise.
33698         (output_vec_const_move): Likewise.
33699         (rs6000_expand_vector_set): Convert V1TImode set and extract to
33700         simple move.
33701         (rs6000_expand_vector_extract): Likewise.
33702         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
33703         addressing.
33704         (rs6000_const_vec): Add support for V1TImode.
33705         (rs6000_emit_le_vsx_load): Swap double words when loading or
33706         storing TImode/V1TImode.
33707         (rs6000_emit_le_vsx_store): Likewise.
33708         (rs6000_emit_le_vsx_move): Likewise.
33709         (rs6000_emit_move): Add support for V1TImode.
33710         (altivec_expand_ld_builtin): Likewise.
33711         (altivec_expand_st_builtin): Likewise.
33712         (altivec_expand_vec_init_builtin): Likewise.
33713         (altivec_expand_builtin): Likewise.
33714         (rs6000_init_builtins): Add support for V1TImode type.  Add
33715         support for ISA 2.07 128-bit integer builtins.  Define type names
33716         for the VSX/Altivec vector types.
33717         (altivec_init_builtins): Add support for overloaded vector
33718         functions with V1TImode type.
33719         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
33720         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
33721         external function.
33722         (rs6000_split_128bit_ok_p): Likewise.
33723         (rs6000_handle_altivec_attribute): Create V1TImode from vector
33724         __int128_t and vector __uint128_t.
33725
33726         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
33727         and mode attributes.
33728         (VSX_M): Likewise.
33729         (VSX_M2): Likewise.
33730         (VSm): Likewise.
33731         (VSs): Likewise.
33732         (VSr): Likewise.
33733         (VSv): Likewise.
33734         (VS_scalar): Likewise.
33735         (VS_double): Likewise.
33736         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
33737
33738         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
33739         we support the ISA 2.07 128-bit integer arithmetic instructions.
33740         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
33741         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
33742         and TImode types for use with the builtin functions.
33743         (V1TI_type_node): Likewise.
33744         (unsigned_V1TI_type_node): Likewise.
33745         (intTI_type_internal_node): Likewise.
33746         (uintTI_type_internal_node): Likewise.
33747
33748         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
33749         128-bit builtin functions.
33750         (UNSPEC_VADDEUQM): Likewise.
33751         (UNSPEC_VADDECUQ): Likewise.
33752         (UNSPEC_VSUBCUQ): Likewise.
33753         (UNSPEC_VSUBEUQM): Likewise.
33754         (UNSPEC_VSUBECUQ): Likewise.
33755         (VM): Add V1TImode to vector mode iterators.
33756         (VM2): Likewise.
33757         (VI_unit): Likewise.
33758         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
33759         (altivec_vaddcuq): Likewise.
33760         (altivec_vsubuqm): Likewise.
33761         (altivec_vsubcuq): Likewise.
33762         (altivec_vaddeuqm): Likewise.
33763         (altivec_vaddecuq): Likewise.
33764         (altivec_vsubeuqm): Likewise.
33765         (altivec_vsubecuq): Likewise.
33766
33767         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
33768         mode iterators.
33769         (BOOL_128): Likewise.
33770         (BOOL_REGS_OUTPUT): Likewise.
33771         (BOOL_REGS_OP1): Likewise.
33772         (BOOL_REGS_OP2): Likewise.
33773         (BOOL_REGS_UNARY): Likewise.
33774         (BOOL_REGS_AND_CR0): Likewise.
33775
33776         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
33777         128-bit integer builtin support.
33778         (vec_vadduqm): Likewise.
33779         (vec_vaddecuq): Likewise.
33780         (vec_vaddeuqm): Likewise.
33781         (vec_vsubecuq): Likewise.
33782         (vec_vsubeuqm): Likewise.
33783         (vec_vsubcuq): Likewise.
33784         (vec_vsubuqm): Likewise.
33785
33786         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
33787         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
33788         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
33789         128-bit integer add/subtract to ISA 2.07.
33790
33791 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
33792
33793         * config/arc/arc.c (arc_predicate_delay_insns):
33794         Fix third argument passed to conditionalize_nonjump.
33795
33796 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
33797
33798         * config/aarch64/aarch64-builtins.c
33799         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
33800         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
33801         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
33802         instead of __builtin_lfloor.
33803         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
33804
33805 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
33806
33807         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
33808         (tree_ssa_ifcombine_bb_1): New function.
33809         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
33810         is an empty forwarder block to then_bb or vice versa and then_bb
33811         and else_bb are effectively swapped.
33812
33813 2014-03-12  Christian Bruel  <christian.bruel@st.com>
33814
33815         PR target/60264
33816         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
33817         REG_CFA_DEF_CFA note.
33818         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
33819         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
33820
33821 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33822
33823         PR tree-optimization/60454
33824         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
33825
33826 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33827
33828         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
33829         Do not define target_cpu_default2 to generic.
33830         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
33831         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
33832         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
33833
33834 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
33835             Marc Glisse  <marc.glisse@inria.fr>
33836
33837         PR tree-optimization/60502
33838         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
33839         instead of build_low_bits_mask.
33840
33841 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
33842
33843         PR middle-end/60482
33844         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
33845         if there are multiple uses, but op doesn't live on E edge.
33846         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
33847         clobber stmts before __builtin_unreachable.
33848
33849 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
33850
33851         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
33852         hard_frame_pointer_rtx.
33853         * cse.c (cse_insn): Remove volatile check.
33854         * cselib.c (cselib_process_insn): Likewise.
33855         * dse.c (scan_insn): Likewise.
33856
33857 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
33858
33859         * config/arc/arc.c (conditionalize_nonjump): New function,
33860         broken out of ...
33861         (arc_ifcvt): ... this.
33862         (arc_predicate_delay_insns): Use it.
33863
33864 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
33865
33866         * config/arc/predicates.md (extend_operand): During/after reload,
33867         allow const_int_operand.
33868         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
33869         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
33870         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
33871         to "i".
33872         (umulsi3_highpart_i): Likewise.
33873
33874 2014-03-11  Richard Biener  <rguenther@suse.de>
33875
33876         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
33877         Add asserts to guard possible wrong-code bugs.
33878
33879 2014-03-11  Richard Biener  <rguenther@suse.de>
33880
33881         PR tree-optimization/60429
33882         PR tree-optimization/60485
33883         * tree-ssa-structalias.c (set_union_with_increment): Properly
33884         take into account all fields that overlap the shifted vars.
33885         (do_sd_constraint): Likewise.
33886         (do_ds_constraint): Likewise.
33887         (get_constraint_for_ptr_offset): Likewise.
33888
33889 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
33890
33891         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
33892         (nios2_compute_frame_layout):
33893         Add calculation of cfun->machine->fp_save_offset.
33894         (nios2_expand_prologue): Correct setting of frame pointer register
33895         in prologue.
33896         (nios2_expand_epilogue): Update recovery of stack pointer from
33897         frame pointer accordingly.
33898         (nios2_initial_elimination_offset): Update calculation of offset
33899         for eliminating to HARD_FRAME_POINTER_REGNUM.
33900
33901 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
33902
33903         PR ipa/60457
33904         * ipa.c (symtab_remove_unreachable_nodes): Don't call
33905         cgraph_get_create_node on VAR_DECLs.
33906
33907 2014-03-10  Richard Biener  <rguenther@suse.de>
33908
33909         PR middle-end/60474
33910         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
33911
33912 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
33913
33914         * config/vms/vms.opt (vms_float_format): New variable.
33915
33916 2014-03-08  Tobias Burnus  <burnus@net-b.de>
33917
33918         * doc/invoke.texi (-fcilkplus): Update implementation status.
33919
33920 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
33921             Richard Biener  <rguenther@suse.de>
33922
33923         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
33924         consistently accross all TUs.
33925         (run_gcc): Enable -fshort-double automatically at link at link-time
33926         and disallow override.
33927
33928 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
33929
33930         PR target/58271
33931         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
33932         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
33933         if they can't be used.
33934
33935 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33936
33937         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
33938         for Solaris 11/x86 ld.
33939         * configure: Regenerate.
33940
33941 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33942
33943         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
33944         (LIB_TLS_SPEC): Save as ld_tls_libs.
33945         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
33946         (HAVE_AS_IX86_TLSLDM): New test.
33947         * configure, config.in: Regenerate.
33948         * config/i386/i386.c (legitimize_tls_address): Fall back to
33949         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
33950         cannot support TLS_MODEL_LOCAL_DYNAMIC.
33951         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
33952         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
33953
33954 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
33955
33956         * common.opt (fira-loop-pressure): Mark as optimization.
33957
33958 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
33959
33960         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
33961         an OpenMP mappable type.
33962
33963 2014-03-06  Matthias Klose  <doko@ubuntu.com>
33964
33965         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
33966         MULTILIB_OSDIRNAMES is not defined.
33967
33968 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
33969             Meador Inge  <meadori@codesourcery.com>
33970
33971         PR target/58595
33972         * config/arm/arm.c (arm_tls_symbol_p): Remove.
33973         (arm_legitimize_address): Call legitimize_tls_address for any
33974         arm_tls_referenced_p expression, handle constant addend.  Call it
33975         before testing for !TARGET_ARM.
33976         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
33977
33978 2014-03-06  Richard Biener  <rguenther@suse.de>
33979
33980         PR middle-end/60445
33981         PR lto/60424
33982         PR lto/60427
33983         Revert
33984         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
33985
33986         * tree-streamer.c (record_common_node): Assert we don't record
33987         nodes with type double.
33988         (preload_common_node): Skip type double, complex double and double
33989         pointer since it is now frontend dependent due to fshort-double option.
33990
33991 2014-03-06  Richard Biener  <rguenther@suse.de>
33992
33993         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
33994         or -fno-lto is specified and the linker has full plugin support.
33995         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
33996         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
33997         * lto-wrapper.c (merge_and_complain): Merge compile-time
33998         optimization levels.
33999         (run_gcc): And pass it through to the link options.
34000
34001 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
34002
34003         PR debug/60381
34004         Revert:
34005         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
34006         PR debug/59992
34007         * cselib.c (remove_useless_values): Skip to avoid quadratic
34008         behavior if the condition moved from...
34009         (cselib_process_insn): ... here holds.
34010
34011 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
34012
34013         PR plugins/59335
34014         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
34015         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
34016
34017         PR plugins/59335
34018         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
34019         (TM_H): Add x86-tune.def.
34020
34021 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34022
34023         * config/aarch64/aarch64.c (generic_tunings):
34024         Use cortexa57_extra_costs.
34025
34026 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
34027
34028         PR lto/60404
34029         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
34030         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
34031         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
34032         cost for in_lto_p.
34033
34034 2014-03-04  Heiher  <r@hev.cc>
34035
34036         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
34037         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
34038
34039 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
34040
34041         * config/i386/predicates.md (const2356_operand): Change to ...
34042         (const2367_operand): ... this.
34043         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
34044         const2367_operand.
34045         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34046         (*avx512pf_scatterpf<mode>sf): Ditto.
34047         (avx512pf_scatterpf<mode>df): Ditto.
34048         (*avx512pf_scatterpf<mode>df_mask): Ditto.
34049         (*avx512pf_scatterpf<mode>df): Ditto.
34050         * config/i386/i386.c (ix86_expand_builtin): Update
34051         incorrect hint operand error message.
34052
34053 2014-03-04  Richard Biener  <rguenther@suse.de>
34054
34055         * lto-section-in.c (lto_get_section_data): Fix const cast.
34056
34057 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
34058
34059         * tree-streamer.c (record_common_node): Assert we don't record
34060         nodes with type double.
34061         (preload_common_node): Skip type double, complex double and double
34062         pointer since it is now frontend dependent due to fshort-double option.
34063
34064 2014-03-04  Richard Biener  <rguenther@suse.de>
34065
34066         PR lto/60405
34067         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
34068         (lto_input_toplevel_asms): Likewise.
34069         * lto-section-in.c (lto_get_section_data): Instead do it here
34070         for every section.
34071
34072 2014-03-04  Richard Biener  <rguenther@suse.de>
34073
34074         PR tree-optimization/60382
34075         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
34076         dead PHIs a reduction.
34077
34078 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
34079
34080         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
34081         hint value.
34082         (_mm_prefetch): Move out of GCC target("sse") pragma.
34083         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
34084         GCC target("prfchw") pragma.
34085         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
34086         for locality <= 2.
34087         * config/i386/i386.c (ix86_option_override_internal): Enable
34088         -mprfchw with -mprefetchwt1.
34089
34090 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
34091
34092         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
34093         Mark as varying.
34094
34095 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
34096
34097         * opts.h (CL_PCH_IGNORE): Define.
34098         * targhooks.c (option_affects_pch_p):
34099         Return false for options that have CL_PCH_IGNORE set.
34100         * opt-functions.awk: Process PchIgnore.
34101         * doc/options.texi: Document PchIgnore.
34102
34103         * config/arc/arc.opt (misize): Add PchIgnore property.
34104
34105 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34106
34107         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
34108         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
34109         constraint on constants to permit them being loaded into
34110         GENERAL_REGS or BASE_REGS.
34111
34112 2014-03-03  Nick Clifton  <nickc@redhat.com>
34113
34114         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
34115         anti-cacnonical alternatives.
34116         (negandhi3_real): New pattern.
34117         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
34118
34119 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
34120
34121         * config/avr/avr-mcus.def: Remove atxmega16x1.
34122         * config/avr/avr-tables.opt: Regenerate.
34123         * config/avr/t-multilib: Regenerate.
34124         * doc/avr-mmcu.texi: Regenerate.
34125
34126 2014-03-03  Tobias Grosser  <tobias@grosser.es>
34127             Mircea Namolaru  <mircea.namolaru@inria.fr>
34128
34129         PR tree-optimization/58028
34130         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
34131         scalar dimensions.
34132
34133 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34134
34135         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
34136         not handled by recognizers.
34137
34138 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
34139
34140         PR middle-end/60175
34141         * function.c (expand_function_end): Don't emit
34142         clobber_return_register sequence if clobber_after is a BARRIER.
34143         * cfgexpand.c (construct_exit_block): Append instructions before
34144         return_label to prev_bb.
34145
34146 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34147
34148         * config/rs6000/constraints.md: Document reserved use of "wc".
34149
34150 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
34151
34152         PR ipa/60150
34153         * ipa.c (function_and_variable_visibility): When dissolving comdat
34154         group, also set all symbols to local.
34155
34156 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
34157
34158         PR ipa/60306
34159
34160         Revert:
34161         2013-12-14  Jan Hubicka  <jh@suse.cz>
34162         PR middle-end/58477
34163         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
34164
34165 2014-03-02  Jon Beniston  <jon@beniston.com>
34166
34167         PR bootstrap/48230
34168         PR bootstrap/50927
34169         PR bootstrap/52466
34170         PR target/46898
34171         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
34172         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
34173         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
34174         (simple_return, *simple_return): New patterns
34175         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
34176         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
34177
34178 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
34179
34180         * dwarf2out.c (gen_subprogram_die): Tidy.
34181
34182 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
34183
34184         PR target/60071
34185         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
34186         (*mov_t_msb_neg_negc): ... this new insn.
34187
34188 2014-02-28  Jason Merrill  <jason@redhat.com>
34189
34190         PR c++/58678
34191         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
34192         function.
34193
34194 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
34195
34196         PR c++/60314
34197         * dwarf2out.c (decltype_auto_die): New static.
34198         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
34199         (gen_type_die_with_usage): Handle 'decltype(auto)'.
34200         (is_cxx_auto): Likewise.
34201
34202 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
34203
34204         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
34205         we are not using general regs only.
34206
34207 2014-02-28  Richard Biener  <rguenther@suse.de>
34208
34209         PR target/60280
34210         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
34211         previous fix and only allow to remove trivial pre-headers
34212         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
34213         (remove_forwarder_block): Properly update the latch of a loop.
34214
34215 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
34216
34217         PR debug/59992
34218         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
34219         (cselib_preserved_hash_table): New.
34220         (preserve_constants_and_equivs): Move preserved vals to it.
34221         (cselib_find_slot): Look it up first.
34222         (cselib_init): Initialize it.
34223         (cselib_finish): Release it.
34224         (dump_cselib_table): Dump it.
34225
34226 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
34227
34228         PR debug/59992
34229         * cselib.c (remove_useless_values): Skip to avoid quadratic
34230         behavior if the condition moved from...
34231         (cselib_process_insn): ... here holds.
34232
34233 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
34234
34235         PR debug/57232
34236         * var-tracking.c (vt_initialize): Apply the same condition to
34237         preserve the CFA base value.
34238
34239 2014-02-28  Joey Ye  <joey.ye@arm.com>
34240
34241         PR target/PR60169
34242         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
34243         if reload in progress or completed.
34244
34245 2014-02-28  Tobias Burnus  <burnus@net-b.de>
34246
34247         PR middle-end/60147
34248         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
34249         NAMELIST_DECL.
34250
34251 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
34252
34253         * doc/tm.texi.in (Condition Code Status): Update documention for
34254         relative locations of cc0-setter and cc0-user.
34255
34256 2014-02-27  Jeff Law  <law@redhat.com>
34257
34258         PR rtl-optimization/52714
34259         * combine.c (try_combine): When splitting an unrecognized PARALLEL
34260         into two independent simple sets, if I3 is a jump, ensure the
34261         pattern we place into I3 is a (set (pc) ...).
34262
34263 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
34264             Jeff Law  <law@redhat.com>
34265
34266         PR rtl-optimization/49847
34267         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
34268         are in different blocks.
34269         * doc/tm.texi (Condition Code Status): Update documention for
34270         relative locations of cc0-setter and cc0-user.
34271
34272 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34273
34274         PR target/59222
34275         * lra.c (lra_emit_add): Check SUBREG too.
34276
34277 2014-02-27  Andreas Schwab  <schwab@suse.de>
34278
34279         * config/m68k/m68k.c (m68k_option_override): Disable
34280         -flive-range-shrinkage for classic m68k.
34281         (m68k_override_options_after_change): Likewise.
34282
34283 2014-02-27  Marek Polacek  <polacek@redhat.com>
34284
34285         PR middle-end/59223
34286         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
34287         -Wmaybe-uninitialized.
34288
34289 2014-02-27  Alan Modra  <amodra@gmail.com>
34290
34291         PR target/57936
34292         * reload1.c (emit_input_reload_insns): When reload_override_in,
34293         set old to rl->in_reg when rl->in_reg is a subreg.
34294
34295 2014-02-26  Richard Biener  <rguenther@suse.de>
34296
34297         PR bootstrap/60343
34298         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
34299
34300 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
34301
34302         * common/config/i386/predicates.md (const1256_operand): Remove.
34303         (const2356_operand): New.
34304         (const_1_to_2_operand): Remove.
34305         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
34306         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
34307         (*avx512pf_gatherpf<mode>sf): Ditto.
34308         (avx512pf_gatherpf<mode>df): Ditto.
34309         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34310         (*avx512pf_gatherpf<mode>df): Ditto.
34311         (avx512pf_scatterpf<mode>sf): Ditto.
34312         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34313         (*avx512pf_scatterpf<mode>sf): Ditto.
34314         (avx512pf_scatterpf<mode>df): Ditto.
34315         (*avx512pf_scatterpf<mode>df_mask): Ditto.
34316         (*avx512pf_scatterpf<mode>df): Ditto.
34317         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
34318
34319 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
34320
34321         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
34322         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
34323         (_mm512_mask_testn_epi64_mask): Move to ...
34324         * config/i386/avx512cdintrin.h: Here.
34325         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
34326         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
34327         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
34328         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
34329         TARGET_AVX512F from TARGET_AVX512CD.
34330
34331 2014-02-26  Richard Biener  <rguenther@suse.de>
34332
34333         PR ipa/60327
34334         * ipa.c (walk_polymorphic_call_targets): Properly guard
34335         call to inline_update_overall_summary.
34336
34337 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
34338
34339         PR target/60280
34340         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
34341         and latches only if requested.  Fix latch if it is removed.
34342         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
34343         LOOPS_HAVE_PREHEADERS.
34344
34345 2014-02-25  Andrew Pinski  <apinski@cavium.com>
34346
34347         * builtins.c (expand_builtin_thread_pointer): Create a new target
34348         when the target is NULL.
34349
34350 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
34351
34352         PR rtl-optimization/60317
34353         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
34354         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
34355         * lra-assigns.c: Include params.h.
34356         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
34357         other reload pseudos considerations.
34358
34359 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34360
34361         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
34362         to use canonical form for nor<mode>3.
34363
34364 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34365
34366         PR target/55426
34367         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
34368         conversions.
34369
34370 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
34371
34372         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
34373         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
34374         (ix86_handle_option): Handle OPT_mprefetchwt1.
34375         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
34376         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
34377         PREFETCHWT1 CPUID.
34378         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34379         OPTION_MASK_ISA_PREFETCHWT1.
34380         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
34381         (PTA_PREFETCHWT1): New.
34382         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
34383         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
34384         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
34385         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
34386         (*prefetch_avx512pf_<mode>_: Change into ...
34387         (*prefetch_prefetchwt1_<mode>: This.
34388         * config/i386/i386.opt (mprefetchwt1): New.
34389         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
34390         (_mm_prefetch): Handle intent to write.
34391         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
34392
34393 2014-02-25  Richard Biener  <rguenther@suse.de>
34394
34395         PR middle-end/60291
34396         * emit-rtl.c (mem_attrs_htab): Remove.
34397         (mem_attrs_htab_hash): Likewise.
34398         (mem_attrs_htab_eq): Likewise.
34399         (set_mem_attrs): Always allocate new mem-attrs when something changed.
34400         (init_emit_once): Do not allocate mem_attrs_htab.
34401
34402 2014-02-25  Richard Biener  <rguenther@suse.de>
34403
34404         PR lto/60319
34405         * lto-opts.c (lto_write_options): Output non-explicit conservative
34406         -fwrapv, -fno-trapv and -fno-strict-overflow.
34407         * lto-wrapper.c (merge_and_complain): Handle merging those options.
34408         (run_gcc): And pass them through.
34409
34410 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
34411
34412         * sel-sched.c (calculate_new_fences): New parameter ptime.
34413         Calculate it as a maximum over all fence cycles.
34414         (sel_sched_region_2): Adjust the call to calculate_new_fences.
34415         Print the final schedule timing when sched_verbose.
34416
34417 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
34418
34419         PR rtl-optimization/60292
34420         * sel-sched.c (fill_vec_av_set): Do not reset target availability
34421         bit fot the fence instruction.
34422
34423 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
34424
34425         * calls.h: Fix typo in comment.
34426
34427 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
34428
34429         * config/pa/pa.c (pa_output_move_double): Don't valididate when
34430         adjusting offsetable addresses.
34431
34432 2014-02-24  Guozhi Wei  <carrot@google.com>
34433
34434         * sparseset.h (sparseset_pop): Fix the wrong index.
34435
34436 2014-02-24  Walter Lee  <walt@tilera.com>
34437
34438         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
34439         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
34440         triplet.
34441         * common/config/tilegx/tilegx-common.c
34442         (TARGET_DEFAULT_TARGET_FLAGS): Define.
34443         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
34444         (LINK_SPEC): Ditto.
34445         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
34446         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
34447         (tilegx_gimplify_va_arg_expr): Handle big endian.
34448         (tilegx_expand_unaligned_load): Ditto.
34449         (tilegx_expand_unaligned_store): Ditto.
34450         (TARGET_RETURN_IN_MSB): New.
34451         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
34452         (TARGET_ENDIAN_DEFAULT): New.
34453         (TARGET_BIG_ENDIAN): Handle big endian.
34454         (BYTES_BIG_ENDIAN): Ditto.
34455         (WORDS_BIG_ENDIAN): Ditto.
34456         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
34457         (ENDIAN_SPEC): New.
34458         (EXTRA_SPECS): New.
34459         * config/tilegx/tilegx.md (extv): Handle big endian.
34460         (extzv): Ditto.
34461         (insn_st<n>): Ditto.
34462         (insn_st<n>_add<bitsuffix>): Ditto.
34463         (insn_stnt<n>): Ditto.
34464         (insn_stnt<n>_add<bitsuffix>):Ditto.
34465         (vec_interleave_highv8qi): Handle big endian.
34466         (vec_interleave_highv8qi_be): New.
34467         (vec_interleave_highv8qi_le): New.
34468         (insn_v1int_h): Handle big endian.
34469         (vec_interleave_lowv8qi): Handle big endian.
34470         (vec_interleave_lowv8qi_be): New.
34471         (vec_interleave_lowv8qi_le): New.
34472         (insn_v1int_l): Handle big endian.
34473         (vec_interleave_highv4hi): Handle big endian.
34474         (vec_interleave_highv4hi_be): New.
34475         (vec_interleave_highv4hi_le): New.
34476         (insn_v2int_h): Handle big endian.
34477         (vec_interleave_lowv4hi): Handle big endian.
34478         (vec_interleave_lowv4hi_be): New.
34479         (vec_interleave_lowv4hi_le): New.
34480         (insn_v2int_l): Handle big endian.
34481         (vec_interleave_highv2si): Handle big endian.
34482         (vec_interleave_highv2si_be): New.
34483         (vec_interleave_highv2si_le): New.
34484         (insn_v4int_h): Handle big endian.
34485         (vec_interleave_lowv2si): Handle big endian.
34486         (vec_interleave_lowv2si_be): New.
34487         (vec_interleave_lowv2si_le): New.
34488         (insn_v4int_l): Handle big endian.
34489         * config/tilegx/tilegx.opt (mbig-endian): New option.
34490         (mlittle-endian): New option.
34491         * doc/install.texi: Document tilegxbe-linux.
34492         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
34493
34494 2014-02-24  Martin Jambor  <mjambor@suse.cz>
34495
34496         PR ipa/60266
34497         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
34498         there are no parameter descriptors.
34499
34500 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
34501
34502         PR rtl-optimization/60268
34503         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
34504         initialization to ...
34505         (sched_rgn_init): ... here.
34506         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
34507
34508 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
34509
34510         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
34511         names.
34512
34513 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
34514
34515         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
34516         definition.
34517
34518 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
34519
34520         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
34521         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
34522
34523 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
34524
34525         * config/microblaze/predicates.md: Add cmp_op predicate.
34526         * config/microblaze/microblaze.md: Add branch_compare instruction
34527         which uses cmp_op predicate and emits cmp insn before branch.
34528         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
34529         to microblaze_expand_conditional_branch and consolidate logic.
34530         (microblaze_expand_conditional_branch): emit branch_compare
34531         insn instead of handling cmp op separate from branch insn.
34532
34533 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34534
34535         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
34536         to permit subregs.
34537
34538 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34539
34540         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
34541         define_insn with define_expand and new define_insn
34542         *altivec_lve<VI_char>x_internal.
34543         (altivec_stve<VI_char>x): Replace define_insn with define_expand
34544         and new define_insn *altivec_stve<VI_char>x_internal.
34545         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
34546         prototype.
34547         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
34548         lve*x built-ins.
34549         (altivec_expand_stvex_be): New function.
34550
34551 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
34552
34553         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
34554         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
34555         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
34556         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
34557
34558 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
34559
34560         PR target/60298
34561         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
34562         instead of emit_move_insn.
34563
34564 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34565
34566         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
34567         vspltw with vsldoi.
34568         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
34569         gen_altivec_vsumsws.
34570
34571 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34572
34573         * config/rs6000/altivec.md (altivec_lvxl): Rename as
34574         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
34575         (altivec_lvxl_<mode>): New define_expand incorporating
34576         -maltivec=be semantics where needed.
34577         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
34578         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
34579         semantics where needed.
34580         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
34581         (altivec_stvx_<mode>): New define_expand incorporating
34582         -maltivec=be semantics where needed.
34583         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
34584         VM2 iterator instead of V4SI.
34585         (altivec_stvxl_<mode>): New define_expand incorporating
34586         -maltivec=be semantics where needed.
34587         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
34588         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
34589         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
34590         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
34591         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
34592         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
34593         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
34594         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
34595         ALTIVEC_BUILTIN_STVXL.
34596         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
34597         (altivec_expand_stvx_be): Likewise.
34598         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
34599         (altivec_expand_lvx_be): Likewise.
34600         (altivec_expand_stvx_be): Likewise.
34601         (altivec_expand_builtin): Add cases for
34602         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
34603         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
34604         (altivec_init_builtins): Add definitions for
34605         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
34606         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
34607
34608 2014-02-21  Catherine Moore  <clm@codesourcery.com>
34609
34610         * doc/invoke.texi (mvirt, mno-virt): Document.
34611         * config/mips/mips.opt (mvirt): New option.
34612         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
34613
34614 2014-02-21  Richard Biener  <rguenther@suse.de>
34615
34616         PR tree-optimization/60276
34617         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
34618         (STMT_VINFO_MIN_NEG_DIST): New macro.
34619         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
34620         STMT_VINFO_MIN_NEG_DIST.
34621         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
34622         made for negative dependence distances still hold.
34623
34624 2014-02-21  Richard Biener  <rguenther@suse.de>
34625
34626         PR middle-end/60291
34627         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
34628         DECL_INITIAL for globals not in the current function context.
34629
34630 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
34631
34632         PR tree-optimization/56490
34633         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
34634         * tree-ssa-uninit.c: Include params.h.
34635         (compute_control_dep_chain): Add num_calls argument, return false
34636         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
34637         num_calls to recursive call.
34638         (find_predicates): Change dep_chain into normal array,
34639         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
34640         variable and adjust compute_control_dep_chain caller.
34641         (find_def_preds): Likewise.
34642
34643 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
34644
34645         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
34646         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
34647
34648 2014-02-21  Nick Clifton  <nickc@redhat.com>
34649
34650         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
34651         (pushhi1): Likewise.
34652         (popqi1): Add mode to pre_dec.
34653         (pophi1): Likewise.
34654
34655 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
34656
34657         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
34658         mode for mask of V8SFmode permutation.
34659
34660 2014-02-20  Richard Henderson  <rth@redhat.com>
34661
34662         PR c++/60272
34663         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
34664         a new pseudo for OLDVAL.
34665
34666 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
34667
34668         PR target/57896
34669         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
34670         gen_reg_rtx if d->testing_p.
34671         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
34672         if d->testing_p and we will certainly return true.
34673         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
34674         if d->testing_p.
34675
34676 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
34677
34678         * emit-rtl.c (gen_reg_rtx): Assert that
34679         crtl->emit.regno_pointer_align_length is non-zero.
34680
34681 2014-02-20  Richard Henderson  <rth@redhat.com>
34682
34683         PR c++/60272
34684         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
34685         on failure the store back into EXPECT.
34686
34687 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
34688             Sandra Loosemore  <sandra@codesourcery.com>
34689
34690         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
34691         * config/nios2/nios2.c (nios2_function_profiler): Add
34692         -fPIC (flag_pic == 2) support.
34693         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
34694         (nios2_large_offset_p): New function.
34695         (nios2_unspec_reloc_p): Move up position, update to use
34696         nios2_large_offset_p.
34697         (nios2_unspec_address): Remove function.
34698         (nios2_unspec_offset): New function.
34699         (nios2_large_got_address): New function.
34700         (nios2_got_address): Add large offset support.
34701         (nios2_legitimize_tls_address): Update usage of removed and new
34702         functions.
34703         (nios2_symbol_binds_local_p): New function.
34704         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
34705         (nios2_legitimize_address): Update to use nios2_large_offset_p.
34706         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
34707         (nios2_print_operand): Merge H/L processing, add hiadj/lo
34708         processing for (const (unspec ...)).
34709         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
34710
34711 2014-02-20  Richard Biener  <rguenther@suse.de>
34712
34713         * tree-cfg.c (replace_uses_by): Mark altered BBs before
34714         doing the substitution.
34715         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
34716
34717 2014-02-20  Martin Jambor  <mjambor@suse.cz>
34718
34719         PR ipa/55260
34720         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
34721         info when checking whether lattices are bottom.
34722
34723 2014-02-20  Richard Biener  <rguenther@suse.de>
34724
34725         PR middle-end/60221
34726         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
34727         regions at -O0.
34728
34729 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
34730
34731         PR ipa/58555
34732         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
34733         parameter specifying the scaling.
34734         (inline_call): Update.
34735         (want_inline_recursively): Guard division by zero.
34736         (recursive_inlining): Update.
34737         * ipa-inline.h (clone_inlined_nodes): Update.
34738
34739 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
34740
34741         PR target/60204
34742         * config/i386/i386.c (classify_argument): Pass structures of size
34743         64 bytes or less in register.
34744
34745 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
34746             Kirill Yukhin  <kirill.yukhin@intel.com>
34747
34748         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
34749         (_mm_rcp28_round_ss): Ditto.
34750         (_mm_rsqrt28_round_sd): Ditto.
34751         (_mm_rsqrt28_round_ss): Ditto.
34752         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
34753         (_mm_rcp14_round_ss): Ditto.
34754         (_mm_rsqrt14_round_sd): Ditto.
34755         (_mm_rsqrt14_round_ss): Ditto.
34756         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
34757         the first input operand, get rid of match_dup.
34758         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
34759         attribute to sse.
34760         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
34761         Ditto.
34762         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
34763         operand as the first input operand, set type attribute.
34764         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
34765         Set type attribute.
34766         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
34767         operand as the first input operand, set type attribute.
34768
34769 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34770
34771         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
34772         bit of zero.
34773
34774 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
34775
34776         PR target/60207
34777         * config/i386/i386.c (construct_container): Remove TFmode check
34778         for X86_64_INTEGER_CLASS.
34779
34780 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
34781
34782         PR target/59794
34783         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
34784         only when -Wpsabi is enabled.
34785
34786 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
34787
34788         PR target/59799
34789         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
34790         passing arrays in registers are the same as for structs, so remove the
34791         special case for them.
34792
34793 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
34794
34795         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
34796         destination type, extract only the valid bits if the source type is not
34797         integral and has a different mode.
34798
34799 2014-02-19  Richard Biener  <rguenther@suse.de>
34800
34801         PR ipa/60243
34802         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
34803         for all calls.
34804
34805 2014-02-19  Richard Biener  <rguenther@suse.de>
34806
34807         PR ipa/60243
34808         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
34809         (ipa_modify_call_arguments): Emit an argument load explicitely and
34810         preserve virtual SSA form there and for the replacement call.
34811         Do not update SSA form nor free dominance info.
34812
34813 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
34814
34815         * ipa.c (function_and_variable_visibility): Also clear WEAK
34816         flag when disolving COMDAT_GROUP.
34817
34818 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
34819
34820         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
34821         * ipa-prop.c (ipa_set_jf_known_type): Return early when
34822         not devirtualizing.
34823         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
34824         do more sanity checks.
34825         (detect_type_change): Return true when giving up early.
34826         (compute_complex_assign_jump_func): Fix type parameter of
34827         ipa_set_ancestor_jf.
34828         (compute_complex_ancestor_jump_func): Likewise.
34829         (update_jump_functions_after_inlining): Fix updating of
34830         ancestor function.
34831         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
34832
34833 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
34834
34835         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
34836         inline clones when edge disappears.
34837
34838 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
34839
34840         PR target/60203
34841         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
34842         Split 64-bit moves into 2 patterns.  Do not allow the use of
34843         direct move for TDmode in little endian, since the decimal value
34844         has little endian bytes within a word, but the 64-bit pieces are
34845         ordered in a big endian fashion, and normal subreg's of TDmode are
34846         not allowed.
34847         (mov<mode>_64bit_dm): Likewise.
34848         (movtd_64bit_nodm): Likewise.
34849
34850 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
34851
34852         PR tree-optimization/60174
34853         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
34854         statement of an SSA_NAME that occurs in an abnormal PHI node.
34855
34856 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
34857
34858         PR sanitizer/60142
34859         * final.c (SEEN_BB): Remove.
34860         (SEEN_NOTE, SEEN_EMITTED): Renumber.
34861         (final_scan_insn): Don't force_source_line on second
34862         NOTE_INSN_BASIC_BLOCK.
34863
34864 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
34865
34866         PR target/60205
34867         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
34868         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
34869         (type_natural_mode): Warn ABI change when %zmm register is not
34870         available for AVX512F vector value passing.
34871
34872 2014-02-18  Kai Tietz  <ktietz@redhat.com>
34873
34874         PR target/60193
34875         * config/i386/i386.c (ix86_expand_prologue): Use value in
34876         rax register as displacement when restoring %r10 or %rax.
34877         Fix wrong offset when restoring both registers.
34878
34879 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
34880
34881         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
34882         assertion with conditional return.
34883
34884 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
34885             Uros Bizjak  <ubizjak@gmail.com>
34886
34887         PR driver/60233
34888         * config/i386/driver-i386.c (host_detect_local_cpu): If
34889         YMM state is not saved by the OS, also clear has_f16c.  Move
34890         CPUID 0x80000001 handling before YMM state saving checking.
34891
34892 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
34893
34894         PR rtl-optimization/58960
34895         * haifa-sched.c (alloc_global_sched_pressure_data): New,
34896         factored out from ...
34897         (sched_init): ... here.
34898         (free_global_sched_pressure_data): New, factored out from ...
34899         (sched_finish): ... here.
34900         * sched-int.h (free_global_sched_pressure_data): Declare.
34901         * sched-rgn.c (nr_regions_initial): New static global.
34902         (haifa_find_rgns): Initialize it.
34903         (schedule_region): Disable sched-pressure for the newly
34904         generated regions.
34905
34906 2014-02-17  Richard Biener  <rguenther@suse.de>
34907
34908         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
34909         release SSA defs of pattern stmts.
34910
34911 2014-02-17  Richard Biener  <rguenther@suse.de>
34912
34913         * tree-inline.c (expand_call_inline): Release the virtual
34914         operand defined by the call we are about to inline.
34915
34916 2014-02-17  Richard Biener  <rguenther@suse.de>
34917
34918         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
34919
34920 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
34921             Ilya Tocar  <ilya.tocar@intel.com>
34922
34923         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
34924         arguments order in builtin.
34925         (_mm512_permutexvar_epi64): Ditto.
34926         (_mm512_mask_permutexvar_epi64): Ditto
34927         (_mm512_maskz_permutexvar_epi32): Ditto
34928         (_mm512_permutexvar_epi32): Ditto
34929         (_mm512_mask_permutexvar_epi32): Ditto
34930
34931 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34932
34933         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
34934         (p8_vmrgow): Likewise.
34935
34936 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34937
34938         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
34939         endian targets.
34940
34941 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
34942
34943         PR target/60203
34944         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
34945         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
34946         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
34947         using direct move instructions on ISA 2.07.  Also adjust
34948         instruction length for 64-bit.
34949         (mov<mode>_64bit, TFmode/TDmode): Likewise.
34950         (mov<mode>_32bit, TFmode/TDmode): Likewise.
34951
34952 2014-02-15  Alan Modra  <amodra@gmail.com>
34953
34954         PR target/58675
34955         PR target/57935
34956         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
34957         find_replacement on parts of insn rtl that might be reloaded.
34958
34959 2014-02-15  Richard Biener  <rguenther@suse.de>
34960
34961         PR tree-optimization/60183
34962         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
34963         (tree_ssa_phiprop): Calculate and free post-dominators.
34964
34965 2014-02-14  Jeff Law  <law@redhat.com>
34966
34967         PR rtl-optimization/60131
34968         * ree.c (get_extended_src_reg): New function.
34969         (combine_reaching_defs): Use it rather than assuming location of REG.
34970         (find_and_remove_re): Verify first operand of extension is
34971         a REG before adding the insns to the copy list.
34972
34973 2014-02-14  Roland McGrath  <mcgrathr@google.com>
34974
34975         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
34976         * configure: Regenerated.
34977         * config.in: Regenerated.
34978         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
34979         instead of ASM_SHORT.
34980
34981 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
34982             Richard Earnshaw  <rearnsha@arm.com>
34983
34984         PR rtl-optimization/59535
34985         * lra-constraints.c (process_alt_operands): Encourage alternative
34986         when unassigned pseudo class is superset of the alternative class.
34987         (inherit_reload_reg): Don't inherit when optimizing for code size.
34988         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
34989         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
34990         modes not less than 4 for Thumb1.
34991
34992 2014-02-14  Kyle McMartin  <kyle@redhat.com>
34993
34994         PR pch/60010
34995         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
34996
34997 2014-02-14  Richard Biener  <rguenther@suse.de>
34998
34999         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
35000         (get_frame_arg): Drop the assert with langhook types_compatible_p.
35001         Do not strip INDIRECT_REFs.
35002
35003 2014-02-14  Richard Biener  <rguenther@suse.de>
35004
35005         PR lto/60179
35006         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
35007         DECL_FUNCTION_SPECIFIC_TARGET.
35008         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
35009         * tree-streamer-out.c (pack_ts_target_option): Remove.
35010         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
35011         (write_ts_function_decl_tree_pointers): Do not stream
35012         DECL_FUNCTION_SPECIFIC_TARGET.
35013         * tree-streamer-in.c (unpack_ts_target_option): Remove.
35014         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
35015         (lto_input_ts_function_decl_tree_pointers): Do not stream
35016         DECL_FUNCTION_SPECIFIC_TARGET.
35017
35018 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
35019
35020         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
35021         (get_initial_def_for_induction, vectorizable_induction): Ignore
35022         debug stmts when looking for exit_phi.
35023         (vectorizable_live_operation): Fix up condition.
35024
35025 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
35026
35027         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
35028         nreverse() because it changes the content of original tree list.
35029
35030 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
35031
35032         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
35033         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
35034
35035 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
35036
35037         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
35038         GNU coding standards.
35039
35040 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
35041
35042         PR debug/60152
35043         * dwarf2out.c (gen_subprogram_die): Don't call
35044         add_calling_convention_attribute if subr_die is old_die.
35045
35046 2014-02-13  Sharad Singhai  <singhai@google.com>
35047
35048         * doc/optinfo.texi: Fix order of nodes.
35049
35050 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
35051
35052         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
35053         operands[2], not operands[3].
35054
35055 2014-02-13  Richard Biener  <rguenther@suse.de>
35056
35057         PR bootstrap/59878
35058         * doc/install.texi (ISL): Update recommended version to 0.12.2,
35059         mention the possibility of an in-tree build.
35060         (CLooG): Update recommended version to 0.18.1, mention the
35061         possibility of an in-tree build and clarify that the ISL
35062         bundled with CLooG does not work.
35063
35064 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
35065
35066         PR target/43546
35067         * expr.c (compress_float_constant): If x is a hard register,
35068         extend into a pseudo and then move to x.
35069
35070 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35071
35072         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
35073         caused by bad second argument to warning_at() with -mhotpatch and
35074         nested functions (e.g. with gfortran).
35075
35076 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
35077
35078         * opts.c (option_name): Remove "enabled by default" rider.
35079
35080 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
35081
35082         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
35083
35084 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
35085             Uros Bizjak  <ubizjak@gmail.com>
35086
35087         PR target/60151
35088         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
35089         * configure: Regenerated.
35090
35091 2014-02-12  Richard Biener  <rguenther@suse.de>
35092
35093         * vec.c (vec_prefix::calculate_allocation): Move as
35094         inline variant to vec.h.
35095         (vec_prefix::calculate_allocation_1): New out-of-line version.
35096         * vec.h (vec_prefix::calculate_allocation_1): Declare.
35097         (vec_prefix::m_has_auto_buf): Rename to ...
35098         (vec_prefix::m_using_auto_storage): ... this.
35099         (vec_prefix::calculate_allocation): Inline the easy cases
35100         and dispatch to calculate_allocation_1 which doesn't need the
35101         prefix address.
35102         (va_heap::reserve): Use gcc_checking_assert.
35103         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
35104         m_using_auto_storage.
35105         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
35106         member and adjust.
35107         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
35108         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
35109         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
35110
35111 2014-02-12  Richard Biener  <rguenther@suse.de>
35112
35113         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
35114         when we found a dependence.
35115
35116 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
35117
35118         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
35119         common code...
35120         (maybe_fold_stmt): ... into this new function.
35121         * omp-low.c (lower_omp): Update comment.
35122
35123         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
35124         last use.
35125
35126         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
35127         dereference.
35128
35129 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
35130
35131         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
35132         identifiers in comments.
35133         (cortexa53_extra_costs): Likewise.
35134         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
35135         (cortexa7_extra_costs): Likewise.
35136         (cortexa12_extra_costs): Likewise.
35137         (cortexa15_extra_costs): Likewise.
35138         (v7m_extra_costs): Likewise.
35139
35140 2014-02-12  Richard Biener  <rguenther@suse.de>
35141
35142         PR middle-end/60092
35143         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
35144         of posix_memalign being successful.
35145         (lower_stmt): Restrict lowering of posix_memalign to when
35146         -ftree-bit-ccp is enabled.
35147
35148 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
35149
35150         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
35151         arg_loc.
35152         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
35153
35154 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
35155
35156         PR rtl-optimization/60116
35157         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
35158         other_insn once the combination has been validated.
35159
35160 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
35161
35162         PR lto/59468
35163         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
35164         and wrapper.
35165         * ipa-devirt.c: Include demangle.h
35166         (odr_violation_reported): New static variable.
35167         (add_type_duplicate): Update odr_violations.
35168         (maybe_record_node): Add completep parameter; update it.
35169         (record_target_from_binfo): Add COMPLETEP parameter;
35170         update it as needed.
35171         (possible_polymorphic_call_targets_1): Likewise.
35172         (struct polymorphic_call_target_d): Add nonconstruction_targets;
35173         rename FINAL to COMPLETE.
35174         (record_targets_from_bases): Sanity check we found the binfo;
35175         fix COMPLETEP updating.
35176         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
35177         parameter, fix computing of COMPLETEP.
35178         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
35179         at LTO time do demangling.
35180         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
35181         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
35182         parameter.
35183         (gimple_get_virt_method_for_binfo): Likewise.
35184         * gimple-fold.h (gimple_get_virt_method_for_binfo,
35185         gimple_get_virt_method_for_vtable): Update prototypes.
35186
35187 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
35188
35189         PR target/49008
35190         * genautomata.c (add_presence_absence): Fix typo with
35191         {final_}presence_list.
35192
35193 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35194
35195         PR target/60137
35196         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
35197         for VSX/Altivec vectors that land in GPR registers.
35198
35199 2014-02-11  Richard Henderson  <rth@redhat.com>
35200             Jakub Jelinek  <jakub@redhat.com>
35201
35202         PR debug/59776
35203         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
35204         around drhs if type conversion to lacc->type is not useless.
35205
35206 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35207
35208         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
35209         tuning struct.
35210         (cortex-a57.cortex-a53): Likewise.
35211         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
35212
35213 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35214
35215         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
35216         arm_restrict_it.
35217
35218 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
35219
35220         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
35221         add_options_for_arm_vfp3.
35222
35223 2014-02-11  Jeff Law  <law@redhat.com>
35224
35225         PR middle-end/54041
35226         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
35227         object with an undesirable mode.
35228
35229 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35230
35231         PR libgomp/60107
35232         * config/i386/sol2-9.h: New file.
35233         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
35234         *-*-solaris2.9*): Use it.
35235
35236 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
35237
35238         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
35239         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
35240
35241 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
35242
35243         * config/microblaze/microblaze.c: Extend mcpu version format
35244
35245 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
35246
35247         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
35248
35249 2014-02-10  Richard Henderson  <rth@redhat.com>
35250
35251         PR target/59927
35252         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
35253         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
35254         ms-abi vs -mno-accumulate-outgoing-args.
35255         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
35256         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
35257         respect to ms-abi.
35258
35259 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35260
35261         PR middle-end/60080
35262         * cfgexpand.c (expand_asm_operands): Attach source location to
35263         ASM_INPUT rtx objects.
35264         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
35265
35266 2014-02-10  Nick Clifton  <nickc@redhat.com>
35267
35268         * config/mn10300/mn10300.c (popcount): New function.
35269         (mn10300_expand_prologue): Include saved registers in stack usage
35270         count.
35271
35272 2014-02-10  Jeff Law  <law@redhat.com>
35273
35274         PR middle-end/52306
35275         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
35276         when changing the SET_DEST of a prior insn to avoid an input reload.
35277
35278 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35279
35280         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
35281         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
35282         -mcall-openbsd, or -mcall-linux.
35283         (CC1_ENDIAN_BIG_SPEC): Remove.
35284         (CC1_ENDIAN_LITTLE_SPEC): Remove.
35285         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
35286         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
35287         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
35288         and %cc1_endian_default.
35289         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
35290
35291 2014-02-10  Richard Biener  <rguenther@suse.de>
35292
35293         PR tree-optimization/60115
35294         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
35295         MEM_REF handling.  Properly verify that the accesses are not
35296         out of the objects bound.
35297
35298 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35299
35300         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
35301         coretex to cortex.
35302
35303 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
35304
35305         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
35306         proper constants and fix formatting.
35307         (possible_polymorphic_call_targets): Fix formatting.
35308
35309 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
35310             Ilya Tocar  <ilya.tocar@intel.com>
35311
35312         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
35313         (_mm512_loadu_epi32): Renamed into...
35314         (_mm512_loadu_si512): This.
35315         (_mm512_storeu_epi32): Renamed into...
35316         (_mm512_storeu_si512): This.
35317         (_mm512_maskz_ceil_ps): Removed.
35318         (_mm512_maskz_ceil_pd): Ditto.
35319         (_mm512_maskz_floor_ps): Ditto.
35320         (_mm512_maskz_floor_pd): Ditto.
35321         (_mm512_floor_round_ps): Ditto.
35322         (_mm512_floor_round_pd): Ditto.
35323         (_mm512_ceil_round_ps): Ditto.
35324         (_mm512_ceil_round_pd): Ditto.
35325         (_mm512_mask_floor_round_ps): Ditto.
35326         (_mm512_mask_floor_round_pd): Ditto.
35327         (_mm512_mask_ceil_round_ps): Ditto.
35328         (_mm512_mask_ceil_round_pd): Ditto.
35329         (_mm512_maskz_floor_round_ps): Ditto.
35330         (_mm512_maskz_floor_round_pd): Ditto.
35331         (_mm512_maskz_ceil_round_ps): Ditto.
35332         (_mm512_maskz_ceil_round_pd): Ditto.
35333         (_mm512_expand_pd): Ditto.
35334         (_mm512_expand_ps): Ditto.
35335         * config/i386/i386.c (ix86_builtins): Remove
35336         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
35337         (bdesc_args): Ditto.
35338         * config/i386/predicates.md (const1256_operand): New.
35339         (const_1_to_2_operand): Ditto.
35340         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
35341         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
35342         (*avx512pf_gatherpf<mode>sf): Ditto.
35343         (avx512pf_gatherpf<mode>df): Ditto.
35344         (*avx512pf_gatherpf<mode>df_mask): Ditto.
35345         (*avx512pf_gatherpf<mode>df): Ditto.
35346         (avx512pf_scatterpf<mode>sf): Ditto.
35347         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
35348         (*avx512pf_scatterpf<mode>sf): Ditto.
35349         (avx512pf_scatterpf<mode>df): Ditto.
35350         (*avx512pf_scatterpf<mode>df_mask): Ditto.
35351         (*avx512pf_scatterpf<mode>df): Ditto.
35352         (avx512f_expand<mode>): Removed.
35353         (<shift_insn><mode>3<mask_name>): Change predicate type.
35354
35355 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
35356
35357         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
35358         not at the end of datarefs vector use ordered_remove to avoid
35359         reordering datarefs vector.
35360
35361         PR c/59984
35362         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
35363         mark local addressable non-static vars as GOVD_PRIVATE
35364         instead of GOVD_LOCAL.
35365         * omp-low.c (lower_omp_for): Move gimple_bind_vars
35366         and BLOCK_VARS of gimple_bind_block to new_stmt rather
35367         than copying them.
35368
35369         PR middle-end/60092
35370         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
35371         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
35372         assume_aligned or alloc_align attributes.
35373         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
35374         arguments.  Handle also assume_aligned and alloc_align attributes.
35375         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
35376         calls to functions with assume_aligned or alloc_align attributes.
35377         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
35378
35379 2014-02-08  Terry Guo  <terry.guo@arm.com>
35380
35381         * doc/invoke.texi: Document ARM -march=armv7e-m.
35382
35383 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
35384
35385         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
35386         flag on __cilkrts_rethrow builtin.
35387
35388         PR ipa/60026
35389         * ipa-cp.c (determine_versionability): Fail at -O0
35390         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
35391         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
35392
35393         Revert:
35394         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
35395
35396         PR ipa/60026
35397         * tree-inline.c (copy_forbidden): Fail for
35398         __attribute__((optimize (0))) functions.
35399
35400 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
35401
35402         * varpool.c: Include pointer-set.h.
35403         (varpool_remove_unreferenced_decls): Variables in other partitions
35404         will not be output; be however careful to not lose information
35405         about partitioning.
35406
35407 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
35408
35409         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
35410         lookup in the vtable constructor.
35411
35412 2014-02-07  Jeff Law  <law@redhat.com>
35413
35414         PR target/40977
35415         * config/m68k/m68k.md (ashldi_extsi): Turn into a
35416         define_insn_and_split.
35417
35418         * ipa-inline.c (inline_small_functions): Fix typos.
35419
35420 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35421
35422         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
35423         (s390_can_use_return_insn): Declare.
35424         * config/s390/s390.h (EPILOGUE_USES): Define.
35425         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
35426         instructions.
35427         (s390_chunkify_start): Handle return JUMP_LABELs.
35428         (s390_early_mach): Emit a main_pool instruction on the entry edge.
35429         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
35430         (s390_can_use_return_insn): New functions.
35431         (s390_fix_long_loop_prediction): Handle conditional returns.
35432         (TARGET_SET_UP_BY_PROLOGUE): Define.
35433         * config/s390/s390.md (ANY_RETURN): New code iterator.
35434         (*creturn, *csimple_return, return, simple_return): New patterns.
35435
35436 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35437
35438         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
35439         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
35440         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
35441         REG_CFA_RESTORE list when deciding not to restore a register.
35442
35443 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35444
35445         * config/s390/s390.c: Include tree-pass.h and context.h.
35446         (s390_early_mach): New function, split out from...
35447         (s390_emit_prologue): ...here.
35448         (pass_data_s390_early_mach): New pass structure.
35449         (pass_s390_early_mach): New class.
35450         (s390_option_override): Create and register early_mach pass.
35451         Move to end of file.
35452
35453 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35454
35455         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
35456         to match for the exit block.
35457
35458 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35459
35460         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
35461         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
35462         Reject misaligned operands.
35463
35464 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35465
35466         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
35467
35468 2014-02-07  Richard Biener  <rguenther@suse.de>
35469
35470         PR middle-end/60092
35471         * gimple-low.c (lower_builtin_posix_memalign): New function.
35472         (lower_stmt): Call it to lower posix_memalign in a way
35473         to make alignment info accessible.
35474
35475 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
35476
35477         PR c++/60082
35478         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
35479         __builtin_setjmp_receiver.
35480
35481 2014-02-07  Richard Biener  <rguenther@suse.de>
35482
35483         PR middle-end/60092
35484         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
35485         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
35486         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35487         Handle BUILT_IN_POSIX_MEMALIGN.
35488         (find_func_clobbers): Likewise.
35489         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35490         (call_may_clobber_ref_p_1): Likewise.
35491
35492 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
35493
35494         PR ipa/59918
35495         * ipa-devirt.c (record_target_from_binfo): Remove overactive
35496         sanity check.
35497
35498 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
35499
35500         PR ipa/59469
35501         * lto-cgraph.c (lto_output_node): Use
35502         symtab_get_symbol_partitioning_class.
35503         (lto_output_varpool_node): likewise.
35504         (symtab_get_symbol_partitioning_class): Move here from
35505         lto/lto-partition.c
35506         * cgraph.h (symbol_partitioning_class): Likewise.
35507         (symtab_get_symbol_partitioning_class): Declare.
35508
35509 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
35510
35511         * ggc.h (ggc_internal_cleared_alloc): New macro.
35512         * vec.h (vec_safe_copy): Handle memory stats.
35513         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
35514         * target-globals.c (save_target_globals): Likewise.
35515
35516 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
35517
35518         PR target/60077
35519         * expr.c (emit_move_resolve_push): Export; be bit more selective
35520         on when to clear alias set.
35521         * expr.h (emit_move_resolve_push): Declare.
35522         * function.h (struct function): Add tail_call_marked.
35523         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
35524         * config/i386/i386-protos.h (ix86_expand_push): Remove.
35525         * config/i386/i386.md (TImode move expander): De not call
35526         ix86_expand_push.
35527         (FP push expanders): Preserve memory attributes.
35528         * config/i386/sse.md (push<mode>1): Remove.
35529         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
35530         (ix86_expand_push): Remove.
35531         * config/i386/mmx.md (push<mode>1): Remove.
35532
35533 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
35534
35535         PR rtl-optimization/60030
35536         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
35537         lopart with paradoxical subreg before shifting it up by hprec.
35538
35539 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35540
35541         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
35542         Remove extra newline at end of file.
35543         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
35544         (arm_issue_rate): Handle cortexa57.
35545         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
35546         (cortex-a57.cortex-a53): Likewise.
35547
35548 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
35549
35550         PR target/59575
35551         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
35552         don't record in REG_FRAME_RELATED_EXPR registers not set in that
35553         bitmask.
35554         (arm_expand_prologue): Adjust all callers.
35555         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
35556         info, registers also at the lowest numbered registers side.  Use
35557         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
35558         XEXP.
35559
35560         PR debug/59992
35561         * var-tracking.c (adjust_mems): Before adding a SET to
35562         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
35563
35564 2014-02-06  Alan Modra  <amodra@gmail.com>
35565
35566         PR target/60032
35567         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
35568         change SDmode to DDmode when lra_in_progress.
35569
35570 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
35571
35572         PR middle-end/59150
35573         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
35574         free_data_ref on the dr first, and before goto again also set dr
35575         to the next dr.  For simd_lane_access, free old datarefs[i] before
35576         overwriting it.  For get_vectype_for_scalar_type failure, don't
35577         free_data_ref if simd_lane_access.
35578
35579         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
35580
35581         PR target/60062
35582         * tree.h (opts_for_fn): New inline function.
35583         (opt_for_fn): Define.
35584         * config/i386/i386.c (ix86_function_regparm): Use
35585         opt_for_fn (decl, optimize) instead of optimize.
35586
35587 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35588
35589         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
35590         for SYMBOL_REF in large memory model.
35591
35592 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35593
35594         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
35595         and crypto support.
35596         (cortex-a57): Likewise.
35597         (cortex-a57.cortex-a53): Likewise.
35598
35599 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
35600             Kugan Vivekanandarajah  <kuganv@linaro.org>
35601
35602         * config/arm/arm.c (arm_vector_alignment_reachable): Check
35603         unaligned_access.
35604         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
35605
35606 2014-02-06  Richard Biener  <rguenther@suse.de>
35607
35608         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
35609         set_loop_copy and initialize_original_copy_tables.
35610
35611 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
35612
35613         * config/aarch64/aarch64-simd.md
35614         (aarch64_ashr_simddi): Change QI to SI.
35615
35616 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
35617             Jakub Jelinek  <jakub@redhat.com>
35618
35619         PR middle-end/60013
35620         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
35621         of the dataflow.
35622
35623 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35624
35625         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
35626         CODE_FOR_altivec_vpku[hw]um to
35627         CODE_FOR_altivec_vpku[hw]um_direct.
35628         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
35629         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
35630         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
35631         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
35632
35633 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35634
35635         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
35636         generation for -maltivec=be.
35637         (altivec_vsumsws): Simplify redundant test.
35638
35639 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35640
35641         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
35642         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
35643         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
35644         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
35645         gen_altivec_vpkuwum.
35646         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
35647         BYTES_BIG_ENDIAN.
35648         (altivec_vpks<VI_char>ss): Likewise.
35649         (altivec_vpks<VI_char>us): Likewise.
35650         (altivec_vpku<VI_char>us): Likewise.
35651         (altivec_vpku<VI_char>um): Likewise.
35652         (altivec_vpku<VI_char>um_direct): New (copy of
35653         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
35654         internal use).
35655         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
35656         target is little endian and -maltivec=be is not specified.
35657         (*altivec_vupkhs<VU_char>_direct): New (copy of
35658         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
35659         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
35660         target is little endian and -maltivec=be is not specified.
35661         (*altivec_vupkls<VU_char>_direct): New (copy of
35662         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
35663         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
35664         little endian and -maltivec=be is not specified.
35665         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
35666         little endian and -maltivec=be is not specified.
35667
35668 2014-02-05  Richard Henderson  <rth@redhat.com>
35669
35670         PR debug/52727
35671         * combine-stack-adj.c: Revert r206943.
35672         * sched-int.h (struct deps_desc): Add last_args_size.
35673         * sched-deps.c (init_deps): Initialize it.
35674         (sched_analyze_insn): Add OUTPUT dependencies between insns that
35675         contain REG_ARGS_SIZE notes.
35676
35677 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
35678
35679         * lto-cgraph.c (asm_nodes_output): Make global.
35680         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
35681         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
35682         (driver_handle_option): Handle OPT_fwpa.
35683
35684 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
35685
35686         PR ipa/59947
35687         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
35688         a comment typo and formatting issue.  If odr_hash hasn't been
35689         created, return vNULL and set *completep to false.
35690
35691         PR middle-end/57499
35692         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
35693         bb with no successors.
35694
35695 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
35696
35697         PR target/59718
35698         * doc/invoke.texi (-march): Clarify documentation for ARM.
35699         (-mtune): Likewise.
35700         (-mcpu): Likewise.
35701
35702 2014-02-05  Richard Biener  <rguenther@suse.de>
35703
35704         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
35705         when not vectorizing because of too many alias checks.
35706         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
35707         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
35708
35709 2014-02-05  Nick Clifton  <nickc@redhat.com>
35710
35711         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
35712         accept extended registers in any mode when compiling for the MN10300.
35713
35714 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
35715
35716         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
35717         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
35718         sanitization attributes.
35719         (can_inline_edge_p): Likewise.
35720         (sanitize_attrs_match_for_inline_p): New function.
35721
35722 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
35723
35724         * ipa-prop.c (detect_type_change): Shor circuit testing of
35725         type changes on THIS pointer.
35726
35727 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
35728
35729         PR target/59777
35730         * config/pa/pa.c (legitimize_tls_address): Return original address
35731         if not passed a SYMBOL_REF rtx.
35732         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
35733         addresses.
35734         (pa_emit_move_sequence): Simplify TLS source operands.
35735         (pa_legitimate_constant_p): Reject all TLS constants.
35736         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
35737         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
35738
35739 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
35740
35741         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
35742         groups when we know they are controlled by LTO.
35743         * varasm.c (default_binds_local_p_1): If object is in other partition,
35744         it will be resolved locally.
35745
35746 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35747
35748         * config/host-linux.c (linux_gt_pch_use_address): Don't
35749         use SSIZE_MAX because it is not always defined.
35750
35751 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
35752
35753         PR bootstrap/59913
35754         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
35755         threshold for pseudo splitting.
35756         (update_ebb_live_info): Process call argument hard registers and
35757         hard registers from insn definition too.
35758         (max_small_class_regs_num): New constant.
35759         (inherit_in_ebb): Update live hard regs through EBBs.  Update
35760         reloads_num only for small register classes.  Don't split for
35761         outputs of jumps.
35762
35763 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
35764
35765         PR ipa/60058
35766         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
35767         is non-null.
35768
35769 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
35770
35771         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
35772         visibility is safe.
35773
35774 2014-02-04  Marek Polacek  <polacek@redhat.com>
35775
35776         * gdbinit.in (pel): Define.
35777
35778 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35779
35780         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
35781         behavior.
35782
35783 2014-02-04  Richard Biener  <rguenther@suse.de>
35784
35785         PR lto/59723
35786         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
35787         in function context local.
35788         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
35789         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
35790         similar to LTO_imported_decl_ref.
35791
35792 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
35793
35794         PR tree-optimization/60002
35795         * cgraphclones.c (build_function_decl_skip_args): Clear
35796         DECL_LANG_SPECIFIC.
35797
35798         PR tree-optimization/60023
35799         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
35800         false to gsi_replace.
35801         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
35802         has been in some EH region and vec_stmt could throw, add
35803         vec_stmt into the same EH region.
35804         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
35805         has no lhs, ignore it.
35806         * internal-fn.c (expand_MASK_LOAD): Likewise.
35807
35808         PR ipa/60026
35809         * tree-inline.c (copy_forbidden): Fail for
35810         __attribute__((optimize (0))) functions.
35811
35812         PR other/58712
35813         * omp-low.c (simd_clone_struct_copy): If from->inbranch
35814         is set, copy one less argument.
35815         (expand_simd_clones): Don't subtract clone_info->inbranch
35816         from simd_clone_struct_alloc argument.
35817
35818         PR rtl-optimization/57915
35819         * recog.c (simplify_while_replacing): If all unary/binary/relational
35820         operation arguments are constant, attempt to simplify those.
35821
35822         PR middle-end/59261
35823         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
35824         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
35825
35826 2014-02-04  Richard Biener  <rguenther@suse.de>
35827
35828         PR tree-optimization/60012
35829         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
35830         TBAA disambiguation to all DDRs.
35831
35832 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35833
35834         PR target/59788
35835         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
35836         (LINK_SPEC): Use it for -shared, -shared-libgcc.
35837
35838 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
35839
35840         PR ipa/59882
35841         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
35842
35843 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
35844
35845         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
35846         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
35847
35848 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
35849
35850         PR ipa/59831
35851         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
35852         to figure out targets of polymorphic calls with known decl.
35853         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
35854         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
35855         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
35856         (get_polymorphic_call_info): ... here.
35857         (get_polymorphic_call_info_from_invariant): New function.
35858
35859 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
35860
35861         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
35862         lookup via vtable pointer; check for type consistency
35863         and turn inconsitent facts into UNREACHABLE.
35864         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
35865         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
35866         type inconsistent querries; return UNREACHABLE instead.
35867
35868 2014-02-03  Richard Henderson  <rth@twiddle.net>
35869
35870         PR tree-opt/59924
35871         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
35872         already processed this node.
35873         (normalize_one_pred_1): Pass along mark_set.
35874         (normalize_one_pred): Create and destroy a pointer_set_t.
35875         (normalize_one_pred_chain): Likewise.
35876
35877 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
35878
35879         PR gcov-profile/58602
35880         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
35881
35882 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
35883
35884         PR ipa/59831
35885         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
35886         -fno-devirtualize; try to devirtualize by the knowledge of
35887         virtual table pointer given by aggregate propagation.
35888         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
35889         (ipa_print_node_jump_functions): Dump also offset that
35890         is relevant for polymorphic calls.
35891         (determine_known_aggregate_parts): Add arg_type parameter; use it
35892         instead of determining the type from pointer type.
35893         (ipa_compute_jump_functions_for_edge): Update call of
35894         determine_known_aggregate_parts.
35895         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
35896         (gimple_get_virt_method_for_binfo): ... here; simplify using
35897         vtable_pointer_value_to_vtable.
35898         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
35899         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
35900         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
35901         (vtable_pointer_value_to_vtable): Break out from ...; handle also
35902         POINTER_PLUS_EXPR.
35903         (vtable_pointer_value_to_binfo): ... here.
35904         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
35905
35906 2014-02-03  Teresa Johnson  <tejohnson@google.com>
35907
35908         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
35909         redef of outer loop index variable.
35910
35911 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
35912
35913         PR c++/53017
35914         PR c++/59211
35915         * doc/extend.texi (Function Attributes): Typo.
35916
35917 2014-02-03  Cong Hou  <congh@google.com>
35918
35919         PR tree-optimization/60000
35920         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
35921         if the vectorized statement is a store.  A store statement can only
35922         appear at the end of pattern statements.
35923
35924 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
35925
35926         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
35927         (ix86_option_override_internal): Default long double to 64-bit for
35928         32-bit Bionic and to 128-bit for 64-bit Bionic.
35929
35930         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
35931         TARGET_LONG_DOUBLE_128 is true.
35932         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
35933
35934         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
35935         (mlong-double-64): Negate -mlong-double-128.
35936         (mlong-double-128): New option.
35937
35938         * config/i386/i386-c.c (ix86_target_macros): Define
35939         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
35940
35941         * doc/invoke.texi: Document -mlong-double-128.
35942
35943 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
35944
35945         PR rtl-optimization/60024
35946         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
35947
35948 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
35949
35950         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
35951
35952 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
35953
35954         PR rtl-optimization/57662
35955         * sel-sched.c (code_motion_path_driver): Do not mark already not
35956         existing blocks in the visiting bitmap.
35957
35958 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
35959
35960         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
35961         on the insn being emitted.
35962
35963 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
35964             Will Deacon  <will.deacon@arm.com>
35965
35966         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
35967
35968 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35969
35970         * config/arm/arm-tables.opt: Regenerate.
35971
35972 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35973
35974         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
35975         for vector types other than V16QImode.
35976         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
35977         define_expand, and call altivec_expand_vec_perm_le when producing
35978         code with little endian element order.
35979         (*altivec_vperm_<mode>_internal): New insn having previous
35980         behavior of altivec_vperm_<mode>.
35981         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
35982         altivec_expand_vec_perm_le when producing code with little endian
35983         element order.
35984         (*altivec_vperm_<mode>_uns_internal): New insn having previous
35985         behavior of altivec_vperm_<mode>_uns.
35986
35987 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35988
35989         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
35990         (altivec_vsumsws): Add handling for -maltivec=be with a little
35991         endian target.
35992         (altivec_vsumsws_direct): New.
35993         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
35994         gen_altivec_vsumsws.
35995
35996 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
35997
35998         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
35999         vtable_pointer_value_to_binfo): New functions.
36000         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
36001         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
36002
36003 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
36004
36005         * config/nios2/nios2.md (load_got_register): Initialize GOT
36006         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
36007         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
36008
36009 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
36010
36011         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
36012         preserverd by passthrough, do not propagate the type.
36013
36014 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
36015
36016         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
36017         (mips_atomic_assign_expand_fenv): New function.
36018         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
36019
36020 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
36021
36022         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
36023         (__builtin_mips_set_fcsr): Likewise.
36024         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
36025         MIPS_USI_FTYPE_VOID.
36026         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
36027         (mips16_expand_set_fcsr): Likewise.
36028         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
36029         (mips16_set_fcsr_stub): Likewise.
36030         (mips16_get_fcsr_one_only_stub): New class.
36031         (mips16_set_fcsr_one_only_stub): Likewise.
36032         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
36033         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
36034         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
36035         (hard_float): New availability predicate.
36036         (mips_builtins): Add get_fcsr and set_fcsr.
36037         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
36038         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
36039         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
36040         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
36041         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
36042         patterns.
36043
36044 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
36045
36046         * config/mips/mips.c (mips_one_only_stub): New class.
36047         (mips_need_mips16_rdhwr_p): Replace with...
36048         (mips16_rdhwr_stub): ...this new variable.
36049         (mips16_stub_call_address): New function.
36050         (mips16_rdhwr_one_only_stub): New class.
36051         (mips_expand_thread_pointer): Use mips16_stub_call_address.
36052         (mips_output_mips16_rdhwr): Delete.
36053         (mips_finish_stub): New function.
36054         (mips_code_end): Use it to handle rdhwr stubs.
36055
36056 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
36057
36058         PR target/60017
36059         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
36060         when calculating size of integer atomic types.
36061
36062 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
36063
36064         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
36065
36066 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
36067
36068         PR tree-optimization/60003
36069         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
36070         * profile.c (branch_prob): Use gimple_call_builtin_p
36071         to check for BUILT_IN_SETJMP_RECEIVER.
36072         * tree-inline.c (copy_bb): Call notice_special_calls.
36073
36074 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
36075
36076         PR bootstrap/59985
36077         * lra-constraints.c (process_alt_operands): Update reload_sum only
36078         on the first pass.
36079
36080 2014-01-31  Richard Henderson  <rth@redhat.com>
36081
36082         PR middle-end/60004
36083         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
36084         until after else_eh is processed.
36085
36086 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
36087
36088         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
36089         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
36090         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
36091         in smmintrin.h, remove them.
36092         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
36093         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
36094         * config/i386/i386.md (ROUND_SAE): Fix value.
36095         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
36096         (const48_operand): New.
36097         * config/i386/subst.md (round), (round_expand): Use
36098         const_4_or_8_to_11_operand.
36099         (round_saeonly), (round_saeonly_expand): Use const48_operand.
36100
36101 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
36102
36103         * config/i386/constraints.md (Yk): Swap meaning with k.
36104         * config/i386/i386.md (movhi_internal): Change Yk to k.
36105         (movqi_internal): Ditto.
36106         (*k<logic><mode>): Ditto.
36107         (*andhi_1): Ditto.
36108         (*andqi_1): Ditto.
36109         (kandn<mode>): Ditto.
36110         (*<code>hi_1): Ditto.
36111         (*<code>qi_1): Ditto.
36112         (kxnor<mode>): Ditto.
36113         (kortestzhi): Ditto.
36114         (kortestchi): Ditto.
36115         (kunpckhi): Ditto.
36116         (*one_cmplhi2_1): Ditto.
36117         (*one_cmplqi2_1): Ditto.
36118         * config/i386/sse.md (): Change k to Yk.
36119         (avx512f_load<mode>_mask): Ditto.
36120         (avx512f_blendm<mode>): Ditto.
36121         (avx512f_store<mode>_mask): Ditto.
36122         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
36123         (avx512f_storedqu<mode>_mask): Ditto.
36124         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
36125         Ditto.
36126         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
36127         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
36128         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
36129         (avx512f_maskcmp<mode>3): Ditto.
36130         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
36131         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
36132         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
36133         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
36134         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
36135         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
36136         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
36137         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
36138         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
36139         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
36140         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
36141         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
36142         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
36143         (vec_extract_lo_<mode>_maskm): Ditto.
36144         (vec_extract_hi_<mode>_maskm): Ditto.
36145         (avx512f_vternlog<mode>_mask): Ditto.
36146         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
36147         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
36148         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
36149         (avx512f_<code>v8div16qi2_mask): Ditto.
36150         (avx512f_<code>v8div16qi2_mask_store): Ditto.
36151         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
36152         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
36153         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
36154         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
36155         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
36156         (*avx512pf_gatherpf<mode>df_mask): Ditto.
36157         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
36158         (*avx512pf_scatterpf<mode>df_mask): Ditto.
36159         (avx512cd_maskb_vec_dupv8di): Ditto.
36160         (avx512cd_maskw_vec_dupv16si): Ditto.
36161         (avx512f_vpermi2var<mode>3_maskz): Ditto.
36162         (avx512f_vpermi2var<mode>3_mask): Ditto.
36163         (avx512f_vpermi2var<mode>3_mask): Ditto.
36164         (avx512f_vpermt2var<mode>3_maskz): Ditto.
36165         (*avx512f_gathersi<mode>): Ditto.
36166         (*avx512f_gathersi<mode>_2): Ditto.
36167         (*avx512f_gatherdi<mode>): Ditto.
36168         (*avx512f_gatherdi<mode>_2): Ditto.
36169         (*avx512f_scattersi<mode>): Ditto.
36170         (*avx512f_scatterdi<mode>): Ditto.
36171         (avx512f_compress<mode>_mask): Ditto.
36172         (avx512f_compressstore<mode>_mask): Ditto.
36173         (avx512f_expand<mode>_mask): Ditto.
36174         * config/i386/subst.md (mask): Change k to Yk.
36175         (mask_scalar_merge): Ditto.
36176         (sd): Ditto.
36177
36178 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
36179
36180         * doc/extend.texi (Vector Extensions): Document ?: in C++.
36181
36182 2014-01-31  Richard Biener  <rguenther@suse.de>
36183
36184         PR middle-end/59990
36185         * builtins.c (fold_builtin_memory_op): Make sure to not
36186         use a floating-point mode or a boolean or enumeral type for
36187         the copy operation.
36188
36189 2014-01-30  DJ Delorie  <dj@redhat.com>
36190
36191         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
36192         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
36193         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
36194         whenever main() has an epilogue.
36195
36196 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36197
36198         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
36199         unused variable "field".
36200         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
36201         (vsx_mergeh_<mode>): Likewise.
36202         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
36203         (altivec_vmrghh): Likewise.
36204         (altivec_vmrghw): Likewise.
36205         (altivec_vmrglb): Likewise.
36206         (altivec_vmrglh): Likewise.
36207         (altivec_vmrglw): Likewise.
36208         (altivec_vspltb): Add missing uses.
36209         (altivec_vsplth): Likewise.
36210         (altivec_vspltw): Likewise.
36211         (altivec_vspltsf): Likewise.
36212
36213 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
36214
36215         PR target/59923
36216         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
36217         frame related instructions.
36218
36219 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36220
36221         PR rtl-optimization/59959
36222         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
36223         any reload of register whose subreg is invalid.
36224
36225 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
36226
36227         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
36228         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
36229         Add missing return type - void.
36230
36231 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36232
36233         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
36234         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
36235         remove element index adjustment for endian (now handled in vsx.md
36236         and altivec.md).
36237         (altivec_expand_vec_perm_const): Use
36238         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
36239         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
36240         (vsx_xxspltw_<mode>): Adjust element index for little endian.
36241         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
36242         define_expand and a new define_insn *altivec_vspltb_internal;
36243         adjust for -maltivec=be on a little endian target.
36244         (altivec_vspltb_direct): New.
36245         (altivec_vsplth): Divide into a define_expand and a new
36246         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
36247         little endian target.
36248         (altivec_vsplth_direct): New.
36249         (altivec_vspltw): Divide into a define_expand and a new
36250         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
36251         little endian target.
36252         (altivec_vspltw_direct): New.
36253         (altivec_vspltsf): Divide into a define_expand and a new
36254         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
36255         a little endian target.
36256
36257 2014-01-30  Richard Biener  <rguenther@suse.de>
36258
36259         PR tree-optimization/59993
36260         * tree-ssa-forwprop.c (associate_pointerplus): Check we
36261         can propagate form the earlier stmt and avoid the transform
36262         when the intermediate result is needed.
36263
36264 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
36265
36266         * README.Portability: Fix typo.
36267
36268 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
36269
36270         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
36271         comparison_operator with ordered_comparison_operator.
36272
36273 2014-01-30  Nick Clifton  <nickc@redhat.com>
36274
36275         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
36276         Rename to mn10300_store_multiple_regs.
36277         * config/mn10300/mn10300.c: Likewise.
36278         * config/mn10300/mn10300.md (store_movm): Fix typo: call
36279         store_multiple_regs.
36280         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
36281         Call mn10300_store_multiple_regs.
36282
36283 2014-01-30  Nick Clifton  <nickc@redhat.com>
36284             DJ Delorie  <dj@redhat.com>
36285
36286         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
36287         %fp 2 to keep registers after it properly word-aligned.
36288         (rl78_alloc_physical_registers_umul): Handle the case where both
36289         input operands are the same.
36290
36291 2014-01-30  Richard Biener  <rguenther@suse.de>
36292
36293         PR tree-optimization/59903
36294         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
36295         check properly.
36296
36297 2014-01-30  Jason Merrill  <jason@redhat.com>
36298
36299         PR c++/59633
36300         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
36301
36302         PR c++/59645
36303         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
36304
36305 2014-01-30  Richard Biener  <rguenther@suse.de>
36306
36307         PR tree-optimization/59951
36308         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
36309
36310 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
36311
36312         PR target/59784
36313         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
36314         SFmode to DFmode case.
36315
36316 2014-01-29  DJ Delorie  <dj@redhat.com>
36317
36318         * config/msp430/msp430.opt (-minrt): New.
36319         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
36320         if -minrt given.
36321         (ENDFILE_SPEC): Likewise.
36322
36323 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
36324
36325         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
36326         (estimate_function_body_sizes): Use it.
36327
36328 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
36329
36330         PR c++/58561
36331         * dwarf2out.c (is_cxx_auto): New.
36332         (is_base_type): Use it.
36333         (gen_type_die_with_usage): Likewise.
36334
36335 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36336
36337         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
36338         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
36339         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
36340         -maltivec=be with LE targets.
36341         (vsx_mergeh_<mode>): Likewise.
36342         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
36343         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
36344         (altivec_vmrghb): Replace with define_expand and new
36345         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
36346         (altivec_vmrghb_direct): New define_insn.
36347         (altivec_vmrghh): Replace with define_expand and new
36348         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
36349         (altivec_vmrghh_direct): New define_insn.
36350         (altivec_vmrghw): Replace with define_expand and new
36351         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
36352         (altivec_vmrghw_direct): New define_insn.
36353         (*altivec_vmrghsf): Adjust for endianness.
36354         (altivec_vmrglb): Replace with define_expand and new
36355         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
36356         (altivec_vmrglb_direct): New define_insn.
36357         (altivec_vmrglh): Replace with define_expand and new
36358         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
36359         (altivec_vmrglh_direct): New define_insn.
36360         (altivec_vmrglw): Replace with define_expand and new
36361         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
36362         (altivec_vmrglw_direct): New define_insn.
36363         (*altivec_vmrglsf): Adjust for endianness.
36364         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
36365         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
36366         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
36367         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
36368         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
36369         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
36370         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
36371         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
36372
36373 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36374
36375         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
36376         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
36377         whitespace.
36378
36379 2014-01-29  Richard Biener  <rguenther@suse.de>
36380
36381         PR tree-optimization/58742
36382         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
36383         associate_pointerplus_align.
36384         (associate_pointerplus_diff): New function.
36385         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
36386         and associate_pointerplus_diff.
36387
36388 2014-01-29  Richard Biener  <rguenther@suse.de>
36389
36390         * lto-streamer.h (LTO_major_version): Bump to 3.
36391         (LTO_minor_version): Reset to 0.
36392
36393 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
36394
36395         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
36396         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
36397         (arm_file_start): Generate correct asm header for armv7ve.
36398         * config/arm/bpabi.h: Add multilib support for armv7ve.
36399         * config/arm/driver-arm.c: Change the architectures of cortex-a7
36400         and cortex-a15 to armv7ve.
36401         * config/arm/t-aprofile: Add multilib support for armv7ve.
36402         * doc/invoke.texi: Document -march=armv7ve.
36403
36404 2014-01-29  Richard Biener  <rguenther@suse.de>
36405
36406         PR tree-optimization/58742
36407         * tree-ssa-forwprop.c (associate_plusminus): Return true
36408         if we changed sth, defer EH cleanup to ...
36409         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
36410         (simplify_mult): New function.
36411
36412 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
36413
36414         PR middle-end/59917
36415         PR tree-optimization/59920
36416         * tree.c (build_common_builtin_nodes): Remove
36417         __builtin_setjmp_dispatcher initialization.
36418         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
36419         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
36420         instead of gsi_after_labels + manually skipping debug stmts.
36421         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
36422         ignore bbs with IFN_ABNORMAL_DISPATCHER.
36423         * tree-inline.c (copy_edges_for_bb): Remove
36424         can_make_abnormal_goto argument, instead add abnormal_goto_dest
36425         argument.  Ignore computed_goto_p stmts.  Don't call
36426         make_abnormal_goto_edges.  If a call might need abnormal edges
36427         for non-local gotos, see if it already has an edge to
36428         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
36429         with true argument, don't do anything then, otherwise add
36430         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
36431         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
36432         caller.
36433         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
36434         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
36435         (lower_stmt): Don't set data->calls_builtin_setjmp.
36436         (lower_builtin_setjmp): Adjust comment.
36437         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
36438         * tree-cfg.c (found_computed_goto): Remove.
36439         (factor_computed_gotos): Remove.
36440         (make_goto_expr_edges): Return bool, true for computed gotos.
36441         Don't call make_abnormal_goto_edges.
36442         (build_gimple_cfg): Don't set found_computed_goto, don't call
36443         factor_computed_gotos.
36444         (computed_goto_p): No longer static.
36445         (make_blocks): Don't set found_computed_goto.
36446         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
36447         (make_edges): If make_goto_expr_edges returns true, push bb
36448         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
36449         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
36450         vector.  Record mapping between bbs and OpenMP regions if there
36451         are any, adjust make_gimple_omp_edges caller.  Call
36452         handle_abnormal_edges.
36453         (make_abnormal_goto_edges): Remove.
36454         * tree-cfg.h (make_abnormal_goto_edges): Remove.
36455         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
36456         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
36457         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
36458         * internal-fn.def (ABNORMAL_DISPATCHER): New.
36459         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
36460         filling *region also set *region_idx to (*region)->entry->index.
36461
36462         PR other/58712
36463         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
36464         For REGs set ORIGINAL_REGNO.
36465
36466 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
36467
36468         * doc/md.texi: Mention that a target shouldn't implement
36469         vec_widen_(s|u)mul_even/odd pair if it is less efficient
36470         than hi/lo pair.
36471
36472 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
36473
36474         PR tree-optimization/59594
36475         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
36476         a copy of the datarefs vector rather than the vector itself.
36477
36478 2014-01-28  Jason Merrill  <jason@redhat.com>
36479
36480         PR c++/53756
36481         * dwarf2out.c (auto_die): New static.
36482         (gen_type_die_with_usage): Handle C++1y 'auto'.
36483         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
36484         on definition.
36485
36486 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
36487
36488         PR target/59672
36489         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
36490         (SPEC_X32): Likewise.
36491         (SPEC_64): Likewise.
36492         * config/i386/i386.c (ix86_option_override_internal): Turn off
36493         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
36494         for TARGET_16BIT.
36495         (x86_file_start): Output .code16gcc for TARGET_16BIT.
36496         * config/i386/i386.h (TARGET_16BIT): New macro.
36497         (TARGET_16BIT_P): Likewise.
36498         * config/i386/i386.opt: Add m16.
36499         * doc/invoke.texi: Document -m16.
36500
36501 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
36502
36503         PR preprocessor/59935
36504         * input.c (location_get_source_line): Bail out on when line number
36505         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
36506
36507 2014-01-28  Richard Biener  <rguenther@suse.de>
36508
36509         PR tree-optimization/58742
36510         * tree-ssa-forwprop.c (associate_plusminus): Handle
36511         pointer subtraction of the form (T)(P + A) - (T)P.
36512
36513 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36514
36515         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
36516         at const_int_cost.
36517
36518 2014-01-28  Richard Biener  <rguenther@suse.de>
36519
36520         Revert
36521         2014-01-28  Richard Biener  <rguenther@suse.de>
36522
36523         PR rtl-optimization/45364
36524         PR rtl-optimization/59890
36525         * var-tracking.c (local_get_addr_clear_given_value): Handle
36526         already cleared slot.
36527         (val_reset): Handle not allocated local_get_addr_cache.
36528         (vt_find_locations): Use post-order on the inverted CFG.
36529
36530 2014-01-28  Richard Biener  <rguenther@suse.de>
36531
36532         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
36533
36534 2014-01-28  Richard Biener  <rguenther@suse.de>
36535
36536         PR rtl-optimization/45364
36537         PR rtl-optimization/59890
36538         * var-tracking.c (local_get_addr_clear_given_value): Handle
36539         already cleared slot.
36540         (val_reset): Handle not allocated local_get_addr_cache.
36541         (vt_find_locations): Use post-order on the inverted CFG.
36542
36543 2014-01-28  Alan Modra  <amodra@gmail.com>
36544
36545         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
36546         * configure.ac <recursive call for build != host>: Define
36547         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
36548         and LD_FOR_BUILD too.
36549         * configure: Regenerate.
36550
36551 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
36552
36553         * config/i386/i386.c (get_builtin_code_for_version): Separate
36554         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
36555         Broadwell from Haswell.
36556
36557 2014-01-27  Steve Ellcey  <sellcey@mips.com>
36558
36559         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
36560         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
36561         * config/mips/mips.c (mips_option_override): Change setting
36562         of TARGET_DSP.
36563         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
36564         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
36565         Change from Mask to Var.
36566
36567 2014-01-27  Jeff Law  <law@redhat.com>
36568
36569         * ipa-inline.c (inline_small_functions): Fix typo.
36570
36571 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
36572
36573         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
36574         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
36575         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
36576         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
36577         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
36578         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
36579         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
36580         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
36581         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
36582         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
36583         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
36584         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
36585         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
36586         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
36587         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
36588         (_mm512_storeu_epi64): Ditto.
36589         (_mm512_cmpge_epi32_mask): Ditto.
36590         (_mm512_cmpge_epu32_mask): Ditto.
36591         (_mm512_cmpge_epi64_mask): Ditto.
36592         (_mm512_cmpge_epu64_mask): Ditto.
36593         (_mm512_cmple_epi32_mask): Ditto.
36594         (_mm512_cmple_epu32_mask): Ditto.
36595         (_mm512_cmple_epi64_mask): Ditto.
36596         (_mm512_cmple_epu64_mask): Ditto.
36597         (_mm512_cmplt_epi32_mask): Ditto.
36598         (_mm512_cmplt_epu32_mask): Ditto.
36599         (_mm512_cmplt_epi64_mask): Ditto.
36600         (_mm512_cmplt_epu64_mask): Ditto.
36601         (_mm512_cmpneq_epi32_mask): Ditto.
36602         (_mm512_cmpneq_epu32_mask): Ditto.
36603         (_mm512_cmpneq_epi64_mask): Ditto.
36604         (_mm512_cmpneq_epu64_mask): Ditto.
36605         (_mm512_expand_pd): Ditto.
36606         (_mm512_expand_ps): Ditto.
36607         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
36608         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
36609         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
36610         * config/i386/i386.c (ix86_builtins): Add
36611         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
36612         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
36613         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
36614         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
36615         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
36616         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
36617         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
36618         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
36619         IX86_BUILTIN_PMOVUSQW512_MEM.
36620         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
36621         __builtin_ia32_pmovsqd512mem_mask,
36622         __builtin_ia32_pmovqd512mem_mask,
36623         __builtin_ia32_pmovusqw512mem_mask,
36624         __builtin_ia32_pmovsqw512mem_mask,
36625         __builtin_ia32_pmovqw512mem_mask,
36626         __builtin_ia32_pmovusdw512mem_mask,
36627         __builtin_ia32_pmovsdw512mem_mask,
36628         __builtin_ia32_pmovdw512mem_mask,
36629         __builtin_ia32_pmovqb512mem_mask,
36630         __builtin_ia32_pmovusqb512mem_mask,
36631         __builtin_ia32_pmovsqb512mem_mask,
36632         __builtin_ia32_pmovusdb512mem_mask,
36633         __builtin_ia32_pmovsdb512mem_mask,
36634         __builtin_ia32_pmovdb512mem_mask.
36635         (bdesc_args): Add __builtin_ia32_expanddf512,
36636         __builtin_ia32_expandsf512.
36637         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
36638         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
36639         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
36640         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
36641         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
36642         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
36643         (avx512f_<code>v8div16qi2_mask_store): This.
36644         (avx512f_expand<mode>): New.
36645
36646 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
36647
36648         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
36649         New.
36650         (_mm512_mask_prefetch_i64gather_pd): Ditto.
36651         (_mm512_prefetch_i32scatter_pd): Ditto.
36652         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
36653         (_mm512_prefetch_i64scatter_pd): Ditto.
36654         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
36655         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
36656         (_mm512_mask_prefetch_i64gather_ps): Ditto.
36657         (_mm512_prefetch_i32scatter_ps): Ditto.
36658         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
36659         (_mm512_prefetch_i64scatter_ps): Ditto.
36660         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
36661         * config/i386/i386-builtin-types.def: Define
36662         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
36663         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
36664         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
36665         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
36666         IX86_BUILTIN_SCATTERPFQPD.
36667         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
36668         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
36669         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
36670         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
36671         __builtin_ia32_scatterpfqps.
36672         (ix86_expand_builtin): Expand new built-ins.
36673         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
36674         fix memory access data type.
36675         (*avx512pf_gatherpf<mode>_mask): Ditto.
36676         (*avx512pf_gatherpf<mode>): Ditto.
36677         (avx512pf_scatterpf<mode>): Ditto.
36678         (*avx512pf_scatterpf<mode>_mask): Ditto.
36679         (*avx512pf_scatterpf<mode>): Ditto.
36680         (GATHER_SCATTER_SF_MEM_MODE): New.
36681         (avx512pf_gatherpf<mode>df): Ditto.
36682         (*avx512pf_gatherpf<mode>df_mask): Ditto.
36683         (*avx512pf_scatterpf<mode>df): Ditto.
36684
36685 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
36686
36687         PR bootstrap/59934
36688         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
36689         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
36690         reached.
36691
36692 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
36693
36694         * common/config/arm/arm-common.c
36695         (arm_rewrite_mcpu): Handle multiple names.
36696         * config/arm/arm.h
36697         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
36698
36699 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
36700
36701         * gimple-builder.h (create_gimple_tmp): Delete.
36702
36703 2014-01-27  Christian Bruel  <christian.bruel@st.com>
36704
36705         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
36706         words comparisons.
36707
36708 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
36709
36710         * config/pa/pa.md (call): Generate indirect long calls to non-local
36711         functions when outputing 32-bit code.
36712         (call_value): Likewise except for special call to buggy powf function.
36713
36714         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
36715         portable runtime and PIC indirect calls.
36716         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
36717         and PIC call sequences.  Use ldo instead of blr to set return register
36718         in PIC call sequence.
36719
36720 2014-01-25  Walter Lee  <walt@tilera.com>
36721
36722         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
36723         avoid clobbering a live register.
36724
36725 2014-01-25  Walter Lee  <walt@tilera.com>
36726
36727         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
36728         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
36729         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
36730         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
36731
36732 2014-01-25  Walter Lee  <walt@tilera.com>
36733
36734         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
36735         arguments on even registers.
36736         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
36737         STACK_BOUNDARY.
36738         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
36739         (BIGGEST_ALIGNMENT): Ditto.
36740         (BIGGEST_FIELD_ALIGNMENT): Ditto.
36741
36742 2014-01-25  Walter Lee  <walt@tilera.com>
36743
36744         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
36745         insns before bundling.
36746         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
36747
36748 2014-01-25  Walter Lee  <walt@tilera.com>
36749
36750         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
36751         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
36752         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
36753
36754 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
36755
36756         * config/mips/constraints.md (kl): Delete.
36757         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
36758         define expands, using...
36759         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
36760         instructions for MIPS16.
36761         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
36762         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
36763
36764 2014-01-25  Walter Lee  <walt@tilera.com>
36765
36766         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
36767         (clzdi2): Ditto.
36768         (ffsdi2): Ditto.
36769
36770 2014-01-25  Walter Lee  <walt@tilera.com>
36771
36772         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
36773         (TARGET_EXPAND_TO_RTL_HOOK): Define.
36774
36775 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
36776
36777         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
36778         Handle XOR.
36779
36780 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
36781
36782         * print-rtl.c (in_call_function_usage): New var.
36783         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
36784         EXPR_LIST mode as mode and not as reg note name.
36785
36786         PR middle-end/59561
36787         * cfgloopmanip.c (copy_loop_info): If
36788         loop->warned_aggressive_loop_optimizations, make sure
36789         the flag is set in target loop too.
36790
36791 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
36792
36793         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
36794         flag_cilkplus.
36795         * builtins.def: Likewise.
36796         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
36797         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
36798         * ira.c (ira_setup_eliminable_regset): Likewise.
36799         * omp-low.c (gate_expand_omp): Likewise.
36800         (execute_lower_omp): Likewise.
36801         (diagnose_sb_0): Likewise.
36802         (gate_diagnose_omp_blocks): Likewise.
36803         (simd_clone_clauses_extract): Likewise.
36804         (gate): Likewise.
36805
36806 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36807
36808         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
36809         correction for little endian...
36810         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
36811         here.
36812
36813 2014-01-24  Jeff Law  <law@redhat.com>
36814
36815         PR tree-optimization/59919
36816         * tree-vrp.c (find_assert_locations_1): Do not register asserts
36817         for non-returning calls.
36818
36819 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
36820
36821         * common/config/aarch64/aarch64-common.c
36822         (aarch64_rewrite_mcpu): Handle multiple names.
36823         * config/aarch64/aarch64.h
36824         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
36825
36826 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
36827
36828         * input.c (add_file_to_cache_tab): Handle the case where fopen
36829         returns NULL.
36830
36831 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
36832
36833         PR target/59929
36834         * config/i386/i386.md (pushsf splitter): Get stack adjustment
36835         from push operand if code of push isn't PRE_DEC.
36836
36837 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
36838
36839         PR target/59909
36840         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
36841         -mquad-memory-atomic.  Update -mquad-memory documentation to say
36842         it is only used for non-atomic loads/stores.
36843
36844         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
36845         -mquad-memory or -mquad-memory-atomic switches.
36846
36847         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
36848         -mquad-memory-atomic to ISA 2.07 support.
36849
36850         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
36851         to separate support of normal quad word memory operations (ldq, stq)
36852         from the atomic quad word memory operations.
36853
36854         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
36855         support to separate non-atomic quad word operations from atomic
36856         quad word operations.  Disable non-atomic quad word operations in
36857         little endian mode so that we don't have to swap words after the
36858         load and before the store.
36859         (quad_load_store_p): Add comment about atomic quad word support.
36860         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
36861         options printed with -mdebug=reg.
36862
36863         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
36864         -mquad-memory-atomic as the test for whether we have quad word
36865         atomic instructions.
36866         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
36867         or -mp8-vector are used, allow byte/half-word atomic operations.
36868
36869         * config/rs6000/sync.md (load_lockedti): Insure that the address
36870         is a proper indexed or indirect address for the lqarx instruction.
36871         On little endian systems, swap the hi/lo registers after the lqarx
36872         instruction.
36873         (load_lockedpti): Use indexed_or_indirect_operand predicate to
36874         insure the address is valid for the lqarx instruction.
36875         (store_conditionalti): Insure that the address is a proper indexed
36876         or indirect address for the stqcrx. instruction.  On little endian
36877         systems, swap the hi/lo registers before doing the stqcrx.
36878         instruction.
36879         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
36880         insure the address is valid for the stqcrx. instruction.
36881
36882         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
36883         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
36884         type of quad memory support is available.
36885
36886 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
36887
36888         PR regression/59915
36889         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
36890         there is a danger of looping.
36891
36892 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
36893
36894         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
36895         force flag_ira_loop_pressure if set via command line.
36896
36897 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
36898
36899         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
36900         (ashr_simd): New builtin handling DI mode.
36901         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
36902         (aarch64_sshr_simddi): New match pattern.
36903         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
36904         (vshrd_n_s64): Likewise.
36905         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
36906
36907 2014-01-23  Nick Clifton  <nickc@redhat.com>
36908
36909         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
36910         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
36911         favour of mcu specific scripts.
36912         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
36913         430x multilibs.
36914
36915 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
36916             Alex Velenko  <Alex.Velenko@arm.com>
36917
36918         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
36919         (vaddv_s16): Likewise.
36920         (vaddv_s32): Likewise.
36921         (vaddv_u8): Likewise.
36922         (vaddv_u16): Likewise.
36923         (vaddv_u32): Likewise.
36924         (vaddvq_s8): Likewise.
36925         (vaddvq_s16): Likewise.
36926         (vaddvq_s32): Likewise.
36927         (vaddvq_s64): Likewise.
36928         (vaddvq_u8): Likewise.
36929         (vaddvq_u16): Likewise.
36930         (vaddvq_u32): Likewise.
36931         (vaddvq_u64): Likewise.
36932         (vaddv_f32): Likewise.
36933         (vaddvq_f32): Likewise.
36934         (vaddvq_f64): Likewise.
36935         (vmaxv_f32): Likewise.
36936         (vmaxv_s8): Likewise.
36937         (vmaxv_s16): Likewise.
36938         (vmaxv_s32): Likewise.
36939         (vmaxv_u8): Likewise.
36940         (vmaxv_u16): Likewise.
36941         (vmaxv_u32): Likewise.
36942         (vmaxvq_f32): Likewise.
36943         (vmaxvq_f64): Likewise.
36944         (vmaxvq_s8): Likewise.
36945         (vmaxvq_s16): Likewise.
36946         (vmaxvq_s32): Likewise.
36947         (vmaxvq_u8): Likewise.
36948         (vmaxvq_u16): Likewise.
36949         (vmaxvq_u32): Likewise.
36950         (vmaxnmv_f32): Likewise.
36951         (vmaxnmvq_f32): Likewise.
36952         (vmaxnmvq_f64): Likewise.
36953         (vminv_f32): Likewise.
36954         (vminv_s8): Likewise.
36955         (vminv_s16): Likewise.
36956         (vminv_s32): Likewise.
36957         (vminv_u8): Likewise.
36958         (vminv_u16): Likewise.
36959         (vminv_u32): Likewise.
36960         (vminvq_f32): Likewise.
36961         (vminvq_f64): Likewise.
36962         (vminvq_s8): Likewise.
36963         (vminvq_s16): Likewise.
36964         (vminvq_s32): Likewise.
36965         (vminvq_u8): Likewise.
36966         (vminvq_u16): Likewise.
36967         (vminvq_u32): Likewise.
36968         (vminnmv_f32): Likewise.
36969         (vminnmvq_f32): Likewise.
36970         (vminnmvq_f64): Likewise.
36971
36972 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
36973
36974         * config/aarch64/aarch64-simd.md
36975         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
36976         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
36977         (*aarch64_mul3_elt<mode>): Likewise.
36978         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
36979         (*aarch64_mul3_elt_to_64v2df): Likewise.
36980         (*aarch64_mla_elt<mode>): Likewise.
36981         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
36982         (*aarch64_mls_elt<mode>): Likewise.
36983         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
36984         (*aarch64_fma4_elt<mode>): Likewise.
36985         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
36986         (*aarch64_fma4_elt_to_64v2df): Likewise.
36987         (*aarch64_fnma4_elt<mode>): Likewise.
36988         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
36989         (*aarch64_fnma4_elt_to_64v2df): Likewise.
36990         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
36991         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
36992         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
36993         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
36994         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
36995         (aarch64_sqdmull_lane<mode>_internal): Likewise.
36996         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
36997
36998 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
36999
37000         * config/aarch64/aarch64-simd.md
37001         (aarch64_be_checked_get_lane<mode>): New define_expand.
37002         * config/aarch64/aarch64-simd-builtins.def
37003         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
37004         New builtin definition.
37005         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
37006         Use new safe be builtin.
37007
37008 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
37009
37010         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
37011         New define_insn.
37012         (aarch64_be_st1<mode>): Likewise.
37013         (aarch_ld1<VALL:mode>): Define_expand modified.
37014         (aarch_st1<VALL:mode>): Likewise.
37015         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
37016         (UNSPEC_ST1): Likewise.
37017
37018 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
37019
37020         * config/microblaze/microblaze.md: Add trap insn and attribute
37021
37022 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
37023
37024         PR preprocessor/58580
37025         * input.h (location_get_source_line): Take an additional line_size
37026         parameter.
37027         (void diagnostics_file_cache_fini): Declare new function.
37028         * input.c (struct fcache): New type.
37029         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
37030         New static constants.
37031         (diagnostic_file_cache_init, total_lines_num)
37032         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
37033         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
37034         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
37035         (get_next_line, read_next_line, goto_next_line, read_line_num):
37036         New static function definitions.
37037         (diagnostic_file_cache_fini): New function.
37038         (location_get_source_line): Take an additional output line_len
37039         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
37040         read_line_num.
37041         * diagnostic.c (diagnostic_finish): Call
37042         diagnostic_file_cache_fini.
37043         (adjust_line): Take an additional input parameter for the length
37044         of the line, rather than calculating it with strlen.
37045         (diagnostic_show_locus): Adjust the use of
37046         location_get_source_line and adjust_line with respect to their new
37047         signature.  While displaying a line now, do not stop at the first
37048         null byte.  Rather, display the zero byte as a space and keep
37049         going until we reach the size of the line.
37050         * Makefile.in: Add vec.o to OBJS-libcommon
37051
37052 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
37053             Ilya Tocar  <ilya.tocar@intel.com>
37054
37055         * config/i386/avx512fintrin.h (_mm512_kmov): New.
37056         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
37057         (__builtin_ia32_kmov16): Ditto.
37058         * config/i386/i386.md (UNSPEC_KMOV): New.
37059         (kmovw): Ditto.
37060
37061 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
37062
37063         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
37064         (_mm512_storeu_si512): Ditto.
37065
37066 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
37067
37068         PR target/52125
37069         * rtl.h (get_referenced_operands): Declare.
37070         * recog.c (get_referenced_operands): New function.
37071         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
37072         operands have been referenced when recording LO_SUM references.
37073
37074 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
37075
37076         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
37077
37078 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
37079
37080         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
37081         Enable for generic and recent AMD targets.
37082
37083 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
37084
37085         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
37086         ARG_SIZE note when adjustment was eliminated.
37087
37088 2014-01-22  Jeff Law  <law@redhat.com>
37089
37090         PR tree-optimization/59597
37091         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
37092         in file.  Accept new argument REGISTERING and use it to modify
37093         dump output appropriately.
37094         (register_jump_thread): Corresponding changes.
37095         (mark_threaded_blocks): Reinstate code to cancel unprofitable
37096         thread paths involving joiner blocks.  Add code to dump cancelled
37097         jump threading paths.
37098
37099 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
37100
37101         PR rtl-optimization/59477
37102         * lra-constraints.c (inherit_in_ebb): Process call for living hard
37103         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
37104
37105 2014-01-22  Tom Tromey  <tromey@redhat.com>
37106
37107         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
37108         PARAMS.
37109         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
37110
37111 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
37112
37113         PR rtl-optimization/59896
37114         * lra-constraints.c (process_alt_operands): Check unused note for
37115         matched operands of insn with no output reloads.
37116
37117 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
37118
37119         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
37120         (mips_move_from_gpr_cost): Likewise.
37121
37122 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
37123
37124         PR rtl-optimization/59858
37125         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
37126         ira_class_hard_regs_num.
37127         (process_alt_operands): Increase reject for dying matched operand.
37128
37129 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
37130
37131         PR target/59003
37132         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
37133         smaller than size, perform several stores or loads and stores
37134         at dst + count - size to store or copy all of size bytes, rather
37135         than just last modesize bytes.
37136
37137 2014-01-20  DJ Delorie  <dj@redhat.com>
37138
37139         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
37140         that CLOBBERs are REGs before propogating their values.
37141
37142 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
37143
37144         PR middle-end/59789
37145         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
37146         (cgraph_inline_failed_type): New function.
37147         * cgraph.h (DEFCIFCODE): Add type.
37148         (cgraph_inline_failed_type_t): New enum.
37149         (cgraph_inline_failed_type): New prototype.
37150         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
37151         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37152         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
37153         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
37154         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
37155         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
37156         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
37157         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
37158         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
37159         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
37160         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
37161         OPTIMIZATION_MISMATCH.
37162         * tree-inline.c (expand_call_inline): Emit errors during
37163         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
37164
37165 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
37166
37167         PR target/59685
37168         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
37169         mode attribute in insn output.
37170
37171 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
37172
37173         * output.h (output_constant): Delete.
37174         * varasm.c (output_constant): Make private.
37175
37176 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
37177
37178         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
37179
37180 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
37181
37182         PR middle-end/59860
37183         * tree.h (fold_builtin_strcat): New prototype.
37184         * builtins.c (fold_builtin_strcat): No longer static.  Add len
37185         argument, if non-NULL, don't call c_strlen.  Optimize
37186         directly into __builtin_memcpy instead of __builtin_strcpy.
37187         (fold_builtin_2): Adjust fold_builtin_strcat caller.
37188         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
37189
37190 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
37191
37192         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
37193         for SImode_address_operand operands, having only a REG argument.
37194
37195 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37196
37197         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
37198         loader name using mbig-endian.
37199         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
37200
37201 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
37202
37203         * doc/invoke.texi (-march): Clarify documentation for AArch64.
37204         (-mtune): Likewise.
37205         (-mcpu): Likewise.
37206
37207 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
37208
37209         * config/aarch64/aarch64-protos.h
37210         (aarch64_cannot_change_mode_class_ptr): Declare.
37211         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
37212         aarch64_cannot_change_mode_class_ptr): New.
37213         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
37214         backend hook aarch64_cannot_change_mode_class.
37215
37216 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
37217
37218         * common/config/aarch64/aarch64-common.c
37219         (aarch64_handle_option): Don't handle any option order logic here.
37220         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
37221         selected_cpu, warn on architecture version mismatch.
37222         (aarch64_override_options): Fix parsing order for option strings.
37223
37224 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
37225             Iain Sandoe  <iain@codesourcery.com>
37226
37227         PR bootstrap/59496
37228         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
37229         warning.  Amend comment to reflect current functionality.
37230
37231 2014-01-20  Richard Biener  <rguenther@suse.de>
37232
37233         PR middle-end/59860
37234         * builtins.c (fold_builtin_strcat): Remove case better handled
37235         by tree-ssa-strlen.c.
37236
37237 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
37238
37239         * config/aarch64/aarch64.opt
37240         (mcpu, march, mtune): Make case-insensitive.
37241
37242 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
37243
37244         PR target/59880
37245         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
37246         if operands[1] is a REG or ZERO_EXTEND of a REG.
37247
37248 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
37249
37250         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
37251
37252 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
37253
37254         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
37255         long non-pic millicode calls.
37256
37257 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
37258
37259         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
37260
37261 2014-01-19  Kito Cheng  <kito@0xlab.org>
37262
37263         * builtins.c (expand_movstr): Check movstr expand done or fail.
37264
37265 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
37266             H.J. Lu  <hongjiu.lu@intel.com>
37267
37268         PR target/59379
37269         * config/i386/i386.md (*lea<mode>): Zero-extend return register
37270         to DImode for zero-extended addresses.
37271
37272 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
37273
37274         PR rtl-optimization/57763
37275         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
37276         on the new indirect jump_insn and increment LABEL_NUSES (label).
37277
37278 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
37279
37280         PR bootstrap/59580
37281         PR bootstrap/59583
37282         * config.gcc (x86_archs): New variable.
37283         (x86_64_archs): Likewise.
37284         (x86_cpus): Likewise.
37285         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
37286         --with-arch/--with-cpu= options.
37287         Support --with-arch=/--with-cpu={nehalem,westmere,
37288         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
37289
37290 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
37291
37292         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
37293         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
37294
37295 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
37296
37297         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
37298
37299 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
37300
37301         PR target/58944
37302         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
37303         clear cpp_get_options (parse_in)->warn_unused_macros for
37304         ix86_target_macros_internal with cpp_define.
37305
37306 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
37307
37308         * jump.c (delete_related_insns): Keep (use (insn))s.
37309         * reorg.c (redundant_insn): Check for barriers too.
37310
37311 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
37312
37313         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
37314
37315 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
37316
37317         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
37318         call to $$dyncall when TARGET_LONG_CALLS is true.
37319
37320 2014-01-17  Jeff Law  <law@redhat.com>
37321
37322         * ree.c (combine_set_extension): Temporarily disable test for
37323         changing number of hard registers.
37324
37325 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
37326
37327         PR middle-end/58125
37328         * ipa-inline-analysis.c (inline_free_summary):
37329         Do not free summary of aliases.
37330
37331 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
37332
37333         PR middle-end/59706
37334         * gimplify.c (gimplify_expr): Use create_tmp_var
37335         instead of create_tmp_var_raw.  If cond doesn't have
37336         integral type, don't add the IFN_ANNOTATE builtin at all.
37337
37338 2014-01-17  Martin Jambor  <mjambor@suse.cz>
37339
37340         PR ipa/59736
37341         * ipa-cp.c (prev_edge_clone): New variable.
37342         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
37343         Also resize prev_edge_clone vector.
37344         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
37345         (ipcp_edge_removal_hook): New function.
37346         (ipcp_driver): Register ipcp_edge_removal_hook.
37347
37348 2014-01-17  Andrew Pinski  <apinski@cavium.com>
37349             Steve Ellcey  <sellcey@mips.com>
37350
37351         PR target/59462
37352         * config/mips/mips.c (mips_print_operand): Check operand mode instead
37353         of operator mode.
37354
37355 2014-01-17  Jeff Law  <law@redhat.com>
37356
37357         PR middle-end/57904
37358         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
37359         so that pass_ccp runs first.
37360
37361 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
37362
37363         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
37364         (ix86_adjust_cost): Use !TARGET_XXX.
37365         (do_reorder_for_imul): Likewise.
37366         (swap_top_of_ready_list): Likewise.
37367         (ix86_sched_reorder): Likewise.
37368
37369 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
37370
37371         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
37372         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
37373         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
37374         (intel_memset): New.  Duplicate slm_memset.
37375         (intel_cost): New.  Duplicate slm_cost.
37376         (m_INTEL): New macro.
37377         (processor_target_table): Add "intel".
37378         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
37379         with PROCESSOR_INTEL for "intel".
37380         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
37381         PROCESSOR_SILVERMONT.
37382         (ix86_issue_rate): Likewise.
37383         (ix86_adjust_cost): Likewise.
37384         (ia32_multipass_dfa_lookahead): Likewise.
37385         (swap_top_of_ready_list): Likewise.
37386         (ix86_sched_reorder): Likewise.
37387         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
37388         instead of TARGET_OPT_AGU.
37389         * config/i386/i386.h (TARGET_INTEL): New.
37390         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
37391         (processor_type): Add PROCESSOR_INTEL.
37392         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
37393         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
37394
37395 2014-01-17  Marek Polacek  <polacek@redhat.com>
37396
37397         PR c/58346
37398         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
37399         size is zero.
37400
37401 2014-01-17  Richard Biener  <rguenther@suse.de>
37402
37403         PR tree-optimization/46590
37404         * opts.c (default_options_table): Add entries for
37405         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
37406         all enabled at -O1 but not for -Og.
37407         * common.opt (fbranch-count-reg): Remove Init(1).
37408         (fmove-loop-invariants): Likewise.
37409         (ftree-pta): Likewise.
37410
37411 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
37412
37413         * config/i386/i386.c (ix86_data_alignment): For compatibility with
37414         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
37415         decls to at least the GCC 4.8 used alignments.
37416
37417         PR fortran/59440
37418         * tree-nested.c (convert_nonlocal_reference_stmt,
37419         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
37420         of GIMPLE_BIND stmts, adjust associated decls.
37421
37422 2014-01-17  Richard Biener  <rguenther@suse.de>
37423
37424         PR tree-optimization/46590
37425         * vec.h (vec<>::bseach): New member function implementing
37426         binary search according to C89 bsearch.
37427         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
37428         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
37429         bitmap pointer again.  Make accesses_in_loop a flat array.
37430         (mem_ref_obstack): New global.
37431         (outermost_indep_loop): Adjust for mem_ref->stored changes.
37432         (mark_ref_stored): Likewise.
37433         (ref_indep_loop_p_2): Likewise.
37434         (set_ref_stored_in_loop): New helper function.
37435         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
37436         (memref_free): Adjust.
37437         (record_mem_ref_loc): Simplify.
37438         (gather_mem_refs_stmt): Adjust.
37439         (sort_locs_in_loop_postorder_cmp): New function.
37440         (analyze_memory_references): Sort accesses_in_loop after
37441         loop postorder number.
37442         (find_ref_loc_in_loop_cmp): New function.
37443         (for_all_locs_in_loop): Find relevant cluster of locs in
37444         accesses_in_loop and iterate without recursion.
37445         (execute_sm): Avoid uninit warning.
37446         (struct ref_always_accessed): Simplify.
37447         (ref_always_accessed::operator ()): Likewise.
37448         (ref_always_accessed_p): Likewise.
37449         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
37450         loop postorder numbers here.
37451         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
37452         numbers.
37453
37454 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
37455
37456         PR c++/57945
37457         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
37458         on decls for which assemble_alias has been called.
37459
37460 2014-01-17  Nick Clifton  <nickc@redhat.com>
37461
37462         * config/msp430/msp430.opt: (mcpu): New option.
37463         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
37464         (msp430_option_override): Parse target_cpu.  If the MCU name
37465         matches a generic string, clear target_mcu.
37466         (msp430_attr): Allow numeric interrupt values up to 63.
37467         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
37468         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
37469         option.
37470         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
37471         Add mcpu matches.
37472         * config/msp430/msp430.md (popm): Use %J rather than %I.
37473         (addsi3): Use msp430_nonimmediate_operand for operand 2.
37474         (addhi_cy_i): Use immediate_operand for operand 2.
37475         * doc/invoke.texi: Document -mcpu option.
37476
37477 2014-01-17  Richard Biener  <rguenther@suse.de>
37478
37479         PR rtl-optimization/38518
37480         * df.h (df_analyze_loop): Declare.
37481         * df-core.c: Include cfgloop.h.
37482         (df_analyze_1): Split out main part of df_analyze.
37483         (df_analyze): Adjust.
37484         (loop_inverted_post_order_compute): New function.
37485         (loop_post_order_compute): Likewise.
37486         (df_analyze_loop): New function avoiding whole-function
37487         postorder computes.
37488         * loop-invariant.c (find_defs): Use df_analyze_loop.
37489         (find_invariants): Adjust.
37490         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
37491
37492 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
37493
37494         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
37495         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
37496
37497 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
37498
37499         * ipa-ref.c (ipa_remove_stmt_references): Fix references
37500         traversal when removing references.
37501
37502 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
37503
37504         PR ipa/59775
37505         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
37506
37507 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
37508
37509         PR middle-end/56791
37510         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
37511         pushing a reload for an autoinc when we had previously reloaded an
37512         inner part of the address.
37513
37514 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
37515
37516         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
37517         field.
37518         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
37519         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
37520         when not giving up or versioning for alias only because of
37521         loop->safelen.
37522         (vect_analyze_data_ref_dependences): Set to true.
37523         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
37524         is a GIMPLE_PHI.
37525         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
37526         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
37527         to the condition.
37528
37529         PR middle-end/58344
37530         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
37531
37532         PR target/59839
37533         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
37534         operand 0 predicate for gathers, use a new pseudo as subtarget.
37535
37536 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
37537
37538         PR middle-end/59609
37539         * lra-constraints.c (process_alt_operands): Add printing debug info.
37540         Check absence of input/output reloads for matched operands too.
37541
37542 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
37543
37544         PR rtl-optimization/59835
37545         * ira.c (ira_init_register_move_cost): Increase cost for
37546         impossible modes.
37547
37548 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
37549
37550         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
37551
37552 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
37553
37554         PR target/59780
37555         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
37556         non-register objects.  Use gen_(high/low)part more consistently.
37557         Fix assertions.
37558
37559 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
37560
37561         PR target/59844
37562         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
37563         endian support, remove tests for WORDS_BIG_ENDIAN.
37564         (p8_mfvsrd_3_<mode>): Likewise.
37565         (reload_gpr_from_vsx<mode>): Likewise.
37566         (reload_gpr_from_vsxsf): Likewise.
37567         (p8_mfvsrd_4_disf): Likewise.
37568
37569 2014-01-16  Richard Biener  <rguenther@suse.de>
37570
37571         PR rtl-optimization/46590
37572         * lcm.c (compute_antinout_edge): Use postorder iteration.
37573         (compute_laterin): Use inverted postorder iteration.
37574
37575 2014-01-16  Nick Clifton  <nickc@redhat.com>
37576
37577         PR middle-end/28865
37578         * varasm.c (output_constant): Return the number of bytes actually
37579         emitted.
37580         (output_constructor_array_range): Update the field size with the
37581         number of bytes emitted by output_constant.
37582         (output_constructor_regular_field): Likewise.  Also do not
37583         complain if the total number of bytes emitted is now greater
37584         than the expected fieldpos.
37585         * output.h (output_constant): Update prototype and descriptive comment.
37586
37587 2014-01-16  Marek Polacek  <polacek@redhat.com>
37588
37589         PR middle-end/59827
37590         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
37591         it is error_mark_node.
37592
37593 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
37594
37595         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
37596         VALID_AVX256_REG_OR_OI_MODE.
37597
37598 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
37599
37600         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
37601         current procedure should be profiled.
37602
37603 2014-01-15  Andrew Pinski  <apinski@cavium.com>
37604
37605         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
37606         of moving from/to the STACK_REG register class.
37607
37608 2014-01-15  Richard Henderson  <rth@redhat.com>
37609
37610         PR debug/54694
37611         * reginfo.c (global_regs_decl): Globalize.
37612         * rtl.h (global_regs_decl): Declare.
37613         * ira.c (do_reload): Diagnose frame_pointer_needed and it
37614         reserved via global_regs.
37615
37616 2014-01-15  Teresa Johnson  <tejohnson@google.com>
37617
37618         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
37619
37620 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
37621
37622         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
37623         and vmulosh rather than call gen_vec_widen_smult_*.
37624         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
37625         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
37626         (vec_widen_smult_even_v16qi): Likewise.
37627         (vec_widen_umult_even_v8hi): Likewise.
37628         (vec_widen_smult_even_v8hi): Likewise.
37629         (vec_widen_umult_odd_v16qi): Likewise.
37630         (vec_widen_smult_odd_v16qi): Likewise.
37631         (vec_widen_umult_odd_v8hi): Likewise.
37632         (vec_widen_smult_odd_v8hi): Likewise.
37633         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
37634         vmuloub rather than call gen_vec_widen_umult_*.
37635         (vec_widen_umult_lo_v16qi): Likewise.
37636         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
37637         vmulosb rather than call gen_vec_widen_smult_*.
37638         (vec_widen_smult_lo_v16qi): Likewise.
37639         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
37640         rather than call gen_vec_widen_umult_*.
37641         (vec_widen_umult_lo_v8hi): Likewise.
37642         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
37643         rather than call gen_vec_widen_smult_*.
37644         (vec_widen_smult_lo_v8hi): Likewise.
37645
37646 2014-01-15  Jeff Law  <law@redhat.com>
37647
37648         PR tree-optimization/59747
37649         * ree.c (find_and_remove_re): Properly handle case where a second
37650         eliminated extension requires widening a copy created for elimination
37651         of a prior extension.
37652         (combine_set_extension): Ensure that the number of hard regs needed
37653         for a destination register does not change when we widen it.
37654
37655 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37656
37657         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
37658         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
37659         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
37660         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
37661         (avr-*-rtems*): Likewise.
37662         (bfin*-rtems*): Likewise.
37663         (moxie-*-rtems*): Likewise.
37664         (h8300-*-rtems*): Likewise.
37665         (i[34567]86-*-rtems*): Likewise.
37666         (lm32-*-rtems*): Likewise.
37667         (m32r-*-rtems*): Likewise.
37668         (m68k-*-rtems*): Likewise.
37669         (microblaze*-*-rtems*): Likewise.
37670         (mips*-*-rtems*): Likewise.
37671         (powerpc-*-rtems*): Likewise.
37672         (sh-*-rtems*): Likewise.
37673         (sparc-*-rtems*): Likewise.
37674         (sparc64-*-rtems*): Likewise.
37675         (v850-*-rtems*): Likewise.
37676         (m32c-*-rtems*): Likewise.
37677
37678 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
37679
37680         PR rtl-optimization/59511
37681         * ira.c (ira_init_register_move_cost): Use memory costs for some
37682         cases of register move cost calculations.
37683         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
37684         instead of BB frequency.
37685         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
37686         * lra-assigns.c (find_hard_regno_for): Ditto.
37687
37688 2014-01-15  Richard Biener  <rguenther@suse.de>
37689
37690         PR tree-optimization/59822
37691         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
37692         (vectorizable_load): Use it to hoist defs of uses of invariant
37693         loads out of the loop.
37694
37695 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
37696             Kugan Vivekanandarajah  <kuganv@linaro.org>
37697
37698         PR target/59695
37699         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
37700         truncation.
37701
37702 2014-01-15  Richard Biener  <rguenther@suse.de>
37703
37704         PR rtl-optimization/59802
37705         * lcm.c (compute_available): Use inverted postorder to seed
37706         the initial worklist.
37707
37708 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37709
37710         PR target/59803
37711         * config/s390/s390.c (s390_preferred_reload_class): Don't return
37712         ADDR_REGS for invalid symrefs in non-PIC code.
37713
37714 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
37715
37716         PR other/58712
37717         * builtins.c (determine_block_size): Initialize *probable_max_size
37718         even if len_rtx is CONST_INT.
37719
37720 2014-01-14  Andrew Pinski  <apinski@cavium.com>
37721
37722         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
37723         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
37724         (cortexa53_tunings): Likewise.
37725         (aarch64_sched_issue_rate): New function.
37726         (TARGET_SCHED_ISSUE_RATE): Define.
37727
37728 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
37729
37730         * ira-costs.c (find_costs_and_classes): Add missed
37731         ira_init_register_move_cost_if_necessary.
37732
37733 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
37734
37735         PR target/59787
37736         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
37737
37738 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
37739
37740         PR target/59794
37741         * config/i386/i386.c (type_natural_mode): Add a bool parameter
37742         to indicate if type is used for function return value.  Warn ABI
37743         change if the vector mode isn't available for function return value.
37744         (ix86_function_arg_advance): Pass false to type_natural_mode.
37745         (ix86_function_arg): Likewise.
37746         (ix86_gimplify_va_arg): Likewise.
37747         (function_arg_32): Don't warn ABI change.
37748         (ix86_function_value): Pass true to type_natural_mode.
37749         (ix86_return_in_memory): Likewise.
37750         (ix86_struct_value_rtx): Removed.
37751         (TARGET_STRUCT_VALUE_RTX): Likewise.
37752
37753 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
37754
37755         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
37756         converting a conditional jump into a conditional return.
37757
37758 2014-01-14  Richard Biener  <rguenther@suse.de>
37759
37760         PR tree-optimization/58921
37761         PR tree-optimization/59006
37762         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
37763         hoisting invariant stmts.
37764         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
37765         invariant loads on the preheader edge if possible.
37766
37767 2014-01-14  Joey Ye  <joey.ye@arm.com>
37768
37769         * doc/plugin.texi (Building GCC plugins): Update to C++.
37770
37771 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
37772
37773         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
37774         (_mm_rcp28_round_ss): Ditto.
37775         (_mm_rsqrt28_round_sd): Ditto.
37776         (_mm_rsqrt28_round_ss): Ditto.
37777         (_mm_rcp28_sd): Ditto.
37778         (_mm_rcp28_ss): Ditto.
37779         (_mm_rsqrt28_sd): Ditto.
37780         (_mm_rsqrt28_ss): Ditto.
37781         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
37782         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
37783         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
37784         (IX86_BUILTIN_RCP28SD): Ditto.
37785         (IX86_BUILTIN_RCP28SS): Ditto.
37786         (IX86_BUILTIN_RSQRT28SD): Ditto.
37787         (IX86_BUILTIN_RSQRT28SS): Ditto.
37788         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
37789         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
37790         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
37791         (ix86_expand_special_args_builtin): Expand new FTYPE.
37792         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
37793         (srcp14<mode>): Make insn unary.
37794         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
37795         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
37796         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
37797         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
37798         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
37799         Fix rounding: make it SAE only.
37800         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
37801         Ditto.
37802         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
37803         Ditto.
37804         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
37805         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
37806         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
37807         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
37808         (round_saeonly_mask_scalar_operand4): Ditto.
37809         (round_saeonly_mask_scalar_op3): Ditto.
37810         (round_saeonly_mask_scalar_op4): Ditto.
37811
37812 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37813
37814         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
37815         Implement -maltivec=be for vec_insert and vec_extract.
37816
37817 2014-01-10  DJ Delorie  <dj@redhat.com>
37818
37819         * config/msp430/msp430.md (call_internal): Don't allow memory
37820         references with SP as the base register.
37821         (call_value_internal): Likewise.
37822         * config/msp430/constraints.md (Yc): New.  For memory references
37823         that don't use SP as a base register.
37824
37825         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
37826         "an integer without a # prefix"
37827         * config/msp430/msp430.md (epilogue_helper): Use it.
37828
37829 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
37830
37831         PR target/59617
37832         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
37833         AVX512F gather builtins.
37834         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
37835         on gather decls with INTEGER_TYPE masktype.
37836         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
37837         directly into the builtin rather than hoisting it before loop.
37838
37839         PR tree-optimization/59387
37840         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
37841         (scev_const_prop): If folded_casts and type has undefined overflow,
37842         use force_gimple_operand instead of force_gimple_operand_gsi and
37843         for each added stmt if it is assign with
37844         arith_code_with_undefined_signed_overflow, call
37845         rewrite_to_defined_overflow.
37846         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
37847         gimple-fold.h instead.
37848         (arith_code_with_undefined_signed_overflow,
37849         rewrite_to_defined_overflow): Moved to ...
37850         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
37851         rewrite_to_defined_overflow): ... here.  No longer static.
37852         Include gimplify-me.h.
37853         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
37854         rewrite_to_defined_overflow): New prototypes.
37855
37856 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37857
37858         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
37859
37860 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
37861
37862         * builtins.c (get_object_alignment_2): Minor tweak.
37863         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
37864
37865 2014-01-13  Christian Bruel  <christian.bruel@st.com>
37866
37867         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
37868         optimized non constant lengths.
37869
37870 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
37871
37872         PR libgomp/59194
37873         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
37874         load as __atomic_load_N if possible.
37875
37876 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
37877
37878         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
37879         target parameter.
37880         (rs6000_expand_builtin): Adjust call.
37881
37882 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
37883
37884         PR target/58115
37885         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
37886         * config/rs6000/rs6000.c: Include target-globals.h.
37887         (rs6000_set_current_function): Instead of doing target_reinit
37888         unconditionally, use save_target_globals_default_opts and
37889         restore_target_globals.
37890
37891         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
37892         FPSCR.
37893         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
37894         (rs6000_expand_builtin): Handle mffs and mtfsf.
37895         (rs6000_init_builtins): Define mffs and mtfsf.
37896         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
37897         (rs6000_mffs): New pattern.
37898         (rs6000_mtfsf): New pattern.
37899
37900 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
37901
37902         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
37903         Start narrowing with START.  Apply candidate-use pair
37904         and check overall cost in narrowing.
37905         (iv_ca_prune): Pass new argument.
37906
37907 2014-01-10  Jeff Law  <law@redhat.com>
37908
37909         PR middle-end/59743
37910         * ree.c (combine_reaching_defs): Ensure the defining statement
37911         occurs before the extension when optimizing extensions with
37912         different source and destination hard registers.
37913
37914 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
37915
37916         PR ipa/58585
37917         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
37918         vtables into the type inheritance graph.
37919
37920 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
37921
37922         PR rtl-optimization/59754
37923         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
37924         modes in the REGNO != REGNO case.
37925
37926 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37927
37928         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
37929
37930 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
37931
37932         PR tree-optimization/59745
37933         * tree-predcom.c (tree_predictive_commoning_loop): Call
37934         free_affine_expand_cache if giving up because components is NULL.
37935
37936         * target-globals.c (save_target_globals): Allocate < 4KB structs using
37937         GC in payload of target_globals struct instead of allocating them on
37938         the heap and the larger structs separately using GC.
37939         * target-globals.h (struct target_globals): Make regs, hard_regs,
37940         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
37941         of GTY((skip)) and change type to void *.
37942         (reset_target_globals): Cast loads from those fields to corresponding
37943         types.
37944
37945 2014-01-10  Steve Ellcey  <sellcey@mips.com>
37946
37947         PR plugins/59335
37948         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
37949         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
37950         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
37951
37952 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
37953
37954         PR target/59744
37955         * aarch64-modes.def (CC_Zmode): New flags mode.
37956         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
37957         represents an equality.
37958         (aarch64_get_condition_code): Handle CC_Zmode.
37959         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
37960
37961 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37962
37963         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
37964         extraction in good case.
37965
37966 2014-01-10  Richard Biener  <rguenther@suse.de>
37967
37968         PR tree-optimization/59374
37969         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
37970         checking after SLP discovery.  Mark stmts not participating
37971         in any SLP instance properly.
37972
37973 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37974
37975         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
37976         when handling a SET rtx.
37977
37978 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37979
37980         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
37981         (cortex-a57): Likewise.
37982         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
37983
37984 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37985
37986         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
37987         non-iwmmxt builtins.
37988
37989 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
37990
37991         PR ipa/58252
37992         PR ipa/59226
37993         * ipa-devirt.c record_target_from_binfo): Take as argument
37994         stack of binfos and lookup matching one for virtual inheritance.
37995         (possible_polymorphic_call_targets_1): Update.
37996
37997 2014-01-10  Huacai Chen  <chenhc@lemote.com>
37998
37999         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
38000         kernel strings for Loongson-2E/2F/3A.
38001
38002 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
38003
38004         PR middle-end/59670
38005         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
38006         is_gimple_call before calling gimple_call_internal_p.
38007
38008 2014-01-09  Steve Ellcey  <sellcey@mips.com>
38009
38010         * Makefile.in (TREE_FLOW_H): Remove.
38011         (TREE_SSA_H): Add file names from tree-flow.h.
38012         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
38013         * tree.h: Remove tree-flow.h reference.
38014         * hash-table.h: Remove tree-flow.h reference.
38015         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
38016         reference with tree-ssa-loop.h.
38017
38018 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38019
38020         * doc/invoke.texi: Add -maltivec={be,le} options, and document
38021         default element-order behavior for -maltivec.
38022         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
38023         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
38024         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
38025         when targeting big endian, at least for now.
38026         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
38027
38028 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
38029
38030         PR middle-end/47735
38031         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
38032         var satisfies use_register_for_decl, just take into account type
38033         alignment, rather than decl alignment.
38034
38035         PR tree-optimization/59622
38036         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
38037         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
38038         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
38039         Don't devirtualize for inplace at all.  For targets.length () == 1,
38040         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
38041
38042 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
38043
38044         * config/i386/i386.md (cpu): Remove the unused btver1.
38045
38046 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
38047
38048         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
38049
38050 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
38051
38052         PR target/58115
38053         * tree-core.h (struct target_globals): New forward declaration.
38054         (struct tree_target_option): Add globals field.
38055         * tree.h (TREE_TARGET_GLOBALS): Define.
38056         (prepare_target_option_nodes_for_pch): New prototype.
38057         * target-globals.h (struct target_globals): Define even if
38058         !SWITCHABLE_TARGET.
38059         * tree.c (prepare_target_option_node_for_pch,
38060         prepare_target_option_nodes_for_pch): New functions.
38061         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
38062         * config/i386/i386.c: Include target-globals.h.
38063         (ix86_set_current_function): Instead of doing target_reinit
38064         unconditionally, use save_target_globals_default_opts and
38065         restore_target_globals.
38066
38067 2014-01-09  Richard Biener  <rguenther@suse.de>
38068
38069         PR tree-optimization/59715
38070         * tree-cfg.h (split_critical_edges): Declare.
38071         * tree-cfg.c (split_critical_edges): Export.
38072         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
38073
38074 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
38075
38076         * cfgexpand.c (expand_stack_vars): Optionally disable
38077         asan stack protection.
38078         (expand_used_vars): Likewise.
38079         (partition_stack_vars): Likewise.
38080         * asan.c (asan_emit_stack_protection): Optionally disable
38081         after return stack usage.
38082         (instrument_derefs): Optionally disable memory access instrumentation.
38083         (instrument_builtin_call): Likewise.
38084         (instrument_strlen_call): Likewise.
38085         (asan_protect_global): Optionally disable global variables protection.
38086         * doc/invoke.texi: Added doc for new options.
38087         * params.def: Added new options.
38088         * params.h: Likewise.
38089
38090 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
38091
38092         PR rtl-optimization/59724
38093         * ifcvt.c (cond_exec_process_if_block): Don't call
38094         flow_find_head_matching_sequence with 0 longest_match.
38095         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
38096         non-active insns if !stop_after.
38097         (try_head_merge_bb): Revert 2014-01-07 changes.
38098
38099 2014-01-08  Jeff Law  <law@redhat.com>
38100
38101         * ree.c (get_sub_rtx): New function, extracted from...
38102         (merge_def_and_ext): Here.
38103         (combine_reaching_defs): Use get_sub_rtx.
38104
38105 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
38106
38107         * cgraph.h (varpool_variable_node): Do not choke on null node.
38108
38109 2014-01-08  Catherine Moore  <clm@codesourcery.com>
38110
38111         * config/mips/mips.md (simple_return): Attempt to use JRC
38112         for microMIPS.
38113         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
38114
38115 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
38116
38117         PR rtl-optimization/59137
38118         * reorg.c (steal_delay_list_from_target): Call update_block for
38119         elided insns.
38120         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
38121
38122 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38123
38124         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
38125         two duplicate entries.
38126
38127 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
38128
38129         Revert:
38130         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
38131
38132         * config/mips/mips.c (mips_truncated_op_cost): New function.
38133         (mips_rtx_costs): Adjust test for BADDU.
38134         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
38135
38136         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
38137
38138         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
38139         (*baddu_si): ...this new pattern.
38140
38141 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
38142
38143         PR ipa/59722
38144         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
38145
38146 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38147
38148         PR middle-end/57748
38149         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
38150         inner_reference_p.
38151         (expand_expr, expand_normal): Adjust.
38152         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
38153         inner_reference_p. Use inner_reference_p to expand inner references.
38154         (store_expr): Adjust.
38155         * cfgexpand.c (expand_call_stmt): Adjust.
38156
38157 2014-01-08  Rong Xu  <xur@google.com>
38158
38159         * gcov-io.c (gcov_var): Move from gcov-io.h.
38160         (gcov_position): Ditto.
38161         (gcov_is_error): Ditto.
38162         (gcov_rewrite): Ditto.
38163         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
38164         only part to libgcc/libgcov.h.
38165
38166 2014-01-08  Marek Polacek  <polacek@redhat.com>
38167
38168         PR middle-end/59669
38169         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
38170
38171 2014-01-08  Marek Polacek  <polacek@redhat.com>
38172
38173         PR sanitizer/59667
38174         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
38175
38176 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
38177
38178         PR rtl-optimization/59649
38179         * stor-layout.c (get_mode_bounds): For BImode return
38180         0 and STORE_FLAG_VALUE.
38181
38182 2014-01-08  Richard Biener  <rguenther@suse.de>
38183
38184         PR middle-end/59630
38185         * gimple.h (is_gimple_builtin_call): Remove.
38186         (gimple_builtin_call_types_compatible_p): New.
38187         (gimple_call_builtin_p): New overload.
38188         * gimple.c (is_gimple_builtin_call): Remove.
38189         (validate_call): Rename to ...
38190         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
38191         check return types.
38192         (validate_type): New static function.
38193         (gimple_call_builtin_p): New overload and adjust.
38194         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
38195         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
38196         (gimple_fold_stmt_to_constant_1): Likewise.
38197         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
38198
38199 2014-01-08  Richard Biener  <rguenther@suse.de>
38200
38201         PR middle-end/59471
38202         * gimplify.c (gimplify_expr): Gimplify register-register type
38203         VIEW_CONVERT_EXPRs to separate stmts.
38204
38205 2014-01-07  Jeff Law  <law@redhat.com>
38206
38207         PR middle-end/53623
38208         * ree.c (combine_set_extension): Handle case where source
38209         and destination registers in an extension insn are different.
38210         (combine_reaching_defs): Allow source and destination registers
38211         in extension to be different under limited circumstances.
38212         (add_removable_extension): Remove restriction that the
38213         source and destination registers in the extension are the same.
38214         (find_and_remove_re): Emit a copy from the extension's
38215         destination to its source after the defining insn if
38216         the source and destination registers are different.
38217
38218         PR middle-end/59285
38219         * ifcvt.c (merge_if_block): If we are merging a block with more than
38220         one successor with a block with no successors, remove any BARRIER
38221         after the second block.
38222
38223 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
38224
38225         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
38226
38227 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
38228
38229         PR target/59652
38230         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
38231         for 14-bit register offsets when INT14_OK_STRICT is false.
38232
38233 2014-01-07  Roland Stigge  <stigge@antcom.de>
38234             Michael Meissner  <meissner@linux.vnet.ibm.com>
38235
38236         PR 57386/target
38237         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
38238         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
38239
38240 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
38241
38242         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
38243         -mcpu.
38244
38245 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
38246
38247         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
38248         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
38249         rtx is const0_rtx or not.
38250
38251 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
38252
38253         PR target/58115
38254         * target-globals.c (save_target_globals): Remove this_fn_optab
38255         handling.
38256         * toplev.c: Include optabs.h.
38257         (target_reinit): Temporarily restore the global options if another
38258         set of options are in force.
38259
38260 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
38261
38262         PR rtl-optimization/58668
38263         * cfgcleanup.c (flow_find_cross_jump): Don't count
38264         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
38265         to determine what is counted.
38266         (flow_find_head_matching_sequence): Use active_insn_p to determine
38267         what is counted.
38268         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
38269         counting change.
38270         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
38271         determine what is counted.
38272
38273         PR tree-optimization/59643
38274         * tree-predcom.c (split_data_refs_to_components): If one dr is
38275         read and one write, determine_offset fails and the write isn't
38276         in the bad component, just put the read into the bad component.
38277
38278 2014-01-07  Mike Stump  <mikestump@comcast.net>
38279             Jakub Jelinek  <jakub@redhat.com>
38280
38281         PR pch/59436
38282         * tree-core.h (struct tree_optimization_option): Change optabs
38283         type from unsigned char * to void *.
38284         * optabs.c (init_tree_optimization_optabs): Adjust
38285         TREE_OPTIMIZATION_OPTABS initialization.
38286
38287 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
38288
38289         PR target/59644
38290         * config/i386/i386.h (struct machine_function): Add
38291         no_drap_save_restore field.
38292         * config/i386/i386.c (ix86_save_reg): Use
38293         !cfun->machine->no_drap_save_restore instead of
38294         crtl->stack_realign_needed.
38295         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
38296         this function clears frame_pointer_needed.  Set
38297         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
38298         and DRAP reg is needed.
38299
38300 2014-01-06  Marek Polacek  <polacek@redhat.com>
38301
38302         PR c/57773
38303         * doc/implement-c.texi: Mention that other integer types are
38304         permitted as bit-field types in strictly conforming mode.
38305
38306 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
38307
38308         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
38309         is newly allocated.
38310
38311 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
38312
38313         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
38314
38315 2014-01-06  Martin Jambor  <mjambor@suse.cz>
38316
38317         PR ipa/59008
38318         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
38319         to int.
38320         * ipa-prop.c (ipa_print_node_params): Fix indentation.
38321
38322 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
38323
38324         PR debug/59350
38325         PR debug/59510
38326         * var-tracking.c (add_stores): Preserve the value of the source even if
38327         we don't record the store.
38328
38329 2014-01-06  Terry Guo  <terry.guo@arm.com>
38330
38331         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
38332
38333 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
38334
38335         PR bootstrap/59541
38336         * config/darwin.c (darwin_function_section): Adjust return values to
38337         correspond to optimisation changes made in r206070.
38338
38339 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
38340
38341         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
38342         from prefetch_block tune setting.
38343         (nocona_cost): Correct size of prefetch block to 64.
38344
38345 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
38346
38347         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
38348         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
38349         used to save the static chain register in the computation of the offset
38350         from which the FP registers need to be restored.
38351
38352 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
38353
38354         PR tree-optimization/59519
38355         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
38356         ICE if get_current_def (current_new_name) is already non-NULL, as long
38357         as it is a phi result of some other phi in *new_exit_bb that has
38358         the same argument.
38359
38360         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
38361         or vmovdqu* for misaligned_operand.
38362         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
38363         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
38364         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
38365         aligned_mem for AVX512F masked aligned load and store builtins and for
38366         non-temporal moves.
38367
38368 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
38369
38370         PR tree-optimization/59651
38371         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
38372         Address range for negative step should be added by TYPE_SIZE_UNIT.
38373
38374 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
38375
38376         * config/m68k/m68k.c (handle_move_double): Handle pushes with
38377         overlapping registers also for registers other than the stack pointer.
38378
38379 2014-01-03  Marek Polacek  <polacek@redhat.com>
38380
38381         PR other/59661
38382         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
38383         __builtin_FILE.
38384
38385 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
38386
38387         PR target/59625
38388         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
38389         asm goto as jump.
38390
38391         * config/i386/i386.md (MODE_SIZE): New mode attribute.
38392         (push splitter): Use <P:MODE_SIZE> instead of
38393         GET_MODE_SIZE (<P:MODE>mode).
38394         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
38395         (mov -1, reg peephole2): Likewise.
38396         * config/i386/sse.md (*mov<mode>_internal,
38397         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
38398         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
38399         *<code><mode>3, *andnot<mode>3<mask_name>,
38400         <mask_codefor><code><mode>3<mask_name>): Likewise.
38401         * config/i386/subst.md (mask_mode512bit_condition,
38402         sd_mask_mode512bit_condition): Likewise.
38403
38404 2014-01-02  Xinliang David Li  <davidxl@google.com>
38405
38406         PR tree-optimization/59303
38407         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
38408         (dump_predicates): Better output format.
38409         (pred_equal_p): New function.
38410         (is_neq_relop_p): Ditto.
38411         (is_neq_zero_form_p): Ditto.
38412         (pred_expr_equal_p): Ditto.
38413         (pred_neg_p): Ditto.
38414         (simplify_pred): Ditto.
38415         (simplify_preds_2): Ditto.
38416         (simplify_preds_3): Ditto.
38417         (simplify_preds_4): Ditto.
38418         (simplify_preds): Ditto.
38419         (push_pred): Ditto.
38420         (push_to_worklist): Ditto.
38421         (get_pred_info_from_cmp): Ditto.
38422         (is_degenerated_phi): Ditto.
38423         (normalize_one_pred_1): Ditto.
38424         (normalize_one_pred): Ditto.
38425         (normalize_one_pred_chain): Ditto.
38426         (normalize_preds): Ditto.
38427         (normalize_cond_1): Remove function.
38428         (normalize_cond): Ditto.
38429         (is_gcond_subset_of): Ditto.
38430         (is_subset_of_any): Ditto.
38431         (is_or_set_subset_of): Ditto.
38432         (is_and_set_subset_of): Ditto.
38433         (is_norm_cond_subset_of): Ditto.
38434         (pred_chain_length_cmp): Ditto.
38435         (convert_control_dep_chain_into_preds): Type change.
38436         (find_predicates): Ditto.
38437         (find_def_preds): Ditto.
38438         (destroy_predicates_vecs): Ditto.
38439         (find_matching_predicates_in_rest_chains): Ditto.
38440         (use_pred_not_overlap_with_undef_path_pred): Ditto.
38441         (is_pred_expr_subset): Ditto.
38442         (is_pred_chain_subset_of): Ditto.
38443         (is_included_in): Ditto.
38444         (is_superset_of): Ditto.
38445
38446 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
38447
38448         Update copyright years.
38449
38450 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
38451
38452         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
38453         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
38454         config/arc/arc.md, config/arc/arc.opt,
38455         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
38456         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
38457         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
38458         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
38459         config/linux-protos.h, config/linux.c, config/winnt-c.c,
38460         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
38461         vtable-verify.c, vtable-verify.h: Use the standard form for the
38462         copyright notice.
38463
38464 2014-01-02  Tobias Burnus  <burnus@net-b.de>
38465
38466         * gcc.c (process_command): Update copyright notice dates.
38467         * gcov-dump.c: Ditto.
38468         * gcov.c: Ditto.
38469         * doc/cpp.texi: Bump @copying's copyright year.
38470         * doc/cppinternals.texi: Ditto.
38471         * doc/gcc.texi: Ditto.
38472         * doc/gccint.texi: Ditto.
38473         * doc/gcov.texi: Ditto.
38474         * doc/install.texi: Ditto.
38475         * doc/invoke.texi: Ditto.
38476
38477 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38478
38479         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
38480
38481 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
38482
38483         * config/i386/sse.md (*mov<mode>_internal): Guard
38484         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
38485
38486         PR rtl-optimization/59647
38487         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
38488         new_rtx into UNSIGNED_FLOAT rtxes.
38489 \f
38490 Copyright (C) 2014 Free Software Foundation, Inc.
38491
38492 Copying and distribution of this file, with or without modification,
38493 are permitted in any medium without royalty provided the copyright
38494 notice and this notice are preserved.