re PR c++/58678 (pykde4-4.11.2 link error (devirtualization too trigger happy))
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-09-11  Jason Merrill  <jason@redhat.com>
2
3         PR c++/58678
4         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5
6 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
7
8         PR target/63223
9         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
10         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
11         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
12
13 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15             Anna Tikhonova  <anna.tikhonova@intel.com>
16             Ilya Tocar  <ilya.tocar@intel.com>
17             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18             Ilya Verbin  <ilya.verbin@intel.com>
19             Kirill Yukhin  <kirill.yukhin@intel.com>
20             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
21
22         * config/i386/sse.md
23         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
24         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
25         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
26         New.
27         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
28         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
29         iterator.
30         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
31         New.
32         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
33         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
34         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
35         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
36         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
37         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
38         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
39         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
40         iterator.
41         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
42         New.
43         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
44         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
45         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
46
47 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
48
49         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
50         to access removed nodes.
51
52 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
53
54         PR tree-optimization/63186
55         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
56         (mark_nonssa_use): Likewise.
57         (verify_non_ssa_vars): Verify all header blocks for label
58         definitions.
59
60 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
61             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
62             Anna Tikhonova  <anna.tikhonova@intel.com>
63             Ilya Tocar  <ilya.tocar@intel.com>
64             Andrey Turetskiy  <andrey.turetskiy@intel.com>
65             Ilya Verbin  <ilya.verbin@intel.com>
66             Kirill Yukhin  <kirill.yukhin@intel.com>
67             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
68
69         * config/i386/sse.md
70         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
71         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
72         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
73         "<avx2_avx512f>_permvar<mode><mask_name>".
74         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
75         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
76         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
77         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
78         Ditto.
79         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
80         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
81         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
82         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
83
84 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
85
86         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
87         V2DF, V4SF, DF, and DI modes.
88         (vsx_fmav2df2): Likewise.
89         (vsx_float_fix_<mode>2): Likewise.
90         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
91
92 2014-09-10  Xinliang David Li  <davidxl@google.com>
93
94         PR target/63209
95         * config/arm/arm.md (movcond_addsi): Handle case where source
96         and target operands are the same.
97
98 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
99
100         * final.c (this_is_asm_operands): Strengthen this variable from
101         rtx to const rtx_insn *.
102         * output.h (this_is_asm_operands): Likewise.
103         * rtl-error.c (location_for_asm): Strengthen param "insn" from
104         const_rtx to const rtx_insn *.
105         (diagnostic_for_asm): Likewise.
106         * rtl-error.h (error_for_asm): Likewise.
107         (warning_for_asm): Likewise.
108
109 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
110
111         * genextract.c (print_header): When writing out insn_extract to
112         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
113         * recog.h (insn_extract): Strengthen the param from rtx to
114         rtx_insn *.
115
116 2014-09-10  Mike Stump  <mikestump@comcast.net>
117
118         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
119         8.6.1.
120
121 2014-09-10  Martin Jambor  <mjambor@suse.cz>
122
123         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
124         (analyze): Do not set analyze flag if expand_thunk returns false;.
125         (create_wrapper): Likewise.
126         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
127
128 2014-09-10  Martin Jambor  <mjambor@suse.cz>
129
130         PR ipa/61654
131         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
132         new decl properly.  Analyze the new thunk if it is expanded.
133
134 2014-09-10  Andreas Schwab  <schwab@suse.de>
135
136         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
137         [USED_FOR_TARGET]: Define.
138
139 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
140
141         * config/mips/mips.c (mips_secondary_reload_class): Handle
142         regno < 0 case.
143
144 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
145
146         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
147         assignment.
148
149 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
150
151         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
152         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
153         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
154         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
155         flag_delete_null_pointer_checks for them.
156         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
157         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
158         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
159         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
160         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
161         stmt's iterator.
162         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
163         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
164         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
165         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
166         * doc/invoke.texi (-fsanitize=nonnull-attribute,
167         -fsanitize=returns-nonnull-attribute): Document.
168
169         * ubsan.h (struct ubsan_mismatch_data): Removed.
170         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
171         * ubsan.c (ubsan_source_location): For unknown locations,
172         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
173         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
174         Allow more than one location and arbitrary extra arguments passed
175         in ... instead of through MISMATCH pointer.
176         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
177         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
178         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
179         callers.
180
181 2014-09-10  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/sse.md
191         (define_mode_iterator VI48F): New.
192         (define_insn "<avx512>_compress<mode>_mask"): Rename from
193         "avx512f_compress<mode>_mask" and update mode iterator.
194         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
195         "avx512f_compressstore<mode>_mask" and update mode iterator.
196         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
197         "avx512f_expand<mode>_maskz" and update mode iterator.
198         (define_insn "<avx512>_expand<mode>_mask"): Rename from
199         "avx512f_expand<mode>_mask" and update mode iterator.
200
201 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
202             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
203             Anna Tikhonova  <anna.tikhonova@intel.com>
204             Ilya Tocar  <ilya.tocar@intel.com>
205             Andrey Turetskiy  <andrey.turetskiy@intel.com>
206             Ilya Verbin  <ilya.verbin@intel.com>
207             Kirill Yukhin  <kirill.yukhin@intel.com>
208             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
209
210         * config/i386/i386.c
211         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
212         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
213         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
214         avx512dq_rangepv4sf_mask.
215         * config/i386/sse.md
216         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
217         UNSPEC_RANGE.
218         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
219         (define_insn "reduces<mode>"): Ditto.
220         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
221         Ditto.
222         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
223         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
224         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
225
226 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
227             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
228             Anna Tikhonova  <anna.tikhonova@intel.com>
229             Ilya Tocar  <ilya.tocar@intel.com>
230             Andrey Turetskiy  <andrey.turetskiy@intel.com>
231             Ilya Verbin  <ilya.verbin@intel.com>
232             Kirill Yukhin  <kirill.yukhin@intel.com>
233             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
234
235         * config/i386/i386.c
236         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
237         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
238         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
239         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
240         avx512vl_getmantv2df_mask.
241         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
242         avx512f_vgetmantv4sf_round.
243         * config/i386/sse.md
244         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
245         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
246         mode iterator.
247         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
248         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
249         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
250         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
251         iterator..
252         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
253         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
254         update mode iterator.
255         (define_expand
256         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
257         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
258         mode iterator.
259         (define_insn
260         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
261         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
262         update mode iterator.
263         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
264         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
265         iterator..
266         (define_insn
267         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
268         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
269         mode iterator..
270         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
271         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
272         update mode iterator.
273         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
274         "avx512f_getmant<mode><round_saeonly_name>".
275
276 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
277
278         PR ipa/63166
279         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
280
281 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
282             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
283             Anna Tikhonova  <anna.tikhonova@intel.com>
284             Ilya Tocar  <ilya.tocar@intel.com>
285             Andrey Turetskiy  <andrey.turetskiy@intel.com>
286             Ilya Verbin  <ilya.verbin@intel.com>
287             Kirill Yukhin  <kirill.yukhin@intel.com>
288             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
289
290         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
291         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
292         (define_mode_iterator FMAMODE_AVX512): New.
293         (define_mode_iterator FMAMODE): Remove conditions.
294         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
295         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
296         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
297         mode iterator.
298         (define_mode_iterator FMAMODE_NOVF512): Remove.
299         (define_insn "*fma_fmadd_<mode>"): Rename from
300         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
301         FMAMODE mode iterator.
302         (define_mode_iterator VF_SF_AVX512VL): New.
303         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
304         Use VF_SF_AVX512VL mode iterator.
305         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
306         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
307         iterator.
308         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
309         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
310         iterator.
311         (define_insn "*fma_fmsub_<mode>"): Rename from
312         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
313         FMAMODE mode iterator.
314         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
315         Use VF_SF_AVX512VL mode iterator.
316         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
317         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
318         iterator.
319         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
320         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
321         iterator.
322         (define_insn "*fma_fnmadd_<mode>"): Rename from
323         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
324         use FMAMODE mode iterator.
325         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
326         Use VF_SF_AVX512VL mode iterator.
327         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
328         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
329         iterator.
330         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
331         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
332         iterator.
333         (define_insn "*fma_fnmsub_<mode>"): Rename from
334         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
335         FMAMODE mode iterator.
336         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
337         Use VF_SF_AVX512VL mode iterator.
338         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
339         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
340         iterator.
341         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
342         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
343         iterator.
344         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
345         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
346         use VF_AVX512VL mode iterator.
347         (define_insn "*fma_fmaddsub_<mode>"): Rename from
348         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
349         remove subst usage.
350         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
351         Use VF_SF_AVX512VL mode iterator.
352         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
353         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
354         iterator.
355         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
356         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
357         iterator.
358         (define_insn "*fma_fmsubadd_<mode>"): Rename from
359         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
360         remove usage of subst.
361         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
362         Use VF_SF_AVX512VL mode iterator.
363         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
364         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
365         iterator.
366         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
367         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
368         iterator.
369
370 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
371
372         Revert r213751:
373         * calls.c (precompute_arguments): Check
374          promoted_for_signed_and_unsigned_p and set the promoted mode.
375         (promoted_for_signed_and_unsigned_p): New function.
376         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
377         and set the promoted mode.
378         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
379         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
380         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
381
382 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
383
384         * opth-gen.awk: Generate mapping from cpp message reasons to the
385         options that enable them.
386         * doc/options.texi (CppReason): Document.
387
388 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
389
390         * doc/invoke.texi (Wnormalized=): Update.
391
392 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
393
394         PR target/63195
395         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
396         operands.  Split off the constant operand alternative to ...
397         (*bool<mode>3_imm): New.
398
399 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
400
401         * rtl.h (single_set_2): Strengthen first param from const_rtx to
402         const rtx_insn *, and move prototype to above...
403         (single_set): ...this.  Convert this from a macro to an inline
404         function, enforcing the requirement that the param is a const
405         rtx_insn *.
406         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
407
408         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
409         Strengthen both params from rtx to rtx_insn *.
410         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
411         Likewise; introduce locals "producer_set", "consumer_set", using
412         them in place of "producer" and "consumer" when dealing with SET
413         rather than insn.
414         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
415         when invoking single_set in region guarded by INSN_P.
416         (avr_out_bitop): Likewise.
417         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
418         region guarded by GET_CODE check, using methods to strengthen
419         local "this_insn" from rtx to rtx_insn *, and for clarity.
420         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
421         Strengthen local "insn" from rtx to rtx_insn *.
422         (define_insn_and_split "xload<mode>_A"): Likewise.
423         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
424         "insn".
425         (find_load): Likewise for return type.
426         (workaround_speculation): Likewise for both locals named
427         "load_insn".
428         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
429         local "cc0_user".
430         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
431         for local "prev".
432         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
433         param 2.
434         * config/h8300/h8300.c (notice_update_cc): Likewise.
435         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
436         "insn" and "dep_insn".
437         (exact_store_load_dependency): Likewise for both params.
438         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
439         since this now clashes with inline function.  Instead, delay
440         calling single_set until the point where its needed, and then
441         assign the result to "compare_set" and rework the conditional that
442         follows.
443         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
444         local "last" from rtx to rtx_insn *.
445         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
446         second param.
447         (mips_store_data_bypass_p): Likewise for both params.
448         * config/mips/mips.c (mips_load_store_insns): Likewise for second
449         param.
450         (mips_store_data_bypass_p): Likewise for both params.
451         (mips_orphaned_high_part_p): Likewise for param "insn".
452         * config/mn10300/mn10300.c (extract_bundle): Likewise.
453         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
454         Introduce local rtx "insn2_pat".
455         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
456         "ninsn".
457         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
458         Introduce local rtx "set", using it in place of "insn" for the
459         result of single_set.  This appears to fix a bug, since the call
460         to find_regno_note on a SET does nothing.
461         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
462         params from rtx to rtx_insn *.
463         (set_to_load_agen): Likewise.
464         * config/s390/s390.c (s390_label_align): Likewise for local
465         "prev_insn".  Introduce new rtx locals "set" and "src", using
466         them in place of "prev_insn" for the results of single_set
467         and SET_SRC respectively.
468         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
469         Introduce new rtx local "set" using in place of "jump" for the
470         result of single_set.  Use SET_SRC (set) rather than plain
471         XEXP (set, 1).
472         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
473         rtx to rtx_insn *.
474         (noncall_uses_reg): Likewise.
475         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
476         guarded by GET_CODE check, using its methods for clarity, and to
477         enable strengthening local "this_insn" from rtx to rtx_insn *.
478         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
479         "insn" from rtx to rtx_insn *.
480         (define_expand "umulhisi3"): Likewise.
481         (define_expand "smulsi3_highpart"): Likewise.
482         (define_expand "umulsi3_highpart"): Likewise.
483         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
484         local "after".  Replace GET_CODE check with a dyn_cast,
485         introducing new local rtx_sequence * "seq", using insn method for
486         typesafety.
487
488         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
489         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
490         place of "insn" once we're dealing with patterns rather than the
491         input insn.
492         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
493         (scan_trace): Likewise for local "elt", updating lookups within
494         sequence to use insn method rather than element method.
495         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
496         to rtx_insn *.
497         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
498         * ifcvt.c (noce_try_abs): Likewise for local "insn".
499         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
500         invoking single_set.
501         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
502         "insn" from rtx to rtx_insn *.
503         (skip_usage_debug_insns): Likewise for return type, adding a
504         checked cast.
505         (check_secondary_memory_needed_p): Likewise for local "insn".
506         (inherit_reload_reg): Likewise.
507         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
508         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
509         checked casts.
510         (store_data_bypass_p): Likewise for both params.
511         (if_test_bypass_p): Likewise.
512         * recog.h (store_data_bypass_p): Likewise for both params.
513         (if_test_bypass_p): Likewise.
514         * reload.c (find_equiv_reg): Likewise for local "where".
515         * reorg.c (delete_jump): Likewise for param "insn".
516         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
517         to const rtx_insn *.
518         * store-motion.c (replace_store_insn): Likewise for param "del".
519         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
520         and use its methods for clarity, and to strengthen local "del"
521         from rtx to rtx_insn *.
522         (build_store_vectors): Use insn method of "st" when calling
523         replace_store_insn for typesafety and clarity.
524
525 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
526
527         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
528         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
529         on how to make it legal in future.
530
531 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
532
533         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
534         to rtx_insn *.
535         (restinsn): Likewise.
536         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
537         Likewise for param.
538         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
539         Likewise.
540         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
541         first param.
542         (arc_hazard): Likewise for both params.
543         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
544         checked casts to rtx_sequence * and uses of the insn method for
545         type-safety.
546         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
547         (arc_adjust_insn_length): Likewise for param "insn".
548         (struct insn_length_parameters_s): Likewise for first param of
549         "get_variants" callback field.
550         (arc_get_insn_variants): Likewise for first param and local
551         "inner".  Replace a check of GET_CODE with a dyn_cast to
552         rtx_sequence *, using methods for type-safety and clarity.
553         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
554         rtx_sequence * and uses of the insn method for type-safety when
555         invoking arc_adjust_insn_length.
556         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
557         for param.
558         (arm_address_offset_is_imm): Likewise.
559         (struct tune_params): Likewise for params 1 and 3 of the
560         "sched_adjust_cost" callback field.
561         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
562         params 1 and 3 ("insn" and "dep").
563         (xscale_sched_adjust_cost): Likewise.
564         (fa726te_sched_adjust_cost): Likewise.
565         (cortexa7_older_only): Likewise for param "insn".
566         (cortexa7_younger): Likewise.
567         (arm_attr_length_move_neon): Likewise.
568         (arm_address_offset_is_imm): Likewise.
569         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
570         * config/avr/avr.c (avr_notice_update_cc): Likewise.
571         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
572         (workaround_speculation): Likewise for local "last_condjump".
573         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
574         (shadow_or_blockage_p): Likewise.
575         (get_unit_reqs): Likewise.
576         (get_unit_operand_masks): Likewise.
577         (c6x_registers_update): Likewise.
578         (returning_call_p): Likewise.
579         (can_use_callp): Likewise.
580         (convert_to_callp): Likewise.
581         (find_last_same_clock): Likwise for local "t".
582         (reorg_split_calls): Likewise for local "shadow".
583         (hwloop_pattern_reg): Likewise for param "insn".
584         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
585         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
586         (frv_extract_membar): Likewise.
587         (frv_optimize_membar_local): Strengthen param "last_membar" from
588         rtx * to rtx_insn **.
589         (frv_optimize_membar_global): Strengthen param "membar" from rtx
590         to rtx_insn *.
591         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
592         to rtx_insn **.
593         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
594         both params from rtx to rtx_insn *.
595         (ia64_ld_address_bypass_p): Likewise.
596         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
597         "insn".
598         (ia64_safe_type): Likewise.
599         (group_barrier_needed): Likewise.
600         (safe_group_barrier_needed): Likewise.
601         (ia64_single_set): Likewise.
602         (is_load_p): Likewise.
603         (record_memory_reference): Likewise.
604         (get_mode_no_for_insn): Likewise.
605         (important_for_bundling_p): Likewise.
606         (unknown_for_bundling_p): Likewise.
607         (ia64_st_address_bypass_p): Likewise for both params.
608         (ia64_ld_address_bypass_p): Likewise.
609         (expand_vselect): Introduce new local rtx_insn * "insn", using it
610         in place of rtx "x" after the emit_insn call.
611         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
612         Strengthen param from rtx to rtx_insn *.
613         (ix86_agi_dependent): Likewise for both params.
614         (ix86_attr_length_immediate_default): Likewise for param 1.
615         (ix86_attr_length_address_default): Likewise for param.
616         (ix86_attr_length_vex_default): Likewise for param 1.
617         * config/i386/i386.c (ix86_attr_length_immediate_default):
618         Likewise for param "insn".
619         (ix86_attr_length_address_default): Likewise.
620         (ix86_attr_length_vex_default): Likewise.
621         (ix86_agi_dependent): Likewise for both params.
622         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
623         (vselect_insn): Likewise for this variable.
624         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
625         for param 1.
626         (m68k_sched_attr_opy_type): Likewise.
627         * config/m68k/m68k.c (sched_get_operand): Likewise.
628         (sched_attr_op_type): Likewise.
629         (m68k_sched_attr_opx_type): Likewise.
630         (m68k_sched_attr_opy_type): Likewise.
631         (sched_get_reg_operand): Likewise.
632         (sched_get_mem_operand): Likewise.
633         (m68k_sched_address_bypass_p): Likewise for both params.
634         (sched_get_indexed_address_scale): Likewise.
635         (m68k_sched_indexed_address_bypass_p): Likewise.
636         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
637         (m68k_sched_indexed_address_bypass_p): Likewise.
638         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
639         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
640         removing another.
641         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
642         params from rtx to rtx_insn *.
643         (mips_fmadd_bypass): Likewise.
644         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
645         (mips_linked_madd_p): Likewise.
646         (mips_macc_chains_last_hilo): Likewise for this variable.
647         (mips_macc_chains_record): Likewise for param.
648         (vr4130_last_insn): Likewise for this variable.
649         (vr4130_swap_insns_p): Likewise for both params.
650         (mips_ls2_variable_issue): Likewise for param.
651         (mips_need_noat_wrapper_p): Likewise for param "insn".
652         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
653         in place of "x" after the emit_insn.
654         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
655         params from rtx to rtx_insn *.
656         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
657         (pa_combine_instructions): Introduce local "par" for result of
658         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
659         to make_insn_raw.
660         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
661         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
662         (rl78_alloc_physical_registers_op1): Likewise.
663         (rl78_alloc_physical_registers_op2): Likewise.
664         (rl78_alloc_physical_registers_ro1): Likewise.
665         (rl78_alloc_physical_registers_cmp): Likewise.
666         (rl78_alloc_physical_registers_umul): Likewise.
667         (rl78_alloc_address_registers_macax): Likewise.
668         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
669         * config/s390/predicates.md (execute_operation): Likewise for
670         local "insn".
671         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
672         params.
673         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
674         (addr_generation_dependency_p): Likewise for param "insn".
675         (s390_agen_dep_p): Likewise for both params.
676         (s390_fpload_toreg): Likewise for param "insn".
677         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
678         * config/sh/sh.c (sh_loop_align): Likewise for param and local
679         "next".
680         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
681         * config/sh/sh_treg_combine.cc
682         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
683         and local "i".
684         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
685         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
686         "and_insn", "load", "shift".
687         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
688         "insn".
689         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
690         for XEXP (note, 0) of the REG_CC_SETTER note.
691         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
692         rtx_insn *, eliminating a checked cast made redundant by this.
693         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
694         to rtx_insn *.
695         * genattr.c (main): When writing out the prototype to
696         const_num_delay_slots, strengthen the param from rtx to
697         rtx_insn *.
698         * genattrtab.c (write_const_num_delay_slots): Likewise when
699         writing out the implementation of const_num_delay_slots.
700         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
701         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
702         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
703         favor of new rtx locals "src" and "set" and new local rtx_insn *
704         "insn" and "seq".
705         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
706         to rtx_insn *.
707         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
708         locals "cond", "if_then_else", "set" and new rtx_insn * locals
709         "insn" and "seq".
710         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
711         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
712         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
713         the top-level scope, replacing with new more tightly-scoped rtx
714         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
715         "new_insn", "copy_of_insn_b", and make local rtx "set" more
716         tightly-scoped.
717         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
718         rtx_insn *.
719         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
720         "move_insn".
721         (ira_setup_alts): Likewise for param "insn".
722         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
723         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
724         and an rtx_insn *.
725         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
726         new more-tightly scoped rtx locals "add3_insn", "insn",
727         "add2_insn" and rtx_insn * "move_insn".
728         * postreload-gcse.c (eliminate_partially_redundant_load): Add
729         checked cast on result of gen_move_insn when invoking
730         extract_insn.
731         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
732         rtx_insn *.
733         (verify_changes): Add a checked cast on "object" when invoking
734         insn_invalid_p.
735         (extract_insn_cached): Strengthen param "insn" from rtx to
736         rtx_insn *.
737         (extract_constrain_insn_cached): Likewise.
738         (extract_insn): Likewise.
739         * recog.h (insn_invalid_p): Likewise for param 1.
740         (recog_memoized): Likewise for param.
741         (extract_insn): Likewise.
742         (extract_constrain_insn_cached): Likewise.
743         (extract_insn_cached): Likewise.
744         * reload.c (can_reload_into): Likewise for local "test_insn".
745         * reload.h (cleanup_subreg_operands): Likewise for param.
746         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
747         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
748         result of emit_insn.  Remove a checked cast made redundant by this
749         change.
750         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
751         rtx to rtx_insn *.
752         * sel-sched.c (get_reg_class): Likewise.
753
754 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
755         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
756
757          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
758          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
759         Define.
760         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
761
762 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
763
764         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
765         const rtx_insn *, and from rtx to rtx_insn * for the other
766         overloaded variant.
767         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
768         INSN_LOCATION, since we know INSN_P holds.
769         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
770         (insn_file): Likewise.
771         (insn_scope): Likewise.
772         (insn_location): Likewise.
773
774         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
775         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
776         for the result of gen_load_const_gp.
777         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
778         param from rtx to rtx_insn *.
779         * config/rs6000/rs6000.c (output_call): Likewise.
780         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
781         introducing a checked cast to rtx_sequence * and use of the insn
782         method.
783         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
784         from rtx to rtx_insn *.
785         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
786         (insn_line): Likewise.
787         (insn_file): Likewise.
788         (insn_location): Likewise.
789         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
790         from rtx to rtx_insn *.
791         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
792         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
793         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
794         via a checked cast.
795         * reorg.c (relax_delay_slots): Strengthen locals named "after"
796         from rtx to rtx_insn *; use methods of "pat" for type-safety.
797
798 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
799
800         * combine.c (try_combine): Eliminate checked cast on result of
801         gen_rtx_INSN.
802         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
803         autogenerated one by strengthening the return type and params 2 and 3
804         from rtx to rtx_insn *, and by naming the params.
805         * gengenrtl.c (special_rtx): Add INSN to those that are
806         special-cased.
807         * rtl.h (gen_rtx_INSN): New prototype.
808
809 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
810
811         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
812         than NULL_RTX.
813         (no_equiv): Likewise.
814         (update_equiv_regs): Likewise.
815         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
816         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
817         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
818         clarity.
819         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
820         from rtx to rtx_insn_list *.
821         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
822         rtx_insn_list * and use methods for clarity and typesafety.
823         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
824         "list".
825         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
826         redundant check on INSN_P (insns): this cannot hold, as "insns" is
827         an INSN_LIST, not an insn.
828         (reverse_equiv_p): Strengthen local "insns" from rtx to
829         rtx_insn_list * and use methods for clarity and typesafety.
830         (contains_reloaded_insn_p): Likewise for local "list".
831
832 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
833
834         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
835         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
836         (arm_builtin_vectorized_function): Likewise.
837         * config/arm/arm_neon_builtins.def: New macro for copysignf.
838         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
839
840 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
841
842         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
843         * builtins.h (default_target_builtins): Likewise.
844         * gcse.h (default_target_gcse): Likewise.
845         * target-globals.h (target_globals): Add a destructor.  Convert
846         void-pointer fields back to their real type and change from
847         GTY((atomic)) to GTY((skip)).
848         (restore_target_globals): Remove casts accordingly.
849         * target-globals.c (save_target_globals): Use XCNEW rather than
850         ggc_internal_cleared_alloc to allocate non-GC structures.
851         Use ggc_cleared_alloc to allocate the target_globals structure
852         itself.
853         (target_globals::~target_globals): Define.
854
855 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
856
857         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
858         mnemonic instead of fldmfdd.
859         * config/arm/arm.c (vfp_output_fstmd): Rename to...
860         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
861         Output vpush when address register is SP.
862         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
863         (vfp_output_vstmd): ... This.
864         * config/arm/vfp.md (push_multi_vfp): Update call to
865         vfp_output_vstmd.
866
867 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
868
869         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
870
871 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
872
873         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
874         (*sqrtdf2_vfp): Likewise.
875         (*cmpsf_vfp): Likewise.
876         (*cmpsf_trap_vfp): Likewise.
877         (*cmpdf_vfp): Likewise.
878         (*cmpdf_trap_vfp): Likewise.
879
880 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
881
882         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
883         (*truncdfsf2_vfp): Likewise.
884         (*truncsisf2_vfp): Likewise.
885         (*truncsidf2_vfp): Likewise.
886         (fixuns_truncsfsi2): Likewise.
887         (fixuns_truncdfsi2): Likewise.
888         (*floatsisf2_vfp): Likewise.
889         (*floatsidf2_vfp): Likewise.
890         (floatunssisf2): Likewise.
891         (floatunssidf2): Likewise.
892
893 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
894
895         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
896         (*muldf3_vfp): Likewise.
897         (*mulsf3negsf_vfp): Likewise.
898         (*muldf3negdf_vfp): Likewise.
899         (*mulsf3addsf_vfp): Likewise.
900         (*muldf3adddf_vfp): Likewise.
901         (*mulsf3subsf_vfp): Likewise.
902         (*muldf3subdf_vfp): Likewise.
903         (*mulsf3negsfaddsf_vfp): Likewise.
904         (*fmuldf3negdfadddf_vfp): Likewise.
905         (*mulsf3negsfsubsf_vfp): Likewise.
906         (*muldf3negdfsubdf_vfp): Likewise.
907
908 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
909
910         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
911         (*absdf2_vfp): Likewise.
912         (*negsf2_vfp): Likewise.
913         (*negdf2_vfp): Likewise.
914         (*addsf3_vfp): Likewise.
915         (*adddf3_vfp): Likewise.
916         (*subsf3_vfp): Likewise.
917         (*subdf3_vfp): Likewise.
918         (*divsf3_vfp): Likewise.
919         (*divdf3_vfp): Likewise.
920
921 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
922
923         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
924         multiple.
925         (arm_print_operand): Don't convert real values to decimal
926         representation in default case.
927         (fp_immediate_constant): Delete.
928         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
929         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
930         syntax.
931         (*thumb2_movsi_vfp): Likewise.
932         (*movdi_vfp): Likewise.
933         (*movdi_vfp_cortexa8): Likewise.
934         (*movhf_vfp_neon): Likewise.
935         (*movhf_vfp): Likewise.
936         (*movsf_vfp): Likewise.
937         (*thumb2_movsf_vfp): Likewise.
938         (*movdf_vfp): Likewise.
939         (*thumb2_movdf_vfp): Likewise.
940         (*movsfcc_vfp): Likewise.
941         (*thumb2_movsfcc_vfp): Likewise.
942         (*movdfcc_vfp): Likewise.
943         (*thumb2_movdfcc_vfp): Likewise.
944
945 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
946
947         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
948         (-mtune): Likewise.
949         (-mcpu): Likewise.
950
951 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
952
953         PR target/61749
954         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
955         Use qualifier_immediate for last operand.  Rename to...
956         (aarch64_types_ternop_lane_qualifiers): ... This.
957         (TYPES_QUADOP): Rename to...
958         (TYPES_TERNOP_LANE): ... This.
959         (aarch64_simd_expand_args): Return const0_rtx when encountering user
960         error.  Change return of 0 to return of NULL_RTX.
961         (aarch64_crc32_expand_builtin): Likewise.
962         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
963         ICE when expanding unknown builtin.
964         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
965         TERNOP_LANE qualifiers.
966         (sqdmlsl_lane): Likewise.
967         (sqdmlal_laneq): Likewise.
968         (sqdmlsl_laneq): Likewise.
969         (sqdmlal2_lane): Likewise.
970         (sqdmlsl2_lane): Likewise.
971         (sqdmlal2_laneq): Likewise.
972         (sqdmlsl2_laneq): Likewise.
973
974 2014-09-09  Nick Clifton  <nickc@redhat.com>
975
976         * doc/invoke.texi (Optimization Options): Add missing @gol to the
977         end of a line.
978         (S/390 and zSeries Options): Remove superfluous word from the
979         description of the -mhotpatch option.
980
981 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
982
983         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
984         * ira.c: #include "shrink-wrap.h"
985         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
986         * ifcvt.c: #include "shrink-wrap.h"
987         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
988
989 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
990
991         * common/config/picochip/picochip-common.c: Remove.
992         * config.gcc: Remove support for picochip.
993         * config/picochip/constraints.md: Remove.
994         * config/picochip/dfa_space.md: Remove.
995         * config/picochip/dfa_speed.md: Remove.
996         * config/picochip/picochip-protos.h: Remove.
997         * config/picochip/picochip.c: Remove.
998         * config/picochip/picochip.h: Remove.
999         * config/picochip/picochip.md: Remove.
1000         * config/picochip/picochip.opt: Remove.
1001         * config/picochip/predicates.md: Remove.
1002         * config/picochip/t-picochip: Remove.
1003         * doc/md.texi: Don't document picochi.
1004
1005 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1006
1007         * basic-block.h (control_flow_insn_p): Strengthen param from
1008         const_rtx to const rtx_insn *.
1009         * cfgbuild.c (control_flow_insn_p): Likewise.
1010
1011 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1012
1013         * gcse.c (modify_mem_list): Strengthen this variable from
1014         vec<rtx> * to vec<rtx_insn *> *.
1015         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1016         vec<rtx_insn *>.
1017         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1018         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1019         (record_last_mem_set_info): Strengthen param "insn" from rtx to
1020         rtx_insn *.
1021         (record_last_set_info): Likewise for local "last_set_insn".
1022
1023 2014-09-08  DJ Delorie  <dj@redhat.com>
1024
1025         * doc/invoke.texi (MSP430 Options): Add -minrt.
1026
1027 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1028
1029         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
1030         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1031         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1032         handling SH_SPLAT.
1033         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1034         of extracted lane.
1035         (adjust_splat): New function.
1036         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1037         (dump_swap_insn_table): Add case for SH_SPLAT.
1038
1039 2014-09-08  Richard Biener  <rguenther@suse.de>
1040
1041         PR ipa/63196
1042         * tree-inline.c (copy_loops): The source loop header should
1043         always be non-NULL.
1044         (tree_function_versioning): If loops need fixup after removing
1045         unreachable blocks fix them.
1046         * omp-low.c (simd_clone_adjust): Do not add incr block to
1047         loop under construction.
1048
1049 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1050
1051         * config/aarch64/aarch64-builtins.c
1052         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1053
1054 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1055
1056         * config/i386/cygming.h (TF_SIZE): Remove.
1057         * config/i386/darwin.h (TF_SIZE): Remove.
1058         * config/i386/dragonfly.h (TF_SIZE): Remove.
1059         * config/i386/freebsd.h (TF_SIZE): Remove.
1060         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1061         * config/i386/openbsdelf.h (TF_SIZE): Remove.
1062         * config/i386/sol2.h (TF_SIZE): Remove.
1063         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1064         * config/ia64/linux.h (TF_SIZE): Remove.
1065         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1066         * doc/tm.texi: Regenerate.
1067         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1068
1069 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1070
1071         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1072         Remove.
1073         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1074         Remove.
1075         * doc/tm.texi: Regenerate.
1076         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1077         Poison.
1078         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1079         * config/cris/cris.h (__make_dp): Remove.
1080
1081 2014-09-08  Richard Biener  <rguenther@suse.de>
1082
1083         PR bootstrap/63204
1084         * cfgloop.c (mark_loop_for_removal): Track former header
1085         unconditionally.
1086         * cfgloop.h (struct loop): Add former_header member unconditionally.
1087         * loop-init.c (fix_loop_structure): Enable bogus loop removal
1088         diagnostic unconditionally.
1089
1090 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1091
1092         PR target/63190
1093         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1094         constraint for operand0 and remove write only modifier from operand3.
1095
1096 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
1097
1098         PR rtl-optimization/62208
1099         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1100         rather than const0_rtx in eq/ne-xor simplifications.
1101
1102 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
1103
1104         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1105         (arc_output_mi_thunk): Likewise.
1106
1107         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1108         arguments to silence bogus warning.
1109
1110 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
1111
1112         PR middle-end/63171
1113         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1114
1115 2014-09-06  Tom de Vries  <tom@codesourcery.com>
1116
1117         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1118         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1119         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1120
1121 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
1122
1123         PR target/63188
1124         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1125         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1126
1127 2014-09-05  Easwaran Raman  <eraman@google.com>
1128
1129         PR rtl-optimization/62146
1130         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1131         hoisted instruction unconditional.
1132
1133 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
1134
1135         PR target/63187
1136         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1137         Do not allow any_mask_operand for operands[2].
1138         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1139
1140 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1141
1142         * config/arc/arc.c (arc_print_operand): Use insn method of
1143         final_sequence for type-safety.
1144         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1145         "insn" from rtx to rtx_insn *.
1146         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1147         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1148         Likewise for locals "branch", "label".
1149         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1150         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
1151         (same_cmp_following_p): Likewise for locals "i2", "i3".
1152         * config/sh/sh_optimize_sett_clrt.cc
1153         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1154         param "cbranch_insn".
1155         * function.c (convert_jumps_to_returns): Likewis for local "jump".
1156         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1157         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1158         const rtx_insn *.
1159         (condjump_p): Likewise.
1160         (condjump_in_parallel_p): Likewise.
1161         (pc_set): Likewise.
1162         (any_uncondjump_p): Likewise.
1163         (any_condjump_p): Likewise.
1164         (condjump_label): Likewise.
1165         (returnjump_p): Strengthen param "insn" from rtx to
1166         const rtx_insn *.
1167         (onlyjump_p): Strengthen param "insn" from const_rtx to
1168         const rtx_insn *.
1169         (jump_to_label_p): Likewise.
1170         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1171         (invert_jump): Likewise.
1172         * reorg.c (simplejump_or_return_p): Add checked cast when calling
1173         simplejump_p.
1174         (get_jump_flags): Strengthen param "insn" from rtx to
1175         const rtx_insn *.
1176         (get_branch_condition): Likewise.
1177         (condition_dominates_p): Likewise.
1178         (make_return_insns): Move declaration of local "pat" earlier, to
1179         after we've handled NONJUMP_INSN_P and non-sequences, using its
1180         methods to simplify the code and for type-safety.
1181         * rtl.h (find_constant_src): Strengthen param from const_rtx to
1182         const rtx_insn *.
1183         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1184         (condjump_p): Strengthen param from const_rtx to
1185         const rtx_insn *.
1186         (any_condjump_p): Likewise.
1187         (any_uncondjump_p): Likewise.
1188         (pc_set): Likewise.
1189         (condjump_label): Likewise.
1190         (simplejump_p): Likewise.
1191         (returnjump_p): Likewise.
1192         (onlyjump_p): Likewise.
1193         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1194         (invert_jump): Likewise.
1195         (condjump_in_parallel_p): Strengthen param from const_rtx to
1196         const rtx_insn *.
1197         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1198         to const rtx_insn *.
1199         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1200         to const rtx_insn *.
1201         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1202
1203 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1204
1205         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1206         above the conditional, and convert the check on GET_CODE to a
1207         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1208         the conditional.  Simplify the conditional by using methods of
1209         "trial_seq".
1210
1211 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1212
1213         * haifa-sched.c (check_clobbered_conditions): Strengthen local
1214         "link" from rtx to rtx_insn_list *, and use its methods for
1215         clarity and type-safety.
1216         (toggle_cancelled_flags): Likewise.
1217         (restore_last_backtrack_point): Likewise.
1218         (queue_to_ready): Use insn method of "link" in one place.
1219         (schedule_block): Strengthen local "link" from rtx to
1220         rtx_insn_list *, and use its methods for clarity and type-safety.
1221
1222 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1223
1224         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1225         param "insn" from const_rtx to const rtx_insn *.
1226         (sched_get_reverse_condition_uncached): Likewise.
1227         (sched_get_condition_with_rev): Likewise.
1228         (sched_has_condition_p): Likewise.
1229         (sched_insns_conditions_mutex_p): Likewise for both params.
1230         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1231         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1232         (setup_insn_reg_uses): Move local "list" to be more tightly
1233         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
1234         its methods for clarity and type-safety.
1235         (sched_analyze_1): Strengthen local "pending" from rtx to
1236         rtx_insn_list *, and local "pending_mem" from rtx to
1237         rtx_expr_list *.  Use methods of each for clarity and type-safety.
1238         (sched_analyze_2): Likewise.
1239         (sched_analyze_insn): Likewise.
1240
1241         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1242         param from const_rtx to const rtx_insn *.
1243         (sched_insns_conditions_mutex_p): Likewise for both params.
1244         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1245         param.
1246
1247         * system.h (CONST_CAST_RTX_INSN): New macro.
1248
1249 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1250
1251         * recog.c (peep2_attempt): Strengthen return type from rtx to
1252         rtx_insn *.
1253         (peep2_update_life): Likewise for params "last", "prev", removing
1254         a checked cast made redundant by this.
1255         (peephole2_optimize): Likewise for local "last".
1256
1257 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1258
1259         * basic-block.h (set_block_for_insn): Eliminate this macro in
1260         favor of...
1261         * rtl.h (set_block_for_insn): New inline function, imposing the
1262         requirement that the "insn" param is an rtx_insn *.
1263
1264 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1265
1266         * caller-save.c (setup_save_areas): Strengthen local "insn" from
1267         rtx to rtx_insn *.
1268         * final.c (get_call_reg_set_usage): Likewise for first param,
1269         eliminating a checked cast.
1270         * regs.h (get_call_reg_set_usage): Likewise for first param.
1271         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1272         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1273         cast, replacing references to "x" with "call_insn" where
1274         appropriate.
1275         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1276         rtx_insn *, adding a checked cast.
1277
1278 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1279
1280         * output.h (final_scan_insn): Strengthen first param from rtx to
1281         rtx_insn *.
1282
1283         * final.c (final_scan_insn): Likewise, renaming it back from
1284         "uncast_insn" to "insn", eliminating the checked cast.
1285
1286         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1287         "vec" with an rtx_sequence * "seq", taking a copy of
1288         "final_sequence", and using methods of "seq" for clarity, and for
1289         type-safety in the calls to final_scan_insn.
1290         * config/mips/mips.c (mips_output_conditional_branch): Use methods
1291         of "final_sequence" for clarity, and for type-safety in the call to
1292         final_scan_insn.
1293         * config/sh/sh.c (print_slot): Strengthen param from rtx to
1294         rtx_sequence * and rename from "insn" to "seq".
1295
1296 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1297
1298         * jump.c (delete_related_insns): Introduce a new local "table" by
1299         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1300         get_labels method of "table" to simplify access to the labels in
1301         the jump table.
1302
1303 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1304
1305         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1306         f_minmaxs, f_minmaxd types.
1307
1308 2014-09-05  Richard Biener  <rguenther@suse.de>
1309
1310         * cfgloop.c (mark_loop_for_removal): Record former header
1311         when ENABLE_CHECKING.
1312         * cfgloop.h (strut loop): Add former_header member when
1313         ENABLE_CHECKING.
1314         * loop-init.c (fix_loop_structure): Sanity check loops
1315         marked for removal if they re-appeared.
1316
1317 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1318
1319         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1320         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1321
1322         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1323         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1324         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1325         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1326         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1327         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1328         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1329         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1330         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1331         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1332         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1333         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1334         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1335         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1336         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1337         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1338         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1339         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1340         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1341         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1342         with int{32,16,8}_t.
1343
1344 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1345
1346         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1347         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1348         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1349         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1350         Remove temporary __asm__ and reimplement.
1351
1352 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1353
1354         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1355         handling cmge, cmgt, cmeq, cmtst.
1356
1357         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1358         cmlt, cmgeu, cmgtu, cmtst): Remove.
1359
1360         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1361         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1362         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1363         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1364
1365 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1366
1367         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1368         TYPES_TST): Define.
1369         (aarch64_fold_builtin): Update pattern for cmtst.
1370
1371         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1372         Declare.
1373
1374         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1375
1376         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1377         Switch operands, separate out more cases, refactor.
1378
1379         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1380
1381         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1382         argument; rename old version to...
1383         (aarch64_const_vec_all_same_in_range_p): ...this.
1384         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1385
1386         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1387
1388 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1389
1390         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1391         Remove qualifier_const_pointer, update comment.
1392
1393 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1394
1395         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1396
1397 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1398
1399         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1400         varargs with pointer parameter.
1401         (aarch64_simd_expand_builtin): pass pointer into previous.
1402
1403 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1404
1405         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1406         alus_ext.
1407
1408 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1409
1410         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1411         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1412         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1413         Replace temporary asm with call to builtin.
1414         (vrbit_p8, vrbitq_p8): New functions.
1415
1416 2014-09-05  Richard Biener  <rguenther@suse.de>
1417
1418         * cfgloop.c (mark_loop_for_removal): New function.
1419         * cfgloop.h (mark_loop_for_removal): Declare.
1420         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1421         (merge_blocks): Likewise.
1422         (duplicate_block): Likewise.
1423         * except.c (sjlj_emit_dispatch_table): Likewise.
1424         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1425         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1426         (thread_through_loop_header): Likewise.
1427
1428 2014-09-05  Richard Biener  <rguenther@suse.de>
1429
1430         PR middle-end/63148
1431         * fold-const.c (try_move_mult_to_index): Remove.
1432         (fold_binary_loc): Do not call it.
1433         * tree-data-ref.c (dr_analyze_indices): Strip conversions
1434         from the base object again.
1435
1436 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
1437
1438         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1439         DImode.
1440
1441 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1442
1443         PR target/55701
1444         * config/arm/arm.md (setmem): New pattern.
1445         * config/arm/arm-protos.h (struct tune_params): New fields.
1446         (arm_gen_setmem): New prototype.
1447         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1448         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1449         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1450         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1451         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1452         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1453         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1454         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1455         (arm_const_inline_cost): New function.
1456         (arm_block_set_max_insns): New function.
1457         (arm_block_set_non_vect_profit_p): New function.
1458         (arm_block_set_vect_profit_p): New function.
1459         (arm_block_set_unaligned_vect): New function.
1460         (arm_block_set_aligned_vect): New function.
1461         (arm_block_set_unaligned_non_vect): New function.
1462         (arm_block_set_aligned_non_vect): New function.
1463         (arm_block_set_vect, arm_gen_setmem): New functions.
1464
1465 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1466
1467         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1468
1469 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1470
1471         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1472
1473 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1474
1475         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1476         an rtx.
1477         * valtrack.h: Adjust.
1478
1479 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1480
1481         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1482         an rtx.
1483         (emit_jump_insn_before_noloc): Likewise.
1484         (emit_call_insn_before_noloc): Likewise.
1485         (emit_label_before): Likewise.
1486         (emit_label_after): Likewise.
1487         (emit_insn_before_setloc): Likewise.
1488         (emit_jump_insn_before_setloc): Likewise.
1489         (emit_call_insn_before_setloc): Likewise.
1490         (emit_call_insn_before): Likewise.
1491         * rtl.h: Adjust.
1492
1493 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1494
1495         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1496         rtx_insn *, eliminating a checked cast.
1497
1498 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1499
1500         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1501         const_rtx to const rtx_insn *.
1502         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1503         cast.
1504
1505 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1506
1507         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1508         fixup_args_size_notes.
1509         * expr.c (fixup_args_size_notes): Strengthen first two params from
1510         rtx to rtx_insn *, eliminating a checked cast.
1511         * rtl.h (fixup_args_size_notes): Strengthen first two params from
1512         rtx to rtx_insn *.
1513
1514 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1515
1516         * haifa-sched.c (get_ready_element): Strengthen return type from
1517         rtx to rtx_insn *.
1518         * sched-int.h (get_ready_element): Likewise.
1519
1520 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
1521
1522         PR target/63165
1523         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1524         indexed_or_indirect_operand instead of memory_operand.
1525         (floatsi<mode>2_lfiwzx_mem): Ditto.
1526
1527 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1528
1529         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1530         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1531         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1532
1533 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1534
1535         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1536         rtx.
1537         (get_last_nonnote_insn): Likewise.
1538         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1539         * resource.c (find_basic_block): Likewise.
1540         * rtl.h: Adjust.
1541         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1542         const_rtx.
1543
1544 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
1545
1546         * genattr.c (main): Within the prototype of insn_latency written
1547         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1548         * genautomata.c (output_internal_maximal_insn_latency_func):
1549         Within the implementation of insn_latency written out to
1550         insn-automata.c, strengthen both params from rtx to rtx_insn *,
1551         eliminating a pair of checked casts.
1552
1553 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
1554
1555         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1556         rtx_insn *.
1557
1558         * rtl.h (eh_returnjump_p): Likewise.
1559
1560 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
1561
1562         * Makefile.in (TAGS): Handle constructs in timevar.def.
1563
1564 2014-09-04  Guozhi Wei  <carrot@google.com>
1565
1566         PR target/62040
1567         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1568         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1569         it into two patterns.
1570         (move_lo_quad_internal_be_<mode>): Likewise.
1571
1572 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1573
1574         * doc/options.texi: Document that Var and Init are required if CPP
1575         is given.
1576         * optc-gen.awk: Require Var and Init if CPP is given.
1577         * common.opt (Wpedantic): Use Init.
1578
1579 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1580
1581         * config/rs6000/rs6000.c (special_handling_values): Add
1582         SH_EXTRACT.
1583         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1584         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
1585         as swappable with special handling SH_EXTRACT.  Remove
1586         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1587         optimization.
1588         (adjust_extract): New function.
1589         (handle_special_swappables): Add default to case statement; add
1590         case for SH_EXTRACT that calls adjust_extract.
1591         (dump_swap_insn_table): Handle SH_EXTRACT.
1592
1593 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1594
1595         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1596         selection of 0th memory doubleword, regardless of endianness.
1597
1598 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1599
1600         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1601
1602 2014-09-04  Alan Modra  <amodra@gmail.com>
1603
1604         PR debug/60655
1605         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1606         can't be output.
1607
1608 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
1609
1610         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1611         * targhooks.c (default_dwarf_frame_reg_mode): New function.
1612         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1613         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1614         * doc/tm.texi: Regenerate.
1615         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1616         selection logic to default_dwarf_frame_reg_mode.
1617
1618 2014-09-03  Marek Polacek  <polacek@redhat.com>
1619
1620         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1621         by -Wall.
1622
1623 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
1624
1625         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1626         the automodified register.
1627
1628 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
1629
1630         * output.h (get_some_local_dynamic_name): Declare.
1631         * final.c (some_local_dynamic_name): New variable.
1632         (get_some_local_dynamic_name): New function.
1633         (final_end_function): Clear some_local_dynamic_name.
1634         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1635         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1636         (print_operand): Report an error if '%&' is used inappropriately.
1637         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1638         (get_some_local_dynamic_name_1): Delete.
1639         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1640         (rs6000_get_some_local_dynamic_name): Delete.
1641         (rs6000_get_some_local_dynamic_name_1): Delete.
1642         (print_operand): Report an error if '%&' is used inappropriately.
1643         * config/s390/s390.c (machine_function): Remove some_ld_name.
1644         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1645         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1646         * config/sparc/sparc.c: Include rtl-iter.h.
1647         (machine_function): Remove some_ld_name.
1648         (sparc_print_operand): Report an error if '%&' is used inappropriately.
1649         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1650
1651 2014-09-03  Richard Henderson  <rth@redhat.com>
1652
1653         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1654         (aarch64_popwb_pair_reg): Remove.
1655         (aarch64_set_frame_expr): Remove.
1656         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1657         the restore ops performed by the insns generated.
1658         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1659         insn.  Perform the calls_eh_return addition later; do not attempt to
1660         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
1661         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1662         special markup at all.  Load cfun->machine->frame.hard_fp_offset
1663         into a local variable.
1664         (aarch64_frame_pointer_required): Don't check calls_alloca.
1665
1666 2014-09-03  Richard Biener  <rguenther@suse.de>
1667
1668         * opts.c (default_options_optimization): Adjust
1669         max-combine-insns to 2 for -Og.
1670
1671 2014-09-03  Martin Jambor  <mjambor@suse.cz>
1672
1673         PR ipa/62015
1674         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1675         pass-trough jump functions correctly.
1676
1677 2014-09-03  Martin Jambor  <mjambor@suse.cz>
1678
1679         PR ipa/61986
1680         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1681         created replacements in ascending order of offsets.
1682         (known_aggs_to_agg_replacement_list): Likewise.
1683
1684 2014-09-03  Martin Liska  <mliska@suse.cz>
1685
1686         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1687         is set to set uninitialized value for vnresult.
1688
1689 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1690
1691         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1692         for TARGET_MUST_PASS_IN_STACK.
1693
1694 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1695
1696         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1697         for TARGET_ARG_PARTIAL_BYTES.
1698
1699 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1700
1701         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1702         instructions for varargs implementation.
1703         (nds32_expand_epilogue): Emit stack adjustment instructions for
1704         varargs implementation.
1705
1706 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1707
1708         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1709         optimization detection.
1710
1711 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1712
1713         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1714         arguments.
1715         (nds32_function_arg_advance): Deal with nameless arguments.
1716         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1717         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1718         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1719
1720 2014-09-03  Richard Biener  <rguenther@suse.de>
1721
1722         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1723         (struct bb_bitmap_sets): Remove deferred member.
1724         (BB_DEFERRED): Remove.
1725         (defer_or_phi_translate_block): Remove.
1726         (compute_antic_aux): Remove deferring of blocks, assert
1727         proper iteration order.
1728         (compute_antic): Do not set BB_DEFERRED.
1729         (eliminate): Allocate el_avail of proper size initially.
1730
1731 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1732
1733         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1734         according to the value of crtl->args.pretend_args_size.
1735
1736 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1737
1738         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1739         varargs information.
1740
1741 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1742
1743         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1744         implementation for TARGET_SETUP_INCOMING_VARARGS.
1745         (nds32_strict_argument_naming): Refine comment.
1746         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1747         Define for future implementation.
1748
1749 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
1750
1751         * config/i386/adxintrin.h (_subborrow_u32): New.
1752         (_addcarry_u32): Ditto.
1753         (_subborrow_u64): Ditto.
1754         (_addcarry_u64): Ditto.
1755         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1756         IX86_BUILTIN_SBB64.
1757         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1758         __builtin_ia32_sbb_u64
1759
1760 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1761
1762         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1763         GPR-specific stuff.
1764         (nds32_function_arg_advance): Likewise.
1765         (nds32_init_cumulative_args): Likewise.
1766         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1767         (NDS32_FIRST_GPR_REGNUM): Define.
1768         (NDS32_LAST_GPR_REGNUM): Define.
1769         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1770         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1771         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1772         (machine_function): Use GRP-specific stuff.
1773
1774 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1775
1776         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1777         (nds32_expand_epilogue): Likewise.
1778         (nds32_expand_prologue_v3push): Likewise.
1779         (nds32_expand_epilogue_v3pop): Likewise.
1780
1781 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1782
1783         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1784         v3push/v3pop for variadic function.
1785         * config/nds32/nds32.md (prologue, epilogue): Likewise.
1786
1787 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1788
1789         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1790         Check rtx for varargs implementation.
1791         (nds32_output_stack_pop): Likewise.
1792         * config/nds32/nds32-protos.h: Have a rtx argument for
1793         nds32_output_stack_push and nds32_output_stack_pop.
1794         * config/nds32/nds32.md: Likewise.
1795
1796 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1797
1798         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1799         to check if FUNC is an interrupt service routine.
1800         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1801
1802 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1803
1804         * config/nds32/nds32.h (machine_function): Add some fields for variadic
1805         arguments implementation.
1806
1807 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1808
1809         * config/nds32/nds32-predicates.c
1810         (nds32_valid_stack_push_pop): Rename to ...
1811         (nds32_valid_stack_push_pop_p): ... this.
1812         * config/nds32/nds32-protos.h: Likewise.
1813         * config/nds32/predicates.md: Likewise.
1814
1815 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1816
1817         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1818         (nds32_emit_stack_v3push): ... this.
1819         (nds32_gen_stack_v3pop): Rename to ...
1820         (nds32_emit_stack_v3pop): ... this and consider CFA restore
1821         information.
1822
1823 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1824
1825         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1826         (nds32_emit_stack_push_multiple): ... this.
1827         (nds32_gen_stack_pop_multiple): Rename to ...
1828         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1829         information.
1830
1831 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1832
1833         PR target/61078
1834         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1835         and add a second splitter to handle the remaining cases.
1836
1837 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1838
1839         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1840
1841 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
1842
1843         * cfgexpand.c (label_rtx_for_bb): Change type to
1844         hash_map<basic_block, rtx_code_label *> *.
1845         (expand_gimple_basic_block): Adjust.
1846         (pass_expand::execute): Likewise.
1847
1848 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
1849
1850         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1851         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1852         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1853         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1854         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1855         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1856         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1857         of rtx.
1858
1859 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
1860
1861         * alloc-pool.c: Include coretypes.h.
1862         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1863         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1864         hash_set instead of htab.
1865         * ggc-page.c (in_gc): New variable.
1866         (ggc_free): Do nothing if a collection is taking place.
1867         (ggc_collect): Set in_gc appropriately.
1868         * ggc.h (gt_ggc_mx(const char *)): New function.
1869         (gt_pch_nx(const char *)): Likewise.
1870         (gt_ggc_mx(int)): Likewise.
1871         (gt_pch_nx(int)): Likewise.
1872         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1873         (hash_map::hash_entry::pch_nx): Likewise.
1874         (hash_map::hash_entry::pch_nx_helper): Likewise.
1875 (hash_map::hash_map): Adjust.
1876 (hash_map::create_ggc): New function.
1877 (gt_ggc_mx): Likewise.
1878 (gt_pch_nx): Likewise.
1879         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1880 (default_hashset_traits::pch_nx): Likewise.
1881 (hash_set::hash_entry::ggc_mx): Likewise.
1882 (hash_set::hash_entry::pch_nx): Likewise.
1883 (hash_set::hash_entry::pch_nx_helper): Likewise.
1884 (hash_set::hash_set): Adjust.
1885 (hash_set::create_ggc): New function.
1886 (hash_set::elements): Likewise.
1887 (gt_ggc_mx): Likewise.
1888 (gt_pch_nx): Likewise.
1889         * hash-table.h (hash_table::hash_table): Adjust.
1890 (hash_table::m_ggc): New member.
1891         (hash_table::~hash_table): Adjust.
1892         (hash_table::expand): Likewise.
1893         (hash_table::empty): Likewise.
1894 (gt_ggc_mx): New function.
1895         (hashtab_entry_note_pointers): Likewise.
1896 (gt_pch_nx): Likewise.
1897
1898 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1899
1900         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
1901         built-in definition.
1902         (XVCVUXDDP_SCALE): Likewise.
1903         (XVCVDPSXDS_SCALE): Likewise.
1904         (XVCVDPUXDS_SCALE): Likewise.
1905         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
1906         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1907         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1908         VSX_BUILTIN_XVCVDPUXDS_SCALE.
1909         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1910         prototype.
1911         * config/rs6000/rs6000.c (real.h): New include.
1912         (rs6000_scale_v2df): New function.
1913         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1914         (UNSPEC_VSX_XVCVUXDDP): Likewise.
1915         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1916         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1917         (vsx_xvcvsxddp_scale): New define_expand.
1918         (vsx_xvcvsxddp): New define_insn.
1919         (vsx_xvcvuxddp_scale): New define_expand.
1920         (vsx_xvcvuxddp): New define_insn.
1921         (vsx_xvcvdpsxds_scale): New define_expand.
1922         (vsx_xvcvdpsxds): New define_insn.
1923         (vsx_xvcvdpuxds_scale): New define_expand.
1924         (vsx_xvcvdpuxds): New define_insn.
1925         * doc/extend.texi (vec_ctf): Add new prototypes.
1926         (vec_cts): Likewise.
1927         (vec_ctu): Likewise.
1928         (vec_splat): Likewise.
1929         (vec_div): Likewise.
1930         (vec_mul): Likewise.
1931
1932 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1933
1934         PR target/62275
1935         * config/arm/neon.md
1936         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1937         <v_cmp_result>): New pattern.
1938         * config/arm/iterators.md (NEON_VCVT): New int iterator.
1939         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1940         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1941         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1942         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1943         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1944
1945 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1946
1947         PR target/62275
1948         * config/arm/iterators.md (FIXUORS): New code iterator.
1949         (VCVT): New int iterator.
1950         (su_optab): New code attribute.
1951         (su): Likewise.
1952         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1953
1954 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1955
1956         * config/aarch64/predicates.md (aarch64_comparison_operation):
1957         New special predicate.
1958         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1959         aarch64_comparison_operation instead of matching an operator.
1960         Update operand numbers.
1961         (csinc3<mode>_insn): Likewise.
1962         (*csinv3<mode>_insn): Likewise.
1963         (*csneg3<mode>_insn): Likewise.
1964         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1965         * config/aarch64/aarch64.c (aarch64_get_condition_code):
1966         Return -1 instead of aborting on invalid condition codes.
1967         (aarch64_print_operand): Update aarch64_get_condition_code callsites
1968         to assert that the returned condition code is valid.
1969         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1970
1971 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
1972
1973         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1974         tree.def, and gimple.def
1975
1976 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
1977             Balaji V. Iyer  <balaji.v.iyer@intel.com>
1978             Igor Zamyatin  <igor.zamyatin@intel.com>
1979
1980         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1981         (__cilkrts_cilk_for_64): Likewise.
1982         * cilk-common.c (declare_cilk_for_builtin): New function.
1983         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1984         __cilkrts_cilk_for_64 bultins.
1985         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1986         CILK_TI_F_LOOP_64.
1987         (cilk_for_32_fndecl): New define.
1988         (cilk_for_64_fndecl): Likewise.
1989         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1990         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1991         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1992         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1993         GF_OMP_FOR_COMBINED_INTO.
1994         * gimplify.c (gimplify_scan_omp_clauses): Added
1995         OMP_CLAUSE__CILK_FOR_COUNT_ case.
1996         (gimplify_adjust_omp_clauses): Ditto.
1997         (gimplify_omp_for): Added CILK_FOR case.
1998         (gimplify_expr): Ditto.
1999         * omp-low.c: Include cilk.h.
2000         (extract_omp_for_data): Set appropriate kind for
2001         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2002         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2003         (create_omp_child_function_name): Added second argument to handle
2004         cilk_for case.
2005         (cilk_for_check_loop_diff_type): New function.
2006         (expand_cilk_for_call): Likewise.
2007         (expand_cilk_for): Likewise.
2008         (create_omp_child_function): Set cilk_for_count; handle the cases when
2009         it is true; call create_omp_child_function_name with second argument.
2010         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2011         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2012         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2013         * tree-nested.c (convert_nonlocal_omp_clauses): Added
2014         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2015         (convert_local_omp_clauses): Ditto.
2016         * tree-pretty-print.c (dump_omp_clause): Added
2017         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2018         (dump_generic_node): Added CILK_FOR case.
2019         * tree.c (omp_clause_num_ops): New element
2020         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2021         (omp_clause_code_name): New element _Cilk_for_count_.
2022         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2023         * tree.def: Add tree code for CILK_FOR.
2024
2025 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2026
2027         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2028         (ppc403-compare): Add "exts with dot" case.
2029         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2030         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2031         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2032         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2033         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2034         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2035         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2036         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2037         cell-cmp-microcoded): Similarly.
2038         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2039         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2040         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2041         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2042         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2043         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2044         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2045         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2046         (power6-compare): Add "exts with dot" case.
2047         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2048         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2049         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2050
2051         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2052         if avoiding Cell microcode.
2053         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2054         (is_cracked_insn): Ditto.
2055         (insn_must_be_first_in_group): Ditto.
2056         * config/rs6000/rs6000.md (dot): Adjust comment.
2057         (cell_micro): Handle exts+dot.
2058         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2059         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2060         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2061         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2062         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2063         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2064         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2065
2066 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2067
2068         * config/rs6000/rs6000.md (QHSI): Delete.
2069         (EXTQI, EXTHI, EXTSI): New mode iterators.
2070         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2071         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2072         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2073         9 anonymous instructions, and 8 splitters): Delete.
2074         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2075         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2076         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2077         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2078         *zero_extendsi<mode>2_dot2): New.
2079
2080 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2081
2082         * config/rs6000/rs6000.md (any_extend): New code iterator.
2083         (u, su): New code attributes.
2084         (dmode, DMODE): New mode attributes.
2085         (<su>mul<mode>3_highpart): New.
2086         (*<su>mul<mode>3_highpart): New.
2087         (<su>mulsi3_highpart_le): New.
2088         (<su>muldi3_highpart_le): New.
2089         (<su>mulsi3_highpart_64): New.
2090         (<u>mul<mode><dmode>3): New.
2091         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2092         splitters): Delete.
2093         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2094         splitters): Delete.
2095
2096 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2097
2098         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2099         *mulsi3_internal2, and two splitters): Delete.
2100         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2101         Delete.
2102         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2103
2104 2014-09-02  Richard Biener  <rguenther@suse.de>
2105
2106         PR tree-optimization/62695
2107         * tree-ssa-structalias.c (find_func_clobbers): Add missing
2108         vector truncate.
2109
2110 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
2111
2112         PR target/62312
2113         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2114
2115 2014-09-01  Andi Kleen  <ak@linux.intel.com>
2116
2117         * file-find.c (add_prefix_begin): Add.
2118         (do_add_prefix): Rename from add_prefix with first argument.
2119         (add_prefix): Add new wrapper.
2120         * file-find.h (add_prefix_begin): Add.
2121         * gcc-ar.c (main): Support -B option.
2122
2123 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2124
2125         * genemit.c: Include dumpfile.h.
2126         (gen_split): Print name of splitter function to dump file.
2127
2128 2014-09-01  Richard Biener  <rguenther@suse.de>
2129
2130         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2131         Use stack auto_vecs for constraint expressions.
2132         (find_func_aliases_for_call): Likewise.
2133         (find_func_aliases): Likewise.
2134         (find_func_clobbers): Likewise.
2135
2136 2014-09-01  Richard Biener  <rguenther@suse.de>
2137
2138         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2139         operands vector in most cases.  Remove redundant code.
2140
2141 2014-09-01  Olivier Hainque  <hainque@adacore.com>
2142
2143         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2144         $WIND_BASE instead of designating a harcoded arbitrary home dir.
2145         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2146
2147 2014-09-01  Richard Biener  <rguenther@suse.de>
2148
2149         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2150         copy_reference_ops_from_call, vn_nary_op_compute_hash,
2151         vn_reference_compute_hash, vn_reference_insert): Remove.
2152         (vn_reference_lookup_call): New function.
2153         * tree-ssa-sccvn.c (vn_reference_compute_hash,
2154         copy_reference_ops_from_ref, copy_reference_ops_from_call,
2155         vn_reference_insert, vn_nary_op_compute_hash): Make static.
2156         (create_reference_ops_from_call): Remove.
2157         (vn_reference_lookup_3): Properly update shared_lookup_references.
2158         (vn_reference_lookup_pieces): Assert that we updated
2159         shared_lookup_references properly.
2160         (vn_reference_lookup): Likewise.
2161         (vn_reference_lookup_call): New function.
2162         (visit_reference_op_call): Use it.  Avoid re-building the
2163         reference ops.
2164         (visit_reference_op_load): Remove redundant lookup.
2165         (visit_reference_op_store): Perform special tail-merging work
2166         only when possibly doing tail-merging.
2167         (visit_use): Likewise.
2168         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2169
2170 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
2171
2172         PR target/62025
2173         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2174         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2175         (find_inc): Revert 2014-08-13 change.
2176
2177 2014-09-01  Marek Polacek  <polacek@redhat.com>
2178
2179         PR middle-end/61903
2180         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2181         Change the type of V to unsigned HOST_WIDE_INT.
2182
2183 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2184
2185         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2186         the size of byte markers.
2187         (do_shift_rotate): Fix confusion between host, target and marker byte
2188         size.
2189         (verify_symbolic_number_p): Likewise.
2190         (find_bswap_or_nop_1): Likewise.
2191         (find_bswap_or_nop): Likewise.
2192
2193 2014-09-01  Olivier Hainque  <hainque@adacore.com>
2194
2195         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2196         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2197
2198 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
2199
2200         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2201         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2202         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2203
2204 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
2205
2206         PR sanitizer/61897
2207         PR sanitizer/62140
2208         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2209         (build_check_stmt): Likewise.
2210         (instrument_strlen_call): Likewise.
2211         (asan_expand_check_ifn): Likewise and fix types.
2212         (maybe_cast_to_ptrmode): New function.
2213
2214 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2215
2216         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2217
2218 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
2219
2220         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2221
2222 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
2223
2224         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2225         prefix to function labels when generating fast indirect calls.
2226
2227 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
2228
2229         PR bootstrap/62304
2230
2231         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2232         param back from rtx_insn * to rtx.  Rename param from "label" to
2233         "label_or_return", reintroducing "label" as an rtx_insn * after
2234         we've ensured it's not a RETURN.
2235         (first_active_target_insn): Likewise for return type and param;
2236         add a checked cast to rtx_insn * once we've ensured "insn" is not
2237         a RETURN.
2238         (steal_delay_list_from_target): Convert param "pnew_thread" back
2239         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
2240         with JUMP_LABEL.
2241         (own_thread_p): Convert param "thread" back from an rtx_insn * to
2242         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
2243         cast once we've established we're not dealing with a RETURN,
2244         renaming subsequent uses of "thread" to "thread_insn".
2245         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2246         to JUMP_LABEL.
2247         (follow_jumps): Convert return type and param "label" from
2248         rtx_insn * back to rtx.  Move initialization of "value" to after
2249         the handling for ANY_RETURN_P, adding a checked cast there to
2250         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
2251         rename to "this_label_or_return", reintroducing "this_label" as
2252         an rtx_insn * once we've handled the case where it could be an
2253         ANY_RETURN_P.
2254         (fill_slots_from_thread): Rename param "thread" to
2255         "thread_or_return", converting from an rtx_insn * back to an rtx.
2256         Reintroduce name "thread" as an rtx_insn * local with a checked
2257         cast once we've handled the case of it being an ANY_RETURN_P.
2258         Convert local "new_thread" from an rtx_insn * back to an rtx.
2259         Add a checked cast when assigning to "trial" from "new_thread".
2260         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
2261         checked cast to rtx_insn * from "new_thread" when invoking
2262         get_label_before.
2263         (fill_eager_delay_slots): Convert locals "target_label",
2264         "insn_at_target" from rtx_insn * back to rtx.
2265         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2266         (relax_delay_slots): Convert locals "trial", "target_label" from
2267         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
2268         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
2269         invoking update_block.
2270         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2271         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2272
2273         * resource.h (mark_target_live_regs): Undo erroneous conversion
2274         of second param of r214693, converting it back from rtx_insn * to
2275         rtx, since it could be a RETURN.
2276
2277         * resource.c (find_dead_or_set_registers): Similarly, convert
2278         param "jump_target" back from an rtx_insn ** to an rtx *, as we
2279         could be writing back a RETURN.  Rename local rtx_insn * "next" to
2280         "next_insn", and introduce "lab_or_return" as a local rtx,
2281         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2282         (mark_target_live_regs): Undo erroneous conversion
2283         of second param of r214693, converting it back from rtx_insn * to
2284         rtx, since it could be a RETURN.  Rename it from "target" to
2285         "target_maybe_return", reintroducing the name "target" as a local
2286         rtx_insn * with a checked cast, after we've handled the case of
2287         ANY_RETURN_P.
2288
2289 2014-08-29  DJ Delorie  <dj@redhat.com>
2290
2291         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2292         pointer size up to a power of two.
2293         * defaults.h (DWARF2_ADDR_SIZE): Round up.
2294         (POINTER_SIZE_UNITS): New, rounded up value.
2295         * dwarf2asm.c (size_of_encoded_value): Use it.
2296         (dw2_output_indirect_constant_1): Likewise.
2297         * expmed.c (init_expmed_one_conv): We now know the sizes of
2298         partial int modes.
2299         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2300         * optabs.c (expand_float): Use precision, not size.
2301         (expand_fix): Likewise.
2302         * simplify-rtx (simplify_unary_operation_1): Likewise.
2303         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2304         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2305         (default_assemble_integer) Likewise.
2306         (dump_tm_clone_pairs): Likewise.
2307         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2308         * var-tracking.c (adjust_mems): Allow partial-int modes also.
2309         (prepare_call_arguments): Likewise.
2310         * stor-layout.c (finalize_type_size): Preserve precision.
2311         (layout_type): Use precision, not size.
2312
2313         * expr.c (convert_move): If the target has an explicit converter,
2314         use it.
2315
2316 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
2317
2318         * gdbinit.in: Skip various inline functions in rtl.h when
2319         stepping.
2320
2321 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
2322
2323         PR bootstrap/62301
2324         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2325
2326 2014-08-29  Richard Biener  <rguenther@suse.de>
2327
2328         PR tree-optimization/62291
2329         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2330         exactly the vector size needed and use quick_push.
2331         (phi_translate_1): Adjust comment.
2332         (valid_in_sets): Remove block argument and remove pointless
2333         checking of NAMEs.
2334         (dependent_clean): Adjust for removal of block argument.
2335         (clean): Likewise.
2336         (compute_antic_aux): Likewise.
2337         (compute_partial_antic_aux): Likewise.
2338
2339 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2340             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2341             Anna Tikhonova  <anna.tikhonova@intel.com>
2342             Ilya Tocar  <ilya.tocar@intel.com>
2343             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2344             Ilya Verbin  <ilya.verbin@intel.com>
2345             Kirill Yukhin  <kirill.yukhin@intel.com>
2346             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2347
2348         * config/i386/sse.md
2349         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2350         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2351         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2352         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2353
2354 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2355             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2356             Anna Tikhonova  <anna.tikhonova@intel.com>
2357             Ilya Tocar  <ilya.tocar@intel.com>
2358             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2359             Ilya Verbin  <ilya.verbin@intel.com>
2360             Kirill Yukhin  <kirill.yukhin@intel.com>
2361             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2362
2363         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2364         * config/i386/sse.md
2365         (define_mode_iterator VI4_128_8_256): New.
2366         (define_mode_iterator VI2_128_4_256): Ditto.
2367         (define_mode_iterator PMOV_DST_MODE): Rename into
2368         (define_mode_iterator PMOV_DST_MODE_1): this.
2369         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2370         Use PMOV_DST_MODE_1 mode iterator.
2371         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2372         Ditto.
2373         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2374         Ditto.
2375         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2376         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2377         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2378         (define_mode_iterator PMOV_DST_MODE_2): New.
2379         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2380         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2381         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2382         Ditto.
2383         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2384         (define_mode_attr pmov_dst_3): Ditto.
2385         (define_mode_attr pmov_dst_zeroed_3): Ditto.
2386         (define_mode_attr pmov_suff_3): Ditto.
2387         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2388         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2389         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2390         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2391         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2392         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2393         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2394         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2395         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2396         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2397         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2398         (define_mode_attr pmov_dst_4): Ditto.
2399         (define_mode_attr pmov_dst_zeroed_4): Ditto.
2400         (define_mode_attr pmov_suff_4): Ditto.
2401         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2402         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2403         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2404         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2405         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2406         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2407         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2408         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2409         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2410         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2411         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2412
2413 2014-08-29  Richard Biener  <rguenther@suse.de>
2414
2415         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2416         NON_LVALUE_EXPR in gimple.
2417
2418 2014-08-29  Richard Biener  <rguenther@suse.de>
2419
2420         PR middle-end/62292
2421         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2422         from previous refactoring.
2423         (gimple_fold_builtin_strncpy): Likewise.
2424
2425 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
2426
2427         PR bootstrap/62300
2428         * function.c (assign_parm_setup_reg): Remove erroneous checked
2429         cast to rtx_insn * on result of gen_extend_insn in favor of
2430         introducing a new local rtx "pat".
2431
2432 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2433
2434         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2435         to silence warning.
2436         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2437
2438 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2439
2440         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2441         (next_insn): Likewise.
2442         * emit-rtl.c (next_insn): Likewise.
2443         (previous_insn): Likewise.
2444         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2445         "insn" and "next" from rtx to rtx_insn *.
2446         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2447         "insn", "insn1", "vliw_start",  "prologue_end_note",
2448         "last_insn_in_packet".
2449
2450 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2451
2452         * shrink-wrap.h (active_insn_between): Strengthen both params from
2453         rtx to rtx_insn *.
2454         * function.c (active_insn_between): Likewise.
2455
2456 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2457
2458         * genattr.c (main): When writing out insn-attr.h, strengthen param
2459         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2460         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2461         writing out the definition of dfa_clear_single_insn_cache to the
2462         generated insn-automata.c
2463
2464 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2465
2466         * resource.h (clear_hashed_info_for_insn): Strengthen param from
2467         rtx to rtx_insn *.
2468         (incr_ticks_for_insn): Likewise.
2469         (init_resource_info): Likewise.
2470
2471         * resource.c (init_resource_info): Likewise.
2472         (clear_hashed_info_for_insn): Likewise.
2473         (incr_ticks_for_insn): Likewise.
2474
2475         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2476         rtx to rtx_insn *.
2477         (steal_delay_list_from_target): Use methods of "seq".
2478         (try_merge_delay_insns): Use methods of "merged_insns".
2479         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2480         (reorg_redirect_jump): Likewise for param "jump".
2481
2482 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2483
2484         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2485         rtx to rtx_insn *.
2486         * config/s390/s390.c (s390_split_branches): Eliminate top-level
2487         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2488         "set_insn".
2489         (s390_mainpool_finish): In three places, split out a local rtx
2490         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2491         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
2492          and split another local rtx "insn" out into rtx "pat" and
2493         rtx_insn * "insn".
2494         * config/sh/sh.c (output_branchy_insn): Rather than working
2495         directly on operands[9], introduce local rtx_code_label *
2496         variables named "lab" in two places, working on them, and then
2497         assigning them to operands[9], so that the intervening operations
2498         are known by the type system to be on insns.
2499
2500 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2501
2502         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2503         const rtx_insn *.
2504
2505         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2506         in invocation of INSN_HAS_LOCATION.
2507
2508 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2509
2510         * config/rs6000/altivec.h (vec_xl): New #define.
2511         (vec_xst): Likewise.
2512         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2513         (XXSPLTD_V2DI): Likewise.
2514         (DIV_V2DI): Likewise.
2515         (UDIV_V2DI): Likewise.
2516         (MUL_V2DI): Likewise.
2517         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2518         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2519         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2520         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2521         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2522         (UNSPEC_VSX_DIVSD): Likewise.
2523         (UNSPEC_VSX_DIVUD): Likewise.
2524         (UNSPEC_VSX_MULSD): Likewise.
2525         (vsx_mul_v2di): New insn-and-split.
2526         (vsx_div_v2di): Likewise.
2527         (vsx_udiv_v2di): Likewise.
2528         (vsx_xxspltd_<mode>): New insn.
2529
2530 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2531
2532         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2533         NEXT_INSN.
2534         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2535         (NEXT_INSN): Likewise.
2536         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2537         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2538         const rtx_insn *.
2539         (no_labels_between_p): Likewise for both params.
2540
2541         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2542         cast when using NEXT_INSN on operands[2].
2543         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2544         "insn" from rtx to rtx_insn *, adding a checked cast.
2545         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2546         rtx_insn *.
2547         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2548         for third param.
2549         (arc_text_label): Likewise for param "insn".
2550         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2551         "insn".
2552         (arc_ccfsm_record_condition): Likewise for param "jump".
2553         (arc_text_label): Likewise for local "label".
2554         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2555         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2556         a method for typesafety.  Add a checked cast.
2557         * config/arc/constraints.md (Clb): Add a checked cast when getting
2558         the CODE_LABEL from a LABEL_REF.
2559         * config/arm/arm.c (require_pic_register): Strengthen locals
2560         "seq", "insn" from rtx to rtx_insn *.
2561         (create_fix_barrier): Likewise for locals "selected", "next".
2562         (thumb1_reorg): Likewise for locals "prev", "insn".
2563         (arm_expand_prologue): Likewise for local "last".
2564         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2565         operands[0].
2566         (thumb2_output_casesi): Likewise for operands[2].
2567         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2568         strengthen local "insn" from rtx to rtx_insn *.
2569         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2570         type and param "insn".
2571         (find_prev_insn_start): Likewise.
2572         (hwloop_optimize): Likewise for locals "insn", "last_insn",
2573         "prev".
2574         (gen_one_bundle): Likewise for loal "t".
2575         (find_load): Likewise for param "insn".
2576         (workaround_speculation): Likewise for locals "insn", "next",
2577         "target", "next_tgt".
2578         * config/c6x/c6x.c (assign_reservations): Likewise for both params
2579         and for locals "insn", "within", "last".
2580         (count_unit_reqs): Likewise for params "head", "tail" and local
2581         "insn".
2582         (try_rename_operands): Likewise for params "head", "tail".
2583         (reshuffle_units): Likewise for locals "head", "tail", "insn".
2584         (struct c6x_sched_context): Likewise for fields
2585         "last_scheduled_insn", "last_scheduled_iter0".
2586         (init_sched_state): Replace NULL_RTX with NULL.
2587         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2588         to rtx_insn *.
2589         (undo_split_delayed_nonbranch): Likewise for param and for local
2590         "prev".
2591         (conditionalize_after_sched): Likewise for local "insn".
2592         (bb_earliest_end_cycle): Likewise.
2593         (filter_insns_above): Likewise for locals "insn", "next".
2594         (hwloop_optimize): Remove redundant checked cast.
2595         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2596         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2597         NULL_RTX with NULL.
2598         (cris_simple_epilogue): Likewise.
2599         (cris_expand_prologue): Likewise.
2600         (cris_expand_epilogue): Likewise.
2601         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2602         local "insn" from rtx to rtx_insn *.
2603         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2604         (struct frv_packet_group): Likewise for the elements within array
2605         fields "insns", "sorted", and for field "nop".
2606         (frv_packet): Likewise for the elements within array field
2607         "insns".
2608         (frv_add_insn_to_packet): Likewise for param "insn".
2609         (frv_insert_nop_in_packet): Likewise for param "insn" and local
2610         "last".
2611         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2612         (frv_sort_insn_group_1): Likewise for local "insn".
2613         (frv_optimize_membar_local): Likewise.
2614         (frv_align_label): Likewise for locals "x", "last", "barrier",
2615         "label".
2616         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2617         local.
2618         (ia64_sched_init): Likewise for local "insn".
2619         (scheduled_good_insn): Likewise for param "last".
2620         (struct _ia64_sched_context): Likewise for field
2621         "last_scheduled_insn".
2622         (ia64_init_sched_context): Replace NULL_RTX with NULL.
2623         (struct bundle_state): Likewise for field "insn".
2624         (issue_nops_and_insn): Likewise for param "insn".
2625         (get_next_important_insn): Likewise for return type and both
2626         params.
2627         (ia64_add_bundle_selector_before): Likewise for param "insn".
2628         (bundling): Likewise for params "prev_head_insn", "tail" and
2629         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
2630         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2631         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2632         Strengthen final param from rtx to rtx_insn *.
2633         (iq2000_move_1word): Likewise for second param.
2634         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2635         param "cur_insn" and local "next_insn".
2636         (iq2000_move_1word): Likewise for param "insn".
2637         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2638         casts when using NEXT_INSN on operands[1].
2639         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2640         "insn" from rtx to rtx_insn *.
2641         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2642         "x", introducing local rtx_insn * "insn" for when working with the
2643         CODE_LABEL of the LABEL_REF.
2644         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2645         rtx_insn *.
2646         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2647         param.
2648         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2649         type.
2650         (conditionalize_block): Likewise for return type and param.
2651         (mcore_is_dead): Likewise for param "first" and local "insn".
2652         (emit_new_cond_insn): Likewise for return type.
2653         (conditionalize_block): Likewise for return type, param, and
2654         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2655         "newinsn".
2656         (conditionalize_optimization): Likewise for local "insn".
2657         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2658         using NEXT_INSN.
2659         * config/microblaze/microblaze.md: Add checked casts when using
2660         NEXT_INSN.
2661         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2662         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2663         and rtx_insn * "insn".
2664         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2665         checked cast when using NEXT_INSN on operands[2].
2666         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2667         local "insn" from rtx to rtx_insn *.
2668         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2669         Likewise.
2670         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2671         Add a checked cast when using NEXT_INSN on operands[1].
2672         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2673         rtx to rtx_insn *.
2674         (pa_output_cbranch): Likewise for final param.
2675         (pa_output_lbranch): Likewise for second param.
2676         (pa_output_bb): Likewise for third param.
2677         (pa_output_bvb): Likewise.
2678         (pa_output_dbra): Likewise for second param.
2679         (pa_output_movb): Likewise.
2680         (pa_output_parallel_movb): Likewise.
2681         (pa_output_parallel_addb): Likewise.
2682         (pa_output_millicode_call): Likewise for first param.
2683         (pa_output_mul_insn): Likewise for second param.
2684         (pa_output_div_insn): Likewise for third param.
2685         (pa_output_mod_insn): Likewise for second param.
2686         (pa_jump_in_call_delay): Likewise for param.
2687         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2688         (pa_output_div_insn): Likewise.
2689         (pa_output_mod_insn): Likewise.
2690         (pa_output_cbranch): Likewise.
2691         (pa_output_lbranch): Likewise.
2692         (pa_output_bb): Likewise.
2693         (pa_output_bvb): Likewise.
2694         (pa_output_dbra): Likewise.
2695         (pa_output_movb): Likewise.
2696         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2697         to simplify and for typesafety.
2698         (pa_output_call): Use method of rtx_sequence *.
2699         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2700         (pa_jump_in_call_delay): Likewise.
2701         (pa_output_parallel_movb): Likewise.
2702         (pa_output_parallel_addb): Likewise.
2703         (pa_following_call): Likewise.
2704         (pa_combine_instructions): Likewise for locals "anchor",
2705         "floater".
2706         (pa_can_combine_p): Likewise for params "anchor", "floater" and
2707         locals "start", "end".
2708         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2709         param "insn" and local "local_insn".
2710         (picochip_final_prescan_insn): Likewise for local "local_insn".
2711         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2712         local "insn".
2713         (uses_TOC): Likewise.
2714         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2715         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2716         splitting out to more tightly-scoped locals, 3 as rtx and one as
2717         rtx_insn *.
2718         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2719         to rtx_insn *.
2720         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2721         where needed.
2722         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2723         to rtx_insn *.
2724         (fixup_addr_diff_vecs): Likewise.
2725         (reg_unused_after): Likewise for param 2.
2726         (sh_can_redirect_branch): Likewise for both params.
2727         (check_use_sfunc_addr): Likewise for param 1.
2728         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2729         (find_barrier): Likewise for local "last_got".
2730         (gen_block_redirect): Likewise for return type, param "jump" and
2731         locals "prev", "scan", "next", "insn".
2732         (struct far_branch): Likewise for fields "near_label",
2733         "insert_place", "far_label".
2734         (gen_far_branch): Likewise for local "jump".
2735         (fixup_addr_diff_vecs): Likewise for param "first" and locals
2736         "insn", "prev".
2737         (barrier_align): Likewise for param and for locals "prev", "x".
2738         Introduce local rtx_sequence * "prev_seq" and use insn method for
2739         typesafety and clarity.
2740         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2741         (get_dest_uid): Likewise for local "dest".
2742         (split_branches): Likewise for locals "next", "beyond", "label",
2743         "block", "far_label".  Add checked casts when assigning to
2744         bp->far_label and "far_label".
2745         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2746         (sequence_insn_p): Likewise.
2747         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
2748         more loop-scoped rtx "insn" when walking LABEL_REFS.
2749         (sh_can_redirect_branch): Strengthen both params from rtx to
2750         rtx_insn *.
2751         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
2752         new local rtx_sequence * "seq" via a dyn_cast, and use a method
2753         for clarity and typesafety.
2754         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2755         "insn" from rtx to rtx_insn *.
2756         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2757         when using NEXT_INSN on the CODE_LABEL in operands[2].
2758         (define_insn "casesi_worker_2"): Likewise.
2759         (define_insn "casesi_shift_media"): Likewise.
2760         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2761         operands[3].
2762         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2763         Strengthen field "insn" from rtx to rtx_insn *.
2764         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2765         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2766         param "start_insn" and local "start_insn".
2767         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2768         field "insn".
2769         (find_set_of_reg_bb): Likewise for param "insn".
2770         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2771         (trace_reg_uses): Likewise for param "start_insn".
2772         (sh_treg_combine::cbranch_trace): Likewise for field
2773         "cbranch_insn".
2774         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2775         param "insn".
2776         (sh_treg_combine::record_set_of_reg): Likewise for param
2777         "start_insn" and local "i".
2778         (sh_treg_combine::can_remove_cstore): Likewise for local
2779         "prev_insn".
2780         (sh_treg_combine::try_optimize_cbranch): Likewise for param
2781         "insn".
2782         (sh_treg_combine::execute): Likewise for local "i".
2783         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2784         param.
2785         (sparc_check_64): Likewise for second param.
2786         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2787         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
2788         dyn_cast, using its insn method for typesafety and clarity.
2789         (empty_delay_slot): Strengthen param "insn" from rtx to
2790         rtx_insn *.
2791         (set_extends): Likewise.
2792         (sparc_check_64): Likewise.
2793         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2794         for locals "seq", "last_insn".
2795         (combine_bnp): Likewise for param "insn".
2796         (xstormy16_reorg): Likewise for local "insn".
2797         * config/v850/v850.c (substitute_ep_register): Likewise for params
2798         "first_insn", "last_insn" and local "insn".
2799         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2800         elements of "regs" array, and local "insn".
2801         * except.c (emit_note_eh_region_end): Likewise for param "insn".
2802         * final.c (final_sequence): Strengthen this global from rtx to
2803         rtx_sequence *.
2804         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2805         rtx_insn *.
2806         (final_scan_insn): Update assignment to "final_sequence" to be
2807         from "seq", the cast version of "body", for type-safety.
2808         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2809         "insns" from rtx to rtx_insn *.
2810         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2811         * genattr.c (main): When writing out generated insn-attr.h,
2812         strengthen params 1 and 3 of eligible_for_delay,
2813         eligible_for_annul_true, eligible_for_annul_false from rtx to
2814         rtx_insn *.
2815         * genattrtab.c (write_eligible_delay): Likewise when writing out
2816         generated insn-attrtab.c; also local "insn" the generated
2817         functions.
2818         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2819         to rtx_insn *.
2820         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2821         "start_label" from rtx to rtx_insn *.
2822         * ira.c (decrease_live_ranges_number): Likewise for local "p".
2823         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2824         "insns" and local "insn".
2825         (validate_equiv_mem): Likewise for param "start" and local "insn".
2826         (memref_used_between_p): Likewise for params "start", "end" and
2827         local "insn".
2828         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2829         final param.
2830         * loop-doloop.c (doloop_optimize): Within region guarded by
2831         INSN_P (doloop_pat), introduce a new local rtx_insn *
2832         "doloop_insn" via a checked cast, and use it for typesafety,
2833         eventually writing the value back into doloop_pat.
2834         * output.h (final_sequence): Strengthen this global from rtx to
2835         rtx_sequence *.
2836         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2837         reintroducing "insn" as an rtx_insn * via a checked cast.
2838         Strengthen param "attempt" and local "new_insn"from rtx to
2839         rtx_insn *.
2840         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2841         to rtx_insn *.
2842         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2843         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2844         "p" in favor of more tightly-scoped replacements, sometimes rtx
2845         and sometimes rtx_insn *, as appropriate.
2846         (delete_output_reload): Eliminate top-level rtx "i1", splitting
2847         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2848         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
2849         local "trial" from rtx to rtx_insn *.
2850         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2851         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
2852         rtx_sequence * and use methods for clarity and typesafety.
2853         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2854         rtx to rtx_insn *.  Strenghten local "li" from rtx to
2855         rtx_insn_list * and use its methods for clarity and typesafety.
2856         (steal_delay_list_from_target): Strengthen param "insn" from rtx
2857         to rtx_insn *.
2858         (steal_delay_list_from_fallthrough): Likewise.
2859         (try_merge_delay_insns): Likewise for param "thread" and locals
2860         "trial", "next_trial", "delay_insn".
2861         (redundant_insn): Likewise for param "target" and local "trial".
2862         (own_thread_p): Likewise for param "thread" and locals
2863         "active_insn", "insn".
2864         (get_label_before): Likewise for param "insn".
2865         (fill_simple_delay_slots): Likewise for local "new_label"; use
2866         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2867         (label_before_next_insn): Strengthen return type and local "insn"
2868         from rtx to rtx_insn *.
2869         (relax_delay_slots): Likewise for locals "other", "tmp".
2870         (make_return_insns): Likewise for param "first" and locals "insn",
2871         "jump_insn", "prev".  Move declaration of "pat" to its assignment
2872         and strengthen from rtx to rtx_sequence *.  Use its methods for
2873         clarity and typesafety.
2874         * rtlanal.c (no_labels_between_p): Strengthen params from
2875         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
2876         rtx_insn *.
2877         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2878         from const_rtx to const rtx_insn *.
2879         (reg_set_between_p): Rename param "from_insn" to
2880         "uncast_from_insn", and reintroduce "from_insn" as a
2881         const rtx_insn * via a checked cast.
2882         (modified_between_p): Likewise for param "start" as "uncast_start".
2883         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2884         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2885         "tmp", head" from rtx to rtx_insn *.
2886         (recompute_rev_top_order): Likewise for local "insn".
2887         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2888         * store-motion.c (build_store_vectors): Likewise for local "insn".
2889         Strengthen local "st" from rtx to rtx_insn_list * and use methods
2890         for clarity and typesafety.
2891         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2892         rtx to rtx_insn *.
2893         (computation_cost): Likewise for local "seq".
2894         (get_address_cost): Likewise.
2895
2896 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2897
2898         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2899         const rtx_insn *.
2900         (label_is_jump_target_p): Likewise for second param.
2901
2902         * rtlanal.c (tablejump_p): Likewise for param "insn".
2903         (label_is_jump_target_p): Likewise for param "jump_insn".
2904
2905 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2906
2907         * rtl.h (find_first_parameter_load): Strengthen return type and
2908         both params from rtx to rtx_insn *.
2909         * rtlanal.c (find_first_parameter_load): Strengthen return type,
2910         both params and locals "before", "first_set" from rtx to
2911         rtx_insn *.  Remove now-redundant cast.
2912         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2913
2914 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2915
2916         * rtl.h (find_last_value): Delete.
2917         * rtlanal.c (find_last_value): Delete.
2918
2919 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2920
2921         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2922         from rtx to rtx_insn *.
2923         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2924         rtx "note" with new local rtx_insn * "new_head" when calculating
2925         head insn of new basic block.
2926         * combine.c (combine_split_insns): Strengthen return type and local
2927         "ret" from rtx to rtx_insn *.
2928         (likely_spilled_retval_p): Likewise for locals "use" and "p".
2929         (try_combine): Eliminate local "m_split", splitting into new
2930         locals "m_split_insn" and "m_split_pat".
2931         (find_split_point): Strengthen local "seq" from rtx into
2932         rtx_insn *.
2933         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2934         locals "label", "branch".
2935         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2936         for local "insn".
2937         (define_expand "umulsi3_highpart"): Likewise for local "insn".
2938         * dse.c (note_add_store_info): Likewise for fields "first",
2939         "current".
2940         (note_add_store): Likewise for local "insn".
2941         (emit_inc_dec_insn_before): Likewise for locals "insn",
2942         "new_insn", "cur".
2943         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2944         (replace_read): Likewise for locals "insns", "this_insn".
2945         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2946         (notice_eh_throw): Likewise for param "insn".
2947         (before_next_cfi_note): Likewise for return type, param, and local
2948         "prev".
2949         (connect_traces): Likewise for local "note".
2950         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2951         (verify_rtl_sharing): Likewise.
2952         (unshare_all_rtl_in_chain): Likewise for param "insn".
2953         (get_first_nonnote_insn): Likewise for local "insn".
2954         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
2955         "seq" and use its methods to clarify things.
2956         (next_insn): Strengthen return type from rtx to rtx_insn *.
2957         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2958         local rtx_insn * using a checked cast, dropping a checked cast
2959         made redundant by this change.  Use a cast to and method of
2960         rtx_sequence to clarify the code.
2961         (previous_insn): Rename param "insn" to "uncast_insn" and
2962         reintroduce "insn" as a local rtx_insn * using a checked cast,
2963         dropping a checked cast made redundant by this change.  Use a cast
2964         to and method of rtx_sequence to clarify the code.
2965         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2966         reintroduce "insn" as a local rtx_insn * using a checked cast,
2967         dropping a checked cast made redundant by this change.
2968         (next_nonnote_insn_bb): Likewise.
2969         (prev_nonnote_insn): Likewise.
2970         (prev_nonnote_insn_bb): Likewise.
2971         (next_nondebug_insn): Likewise.
2972         (prev_nondebug_insn): Likewise.
2973         (next_nonnote_nondebug_insn): Likewise.
2974         (prev_nonnote_nondebug_insn): Likewise.
2975         (next_real_insn): Likewise.
2976         (prev_real_insn): Likewise.
2977         (next_active_insn): Likewise.
2978         (prev_active_insn): Likewise.
2979         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
2980         clarity.
2981         (prev_cc0_setter): Likewise.
2982         (try_split): Rename param "trial" to "uncast_trial" and
2983         reintroduce "insn" as a local rtx_insn * using a checked cast,
2984         dropping checked casts made redundant by this change.
2985         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2986         rtx to rtx_insn *.
2987         (remove_insn): Rename param "insn" to "uncast_insn" and
2988         reintroduce "insn" as a local rtx_insn * using a checked cast.
2989         (emit_pattern_after_setloc): Likewise for param "after", as
2990         "uncast_after".
2991         (emit_pattern_after): Likewise.  Strengthen local "prev" from
2992         rtx to rtx_insn *.
2993         (emit_pattern_before_setloc): Rename param "before" to
2994         "uncast_before" and reintroduce "before" as a local rtx_insn *
2995         using a checked cast.  Strengthen locals "first", "last" from
2996         rtx to rtx_insn *.
2997         (emit_pattern_before): Likewise rename/cast param "before" to
2998         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2999         * except.c (copy_reg_eh_region_note_forward): Strengthen param
3000         "first" and local "insn" from rtx to rtx_insn *.
3001         (copy_reg_eh_region_note_backward): Likewise for param "last"
3002         and local "insn".
3003         * expr.c (fixup_args_size_notes): Rename param "last" to
3004         "uncast_last" and reintroduce "last" as a local rtx_insn *
3005         using a checked cast.  Strengthen local "insn" from rtx to
3006         rtx_insn *.
3007         * function.c (set_insn_locations): Strengthen param "insn" from
3008         rtx to rtx_insn *.
3009         (record_insns): Likewise for param "insns" and local "tmp".
3010         (active_insn_between): Rename param "tail" to
3011         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3012         using a checked cast.
3013         (thread_prologue_and_epilogue_insns): Split out top-level local
3014         rtx "seq" into three different rtx_insn * locals.  Strengthen
3015         local "prologue_seq" from rtx to rtx_insn *.
3016         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3017         from rtx to rtx_insn *.
3018         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3019         (priority): Likewise for locals "prev_first", "twin".
3020         (setup_insn_max_reg_pressure): Likewise for param "after".
3021         (sched_setup_bb_reg_pressure_info): Likewise.
3022         (no_real_insns_p): Strengthen params from const_rtx to
3023         const rtx_insn *.
3024         (schedule_block): Strengthen local "next_tail" from rtx to
3025         rtx_insn *.
3026         * ifcvt.c (find_active_insn_before): Strengthen return type and
3027         param "insn" from rtx to rtx_insn *.
3028         (find_active_insn_after): Likewise.
3029         (cond_exec_process_insns): Likewise for param "start" and local "insn".
3030         (cond_exec_process_if_block): Likewise for locals "then_start",
3031         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3032         (noce_process_if_block): Likewise for local "jump".
3033         (merge_if_block): Likewise for two locals named "end".
3034         (cond_exec_find_if_block): Likewise for local "last_insn".
3035         * jump.c (delete_related_insns): Rename param "insn" to
3036         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3037         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
3038         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3039         NULL.
3040         (split_reg): Likewise.
3041         * lra.c (lra_process_new_insns): Likewise.
3042         * modulo-sched.c (permute_partial_schedule): Strengthen param
3043         "last" from rtx to rtx_insn *.
3044         * optabs.c (add_equal_note): Likewise for param "insns" and local
3045         "last_insn".
3046         (expand_binop_directly): Add checked casts to rtx_insn * within
3047         NEXT_INSN (pat) uses.
3048         (expand_unop_direct): Likewise.
3049         (maybe_emit_unop_insn): Likewise.
3050         * recog.c (peep2_attempt): Strengthen locals "last",
3051         "before_try", "x" from rtx to rtx_insn *.
3052         * reorg.c (optimize_skip): Strengthen return type and local
3053         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
3054         and locals "trial", "next_trial" from rtx to rtx_insn *.
3055         * resource.c (next_insn_no_annul): Strengthen return type and
3056         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
3057         rtx_sequence to clarify the code.
3058         (mark_referenced_resources): Add a checked cast to rtx_insn *
3059         within PREV_INSN (x).
3060         (find_dead_or_set_registers): Strengthen return type, param
3061         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3062         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
3063         to rtx_insn **.
3064         (mark_target_live_regs): Strengthen params "insns" and "target",
3065         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3066         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
3067         the code.
3068         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3069         from rtx to rtx_insn *.
3070         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3071         from rtx to rtx_insn *.
3072         (copy_reg_eh_region_note_backward): Likewise.
3073         (unshare_all_rtl_in_chain): Likewise for sole param.
3074         (dump_rtl_slim): Strengthen second and third params from const_rtx
3075         to const rtx_insn *.
3076         * sched-deps.c (sched_free_deps): Strengthen params "head" and
3077         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3078         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3079         "next_tail" from rtx to rtx_insn *.
3080         (begin_move_insn): Likewise for local "next".
3081         * sched-int.h (sched_free_deps): Likewise for first and second
3082         params.
3083         (no_real_insns_p): Strengthen both params from const_rtx to
3084         const rtx_insn *.
3085         (sched_setup_bb_reg_pressure_info): Strengthen second params from
3086         rtx to rtx_insn *.
3087         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3088         "next_tail".
3089         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3090         and locals "insn", "tail" from const_rtx to const rtx_insn *.
3091         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3092         rtx_insn *.
3093         (debug_rtl_slim): Strengthen params "first" and "last" from
3094         const_rtx to const rtx_insn *.
3095         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3096         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3097         (convert_to_simple_return): Likewise for param "returnjump".
3098         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3099         "prologue_seq".
3100         (convert_to_simple_return): Likewise for param "returnjump".
3101         * valtrack.c (propagate_for_debug): Likewise for params
3102         "insn", "last".
3103         * valtrack.h (propagate_for_debug): Likewise for second param.
3104
3105 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3106
3107         * output.h (insn_current_reference_address): Strengthen param
3108         from rtx to rtx_insn *.
3109         * final.c (insn_current_reference_address): Likewise.
3110
3111 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3112
3113         * basic-block.h (inside_basic_block_p): Strengthen param from
3114         const_rtx to const rtx_insn *.
3115         * cfgbuild.c (inside_basic_block_p): Likewise.
3116
3117 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3118
3119         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3120         rtx_insn *.
3121         (get_trace_info): Likewise for param "insn".
3122         (save_point_p): Likewise.
3123         (maybe_record_trace_start): Likewise for both params.
3124         (maybe_record_trace_start_abnormal): Likewise.
3125         (create_trace_edges): Likewise for sole param and for three of the
3126         locals named "lab".
3127         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3128         to rtx_insn *, and update a call to pat->element to pat->insn.
3129
3130 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3131
3132         * function.h (struct expr_status): Convert field "x_forced_labels"
3133         from rtx_expr_list * to rtx_insn_list *.
3134
3135         * cfgbuild.c (make_edges): Convert local "x" from an
3136         rtx_expr_list * to an rtx_insn_list *, replacing use of
3137         "element" method with "insn" method.
3138         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3139         * except.c (sjlj_emit_dispatch_table): Replace use of
3140         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3141         forced_labels.
3142         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3143         rtx_expr_list * to an rtx_insn_list *, replacing use of
3144         "element" method with "insn" method.
3145         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3146         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3147         rtx_insn *, adding a checked cast.  Replace use of
3148         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3149         forced_labels.
3150         (expand_label): Likewise for local "label_r".
3151
3152 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3153
3154         * function.h (struct rtl_data): Convert field
3155         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3156         rtx_insn_list *.
3157         * rtl.h (remove_node_from_insn_list): New prototype.
3158
3159         * builtins.c (expand_builtin): When prepending to
3160         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3161         gen_rtx_EXPR_LIST.
3162         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3163         to rtx_insn_list *, and use its "insn" method rather than
3164         "element" method.
3165         * cfgrtl.c (delete_insn): Use new function
3166         remove_node_from_insn_list rather than
3167         remove_node_from_expr_list.
3168         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3169         to rtx_insn_list *, and use its "insn" method rather than
3170         "element" method.
3171         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3172         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3173         * rtlanal.c (remove_node_from_insn_list): New function, adapted
3174         from remove_node_from_expr_list.
3175         * stmt.c (expand_label): When prepending to
3176         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3177         gen_rtx_EXPR_LIST.
3178
3179 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3180
3181         * function.h (struct rtl_data): Strengthen fields "x_return_label"
3182         and "x_naked_return_label" from rtx to rtx_code_label *.
3183
3184 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3185
3186         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3187         (SET_NEXT_INSN): Likewise.
3188         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3189
3190         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3191         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
3192         to split out the SEQUENCE from local "bundle", strengthening the
3193         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3194         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3195         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3196         and the type of the elements of the "slot" array from rtx to
3197         rtx_insn *.
3198         (reorg_split_calls): Likewise for locals "insn" and "next", and
3199         the type of the elements of the "slot" array.
3200
3201         * config/frv/frv.c (frv_nops): Likewise for the elements of this
3202         array.
3203         (frv_function_prologue): Likewise for locals "insn", "next",
3204         "last_call".
3205         (frv_register_nop): Introduce a local "nop_insn" to be the
3206         rtx_insn * containing rtx "nop".
3207
3208         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3209         used as an insn and sometimes as a pattern, so rename it to
3210         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3211         using it where dealing with the core insn.
3212
3213         * config/picochip/picochip.c (reorder_var_tracking_notes):
3214         Strengthen locals "insn", "next", "last_insn", "queue",
3215         "next_queue", "prev" from rtx to rtx_insn *.
3216
3217         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3218         the second param is an rtx_insn ** rather than an rtx **.
3219         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3220         from rtx to rtx_sequence *, and introduce local named "sequence",
3221         using methods of rtx_sequence to clarify the code.
3222         (remove_insn): Introduce local rtx_sequence * named "sequence" and
3223         use its methods.
3224         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3225         Rename param "after" to "uncast_after", reintroducing "after" as a
3226         local rtx_insn * with a checked cast.
3227         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3228         reintroducing "after" as a local rtx_insn * with a checked cast.
3229         Strengthen local "last" from rtx to rtx_insn * and remove the
3230         now-redundant checked casts.
3231         (copy_delay_slot_insn): Strengthen return type and param from rtx
3232         to rtx_insn *.
3233
3234         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3235         "last" from rtx to rtx_insn *.
3236
3237 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3238
3239         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3240         param from rtx to rtx_insn *.
3241
3242         * emit-rtl.c (copy_delay_slot_insn): Likewise.
3243
3244         * reorg.c (skip_consecutive_labels): Strengthen return type, param
3245         and local "insn" from rtx to rtx_insn *.
3246         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3247         (unfilled_slots_next): Likewise.
3248         (function_return_label): Strengthen from rtx to rtx_code_label *.
3249         (function_simple_return_label): Likewise.
3250         (first_active_target_insn): Strengthen return type and param from
3251         rtx to rtx_insn *.
3252         (find_end_label): Strengthen return type from rtx to
3253         rtx_code_label *; strengthen locals as appropriate.
3254         (emit_delay_sequence): Strengthen return type, param "insn" and
3255         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
3256         and local "li" from rtx to rtx_insn_list *, using methods of
3257         rtx_insn_list for clarity and typesafety.
3258         (add_to_delay_list): Strengthen return type and param "insn" from
3259         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
3260         rtx_insn_list * and use methods of rtx_insn_list.
3261         (delete_from_delay_slot): Strengthen return type, param "insn",
3262         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3263         Strengthen local "seq" from rtx to rtx_sequence *, and local
3264         "delay_list" from rtx to rtx_insn_list *, using methods of
3265         rtx_sequence for clarity and type-safety.
3266         (delete_scheduled_jump): Add checked cast when invoking
3267         delete_from_delay_slot.  Strengthen local "trial" from rtx to
3268         rtx_insn *.
3269         (optimize_skip): Strengthen return type and local "delay_list"
3270         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
3271         rtx_insn *.
3272         (steal_delay_list_from_target): Strengthen return type, param
3273         "delay_list" and local "new_delay_list" from rtx to
3274         rtx_insn_list *.  Strengthen param "seq" from rtx to
3275         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
3276         rtx_insn **.
3277         Split out local "temp" into multiple more-tightly scoped locals:
3278         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
3279         of rtx_insn_list and rtx_sequence for clarity and typesafety.
3280         Strengthen locals named "trial" from rtx to rtx_insn *.
3281         (steal_delay_list_from_fallthrough): Strengthen return type and
3282         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
3283         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
3284         Strengthen local "trial" from rtx to rtx_insn *.
3285         (try_merge_delay_insns): Strength local "merged_insns" from rtx
3286         to rtx_insn_list * and use its methods.  Strengthen local "pat"
3287         from rtx to rtx_sequence * and use its methods.  Strengthen locals
3288         "dtrial" and "new_rtx" from rtx to rtx_insn *.
3289         (get_label_before): Strengthen return type and local "label" from
3290         rtx to rtx_insn *.
3291         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3292         "next_trial", "next", prev".  Strengthen local "delay_list" from
3293         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
3294         rtx_insn **.
3295         (follow_jumps): Strengthen return type, param "label" and locals
3296         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3297         (fill_slots_from_thread): Strengthen return type, param
3298         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
3299         "insn", "thread", "opposite_thread" and locals "new_thread",
3300         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
3301         "sequence" from a checked cast to rtx_sequence so that we can call
3302         steal_delay_list_from_target and steal_delay_list_from_fallthrough
3303         with an rtx_sequence *.
3304         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3305         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3306         Strengthen local "delay_list" from rtx to rtx_insn_list *.
3307         (relax_delay_slots): Strengthen param "first" and locals "insn",
3308         "next", "trial", "delay_insn", "target_label" from rtx to
3309         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
3310         Introduce a local "trial_seq" for PATTERN (trial) of type
3311         rtx_sequence *, in both cases using methods of rtx_sequence.
3312         (dbr_schedule): Strengthen param "first" and locals "insn",
3313         "next", "epilogue_insn" from rtx to rtx_insn *.
3314
3315 2014-08-28  Richard Biener  <rguenther@suse.de>
3316
3317         PR tree-optimization/62283
3318         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3319         Do not peel loops for alignment where the vector loop likely
3320         doesn't run at least VF times.
3321
3322 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
3323
3324         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3325         important_candidates.  Consider all important candidates if
3326         IVS doesn't give any result.  Remove check on ivs->upto.
3327         (try_add_cand_for): Call iv_ca_add_use only once.
3328
3329 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3330             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3331             Anna Tikhonova  <anna.tikhonova@intel.com>
3332             Ilya Tocar  <ilya.tocar@intel.com>
3333             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3334             Ilya Verbin  <ilya.verbin@intel.com>
3335             Kirill Yukhin  <kirill.yukhin@intel.com>
3336             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3337
3338         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3339         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3340         masking.
3341         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3342         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3343         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3344         (define_insn "*mul<mode>3"): Add EVEX version.
3345
3346 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3347             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3348             Anna Tikhonova  <anna.tikhonova@intel.com>
3349             Ilya Tocar  <ilya.tocar@intel.com>
3350             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3351             Ilya Verbin  <ilya.verbin@intel.com>
3352             Kirill Yukhin  <kirill.yukhin@intel.com>
3353             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3354
3355         * config/i386/sse.md
3356         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3357         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3358         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3359         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3360         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3361         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3362         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3363         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3364         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3365         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3366         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3367         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3368         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3369         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3370         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3371         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3372
3373 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3374             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3375             Anna Tikhonova  <anna.tikhonova@intel.com>
3376             Ilya Tocar  <ilya.tocar@intel.com>
3377             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3378             Ilya Verbin  <ilya.verbin@intel.com>
3379             Kirill Yukhin  <kirill.yukhin@intel.com>
3380             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3381
3382         * config/i386/sse.md
3383         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3384         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3385         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3386
3387 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3388             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3389             Anna Tikhonova  <anna.tikhonova@intel.com>
3390             Ilya Tocar  <ilya.tocar@intel.com>
3391             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3392             Ilya Verbin  <ilya.verbin@intel.com>
3393             Kirill Yukhin  <kirill.yukhin@intel.com>
3394             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3395
3396         * config/i386/sse.md
3397         (define_mode_iterator VI128_256): New.
3398         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3399
3400 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3401             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3402             Anna Tikhonova  <anna.tikhonova@intel.com>
3403             Ilya Tocar  <ilya.tocar@intel.com>
3404             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3405             Ilya Verbin  <ilya.verbin@intel.com>
3406             Kirill Yukhin  <kirill.yukhin@intel.com>
3407             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3408
3409         * config/i386/sse.md
3410         (define_mode_iterator VI8_256_512): New.
3411         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3412         Ditto.
3413         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3414         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3415         Ditto.
3416         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3417
3418 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3419
3420         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
3421         pointer to the cumulative reloc value and return the value for
3422         this reloc instead.
3423         (compute_reloc_for_rtx): Take a const_rtx.  Call
3424         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3425         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
3426         for_each_rtx for the CONST case.
3427
3428 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3429
3430         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3431         (mark_constants_in_pattern): ...this new function to iterate over
3432         all the subrtxes.
3433         (mark_constants): Update accordingly.
3434
3435 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3436
3437         * varasm.c: Include rtl-iter.h.
3438         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3439         Remove the pointer to the cumulative hashval_t and just return
3440         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
3441         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3442         Accumulate the hashval_ts here instead of const_rtx_hash_1.
3443
3444 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3445
3446         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3447         Give real type of data parameter.  Remove return value.
3448         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3449         to iterate over subrtxes.
3450
3451 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3452
3453         * var-tracking.c (use_narrower_mode_test): Turn from being a
3454         for_each_rtx callback to being a function that examines each
3455         subrtx itself.
3456         (adjust_mems): Update accordingly.
3457
3458 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3459
3460         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3461         callback to being a function that examines each subrtx itself.
3462         Remove handling of null rtxes.
3463         (add_uses): Update accordingly.
3464
3465 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3466
3467         * var-tracking.c: Include rtl-iter.h.
3468         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3469         to being a function that examines each subrtx itself.
3470         (use_type): Update accordingly.
3471
3472 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3473
3474         * store-motion.c: Include rtl-iter.h.
3475         (extract_mentioned_regs_1): Delete.
3476         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3477         for_each_rtx to iterate over subrtxes.
3478
3479 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3480
3481         * sel-sched.c: Include rtl-iter.h
3482         (count_occurrences_1): Delete.
3483         (count_occurrences_equiv): Turn rtxes into const_rtxes.
3484         Use FOR_EACH_SUBRTX rather than for_each_rtx.
3485
3486 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3487
3488         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3489         * rtlanal.c (tls_referenced_p_1): Delete.
3490         (tls_referenced_p): Take a const_rtx rather than an rtx.
3491         Use FOR_EACH_SUBRTX rather than for_each_rtx.
3492
3493 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3494
3495         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3496         (for_each_inc_dec): Take an rtx rather than an rtx *.
3497         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3498         (cselib_record_sets): Likewise.
3499         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3500         (check_for_inc_dec): Likewise.
3501         * rtlanal.c (for_each_inc_dec_ops): Delete.
3502         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3503         rather than a pointer to the memory address.  Replace
3504         for_each_inc_dec_ops argument with separate function and data
3505         arguments.  Abort on non-autoinc addresses.
3506         (for_each_inc_dec_find_mem): Delete.
3507         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
3508         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3509
3510 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3511
3512         * rtl.h (find_all_hard_regs): Declare.
3513         * rtlanal.c (find_all_hard_regs): New function.
3514         (record_hard_reg_uses_1): Delete.
3515         (record_hard_reg_uses): Use find_all_hard_regs.
3516
3517 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3518
3519         * rtl.h (replace_label_data): Delete.
3520         (replace_label): Take the old label, new label and update-nuses flag
3521         as direct arguments.  Return void.
3522         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3523         * rtlanal.c (replace_label): Update interface as above.  Handle
3524         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
3525         iterator.  Use FOR_EACH_SUBRTX_PTR.
3526
3527 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3528
3529         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3530         with const_rtx parameters.
3531         * varasm.c (get_pool_constant): Likewise.
3532         * rtlanal.c (rtx_referenced_p_1): Delete.
3533         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3534         Assert that the rtx we're looking for is nonnull.  Allow searches
3535         for constant pool SYMBOL_REFs.
3536
3537 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3538
3539         * reload1.c: Include rtl-iter.h.
3540         (note_reg_elim_costly): Turn from being a for_each_rtx callback
3541         to being a function that examines each subrtx itself.
3542         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3543
3544 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3545
3546         * regcprop.c (cprop_find_used_regs_1): Delete.
3547         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3548
3549 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3550
3551         * regcprop.c: Include rtl-iter.h.
3552         (kill_value): Take a const_rtx.
3553         (kill_autoinc_value): Turn from being a for_each_rtx callback
3554         to being a function that examines each subrtx itself.
3555         (copyprop_hardreg_forward_1): Update accordingly.
3556
3557 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3558
3559         * reg-stack.c: Include rtl-iter.h.
3560         (subst_stack_regs_in_debug_insn): Delete.
3561         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3562         instead of for_each_rtx.
3563
3564 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3565
3566         * lower-subreg.c (find_decomposable_subregs): Turn from being
3567         a for_each_rtx callback to being a function that examines each
3568         subrtx itself.  Remove handling of null rtxes.
3569         (decompose_multiword_subregs): Update accordingly.
3570
3571 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3572
3573         * lower-subreg.c (adjust_decomposed_uses): Delete.
3574         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3575         Remove handling of null rtxes.
3576
3577 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3578
3579         * lower-subreg.c: Include rtl-iter.h.
3580         (resolve_subreg_use): Turn from being a for_each_rtx callback
3581         to being a function that examines each subrtx itself.  Remove
3582         handling of null rtxes.
3583         (resolve_reg_notes, resolve_simple_move): Update accordingly.
3584         (decompose_multiword_subregs): Likewise.
3585
3586 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3587
3588         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3589         to being a function that examines each subrtx itself.
3590         (simplify_using_condition, simplify_using_initial_values): Update
3591         accordingly.
3592
3593 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3594
3595         * loop-iv.c: Include rtl-iter.h.
3596         (find_single_def_src): New function.
3597         (replace_single_def_regs): Turn from being a for_each_rtx callback
3598         to being a function that examines each subrtx itself.
3599         (replace_in_expr, simplify_using_initial_values): Update accordingly.
3600
3601 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3602
3603         * jump.c (eh_returnjump_p_1): Delete.
3604         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3605         Remove handling of null rtxes.
3606
3607 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3608
3609         * jump.c: Include rtl-iter.h.
3610         (returnjump_p_1): Delete.
3611         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3612         Remove handling of null rtxes.
3613
3614 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3615
3616         * ira.c: Include rtl-iter.h.
3617         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3618         to being a function that examines each subrtx itself.  Remove
3619         handling of null rtxes.
3620         (update_equiv_regs): Update call accordingly.
3621
3622 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3623
3624         * fwprop.c: Include rtl-iter.h.
3625         (varying_mem_p): Turn from being a for_each_rtx callback to being
3626         a function that examines each subrtx itself.
3627         (propagate_rtx): Update accordingly.
3628
3629 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3630
3631         * function.c: Include rtl-iter.h
3632         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3633         callback to being a function that examines each subrtx itself.
3634         Return the changed flag.
3635         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3636         (instantiate_virtual_regs): Update calls accordingly.
3637
3638 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3639
3640         * final.c: Include rtl-iter.h.
3641         (mark_symbol_ref_as_used): Delete.
3642         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3643         for_each_rtx.
3644
3645 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3646
3647         * emit-rtl.c: Include rtl-iter.h.
3648         (find_auto_inc): Turn from being a for_each_rtx callback to being
3649         a function that examines each subrtx itself.  Assume the first operand
3650         to an RTX_AUTOINC is the automodified register.
3651         (try_split): Update call accordingly.
3652
3653 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3654
3655         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3656         Return a bool, inverting the result so that 0/false means "not ok".
3657         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3658         subrtxes of a CONST.
3659         (mem_loc_descriptor, add_const_value_attribute)
3660         (resolve_addr_in_expr): Update calls accordingly.
3661
3662 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3663
3664         * dwarf2out.c: Include rtl-iter.h.
3665         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3666         Remove unused data parameter.  Return a bool, inverting the result
3667         so that 0/false means "not ok".
3668         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
3669         instead of for_each_rtx.
3670
3671 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3672
3673         * dse.c: Include rtl-iter.h.
3674         (check_mem_read_rtx): Change void * parameter to real type.
3675         Remove return value.
3676         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
3677         for_each_rtx.  Don't handle null rtxes.
3678
3679 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3680
3681         * df-problems.c: Include rtl-iter.h.
3682         (find_memory): Turn from being a for_each_rtx callback to being
3683         a function that examines each subrtx itself.  Continue to look for
3684         volatile references even after a nonvolatile one has been found.
3685         (can_move_insns_across): Update calls accordingly.
3686
3687 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3688
3689         * ddg.c (walk_mems_2, walk_mems_1): Delete.
3690         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3691         to iterate over subrtxes.  Return a bool rather than an int.
3692
3693 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3694
3695         * ddg.c: Include rtl-iter.h.
3696         (mark_mem_use_1): Rename to...
3697         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
3698         instead of for_each_rtx.
3699         (mem_read_insn_p): Update accordingly.
3700
3701 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3702
3703         * cse.c (change_cc_mode_args): Delete.
3704         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3705         a function that examines each subrtx itself.  Take the fields of
3706         change_cc_mode_args as argument and return void.
3707         (cse_change_cc_mode_insn): Update calls accordingly.
3708
3709 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3710
3711         * cse.c (is_dead_reg): Change argument to const_rtx.
3712         (dead_debug_insn_data): Delete.
3713         (is_dead_debug_insn): Expand commentary.  Turn from being a
3714         for_each_rtx callback to being a function that examines
3715         each subrtx itself.  Take the fields of dead_debug_insn_data
3716         as argument.
3717         (delete_trivially_dead_insns): Update call accordingly.
3718
3719 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3720
3721         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
3722         being a for_each_rtx callback to being a function that examines
3723         each subrtx itself.
3724         (cse_extended_basic_block): Update call accordingly.
3725
3726 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3727
3728         * cse.c (check_dependence_data): Delete.
3729         (check_dependence): Change from being a for_each_rtx callback to being
3730         a function that examines all subrtxes itself.  Don't handle null rtxes.
3731         (invalidate): Update call accordingly.
3732
3733 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3734
3735         * cse.c: Include rtl-iter.h.
3736         (approx_reg_cost_1): Delete.
3737         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3738         Don't handle null rtxes.
3739
3740 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3741
3742         * cfgcleanup.c: Include rtl-iter.h.
3743         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3744         to being a function that examines each subrtx itself.
3745         (thread_jump): Update accordingly.
3746
3747 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3748
3749         * combine-stack-adj.c: Include rtl-iter.h.
3750         (record_stack_refs_data): Delete.
3751         (record_stack_refs): Turn from being a for_each_rtx callback
3752         to being a function that examines each subrtx itself.
3753         Take a pointer to the reflist.  Invert sense of return value
3754         so that true means success and false means failure.  Don't
3755         handle null rtxes.
3756         (combine_stack_adjustments_for_block): Update accordingly.
3757
3758 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3759
3760         * combine.c (record_truncated_value): Turn from being a for_each_rtx
3761         callback to a function that takes an rtx and returns a bool
3762         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3763         for_each_rtx.
3764
3765 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3766
3767         * combine.c: Include rtl-iter.h.
3768         (unmentioned_reg_p_1): Delete.
3769         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3770         Don't handle null rtxes.
3771
3772 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3773
3774         * calls.c: Include rtl-iter.h.
3775         (internal_arg_pointer_based_exp_1): Delete.
3776         (internal_arg_pointer_based_exp): Take a const_rtx.
3777         Use FOR_EACH_SUBRTX to iterate over subrtxes.
3778
3779 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3780
3781         * caller-save.c: Include rtl-iter.h.
3782         (add_used_regs_1): Delete.
3783         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3784         to iterate over subrtxes.  Assert that any remaining pseudos
3785         have been spilled.
3786
3787 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3788
3789         * bt-load.c: Include rtl-iter.h.
3790         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3791         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
3792         to iterate over subrtxes.
3793         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3794         find_btr_use rather than btr_referenced_p.
3795
3796 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3797
3798         * alias.c: Include rtl-iter.h.
3799         (refs_newer_value_cb): Delete.
3800         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3801
3802 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3803
3804         * rtl-iter.h: New file.
3805         * rtlanal.c: Include it.
3806         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3807         (generic_subrtx_iterator <T>::add_single_to_queue)
3808         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3809         (generic_subrtx_iterator <T>::free_array): New functions.
3810         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3811         (generic_subrtx_iterator <const_rtx_accessor>)
3812         (generic_subrtx_iterator <rtx_var_accessor>
3813         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3814         (setup_reg_subrtx_bounds): New function.
3815         (init_rtlanal): Call it.
3816
3817 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3818
3819         PR target/62261
3820         * config/sh/sh.md (ashlsi3): Handle negative shift count for
3821         TARGET_SHMEDIA.
3822         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3823
3824 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
3825
3826         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3827
3828 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3829
3830         * rtl.h (JUMP_LABEL_AS_INSN): New.
3831
3832 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3833
3834         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3835         rtx_expr_list **.
3836         (alloc_EXPR_LIST): Strengthen return type from rtx to
3837         rtx_expr_list *.
3838         (remove_free_EXPR_LIST_node): Likewise for param.
3839         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3840         from rtx to rtx_expr_list *.
3841         * sched-int.h (struct deps_desc): Strengthen fields
3842         "pending_read_mems" and "pending_write_mems" from rtx to
3843         rtx_expr_list *.
3844
3845         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3846         rtx to rtx_expr_list *.
3847         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3848         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3849         rtx_expr_list **.
3850         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
3851         from rtx to rtx_expr_list *.
3852         * loop-iv.c (simplify_using_initial_values): Strengthen local
3853         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3854         "pnote_next" from rtx * to rtx_expr_list **.
3855         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
3856         param "exprp" from rtx * to rtx_expr_list **.
3857         (add_insn_mem_dependence): Strengthen local "mem_list" from
3858         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
3859         to rtx_expr_list *.
3860         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3861         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
3862         param "old_mems_p" from rtx * to rtx_expr_list **.
3863         * var-tracking.c (struct adjust_mem_data): Strengthen field
3864         "side_effects" from rtx to rtx_expr_list *.
3865         (adjust_insn): Replace NULL_RTX with NULL when assigning to
3866         rtx_expr_list *.
3867         (prepare_call_arguments): Likewise.
3868
3869 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3870
3871         * function.h (struct rtl_data): Strengthen field
3872         "x_stack_slot_list" from rtx to rtx_expr_list *.
3873
3874         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3875         when assigning to stack_slot_list.
3876
3877 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3878
3879         * function.h (struct rtl_data): Strengthen field
3880         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3881         * rtl.h (remove_node_from_expr_list): Strengthen second param from
3882         rtx * to rtx_expr_list **.
3883
3884         * cfgbuild.c (make_edges): In loop over
3885         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3886         rtx_expr_list *, and use methods of the latter class to clarify
3887         the code.
3888         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3889         rtx_expr_list *, and use methods of the latter class to clarify
3890         the code.
3891         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3892         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3893         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3894         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
3895         to rtx_expr_list *.  Use methods of the latter class to clarify
3896         the code.
3897
3898 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3899
3900         * function.h (struct expr_status): Strengthen field
3901         "x_forced_labels" from rtx to rtx_expr_list *.
3902
3903         * cfgbuild.c (make_edges): Split local "x" into two locals,
3904         strengthening one from rtx to rtx_expr_list *, and using methods
3905         of said class.
3906         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3907         loop over forced_labels, introduce strengthen it from rtx to
3908         rtx_expr_list *, using methods to clarify the code.
3909         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3910         to rtx_expr_list *, using methods of said class to clarify the
3911         code.
3912         * reload1.c (set_initial_label_offsets): Split local "x" into two
3913         per-loop variables, strengthening the first from rtx to
3914         rtx_expr_list * and using methods.
3915
3916 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3917
3918         * coretypes.h (class rtx_expr_list): Add forward declaration.
3919         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3920         * gengenrtl.c (special_rtx): Add EXPR_LIST.
3921         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3922         invariant: GET_CODE (X) == EXPR_LIST.
3923         (is_a_helper <rtx_expr_list *>::test): New.
3924         (rtx_expr_list::next): New.
3925         (rtx_expr_list::element): New.
3926         (gen_rtx_EXPR_LIST): New.
3927
3928 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3929
3930         * varasm.c (mark_constants): Convert a GET_CODE check into a
3931         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3932         Use methods of rtx_sequence to clarify the code.
3933
3934 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3935
3936         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3937         local "seq" via a checked cast, and use methods of rtx_sequence
3938         to simplify the code.
3939
3940 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3941
3942         * resource.c (mark_referenced_resources): Strengthen local
3943         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3944         using methods of rtx_sequence to clarify the code.
3945         (find_dead_or_set_registers): Within the switch statement, convert
3946         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
3947         the JUMP_P handling, introduce another local "seq", adding a
3948         checked cast to rtx_sequence *.  In both cases, use methods of
3949         rtx_sequence to clarify the code.
3950         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3951         via a checked cast, and use methods of rtx_sequence to simplify
3952         the code.
3953
3954 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3955
3956         * reorg.c (redundant_insn): In two places in the function, replace
3957         a check of GET_CODE with a dyn_cast, introducing local "seq", and
3958         usings methods of rtx_sequence to clarify the code.
3959
3960 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3961
3962         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3963         local "seq" with a checked cast, and use methods of rtx_sequence
3964         to clarify the code.
3965
3966 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3967
3968         * function.c (contains): Introduce local "seq" for PATTERN (insn),
3969         with a checked cast, in the region for where we know it's a
3970         SEQUENCE.  Use methods of rtx_sequence.
3971
3972 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3973
3974         * final.c (get_attr_length_1): Replace GET_CODE check with a
3975         dyn_cast, introducing local "seq" and the use of methods of
3976         rtx_sequence.
3977         (shorten_branches): Likewise, introducing local "body_seq".
3978         Strengthen local "inner_insn" from rtx to rtx_insn *.
3979         (reemit_insn_block_notes): Replace GET_CODE check with a
3980         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3981         Use methods of rtx_sequence.
3982         (final_scan_insn): Likewise, introducing local "seq" for when
3983         "body" is known to be a SEQUENCE, using its methods.
3984
3985 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3986
3987         * except.c (can_throw_external): Strengthen local "seq" from rtx
3988         to rtx_sequence *.  Use methods of rtx_sequence.
3989         (insn_nothrow_p): Likewise.
3990
3991 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3992
3993         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3994         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3995         Use methods of rtx_sequence.
3996         (scan_trace): Likewise for local "pat".
3997
3998 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3999
4000         * coretypes.h (class rtx_sequence): Add forward declaration.
4001         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4002         invariant: GET_CODE (X) == SEQUENCE.
4003         (is_a_helper <rtx_sequence *>::test): New.
4004         (is_a_helper <const rtx_sequence *>::test): New.
4005         (rtx_sequence::len): New.
4006         (rtx_sequence::element): New.
4007         (rtx_sequence::insn): New.
4008
4009 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4010
4011         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4012         rtx_insn_list **.
4013         (alloc_INSN_LIST): Strengthen return type from rtx to
4014         rtx_insn_list *.
4015         (copy_INSN_LIST): Likewise for return type and param.
4016         (concat_INSN_LIST): Likewise for both params and return type.
4017         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4018         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
4019         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4020         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
4021
4022         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4023         "implicit_sets", "control_uses", "clobbers" from rtx to
4024         rtx_insn_list *.
4025         (struct deps_desc): Likewise for fields "pending_read_insns",
4026         "pending_write_insns", "pending_jump_insns",
4027         "last_pending_memory_flush", "last_function_call",
4028         "last_function_call_may_noreturn", "sched_before_next_call",
4029         "sched_before_next_jump".
4030         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4031         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4032
4033         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4034         from rtx to rtx_insn_list *.
4035         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4036         rtx_insn_list *.
4037
4038         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4039         to rtx_insn_list **.
4040         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4041         rtx_insn_list *.
4042         (queue_insn): Likewise for local "link".
4043         (struct haifa_saved_data): Strengthen field "insn_queue" from
4044         rtx * to rtx_insn_list **.
4045         (save_backtrack_point): Update allocation of save->insn_queue to
4046         reflect the strengthening of elements from rtx to rtx_insn_list *.
4047         (queue_to_ready): Strengthen local "link" from rtx to
4048         rtx_insn_list *; use methods "next" and "insn" when traversing the
4049         list.
4050         (early_queue_to_ready): Likewise for locals "link", "next_link",
4051         "prev_link".
4052         (schedule_block): Update allocation of insn_queue to reflect the
4053         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
4054         local "link" from rtx to rtx_insn_list *, and use methods when
4055         working it.
4056         (add_to_speculative_block): Strengthen locals "twins" and
4057         "next_node" from rtx to rtx_insn_list *, and use methods when
4058         working with them.  Strengthen local "twin" from rtx to
4059         rtx_insn *, eliminating a checked cast.
4060         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4061         from rtx to rtx_insn_list *, and use methods when working with
4062         them.
4063
4064         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4065         from rtx to rtx_insn_list *, adding a checked cast.
4066         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4067         rtx_insn_list **.
4068         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4069         "newlink" from rtx to rtx_insn_list *.  Strengthen local
4070         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
4071         from rtx to rtx_insn *.
4072         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4073         from rtx to rtx_insn_list *.  Use methods of the latter class.
4074         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4075         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4076         (remove_free_INSN_LIST_node): Strengthen return type and local
4077         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
4078         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
4079         rtx_insn_list *, using "insn" method.
4080
4081         * sched-deps.c (add_dependence_list):  Strengthen param "list"
4082         from rtx to rtx_insn_list *, and use methods when working with it.
4083         (add_dependence_list_and_free):  Strengthen param "listp" from
4084         rtx * to rtx_insn_list **.
4085         (remove_from_dependence_list): Strenghten param "listp" from rtx *
4086         to rtx_insn_list **, and use methods when working with *listp.
4087         (remove_from_both_dependence_lists): Strengthen param "listp" from
4088         rtx * to rtx_insn_list **
4089         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4090         to rtx_insn_list **.  Eliminate local "link", in favor of two new
4091         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4092         respectively.
4093         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4094         by introducing local "cond_deps".
4095         (remove_from_deps): Strengthen param "insn" from rtx to
4096         rtx_insn *.
4097
4098         * sched-rgn.c (concat_insn_mem_list): Strengthen param
4099         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4100         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4101         Use methods of rtx_insn_list.
4102
4103         * store-motion.c (struct st_expr): Strengthen fields
4104         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4105         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4106         rtx_insn_list *.
4107         (find_moveable_store): Split out "tmp" into multiple more-tightly
4108         scoped locals.  Use methods of rtx_insn_list *.
4109         (compute_store_table): Strengthen local "tmp" from rtx to
4110         rtx_insn *.  Use methods of rtx_insn_list *.
4111
4112 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4113
4114         * coretypes.h (class rtx_insn_list): Add forward declaration.
4115         * rtl.h (class rtx_insn_list): New subclass of rtx_def
4116         (is_a_helper <rtx_insn_list *>::test): New.
4117         (rtx_insn_list::next): New.
4118         (rtx_insn_list::insn): New.
4119         (gen_rtx_INSN_LIST): Add prototype.
4120         * emit-rtl.c (gen_rtx_INSN_LIST): New.
4121         * gengenrtl.c (special_rtx): Add INSN_LIST.
4122
4123 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4124
4125         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4126         "prev" from rtx to rtx_insn *.
4127
4128 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4129
4130         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4131         functions.  Require merely an rtx for now, not an rtx_insn *.
4132         (BLOCK_FOR_INSN): Likewise.
4133         (INSN_LOCATION): Likewise.
4134         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4135
4136 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4137
4138         * rtl.h (PATTERN): Convert this macro into a pair of inline
4139         functions, for now, requiring const_rtx and rtx.
4140
4141 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4142
4143         * target.def (unwind_emit): Strengthen param "insn" from rtx to
4144         rtx_insn *.
4145         (final_postscan_insn): Likewise.
4146         (adjust_cost): Likewise.
4147         (adjust_priority): Likewise.
4148         (variable_issue): Likewise.
4149         (macro_fusion_pair_p): Likewise.
4150         (dfa_post_cycle_insn): Likewise.
4151         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4152         (first_cycle_multipass_issue): Likewise.
4153         (dfa_new_cycle): Likewise.
4154         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4155         (speculate_insn): Likewise for param "insn".
4156         (gen_spec_check): Likewise for params "insn" and "label".
4157         (get_insn_spec_ds): Likewise for param "insn".
4158         (get_insn_checked_ds): Likewise.
4159         (dispatch_do): Likewise.
4160         (dispatch): Likewise.
4161         (cannot_copy_insn_p): Likewise.
4162         (invalid_within_doloop): Likewise.
4163         (legitimate_combined_insn): Likewise.
4164         (needed): Likewise.
4165         (after): Likewise.
4166
4167         * doc/tm.texi: Automatically updated to reflect changes to
4168         target.def.
4169
4170         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4171         working with insn.
4172         (schedule_block): Likewise.
4173         (sched_init): Likewise.
4174         (sched_speculate_insn): Strengthen param "insn" from rtx to
4175         rtx_insn *.
4176         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4177         working with insn.
4178         * hooks.c (hook_bool_rtx_true): Rename to...
4179         hook_bool_rtx_insn_true): ...this, and strengthen first param from
4180         rtx to rtx_insn *.
4181         (hook_constcharptr_const_rtx_null): Rename to...
4182         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4183         first param from const_rtx to const rtx_insn *.
4184         (hook_bool_rtx_int_false): Rename to...
4185         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4186         param from rtx to rtx_insn *.
4187         (hook_void_rtx_int): Rename to...
4188         (hook_void_rtx_insn_int): ...this, and strengthen first param from
4189         rtx to rtx_insn *.
4190
4191         * hooks.h (hook_bool_rtx_true): Rename to...
4192         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4193         rtx to rtx_insn *.
4194         (hook_bool_rtx_int_false): Rename to...
4195         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4196         param from rtx to rtx_insn *.
4197         (hook_void_rtx_int): Rename to...
4198         (hook_void_rtx_insn_int): ...this, and strengthen first param from
4199         rtx to rtx_insn *.
4200         (hook_constcharptr_const_rtx_null): Rename to...
4201         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4202         first param from const_rtx to const rtx_insn *.
4203
4204         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4205         and local "prev" from rtx to rtx_insn *.
4206
4207         * sched-int.h (sched_speculate_insn): Strengthen first param from
4208         rtx to rtx_insn *.
4209
4210         * sel-sched.c (create_speculation_check): Likewise for local "label".
4211         * targhooks.c (default_invalid_within_doloop): Strengthen param
4212         "insn" from const_rtx to const rtx_insn *.
4213         * targhooks.h (default_invalid_within_doloop): Strengthen param
4214         from const_rtx to const rtx_insn *.
4215
4216         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4217         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4218
4219         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4220         "insn".
4221         (arc_invalid_within_doloop): Likewise, with const.
4222
4223         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4224         (arm_cannot_copy_insn_p): Likewise for param "insn".
4225         (arm_unwind_emit): Likewise.
4226
4227         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4228         "dep_insn".
4229
4230         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4231         (c6x_variable_issue): Likewise.  Removed now-redundant checked
4232         cast.
4233         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4234
4235         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4236         Likewise for param "insn".
4237         (epiphany_mode_after): Likewise.
4238         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4239         params "insn", "dep_insn".
4240         (epiphany_mode_needed): Likewise for param "insn".
4241         (epiphany_mode_after): Likewise.
4242
4243         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4244         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4245         (ix86_avx_u128_mode_needed): Likewise.
4246         (ix86_i387_mode_needed): Likewise.
4247         (ix86_mode_needed): Likewise.
4248         (ix86_avx_u128_mode_after): Likewise.
4249         (ix86_mode_after): Likewise.
4250         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4251         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4252         (ix86_adjust_priority): Likewise for param "insn".
4253         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4254         (do_dispatch): Likewise.
4255         (has_dispatch): Likewise.
4256         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4257
4258         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4259         reflect renaming of default hook implementation from
4260         hook_constcharptr_const_rtx_null to
4261         hook_constcharptr_const_rtx_insn_null.
4262         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4263         rtx to rtx_insn *.
4264         (ia64_variable_issue): Likewise for param "insn".
4265         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4266         (ia64_dfa_new_cycle): Likewise.
4267         (ia64_get_insn_spec_ds): Likewise.
4268         (ia64_get_insn_checked_ds): Likewise.
4269         (ia64_speculate_insn): Likewise.
4270         (ia64_gen_spec_check): Likewise for params "insn", "label".
4271         (ia64_asm_unwind_emit): Likewise for param "insn".
4272
4273         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4274
4275         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4276         "insn", "def_insn".
4277         (m68k_sched_variable_issue): Likewise for param "insn".
4278
4279         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4280         "def_insn".
4281
4282         * config/microblaze/microblaze.c (microblaze_adjust_cost):
4283         Likewise for params "insn", "dep".
4284
4285         * config/mips/mips.c (mips_adjust_cost): Likewise.
4286         (mips_variable_issue): Likewise for param "insn".
4287         (mips_final_postscan_insn): Likewise.
4288
4289         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4290         for params "insn", "dep".
4291
4292         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4293         "dep_insn".
4294         (pa_adjust_priority): Likewise for param "insn".
4295
4296         * config/picochip/picochip.c (picochip_sched_adjust_cost):
4297         Likewise for params "insn", "dep_insn".
4298
4299         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4300         param "insn".
4301         (rs6000_variable_issue): Likewise.
4302         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4303         (rs6000_debug_adjust_cost): Likewise.
4304         (rs6000_adjust_priority): Likewise for param "insn".
4305         (rs6000_use_sched_lookahead_guard): Likewise.
4306         (get_next_active_insn): Likewise for return type and both params.
4307         (redefine_groups): Likewise for params "prev_head_insn", "tail"
4308         and locals "insn", "next_insn".
4309         (pad_groups): Likewise.
4310
4311         * config/s390/s390.c (s390_adjust_priority): Likewise for param
4312         "insn".
4313         (s390_cannot_copy_insn_p): Likewise.
4314         (s390_sched_variable_issue): Likewise for third param, eliminating
4315         checked cast.
4316         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4317         default hook implementation from hook_constcharptr_const_rtx_null
4318         to hook_constcharptr_const_rtx_insn_null.
4319
4320         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4321         from rtx to rtx_insn *.
4322         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4323         (sh_variable_issue): Likewise for param "insn".
4324         (sh_dfa_new_cycle): Likewise.
4325         (sh_mode_needed): Likewise.
4326         (sh_mode_after): Likewise.
4327
4328         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4329         params "insn", "dep_insn".
4330         (hypersparc_adjust_cost): Likewise.
4331         (sparc_adjust_cost): Likewise.
4332
4333         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4334         param, eliminated checked cast.
4335         (spu_sched_adjust_cost): Likewise for first and third params.
4336
4337         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4338         params "insn" and "dep_insn" from rtx to rtx_insn *.
4339
4340         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4341
4342 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4343
4344         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4345         (set_is_load_p): ...this, updating to work on a SET pattern rather
4346         than an insn.
4347         (is_store_insn): Rename to...
4348         (set_is_store_p): ...this, updating to work on a SET pattern
4349         rather than an insn.
4350         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4351         top of function to where it is needed.  Rewrite the bogus
4352         condition that checks for "insn" and "dep" being PARALLEL to
4353         instead use single_set, introducing locals "insn_set" and
4354         "dep_set".  Given that we only ever returned "cost" for a non-pair
4355         of SETs, bail out early if we don't have a pair of SET.
4356         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4357         use the new locals "insn_set" and "dep_set", and update calls to
4358         is_load_insn and is_store_insn to be calls to set_is_load_p and
4359         set_is_store_p.
4360
4361 2014-08-27  Guozhi Wei  <carrot@google.com>
4362
4363         PR target/62262
4364         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4365         amount before using it.
4366
4367 2014-08-27  Richard Biener  <rguenther@suse.de>
4368
4369         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4370         get_maxval_strlen inside a more useful API.
4371         (gimple_fold_builtin_with_strlen): Remove and fold into ...
4372         (gimple_fold_builtin): ... caller.
4373         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4374         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4375         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4376         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4377         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4378         gimple_fold_builtin_sprintf): Adjust to compute maxval
4379         themselves.
4380
4381 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
4382
4383         PR other/62248
4384         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4385
4386 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4387             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4388             Anna Tikhonova  <anna.tikhonova@intel.com>
4389             Ilya Tocar  <ilya.tocar@intel.com>
4390             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4391             Ilya Verbin  <ilya.verbin@intel.com>
4392             Kirill Yukhin  <kirill.yukhin@intel.com>
4393             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4394
4395         * config/i386/sse.md
4396         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4397         Use `concat_tg_mode' attribute to determine asm register size.
4398
4399 2014-08-27  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/sse.md
4409         (define_mode_iterator VI48_AVX512VL): New.
4410         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4411         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4412         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4413         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4414         with VI1): Change mode iterator.
4415         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4416         with VI_ULOADSTORE_BW_AVX512VL): New.
4417         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4418         with VI_ULOADSTORE_F_AVX512VL): Ditto.
4419         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4420         with VI1): Change mode iterator.
4421         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4422         with VI_ULOADSTORE_BW_AVX512VL): New.
4423         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4424         with VI_ULOADSTORE_F_AVX512VL): Ditto.
4425         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4426         with VI1): Change mode iterator.
4427         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4428         with VI_ULOADSTORE_BW_AVX512VL): New.
4429         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4430         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4431         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4432         (define_insn "<avx512>_storedqu<mode>_mask" with
4433         VI48_AVX512VL): New.
4434         (define_insn "<avx512>_storedqu<mode>_mask" with
4435         VI12_AVX512VL): Ditto.
4436
4437 2014-08-27  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_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4448         (define_mode_iterator VI48_AVX512BW): New.
4449         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4450         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4451         with VI48_AVX2_48_AVX512F): New.
4452         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4453         with VI2_AVX512VL): Ditto.
4454
4455 2014-08-27  Richard Biener  <rguenther@suse.de>
4456
4457         PR middle-end/62239
4458         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4459         (fold_builtin_3): Do not fold strcat_chk here.
4460         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4461         from builtins.c.
4462         (gimple_fold_builtin): Fold strcat_chk here.
4463
4464 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
4465
4466         * dwarf2out.h (dwarf2out_decl): Remove prototype.
4467         * dwarf2out.c (dwarf2out_decl): Make static.
4468
4469 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
4470
4471         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4472
4473 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4474
4475         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4476         from rtx to rtx_insn *.
4477         (cselib_lookup_from_insn): Likewise for final param.
4478         (cselib_subst_to_values_from_insn): Likewise.
4479         (cselib_add_permanent_equiv): Likewise.
4480
4481         * cselib.c (cselib_current_insn): Likewise for this variable.
4482         (cselib_subst_to_values_from_insn): Likewise for param "insn".
4483         (cselib_lookup_from_insn): Likewise.
4484         (cselib_add_permanent_equiv): Likewise for param "insn" and local
4485         "save_cselib_current_insn".
4486         (cselib_process_insn): Replace use of NULL_RTX with NULL.
4487
4488         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4489         from rtx to rtx_insn *.
4490
4491 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4492
4493         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4494         rtx_insn *.
4495
4496 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4497
4498         * df.h (df_dump_insn_problem_function): Strengthen first param of
4499         this callback from const_rtx to const rtx_insn *.
4500         (struct df_insn_info): Strengthen field "insn" from rtx to
4501         rtx_insn *.
4502         (DF_REF_INSN): Eliminate this function, reinstating the older
4503         macro definition.
4504         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4505         (df_reg_defined): Likewise.
4506         (df_find_use): Likewise.
4507         (df_reg_used): Likewise.
4508         (df_dump_insn_top): Strengthen param 1 from const_rtx to
4509         const rtx_insn *.
4510         (df_dump_insn_bottom): Likewise.
4511         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4512         (df_insn_debug_regno): Likewise.
4513         (debug_df_insn): Likewise.
4514         (df_rd_simulate_one_insn): Likewise for param 2.
4515         (df_word_lr_simulate_defs): Likewise for param 1.
4516         (df_word_lr_simulate_uses): Likewise.
4517         (df_md_simulate_one_insn): Likewise for param 2.
4518         (df_simulate_find_noclobber_defs): Likewise for param 1.
4519         (df_simulate_find_defs): Likewise.
4520         (df_simulate_defs): Likewise.
4521         (df_simulate_uses): Likewise.
4522         (df_simulate_one_insn_backwards): Likewise for param 2.
4523         (df_simulate_one_insn_forwards): Likewise.
4524         (df_uses_create): Likewise for param 2.
4525         (df_insn_create_insn_record): Likewise for param 1.
4526         (df_insn_delete): Likewise.
4527         (df_insn_rescan): Likewise.
4528         (df_insn_rescan_debug_internal): Likewise.
4529         (df_insn_change_bb): Likewise.
4530         (df_notes_rescan): Likewise.
4531         * rtl.h (remove_death): Likewise for param 2.
4532         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4533         const rtx_insn *.
4534         * sched-int.h (reemit_notes): Strengthen param from rtx to
4535         rtx_insn *.
4536         * valtrack.h (propagate_for_debug): Likewise for param 1.
4537
4538         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4539         local "tmp_rtx" from const_rtx to const rtx_insn *.
4540         * combine.c (remove_death): Strengthen param "insn" from rtx to
4541         rtx_insn *.
4542         (move_deaths): Likewise for local "where_dead".
4543         * cse.c (delete_trivially_dead_insns): Introduce local
4544         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4545         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4546         rtx_insn *.
4547         (df_reg_defined): Likewise.
4548         (df_find_use): Likewise.
4549         (df_reg_used): Likewise.
4550         (df_dump_insn_problem_data): Strengthen param "insn" from
4551         const_rtx to const rtx_insn *.
4552         (df_dump_insn_top): Likewise.
4553         (df_dump_insn_bottom): Likewise.
4554         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4555         (df_insn_debug_regno): Likewise.
4556         (debug_df_insn): Likewise.
4557         (DF_REF_INSN): Delete.
4558         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4559         from rtx to rtx_insn *.
4560         (df_chain_insn_top_dump): Strengthen param "insn" from
4561         const_rtx to const rtx_insn *.
4562         (df_chain_insn_bottom_dump): Likewise.
4563         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4564         rtx_insn *.
4565         (df_word_lr_simulate_uses): Likewise.
4566         (df_print_note): Likewise.
4567         (df_remove_dead_and_unused_notes): Likewise.
4568         (df_set_unused_notes_for_mw): Likewise.
4569         (df_set_dead_notes_for_mw): Likewise.
4570         (df_create_unused_note): Likewise.
4571         (df_simulate_find_defs): Likewise.
4572         (df_simulate_find_uses): Likewise.
4573         (df_simulate_find_noclobber_defs): Likewise.
4574         (df_simulate_defs): Likewise.
4575         (df_simulate_uses): Likewise.
4576         (df_simulate_one_insn_backwards): Likewise.
4577         (df_simulate_one_insn_forwards): Likewise.
4578         (df_md_simulate_one_insn): Likewise.
4579         * df-scan.c (df_uses_create): Likewise.
4580         (df_insn_create_insn_record): Likewise.
4581         (df_insn_delete): Likewise.
4582         (df_insn_rescan): Likewise.
4583         (df_insn_rescan_debug_internal): Likewise.
4584         (df_insn_change_bb): Likewise.
4585         (df_notes_rescan): Likewise.
4586         (df_refs_add_to_chains): Likewise.
4587         (df_insn_refs_verify): Likewise.
4588         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4589         when invoking df_insn_delete.
4590         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4591         (set_unique_reg_note): Add checked cast.
4592         * final.c (cleanup_subreg_operands): Likewise.
4593         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4594         "insn" from rtx to rtx_insn *.
4595         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4596         "last" from rtx to rtx_insn *.
4597         * ira-emit.c (change_regs_in_insn): New function.
4598         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4599         Invoke change_regs_in_insn rather than change_regs.
4600         * ira.c (update_equiv_regs): Strengthen locals "insn",
4601         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
4602         for_each_rtx_in_insn rather than for_each_rtx.
4603         * recog.c (confirm_change_group): Add checked casts.
4604         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4605         Add checked cast.
4606         (peep2_fill_buffer): Add checked cast.
4607         * rtlanal.c (remove_note): Likewise.
4608         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4609         locals "next" "end" from rtx to rtx_insn *.
4610
4611 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4612
4613         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4614         to rtx_insn *.
4615         (struct reg_use_data): Likewise for field "insn".
4616         (insn_cost): Likewise for param.
4617         (real_insn_for_shadow): Likewise for return type and param.
4618         (increase_insn_priority): Likewise for param 1.
4619         (debug_dependencies): Likewise for both params.
4620
4621         * haifa-sched.c (insn_delay): Likewise for param "insn".
4622         (real_insn_for_shadow): Likewise for return type and param "insn".
4623         (update_insn_after_change): Likewise for param "insn".
4624         (recompute_todo_spec): Likewise for param "next" and locals "pro",
4625         "other".
4626         (insn_cost): Likewise for param "insn".
4627         (increase_insn_priority): Likewise.
4628         (calculate_reg_deaths): Likewise.
4629         (setup_insn_reg_pressure_info): Likewise.
4630         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4631         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4632         (model_recompute): Likewise.
4633         (must_restore_pattern_p): Likewise for param "next".
4634         (model_excess_cost): Likewise for param "insn".
4635         (queue_remove): Likewise.
4636         (adjust_priority): Likewise for param "prev".
4637         (update_register_pressure): Likewise for param "insn".
4638         (setup_insn_max_reg_pressure): Likewise for local "insn".
4639         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4640         (model_add_to_schedule): Likewise.
4641         (model_reset_queue_indices): Likewise for local "insn".
4642         (unschedule_insns_until): Strengthen local "recompute_vec" from
4643         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
4644         "con" from rtx to rtx_insn *.
4645         (restore_last_backtrack_point): Likewise for both locals "x". Add
4646         checked casts.
4647         (estimate_insn_tick): Likewise for param "insn".
4648         (commit_schedule): Likewise for params "prev_head", "tail" and
4649         local "x".
4650         (verify_shadows): Likewise for locals "i1", "i2".
4651         (dump_insn_stream): Likewise for params "head", "tail" and locals
4652         "next_tail", "insn".
4653         (schedule_block): Likewise for locals "insn", "x".  Add a checked
4654         cast.
4655         (fix_inter_tick): Likewise for params "head", "tail".
4656         (create_check_block_twin): Likewise for local "jump".
4657         (haifa_change_pattern): Likewise for param "insn".
4658         (haifa_speculate_insn): Likewise.
4659         (dump_new_block_header): Likewise for params "head", "tail".
4660         (fix_jump_move): Likewise for param "jump".
4661         (move_block_after_check): Likewise.
4662         (sched_init_insn_luid): Likewise for param "insn".
4663         (sched_init_luids): Likewise for local "insn".
4664         (insn_luid): Likewise for param "insn".
4665         (init_h_i_d): Likewise.
4666         (haifa_init_h_i_d): Likewise for local "insn".
4667         (haifa_init_insn): Likewise for param "insn".
4668         * sched-deps.c (add_dependence): Likewise for local "real_pro",
4669         "other".
4670         (create_insn_reg_use): Likewise for param "insn".
4671         (setup_insn_reg_uses): Likewise.  Add a checked cast.
4672         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4673         "tail" from rtx to rtx_insn *.
4674         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4675         "insn", "next_tail".
4676
4677 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4678
4679         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4680         from rtx to rtx_insn *.
4681         (model_add_to_schedule): Likewise for locals "start", "end",
4682         "iter".
4683
4684 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4685
4686         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4687         rtx_insn *.
4688         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
4689         "to" and locals "insn", "next", "copy".  Remove now-redundant
4690         checked cast.
4691
4692 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4693
4694         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4695         rtx_insn * and param 4 from rtx * to rtx_insn **.
4696         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4697         param 2 from rtx * to rtx_insn **.
4698
4699         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4700         rtx_insn * and final param from rtx * to rtx_insn **.
4701
4702         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4703         from rtx to rtx_insn *.
4704         (try_head_merge_bb): Likewise for both locals named "move_upto".
4705         * df-problems.c (can_move_insns_across): Likewise for params
4706         "from", "to", "across_from", "across_to" and locals "insn",
4707         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
4708         rtx_insn **.
4709         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4710         from rtx to rtx_insn *.
4711         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4712         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
4713         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4714         rtx_insn *.
4715         (noce_try_abs): Likewise.
4716         (noce_get_condition): Likewise for param "jump".  Strengthen param
4717         "earliest" from rtx * to rtx_insn **.
4718         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4719         rtx_insn *.
4720         (find_cond_trap): Likewise.
4721         (dead_or_predicable): Likewise for local "earliest".
4722         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
4723         checked cast.
4724         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4725         and local "prev".  Strengthen param "earliest" from rtx * to
4726         rtx_insn **.
4727         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4728         Strengthen param "earliest" from rtx * to rtx_insn **.
4729
4730 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4731
4732         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4733         "to" and local "insn" from rtx to rtx_insn *.
4734
4735 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4736
4737         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4738         from rtx to rtx_insn *.
4739         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4740         (code_motion_path_driver): Likewise for local "last_insn".
4741         (simplify_changed_insns): Likewise for local "insn".
4742
4743 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4744
4745         * rtl.h (push_to_sequence): Strengthen param from rtx to
4746         rtx_insn *.
4747         (push_to_sequence2): Likewise for both params.
4748         (delete_insns_since): Likewise for param.
4749         (reorder_insns_nobb): Likewise for all three params.
4750         (set_new_first_and_last_insn): Likewise for both params.
4751
4752         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4753         rtx_insn *.  Remove now-redundant cast.
4754         (set_last_insn): Likewise.
4755
4756         * builtins.c (expand_builtin_return): Strengthen local
4757         "call_fusage" from rtx to rtx_insn *.
4758         * cfgrtl.c (create_basic_block_structure): Likewise for local
4759         "after".
4760         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4761         "first", "last" and local "insn".
4762         (delete_insns_since): Likewise for param "from".
4763         (reorder_insns_nobb): Likewise for params "from", "to", "after"
4764         and local "x".
4765         (push_to_sequence): Likewise for param "first" and local "last".
4766         (push_to_sequence2): Likewise for params "first" and "last".
4767         * lra.c (emit_add3_insn): Likewise for local "last".
4768         (lra_emit_add): Likewise.
4769         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4770         "last_insn".
4771         (process_address_1): Likewise for locals "insn", last".
4772         * modulo-sched.c (ps_first_note): Likewise for return type.
4773         * optabs.c (expand_binop_directly): Likewise for param "last".
4774
4775 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4776
4777         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4778         to rtx_insn*.
4779         * emit-rtl.c (get_last_insn_anywhere): Likewise.
4780
4781 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4782
4783         * function.h (struct sequence_stack): Strengthen fields "first"
4784         and "last" from rtx to rtx_insn *.
4785         (struct emit_status): Likewise for fields "x_first_insn" and
4786         "x_last_insn".
4787
4788         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4789         (set_first_insn): Add checked cast.
4790         (get_last_insn): Remove now-redundant checked cast.
4791         (set_last_insn): Add checked cast.
4792
4793         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4794         "saved_first" and "saved_last" from rtx to rtx_insn *.
4795
4796 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4797
4798         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4799         (unlink_insn_chain): Strengthen both params from rtx to
4800         rtx_insn *.
4801
4802         * cfgrtl.c (cfg_layout_function_header): Likewise for this
4803         variable.
4804         (unlink_insn_chain): Likewise for params "first" and "last".
4805         Remove now-redundant checked cast.
4806         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4807         (fixup_reorder_chain): Strengthen local "insn" from rtx to
4808         rtx_insn *.
4809         * emit-rtl.c (link_insn_into_chain): Likewise for all three
4810         params.
4811         (add_insn): Likewise for param "insn" and local "prev".
4812         (add_insn_after_nobb): Likewise for both params and local "next".
4813         (add_insn_before_nobb): Likewise for both params and local "prev".
4814         (add_insn_after): Rename param "after" to "uncast_after",
4815         introducing local "after" with another checked cast.
4816         (add_insn_before): Rename params "insn" and "before", giving them
4817         "uncast_" prefixes, adding the old names back using checked casts.
4818         (emit_note_after): Likewise for param "after".
4819         (emit_note_before): Likewise for param "before".
4820         (emit_label): Add a checked cast.
4821
4822 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4823
4824         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
4825         "insn" from rtx to rtx_insn *.
4826
4827         * cselib.c (cselib_record_sets_hook): Likewise.
4828
4829         * var-tracking.c (add_with_sets): Likewise, renaming back from
4830         "uncast_insn" to "insn" and eliminating the checked cast from rtx
4831         to rtx_insn *.
4832
4833 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4834
4835         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4836         and "header_" from rtx to rtx_insn *.
4837         (struct basic_block_d): Likewise for field "head_" within "x"
4838         field of union basic_block_il_dependent.
4839         (BB_HEAD): Drop function...
4840         (SET_BB_HEAD): ...and this function in favor of...
4841         (BB_HEAD): ...reinstate macro.
4842         (BB_END): Drop function...
4843         (SET_BB_END): ...and this function in favor of...
4844         (BB_END): ...reinstate macro.
4845         (BB_HEADER): Drop function...
4846         (SET_BB_HEADER): ...and this function in favor of...
4847         (BB_HEADER): ...reinstate macro.
4848
4849         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4850         (fix_crossing_unconditional_branches): Likewise.
4851         * caller-save.c (save_call_clobbered_regs): Likewise.
4852         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4853         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4854         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4855         (merge_blocks_move_successor_nojumps): Likewise.
4856         (outgoing_edges_match): Update use of for_each_rtx to
4857         for_each_rtx_in_insn.
4858         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4859         (expand_gimple_cond): Likewise.
4860         (expand_gimple_tailcall): Likewise.
4861         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4862         SET_BB_END.
4863         (construct_exit_block): Drop use of SET_BB_END.
4864         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4865         rtx_insn *.
4866         (delete_insn): Rename param "insn" to "uncast_insn", introducing
4867         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
4868         SET_BB_HEAD and SET_BB_END.
4869         (create_basic_block_structure): Drop use of SET_BB_HEAD and
4870         SET_BB_END.
4871         (rtl_delete_block): Drop use of SET_BB_HEAD.
4872         (rtl_split_block): Drop use of SET_BB_END.
4873         (emit_nop_for_unique_locus_between): Likewise.
4874         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4875         (block_label): Drop use of SET_BB_HEAD.
4876         (fixup_abnormal_edges): Drop use of SET_BB_END.
4877         (record_effective_endpoints): Drop use of SET_BB_HEADER.
4878         (relink_block_chain): Likewise.
4879         (fixup_reorder_chain): Drop use of SET_BB_END.
4880         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4881         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4882         rtx_insn **.  Drop use of SET_BB_HEADER.
4883         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4884         SET_BB_HEAD.
4885         (BB_HEAD): Delete this function.
4886         (SET_BB_HEAD): Likewise.
4887         (BB_END): Likewise.
4888         (SET_BB_END): Likewise.
4889         (BB_HEADER): Likewise.
4890         (SET_BB_HEADER): Likewise.
4891         * emit-rtl.c (add_insn_after):  Rename param "insn" to
4892         "uncast_insn", adding a new local "insn" and a checked cast to
4893         rtx_insn *.  Drop use of SET_BB_END.
4894         (remove_insn): Strengthen locals "next" and "prev" from rtx to
4895         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
4896         (reorder_insns): Drop use of SET_BB_END.
4897         (emit_insn_after_1): Strengthen param "first" and locals "last",
4898         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
4899         (emit_pattern_after_noloc): Add checked cast.
4900         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4901         (restore_other_notes): Likewise.
4902         (move_insn): Likewise.
4903         (sched_extend_bb): Likewise.
4904         (fix_jump_move): Likewise.
4905         * ifcvt.c (noce_process_if_block): Likewise.
4906         (dead_or_predicable): Likewise.
4907         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4908         * reg-stack.c (change_stack): Drop use of SET_BB_END.
4909         * sel-sched-ir.c (sel_move_insn): Likewise.
4910         * sel-sched.c (move_nop_to_previous_block): Likewise.
4911
4912         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4913         SET_BB_END.
4914         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4915
4916 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4917
4918         * basic-block.h (create_basic_block_structure): Strengthen params
4919         1 "head" and 2 "end" from rtx to rtx_insn *.
4920         * cfgrtl.c (create_basic_block_structure): Likewise.
4921         (rtl_create_basic_block): Update casts from void * to rtx to
4922         rtx_insn *, so that we can pass them as rtx_insn * to
4923         create_basic_block_structure.
4924         * sel-sched-ir.c (sel_create_basic_block): Likewise.
4925
4926 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4927
4928         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4929         rtx_insn **.
4930         (check_for_inc_dec): Strengthen param "insn" from rtx to
4931         rtx_insn *.
4932
4933         * cselib.h (cselib_process_insn): Likewise.
4934
4935         * cselib.c (cselib_record_sets): Likewise.
4936         (cselib_process_insn): Likewise.
4937
4938         * dse.c (struct insn_info): Likewise for field "insn".
4939         (check_for_inc_dec_1): Likewise for local "insn".
4940         (check_for_inc_dec): Likewise for param "insn".
4941         (scan_insn): Likewise.
4942         (dse_step1): Likewise for local "insn".
4943
4944         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4945         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
4946
4947 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4948
4949         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4950         from rtx to rtx_insn *.
4951         (DEP_PRO): Delete this function and...
4952         (SET_DEP_PRO): ...this function in favor of...
4953         (DEP_PRO): ...reinstate this macro.
4954         (DEP_CON): Delete this function and...
4955         (SET_DEP_CON): ...this function in favor of...
4956         (DEP_CON): ...reinstate this old macro.
4957         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4958         (init_dep): Likewise.
4959         (set_priorities): Likewise for both params.
4960         (sd_copy_back_deps): Likewise for params 1 and 2.
4961
4962         * haifa-sched.c (priority): Likewise for param "insn" and local
4963         "next".
4964         (set_priorities): Likewise for params "head" and "tail" and local
4965         "insn".
4966         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4967         local "consumer".
4968         (add_to_speculative_block): Add a checked cast.
4969         (create_check_block_twin): Drop use of SET_DEP_CON.
4970         (add_jump_dependencies): Strengthen params "insn" and "jump" from
4971         rtx to rtx_insn *.
4972
4973         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4974         Drop use of SET_DEP_PRO
4975         (init_dep): Strengthen params "pro" and "con" from rtx to
4976         rtx_insn *.
4977         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
4978         use of SET_DEP_CON.
4979         (DEP_PRO): Delete.
4980         (DEP_CON): Delete.
4981         (SET_DEP_PRO): Delete.
4982         (SET_DEP_CON): Delete.
4983
4984 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4985
4986         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4987         from rtx to rtx_insn *.
4988         (VINSN_INSN_RTX): Eliminate rvalue function and...
4989         (SET_VINSN_INSN): ...lvalue function in favor of...
4990         (VINSN_INSN_RTX): reinstate this old macro.
4991
4992         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4993         in favor of VINSN_INSN_RTX.
4994         (VINSN_INSN_RTX): Delete this function.
4995         (SET_VINSN_INSN_RTX): Likewise.
4996
4997 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4998
4999         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5000         (BND_TO): Delete this function and...
5001         (SET_BND_TO): ...this functions in favor of...
5002         (BND_TO): ...reinstating this macro.
5003         (struct _fence): Strengthen field "executing_insns" from
5004         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
5005         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5006         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5007         and param "insn" from rtx to insn_t.
5008         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5009         rtx_insn *.
5010
5011         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5012         vec<rtx_insn *> .
5013         (rtx_vec_t): Likewise.
5014         (struct sched_deps_info_def): Strengthen param of "start_insn"
5015         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
5016         "note_mem_dep" callback and first param of "note_dep" callback.
5017
5018         * haifa-sched.c (add_to_speculative_block): Strengthen param
5019         "insn" from rtx to rtx_insn *.
5020         (clear_priorities): Likewise.
5021         (calc_priorities): Likewise for local "insn".
5022
5023         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5024         Remove redundant checked cast.
5025         (haifa_note_mem_dep): Likewise for param "pending_insn".
5026         (haifa_note_dep): Likewise for param "elem".
5027         (note_mem_dep): Likewise for param "e".
5028         (sched_analyze_1): Add checked casts.
5029         (sched_analyze_2): Likewise.
5030
5031         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5032         from rtx to rtx_insn *.
5033         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5034         from vec<rtx> * to vec<rtx_insn *> *.
5035
5036         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5037         scaffolding.
5038         (flist_add): Strengthen param "executing_insns" from
5039         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5040         (advance_deps_context): Remove now-redundant checked cast.
5041         (init_fences): Replace uses of NULL_RTX with NULL.
5042         (merge_fences): Strengthen params "last_scheduled_insn" and
5043         "sched_next" from rtx to rtx_insn * and "executing_insns" from
5044         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5045         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5046         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5047         an instruction, rather than doing double-duty as a pattern.
5048         (return_nop_to_pool): Update for change of insn_t.
5049         (deps_init_id): Remove now-redundant checked cast.
5050         (struct sched_scan_info_def): Strengthen param of "init_insn"
5051         callback from rtx to insn_t.
5052         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5053         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5054         NULL.
5055         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5056         "end" from rtx to rtx_insn *.
5057         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5058         (rtx insn_rtx, bool force_unique_p)
5059         (BND_TO): Delete function.
5060         (SET_BND_TO): Delete function.
5061
5062         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5063         rtx to rtx_insn *.
5064         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5065         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5066         rtx to rtx_insn *.
5067         (undo_transformations): Likewise for param "insn".
5068         (update_liveness_on_insn): Likewise.
5069         (compute_live_below_insn): Likewise for param "insn" and local
5070         "succ".
5071         (update_data_sets): Likewise for param "insn".
5072         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5073         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5074         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5075         rtx_insn *.
5076         (move_cond_jump): Likewise for param "insn".
5077         (move_cond_jump): Drop use of SET_BND_TO.
5078         (compute_av_set_on_boundaries): Likewise.
5079         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5080         (update_and_record_unavailable_insns): Strengthen local "bb_end"
5081         from rtx to rtx_insn *.
5082         (maybe_emit_renaming_copy): Likewise for param "insn".
5083         (maybe_emit_speculative_check): Likewise.
5084         (handle_emitting_transformations): Likewise.
5085         (remove_insn_from_stream): Likewise.
5086         (code_motion_process_successors): Strengthen local "succ" from rtx
5087         to insn_t.
5088
5089 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5090
5091         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5092         ilist_t, not _xlist_t;
5093         (ILIST_INSN): Define in terms of new union field "insn".
5094         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5095         _XLIST_NEXT.
5096         (struct _list_node): Add new field "insn" to the union, of type
5097         insn_t.
5098         (ilist_add): Replace macro with an inline function, requiring an
5099         insn_t.
5100         (ilist_remove): Define this macro directly in terms of
5101         _list_remove, rather than indirectly via _xlist_remove.
5102         (ilist_clear): Likewise, in terms of _list_clear rather than
5103         _xlist_clear.
5104         (ilist_is_in_p): Replace macro with an inline function, requiring
5105         an insn_t.
5106         (_list_iter_cond_insn): New function.
5107         (ilist_iter_remove): Define this macro directly in terms of
5108         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5109         (ilist_iterator): Define directly in terms of _list_iterator
5110         rather than indirectly through _xlist_iterator.
5111         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5112         than in terms of _FOR_EACH_X.
5113         (FOR_EACH_INSN_1): Likewise.
5114
5115 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
5116
5117         PR target/60606
5118         PR target/61330
5119         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5120         DECL_HARD_REGISTER and return for invalid register specifications.
5121         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5122         DECL_HARD_REGISTER, call expand_one_error_var.
5123         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5124         CC_REGNUM with non-MODE_CC modes.
5125         (arm_regno_class): Return NO_REGS for PC_REGNUM.
5126
5127 2014-08-26  Marek Polacek  <polacek@redhat.com>
5128
5129         PR c/61271
5130         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5131
5132 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
5133
5134         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5135         qi cost; add di cost.
5136         (cortexa57_addrcost_table): Likewise.
5137
5138 2014-08-26  Marek Polacek  <polacek@redhat.com>
5139
5140         PR c/61271
5141         * expr.c (is_aligning_offset): Remove logical not.
5142
5143 2014-08-26  Marek Polacek  <polacek@redhat.com>
5144
5145         PR c/61271
5146         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5147         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5148
5149 2014-08-26  Richard Biener  <rguenther@suse.de>
5150
5151         PR tree-optimization/62175
5152         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5153         expand possibly trapping operations.
5154
5155 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5156
5157         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5158         "insn" from rtx to rtx_insn *.
5159         (permute_load): Likewise for param "insn".
5160         (permute_store): Likewise.
5161         (handle_special_swappables): Likewise for local "insn".
5162         (replace_swap_with_copy): Likewise for locals "insn" and
5163         "new_insn".
5164         (rs6000_analyze_swaps): Likewise for local "insn".
5165
5166 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5167
5168         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5169         to rtx_insn *.
5170
5171 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5172
5173         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5174         "note_list" from rtx to rtx_insn *.
5175         (BB_NOTE_LIST): Replace this function and...
5176         (SET_BB_NOTE_LIST): ...this function with...
5177         (BB_NOTE_LIST): ...the former macro implementation.
5178
5179         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5180         local "from_start" from rtx to rtx_insn *.  Strengthen param
5181         "to_endp" from rtx * to rtx_insn **.
5182
5183         * haifa-sched.c (concat_note_lists): Likewise.
5184         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5185         BB_NOTE_LIST.
5186         (sel_restore_notes): Likewise.
5187         (move_bb_info): Likewise.
5188         (BB_NOTE_LIST): Delete this function.
5189         (SET_BB_NOTE_LIST): Delete this function.
5190         * sel-sched.c (create_block_for_bookkeeping): Eliminate
5191         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5192
5193 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5194
5195         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5196         from rtx * to rtx_insn **.
5197         (reorder2): Likewise.
5198         (dependencies_evaluation_hook): Strengthen params "head", "tail"
5199         from rtx to rtx_insn *.
5200
5201         * doc/tm.texi: Update mechanically for above change to target.def.
5202
5203         * sched-int.h (note_list): Strengthen this variable from rtx to
5204         rtx_insn *.
5205         (remove_notes): Likewise for both params.
5206         (restore_other_notes): Likewise for return type and first param.
5207         (struct ready_list): Strengthen field "vec" from rtx * to
5208         rtx_insn **.
5209         (struct dep_replacement): Strenghten field "insn" from rtx to
5210         rtx_insn *.
5211         (struct deps_desc): Likewise for fields "last_debug_insn",
5212         "last_args_size".
5213         (struct haifa_sched_info): Likewise for callback field
5214         "can_schedule_ready_p"'s param, for first param of "new_ready"
5215         callback field, for both params of "rank" callback field, for
5216         first field of "print_insn" callback field (with a const), for
5217         both params of "contributes_to_priority" callback, for param
5218         of "insn_finishes_block_p" callback, for fields "prev_head",
5219         "next_tail", "head", "tail", for first param of "add_remove_insn"
5220         callback, for first param of "begin_schedule_ready" callback, for
5221         both params of "begin_move_insn" callback, and for second param
5222         of "advance_target_bb" callback.
5223         (add_dependence): Likewise for params 1 and 2.
5224         (sched_analyze): Likewise for params 2 and 3.
5225         (deps_analyze_insn): Likewise for param 2.
5226         (ready_element): Likewise for return type.
5227         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5228         (try_ready): Strenghten param from rtx to rtx_insn *.
5229         (sched_emit_insn): Likewise for return type.
5230         (record_delay_slot_pair): Likewise for params 1 and 2.
5231         (add_delay_dependencies): Likewise for param.
5232         (contributes_to_priority): Likewise for both params.
5233         (find_modifiable_mems): Likewise.
5234
5235         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
5236         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
5237         "first_older_only_insn" from rtx to rtx_insn *.
5238         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
5239         rtx_insn **.
5240
5241         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5242         "last_scheduled_iter0" from rtx to rtx_insn *.
5243         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5244         (c6x_sched_reorder_1): Strengthen param "ready" and locals
5245         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
5246         "insn" from rtx to rtx_insn *.
5247         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5248         rtx_insn **.
5249         (c6x_sched_reorder2): Strengthen param "ready" and locals
5250         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5251         "insn" from rtx to rtx_insn *.
5252         (c6x_variable_issue):  Add a checked cast when assigning from insn
5253         to ss.last_scheduled_iter0.
5254         (split_delayed_branch): Strengthen param "insn" and local "i1"
5255         from rtx to rtx_insn *.
5256         (split_delayed_nonbranch): Likewise.
5257         (undo_split_delayed_nonbranch): Likewise for local "insn".
5258         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5259         "entry_after", "end_packet", "head_insn", "tail_insn",
5260         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5261         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5262         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
5263         but add a checked cast on loop->start_label.  Consolidate calls to
5264         avoid assigning result of gen_spkernel to "insn", now an
5265         rtx_insn *.
5266
5267         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5268         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
5269         rtx to rtx_insn *.
5270         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5271         rtx_insn **.  Strengthen locals "top", "next" from rtx to
5272         rtx_insn *.
5273         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5274         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
5275         (add_parameter_dependencies): Strengthen params "call", "head" and
5276         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5277         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5278         (add_dependee_for_func_arg): Likewise for param "arg" and local
5279         "insn".
5280         (ix86_dependencies_evaluation_hook): Likewise for params "head",
5281         "tail" and locals "insn", "first_arg".
5282
5283         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5284         for params "head", "tail" and locals "insn", "next", "next_tail".
5285         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5286         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5287         "insn", "lowest", "highest" from rtx to rtx_insn *.
5288         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5289         rtx_insn **.
5290         (ia64_sched_reorder2): Likewise.
5291
5292         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5293         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
5294         from rtx * to rtx_insn **.
5295         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5296         rtx_insn **.
5297         (mep_print_sched_insn): Strengthen param "insn" from rtx to
5298         rtx_insn *.
5299         (mep_sched_reorder): Strengthen param "ready" from rtx * to
5300         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
5301         to rtx_insn *.
5302
5303         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5304         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
5305         to rtx_insn *.
5306         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5307         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
5308         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5309         rtx_insn **.
5310         (vr4130_reorder): Likewise.
5311         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
5312         rtx to rtx_insn *.
5313         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5314         rtx_insn **.
5315         (mips_sched_reorder): Likewise.
5316         (mips_sched_reorder2): Likewise.
5317
5318         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5319
5320         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5321         Strengthen local "tmp" from rtx to rtx_insn *.
5322         (rs6000_sched_reorder2): Likewise.
5323
5324         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5325         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5326         (s390_sched_reorder): Strengthen param "ready" from rtx * to
5327         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
5328
5329         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5330         "tmp2" from rtx to rtx_insn *.
5331         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5332         Strengthen local "insn" from rtx to rtx_insn *.
5333         (ready_reorder): Strengthen param "ready" from rtx * to
5334         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5335         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
5336         (sh_reorder2): Likewise.
5337
5338         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
5339         local "insn" from rtx to rtx_insn *.
5340
5341         * haifa-sched.c (note_list): Strengthen this variable from rtx to
5342         rtx_insn *.
5343         (scheduled_insns): Strengthen this variable from vec<rtx> to
5344         vec<rtx_insn *>.
5345         (set_modulo_params): Likewise for locals "i1", "i2".
5346         (record_delay_slot_pair): Likewise for params "i1", "i2".
5347         (add_delay_dependencies): Likewise for param "insn".
5348         (cond_clobbered_p): Likewise.
5349         (recompute_todo_spec): Likewise for local "prev".
5350         (last_scheduled_insn): Likewise for this variable.
5351         (nonscheduled_insns_begin): Likewise.
5352         (model_set_excess_costs): Strengthen param "insns" from rtx * to
5353         rtx_insn **.
5354         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5355         rtx_insn *.
5356         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5357         Strengthen local "insn" from rtx to rtx_insn *.
5358         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5359         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5360         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5361         (ready_remove_first): Likewise for return type and local "t".
5362         (ready_element): Likewise for return type.
5363         (ready_remove): Likewise for return type and local "t".
5364         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5365         (check_clobbered_conditions): Strengthen local "x" from rtx to
5366         rtx_insn *, adding a checked cast.
5367         (schedule_insn): Likewise for param "insn".
5368         (remove_notes): Likewise for params "head", "tail" and locals
5369         "next_tail", "insn", "next".
5370         (struct haifa_saved_data): Likewise for fields
5371         "last_scheduled_insn", "nonscheduled_insns_begin".
5372         (save_backtrack_point): Update for change to field "vec" of
5373         struct ready_list.
5374         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5375         rtx_insn **.
5376         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
5377         from rtx to rtx_insn *
5378         (resolve_dependencies): Strengthen param "insn" from rtx to
5379         rtx_insn *
5380         (restore_other_notes): Likewise for return type, for param "head"
5381         and local "note_head".
5382         (undo_all_replacements): Likewise for local "insn".
5383         (first_nonscheduled_insn): Likewise for return type and local "insn".
5384         (queue_to_ready): Likewise for local "insn", adding checked casts.
5385         (early_queue_to_ready): Likewise for local "insn".
5386         (debug_ready_list_1): Strengthen local "p" from rtx * to
5387         rtx_insn **.
5388         (move_insn): Strengthen param "insn" and local "note" from rtx to
5389         rtx_insn *
5390         (insn_finishes_cycle_p): Likewise for param "insn".
5391         (max_issue): Likewise for local "insn".
5392         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
5393         to rtx_insn **.
5394         (commit_schedule): Strengthen param "prev_head" and local "insn"
5395         from rtx to rtx_insn *
5396         (prune_ready_list): Likewise for local "insn".
5397         (schedule_block): Likewise for locals "prev_head", "head", "tail",
5398         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5399         (set_priorities): Likewise for local "prev_head".
5400         (try_ready): Likewise for param "next".
5401         (fix_tick_ready): Likewise.
5402         (change_queue_index): Likewise.
5403         (sched_extend_ready_list): Update for change to field "vec" of
5404         struct ready_list.
5405         (generate_recovery_code): Strengthen param "insn" from rtx to
5406         rtx_insn *.
5407         (begin_speculative_block): Likewise.
5408         (create_check_block_twin): Likewise for param "insn" and locals
5409         "label", "check", "twin".  Introduce local "check_pat" to avoid
5410         "check" being used as a plain rtx before being used as an insn.
5411         (fix_recovery_deps): Add a checked cast to rtx_insn * when
5412         extracting elements from ready_list.
5413         (sched_remove_insn): Strengthen param "insn" from rtx to
5414         rtx_insn *.
5415         (sched_emit_insn): Likewise for return type.
5416         (ready_remove_first_dispatch): Likewise for return type and local
5417         "insn".
5418
5419         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5420
5421         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5422         const rtx_insn *.
5423
5424         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5425         from rtx to rtx_insn *.
5426         (add_dependence_list): Likewise for param "insn".  Add a checked
5427         cast.
5428         (add_dependence_list_and_free): Strengthen param "insn" from rtx
5429         to rtx_insn *.  Strengthen param "list_p" from rtx * to
5430         rtx_insn **.
5431         (chain_to_prev_insn): Strengthen param "insn" and locals
5432         "prec_nonnote", "i" from rtx to rtx_insn *.
5433         (flush_pending_lists): Likewise for param "insn".
5434         (cur_insn): Likewise for this variable.
5435         (haifa_start_insn): Add a checked cast.
5436         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5437         (sched_analyze_reg): Likewise for param "insn".
5438         (sched_analyze_1): Likewise.
5439         (sched_analyze_2): Likewise.  Add checked casts.
5440         (sched_analyze_insn): Likewise.  Also for local "prev".
5441         (deps_analyze_insn): Likewise for param "insn".
5442         (sched_analyze): Likewise for params "head", "tail" and local "insn".
5443         (add_dependence_1): Likewise for params "insn", "elem".
5444         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5445         (parse_add_or_inc): Likewise for param "insn".
5446         (find_inc): Likewise for local "inc_cand".
5447         (find_modifiable_mems): Likewise for params "head", "tail" and
5448         locals "insn", "next_tail".
5449
5450         * sched-ebb.c (init_ready_list): Likewise for local "insn".
5451         (begin_schedule_ready): Likewise for param "insn".
5452         (begin_move_insn): Likewise for params "insn" and "last".
5453         (ebb_print_insn): Strengthen param "insn" from const_rtx to
5454         const rtx_insn *.
5455         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5456         (ebb_contributes_to_priority): Likewise for params "next", "insn".
5457         (ebb_add_remove_insn): Likewise for param "insn".
5458         (advance_target_bb): Likewise.
5459
5460         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5461         "insn".
5462         (check_live): Likewise for param "insn".
5463         (init_ready_list): Likewise for local "insn".
5464         (can_schedule_ready_p): Likewise for param "insn".
5465         (begin_schedule_ready): Likewise.
5466         (new_ready): Likewise for param "next".
5467         (rgn_print_insn): Likewise for param "insn".
5468         (rgn_rank): Likewise for params "insn1", "insn2".
5469         (contributes_to_priority): Likewise for params "next", "insn".
5470         (rgn_insn_finishes_block_p): Likewise for param "insn".
5471         (add_branch_dependences): Likewise for params "head", "tail" and
5472         locals "insn", "last".
5473         (rgn_add_remove_insn): Likewise for param "insn".
5474         (advance_target_bb): Likewise.
5475
5476         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5477         const_rtx to const rtx_insn *.
5478
5479         * sel-sched-dump.h (sel_print_insn): Likewise.
5480
5481         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5482         (deps_init_id): Likewise.
5483
5484         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5485         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5486         rtx_insn **.
5487
5488 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5489
5490         * output.h (final_start_function): Strengthen param 1 from rtx to
5491         rtx_insn *.
5492
5493         * final.c (final_start_function): Likewise, renaming back from
5494         "uncast_first" to "first", and dropping the checked cast from rtx
5495         to rtx_insn *.
5496
5497 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5498
5499         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5500         * final.c (final): Likewise.  Rename param back from
5501         "uncast_first" to "first" and eliminate the checked cast from rtx
5502         to rtx_insn *.
5503
5504 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5505
5506         * output.h (shorten_branches): Strengthen param from rtx to
5507         rtx_insn *.
5508
5509         * final.c (shorten_branches): Likewise, renaming param back from
5510         "uncast_first" to "first", and dropping the checked cast from rtx
5511         to rtx_insn *.
5512
5513         * genattr.c (gen_attr): Likewise when writing out the prototype of
5514         shorten_branches.
5515
5516 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5517
5518         * sched-int.h (struct haifa_sched_info): Strengthen fields
5519         "prev_head" and "next_tail" from rtx to rtx_insn *.
5520
5521 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5522
5523         * rtl.h (rtx_jump_table_data::get_labels): New method.
5524         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5525         with use of the new rtx_jump_table_data::get_labels method.
5526         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5527         to rtx_jump_table_data *.  Simplify by using get_labels method.
5528         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5529         a dyn_cast, introducing local "table", using it to replace
5530         label-lookup logic with a get_labels method call.
5531         (patch_jump_insn): Simplify using get_labels method.
5532         * dwarf2cfi.c (create_trace_edges): Likewise.
5533         * rtlanal.c (label_is_jump_target_p): Likewise.
5534
5535 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5536
5537         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5538         to rtx_insn *.
5539
5540         * emit-rtl.c (unshare_all_rtl_1): Likewise.
5541         (unshare_all_rtl_again): Likewise, also for local "p".
5542
5543 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5544
5545         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5546         to rtx_insn *.
5547         * cfgrtl.c (delete_insn_and_edges): Likewise.
5548
5549 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5550
5551         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5552         from rtx to rtx_insn *.
5553
5554         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5555
5556 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5557
5558         * function.c (thread_prologue_and_epilogue_insns): Likewise for
5559         locals "returnjump", "epilogue_end", "insn", "next".
5560
5561         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5562         "returnjump" from rtx * to rtx_insn **.
5563         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5564
5565 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5566
5567         * basic-block.h (struct edge_def). Strengthen "r" within
5568         union edge_def_insns from rtx to rtx_insn *.
5569
5570         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5571         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
5572         rtx_insn *.
5573         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5574         from rtx to rtx_insn *.
5575         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5576         rtx_insn *.
5577         * postreload-gcse.c (reg_killed_on_edge): Likewise.
5578         (reg_used_on_edge): Likewise.
5579         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5580         (gt_pch_nx): New overload for rtx_insn *&.
5581         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5582         from rtx to rtx_insn *.
5583
5584 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5585
5586         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5587         from rtx to rtx_insn *.
5588         (BB_FOOTER): Replace function with access macro.
5589         (SET_BB_FOOTER): Delete.
5590
5591         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5592         with BB_FOOTER.
5593         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5594         (emit_barrier_after_bb): Likewise.
5595         (record_effective_endpoints): Likewise.
5596         (relink_block_chain): Likewise.
5597         (fixup_fallthru_exit_predecessor): Likewise.
5598         (cfg_layout_duplicate_bb): Likewise.
5599         (cfg_layout_split_block): Likewise.
5600         (cfg_layout_delete_block): Likewise.
5601         (cfg_layout_merge_blocks): Likewise.
5602         (BB_FOOTER): Delete function.
5603         (SET_BB_FOOTER): Delete function.
5604         * combine.c (update_cfg_for_uncondjump): Replace uses of
5605         SET_BB_FOOTER with BB_FOOTER.
5606
5607 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5608
5609         * except.h (struct eh_landing_pad_d): Strengthen field
5610         "landing_pad" from rtx to rtx_code_label *.
5611
5612         * except.c (sjlj_emit_dispatch_table): Likewise for param
5613         "dispatch_label"
5614         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5615
5616 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5617
5618         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5619         first param from rtx to rtx_insn *.
5620         * config/xtensa/xtensa.c (struct machine_function): Likewise for
5621         field "set_frame_ptr_insn".
5622         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5623         "csend" from rtx to rtx_code_label *.
5624         (xtensa_expand_atomic): Likewise for local "csloop".
5625         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5626         rtx_insn *.
5627         (xtensa_call_tls_desc): Likewise for return type and locals
5628         "call_insn", "insns".
5629         (xtensa_legitimize_tls_address): Likewise for local "insns".
5630         (xtensa_expand_prologue): Likewise for locals "insn", "first".
5631
5632 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5633
5634         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5635         first param from rtx to rtx_insn *.
5636         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5637         "insn".
5638
5639 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5640
5641         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5642         Strengthen param 1 from rtx to rtx_insn *.
5643         (tilepro_output_cbranch): Likewise.
5644         (tilepro_adjust_insn_length): Likewise.
5645         (tilepro_final_prescan_insn): Likewise for sole param.
5646
5647         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5648         Likewise for local "last".
5649         (cbranch_predicted_p): Likewise for param "insn".
5650         (tilepro_output_simple_cbranch_with_opcode): Likewise.
5651         (tilepro_output_cbranch_with_opcode): Likewise.
5652         (tilepro_output_cbranch): Likewise.
5653         (frame_emit_load): Likewise for return type and locals "seq",
5654         "insn".
5655         (emit_sp_adjust): Likewise for return type and local "insn".
5656         (tilepro_expand_epilogue): Likewise for locals "last_insn",
5657         "insn".
5658         (tilepro_adjust_insn_length): Likewise for param "insn".
5659         (next_insn_to_bundle): Likewise for return type and params
5660         "r", "end".
5661         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5662         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5663         local "new_insns".
5664         (match_addli_pcrel): Likewise for param "insn".
5665         (replace_addli_pcrel): Likewise.
5666         (match_auli_pcrel): Likewise.
5667         (replace_auli_pcrel): Likewise.
5668         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5669         "next_insn".
5670         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5671         "queue", "next_queue", "prev".
5672         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5673         (tilepro_final_prescan_insn): Likewise for param "insn".
5674
5675 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5676
5677         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5678         Strengthen param 1 from rtx to rtx_insn *.
5679         (tilegx_output_cbranch): Likewise.
5680         (tilegx_adjust_insn_length): Likewise.
5681         (tilegx_final_prescan_insn): Likewise for sole param.
5682
5683         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5684         or local "last".
5685         (cbranch_predicted_p): Likewise for param "insn".
5686         (tilegx_output_simple_cbranch_with_opcode): Likewise.
5687         (tilegx_output_cbranch_with_opcode): Likewise.
5688         (tilegx_output_cbranch): Likewise.
5689         (frame_emit_load): Likewise for return type.
5690         (set_frame_related_p): Likewise for locals "seq", "insn".
5691         (emit_sp_adjust): Likewise for return type, and for local "insn".
5692         Introduce local "pat" for use in place of "insn" where the latter
5693         isn't an instruction.
5694         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5695         from rtx to rtx_insn *.
5696         (tilegx_adjust_insn_length): Likewise for param "insn".
5697         (next_insn_to_bundle): Likewise for return type and params "r" and
5698         "end".
5699         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5700         "end".
5701         (replace_insns): Likewise for params "old_insn", "new_insns".
5702         (replace_mov_pcrel_step1): Likewise for param "insn" and local
5703         "new_insns".
5704         (replace_mov_pcrel_step2): Likewise.
5705         (replace_mov_pcrel_step3): Likewise.
5706         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5707         "next_insn".
5708         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5709         "queue", "next_queue", "prev".
5710         (tilegx_output_mi_thunk): Likewise for local "insn".
5711         (tilegx_final_prescan_insn): Likewise for param "insn".
5712
5713 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5714
5715         * config/spu/spu.c (frame_emit_store): Strengthen return type from
5716         rtx to rtx_insn *.
5717         (frame_emit_load): Likewise.
5718         (frame_emit_add_imm): Likewise, also for local "insn".
5719         (spu_expand_prologue): Likewise for local "insn".
5720         (struct spu_bb_info): Likewise for field "prop_jump".
5721         (emit_nop_for_insn): Likewise for param "insn" and local
5722         "new_insn".
5723         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5724         "hbr_insn".
5725         (spu_emit_branch_hint): Likewise for params "before", "branch" and
5726         locals "hint", "insn".
5727         (get_branch_target): Likewise for param "branch".
5728         (insn_clobbers_hbr): Likewise for param "insn".
5729         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5730         locals "insn", "before_4", "before_16".
5731         (insert_hbrp): Likewise for local "insn".
5732         (spu_machine_dependent_reorg): Likewise for locals "branch",
5733         "insn", "next", "bbend".
5734         (uses_ls_unit): Likewise for param "insn".
5735         (get_pipe): Likewise.
5736         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5737         introducing a checked cast.
5738         (spu_sched_adjust_cost): Likewise for params "insn" and
5739         "dep_insn".
5740         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5741         (spu_sms_res_mii): Likewise.
5742
5743 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5744
5745         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5746         from rtx to rtx_insn *.
5747         (output_cbranch): Likewise for param 6.
5748         (output_return): Likewise for param 1.
5749         (output_sibcall): Likewise.
5750         (output_v8plus_shift): Likewise.
5751         (output_v8plus_mult): Likewise.
5752         (output_v9branch): Likewise for param 7.
5753         (output_cbcond):  Likewise for param 3.
5754
5755         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5756         for local "insn".
5757         (sparc_legitimize_pic_address): Likewise.
5758         (sparc_emit_call_insn): Likewise.
5759         (emit_save_or_restore_regs): Likewise.
5760         (emit_window_save): Likewise for return type and local "insn".
5761         (sparc_expand_prologue): Likewise for local "insn".
5762         (sparc_flat_expand_prologue): Likewise.
5763         (output_return): Likewise for param "insn".
5764         (output_sibcall): Likewise for param "insn" and local "delay".
5765         (output_ubranch): Likewise for param "insn".
5766         (output_cbranch): Likewise.
5767         (output_cbcond): Likewise.
5768         (output_v9branch): Likewise.
5769         (output_v8plus_shift): Likewise.
5770         (sparc_output_mi_thunk): Likewise for local "insn".
5771         (get_some_local_dynamic_name): Likewise.
5772         (output_v8plus_mult): Likewise for param "insn".
5773
5774 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5775
5776         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5777         from rtx to rtx_insn *.
5778         (output_branchy_insn): Likewise for param 3.
5779         (output_far_jump): Likewise for param 1.
5780         (final_prescan_insn): Likewise.
5781         (sh_insn_length_adjustment): Likewise for sole param.
5782
5783         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5784         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5785         rtx_code_label *.
5786         (sh_emit_compare_and_set): Likewise for local "lab".
5787         (output_far_jump): Strengthen param "insn" and local "prev" from
5788         rtx to rtx_insn *.
5789         (output_branchy_insn): Likewise for param "insn" and local
5790         "next_insn".
5791         (output_ieee_ccmpeq): Likewise for param "insn".
5792         (struct label_ref_list_d): Strengthen field "label" from rtx to
5793         rtx_code_label *.
5794         (pool_node): Likewise.
5795         (pool_window_label): Likewise for this global.
5796         (add_constant): Likewise for return type and locals "lab", "new_rtx".
5797         (dump_table): Strengthen params "start", "barrier" and local
5798         "scan" from rtx to rtx_insn *.
5799         (broken_move): Likewise for param "insn".
5800         (untangle_mova): Likewise for params "first_mova" and "new_mova".
5801         Strengthen param "first_mova" from rtx * to rtx_insn **.
5802         (mova_p): Likewise for param "insn".
5803         (fixup_mova): Likewise for param "mova".
5804         (find_barrier): Likewise for return type, params "mova" and
5805         "from", and locals "barrier_before_mova", "found_barrier",
5806         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
5807         "label" from rtx to rtx_code_label *.
5808         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5809         rtx to rtx_insn *.
5810         (sh_reorg): Likewise for locals "link", "scan", "barrier".
5811         (split_branches): Likewise for param "first" and local "insn".
5812         (final_prescan_insn): Likewise for param "insn".
5813         (sequence_insn_p): Likewise for locals "prev", "next".
5814         (sh_insn_length_adjustment): Likewise for param "insn".
5815         (sh_can_redirect_branch): Likewise for local "insn".
5816         (find_r0_life_regions): Likewise for locals "end", "insn".
5817         (sh_output_mi_thunk): Likewise for local "insns".
5818
5819 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5820
5821         * config/score/score.c (score_output_mi_thunk): Strengthen local
5822         "insn" from rtx to rtx_insn *.
5823         (score_prologue): Likewise.
5824
5825 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5826
5827         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5828         1 from rtx to rtx_insn *.
5829         (s390_emit_jump): Likewise for return type.
5830         (s390_emit_call): Likewise.
5831         (s390_load_got): Likewise.
5832
5833         * config/s390/s390.c (last_scheduled_insn): Likewise for this
5834         variable.
5835         (s390_match_ccmode): Likewise for param "insn".
5836         (s390_emit_jump): Likewise for return type.
5837         (s390_split_branches): Likewise for local "label".
5838         (struct constant): Strengthen field "label" from rtx to
5839         rtx_code_label *.
5840         (struct constant_pool): Likewise for field "label".  Strengthen
5841         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5842         rtx_insn *.
5843         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5844         insns.
5845         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5846         (s390_end_pool): Likewise.
5847         (s390_dump_pool): Likewise for local "insn".
5848         (s390_mainpool_start): Likewise.
5849         (s390_chunkify_start): Likewise.
5850         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5851         with insns.  Strengthen locals "label", "jump", "barrier", "next",
5852         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5853         (s390_chunkify_finish): Strengthen local "insn" from rtx to
5854         rtx_insn *.
5855         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5856         "jump", "label", "next_insn".
5857         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5858         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5859         "tbegin_insn".
5860         (s390_load_got): Likewise for return type and local "insns".
5861         (s390_save_gprs_to_fprs): Likewise for local "insn".
5862         (s390_restore_gprs_from_fprs): Likewise.
5863         (pass_s390_early_mach::execute): Likewise.
5864         (s390_emit_prologue): Likewise for local "insns".
5865         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5866         rtx_code_label *.
5867         (s390_emit_call): Strengthen return type and local "insn" from
5868         rtx to rtx_insn *.
5869         (s390_emit_tpf_eh_return): Likewise for local "insn".
5870         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5871         "next_insn", introducing locals "s_pat", "rpat" to allow this.
5872         (s390_fix_long_loop_prediction): Likewise for param "insn" and
5873         local "cur_insn".
5874         (s390_non_addr_reg_read_p): Likewise for param "insn".
5875         (find_cond_jump): Likewise for return type and param "insn".
5876         (s390_swap_cmp): Likewise for param "insn".
5877         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5878         "prev_insn", "next_insn".
5879         (s390_reorg): Likewise for locals "insn", "target".
5880         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5881         (s390_sched_variable_issue): For now, rename param "insn" to
5882         "uncast_insn", introducing a checked cast.
5883         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5884         insn.
5885         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5886         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
5887
5888 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5889
5890         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5891         param from rtx to rtx_insn *.
5892         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5893
5894 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5895
5896         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5897         4 from rtx to rtx_insn *.
5898         (rs6000_final_prescan_insn): Likewise for first param.
5899         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5900         local "insn".
5901         (rs6000_get_some_local_dynamic_name): Likewise.
5902         (output_cbranch): Likewise for param "insn".
5903         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5904         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5905         (rs6000_emit_allocate_stack): Likewise for local "insn".
5906         (load_cr_save): Likewise.
5907         (restore_saved_cr): Likewise.
5908         (restore_saved_lr): Likewise.
5909         (emit_cfa_restores): Likewise.
5910         (rs6000_output_function_epilogue): Likewise for locals "insn" and
5911         "deleted_debug_label".
5912         (rs6000_output_mi_thunk): Likewise for local "insn".
5913         (rs6000_final_prescan_insn): Likewise for param "insn".
5914
5915 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5916
5917         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5918         Strengthen param "insn" from rtx to rtx_insn *.
5919         * config/picochip/picochip.c (picochip_current_prescan_insn):
5920         Likewise for this variable.
5921         (picochip_final_prescan_insn): Likewise for param "insn".
5922
5923 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5924
5925         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5926         from rtx to rtx_insn *.
5927         (pa_output_indirect_call): Likewise.
5928         (pa_adjust_insn_length): Likewise.
5929         (pa_attr_length_millicode_call): Likewise.
5930         (pa_attr_length_call): Likewise.
5931         (pa_attr_length_indirect_call): Likewise.
5932
5933         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5934         "insn".
5935         (pa_attr_length_millicode_call): Likewise.
5936         (pa_attr_length_call): Likewise.
5937         (pa_output_call): Likewise.
5938         (pa_attr_length_indirect_call): Likewise.
5939         (pa_output_indirect_call): Likewise.
5940
5941 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5942
5943         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5944         Strengthen first param from rtx to rtx_insn *.
5945         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5946         param "insn".
5947
5948 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5949
5950         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5951         type from rtx to rtx_insn *.
5952         (mips_expand_call): Likewise.
5953         (mips_adjust_insn_length): Likewise for first param.
5954         (mips_output_conditional_branch): Likewise.
5955         (mips_output_order_conditional_branch): Likewise.
5956         (mips_final_prescan_insn): Likewise.
5957
5958         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5959         rtx_insn * for the SEQUENCE case.
5960         (SEQ_END): Likewise.
5961         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5962         (mips_emit_call_insn): Likewise, also for local "insn".
5963         (mips16_gp_pseudo_reg): Likewise for local "scan".
5964         (mips16_build_call_stub): Likewise for return type and for local
5965         "insn".  Introduce a new local "pattern" so that "insn" can indeed
5966         be an insn.
5967         (mips_expand_call): Strengthen return type and local "insn" from
5968         rtx to rtx_insn *.
5969         (mips_block_move_loop): Strengthen local "label" from rtx to
5970         rtx_code_label *.
5971         (mips_expand_synci_loop): Likewise for locals "label",
5972         "end_label".
5973         (mips_set_frame_expr): Strengthen local "insn" from rtx to
5974         rtx_insn *.
5975         (mips16e_collect_argument_saves): Likewise for locals "insn",
5976         "next".
5977         (mips_find_gp_ref): Likewise for param of callback for "pred"
5978         param, and for local "insn".
5979         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5980         (mips_insn_has_flexible_gp_ref_p): Likewise.
5981         (mips_epilogue_emit_cfa_restores): Likewise for return type and
5982         local "insn".
5983         (mips_epilogue_set_cfa): Likewise for local "insn".
5984         (mips_expand_epilogue): Likewise.
5985         (mips_adjust_insn_length): Likewise for param "insn".
5986         (mips_output_conditional_branch): Likewise.
5987         (mips_output_order_conditional_branch): Likewise.
5988         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5989         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5990         "falu2_turn_enabled_insn".
5991         (mips_builtin_branch_and_move): Strengthen locals "true_label",
5992         "done_label" from rtx to rtx_code_label *.
5993         (struct mips16_constant): Likewise for field "label".
5994         (mips16_add_constant): Likewise for return type.
5995         (mips16_emit_constants_1): Strengthen return type and param "insn"
5996         from rtx to rtx_insn *.
5997         (mips16_emit_constants): Likewise for param "insn".
5998         (mips16_insn_length): Likewise.
5999         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6000         to rtx_code_label *.
6001         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6002         from rtx to rtx_insn *.
6003         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6004         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
6005         (r10k_simplify_address): Strengthen param "insn" and local
6006         "def_insn" from rtx to rtx_insn *.
6007         (r10k_safe_address_p): Strengthen param "insn" from rtx to
6008         rtx_insn *.
6009         (r10k_needs_protection_p_1): Update target type of cast of data
6010         from to rtx to rtx_insn *.
6011         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6012         rtx * to rtx_insn **.
6013         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6014         rtx_insn *.
6015         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6016         (mips_call_expr_from_insn): Likewise for param "insn".
6017         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6018         (mips_find_pic_call_symbol): Likewise for param "insn".
6019         (mips_annotate_pic_calls): Likewise for local "insn".
6020         (mips_sim_insn): Likewise for this variable.
6021         (struct mips_sim): Likewise for field "insn" within elements of
6022         last_set array.
6023         (mips_sim_wait_reg): Likewise for param "insn".
6024         (mips_sim_wait_regs): Likewise.
6025         (mips_sim_wait_units): Likewise.
6026         (mips_sim_wait_insn): Likewise.
6027         (mips_sim_issue_insn): Likewise.
6028         (mips_sim_finish_insn): Likewise.
6029         (mips_seq_time): Likewise for param "seq" and local "insn".
6030         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6031         locals "first", "second".
6032         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6033         "last", "last2", "next".
6034         (mips_avoid_hazard): Likewise for params "after", "insn".
6035         (mips_reorg_process_insns): Likewise for locals "insn",
6036         "last_insn", "subinsn", "next_insn".
6037         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6038         (mips16_split_long_branches): Likewise for locals "insn" "jump",
6039         "jump_sequence".
6040         (mips_output_mi_thunk): Likewise for local "insn".
6041         (mips_final_prescan_insn): Likewise for param "insn".
6042
6043 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6044
6045         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6046         Strengthen return type and local "insns" from rtx to rtx_insn *.
6047         (microblaze_legitimize_tls_address): Likewise for local "insns".
6048         (microblaze_block_move_loop): Strengthen local "label" from rtx
6049         to rtx_code_label *.
6050         (microblaze_expand_prologue): Strengthen two locals named "insn"
6051         from rtx to rtx_insn *.
6052         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6053         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6054         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
6055         to rtx_code_label *.
6056
6057 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6058
6059         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6060         param from rtx to rtx_insn *.
6061         (mep_reuse_lo): Likewise for third param.
6062         (mep_use_post_modify_p): Likewise for first param.
6063         (mep_core_address_length): Likewise.
6064         (mep_cop_address_length): Likewise.
6065         (mep_final_prescan_insn): Likewise.
6066         (mep_store_data_bypass_p): Likewise for both params.
6067         (mep_mul_hilo_bypass_p): Likewise.
6068         (mep_ipipe_ldc_p): Likewise for param.
6069
6070         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6071         (mep_rewrite_mult): Likewise.
6072         (mep_rewrite_mulsi3): Likewise.
6073         (mep_rewrite_maddsi3): Likewise.
6074         (mep_reuse_lo_p_1): Likewise.
6075         (mep_reuse_lo_p): Likewise.
6076         (mep_frame_expr): Likewise.
6077         (mep_make_parallel): Likewise for both params.
6078         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6079         local "insn".
6080         (mep_use_post_modify_p): Likewise for param "insn".
6081         (mep_core_address_length): Likewise.
6082         (mep_cop_address_length): Likewise.
6083         (mep_reg_set_in_function): Likewise for local "insn".
6084         (mep_asm_without_operands_p): Likewise.
6085         (F): Likewise for return type and param "x".
6086         (add_constant): Likewise for local "insn".
6087         (maybe_dead_move): Likewise for return type and local "insn".
6088         (mep_expand_prologue): Likewise for local "insn".
6089         (mep_final_prescan_insn): Likewise for param "insn".
6090         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6091         "next", "follow", "x".
6092         (mep_insert_repeat_label_last): Likewise for return type, param
6093         "last_insn", and locals "next", "prev".  Strengthen param "label"
6094         from rtx to rtx_code_label *.
6095         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6096         rtx_insn *.
6097         (struct mep_doloop_end): Likewise for fields "insn" and
6098         "fallthrough".
6099         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6100         Strengthen local "repeat_label" from rtx to rtx_code_label *.
6101         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6102         rtx_insn *.
6103         (mep_invert_branch): Likewise for params "insn" and "after".
6104         (mep_reorg_erepeat): Likewise for param "insns" and locals
6105         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
6106         "l" from rtx to rtx_code_label *.
6107         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6108         from rtx to rtx_insn *.
6109         (mep_reorg_addcombine): Likewise for param "insns" and locals
6110         "i", "n".
6111         (add_sp_insn_p): Likewise for param "insn".
6112         (mep_reorg_noframe): Likewise for param "insns" and locals
6113         "start_frame_insn", "end_frame_insn", "next".
6114         (mep_reorg): Likewise for local "insns".
6115         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
6116         cast.
6117         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6118         (mep_mul_hilo_bypass_p): Likewise.
6119         (mep_ipipe_ldc_p): Likewise for param "insn".
6120         (mep_make_bundle): Likewise for return type, param "cop" and local
6121         "insn", splitting out the latter into a new local "seq" for when it
6122         is a SEQUENCE rather than an insn.
6123         (core_insn_p): Likewise for param "insn".
6124         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6125         "last", "first", "note", "prev", "core_insn".
6126
6127 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6128
6129         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6130         rtx to rtx_insn *.
6131         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6132         (m68k_final_prescan_insn): Likewise for first param.
6133
6134         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6135         (m68k_set_frame_related): Likewise for param "insn".
6136         (output_btst): Likewise for param "insn".
6137         (m68k_final_prescan_insn): Likewise.
6138         (m68k_move_to_reg): Likewise for local "insn".
6139         (m68k_call_tls_get_addr): Likewise for local "insns".
6140         (m68k_call_m68k_read_tp): Likewise.
6141         (strict_low_part_peephole_ok): Likewise for param "first_insn".
6142         (m68k_output_mi_thunk): Likewise for local "insn".
6143
6144 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6145
6146         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6147         first param from rtx to rtx_insn *.
6148         (iq2000_adjust_insn_length): Likewise.
6149         (iq2000_output_conditional_branch): Likewise.
6150         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6151         "insn" and local "nop_insn".
6152         (iq2000_annotate_frame_insn): Likewise for param "insn".
6153         (iq2000_expand_prologue): Likewise for both locals "insn".
6154         (iq2000_adjust_insn_length): Likewise for param "insn".
6155         (iq2000_output_conditional_branch): Likewise.
6156
6157 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6158
6159         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6160         "insns" from rtx to rtx_insn *.
6161         (ia64_emit_cond_move): Likewise for locals "insn", "first".
6162         (struct spill_fill_data): Likewise for field "init_after" and for
6163         elements of array field "prev_insn".
6164         (spill_restore_mem): Likewise for locals "insn", "first".
6165         (do_spill): Likewise for local "insn".
6166         (do_restore): Likewise.
6167         (ia64_expand_prologue): Likewise.
6168         (ia64_expand_epilogue): Likewise.
6169         (emit_insn_group_barriers): Likewise for locals "insn",
6170         "last_label".
6171         (emit_all_insn_group_barriers): Likewise for locals "insn",
6172         "last".
6173         (dfa_stop_insn): Likewise for this global.
6174         (dfa_pre_cycle_insn): Likewise.
6175         (ia64_nop): Likewise.
6176         (final_emit_insn_group_barriers): Likewise for locals "insn",
6177         "last".
6178         (emit_predicate_relation_info): Likewise for locals "head", "n",
6179         "insn", "b", "a".
6180         (ia64_reorg): Likewise for local "insn".
6181         (ia64_output_mi_thunk): Likewise.
6182         (expand_vec_perm_interleave_2): Likewise for local "seq".
6183
6184 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6185
6186         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6187         param 1 "insn" from rtx to rtx_insn *.
6188         (ix86_use_lea_for_mov): Likewise.
6189         (ix86_avoid_lea_for_addr): Likewise.
6190         (ix86_split_lea_for_addr): Likewise.
6191         (ix86_lea_for_add_ok): Likewise.
6192         (ix86_output_call_insn): Likewise.
6193
6194         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6195         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6196         (ix86_output_function_epilogue): Likewise for locals "insn",
6197         "deleted_debug_label".
6198         (legitimize_tls_address): Likewise for local "insn".
6199         (get_some_local_dynamic_name): Likewise.
6200         (increase_distance): Likewise for params "prev", "next".
6201         (distance_non_agu_define_in_bb): Likewise for params "insn",
6202         "start" and locals "prev", "next".
6203         (distance_non_agu_define): Likewise for param "insn".
6204         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6205         locals "next", "prev".
6206         (distance_agu_use): Likewise for param "insn".
6207         (ix86_lea_outperforms): Likewise.
6208         (ix86_ok_to_clobber_flags): Likewise.
6209         (ix86_avoid_lea_for_add): Likewise.
6210         (ix86_use_lea_for_mov): Likewise.
6211         (ix86_avoid_lea_for_addr): Likewise.
6212         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6213         (ix86_split_lea_for_addr): Likewise for param "insn".
6214         (ix86_lea_for_add_ok): Likewise for param "insn".
6215         (ix86_expand_carry_flag_compare): Likewise for local
6216         "compare_seq".
6217         (ix86_expand_int_movcc): Likewise.
6218         (ix86_output_call_insn): Likewise for param "insn".
6219         (ix86_output_call_insn): Likewise for local "i".
6220         (x86_output_mi_thunk): Introduce local "insn", using it in place
6221         of "tmp" when dealing with insns.
6222         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6223         "start".
6224         (ix86_pad_returns): Likewise for locals "ret", "prev".
6225         (ix86_count_insn_bb): Likewise for local "insn".
6226         (ix86_pad_short_function): Likewise for locals "ret", "insn".
6227         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6228         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6229         (expand_vec_perm_interleave2): Likewise for local "seq".
6230         (expand_vec_perm_vperm2f128_vblend): Likewise.
6231         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
6232         call to for_each_rtx with for_each_rtx_in_insn.
6233
6234 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6235
6236         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6237         "label" from rtx to rtx_code_label *.
6238         (ix86_expand_prologue): Likewise.
6239         (ix86_expand_split_stack_prologue): Likewise for locals "label",
6240         "varargs_label".
6241         (ix86_split_idivmod): Likewise for locals "end_label" and
6242         "qimode_label".
6243         (ix86_expand_branch): Likewise for local "label2".
6244         (ix86_expand_aligntest): Likewise for return type and local "label".
6245         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6246         "top_label".
6247         (expand_movmem_epilogue): Likewise for the various locals named
6248         "label".
6249         (expand_setmem_epilogue): Likewise.
6250         (expand_small_movmem_or_setmem): Likewise for local "label".
6251         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6252         Strengthen param "done_label" from rtx * to rtx_code_label **.
6253         Strengthen locals "loop_label" and "label" from rtx to
6254         rtx_code_label *.
6255         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6256         Likewise for locals "loop_label", "label".
6257         (ix86_expand_set_or_movmem): Likewise for locals "label",
6258         "jump_around_label", "hot_label".
6259         (ix86_expand_strlensi_unroll_1): Likewise for locals
6260         "align_2_label", align_3_label", "align_4_label", "end_0_label",
6261         "end_2_label".
6262         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6263         (void ix86_emit_i387_log1p): Likewise for locals "label1",
6264         "label2", "jump_label".
6265         (ix86_expand_sse_compare_and_jump): Likewise for return type and
6266         local "label".
6267         (ix86_expand_lfloorceil): Likewise for local "label".
6268         (ix86_expand_rint): Likewise.
6269         (ix86_expand_floorceildf_32): Likewise.
6270         (ix86_expand_floorceil): Likewise.
6271         (ix86_expand_rounddf_32): Likewise.
6272         (ix86_expand_trunc): Likewise.
6273         (ix86_expand_truncdf_32): Likewise.
6274         (ix86_expand_round): Likewise.
6275
6276 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6277
6278         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6279         first param from rtx to rtx_insn *.
6280         (h8300_insn_length_from_table): Likewise.
6281         * config/h8300/h8300.c (F): Likewise for return type and param
6282         "x".
6283         (Fpa): Add a checked cast to rtx_insn *.
6284         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6285         rtx_insn *.
6286         (final_prescan_insn): Likewise for param "insn".
6287         (h8300_binary_length): Likewise.
6288         (h8300_insn_length_from_table): Likewise.
6289
6290 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6291
6292         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6293         Strengthen first param "insn" from rtx to rtx_insn *.
6294
6295         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6296         Likewise.
6297         (frame_insn): Likewise for return type.  Introduce local "insn"
6298         for use in place of local "x" for use as an rtx_insn *.
6299         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6300         (epiphany_expand_prologue): Likewise for local "insn".
6301         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6302         * config/epiphany/resolve-sw-modes.c
6303         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6304         "seq".
6305
6306 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6307
6308         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6309         param from rtx to rtx_insn *.
6310         (c6x_final_prescan_insn): Likewise for first param.
6311
6312         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6313         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6314         (c6x_expand_compare): Strengthen local "insns" from rtx to
6315         rtx_insn *.
6316         (c6x_get_unit_specifier): Likewise for param "insn".
6317         (c6x_print_unit_specifier_field): Likewise.
6318         (c6x_final_prescan_insn): Likewise.
6319         (emit_add_sp_const): Likewise for local "insn".
6320         (c6x_expand_prologue): Likewise.
6321
6322 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6323
6324         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6325         param 1 from rtx to rtx_insn *.
6326         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6327         the various locals named "insn".
6328         (expand_epilogue_reg_restore): Likewise.
6329         (frame_related_constant_load): Likewise.
6330         (add_to_reg): Likewise.
6331         (emit_link_insn): Likewise.
6332         (do_link): Likewise.
6333         (expand_interrupt_handler_prologue): Likewise.
6334         (branch_dest): Likewise for param "branch".
6335         (asm_conditional_branch): Likewise for param "insn".
6336         (gen_one_bundle): Likewise for elements of param "slot" and local
6337         "t".
6338         (bfin_gen_bundles): Likewise for locals "insn", "next" and
6339         elements of local "slot".
6340         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6341         "queue", "next_queue", "prev".
6342         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6343         (add_sched_insns_for_speculation): Likewise for local "insn".
6344
6345 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6346
6347         * config/avr/avr-protos.h (output_movqi): Strengthen first param
6348         from rtx to rtx_insn *.
6349         (output_movhi): Likewise.
6350         (output_movsisf): Likewise.
6351         (avr_out_tstsi): Likewise.
6352         (avr_out_tsthi): Likewise.
6353         (avr_out_tstpsi): Likewise.
6354         (avr_out_compare): Likewise.
6355         (avr_out_compare64): Likewise.
6356         (avr_out_movpsi): Likewise.
6357         (ashlqi3_out): Likewise.
6358         (ashlhi3_out): Likewise.
6359         (ashlsi3_out): Likewise.
6360         (ashrqi3_out): Likewise.
6361         (ashrhi3_out): Likewise.
6362         (ashrsi3_out): Likewise.
6363         (lshrqi3_out): Likewise.
6364         (lshrhi3_out): Likewise.
6365         (lshrsi3_out): Likewise.
6366         (avr_out_ashlpsi3): Likewise.
6367         (avr_out_ashrpsi3): Likewise.
6368         (avr_out_lshrpsi3): Likewise.
6369         (avr_out_fract): Likewise.
6370         (avr_out_sbxx_branch): Likewise.
6371         (avr_out_round): Likewise.
6372         (avr_out_xload): Likewise.
6373         (avr_out_movmem): Likewise.
6374         (adjust_insn_length): Likewise.
6375         (avr_out_lpm): Likewise.
6376         (reg_unused_after): Likewise.
6377         (_reg_unused_after): Likewise.
6378         (avr_jump_mode): Likewise for second param.
6379         (jump_over_one_insn): Likewise for first param.
6380         (avr_final_prescan_insn): Likewise.
6381         (out_shift_with_cnt): Likewise for second param.
6382
6383         * config/avr/avr.c (get_sequence_length): Likewise for param
6384         "insns" and local "insn".
6385         (emit_push_byte): Likewise for local "insn".
6386         (emit_push_sfr): Likewise.
6387         (avr_prologue_setup_frame): Likewise for locals "insn",
6388         "fp_plus_insns", "sp_plus_insns".
6389         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6390         "sp_plus_insns".
6391         (avr_jump_mode): Likewise for param "insn".
6392         (avr_final_prescan_insn): Likewise.
6393         (avr_find_unused_d_reg): Likewise.
6394         (avr_out_lpm_no_lpmx): Likewise.
6395         (avr_out_lpm): Likewise.
6396         (avr_out_xload): Likewise.
6397         (output_movqi): Likewise.
6398         (output_movhi): Likewise.
6399         (out_movqi_r_mr): Likewise.
6400         (out_movhi_r_mr): Likewise.
6401         (out_movsi_r_mr): Likewise.
6402         (out_movsi_mr_r): Likewise.
6403         (output_movsisf): Likewise.
6404         (avr_out_load_psi): Likewise.
6405         (avr_out_store_psi): Likewise.
6406         (avr_out_movpsi): Likewise.
6407         (out_movqi_mr_r): Likewise.
6408         (avr_out_movhi_mr_r_xmega): Likewise.
6409         (out_movhi_mr_r): Likewise.
6410         (compare_condition): Likewise for param "insn" and local "next".
6411         (compare_sign_p): Likewise for param "insn".
6412         (compare_diff_p): Likewise.
6413         (compare_eq_p): Likewise.
6414         (avr_out_compare): Likewise.
6415         (avr_out_compare64): Likewise.
6416         (avr_out_tsthi): Likewise.
6417         (avr_out_tstpsi): Likewise.
6418         (avr_out_tstsi): Likewise.
6419         (out_shift_with_cnt): Likewise.
6420         (ashlqi3_out): Likewise.
6421         (ashlhi3_out): Likewise.
6422         (avr_out_ashlpsi3): Likewise.
6423         (ashlsi3_out): Likewise.
6424         (ashrqi3_out): Likewise.
6425         (ashrhi3_out): Likewise.
6426         (avr_out_ashrpsi3): Likewise.
6427         (ashrsi3_out): Likewise.
6428         (lshrqi3_out): Likewise.
6429         (lshrhi3_out): Likewise.
6430         (avr_out_lshrpsi3): Likewise.
6431         (lshrsi3_out): Likewise.
6432         (avr_out_fract): Likewise.
6433         (avr_out_round): Likewise.
6434         (avr_adjust_insn_length): Likewise.
6435         (reg_unused_after): Likewise.
6436         (_reg_unused_after): Likewise.
6437         (avr_compare_pattern): Likewise.
6438         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6439         and locals "branch1", "branch2", "insn2", "jump".
6440         (avr_reorg): Likewise for local "insn".
6441         (avr_2word_insn_p): Likewise for param "insn".
6442         (jump_over_one_insn_p): Likewise.
6443         (avr_out_sbxx_branch): Likewise.
6444         (avr_out_movmem): Likewise.
6445
6446 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6447
6448         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6449         param from rtx to rtx_insn *.
6450         (thumb1_final_prescan_insn): Likewise.
6451         (thumb2_final_prescan_insn): Likewise.
6452
6453         * config/arm/arm.c (emit_set_insn): Strengthen return type from
6454         rtx to rtx_insn *.
6455         (struct minipool_node): Likewise for field "insn".
6456         (dump_minipool): Likewise for param "scan".
6457         (create_fix_barrier): Likewise for local "from".  Strengthen local
6458         "label" from rtx to rtx_code_label *.
6459         (push_minipool_barrier): Strengthen param "insn" from rtx to
6460         rtx_insn *.
6461         (push_minipool_fix): Likewise.
6462         (note_invalid_constants): Likewise.
6463         (thumb2_reorg): Likewise for local "insn".
6464         (arm_reorg): Likewise.
6465         (thumb2_final_prescan_insn): Likewise for param
6466         "insn" and local "first_insn".
6467         (arm_final_prescan_insn): Likewise for param "insn" and locals
6468         "start_insn", "this_insn".
6469         (arm_debugger_arg_offset): Likewise for param "insn".
6470         (thumb1_emit_multi_reg_push): Likewise for return type and local
6471         "insn".
6472         (thumb1_final_prescan_insn): Likewise for param "insn".
6473         (thumb_far_jump_used_p): Likewise for local "insn".
6474         (thumb1_expand_prologue): Likewise.
6475         (arm_expand_epilogue_apcs_frame): Likewise.
6476         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6477         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6478         from rtx to rtx_code_label *.
6479         (arm_split_atomic_op): Likewise for local "label".
6480         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6481
6482 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6483
6484         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6485         first param from rtx to rtx_insn *.
6486         (arc_verify_short): Likewise.
6487         (arc_short_long): Likewise.
6488         (arc_need_delay): Likewise.
6489
6490         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6491         "target_insn".
6492         (arc_ccfsm_advance): Likewise for param "insn" and locals
6493         "start_insn", "this_insn".
6494         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6495         (arc_ccfsm_post_advance): Likewise for param "insn".
6496         (arc_next_active_insn): Likewise for return type and param "insn".
6497         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
6498         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6499         (output_short_suffix): Likewise for local "insn".
6500         (arc_final_prescan_insn): Likewise for param "insn".  Remove
6501         now-redundant checked cast.
6502         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6503         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6504         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
6505         for use where lc_set became an insn.
6506         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6507         rtx to rtx_insn *.
6508         (arc_get_insn_variants): Likewise for local "prev".
6509         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6510         "next".
6511         (arc_predicate_delay_insns): Likewise for local "insn".
6512         (arc_pad_return): Likewise for local "prev".  For now, add a
6513         checked cast when extracting the insn from "final_sequence".
6514         (arc_short_long): Likewise for param "insn".
6515         (arc_need_delay): Likewise for param "insn" and local "next".
6516         (arc_label_align): Likewise for locals "prev", "next".
6517
6518 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6519
6520         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6521         "insn" from rtx to rtx_insn *.
6522         (alpha_gp_save_rtx): Likewise for local "seq".
6523         (alpha_instantiate_decls): Likewise for local "top".
6524         (get_some_local_dynamic_name): Likewise for local "insn".
6525         (alpha_does_function_need_gp): Likewise.
6526         (set_frame_related_p): Likewise for return type and for locals
6527         "seq" and "insn".
6528         (emit_frame_store_1): Likewise for local "insn".
6529         (alpha_expand_prologue): Likewise for locals "insn", "seq".
6530         (alpha_end_function): Likewise for local "insn".
6531         (alpha_output_mi_thunk_osf): Likewise.
6532         (alphaev4_insn_pipe): Likewise for param "insn".
6533         (alphaev5_insn_pipe): Likewise.
6534         (alphaev4_next_group): Likewise for return type and param 1
6535         "insn".
6536         (alphaev5_next_group): Likewise.
6537         (alpha_align_insns_1): Likewise for return type and param 1 of
6538         callback param "next_group", and for locals "i", "next", "prev",
6539         "where", "where2", "insn".
6540
6541 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
6542
6543         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6544         rather than modifying the stmt.
6545
6546 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6547
6548         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6549         cgraph_state conversion.
6550
6551 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6552
6553         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6554         Strengthen local "insns" from rtx to rtx_insn *.
6555         (aarch64_set_frame_expr): Likewise for local "insn".
6556         (aarch64_save_or_restore_fprs): Likewise.
6557         (aarch64_save_or_restore_callee_save_registers): Likewise.
6558         (aarch64_expand_prologue): Likewise.
6559         (aarch64_expand_epilogue): Likewise.
6560         (aarch64_output_mi_thunk): Likewise.
6561         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6562         "label2" from rtx to rtx_code_label *.
6563         (aarch64_split_atomic_op): Likewise for local "label".
6564
6565 2014-08-25  Martin Liska  <mliska@suse.cz>
6566
6567         * cgraph.h (symtab_node):
6568         (bool needed_p (void)): created from decide_is_symbol_needed
6569         (bool referred_to_p (void)): created from referred_to_p
6570         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6571         * cgraph.h (cgraph_node):
6572         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6573         (void expand (void)): created from expand_function
6574         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6575         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6576         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6577         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6578         * cgraph.h (varpool_node):
6579         (static void add (tree decl): created from varpool_add_new_variable
6580         * cgraph.h (cgraph_edge):
6581         void remove (void);
6582         (void remove_caller (void)): created from cgraph_edge_remove_caller
6583         (void remove_callee (void)): created from cgraph_edge_remove_callee
6584         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6585           created from cgraph_set_call_stmt
6586         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6587         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6588         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6589           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6590         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6591           created from cgraph_speculative_call_info
6592         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6593           int freq_scale, bool update_original)): created from cgraph_clone_edge
6594         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6595         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6596         (bool recursive_p (void)): created from cgraph_edge_recursive_p
6597         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6598         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6599         (static void rebuild_references (void)): created from cgraph_rebuild_references
6600         * cgraph.h (symbol_table):
6601         (create_reference): renamed from add_reference
6602         (maybe_create_reference): renamed from maybe_add_reference
6603         (void register_symbol (symtab_node *node)): new function
6604         (void clear_asm_symbols (void)): new function
6605         (void unregister (symtab_node *node)): new function
6606         (void release_symbol (cgraph_node *node, int uid)): new function
6607         (cgraph_node * allocate_cgraph_symbol (void)): new function
6608         (void initialize (void)): created from cgraph_init
6609         (symtab_node *first_symbol (void)):new function
6610         (asm_node *first_asm_symbol (void)):new function
6611         (symtab_node *first_defined_symbol (void)):new function
6612         (varpool_node *first_variable (void)):new function
6613         (varpool_node *next_variable (varpool_node *node)):new function
6614         (varpool_node *first_static_initializer (void)):new function
6615         (varpool_node *next_static_initializer (varpool_node *node)):new function
6616         (varpool_node *first_defined_variable (void)):new function
6617         (varpool_node *next_defined_variable (varpool_node *node)):new function
6618         (cgraph_node *first_defined_function (void)):new function
6619         (cgraph_node *next_defined_function (cgraph_node *node)):new function
6620         (cgraph_node *first_function (void)):new function
6621         (cgraph_node *next_function (cgraph_node *node)):new function
6622         (cgraph_node *first_function_with_gimple_body (void)):new function
6623         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6624         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6625           created from symtab_remove_unreachable_nodes
6626         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6627         (void process_new_functions (void)): created from cgraph_process_new_functions
6628         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6629         (bool output_variables (void)): created from varpool_node::output_variables
6630         (void output_asm_statements (void)): created from output_asm_statements
6631         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6632         (void compile (void)): created from compile
6633         (void output_weakrefs (void)): created from output_weakrefs
6634         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6635         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6636           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6637         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6638         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6639           created from cgraph_next_function_with_gimple_body
6640         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6641           created from cgraph_remove_edge_removal_hook
6642         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6643           created from cgraph_add_node_removal_hook
6644         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6645           created from cgraph_remove_node_removal_hook
6646         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6647           created from varpool_add_node_removal_hook
6648         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6649           created from varpool_remove_node_removal_hook
6650         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6651           created from cgraph_add_function_insertion_hook
6652         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6653           created from cgraph_remove_function_insertion_hook
6654         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6655           created from varpool_add_variable_insertion_hook
6656         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6657           created from varpool_remove_variable_insertion_hook
6658         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6659           created from cgraph_add_edge_duplication_hook
6660         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6661           created from cgraph_remove_edge_duplication_hook
6662         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6663           created from cgraph_add_node_duplication_hook
6664         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6665           created from cgraph_remove_node_duplication_hook
6666         (void call_edge_removal_hooks (cgraph_edge *e)):
6667           created from cgraph_call_edge_removal_hooks
6668         (void call_cgraph_insertion_hooks (cgraph_node *node)):
6669           created from call_function_insertion_hooks 
6670         (void call_cgraph_removal_hooks (cgraph_node *node)):
6671           created from cgraph_call_node_removal_hooks 
6672         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6673           created from cgraph_node::call_duplication_hooks 
6674         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6675           created from cgraph_call_edge_duplication_hooks
6676         (void call_varpool_removal_hooks (varpool_node *node)):
6677           created from varpool_call_node_removal_hooks
6678         (void call_varpool_insertion_hooks (varpool_node *node)):
6679           created from varpool_call_variable_insertion_hooks
6680         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6681           created from insert_to_assembler_name_hash
6682         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6683           created from unlink_from_assembler_name_hash
6684         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6685           created from symtab_prevail_in_asm_name_hash
6686         (void symtab_initialize_asm_name_hash (void)):
6687           created from symtab_initialize_asm_name_hash
6688         (void change_decl_assembler_name (tree decl, tree name)):
6689           created from change_decl_assembler_name
6690         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6691         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6692           created from decl_assembler_name_hash
6693         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6694           created from decl_assembler_name_equal
6695         (static hashval_t hash_node_by_assembler_name (const void *p)):
6696           created from hash_node_by_assembler_name
6697         (static int eq_assembler_name (const void *p1, const void *p2)):
6698           created from eq_assembler_name
6699
6700 2014-08-25  Marek Polacek  <polacek@redhat.com>
6701
6702         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6703
6704 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
6705
6706         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6707         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6708         SWI1248_AVX512BW mode iterator.
6709
6710 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
6711
6712         PR target/62111
6713         * config/sh/predicates.md (general_extend_operand): Disable
6714         TRUNCATE before reload completes.
6715
6716 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
6717
6718         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6719
6720 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
6721
6722         PR target/61996
6723         * config/sh/sh.opt (musermode): Allow negative form.
6724         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6725         targets that don't support it.
6726         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6727         Document -mno-usermode option.
6728
6729 2014-08-24  Kito Cheng  <kito@0xlab.org>
6730
6731         * system.h (CALLER_SAVE_PROFITABLE): Poison.
6732         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6733         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6734         * doc/tm.texi: Regenerate.
6735
6736 2014-08-24  Kito Cheng  <kito@0xlab.org>
6737
6738         * ira.c: Fix typo in comment.
6739
6740 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
6741
6742         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6743         Deprecate c++1y. Change language to reflect greater confidence in C++14.
6744
6745 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
6746
6747         PR target/62038
6748         * config/pa/pa.c (pa_output_function_epilogue): Don't set
6749         last_address when the current function is a thunk.
6750         (pa_asm_output_mi_thunk): When we don't have named sections or they
6751         are not being used, check that thunk can reach the stub table with a
6752         short branch.
6753
6754 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6755
6756         * web.c (union_match_dups): Strengthen param "insn" from rtx to
6757         rtx_insn *.
6758         (pass_web::execute): Likewise for local "insn".
6759
6760 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6761
6762         * var-tracking.c (struct micro_operation_def): Strengthen field
6763         "insn" from rtx to rtx_insn *.
6764         (struct emit_note_data_def): Likewise.
6765         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6766         (vt_stack_adjustments): Likewise for local "insn".
6767         (adjust_insn): Likewise for param "insn".
6768         (val_store): Likewise.
6769         (val_resolve): Likewise.
6770         (struct count_use_info): Likewise for field "insn".
6771         (log_op_type): Likewise for param "insn".
6772         (reverse_op): Likewise.
6773         (prepare_call_arguments): Likewise.
6774         (add_with_sets):  The initial param takes an insn, but we can't
6775         yet strengthen it from rtx to rtx_insn * since it's used as a
6776         cselib_record_sets_hook callback.  For now rename initial param
6777         from "insn" to "uncast_insn", and introduce a local "insn" of
6778         the stronger rtx_insn * type, with a checked cast.
6779         (compute_bb_dataflow): Strengthen local "insn" from rtx to
6780         rtx_insn *.
6781         (emit_note_insn_var_location): Likewise.
6782         (emit_notes_for_changes): Likewise.
6783         (emit_notes_for_differences): Likewise.
6784         (next_non_note_insn_var_location): Likewise for return type and
6785         for param "insn".
6786         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6787         (vt_initialize): Likewise for local "insn".
6788         (delete_debug_insns): Likewise for locals "insn" and "next".
6789
6790 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6791
6792         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6793         rtx_insn *.
6794         (mark_constant_pool): Likewise for local "insn".
6795
6796 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6797
6798         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6799         rtx to rtx_insn *.
6800         (dead_debug_promote_uses): Likewise.
6801         (dead_debug_insert_temp): Likewise.
6802
6803 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6804
6805         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6806         from const_rtx to const rtx_insn *.
6807         (store_killed_after): Likewise.  Strengthen locals "last", "act"
6808         from rtx to rtx_insn *.
6809         (store_killed_before): Strengthen param "insn" from const_rtx to
6810         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
6811         (find_moveable_store): Strengthen param "insn" from rtx to
6812         rtx_insn *.
6813         (compute_store_table): Likewise for local "insn".
6814         (insert_insn_start_basic_block): Likewise for param "insn" and
6815         locals "prev", "before", "insn".
6816         (insert_store): For now, add a checked cast to rtx_insn * on the
6817         result of gen_move_insn.
6818         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6819         to rtx_insn *.
6820         (replace_store_insn): Likewise.  For now, add a checked cast to
6821         rtx_insn * on the result of gen_move_insn.
6822
6823 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6824
6825         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6826         rtx_insn *.
6827         (expand_sjlj_dispatch_table): Likewise.
6828
6829 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6830
6831         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6832         "insn" from rtx to rtx_insn *.
6833
6834 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6835
6836         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6837         "insn" from rtx to rtx_insn *.
6838         (dup_block_and_redirect): Likewise for param 3 "before".
6839
6840         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6841         from rtx to rtx_insn *.
6842         (move_insn_for_shrink_wrap): Likewise.
6843         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6844         (dup_block_and_redirect): Likewise for param "before" and local
6845         "insn".
6846         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6847         "end".
6848         (convert_to_simple_return): Likewise for local "start".
6849
6850         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6851         Strengthen local "insn" from rtx to rtx_insn *, for use when
6852         invoking requires_stack_frame_p.
6853
6854 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6855
6856         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6857         rtx_insn *.
6858         (speculate_expr): Likewise for locals "orig_insn_rtx",
6859         "spec_insn_rtx".
6860         (eq_transformed_insns): Likewise for locals "i1", "i2".
6861         (check_for_new_jump): Likewise for return type and local "end".
6862         (find_new_jump): Likewise for return type and local "jump".
6863         (sel_split_edge): Likewise for local "jump".
6864         (sel_create_recovery_block): Likewise.
6865         (sel_redirect_edge_and_branch_force): Likewise.
6866         (sel_redirect_edge_and_branch): Likewise.
6867
6868 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6869
6870         * sel-sched.c (substitute_reg_in_expr): Strengthen local
6871         "new_insn" from rtx to rtx_insn *.
6872         (create_insn_rtx_with_rhs): Likewise for return type and for local
6873         "insn_rtx".
6874         (create_insn_rtx_with_lhs): Likewise.
6875         (create_speculation_check): Likewise for local "insn_rtx".
6876         (implicit_clobber_conflict_p): Likewise for local "insn".
6877         (get_expr_cost): Likewise.
6878         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6879         (move_cond_jump): Likewise for locals "next", "prev", "link",
6880         "head", "from", "to".
6881
6882 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6883
6884         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6885         "next" from rtx to rtx_insn *.
6886         (find_conditional_protection): Likewise for local "next".
6887         (is_conditionally_protected): Likewise for local "insn1".
6888         (is_pfree): Likewise for locals "insn1", "insn2".
6889
6890 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6891
6892         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6893         from rtx to rtx_insn *.
6894
6895         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6896         locals "insn1", "insn2" from rtx to rtx_insn *.
6897         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6898         locals "insn", "prev", "last_jump", "next_tail".
6899         (schedule_ebb): Likewise for params "head", "tail".
6900         (schedule_ebbs): Likewise for locals "tail", "head".
6901
6902         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6903         to rtx_insn on "last_insn" in one of the invocations of
6904         schedule_ebb.
6905
6906 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6907
6908         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6909         "elem", "insn" from rtx to rtx_insn *.
6910         (change_spec_dep_to_hard): Likewise.
6911         (get_back_and_forw_lists): Likewise for local "con".
6912         (sd_add_dep): Likewise for locals "elem", "insn".
6913         (sd_resolve_dep): Likewise for locals "pro", "con".
6914         (sd_unresolve_dep): Likewise.
6915         (sd_delete_dep): Likewise.
6916         (chain_to_prev_insn): Likewise for local "pro".
6917         (find_inc): Likewise for locals "pro", "con".
6918
6919 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6920
6921         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6922         to rtx_insn *.
6923         (reg_set_between_p): Strengthen local "insn" from const_rtx to
6924         const rtx_insn *.
6925         (modified_between_p): Strengthen local "insn" from rtx to
6926         rtx_insn *.
6927         (remove_reg_equal_equiv_notes_for_regno): Likewise.
6928         (keep_with_call_p): Strengthen local "i2" from const_rtx to
6929         const rtx_insn *.
6930
6931 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6932
6933         * resource.c (next_insn_no_annul): Strengthen local "next" from
6934         rtx to rtx_insn *.
6935         (mark_referenced_resources): Likewise for local "insn".
6936
6937 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6938
6939         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6940         to rtx_insn *.
6941         (find_reloads): Likewise for param 1.
6942         (subst_reloads): Likewise for sole param.
6943         (find_equiv_reg): Likwise for param 2.
6944         (regno_clobbered_p): Likwise for param 2.
6945         (reload): Likewise for param 1.
6946
6947         * caller-save.c (save_call_clobbered_regs): Strengthen local
6948         "insn" from rtx to rtx_insn *.
6949         (insert_one_insn): Likewise for local "insn".
6950
6951         * reload.c (this_insn): Likewise for this global.
6952         (find_reloads): Likewise for param "insn".
6953         (find_reloads_toplev): Likewise.
6954         (find_reloads_address): Likewise.
6955         (subst_reg_equivs): Likewise.
6956         (update_auto_inc_notes): Likewise.
6957         (find_reloads_address_1): Likewise.
6958         (find_reloads_subreg_address): Likewise.
6959         (subst_reloads): Likewise.
6960         (find_equiv_reg): Likewise, also for local "p".
6961         (regno_clobbered_p): Likewise for param "insn".
6962
6963         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6964         array.
6965         (spill_reg_store): Likewise for the elements of this array.
6966         (remove_init_insns): Likewise for local "equiv_insn".
6967         (will_delete_init_insn_p): Likewise for param "insn".
6968         (reload): Likewise for param ""first" and local "insn".
6969         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6970         rtx_insn *.
6971         (calculate_elim_costs_all_insns): Likewise.
6972         (delete_caller_save_insns): Likewise.
6973         (spill_failure): Likewise for param "insn".
6974         (delete_dead_insn): Likewise.
6975         (set_label_offsets): Likewise.
6976         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6977         "prev_insn".
6978         (elimination_costs_in_insn): Likewise for param "insn".
6979         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6980         when referring to an insn.
6981         (set_initial_label_offsets): Likewise.
6982         (set_offsets_for_label): Strengthen param "insn" from rtx to
6983         rtx_insn *.
6984         (init_eliminable_invariants): Likewise for param "first" and local
6985         "insn".
6986         (fixup_eh_region_note): Likewise for param "insn".
6987         (reload_as_needed): Likewise for locals "prev", "insn",
6988         "old_next", "old_prev", "next".
6989         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6990         "last".
6991         (reload_inheritance_insn): Strengthen elements of this array from
6992         rtx to rtx_insn *.
6993         (failed_reload): Likewise for param "insn".
6994         (choose_reload_regs): Likewise for local "insn".  Replace use of
6995         NULL_RTX with NULL when referring to an insn.
6996         (input_reload_insns): Strengthen elements of this array from rtx
6997         to rtx_insn *.
6998         (other_input_address_reload_insns): Likewise for this global.
6999         (other_input_reload_insns): Likewise for this global.
7000         (input_address_reload_insns): Likwise for the elements of this
7001         array.
7002         (inpaddr_address_reload_insns): Likwise for the elements of this
7003         array.
7004         (output_reload_insns): Likewise for the elements of this array.
7005         (output_address_reload_insns): Likewise for the elements of this
7006         array.
7007         (outaddr_address_reload_insns): Likewise for the elements of this
7008         array.
7009         (operand_reload_insns): Likewise for this global.
7010         (other_operand_reload_insns): Likewise for this global.
7011         (other_output_reload_insns): Likewise for the elements of this
7012         array.
7013         (new_spill_reg_store): Likewise for the elements of this
7014         array.
7015         (emit_input_reload_insns): Likewise for locals "insn", "temp".
7016         Strengthen local "where" from rtx * to rtx_insn **.
7017         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7018         from rtx to rtx_insn *.
7019         (do_input_reload): Likewise for local "insn".
7020         (do_output_reload): Likewise for local "insn".
7021         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7022         (emit_insn_if_valid_for_reload): Likewise for return type and local
7023         "last".  Add checked cast to rtx_insn when returning "insn" since
7024         this has been through emit_insn.
7025         (gen_reload): Strengthen return type and locals "last", "insn", "set"
7026         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
7027         returning "insn" since it's been through
7028         emit_insn_if_valid_for_reload at this point.
7029         (delete_output_reload): Strengthen param "insn" and locals
7030         "output_reload_insn", "i2" from rtx to rtx_insn *.
7031         (delete_address_reloads): Likewise for params "dead_insn",
7032         "current_insn" and locals "prev", "next".
7033         (delete_address_reloads_1): Likewise for params "dead_insn",
7034         "current_insn" and locals "prev", "i2".
7035         (inc_for_reload): Likewise for locals "last", "add_insn".
7036         (add_auto_inc_notes): Strengthen param "insn" from rtx to
7037         rtx_insn *.
7038
7039         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7040         param of this duplicate of the prototype from reload.h
7041
7042 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7043
7044         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7045         rtx to rtx_insn *.
7046         (regstat_bb_compute_calls_crossed): Likewise.
7047
7048 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7049
7050         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7051         to rtx_insn *.
7052         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7053         with an insn.
7054         (regrename_analyze): Strengthen local "insn" from rtx to
7055         rtx_insn *.
7056         (scan_rtx_reg): Likewise for param "insn".
7057         (scan_rtx_address): Likewise.
7058         (scan_rtx): Likewise.
7059         (restore_operands): Likewise.
7060         (record_out_operands): Likewise.
7061         (build_def_use): Likewise for local "insn".  Replace use of
7062         NULL_RTX with NULL when dealing with an insn.
7063
7064 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7065
7066         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7067         * reginfo.c (reg_scan): Likewise, also for local "insn".
7068         (reg_scan_mark_refs): Likewise for param "insn".
7069         (init_subregs_of_mode): Likewise for local "insn".
7070
7071 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7072
7073         * regcprop.c (struct queued_debug_insn_change): Strengthen field
7074         "insn" from rtx to rtx_insn *.
7075         (replace_oldest_value_reg): Likewise for param "insn".
7076         (replace_oldest_value_addr): Likewise.
7077         (replace_oldest_value_mem): Likewise.
7078         (apply_debug_insn_changes): Likewise for local "last_insn".
7079         (copyprop_hardreg_forward_1): Likewise for local "insn".
7080
7081 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7082
7083         * reg-stack.c (next_flags_user): Strengthen return type and param
7084         "insn" from rtx to rtx_insn *.
7085         (straighten_stack): Likewise for param "insn".
7086         (check_asm_stack_operands): Likewise.
7087         (remove_regno_note): Likewise.
7088         (emit_pop_insn): Likewise for return type, param "insn", local
7089         "pop_insn".
7090         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
7091         "limit" from rtx to rtx_insn *.
7092         (swap_to_top): Likewise for param "insn".
7093         (move_for_stack_reg): Likewise.
7094         (move_nan_for_stack_reg): Likewise.
7095         (swap_rtx_condition): Likewise.
7096         (compare_for_stack_reg): Likewise.
7097         (subst_all_stack_regs_in_debug_insn): Likewise.
7098         (subst_stack_regs_pat): Likewise, and local "insn2".
7099         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7100         rtx_insn *.
7101         (subst_stack_regs): Likewise.
7102         (change_stack): Likewise.
7103         (convert_regs_1): Likewise for locals "insn", "next".
7104
7105 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7106
7107         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7108         rtx_insn *.
7109         (combine_set_extension): Likewise for param "curr_insn".
7110         (transform_ifelse): Likewise for param "def_insn".
7111         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
7112         from vec<rtx> * to vec<rtx_insn *> *.
7113         (is_cond_copy_insn): Likewise for param "insn".
7114         (struct ext_state): Strengthen the four vec fields from vec<rtx>
7115         to vec<rtx_insn *>.
7116         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7117         local "def_insn" from rtx to rtx_insn *.
7118         (get_sub_rtx): Likewise for param "def_insn".
7119         (merge_def_and_ext): Likewise.
7120         (combine_reaching_defs): Likewise.
7121         (add_removable_extension): Likewise for param "insn".
7122         (find_removable_extensions): Likewise for local "insn".
7123         (find_and_remove_re): Likewise for locals "curr_insn" and
7124         "def_insn".  Strengthen locals "reinsn_del_list" and
7125         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7126
7127 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7128
7129         * recog.c (split_insn): Strengthen param "insn" and locals
7130         "first", "last" from rtx to rtx_insn *.
7131         (split_all_insns): Likewise for locals "insn", "next".
7132         (split_all_insns_noflow): Likewise.
7133
7134 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7135
7136         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7137         const rtx_insn *.
7138         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7139         (debug_rtx_find): Likewise for param 1 "x".
7140
7141         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7142         const_rtx to const rtx_insn *.  Likewise for local "insn".
7143         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7144         (debug_rtx_find): Likewise for param 1 "x".
7145         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7146         from const_rtx to const rtx_insn * within the appropriate cases of
7147         the switch statement.
7148
7149         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7150         Strengthen local "insns" from rtx to rtx_insn * since this is
7151         passed to a call to debug_rtx_list.
7152
7153 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7154
7155         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7156         to rtx_insn *.
7157
7158         * function.c (stack_protect_epilogue): Add checked cast to
7159         rtx_insn for now when invoking predict_insn_def.
7160
7161         * predict.c (predict_insn): Strengthen param "insn" from rtx to
7162         rtx_insn *.
7163         (predict_insn_def): Likewise.
7164         (rtl_predict_edge): Likewise for local "last_insn".
7165         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7166         const rtx_insn *.
7167         (combine_predictions_for_insn): Strengthen param "insn" from rtx
7168         to rtx_insn *.
7169         (bb_estimate_probability_locally): Likewise for local "last_insn".
7170         (expensive_function_p): Likewise for local "insn".
7171
7172         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7173         local "jmp", since this is used when invoking predict_insn_def.
7174
7175 2014-08-22  Marek Polacek  <polacek@redhat.com>
7176
7177         PR c++/62199
7178         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7179
7180 2014-08-22  Marek Polacek  <polacek@redhat.com>
7181
7182         PR c/61271
7183         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7184         a comparison in parens.
7185         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7186         in parens.
7187
7188 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7189
7190         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7191         rtx_insn *.
7192
7193         * cprop.c (fis_get_condition): Likewise.
7194
7195         * postreload.c (reload_cse_regs): Likewise for param "first".
7196         (reload_cse_simplify): Likewise for param "insn".
7197         (reload_cse_regs_1): Likewise for local "insn".
7198         (reload_cse_simplify_set): Likewise for param "insn".
7199         (reload_cse_simplify_operands): Likewise.
7200         (struct reg_use): Likewise for field "insn".
7201         (reload_combine_purge_insn_uses): Likewise for param "insn".
7202         (fixup_debug_insns): Likewise for params "from", "to" and local
7203         "insn".
7204         (try_replace_in_use): Likewise for local "use_insn".
7205         (reload_combine_recognize_const_pattern): Likewise for param
7206         "insn" and locals "add_moved_after_insn", "use_insn".
7207         (reload_combine_recognize_pattern): Likewise for param "insn" and
7208         local "prev".
7209         (reload_combine): Likewise for locals "insn", "prev".
7210         (reload_combine_note_use): Likewise for param "insn".
7211         (move2add_use_add2_insn): Likewise.
7212         (move2add_use_add3_insn): Likewise.
7213         (reload_cse_move2add): Likewise, also for local "next".
7214         (move2add_note_store): Likewise for local "insn".
7215
7216 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7217
7218         * postreload-gcse.c (struct occr): Strengthen field "insn" from
7219         rtx to rtx_insn *.
7220         (struct unoccr): Likewise.
7221         (struct modifies_mem): Likewise.
7222         (alloc_mem): Likewise for local "insn".
7223         (insert_expr_in_table): Likewise for param "insn".
7224         (dump_expr_hash_table_entry): Likewise for local "insn".
7225         (oprs_unchanged_p): Likewise for param "insn".
7226         (load_killed_in_block_p): Likewise for local "setter".
7227         (record_last_reg_set_info): Likewise for param "insn".
7228         (record_last_reg_set_info_regno): Likewise.
7229         (record_last_mem_set_info): Likewise.
7230         (record_last_set_info): Likewise for local "last_set_insn".
7231         (record_opr_changes): Likewise for param "insn".
7232         (hash_scan_set): Likewise.
7233         (compute_hash_table): Likewise for local "insn".
7234         (get_avail_load_store_reg): Likewise for param "insn".
7235         (eliminate_partially_redundant_load): Likewise, also for locals
7236         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
7237         RTX for insns.
7238         (eliminate_partially_redundant_loads): Likewise for local "insn".
7239
7240 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7241
7242         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7243         rtx to rtx_insn *.
7244         (expand_binop): Likewise for locals "entry_last", "last", "insns"
7245         (expand_twoval_unop): Likewise for locals entry_last", "last".
7246         (expand_twoval_binop): Likewise.
7247         (expand_twoval_binop_libfunc): Likewise for local "insns".
7248         (widen_leading): Likewise for local "last".
7249         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
7250         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7251         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7252         (expand_parity): Likewise for locals "last" and "seq".
7253         (expand_ffs): Likewise for local "seq".  Strengthen local
7254         "nonzero_label" from rtx to rtx_code_label *.
7255         (expand_absneg_bit): Strengthen local "insns" from rtx to
7256         rtx_insn *.
7257         (expand_unop_direct): Likewise for local "last".
7258         (expand_unop): Likewise for locals "last", "insns".
7259         (expand_abs_nojump): Likewise for local "last".
7260         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7261         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7262         rtx_insn *.
7263         (expand_copysign_absneg): Strengthen local "label" from rtx to
7264         rtx_code_label *.
7265         (expand_copysign_bit): Strengthen local "insns" from rtx to
7266         rtx_insn *.
7267         (struct no_conflict_data): Likewise for fields "first", "insn".
7268         (emit_libcall_block_1): Likewise for param "insns" and locals
7269         "next", "last", "insn".
7270         (emit_libcall_block): For now, add a checked cast to rtx_insn *
7271         on "insns" when invoking emit_libcall_block_1.  Ultimately we
7272         want to strengthen insns itself.
7273         (prepare_cmp_insn): Strengthen local "last" from rtx to
7274         rtx_insn *.
7275         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7276         (prepare_float_lib_cmp): Likewise for local "insns".
7277         (emit_conditional_move): Likewise for local "last".
7278         (emit_conditional_add): Likewise.
7279         (have_sub2_insn): Likewise for local "seq".
7280         (expand_float): Likewise for local "insns".  Strengthen locals
7281         "label", "neglabel" from rtx to rtx_code_label *.
7282         (expand_fix): Likewise for locals "last", "insn", "insns" (to
7283         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7284         (expand_fixed_convert): Likewise for local "insns" (to
7285         rtx_insn *).
7286         (expand_sfix_optab): Likewise for local "last".
7287         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7288         to rtx_code_label *.
7289         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7290         from rtx to rtx_insn *.
7291         (expand_atomic_fetch_op): Likewise for local "insn".
7292         (maybe_legitimize_operand_same_code): Likewise for local "last".
7293         (maybe_legitimize_operands): Likewise.
7294
7295 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7296
7297         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7298         "insn" from rtx to rtx_insn *.
7299         (ps_rtl_insn): Likewise for return type.
7300         (doloop_register_get): Likewise for params "head", "tail" and
7301         locals "insn", "first_insn_not_to_check".
7302         (schedule_reg_move): Likewise for local "this_insn".
7303         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7304         of gen_move_insn for now.
7305         (reset_sched_times): Strengthen local "insn" from rtx to
7306         rtx_insn *.
7307         (permute_partial_schedule): Likewise.
7308         (duplicate_insns_of_cycles): Likewise for local "u_insn".
7309         (dump_insn_location): Likewise for param "insn".
7310         (loop_canon_p): Likewise for local "insn".
7311         (sms_schedule): Likewise.
7312         (print_partial_schedule): Likewise.
7313         (ps_has_conflicts): Likewise.
7314
7315 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7316
7317         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7318         "tailp" from rtx * to rtx_insn **.
7319
7320         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7321         from rtx to rtx_insn *.
7322         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7323         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
7324         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7325         rtx to rtx_insn *.
7326         * modulo-sched.c (const_iteration_count): Strengthen return type
7327         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
7328         use of NULL_RTX with NULL when working with insns.
7329         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7330         to rtx_insn *.
7331         (sms_schedule): Likewise.
7332         * sched-rgn.c (init_ready_list): Likewise, also for locals
7333         "src_head" and "src_next_tail".
7334         (compute_block_dependences): Likewise.
7335         (free_block_dependencies): Likewise.
7336         (debug_rgn_dependencies): Likewise.
7337         (free_rgn_deps): Likewise.
7338         (compute_priorities): Likewise.
7339         (schedule_region): Likewise.
7340         * sel-sched.c (find_ebb_boundaries): Likewise.
7341
7342         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7343         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7344
7345 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7346
7347         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7348         from rtx to rtx_insn *.
7349         (new_seginfo): Likewise for param "insn".
7350         (create_pre_exit): Likewise for locals "last_insn",
7351         "before_return_copy", "return_copy".
7352         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7353         "mode_set".
7354
7355 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7356
7357         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7358         from rtx to rtx_insn *.
7359         (lra_push_insn): Likewise for 1st param.
7360         (lra_push_insn_and_update_insn_regno_info): Likewise.
7361         (lra_pop_insn): Likewise for return type.
7362         (lra_invalidate_insn_data): Likewise for 1st param.
7363         (lra_set_insn_deleted): Likewise.
7364         (lra_delete_dead_insn): Likewise.
7365         (lra_process_new_insns): Likewise for first 3 params.
7366         (lra_set_insn_recog_data): Likewise for 1st param.
7367         (lra_update_insn_recog_data): Likewise.
7368         (lra_set_used_insn_alternative): Likewise.
7369         (lra_invalidate_insn_regno_info): Likewise.
7370         (lra_update_insn_regno_info): Likewise.
7371         (lra_former_scratch_operand_p): Likewise.
7372         (lra_eliminate_regs_1): Likewise.
7373         (lra_get_insn_recog_data): Likewise.
7374
7375         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7376         rtx to rtx_insn *.
7377
7378         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7379         "mv1" and "mv2".
7380         (substitute_within_insn): New.
7381         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7382         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
7383         Replace call to "substitute" with call to substitute_within_insn.
7384
7385         * lra-constraints.c (curr_insn): Strengthen from rtx to
7386         rtx_insn *.
7387         (get_equiv_with_elimination): Likewise for param "insn".
7388         (match_reload): Strengthen params "before" and "after" from rtx *
7389         to rtx_insn **.
7390         (emit_spill_move): Likewise for return type.  Add a checked cast
7391         to rtx_insn * on result of gen_move_insn for now.
7392         (check_and_process_move): Likewise for local "before".  Replace
7393         NULL_RTX with NULL when referring to insns.
7394         (process_addr_reg): Strengthen params "before" and "after" from
7395         rtx * to rtx_insn **.
7396         (insert_move_for_subreg): Likewise.
7397         (simplify_operand_subreg): Strengthen locals "before" and "after"
7398         from rtx to rtx_insn *.
7399         (process_address_1): Strengthen params "before" and "after" from
7400         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
7401         rtx to rtx_insn *.
7402         (process_address): Strengthen params "before" and "after" from
7403         rtx * to rtx_insn **.
7404         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7405         (curr_insn_transform): Strengthen locals "before" and "after"
7406         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
7407         to insns.
7408         (loc_equivalence_callback): Update cast of "data", changing
7409         resulting type from rtx to rtx_insn *.
7410         (substitute_pseudo_within_insn): New.
7411         (inherit_reload_reg): Strengthen param "insn" from rtx to
7412         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
7413         NULL when referring to insns.  Add a checked cast to rtx_insn *
7414         when using usage_insn to invoke lra_update_insn_regno_info.
7415         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7416         likewise for locals "restore", "save".  Add checked casts to
7417         rtx_insn * when using usage_insn to invoke
7418         lra_update_insn_regno_info and lra_process_new_insns.  Replace
7419         NULL_RTX with NULL when referring to insns.
7420         (split_if_necessary): Strengthen param "insn" from rtx to
7421         rtx_insn *.
7422         (update_ebb_live_info): Likewise for params "head", "tail" and local
7423         "prev_insn".
7424         (get_last_insertion_point): Likewise for return type and local "insn".
7425         (get_live_on_other_edges): Likewise for local "last".
7426         (inherit_in_ebb): Likewise for params "head", "tail" and locals
7427         "prev_insn", "next_insn", "restore".
7428         (remove_inheritance_pseudos): Likewise for local "prev_insn".
7429         (undo_optional_reloads): Likewise for local "insn".
7430
7431         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7432         "insn".
7433         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7434         insns.
7435         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7436         rtx_insn *.
7437         (spill_pseudos): Likewise for local "insn".
7438         (init_elimination): Likewise.
7439         (process_insn_for_elimination): Likewise for param "insn".
7440
7441         * lra-lives.c (curr_insn): Likewise.;
7442
7443         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7444         (remove_pseudos): Likewise for param "insn".
7445         (spill_pseudos): Likewise for local "insn".
7446         (lra_final_code_change): Likewise for locals "insn", "curr".
7447
7448         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7449         (lra_set_insn_deleted): Likewise.
7450         (lra_delete_dead_insn): Likewise, and for local "prev".
7451         (new_insn_reg): Likewise for param "insn".
7452         (lra_set_insn_recog_data): Likewise.
7453         (lra_update_insn_recog_data): Likewise.
7454         (lra_set_used_insn_alternative): Likewise.
7455         (get_insn_freq): Likewise.
7456         (invalidate_insn_data_regno_info): Likewise.
7457         (lra_invalidate_insn_regno_info): Likewise.
7458         (lra_update_insn_regno_info): Likewise.
7459         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7460         vec<rtx_insn *>.
7461         (lra_push_insn_1): Strengthen param "insn" from rtx to
7462         rtx_insn *.
7463         (lra_push_insn): Likewise.
7464         (lra_push_insn_and_update_insn_regno_info): Likewise.
7465         (lra_pop_insn): Likewise for return type and local "insn".
7466         (push_insns): Likewise for params "from", "to", and local "insn".
7467         (setup_sp_offset): Likewise for params "from", "last" and locals
7468         "before", "insn".
7469         (lra_process_new_insns): Likewise for params "insn", "before",
7470         "after" and local "last".
7471         (struct sloc): Likewise for field "insn".
7472         (lra_former_scratch_operand_p): Likewise for param "insn".
7473         (remove_scratches): Likewise for locals "insn", "last".
7474         (check_rtl): Likewise for local "insn".
7475         (add_auto_inc_notes): Likewise for param "insn".
7476         (update_inc_notes): Likewise for local "insn".
7477         (lra): Replace NULL_RTX with NULL when referring to insn.
7478
7479 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7480
7481         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7482         to rtx_insn *.
7483         (resolve_reg_notes): Likewise.
7484         (resolve_simple_move): Likewise for return type, param "insn", and
7485         locals "insns", "minsn".
7486         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7487         (resolve_use): Likewise.
7488         (resolve_debug): Likewise.
7489         (find_decomposable_shift_zext): Likewise.
7490         (resolve_shift_zext): Likewise for return type, param "insn", and
7491         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
7492         (decompose_multiword_subregs): Likewise for local "insn",
7493         "orig_insn", "decomposed_shift", "end".
7494
7495 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7496
7497         * basic-block.h (basic_block split_edge_and_insert): Strengthen
7498         param "insns" from rtx to rtx_insn *.
7499
7500         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7501         rtx to rtx_insn *.
7502         (struct iv_to_split): Likewise.
7503         (loop_exit_at_end_p): Likewise for local "insn".
7504         (split_edge_and_insert): Likewise for param "insns".
7505         (compare_and_jump_seq): Likewise for return type, param "cinsn",
7506         and locals "seq", "jump".
7507         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7508         "branch_code"; update invocations of compare_and_jump_seq to
7509         eliminate NULL_RTX in favor of NULL.
7510         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7511         rtx to rtx_insn *.
7512         (reset_debug_uses_in_loop): Likewise.
7513         (analyze_insn_to_expand_var): Likewise for param "insn".
7514         (analyze_iv_to_split_insn): Likewise.
7515         (analyze_insns_in_loop): Likewise for local "insn".
7516         (insert_base_initialization): Likewise for param
7517         "insn" and local "seq".
7518         (split_iv): Likewise for param "insn" and local "seq".
7519         (expand_var_during_unrolling): Likewise for param "insn".
7520         (insert_var_expansion_initialization): Likewise for local "seq".
7521         (combine_var_copies_in_loop_exit): Likewise.
7522         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7523         "insn".
7524         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7525         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7526         "next".
7527
7528 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7529
7530         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7531         rtx_insn *.
7532         (iv_analyze_result): Likewise.
7533         (iv_analyze_expr): Likewise.
7534         (biv_p): Likewise.
7535
7536         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7537         local "def_insn" from rtx to rtx_insn *.
7538         (get_biv_step_1): Likewise for local "insn".
7539         (iv_analyze_expr): Likewise for param "insn".
7540         (iv_analyze_def): Likewise for local "insn".
7541         (iv_analyze_op): Likewise for param "insn".
7542         (iv_analyze): Likewise.
7543         (iv_analyze_result): Likewise.
7544         (biv_p): Likewise.
7545         (suitable_set_for_replacement): Likewise.
7546         (simplify_using_initial_values): Likewise for local "insn".
7547         (iv_number_of_iterations): Likewise for param "insn".
7548         (check_simple_exit): Add checked cast to rtx_insn when invoking
7549         iv_number_of_iterations for now (until get_condition is
7550         strengthened).
7551
7552         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7553         "insn" from rtx to rtx_insn *.
7554         (analyze_insns_in_loop): Likewise for local "insn".
7555
7556 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7557
7558         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7559         to rtx_insn *.
7560         (struct invariant): Likewise.
7561         (hash_invariant_expr_1): Likewise for param "insn".
7562         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7563         (find_exits): Likewise for local "insn".
7564         (create_new_invariant): Likewise for param "insn".
7565         (check_dependencies): Likewise.
7566         (find_invariant_insn): Likewise.
7567         (record_uses): Likewise.
7568         (find_invariants_insn): Likewise.
7569         (find_invariants_bb): Likewise for local "insn".
7570         (get_pressure_class_and_nregs): Likewise for param "insn".
7571         (calculate_loop_reg_pressure): Likewise for local "insn".
7572
7573 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7574
7575         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7576         to rtx_insn *.
7577         (add_test): Likewise for locals "seq", "jump".
7578         (doloop_modify): Likewise for locals "sequence", "jump_insn".
7579
7580 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7581
7582         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7583         rtx_insn *.
7584         (rebuild_jump_labels_chain): Likewise for param "chain".
7585
7586         * cfgexpand.c (pass_expand::execute): Add checked cast to
7587         rtx_insn * when calling rebuild_jump_labels_chain in region where
7588         we know e->insns.r is non-NULL.
7589
7590         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7591         rtx_insn *.
7592         (rebuild_jump_labels): Likewise.
7593         (rebuild_jump_labels_chain): Likewise for param "chain".
7594         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7595         (init_label_info): Likewise for param "f".
7596         (maybe_propagate_label_ref): Likewise for params "jump_insn",
7597         "prev_nonjump_insn".
7598         (mark_all_labels): Likewise for param "f" and locals "insn",
7599         "prev_nonjump_insn".
7600
7601 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7602
7603         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7604         from rtx to rtx_insn *insn.
7605         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7606         (ira_add_allocno_copy): Likewise.
7607         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7608         rtx to rtx_insn *.
7609         (ira_create_copy): Likewise.
7610         (ira_add_allocno_copy): Likewise.
7611         (create_bb_allocnos): Likewise for local "insn".
7612         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7613         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7614         process_regs_for_copy for rtx_insn * param.
7615         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7616         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
7617         process_regs_for_copy for rtx_insn * param.
7618         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7619         * ira-costs.c (record_reg_classes): Likewise for param "insn".
7620         (record_operand_costs): Likewise.
7621         (scan_one_insn): Likewise for return type, and for param "insn".
7622         (process_bb_for_costs): Likewise for local "insn".
7623         (process_bb_node_for_hard_reg_moves): Likewise.
7624         * ira-emit.c (struct move): Likewise for field "insn".
7625         (create_move): Eliminate use of NULL_RTX when dealing with an
7626         rtx_insn *.
7627         (emit_move_list): Strengthen return type and locals "result",
7628         "insn" from rtx to rtx_insn *insn.
7629         (emit_moves): Likewise for locals "insns", "tmp".
7630         (ira_emit): Likewise for local "insn".
7631         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7632         "insn".
7633         (find_call_crossed_cheap_reg): Likewise.
7634         (process_bb_node_lives): Likewise for local "insn".
7635         * ira.c (decrease_live_ranges_number): Likewise.
7636         (compute_regs_asm_clobbered): Likewise.
7637         (build_insn_chain): Likewise.
7638         (find_moveable_pseudos): Likewise, also locals "def_insn",
7639         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
7640         to rtx_insn **.  Add a checked cast when assigning from
7641         "closest_use" into closest_uses array in a region where we know
7642         it's a non-NULL insn.
7643         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7644         to rtx_insn *.
7645         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7646         "last_interesting_insn", "uin".
7647         (move_unallocated_pseudos): Likewise for locals "def_insn",
7648         "move_insn", "newinsn".
7649
7650 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7651
7652         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7653         Strengthen locals "done_label", "do_error" from rtx to
7654         rtx_code_label *.
7655         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7656         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
7657         rtx_code_label *.
7658         (ubsan_expand_si_overflow_neg_check): Likewise for locals
7659         "done_label", "do_error" to rtx_code_label * and local  "last" to
7660         rtx_insn *.
7661         (ubsan_expand_si_overflow_mul_check): Likewise for locals
7662         "done_label", "do_error", "large_op0", "small_op0_large_op1",
7663         "one_small_one_large", "both_ops_large", "after_hipart_neg",
7664         "after_lopart_neg", "do_overflow", "hipart_different"  to
7665         rtx_code_label * and local  "last" to rtx_insn *.
7666
7667 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7668
7669         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7670         "insn" and "move_insn" from rtx to rtx_insn *.
7671
7672 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7673
7674         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7675         rtx_insn *.
7676         (cheap_bb_rtx_cost_p): Likewise.
7677         (first_active_insn): Likewise for return type and local "insn".
7678         (last_active_insn):  Likewise for return type and locals "insn",
7679         "head".
7680         (struct noce_if_info): Likewise for fields "jump", "insn_a",
7681         "insn_b".
7682         (end_ifcvt_sequence): Likewise for return type and locals "insn",
7683         "seq".
7684         (noce_try_move): Likewise for local "seq".
7685         (noce_try_store_flag): Likewise.
7686         (noce_try_store_flag_constants): Likewise.
7687         (noce_try_addcc): Likewise.
7688         (noce_try_store_flag_mask): Likewise.
7689         (noce_try_cmove): Likewise.
7690         (noce_try_minmax): Likewise.
7691         (noce_try_abs): Likewise.
7692         (noce_try_sign_mask): Likewise.
7693         (noce_try_bitop): Likewise.
7694         (noce_can_store_speculate_p): Likewise for local "insn".
7695         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7696         seq".
7697         (check_cond_move_block): Likewise for local "insn".
7698         (cond_move_convert_if_block): Likewise.
7699         (cond_move_process_if_block): Likewise for locals "seq",
7700         "loc_insn".
7701         (noce_find_if_block): Likewise for local "jump".
7702         (merge_if_block): Likewise for local "last".
7703         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7704         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7705         (block_has_only_trap): Likewise for return type and local "trap".
7706         (find_if_case_1): Likewise for local "jump".
7707         (dead_or_predicable): Likewise for locals "head", "end", "jump",
7708         "insn".
7709
7710 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7711
7712         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7713         "last_insn", "loop_end" from rtx to rtx_insn *.
7714
7715         * hw-doloop.c (scan_loop): Likewise for local "insn".
7716         (discover_loop): Likewise for param "tail_insn".
7717         (discover_loops): Likewise for local "tail".
7718
7719         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7720         cast to rtx_insn * when assigning from an rtx local to a
7721         hwloop_info's "last_insn" field.
7722
7723 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7724
7725         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7726         (add_delay_dependencies): Strengthen local "pro" from rtx to
7727         rtx_insn *.
7728         (recompute_todo_spec): Likewise.
7729         (dep_cost_1): Likewise for locals "insn", "used".
7730         (schedule_insn): Likewise for local "dbg".
7731         (schedule_insn): Likewise for locals "pro", "next".
7732         (unschedule_insns_until): Likewise for local "con".
7733         (restore_pattern): Likewise for local "next".
7734         (estimate_insn_tick): Likewise for local "pro".
7735         (resolve_dependencies): Likewise for local "next".
7736         (fix_inter_tick): Likewise.
7737         (fix_tick_ready): Likewise for local "pro".
7738         (add_to_speculative_block): Likewise for locals "check", "twin",
7739         "pro".
7740         (sched_extend_bb): Likewise for locals "end", "insn".
7741         (init_before_recovery): Likewise for local "x".
7742         (sched_create_recovery_block): Likewise for local "barrier".
7743         (create_check_block_twin): Likewise for local "pro".
7744         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7745         "consumer".
7746         (unlink_bb_notes): Update for change to type of bb_header.
7747         Strengthen locals "prev", "label", "note", "next" from rtx to
7748         rtx_insn *.
7749         (clear_priorities): Likewise for local "pro".
7750
7751 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7752
7753         * gcse.c (struct occr): Strengthen field "insn" from rtx to
7754         rtx_insn *.
7755         (test_insn): Likewise for this global.
7756         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7757         const rtx_insn *.
7758         (oprs_anticipatable_p): Likewise.
7759         (oprs_available_p): Likewise.
7760         (insert_expr_in_table): Strengthen param "insn" from  rtx to
7761         rtx_insn *.
7762         (hash_scan_set): Likewise.
7763         (hash_scan_clobber): Likewise.
7764         (hash_scan_call): Likewise.
7765         (hash_scan_insn): Likewise.
7766         (compute_hash_table_work): Likewise for local "insn".
7767         (process_insert_insn): Likewise for return type and local "pat".
7768         (insert_insn_end_basic_block): Likewise for locals "new_insn",
7769         "pat", "pat_end", "maybe_cc0_setter".
7770         (pre_edge_insert): Likewise for local "insn".
7771         (pre_insert_copy_insn): Likewise for param "insn".
7772         (pre_insert_copies): Likewise for local "insn".
7773         (struct set_data): Likewise for field "insn".
7774         (single_set_gcse): Likewise for param "insn".
7775         (gcse_emit_move_after): Likewise.
7776         (pre_delete): Likewise for local "insn".
7777         (update_bb_reg_pressure): Likewise for param "from" and local
7778         "insn".
7779         (should_hoist_expr_to_dom): Likewise for param "from".
7780         (hoist_code): Likewise for local "insn".
7781         (get_pressure_class_and_nregs): Likewise for param "insn".
7782         (calculate_bb_reg_pressure): Likewise for local "insn".
7783         (compute_ld_motion_mems): Likewise.
7784
7785 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7786
7787         * genpeep.c (main): Rename param back from "uncast_ins1" to
7788         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
7789         checked cast.
7790
7791         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7792
7793 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7794
7795         PR target/62195
7796         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7797         documentation to state it is only for VSX operations.
7798
7799         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7800         constraint only active if VSX.
7801
7802         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7803         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7804         (lfiwzx): Likewise.
7805
7806 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7807
7808         * fwprop.c (single_def_use_dom_walker::before_dom_children):
7809         Strengthen local "insn" from rtx to rtx_insn *.
7810         (use_killed_between): Likewise for param "target_insn".
7811         (all_uses_available_at): Likewise for param "target_insn" and
7812         local "next".
7813         (update_df_init): Likewise for params "def_insn", "insn".
7814         (update_df): Likewise for param "insn".
7815         (try_fwprop_subst): Likewise for param "def_insn" and local
7816         "insn".
7817         (free_load_extend): Likewise for param "insn".
7818         (forward_propagate_subreg): Likewise for param "def_insn" and
7819         local "use_insn".
7820         (forward_propagate_asm): Likewise for param "def_insn" and local
7821         "use_insn".
7822         (forward_propagate_and_simplify): Likewise for param "def_insn"
7823         and local "use_insn".
7824         (forward_propagate_into): Likewise for locals "def_insn" and
7825         "use_insn".
7826
7827 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7828
7829         * function.c (emit_initial_value_sets): Strengthen local "seq"
7830         from rtx to rtx_insn *.
7831         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7832         local "seq".
7833         (instantiate_virtual_regs): Likewise for local "insn".
7834         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7835         (reorder_blocks_1): Likewise for param "insns" and local "insn".
7836         (expand_function_end): Likewise for locals "insn" and "seq".
7837         (epilogue_done): Likewise for local "insn".
7838         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7839         "last", "trial".
7840         (reposition_prologue_and_epilogue_notes): Likewise for locals
7841         "insn", "last", "note", "first".
7842         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7843         (pass_match_asm_constraints::execute): Likewise for local "insn".
7844
7845 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7846
7847         * output.h (final_scan_insn): Strengthen return type from rtx to
7848         rtx_insn *.
7849         (final_forward_branch_p): Likewise for param.
7850         (current_output_insn): Likewise for this global.
7851
7852         * final.c (rtx debug_insn): Likewise for this variable.
7853         (current_output_insn): Likewise.
7854         (get_attr_length_1): Rename param "insn" to "uncast_insn",
7855         adding "insn" back in as an rtx_insn * with a checked cast, so
7856         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7857         first param.
7858         (compute_alignments): Strengthen local "label" from rtx to
7859         rtx_insn *.
7860         (shorten_branches): Rename param from "first" to "uncast_first",
7861         introducing a new local rtx_insn * "first" using a checked cast to
7862         effectively strengthen "first" from rtx to rtx_insn * without
7863         affecting the type signature.  Strengthen locals "insn", "seq",
7864         "next", "label" from rtx to rtx_insn *.
7865         (change_scope): Strengthen param "orig_insn" and local "insn" from
7866         rtx to rtx_insn *.
7867         (final_start_function): Rename param from "first" to "uncast_first",
7868         introducing a new local rtx_insn * "first" using a checked cast to
7869         effectively strengthen "first" from rtx to rtx_insn * without
7870         affecting the type signature.  Strengthen local "insn" from rtx to
7871         rtx_insn *.
7872         (dump_basic_block_info): Strengthen param "insn" from rtx to
7873         rtx_insn *.
7874         (final): Rename param from "first" to "uncast_first",
7875         introducing a new local rtx_insn * "first" using a checked cast to
7876         effectively strengthen "first" from rtx to rtx_insn * without
7877         affecting the type signature.  Strengthen locals "insn", "next"
7878         from rtx to rtx_insn *.
7879         (output_alternate_entry_point): Strengthen param "insn" from rtx to
7880         rtx_insn *.
7881         (call_from_call_insn): Strengthen param "insn" from rtx to
7882         rtx_call_insn *.
7883         (final_scan_insn): Rename param from "insn" to "uncast_insn",
7884         introducing a new local rtx_insn * "insn" using a checked cast to
7885         effectively strengthen "insn" from rtx to rtx_insn * without
7886         affecting the type signature.  Strengthen return type and locals
7887         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
7888         now-redundant checked cast to rtx_insn * from both invocations of
7889         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
7890         introducing a local "call_insn" for use when invoking
7891         call_from_call_insn.
7892         (notice_source_line): Strengthen param "insn" from rtx to
7893         rtx_insn *.
7894         (leaf_function_p): Likewise for local "insn".
7895         (final_forward_branch_p): Likewise.
7896         (leaf_renumber_regs): Likewise for param "first".
7897         (rest_of_clean_state): Likewise for locals "insn" and "next".
7898         (self_recursive_call_p): Likewise for param "insn".
7899         (collect_fn_hard_reg_usage): Likewise for local "insn".
7900         (get_call_fndecl): Likewise for param "insn".
7901         (get_call_cgraph_rtl_info): Likewise.
7902         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7903         introducing a new local rtx_insn * "insn" using a checked cast to
7904         effectively strengthen "insn" from rtx to rtx_insn * without
7905         affecting the type signature.
7906
7907         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7908         cast when assigning from param "insn" to current_output_insn.
7909         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7910         so that we can assign it back to current_output_insn.
7911
7912 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7913
7914         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7915         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7916         atmxt540s and atmxt540sreva devices.
7917         * config/avr/avr-tables.opt: Regenerate.
7918         * config/avr/t-multilib: Regenerate.
7919         * doc/avr-mmcu.texi: Regenerate.
7920
7921 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7922
7923         * expr.c (convert_move): Strengthen local "insns" from rtx to
7924         rtx_insn *.
7925         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7926         "top_label" from rtx to rtx_code_label *.
7927         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7928         rtx_insn *.
7929         (emit_single_push_insn): Likewise for locals "prev", "last".
7930         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7931         to rtx_code_label *.
7932         (store_constructor): Likewise for locals "loop_start", "loop_end".
7933         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7934         rtx_insn *.
7935         (expand_expr_real_2): Likewise.
7936         (expand_expr_real_1): Strengthen local "label" from rtx to
7937         rtx_code_label *.
7938
7939 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7940
7941         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7942         from rtx to rtx_insn *.
7943         (store_bit_field_1): Likewise.
7944         (extract_bit_field_1): Likewise.
7945         (expand_mult_const): Likewise for local "insns".
7946         (expmed_mult_highpart): Strengthen local "label" from rtx to
7947         rtx_code_label *.
7948         (expand_smod_pow2): Likewise.
7949         (expand_sdiv_pow2): Likewise.
7950         (expand_divmod): Strengthen locals "last", "insn" from rtx to
7951         rtx_insn *.  Strengthen locals "label", "label1", "label2",
7952         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7953         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7954         (emit_store_flag): Likewise.
7955         (emit_store_flag_force): Strengthen local "label" from rtx to
7956         rtx_code_label *.
7957         (do_cmp_and_jump): Likewise for param "label".
7958
7959 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7960
7961         * explow.c (force_reg): Strengthen local "insn" from rtx to
7962         rtx_insn *.
7963         (adjust_stack_1): Likewise.
7964         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
7965         "final_label", "available_label", "space_available" from rtx to
7966         rtx_code_label *.
7967         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7968         (anti_adjust_stack_and_probe): Likewise.
7969
7970 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7971
7972         * except.h (sjlj_emit_function_exit_after): Strengthen param
7973         "after" from rtx to rtx_insn *.  This is only called with
7974         result of get_last_insn (in function.c) so type-change should be
7975         self-contained.
7976
7977         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7978         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7979         to rtx_insn *.  These fields are only used from except.c so this
7980         type-change should be self-contained to this patch.
7981
7982         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7983         local "last" from rtx to rtx_insn *.
7984         (dw2_build_landing_pads): Likewise for local "seq".
7985         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7986         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7987         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
7988         rtx to rtx_insn *.
7989         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7990         to rtx_insn *.
7991         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7992         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7993         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7994         referring to an insn.  Strengthen local "dispatch_label" from
7995         rtx to rtx_code_label *.
7996         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7997         rtx_insn *.
7998         (expand_eh_return): Strengthen local "around_label" from
7999         rtx to rtx_code_label *.
8000         (convert_to_eh_region_ranges): Strengthen locals "iter",
8001         "last_action_insn", "first_no_action_insn",
8002         "first_no_action_insn_before_switch",
8003         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8004
8005 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8006
8007         * dwarf2out.c (last_var_location_insn): Strengthen this variable
8008         from rtx to rtx_insn *.
8009         (cached_next_real_insn): Likewise.
8010         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8011         working with insns.
8012         (dwarf2out_var_location): Strengthen locals "next_real",
8013         "next_note", "expected_next_loc_note", "last_start", "insn" from
8014         rtx to rtx_insn *.
8015
8016 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8017
8018         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8019         from rtx to rtx_insn *.
8020         (create_pseudo_cfg): Likewise for local "insn".
8021
8022 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8023
8024         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8025         from rtx to rtx_insn *.
8026         (df_bb_regno_last_def_find): Likewise.
8027
8028         * df-problems.c (df_rd_bb_local_compute): Likewise.
8029         (df_lr_bb_local_compute): Likewise.
8030         (df_live_bb_local_compute): Likewise.
8031         (df_chain_remove_problem): Likewise.
8032         (df_chain_create_bb): Likewise.
8033         (df_word_lr_bb_local_compute): Likewise.
8034         (df_remove_dead_eq_notes): Likewise for param "insn".
8035         (df_note_bb_compute): Likewise for local "insn".
8036         (simulate_backwards_to_point): Likewise.
8037         (df_md_bb_local_compute): Likewise.
8038
8039         * df-scan.c (df_scan_free_bb_info): Likewise.
8040         (df_scan_start_dump): Likewise.
8041         (df_scan_start_block): Likewise.
8042         (df_install_ref_incremental): Likewise for local "insn".
8043         (df_insn_rescan_all): Likewise.
8044         (df_reorganize_refs_by_reg_by_insn): Likewise.
8045         (df_reorganize_refs_by_insn_bb): Likewise.
8046         (df_recompute_luids): Likewise.
8047         (df_bb_refs_record): Likewise.
8048         (df_update_entry_exit_and_calls): Likewise.
8049         (df_bb_verify): Likewise.
8050
8051 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8052
8053         * ddg.h (struct ddg_node): Strengthen fields "insn" and
8054         "first_note" from rtx to rtx_insn *.
8055         (get_node_of_insn): Likewise for param 2 "insn".
8056         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8057
8058         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8059         rtx_insn *.
8060         (mem_write_insn_p): Likewise.
8061         (mem_access_insn_p): Likewise.
8062         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8063         (def_has_ccmode_p): Likewise for param "insn".
8064         (add_cross_iteration_register_deps): Likewise for locals
8065         "def_insn" and "use_insn".
8066         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8067         (build_intra_loop_deps): Likewise for local "src_insn".
8068         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8069         to rtx_insn *.
8070         (get_node_of_insn): Likewise for param "insn".
8071
8072 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8073
8074         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8075         (deletable_insn_p): Strengthen param "insn" from rtx to
8076         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
8077         find_call_stack_args, since this is guarded by CALL_P (insn).
8078         (marked_insn_p): Strengthen param "insn" from rtx to
8079         rtx_insn *.
8080         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
8081         invoking find_call_stack_args, since this is guarded by
8082         CALL_P (insn).
8083         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8084         rtx_insn *; we know this is an insn since this was called by
8085         mark_nonreg_stores.
8086         (mark_nonreg_stores_2): Likewise.
8087         (mark_nonreg_stores): Strengthen param "insn" from rtx to
8088         rtx_insn *.
8089         (find_call_stack_args): Strengthen param "call_insn" from rtx to
8090         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8091         to rtx_insn *.
8092         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8093         from rtx to rtx_insn *.
8094         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8095         "next", "ref_insn".
8096         (delete_unmarked_insns): Likewise for locals "insn", "next".
8097         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8098         (mark_reg_dependencies): Likewise for param "insn".
8099         (rest_of_handle_ud_dce): Likewise for local "insn".
8100         (word_dce_process_block): Likewise.
8101         (dce_process_block): Likewise.
8102
8103 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8104
8105         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8106         from rtx to rtx_insn *.
8107         (struct change_cc_mode_args): Likewise for field "insn".
8108         (this_insn): Strengthen from rtx to rtx_insn *.
8109         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8110         with insn.
8111         (validate_canon_reg): Strengthen param "insn" from rtx to
8112         rtx_insn *.
8113         (canon_reg): Likewise.
8114         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
8115         dealing with insn.
8116         (record_jump_equiv): Strengthen param "insn" from rtx to
8117         rtx_insn *.
8118         (try_back_substitute_reg): Likewise, also for locals "prev",
8119         "bb_head".
8120         (find_sets_in_insn): Likewise for param "insn".
8121         (canonicalize_insn): Likewise.
8122         (cse_insn): Likewise.  Add a checked cast.
8123         (invalidate_from_clobbers): Likewise for param "insn".
8124         (invalidate_from_sets_and_clobbers): Likewise.
8125         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8126         dealing with insn.
8127         (cse_prescan_path): Strengthen local "insn" from rtx to
8128         rtx_insn *.
8129         (cse_extended_basic_block): Likewise for locals "insn" and
8130         "prev_insn".
8131         (cse_main): Likewise for param "f".
8132         (check_for_label_ref): Likewise for local "insn".
8133         (set_live_p): Likewise for second param ("insn").
8134         (insn_live_p): Likewise for first param ("insn") and for local
8135         "next".
8136         (cse_change_cc_mode_insn): Likewise for first param "insn".
8137         (cse_change_cc_mode_insns): Likewise for first and second params
8138         "start" and "end".
8139         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8140         and "end".
8141         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8142         "cc_src_insn".
8143
8144 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8145             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8146             Anna Tikhonova  <anna.tikhonova@intel.com>
8147             Ilya Tocar  <ilya.tocar@intel.com>
8148             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8149             Ilya Verbin  <ilya.verbin@intel.com>
8150             Kirill Yukhin  <kirill.yukhin@intel.com>
8151             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8152
8153         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8154         New.
8155         * config/i386/sse.md
8156         (define_mode_iterator VI248_AVX2): Delete.
8157         (define_mode_iterator VI2_AVX2_AVX512BW): New.
8158         (define_mode_iterator VI48_AVX2): Ditto.
8159         (define_insn <shift_insn><mode>3): Delete.
8160         (define_insn "<shift_insn><mode>3<mask_name>" with
8161         VI2_AVX2_AVX512BW): New.
8162         (define_insn "<shift_insn><mode>3<mask_name>" with
8163         VI48_AVX2): Ditto.
8164
8165 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8166             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8167             Anna Tikhonova  <anna.tikhonova@intel.com>
8168             Ilya Tocar  <ilya.tocar@intel.com>
8169             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8170             Ilya Verbin  <ilya.verbin@intel.com>
8171             Kirill Yukhin  <kirill.yukhin@intel.com>
8172             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8173
8174         * config/i386/sse.md
8175         (define_mode_iterator VI4F_BRCST32x2): New.
8176         (define_mode_attr 64x2_mode): Ditto.
8177         (define_mode_attr 32x2mode): Ditto.
8178         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8179         with VI4F_BRCST32x2): Ditto.
8180         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8181         with V16FI mode iterator): Ditto.
8182         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8183         with V16FI): Ditto.
8184         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8185         with VI8F_BRCST64x2): Ditto.
8186
8187 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8188             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8189             Anna Tikhonova  <anna.tikhonova@intel.com>
8190             Ilya Tocar  <ilya.tocar@intel.com>
8191             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8192             Ilya Verbin  <ilya.verbin@intel.com>
8193             Kirill Yukhin  <kirill.yukhin@intel.com>
8194             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8195
8196         * config/i386/sse.md
8197         (define_mode_iterator VI8_AVX512VL): New.
8198         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8199
8200 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8201
8202         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8203         (define_mode_iterator V48_AVX512VL): New.
8204         (define_mode_iterator V12_AVX512VL): Ditto.
8205         (define_insn <avx512>_load<mode>_mask): Split into two similar
8206         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8207         Refactor output template.
8208         (define_insn "<avx512>_store<mode>_mask"): Ditto.
8209
8210 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8211
8212         * cprop.c (struct occr): Strengthen field "insn" from rtx to
8213         rtx_insn *.
8214         (reg_available_p): Likewise for param "insn".
8215         (insert_set_in_table): Likewise.
8216         (hash_scan_set): Likewise.
8217         (hash_scan_insn): Likewise.
8218         (make_set_regs_unavailable): Likewise.
8219         (compute_hash_table_work): Likewise for local "insn".
8220         (reg_not_set_p): Strengthen param "insn" from const_rtx to
8221         const rtx_insn *.
8222         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8223         (try_replace_reg): Likewise.
8224         (find_avail_set): Likewise.
8225         (cprop_jump): Likewise for params "setcc", "jump".
8226         (constprop_register): Likewise for param "insn".
8227         (cprop_insn): Likewise.
8228         (do_local_cprop): Likewise.
8229         (local_cprop_pass): Likewise for local "insn".
8230         (bypass_block): Likewise for params "setcc" and "jump".
8231         (bypass_conditional_jumps): Likewise for locals "setcc" and
8232         "insn".
8233         (one_cprop_pass): Likewise for local "insn".
8234
8235 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8236
8237         * compare-elim.c (struct comparison_use): Strengthen field "insn"
8238         from rtx to rtx_insn *.
8239         (struct comparison): Likewise, also for field "prev_clobber".
8240         (conforming_compare): Likewise for param "insn".
8241         (arithmetic_flags_clobber_p): Likewise.
8242         (find_flags_uses_in_insn): Likewise.
8243         (find_comparison_dom_walker::before_dom_children): Likewise for
8244         locals "insn", "next", "last_clobber".
8245         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8246
8247 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8248
8249         * combine-stack-adj.c (struct csa_reflist): Strengthen field
8250         "insn" from rtx to rtx_insn *.
8251         (single_set_for_csa): Likewise for param "insn".
8252         (record_one_stack_ref): Likewise.
8253         (try_apply_stack_adjustment): Likewise.
8254         (struct record_stack_refs_data): Likewise for field "insn".
8255         (maybe_move_args_size_note): Likewise for params "last" and "insn".
8256         (prev_active_insn_bb): Likewise for return type and param "insn".
8257         (next_active_insn_bb): Likewise.
8258         (force_move_args_size_note): Likewise for params "prev" and "last"
8259         and locals "test", "next_candidate", "prev_candidate".
8260         (combine_stack_adjustments_for_block): Strengthen locals
8261         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8262         rtx_insn *.
8263
8264 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8265
8266         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8267         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8268         (subst_insn): Likewise for this variable.
8269         (added_links_insn): Likewise.
8270         (struct insn_link): Likewise for field "insn".
8271         (alloc_insn_link): Likewise for param "insn".
8272         (struct undobuf): Likewise for field "other_insn".
8273         (find_single_use): Likewise for param "insn" and local "next".
8274         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8275         (delete_noop_moves): Likewise for locals "insn", "next".
8276         (create_log_links): Likewise for locals "insn", "use_insn".
8277         Strengthen local "next_use" from rtx * to rtx_insn **.
8278         (insn_a_feeds_b): Likewise for params "a", "b".
8279         (combine_instructions): Likewise for param "f" and locals "insn",
8280         "next", "prev", "first", "last_combined_insn", "link", "link1",
8281         "temp".  Replace use of NULL_RTX with NULL when referring to
8282         insns.
8283         (setup_incoming_promotions): Likewise for param "first"
8284         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8285         (can_combine_p): Likewise for params "insn", "i3", "pred",
8286         "pred2", "succ", "succ2" and for local "p".
8287         (combinable_i3pat): Likewise for param "i3".
8288         (cant_combine_insn_p): Likewise for param "insn".
8289         (likely_spilled_retval_p): Likewise.
8290         (adjust_for_new_dest): Likewise.
8291         (update_cfg_for_uncondjump): Likewise, also for local "insn".
8292         (try_combine): Likewise for return type and for params "i3", "i2",
8293         "i1", "i0", "last_combined_insn", and for locals "insn",
8294         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8295         "i0_insn".  Eliminate local "tem" in favor of new locals
8296         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
8297         checked cast for now to rtx_insn * on the return type of
8298         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
8299         insns.
8300         (find_split_point): Strengthen param "insn" from rtx to
8301         rtx_insn *.
8302         (simplify_set): Likewise for local "other_insn".
8303         (recog_for_combine): Likewise for param "insn".
8304         (record_value_for_reg): Likewise.
8305         (record_dead_and_set_regs_1): Likewise for local
8306         "record_dead_insn".
8307         (record_dead_and_set_regs): Likewise for param "insn".
8308         (record_promoted_value): Likewise.
8309         (check_promoted_subreg): Likewise.
8310         (get_last_value_validate): Likewise.
8311         (reg_dead_at_p): Likewise.
8312         (move_deaths): Likewise for param "to_insn".
8313         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8314         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
8315         in favor of new locals "tem_note" and "tem_insn", the latter being
8316         an rtx_insn *.
8317         (distribute_links): Strengthen locals "place", "insn" from rtx to
8318         rtx_insn *.
8319
8320 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8321
8322         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8323         than a const_rtx.
8324         (can_delete_label_p): Require a const rtx_code_label * rather than
8325         a const_rtx.
8326         (delete_insn): Add checked cast to rtx_code_label * when we know
8327         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
8328         rtx to rtx_insn *.
8329         (delete_insn_chain): Strengthen locals "prev" and "current" from
8330         rtx to rtx_insn *.  Add a checked cast when assigning from
8331         "finish" (strengthening the params will come later).  Add a
8332         checked cast to rtx_note * in region where we know
8333         NOTE_P (current).
8334         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8335         rtx_insn *.
8336         (compute_bb_for_insn): Likewise.
8337         (free_bb_for_insn): Likewise for local "insn".
8338         (compute_bb_for_insn): Likewise.
8339         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8340         local "insn" from rtx to rtx_insn *
8341         (flow_active_insn_p): Require a const rtx_insn * rather than a
8342         const_rtx.
8343         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8344         rtx_insn *.
8345         (can_fallthru): Likewise for locals "insn" and "insn2".
8346         (bb_note): Likewise for local "note".
8347         (first_insn_after_basic_block_note): Likewise for local "note" and
8348         for return type.
8349         (rtl_split_block): Likewise for locals "insn" and "next".
8350         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8351         "end".
8352         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8353         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8354         "prev", "tmp".
8355         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8356         them), "kill_from", "barrier", "new_insn".
8357         (patch_jump_insn): Likewise for params "insn", "old_label".
8358         (redirect_branch_edge): Likewise for locals "old_label", "insn".
8359         (force_nonfallthru_and_redirect): Likewise for locals "insn",
8360         "old_label", "new_label".
8361         (rtl_tidy_fallthru_edge): Likewise for local "q".
8362         (rtl_split_edge): Likewise for locals "before", "last".
8363         (commit_one_edge_insertion): Likewise for locals "before",
8364         "after", "insns", "tmp", "last", adding a checked cast where
8365         currently necessary.
8366         (commit_edge_insertions): Likewise.
8367         (rtl_dump_bb): Likewise for locals "insn", "last".
8368         (print_rtl_with_bb): Likewise for local "x".
8369         (rtl_verify_bb_insns): Likewise for local "x".
8370         (rtl_verify_bb_pointers): Likewise for local "insn".
8371         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8372         "head", "end".
8373         (rtl_verify_fallthru): Likewise for local "insn".
8374         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8375         (purge_dead_edges): Likewise for local "insn".
8376         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8377         (skip_insns_after_block): Likewise for return type and for locals
8378         "insn", "last_insn", "next_head", "prev".
8379         (record_effective_endpoints): Likewise for locals "next_insn",
8380         "insn", "end".
8381         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8382         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8383         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8384         (duplicate_insn_chain): For now, add checked cast from rtx to
8385         rtx_insn * when returning insn.
8386         (cfg_layout_duplicate_bb): Likewise for local "insn".
8387         (cfg_layout_delete_block): Likewise for locals "insn", "next",
8388         "prev", "remaints".
8389         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8390         (rtl_block_empty_p): Likewise.
8391         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8392         "split_point", "last".
8393         (rtl_block_ends_with_call_p): Likewise for local "insn".
8394         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8395         const rtx_insn *.
8396         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8397         "split_at_insn" from rtx to rtx_insn *.
8398         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8399         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8400         to const rtx_insn *.
8401         (rtl_account_profile_record): Likewise.
8402
8403 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8404
8405         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8406         rtx to rtx_insn *.
8407         (average_num_loop_insns): Likewise.
8408         (init_set_costs): Likewise for local "seq".
8409         (seq_cost): Likewise for param "seq", from const_rtx to const
8410         rtx_insn *.
8411
8412 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8413
8414         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8415         rtx to rtx_insn *.
8416
8417 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8418
8419         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8420         "f1" and "f2" from rtx * to rtx_insn **.
8421         (flow_find_head_matching_sequence): Likewise.
8422
8423         * cfgcleanup.c (try_simplify_condjump): Strengthen local
8424         "cbranch_insn" from rtx to rtx_insn *.
8425         (thread_jump): Likewise for local "insn".
8426         (try_forward_edges): Likewise for local "last".
8427         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8428         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8429         "real_b_end".
8430         (can_replace_by): Likewise for params "i1", "i2".
8431         (old_insns_match_p): Likewise.
8432         (merge_notes): Likewise.
8433         (walk_to_nondebug_insn): Likewise for param "i1".
8434         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8435         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
8436         "afterlast1", "afterlast2" from rtx to rtx_insn *.
8437         (flow_find_head_matching_sequence): Strengthen params "f1" and
8438         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
8439         "last1", "last2", "beforelast1", "beforelast2" from rtx to
8440         rtx_insn *.
8441         (outgoing_edges_match): Likewise for locals "last1", "last2".
8442         (try_crossjump_to_edge): Likewise for local "insn".
8443         Replace call to for_each_rtx with for_each_rtx_in_insn.
8444
8445         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8446         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8447         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
8448         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8449         (try_optimize_cfg): Strengthen local "last" from rtx to
8450         rtx_insn *.
8451         (delete_dead_jumptables): Likewise for locals "insn", "next",
8452         "label".
8453
8454         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8455         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8456         "rtx else_first_tail", to reflect the basic-block.h changes above.
8457
8458 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8459
8460         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8461         rtx_insn *.
8462         (purge_dead_tablejump_edges): Likewise.
8463         (find_bb_boundaries): Likewise for locals "insn", "end",
8464         "flow_transfer_insn".
8465
8466 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8467
8468         * caller-save.c (save_call_clobbered_regs): Strengthen locals
8469         "ins" and "prev" from rtx to rtx_insn *.
8470
8471 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8472
8473         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8474         rtx_insn *.
8475         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8476         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8477         "scan_start".
8478         (load_register_parameters): Likewise for local "before_arg".
8479         (check_sibcall_argument_overlap): Likewise for param "insn".
8480         (expand_call): Likewise for locals "normal_call_insns",
8481         "tail_call_insns", "insns", "before_call", "after_args",
8482         "before_arg", "last", "prev".  Strengthen one of the "last" from
8483         rtx to rtx_call_insn *.
8484         (fixup_tail_calls): Strengthen local "insn" from rtx to
8485         rtx_insn *.
8486         (emit_library_call_value_1): Likewise for locals "before_call" and
8487         "last".
8488
8489 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8490
8491         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8492         and "last" from rtx to rtx_insn *.
8493         (expand_builtin_nonlocal_goto): Likewise for local "insn".
8494         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8495         rtx_call_insn *.
8496         (expand_errno_check): Strengthen local "lab" from rtx to
8497         rtx_code_label *.
8498         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8499         rtx_insn *.
8500         (expand_builtin_mathfn_2): Likewise.
8501         (expand_builtin_mathfn_ternary): Likewise.
8502         (expand_builtin_mathfn_3): Likewise.
8503         (expand_builtin_interclass_mathfn): Likewise for local "last".
8504         (expand_builtin_int_roundingfn): Likewise for local "insns".
8505         (expand_builtin_int_roundingfn_2): Likewise.
8506         (expand_builtin_strlen): Likewise for local "before_strlen".
8507         (expand_builtin_strncmp): Likewise for local "seq".
8508         (expand_builtin_signbit): Likewise for local "last".
8509         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8510         from rtx to rtx_code_label *.
8511         (expand_stack_restore):  Strengthen local "prev" from rtx to
8512         rtx_insn *.
8513
8514 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8515
8516         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8517         to rtx_insn *.
8518         (struct btr_def_s): Likewise.
8519         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8520         const rtx_insn *.
8521         (add_btr_def): Likewise.
8522         (new_btr_user): Likewise.
8523         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8524         rtx to rtx_insn *.
8525         (link_btr_uses): Likewise.
8526         (move_btr_def): Likewise for locals "insp", "old_insn",
8527         "new_insn".  Add checked cast to rtx_insn * for now on result of
8528         gen_move_insn.
8529         (can_move_up): Strengthen param "insn" from const_rtx to
8530         const rtx_insn *.
8531
8532 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8533
8534         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8535         rtx_insn *.
8536         (get_uncond_jump_length): Likewise for locals "label", "jump".
8537         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8538         "jump", "insn".
8539         (add_labels_and_missing_jumps): Likewise for local "new_jump".
8540         (fix_up_fall_thru_edges): Likewise for local "old_jump".
8541         (find_jump_block): Likewise for local "insn".
8542         (fix_crossing_conditional_branches): Likewise for locals
8543         "old_jump", "new_jump".
8544         (fix_crossing_unconditional_branches): Likewise for locals
8545         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8546         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8547
8548 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8549
8550         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8551         rtx to rtx_insn *.
8552         (struct mem_insn): Likewise for field "insn".
8553         (reg_next_use): Strengthen from rtx * to rtx_insn **.
8554         (reg_next_inc_use): Likewise.
8555         (reg_next_def): Likewise.
8556         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8557         from rtx to rtx_insn *.
8558         (move_insn_before): Likewise for param "next_insn" and local "insns".
8559         (attempt_change): Likewise for local "mov_insn".
8560         (try_merge): Likewise for param "last_insn".
8561         (get_next_ref): Likewise for return type and local "insn".
8562         Strengthen param "next_array" from rtx * to rtx_insn **.
8563         (parse_add_or_inc): Strengthen param "insn" from rtx to
8564         rtx_insn *.
8565         (find_inc): Likewise for locals "insn" and "other_insn" (three of
8566         the latter).
8567         (merge_in_block): Likewise for locals "insn", "curr",
8568         "other_insn".
8569         (pass_inc_dec::execute): Update allocations of the arrays to
8570         reflect the stronger types.
8571
8572 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8573
8574         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8575         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
8576         from rtx to rtx_code_label *.
8577
8578 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8579
8580         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8581         to rtx_insn *.
8582
8583 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8584
8585         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8586         generated a warning and prevented bootstrapping the compiler.
8587
8588 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8589
8590         * rtl.h (delete_related_insns): Strengthen return type from rtx to
8591         rtx_insn *.
8592
8593         * jump.c (delete_related_insns): Likewise, also for locals "next"
8594         and "prev".
8595
8596 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8597
8598         * genautomata.c (output_internal_insn_latency_func): When writing
8599         the function "internal_insn_latency" to insn-automata.c,
8600         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8601         allowing the optional guard function of (define_bypass) clauses to
8602         expect a pair of rtx_insn *, rather than a pair of rtx.
8603         (output_insn_latency_func): When writing the function
8604         "insn_latency", add an "uncast_" prefix to params "insn" and
8605         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8606         using checked casts from the params, thus enabling the above
8607         change to the generated "internal_insn_latency" function.
8608
8609 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
8610
8611         PR tree-optimization/62091
8612         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8613         handle correctly arrays.
8614         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8615         inheritance binfos.
8616         (record_known_type): Walk into inner type.
8617         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8618         condition on no type changes.
8619
8620 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8621
8622         * genattrtab.c (write_attr_get): Within the generated get_attr_
8623         functions, rename param "insn" to "uncast_insn" and reintroduce
8624         "insn" as an local rtx_insn * using a checked cast, so that "insn"
8625         is an rtx_insn * within insn-attrtab.c
8626
8627 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8628
8629         * output.h (peephole): Strengthen return type from rtx to
8630         rtx_insn *.
8631         * rtl.h (delete_for_peephole): Likewise for both params.
8632         * genpeep.c (main): In generated "peephole" function, strengthen
8633         return type and local "insn" from rtx to rtx_insn *.  For now,
8634         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8635         rtx_insn *, with a checked cast.
8636         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8637         locals "insn", "next", "prev" from rtx to rtx_insn *.
8638
8639 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
8640
8641         PR tree-optimization/62112
8642         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8643         * gimple-iterator.h (gsi_replace): Return bool.
8644         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8645         moved from ref_may_alias_global_p.
8646         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8647         New overloads.
8648         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8649         (stmt_kills_ref_p_1): Rename...
8650         (stmt_kills_ref_p): ... to this.
8651         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8652         stmt_kills_ref_p): Declare.
8653         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8654         Move the self-assignment case...
8655         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8656
8657 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8658
8659         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8660
8661         * emit-rtl.c (try_split): Likewise, also for locals "before" and
8662         "after".  For now, don't strengthen param "trial", which requires
8663         adding checked casts when returning it.
8664
8665 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8666
8667         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8668         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
8669         "var_location" hook from rtx to rtx_insn *.
8670         (debug_nothing_rtx): Delete in favor of...
8671         (debug_nothing_rtx_code_label): New prototype.
8672         (debug_nothing_rtx_rtx): Delete unused prototype.
8673         (debug_nothing_rtx_insn): New prototype.
8674
8675         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8676         invoking debug_hooks->var_location (in two places, one in a NOTE
8677         case of a switch statement, the other guarded by a CALL_P
8678         conditional.  Add checked cast to rtx_code_label * when invoking
8679         debug_hooks->label (within CODE_LABEL case of switch statement).
8680
8681         * dbxout.c (dbx_debug_hooks): Update "label" hook from
8682         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
8683         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8684         (xcoff_debug_hooks): Likewise.
8685         * debug.c (do_nothing_debug_hooks): Likewise.
8686         (debug_nothing_rtx): Delete in favor of...
8687         (debug_nothing_rtx_insn): New function.
8688         (debug_nothing_rtx_rtx): Delete unused function.
8689         (debug_nothing_rtx_code_label): New function.
8690         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8691         debug_nothing_rtx to debug_nothing_rtx_code_label.
8692         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8693         to rtx_insn *.
8694         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8695         debug_nothing_rtx to debug_nothing_rtx_insn.
8696         (sdbout_label): Strengthen param "insn" from rtx to
8697         rtx_code_label *.
8698         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8699         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
8700         "var_location" hook from debug_nothing_rtx to
8701         debug_nothing_rtx_insn.
8702
8703 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8704
8705         * recog.h (insn_output_fn): Update this function typedef to match
8706         the changes below to the generated output functions, strengthening
8707         the 2nd param from rtx to rtx_insn *.
8708
8709         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8710         insn when invoking an output function, to match the new signature
8711         of insn_output_fn with a stronger second param.
8712
8713         * genconditions.c (write_header): In the generated code for
8714         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8715         to match the other changes in this patch.
8716
8717         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8718         the generated "gen_" functions from rtx to rtx_insn * within their
8719         implementations.
8720
8721         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8722         the subfunctions within the generated "recog_", "split", "peephole2"
8723         function trees from rtx to rtx_insn *.  For now, the top-level
8724         generated functions ("recog", "split", "peephole2") continue to
8725         take a plain rtx for "insn", to avoid introducing dependencies on
8726         other patches.  Rename this 2nd param from "insn" to
8727         "uncast_insn", and reintroduce "insn" as a local variable of type
8728         rtx_insn *, initialized at the top of the generated function with
8729         a checked cast on "uncast_insn".
8730         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8731         the generated "gen_" functions from rtx to rtx_insn * within their
8732         prototypes.
8733
8734         * genoutput.c (process_template): Strengthen the 2nd param within
8735         the generated "output_" functions "insn" from rtx to rtx_insn *.
8736
8737 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
8738
8739         * tree-profile.c (tree_profiling): Skip external functions
8740         when doing coverage instrumentation.
8741         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8742
8743 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8744
8745         * config/rs6000/altivec.h (vec_cpsgn): New #define.
8746         (vec_mergee): Likewise.
8747         (vec_mergeo): Likewise.
8748         (vec_cntlz): Likewise.
8749         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8750         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8751         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8752         VMRGEW, and VMRGOW.
8753         * doc/extend.texi: Document various forms of vec_cpsgn,
8754         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8755         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8756         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8757         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8758         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8759
8760 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8761
8762         * config/rs6000/rs6000.c (context.h): New include.
8763         (tree-pass.h): Likewise.
8764         (make_pass_analyze_swaps): New decl.
8765         (rs6000_option_override): Register pass_analyze_swaps.
8766         (swap_web_entry): New subsclass of web_entry_base (df.h).
8767         (special_handling_values): New enum.
8768         (union_defs): New function.
8769         (union_uses): Likewise.
8770         (insn_is_load_p): Likewise.
8771         (insn_is_store_p): Likewise.
8772         (insn_is_swap_p): Likewise.
8773         (rtx_is_swappable_p): Likewise.
8774         (insn_is_swappable_p): Likewise.
8775         (chain_purpose): New enum.
8776         (chain_contains_only_swaps): New function.
8777         (mark_swaps_for_removal): Likewise.
8778         (swap_const_vector_halves): Likewise.
8779         (adjust_subreg_index): Likewise.
8780         (permute_load): Likewise.
8781         (permute_store): Likewise.
8782         (handle_special_swappables): Likewise.
8783         (replace_swap_with_copy): Likewise.
8784         (dump_swap_insn_table): Likewise.
8785         (rs6000_analyze_swaps): Likewise.
8786         (pass_data_analyze_swaps): New pass_data.
8787         (pass_analyze_swaps): New rtl_opt_pass.
8788         (make_pass_analyze_swaps): New function.
8789         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8790
8791 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8792
8793         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8794         type from rtx to rtx_insn *.
8795         (create_copy_of_insn_rtx): Likewise.
8796         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8797         (create_copy_of_insn_rtx): Likewise, also for local "res".
8798
8799 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8800
8801         * rtl.h (find_first_parameter_load): Strengthen return type from
8802         rtx to rtx_insn *.
8803         * rtlanal.c (find_first_parameter_load): Strengthen return type
8804         from rtx to rtx_insn *.  Add checked cast for now, to postpone
8805         strengthening the params.
8806
8807 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8808
8809         PR fortran/44054
8810         * diagnostic.c: Set default caret.
8811         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8812         line is needed.
8813         * diagnostic.h (struct diagnostic_context):
8814
8815 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8816
8817         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8818         (sel_bb_head): Strengthen return type insn_t (currently just an
8819         rtx) to rtx_insn *.
8820         (sel_bb_end): Likewise.
8821
8822         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8823         (sel_bb_head): Strengthen return type and local "head" from
8824         insn_t (currently just an rtx) to rtx_insn *.
8825         (sel_bb_end): Likewise for return type.
8826         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8827         working with insn.
8828
8829 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8830
8831         * basic-block.h (get_last_bb_insn): Strengthen return type from
8832         rtx to rtx_insn *.
8833         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8834         end".
8835
8836 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8837
8838         PR fortran/44054
8839         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8840          to here ...
8841         (diagnostic_report_diagnostic): ... from here.
8842         * toplev.c (general_init): Move code to c-family.
8843
8844 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8845
8846         * df.h (web_entry_base): Replace existing struct web_entry with a
8847         new class web_entry_base with only the predecessor member.
8848         (unionfind_root): Remove declaration and move to class member.
8849         (unionfind_union): Remove declaration and move to friend
8850         function.
8851         (union_defs): Remove declaration.
8852         * web.c (web_entry_base::unionfind_root): Modify to be member
8853         function and adjust accessors.
8854         (unionfind_union): Modify to be friend function and adjust
8855         accessors.
8856         (web_entry): New subclass of web_entry_base containing the reg
8857         member.
8858         (union_match_dups): Modify for struct -> class changes.
8859         (union_defs): Likewise.
8860         (entry_register): Likewise.
8861         (pass_web::execute): Likewise.
8862
8863 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
8864
8865         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8866         builtin define __VEC_ELEMENT_REG_ORDER__.
8867
8868 2014-08-20  Martin Jambor  <mjambor@suse.cz>
8869             Wei Mi  <wmi@google.com>
8870
8871         PR ipa/60449
8872         PR middle-end/61776
8873         * tree-ssa-operands.c (update_stmt_operands): Remove
8874         MODIFIED_NORETURN_CALLS.
8875         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8876         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8877         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8878         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8879         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8880         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8881         (gimple_call_set_ctrl_altering): New func.
8882         (gimple_call_ctrl_altering_p): Ditto.
8883         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8884         (make_blocks): Use gimple_call_initialize_ctrl_altering.
8885         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8886         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8887         remove MODIFIED_NORETURN_CALLS.
8888
8889 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
8890
8891         * coverage.c (coverage_compute_profile_id): Return non-0;
8892         also handle symbols with unique name.
8893         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8894
8895 2014-08-20  Steve Ellcey  <sellcey@mips.com>
8896
8897         PR middle-end/49191
8898         * doc/sourcebuild.texi (non_strict_align): New.
8899
8900 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
8901
8902         * cgraphunit.c (ipa_passes, compile): Reshedule
8903         symtab_remove_unreachable_nodes passes; update comments.
8904         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8905         TODO_remove_functions before the pass; the functions ought to be
8906         already removed.
8907         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8908         TODO_remove_functions.
8909         * passes.c (pass_data_early_local_passes): Do not schedule function
8910         removal.
8911         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8912
8913 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8914
8915         PR c/59304
8916         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8917         before setting the option.
8918         * diagnostic.c (diagnostic_classify_diagnostic): Record
8919         command-line status.
8920
8921 2014-08-20  Richard Biener  <rguenther@suse.de>
8922
8923         PR lto/62190
8924         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8925         to build uint{16,32,64}_type_node.
8926
8927 2014-08-20  Terry Guo  <terry.guo@arm.com>
8928
8929         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8930         with immediate_operand.
8931
8932 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
8933
8934         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8935         "insn" from an as_a to a safe_as_a, for the case when "insn" is
8936         NULL.
8937
8938 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8939
8940         PR preprocessor/51303
8941         * incpath.c (remove_duplicates): Use cpp_warning.
8942
8943 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8944
8945         PR c/60975
8946         PR c/53063
8947         * doc/options.texi (CPP): Document it.
8948         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8949         * optc-gen.awk: Handle CPP.
8950         * opth-gen.awk: Likewise.
8951
8952 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8953
8954         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8955         rtx_insn *.
8956         (duplicate_insn_chain): Likewise.
8957         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8958         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
8959         checked cast for now (until we can strengthen the params in the
8960         same way).
8961         (duplicate_insn_chain): Likewise.
8962
8963 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8964
8965         * rtl.h (next_cc0_user): Strengthen return type from rtx to
8966         rtx_insn *.
8967         (prev_cc0_setter): Likewise.
8968
8969         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8970         rtx_insn *, adding checked casts for now as necessary.
8971         (prev_cc0_setter): Likewise.
8972
8973 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8974
8975         * expr.h (emit_move_insn): Strengthen return type from rtx to
8976         rtx_insn *.
8977         (emit_move_insn_1): Likewise.
8978         (emit_move_complex_push): Likewise.
8979         (emit_move_complex_parts): Likewise.
8980
8981         * expr.c (emit_move_via_integer): Strengthen return type from rtx
8982         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
8983         with insns.
8984         (emit_move_complex_push): Strengthen return type from rtx to
8985         rtx_insn *.
8986         (emit_move_complex): Likewise, also for local "ret".
8987         (emit_move_ccmode): Likewise.
8988         (emit_move_multi_word): Likewise for return type and locals
8989         "last_insn", "seq".
8990         (emit_move_insn_1): Likewise for return type and locals "result",
8991         "ret".
8992         (emit_move_insn): Likewise for return type and local "last_insn".
8993         (compress_float_constant): Likewise.
8994
8995 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8996
8997         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8998         from rtx to rtx_insn *.
8999
9000         * rtl.h (emit_insn_before): Likewise.
9001         (emit_insn_before_noloc): Likewise.
9002         (emit_insn_before_setloc): Likewise.
9003         (emit_jump_insn_before): Likewise.
9004         (emit_jump_insn_before_noloc): Likewise.
9005         (emit_jump_insn_before_setloc): Likewise.
9006         (emit_call_insn_before): Likewise.
9007         (emit_call_insn_before_noloc): Likewise.
9008         (emit_call_insn_before_setloc): Likewise.
9009         (emit_debug_insn_before): Likewise.
9010         (emit_debug_insn_before_noloc): Likewise.
9011         (emit_debug_insn_before_setloc): Likewise.
9012         (emit_label_before): Likewise.
9013         (emit_insn_after): Likewise.
9014         (emit_insn_after_noloc): Likewise.
9015         (emit_insn_after_setloc): Likewise.
9016         (emit_jump_insn_after): Likewise.
9017         (emit_jump_insn_after_noloc): Likewise.
9018         (emit_jump_insn_after_setloc): Likewise.
9019         (emit_call_insn_after): Likewise.
9020         (emit_call_insn_after_noloc): Likewise.
9021         (emit_call_insn_after_setloc): Likewise.
9022         (emit_debug_insn_after): Likewise.
9023         (emit_debug_insn_after_noloc): Likewise.
9024         (emit_debug_insn_after_setloc): Likewise.
9025         (emit_label_after): Likewise.
9026         (emit_insn): Likewise.
9027         (emit_debug_insn): Likewise.
9028         (emit_jump_insn): Likewise.
9029         (emit_call_insn): Likewise.
9030         (emit_label): Likewise.
9031         (gen_clobber): Likewise.
9032         (emit_clobber): Likewise.
9033         (gen_use): Likewise.
9034         (emit_use): Likewise.
9035         (emit): Likewise.
9036
9037         (emit_barrier_before): Strengthen return type from rtx to
9038         rtx_barrier *.
9039         (emit_barrier_after): Likewise.
9040         (emit_barrier): Likewise.
9041
9042         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
9043         from rtx to rtx_insn *.  Add checked casts for now when converting
9044         "last" from rtx to rtx_insn *.
9045         (emit_insn_before_noloc): Likewise for return type.
9046         (emit_jump_insn_before_noloc): Likewise.
9047         (emit_call_insn_before_noloc): Likewise.
9048         (emit_debug_insn_before_noloc): Likewise.
9049         (emit_barrier_before): Strengthen return type and local "insn"
9050         from rtx to rtx_barrier *.
9051         (emit_label_before): Strengthen return type from rtx to
9052         rtx_insn *.  Add checked cast for now when returning param
9053         (emit_pattern_after_noloc): Strengthen return type from rtx to
9054         rtx_insn *.  Add checked casts for now when converting "last" from
9055         rtx to rtx_insn *.
9056         (emit_insn_after_noloc): Strengthen return type from rtx to
9057         rtx_insn *.
9058         (emit_jump_insn_after_noloc): Likewise.
9059         (emit_call_insn_after_noloc): Likewise.
9060         (emit_debug_insn_after_noloc): Likewise.
9061         (emit_barrier_after): Strengthen return type from rtx to
9062         rtx_barrier *.
9063         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9064         Add checked cast for now when converting "label" from rtx to
9065         rtx_insn *.
9066         (emit_pattern_after_setloc): Strengthen return type from rtx to
9067         rtx_insn *.  Add checked casts for now when converting "last" from
9068         rtx to rtx_insn *.
9069         (emit_pattern_after): Strengthen return type from rtx to
9070         rtx_insn *.
9071         (emit_insn_after_setloc): Likewise.
9072         (emit_insn_after): Likewise.
9073         (emit_jump_insn_after_setloc): Likewise.
9074         (emit_jump_insn_after): Likewise.
9075         (emit_call_insn_after_setloc): Likewise.
9076         (emit_call_insn_after): Likewise.
9077         (emit_debug_insn_after_setloc): Likewise.
9078         (emit_debug_insn_after): Likewise.
9079         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
9080         when converting "last" from rtx to rtx_insn *.
9081         (emit_pattern_before): Strengthen return type from rtx to
9082         rtx_insn *.
9083         (emit_insn_before_setloc): Likewise.
9084         (emit_insn_before): Likewise.
9085         (emit_jump_insn_before_setloc): Likewise.
9086         (emit_jump_insn_before): Likewise.
9087         (emit_call_insn_before_setloc): Likewise.
9088         (emit_call_insn_before): Likewise.
9089         (emit_debug_insn_before_setloc): Likewise.
9090         (emit_debug_insn_before): Likewise.
9091         (emit_insn): Strengthen return type and locals "last", "insn",
9092         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
9093         within cases where we know we have an insn.
9094         (emit_debug_insn): Likewise.
9095         (emit_jump_insn): Likewise.
9096         (emit_call_insn): Strengthen return type and local "insn" from rtx
9097         to rtx_insn *.
9098         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
9099         a checked cast to rtx_insn * for now on "label".
9100         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9101         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9102         (emit_use): Likewise.
9103         (gen_use): Likewise, also for local "seq".
9104         (emit): Likewise for return type and local "insn".
9105         (rtx_insn): Likewise for return type and local "new_rtx".
9106
9107         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9108         from rtx to rtx_barrier *.
9109
9110         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9111         changed return type from rtx to rtx_insn *, we must update
9112         "emit_fn" type, and this in turn means updating...
9113         (frame_insn): ...this.  Strengthen return type from rtx to
9114         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
9115
9116 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9117
9118         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9119         rtx to rtx_jump_table_data *.  Also for local.
9120         * rtl.h (emit_jump_table_data): Likewise.
9121
9122 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9123
9124         * basic-block.h (create_basic_block_structure): Strengthen third
9125         param "bb_note" from rtx to rtx_note *.
9126         * rtl.h (emit_note_before): Strengthen return type from rtx to
9127         rtx_note *.
9128         (emit_note_after): Likewise.
9129         (emit_note): Likewise.
9130         (emit_note_copy): Likewise.  Also, strengthen param similarly.
9131         * function.h (struct rtl_data): Strengthen field
9132         "x_stack_check_probe_note" from rtx to rtx_note *.
9133
9134         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9135         from rtx to rtx_note *.
9136         * cfgrtl.c (create_basic_block_structure): Strengthen third param
9137         "bb_note" from rtx to rtx_note *.
9138         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
9139         when calling emit_note_copy.
9140         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9141         rtx_note *.
9142         (emit_note_after): Likewise.
9143         (emit_note_before): Likewise.
9144         (emit_note_copy): Likewise.  Also, strengthen param similarly.
9145         (emit_note): Likewise.
9146         * except.c (emit_note_eh_region_end): Likewise for return type.
9147         Strengthen local "next" from rtx to rtx_insn *.
9148         (convert_to_eh_region_ranges): Strengthen local "note"
9149         from rtx to rtx_note *.
9150         * final.c (change_scope): Likewise.
9151         (reemit_insn_block_notes): Likewise, for both locals named "note".
9152         Also, strengthen local "insn" from rtx to rtx_insn *.
9153         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9154         rtx to rtx_note *.
9155         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9156         strengthen local "seq" from rtx to rtx_insn *.
9157         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9158         to rtx_note *.
9159         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9160         vec<rtx_note *>.
9161         (get_bb_note_from_pool): Strengthen return type from rtx to
9162         rtx_note *.
9163         (sel_create_basic_block): Strengthen local "new_bb_note" from
9164         insn_t to rtx_note *.
9165         * var-tracking.c (emit_note_insn_var_location): Strengthen local
9166         "note" from rtx to rtx_note *.
9167         (emit_notes_in_bb): Likewise.
9168
9169 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9170
9171         * function.h (struct rtl_data): Strengthen field
9172         "x_parm_birth_insn" from rtx to rtx_insn *.
9173         * function.c (struct assign_parm_data_all): Strengthen fields
9174         "first_conversion_insn" and "last_conversion_insn" from rtx to
9175         rtx_insn *.
9176
9177 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9178
9179         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9180         to rtx_insn *; also for local "var_end_seq".
9181         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9182         (maybe_cleanup_end_of_block): Likewise for param "last" and local
9183         "insn".
9184         (expand_gimple_cond): Likewise for locals "last2" and "last".
9185         (mark_transaction_restart_calls): Likewise for local "insn".
9186         (expand_gimple_stmt): Likewise for return type and locals "last"
9187         and "insn".
9188         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9189         (avoid_complex_debug_insns): Likewise for param "insn".
9190         (expand_debug_locations): Likewise for locals "insn", "last",
9191         "prev_insn" and "insn2".
9192         (expand_gimple_basic_block): Likewise for local "last".
9193         (construct_exit_block): Likewise for locals "head", "end",
9194         "orig_end".
9195         (pass_expand::execute): Likewise for locals "var_seq",
9196         "var_ret_seq", "next".
9197
9198 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9199
9200         * asan.h (asan_emit_stack_protection): Strengthen return type from
9201         rtx to rtx_insn *.
9202         * asan.c (asan_emit_stack_protection): Likewise.  Add local
9203         "insns" to hold the return value.
9204
9205 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9206
9207         * basic-block.h (bb_note): Strengthen return type from rtx to
9208         rtx_note *.
9209         * sched-int.h (bb_note): Likewise.
9210         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
9211
9212 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9213
9214         * rtl.h (make_insn_raw): Strengthen return type from rtx to
9215         rtx_insn *.
9216
9217         * emit-rtl.c (make_insn_raw): Strengthen return type and local
9218         "insn" from rtx to rtx_insn *.
9219         (make_debug_insn_raw): Strengthen return type from rtx to
9220         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9221         (make_jump_insn_raw):  Strengthen return type from rtx to
9222         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9223         (make_call_insn_raw):  Strengthen return type from rtx to
9224         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9225         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9226         callback from rtx to rtx_insn *; likewise for local "insn" and
9227         "next", adding a checked cast to rtx_insn in the relevant cases of
9228         the switch statement.
9229         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9230         callback from rtx to rtx_insn *.
9231         (emit_pattern_after_setloc): Likewise.
9232         (emit_pattern_after): Likewise.
9233         (emit_pattern_before_setloc): Likewise.
9234         (emit_pattern_before): Likewise.
9235
9236 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9237
9238         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9239         rtx_call_insn *.
9240         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9241         accepting an rtx_insn *.
9242         (last_call_insn): Strengthen return type from rtx to
9243         rtx_call_insn *.
9244
9245 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9246
9247         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9248         "insns" from rtx to rtx_insn *.
9249         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9250         locals "insn" and "prev".
9251
9252 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9253
9254         * rtl.h (tablejump_p): Strengthen third param from rtx * to
9255         rtx_jump_table_data **.
9256
9257         * cfgbuild.c (make_edges): Introduce local "table", using it in
9258         place of "tmp" for jump table data.
9259         (find_bb_boundaries): Strengthen local "table" from rtx to
9260         rtx_jump_table_data *.
9261         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9262         (outgoing_edges_match): Likewise for locals "table1" and "table2".
9263         (try_crossjump_to_edge): Likewise.
9264         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9265         "table".
9266         (patch_jump_insn): Introduce local "table", using it in place of
9267         "tmp" for jump table data.
9268         (force_nonfallthru_and_redirect): Introduce local "table", so that
9269         call to tablejump_p can receive an rtx_jump_table_data **.  Update
9270         logic around the call to overwrite "note" appropriately if
9271         tablejump_p returns non-zero.
9272         (get_last_bb_insn): Introduce local "table", using it in place of
9273         "tmp" for jump table data.
9274         * dwarf2cfi.c (create_trace_edges): Likewise.
9275
9276         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9277         from rtx to rtx_jump_table_data *.
9278         (create_fix_barrier): Strengthen local "tmp" from rtx to
9279         rtx_jump_table_data *.
9280         (arm_reorg): Likewise for local "table".
9281
9282         * config/s390/s390.c (s390_chunkify_start): Likewise.
9283
9284         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9285
9286         * jump.c (delete_related_insns): Strengthen local "lab_next" from
9287         rtx to rtx_jump_table_data *.
9288
9289         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9290         rtx_jump_table_data **.  Add a checked cast when writing through
9291         the pointer: we know there that local "table" is non-NULL and that
9292         JUMP_TABLE_DATA_P (table) holds.
9293         (label_is_jump_target_p): Introduce local "table", using it in
9294         place of "tmp" for jump table data.
9295
9296 2014-08-19  Marek Polacek  <polacek@redhat.com>
9297
9298         PR c++/62153
9299         * doc/invoke.texi: Document -Wbool-compare.
9300
9301 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9302
9303         * rtl.h (entry_of_function): Strengthen return type from rtx to
9304         rtx_insn *.
9305         * cfgrtl.c (entry_of_function): Likewise.
9306
9307 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9308
9309         * emit-rtl.h (get_insns): Strengthen return type from rtx to
9310         rtx_insn *, adding a checked cast for now.
9311         (get_last_insn): Likewise.
9312
9313 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9314
9315         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9316         rtx_code_label *.
9317
9318         * emit-rtl.c (gen_label_rtx): Likewise.
9319
9320 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9321
9322         * rtl.h (previous_insn): Strengthen return type from rtx to
9323         rtx_insn *.
9324         (next_insn): Likewise.
9325         (prev_nonnote_insn): Likewise.
9326         (prev_nonnote_insn_bb): Likewise.
9327         (next_nonnote_insn): Likewise.
9328         (next_nonnote_insn_bb): Likewise.
9329         (prev_nondebug_insn): Likewise.
9330         (next_nondebug_insn): Likewise.
9331         (prev_nonnote_nondebug_insn): Likewise.
9332         (next_nonnote_nondebug_insn): Likewise.
9333         (prev_real_insn): Likewise.
9334         (next_real_insn): Likewise.
9335         (prev_active_insn): Likewise.
9336         (next_active_insn): Likewise.
9337
9338         * emit-rtl.c (next_insn): Strengthen return type from rtx to
9339         rtx_insn *, adding a checked cast.
9340         (previous_insn): Likewise.
9341         (next_nonnote_insn): Likewise.
9342         (next_nonnote_insn_bb): Likewise.
9343         (prev_nonnote_insn): Likewise.
9344         (prev_nonnote_insn_bb): Likewise.
9345         (next_nondebug_insn): Likewise.
9346         (prev_nondebug_insn): Likewise.
9347         (next_nonnote_nondebug_insn): Likewise.
9348         (prev_nonnote_nondebug_insn): Likewise.
9349         (next_real_insn): Likewise.
9350         (prev_real_insn): Likewise.
9351         (next_active_insn): Likewise.
9352         (prev_active_insn): Likewise.
9353
9354         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9355         param "stepfunc" so that it returns an rtx_insn * rather than an
9356         rtx, to track the change to prev_nonnote_insn_bb, which is the
9357         only function this is called with.
9358         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9359
9360 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
9361
9362         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9363         assert.
9364
9365 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9366
9367         * coretypes.h (class rtx_debug_insn): Add forward declaration.
9368         (class rtx_nonjump_insn): Likewise.
9369         (class rtx_jump_insn): Likewise.
9370         (class rtx_call_insn): Likewise.
9371         (class rtx_jump_table_data): Likewise.
9372         (class rtx_barrier): Likewise.
9373         (class rtx_code_label): Likewise.
9374         (class rtx_note): Likewise.
9375
9376         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9377         adding the invariant DEBUG_INSN_P (X).
9378         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9379         the invariant NONJUMP_INSN_P (X).
9380         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9381         the invariant JUMP_P (X).
9382         (class rtx_call_insn): New, a subclass of rtx_insn, adding
9383         the invariant CALL_P (X).
9384         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9385         invariant JUMP_TABLE_DATA_P (X).
9386         (class rtx_barrier): New, a subclass of rtx_insn, adding the
9387         invariant BARRIER_P (X).
9388         (class rtx_code_label): New, a subclass of rtx_insn, adding
9389         the invariant LABEL_P (X).
9390         (class rtx_note): New, a subclass of rtx_insn, adding
9391         the invariant NOTE_P(X).
9392         (is_a_helper <rtx_debug_insn *>::test): New.
9393         (is_a_helper <rtx_nonjump_insn *>::test): New.
9394         (is_a_helper <rtx_jump_insn *>::test): New.
9395         (is_a_helper <rtx_call_insn *>::test): New.
9396         (is_a_helper <rtx_jump_table_data *>::test): New functions,
9397         overloaded for both rtx and rtx_insn *.
9398         (is_a_helper <rtx_barrier *>::test): New.
9399         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9400         for both rtx and rtx_insn *.
9401         (is_a_helper <rtx_note *>::test): New.
9402
9403 2014-08-19  Marek Polacek  <polacek@redhat.com>
9404
9405         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9406         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9407         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9408         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9409
9410 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9411
9412         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9413         rtx_insn *.  To help with transition, for now, convert from an
9414         access macro into a pair of functions: BND_TO, returning an
9415         rtx_insn *, and...
9416         (SET_BND_TO): New function, for use where BND_TO is used as an
9417         lvalue.
9418
9419         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9420         SET_BND_TO.
9421         (BND_TO): New function, adding a checked cast.
9422         (SET_BND_TO): New function.
9423
9424         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9425         SET_BND_TO.
9426         (compute_av_set_on_boundaries): Likewise.
9427
9428 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9429
9430         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9431         destination if it is used in source.
9432         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9433         (*popcount<mode>2_falsedep_1): Likewise.
9434
9435 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9436
9437         PR other/62168
9438         * configure.ac: Set install_gold_as_default to no first.
9439         * configure: Regenerated.
9440
9441 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9442
9443         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9444         "note_list" field will eventually be an rtx_insn *.  To help with
9445         transition, for now, convert from an access macro into a pair of
9446         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9447         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9448         used as an lvalue.
9449
9450         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9451         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9452
9453         * sel-sched-ir.c (init_bb): Likewise.
9454         (sel_restore_notes): Likewise.
9455         (move_bb_info): Likewise.
9456         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9457         (SET_BB_NOTE_LIST): New function.
9458
9459 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9460
9461         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9462         field will eventually be an rtx_insn *.  To help with transition,
9463         for now, convert from an access macro into a pair of functions:
9464         VINSN_INSN_RTX, returning an rtx_insn *, and...
9465         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9466         is used as an lvalue.
9467
9468         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9469         SET_VINSN_INSN_RTX where it's used as an lvalue.
9470         (VINSN_INSN_RTX): New function.
9471         (SET_VINSN_INSN_RTX): New function.
9472
9473 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9474
9475         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9476         eventually be rtx_insn *, but to help with transition, for now,
9477         convert from an access macro into a pair of functions: DEP_PRO
9478         returning an rtx_insn * and...
9479         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9480         lvalue, returning an rtx&.
9481         (DEP_CON): Analogous changes to DEP_PRO above.
9482         (SET_DEP_CON): Likewise.
9483
9484         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9485         an lvalue to SET_DEP_CON.
9486         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9487         (sd_copy_back_deps): Likewise for DEP_CON.
9488         (DEP_PRO): New function, adding a checked cast for now.
9489         (DEP_CON): Likewise.
9490         (SET_DEP_PRO): New function.
9491         (SET_DEP_CON): Likewise.
9492
9493 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
9494
9495         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9496         (extra_options): Add i386/cygwin.opt.
9497         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9498         (CPP_SPEC): Accept -pthread.
9499         (LINK_SPEC): Ditto.
9500         (GOMP_SELF_SPECS): Update comment.
9501         * config/i386/cygwin.opt: New file for -pthread flag.
9502
9503 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9504
9505         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9506         * df.h (DF_REF_INSN): Convert from a macro to a function, so
9507         that we can return an rtx_insn *.
9508
9509 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
9510
9511         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9512         when building executables, not DLLs.  Add --large-address-aware
9513         under the same conditions.
9514         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9515         when building executables, not DLLs.  Add --large-address-aware
9516         under the same conditions when using -m32.
9517
9518         * config/i386/cygwin-stdint.h: Throughout, make type
9519         definitions dependent on target architecture, not host.
9520
9521 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9522
9523         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
9524         the return type from rtx to rtx_insn *,  which will enable various
9525         conversions in followup patches.  For now this is is done by a
9526         checked cast.
9527         (NEXT_INSN): Likewise.
9528         (SET_PREV_INSN): Convert to an inline function.  This is intended
9529         for use as an lvalue, and so returns an rtx& to allow in-place
9530         modification.
9531         (SET_NEXT_INSN): Likewise.
9532
9533 2014-07-08  Mark Wielaard  <mjw@redhat.com>
9534
9535         PR debug/59051
9536         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9537
9538 2014-08-19  Marek Polacek  <polacek@redhat.com>
9539
9540         PR c/61271
9541         * cgraphunit.c (handle_alias_pairs): Fix condition.
9542
9543 2014-08-19  Richard Biener  <rguenther@suse.de>
9544
9545         * gimple-fold.c (fold_gimple_assign): Properly build a
9546         null-pointer constant when devirtualizing addresses.
9547
9548 2014-07-07  Mark Wielaard  <mjw@redhat.com>
9549
9550         * dwarf2out.c (decl_quals): New function.
9551         (modified_type_die): Take one cv_quals argument instead of two,
9552         one for const and one for volatile.
9553         (add_type_attribute): Likewise.
9554         (generic_parameter_die): Call add_type_attribute with one modifier
9555         argument.
9556         (base_type_for_mode): Likewise.
9557         (add_bounds_info): Likewise.
9558         (add_subscript_info): Likewise.
9559         (gen_array_type_die): Likewise.
9560         (gen_descr_array_type_die): Likewise.
9561         (gen_entry_point_die): Likewise.
9562         (gen_enumeration_type_die): Likewise.
9563         (gen_formal_parameter_die): Likewise.
9564         (gen_subprogram_die): Likewise.
9565         (gen_variable_die): Likewise.
9566         (gen_const_die): Likewise.
9567         (gen_field_die): Likewise.
9568         (gen_pointer_type_die): Likewise.
9569         (gen_reference_type_die): Likewise.
9570         (gen_ptr_to_mbr_type_die): Likewise.
9571         (gen_inheritance_die): Likewise.
9572         (gen_subroutine_type_die): Likewise.
9573         (gen_typedef_die): Likewise.
9574         (force_type_die): Likewise.
9575
9576 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9577
9578         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9579         if unset.
9580         * configure: Regenerate.
9581
9582 2014-08-19  Richard Biener  <rguenther@suse.de>
9583
9584         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9585         DECL_EXTERNALs in BLOCKs as non-references.
9586         * tree-streamer-out.c (streamer_write_chain): Likewise.
9587
9588 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9589             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9590             Anna Tikhonova  <anna.tikhonova@intel.com>
9591             Ilya Tocar  <ilya.tocar@intel.com>
9592             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9593             Ilya Verbin  <ilya.verbin@intel.com>
9594             Kirill Yukhin  <kirill.yukhin@intel.com>
9595             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9596
9597         * config/i386/sse.md
9598         (define_mode_iterator VI48_AVX512F): Delete.
9599         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9600         (define_mode_iterator VI2_AVX512VL): Ditto.
9601         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9602         Delete.
9603         (define_insn
9604         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9605         New.
9606         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9607         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9608         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9609         with VI48_AVX512F_AVX512VL): New.
9610         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9611         with VI2_AVX512VL): Ditto.
9612
9613 2014-08-19  Marek Polacek  <polacek@redhat.com>
9614
9615         * doc/invoke.texi: Document -Wc99-c11-compat.
9616
9617 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9618
9619         * rtl.h (PREV_INSN): Split macro in two: the existing one,
9620         for rvalues, and...
9621         (SET_PREV_INSN): New macro, for use as an lvalue.
9622         (NEXT_INSN, SET_NEXT_INSN): Likewise.
9623
9624         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9625         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9626         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9627         (fixup_abnormal_edges): Likewise.
9628         (unlink_insn_chain): Likewise.
9629         (fixup_reorder_chain): Likewise.
9630         (cfg_layout_delete_block): Likewise.
9631         (cfg_layout_merge_blocks): Likewise.
9632         * combine.c (update_cfg_for_uncondjump): Likewise.
9633         * emit-rtl.c (link_insn_into_chain): Likewise.
9634         (remove_insn): Likewise.
9635         (delete_insns_since): Likewise.
9636         (reorder_insns_nobb): Likewise.
9637         (emit_insn_after_1): Likewise.
9638         * final.c (rest_of_clean_state): Likewise.
9639         (final_scan_insn): Likewise.
9640         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9641         * haifa-sched.c (concat_note_lists): Likewise.
9642         (remove_notes): Likewise.
9643         (restore_other_notes): Likewise.
9644         (move_insn): Likewise.
9645         (unlink_bb_notes): Likewise.
9646         (restore_bb_notes): Likewise.
9647         * jump.c (delete_for_peephole): Likewise.
9648         * optabs.c (emit_libcall_block_1): Likewise.
9649         * reorg.c (emit_delay_sequence): Likewise.
9650         (fill_simple_delay_slots): Likewise.
9651         * sel-sched-ir.c (sel_move_insn): Likewise.
9652         (sel_remove_insn): Likewise.
9653         (get_bb_note_from_pool): Likewise.
9654         * sel-sched.c (move_nop_to_previous_block): Likewise.
9655
9656         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9657         * config/c6x/c6x.c (gen_one_bundle): Likewise.
9658         (c6x_gen_bundles): Likewise.
9659         (hwloop_optimize): Likewise.
9660         * config/frv/frv.c (frv_function_prologue): Likewise.
9661         (frv_register_nop): Likewise.
9662         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9663         (ia64_reorg): Likewise.
9664         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9665         (mep_make_bundle): Likewise.
9666         (mep_bundle_insns): Likewise.
9667         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9668         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9669         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9670
9671 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9672
9673         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
9674         return type from rtx to rtx_insn *.
9675         (BB_END): Likewise.
9676         (BB_HEADER): Likewise.
9677         (BB_FOOTER): Likewise.
9678         (SET_BB_HEAD): Convert to a function.
9679         (SET_BB_END): Likewise.
9680         (SET_BB_HEADER): Likewise.
9681         (SET_BB_FOOTER): Likewise.
9682
9683         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9684         Strengthen the return type from rtx to rtx_insn *.  For now, this
9685         is done by adding a checked cast, but this will eventually
9686         become a field lookup.
9687         (BB_END): Likewise.
9688         (BB_HEADER): Likewise.
9689         (BB_FOOTER): Likewise.
9690         (SET_BB_HEAD): New function, from macro of same name.  This is
9691         intended for use as an lvalue, and so returns an rtx& to allow
9692         in-place modification.
9693         (SET_BB_END): Likewise.
9694         (SET_BB_HEADER): Likewise.
9695         (SET_BB_FOOTER): Likewise.
9696
9697 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9698
9699         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9700         for rvalues, and...
9701         (SET_BB_HEAD): New macro, for use as a lvalue.
9702         (BB_END, SET_BB_END): Likewise.
9703         (BB_HEADER, SET_BB_HEADER): Likewise.
9704         (BB_FOOTER, SET_BB_FOOTER): Likewise.
9705
9706         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9707         of BB_* macros into SET_BB_* macros.
9708         (fix_crossing_unconditional_branches): Likewise.
9709         * caller-save.c (save_call_clobbered_regs): Likewise.
9710         (insert_one_insn): Likewise.
9711         * cfgbuild.c (find_bb_boundaries): Likewise.
9712         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9713         (outgoing_edges_match): Likewise.
9714         (try_optimize_cfg): Likewise.
9715         * cfgexpand.c (expand_gimple_cond): Likewise.
9716         (expand_gimple_tailcall): Likewise.
9717         (expand_gimple_basic_block): Likewise.
9718         (construct_exit_block): Likewise.
9719         * cfgrtl.c (delete_insn): Likewise.
9720         (create_basic_block_structure): Likewise.
9721         (rtl_delete_block): Likewise.
9722         (rtl_split_block): Likewise.
9723         (emit_nop_for_unique_locus_between): Likewise.
9724         (rtl_merge_blocks): Likewise.
9725         (block_label): Likewise.
9726         (try_redirect_by_replacing_jump): Likewise.
9727         (emit_barrier_after_bb): Likewise.
9728         (fixup_abnormal_edges): Likewise.
9729         (record_effective_endpoints): Likewise.
9730         (relink_block_chain): Likewise.
9731         (fixup_reorder_chain): Likewise.
9732         (fixup_fallthru_exit_predecessor): Likewise.
9733         (cfg_layout_duplicate_bb): Likewise.
9734         (cfg_layout_split_block): Likewise.
9735         (cfg_layout_delete_block): Likewise.
9736         (cfg_layout_merge_blocks): Likewise.
9737         * combine.c (update_cfg_for_uncondjump): Likewise.
9738         * emit-rtl.c (add_insn_after): Likewise.
9739         (remove_insn): Likewise.
9740         (reorder_insns): Likewise.
9741         (emit_insn_after_1): Likewise.
9742         * haifa-sched.c (get_ebb_head_tail): Likewise.
9743         (restore_other_notes): Likewise.
9744         (move_insn): Likewise.
9745         (sched_extend_bb): Likewise.
9746         (fix_jump_move): Likewise.
9747         * ifcvt.c (noce_process_if_block): Likewise.
9748         (dead_or_predicable): Likewise.
9749         * ira.c (update_equiv_regs): Likewise.
9750         * reg-stack.c (change_stack): Likewise.
9751         * sel-sched-ir.c (sel_move_insn): Likewise.
9752         * sel-sched.c (move_nop_to_previous_block): Likewise.
9753
9754         * config/c6x/c6x.c (hwloop_optimize): Likewise.
9755         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9756
9757 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9758
9759         * rtl.h (for_each_rtx_in_insn): New function.
9760         * rtlanal.c (for_each_rtx_in_insn): Likewise.
9761
9762 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9763
9764         * coretypes.h (class rtx_insn): Add forward declaration.
9765
9766         * rtl.h: Include is-a.h.
9767         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9768         workaround to ensure gengtype knows inheritance is occurring,
9769         whilst continuing to use the pre-existing special-casing for
9770         rtx_def.
9771         (class rtx_insn): New subclass of rtx_def, adding the
9772         invariant that we're dealing with something we can sanely use
9773         INSN_UID, NEXT_INSN, PREV_INSN on.
9774         (is_a_helper <rtx_insn *>::test): New.
9775         (is_a_helper <const rtx_insn *>::test): New.
9776
9777 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9778
9779         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9780
9781 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
9782
9783         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9784         comdats as extern.
9785
9786 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
9787
9788         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9789         to BUILT_IN_UNREACHABLE.
9790
9791 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
9792
9793         PR target/62011
9794         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9795         New tune flag.
9796         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9797         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9798         (ffs<mode>2): Do not expand with tzcnt for
9799         TARGET_AVOID_FALSE_DEP_FOR_BMI.
9800         (ffssi2_no_cmove): Ditto.
9801         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9802         (ctz<mode>2): New expander.
9803         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9804         (*ctz<mode>2_falsedep): New insn.
9805         (*ctz<mode>2): Rename from ctz<mode>2.
9806         (clz<mode>2_lzcnt): New expander.
9807         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9808         (*clz<mode>2_lzcnt_falsedep): New insn.
9809         (*clz<mode>2): Rename from ctz<mode>2.
9810         (popcount<mode>2): New expander.
9811         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9812         (*popcount<mode>2_falsedep): New insn.
9813         (*popcount<mode>2): Rename from ctz<mode>2.
9814         (*popcount<mode>2_cmp): Remove.
9815         (*popcountsi2_cmp_zext): Ditto.
9816
9817 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
9818
9819         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9820         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9821         * config/microblaze/microblaze.h
9822         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9823
9824 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9825
9826         PR other/62168
9827         * configure.ac: Set install_gold_as_default to no for
9828          --enable-gold=no.
9829          * configure: Regenerated.
9830
9831 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
9832
9833         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9834         * config.in: Add undef of HAVE_isl.
9835         * configure: Regenerate.
9836         * configure.ac: Add definition of HAVE_isl.
9837         * graphite-blocking.c: Add checking of HAVE_isl.
9838         * graphite-dependences.c: Likewise.
9839         * graphite-interchange.c: Likewise.
9840         * graphite-isl-ast-to-gimple.c: Likewise.
9841         * graphite-optimize-isl.c: Likewise.
9842         * graphite-poly.c: Likewise.
9843         * graphite-scop-detection.c: Likewise.
9844         * graphite-sese-to-poly.c: Likewise.
9845         * graphite.c: Likewise.
9846         * toplev.c: Replace the checking of HAVE_cloog with the checking
9847         of HAVE_isl.
9848
9849 2014-08-18  Richard Biener  <rguenther@suse.de>
9850
9851         PR tree-optimization/62090
9852         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9853         (fold_builtin_3): Do not fold snprintf.
9854         (fold_builtin_4): Likewise.
9855         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9856         moved from builtins.c.
9857         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9858         (gimple_fold_builtin): Do not fold sprintf here.
9859
9860 2014-08-18  Richard Biener  <rguenther@suse.de>
9861
9862         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9863         code to ...
9864         (maybe_canonicalize_mem_ref_addr): ... this function.
9865         (fold_stmt_1): Apply it here before all simplification.
9866
9867 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
9868
9869         PR ipa/61800
9870         * cgraph.h (cgraph_node::create_indirect_edge): Add
9871         compute_indirect_info param.
9872         * cgraph.c (cgraph_node::create_indirect_edge): Compute
9873         indirect_info only when it is required.
9874         * cgraphclones.c (cgraph_clone_edge): Do not recompute
9875         indirect_info fore cloned indirect edge.
9876
9877 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9878             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9879             Anna Tikhonova  <anna.tikhonova@intel.com>
9880             Ilya Tocar  <ilya.tocar@intel.com>
9881             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9882             Ilya Verbin  <ilya.verbin@intel.com>
9883             Kirill Yukhin  <kirill.yukhin@intel.com>
9884             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9885
9886         * config/i386/sse.md
9887         (define_mode_iterator VI8_AVX2_AVX512BW): New.
9888         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9889
9890 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9891             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9892             Anna Tikhonova  <anna.tikhonova@intel.com>
9893             Ilya Tocar  <ilya.tocar@intel.com>
9894             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9895             Ilya Verbin  <ilya.verbin@intel.com>
9896             Kirill Yukhin  <kirill.yukhin@intel.com>
9897             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9898
9899         * config/i386/sse.md
9900         (define_mode_iterator VF1_AVX512VL): New.
9901         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9902         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9903         New.
9904
9905 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9906             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9907             Anna Tikhonova  <anna.tikhonova@intel.com>
9908             Ilya Tocar  <ilya.tocar@intel.com>
9909             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9910             Ilya Verbin  <ilya.verbin@intel.com>
9911             Kirill Yukhin  <kirill.yukhin@intel.com>
9912             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9913
9914         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9915         * config/i386/i386.md
9916         (define_code_iterator any_float): New.
9917         (define_code_attr floatsuffix): New.
9918         * config/i386/sse.md
9919         (define_mode_iterator VF1_128_256VL): New.
9920         (define_mode_iterator VF2_512_256VL): New.
9921         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9922         TARGET check.
9923         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9924         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9925         New.
9926         (define_mode_attr qq2pssuff): New.
9927         (define_mode_attr sselongvecmode): New.
9928         (define_mode_attr sselongvecmodelower): New.
9929         (define_mode_attr sseintvecmode3): New.
9930         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9931         New.
9932         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9933         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9934         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9935         (define_insn "ufloatv2siv2df2<mask_name>"): New.
9936
9937 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9938             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9939             Anna Tikhonova  <anna.tikhonova@intel.com>
9940             Ilya Tocar  <ilya.tocar@intel.com>
9941             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9942             Ilya Verbin  <ilya.verbin@intel.com>
9943             Kirill Yukhin  <kirill.yukhin@intel.com>
9944             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9945
9946         * config/i386/sse.md
9947         (define_mode_iterator VF2_AVX512VL): New.
9948         (define_mode_attr sseintvecmode2): New.
9949         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9950         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9951         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9952         (define_insn
9953         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9954         Ditto.
9955         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9956         Ditto.
9957         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9958         Ditto.
9959
9960 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9961             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9962             Anna Tikhonova  <anna.tikhonova@intel.com>
9963             Ilya Tocar  <ilya.tocar@intel.com>
9964             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9965             Ilya Verbin  <ilya.verbin@intel.com>
9966             Kirill Yukhin  <kirill.yukhin@intel.com>
9967             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9968
9969         * config/i386/i386.md
9970         (define_insn "*movoi_internal_avx"): Add evex version.
9971         (define_insn "*movti_internal"): Ditto.
9972
9973 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9974             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9975             Anna Tikhonova  <anna.tikhonova@intel.com>
9976             Ilya Tocar  <ilya.tocar@intel.com>
9977             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9978             Ilya Verbin  <ilya.verbin@intel.com>
9979             Kirill Yukhin  <kirill.yukhin@intel.com>
9980             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9981
9982         * config/i386/i386.md
9983         (define_attr "isa"): Add avx512dq, noavx512dq.
9984         (define_attr "enabled"): Ditto.
9985         * config/i386/sse.md
9986         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9987
9988 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9989             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9990             Anna Tikhonova  <anna.tikhonova@intel.com>
9991             Ilya Tocar  <ilya.tocar@intel.com>
9992             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9993             Ilya Verbin  <ilya.verbin@intel.com>
9994             Kirill Yukhin  <kirill.yukhin@intel.com>
9995             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9996
9997         * config/i386/i386.c
9998         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9999         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10000         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10001         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10002         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10003         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10004         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10005         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10006         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10007         * config/i386/sse.md
10008         (define_mode_iterator VMOVE): Allow V4TI mode.
10009         (define_mode_iterator V_AVX512VL): New.
10010         (define_mode_iterator V): New handling for AVX512VL.
10011         (define_insn "avx512f_load<mode>_mask"): Delete.
10012         (define_insn "<avx512>_load<mode>_mask"): New.
10013         (define_insn "avx512f_store<mode>_mask"): Delete.
10014         (define_insn "<avx512>_store<mode>_mask"): New.
10015
10016
10017 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
10018
10019         PR sanitizer/62089
10020         * asan.c (instrument_derefs): Fix bitfield check.
10021
10022 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10023
10024         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10025         * config/rs6000/htm.md (ttest): Remove clobber.
10026         * config/rs6000/predicates.md (any_mask_operand): New predicate.
10027         (and_operand): Reformat.
10028         (and_2rld_operand): New predicate.
10029         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10030         parameter.
10031         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10032         parameter.  Handle AND directly.
10033         (rs6000_split_logical_di): Remove last parameter.
10034         (rs6000_split_logical): Remove last parameter.  Remove obsolete
10035         comment.
10036         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10037         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10038         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
10039         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10040         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10041         and 5 anonymous splitters):  Delete.
10042         (and<mode>3): New expander.
10043         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10044         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10045         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10046         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10047         (floatdisf2_internal1): Remove clobbers.
10048         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10049         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10050         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10051         (and<mode>3 for BOOL_128): Remove clobber.
10052         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
10053         rs6000_split_logical.
10054         (*bool<mode>3_internal for BOOL_128): Adjust call of
10055         rs6000_split_logical.
10056         (*boolc<mode>3_internal1 for BOOL_128,
10057         *boolc<mode>3_internal2 for BOOL_128,
10058         *boolcc<mode>3_internal1 for BOOL_128,
10059         *boolcc<mode>3_internal2 for BOOL_128,
10060         *eqv<mode>3_internal1 for BOOL_128,
10061         *eqv<mode>3_internal2 for BOOL_128,
10062         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10063         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10064         clobber.
10065         (*vec_reload_and_reg_<mptrsize>): Delete.
10066
10067 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10068
10069         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10070         and split, *boolccsi3_internal3 and split): Delete.
10071         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10072         *boolccdi3_internal3 and split): Delete.
10073         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10074         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
10075
10076 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10077
10078         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10079         and split, *boolcsi3_internal3 and split): Delete.
10080         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10081         *boolcdi3_internal3 and split): Delete.
10082         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10083
10084 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10085
10086         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10087         <'u'>: Also support printing the low-order 16 bits.
10088         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10089         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10090         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10091         *booldi3_internal3 and split): Delete.
10092         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10093         *bool<mode>3_dot2): New.
10094         (two anonymous define_splits for non_logical_cint_operand): Merge.
10095
10096 2014-08-17  Marek Polacek  <polacek@redhat.com>
10097             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10098
10099         PR c/62059
10100         * diagnostic.c (adjust_line): Add gcc_checking_assert.
10101         (diagnostic_show_locus): Don't print caret diagnostic
10102         if a column is larger than the line_width.
10103
10104 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
10105
10106         * common.opt: Make the ISL AST generator to be the main code generator
10107         of Graphite.
10108
10109 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
10110
10111         * wide-int.h (generic_wide_int): Declare as class instead of struct.
10112
10113 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
10114
10115         PR target/61641
10116         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10117         Declare.
10118         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10119         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10120         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10121         Define.
10122         * config/pa/pa.md (begin_brtab): Delete insn.
10123         (end_brtab): Likewise.
10124
10125 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10126
10127         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10128
10129 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
10130
10131         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10132         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10133         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10134         (get_dynamic_type): Remove.
10135         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10136         (clear_speculation): Bring to ipa-deivrt.h
10137         (get_class_context): Rename to ...
10138         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10139         (contains_type_p): Update.
10140         (get_dynamic_type): Rename to ...
10141         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10142         (possible_polymorphic_call_targets): UPdate.
10143         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10144         * ipa-prop.c (ipa_analyze_call_uses): Update.
10145
10146 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
10147
10148         * doc/invoke.texi (SH options): Document missing processor variant
10149         options.  Remove references to Hitachi.  Undocument deprecated mspace
10150         option.
10151
10152 2014-08-15  Jason Merrill  <jason@redhat.com>
10153
10154         * tree.c (type_hash_canon): Uncomment assert.
10155
10156 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10157
10158         * input.h (in_system_header_at): Add comment.
10159
10160 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10161
10162         PR fortran/44054
10163         * diagnostic.c (build_message_string): Make it extern.
10164         * diagnostic.h (build_message_string): Make it extern.
10165
10166 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
10167
10168         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10169         load/store from/to non-floating class pseudo.
10170
10171 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10172
10173         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10174
10175 2014-08-15  Richard Biener  <rguenther@suse.de>
10176
10177         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10178         (get_constraint_for_ssa_var): Remove dead code.
10179         (get_constraint_for_1): Adjust.
10180         (find_what_var_points_to): Likewise.
10181         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
10182
10183 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
10184
10185         PR target/61878
10186         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10187         (_mm512_mask_cmpge_epu32_mask): Ditto.
10188         (_mm512_cmpge_epu32_mask): Ditto.
10189         (_mm512_mask_cmpge_epi64_mask): Ditto.
10190         (_mm512_cmpge_epi64_mask): Ditto.
10191         (_mm512_mask_cmpge_epu64_mask): Ditto.
10192         (_mm512_cmpge_epu64_mask): Ditto.
10193         (_mm512_mask_cmple_epi32_mask): Ditto.
10194         (_mm512_cmple_epi32_mask): Ditto.
10195         (_mm512_mask_cmple_epu32_mask): Ditto.
10196         (_mm512_cmple_epu32_mask): Ditto.
10197         (_mm512_mask_cmple_epi64_mask): Ditto.
10198         (_mm512_cmple_epi64_mask): Ditto.
10199         (_mm512_mask_cmple_epu64_mask): Ditto.
10200         (_mm512_cmple_epu64_mask): Ditto.
10201         (_mm512_mask_cmplt_epi32_mask): Ditto.
10202         (_mm512_cmplt_epi32_mask): Ditto.
10203         (_mm512_mask_cmplt_epu32_mask): Ditto.
10204         (_mm512_cmplt_epu32_mask): Ditto.
10205         (_mm512_mask_cmplt_epi64_mask): Ditto.
10206         (_mm512_cmplt_epi64_mask): Ditto.
10207         (_mm512_mask_cmplt_epu64_mask): Ditto.
10208         (_mm512_cmplt_epu64_mask): Ditto.
10209         (_mm512_mask_cmpneq_epi32_mask): Ditto.
10210         (_mm512_mask_cmpneq_epu32_mask): Ditto.
10211         (_mm512_cmpneq_epu32_mask): Ditto.
10212         (_mm512_mask_cmpneq_epi64_mask): Ditto.
10213         (_mm512_cmpneq_epi64_mask): Ditto.
10214         (_mm512_mask_cmpneq_epu64_mask): Ditto.
10215         (_mm512_cmpneq_epu64_mask): Ditto.
10216         (_mm512_castpd_ps): Ditto.
10217         (_mm512_castpd_si512): Ditto.
10218         (_mm512_castps_pd): Ditto.
10219         (_mm512_castps_si512): Ditto.
10220         (_mm512_castsi512_ps): Ditto.
10221         (_mm512_castsi512_pd): Ditto.
10222         (_mm512_castpd512_pd128): Ditto.
10223         (_mm512_castps512_ps128): Ditto.
10224         (_mm512_castsi512_si128): Ditto.
10225         (_mm512_castpd512_pd256): Ditto.
10226         (_mm512_castps512_ps256): Ditto.
10227         (_mm512_castsi512_si256): Ditto.
10228         (_mm512_castpd128_pd512): Ditto.
10229         (_mm512_castps128_ps512): Ditto.
10230         (_mm512_castsi128_si512): Ditto.
10231         (_mm512_castpd256_pd512): Ditto.
10232         (_mm512_castps256_ps512): Ditto.
10233         (_mm512_castsi256_si512): Ditto.
10234         (_mm512_cmpeq_epu32_mask): Ditto.
10235         (_mm512_mask_cmpeq_epu32_mask): Ditto.
10236         (_mm512_mask_cmpeq_epu64_mask): Ditto.
10237         (_mm512_cmpeq_epu64_mask): Ditto.
10238         (_mm512_cmpgt_epu32_mask): Ditto.
10239         (_mm512_mask_cmpgt_epu32_mask): Ditto.
10240         (_mm512_mask_cmpgt_epu64_mask): Ditto.
10241         (_mm512_cmpgt_epu64_mask): Ditto.
10242         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10243         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10244         * config/i386/i386.c (enum ix86_builtins): Add
10245         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10246         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10247         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10248         (bdesc_args): Add __builtin_ia32_si512_256si,
10249         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10250         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10251         __builtin_ia32_pd512_pd.
10252         (ix86_expand_args_builtin): Handle new FTYPEs.
10253         * config/i386/sse.md (castmode): Add 512-bit modes.
10254         (AVX512MODE2P): New.
10255         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10256         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10257
10258 2014-08-15  Richard Biener  <rguenther@suse.de>
10259
10260         * fold-const.c (tree_swap_operands_p): Put all constants
10261         last, also strip sign-changing NOPs when considering further
10262         canonicalization.  Canonicalize also when optimizing for size.
10263
10264 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10265
10266         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10267         one_match > zero_match case to just before simple_sequence.
10268
10269 2014-08-15  Richard Biener  <rguenther@suse.de>
10270
10271         * data-streamer.h (streamer_string_index, string_for_index):
10272         Remove.
10273         * data-streamer-out.c (streamer_string_index): Make static.
10274         * data-streamer-in.c (string_for_index): Likewise.
10275         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10276         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10277
10278 2014-08-15  Richard Biener  <rguenther@suse.de>
10279
10280         PR tree-optimization/62031
10281         * tree-data-ref.c (dr_analyze_indices): Do not set
10282         DR_UNCONSTRAINED_BASE.
10283         (dr_may_alias_p): All indirect accesses have to go the
10284         formerly DR_UNCONSTRAINED_BASE path.
10285         * tree-data-ref.h (struct indices): Remove
10286         unconstrained_base member.
10287         (DR_UNCONSTRAINED_BASE): Remove.
10288
10289 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
10290
10291         PR middle-end/62092
10292         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10293         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10294         in OMP_CLAUSE_MAP in some outer target region.
10295
10296 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
10297
10298         * tree-ssa-loop-ivopts.c (ivopts_data): New field
10299         name_expansion_cache.
10300         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10301         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10302         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10303         (difference_cannot_overflow_p): New parameter.  Use affine
10304         expansion for equality check.
10305         (iv_elimination_compare_lt): Pass new argument.
10306
10307 2014-08-14  DJ Delorie  <dj@redhat.com>
10308
10309         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10310         variables to the accumulator.
10311
10312         * config/rl78/predicates.md (rl78_near_mem_operand): New.
10313         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10314         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10315         with far-far moves.
10316
10317         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10318         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10319         (umulqihi3_virt): Likewise.
10320         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10321         (umulqihi3_real): Likewise.
10322
10323         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10324
10325 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
10326
10327         PR tree-optimization/62091
10328         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10329         function_entry_reached.
10330         (walk_aliased_vdefs): Clear it here.
10331         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10332
10333 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
10334
10335         * ipa-utils.h (compare_virtual_tables): Declare.
10336         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10337
10338 2014-08-14  Marek Polacek  <polacek@redhat.com>
10339
10340         DR 458
10341         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10342         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10343
10344 2014-08-14  Tom de Vries  <tom@codesourcery.com>
10345
10346         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10347
10348 2014-08-14  Tom de Vries  <tom@codesourcery.com>
10349
10350         PR rtl-optimization/62004
10351         PR rtl-optimization/62030
10352         * ifcvt.c (rtx_interchangeable_p): New function.
10353         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10354         * emit-rtl.h (mem_attrs_eq_p): Declare.
10355
10356 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
10357
10358         * graphite-scop-detection.c:
10359         Add inclusion of cp-tree.h.
10360         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10361         in case they are pointers to object types
10362
10363 2014-08-14  Richard Biener  <rguenther@suse.de>
10364
10365         * BASE-VER: Change to 5.0.0
10366
10367 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10368             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10369             Anna Tikhonova  <anna.tikhonova@intel.com>
10370             Ilya Tocar  <ilya.tocar@intel.com>
10371             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10372             Ilya Verbin  <ilya.verbin@intel.com>
10373             Kirill Yukhin  <kirill.yukhin@intel.com>
10374             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10375
10376         * config/i386/sse.md (define_mode_attr avx512): New.
10377         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10378         V4DI modes.
10379         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10380         (define_mode_attr ssse3_avx2): Ditto.
10381         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10382         (define_mode_attr avx2_avx512bw): New.
10383         (define_mode_attr ssedoublemodelower): New.
10384         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10385         V32HI, V64QI modes.
10386         (define_mode_attr ssebytemode): Allow V8DI modes.
10387         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10388         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10389         (define_mode_attr ssePSmode2): New.
10390         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10391         V16HI, V32HI modes.
10392         (define_mode_attr dbpsadbwmode): New.
10393         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10394         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10395         (vi8_sse4_1_avx2_avx512): New.
10396         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10397         mode attribute.
10398         (define_mode_attr blendbits): Move before its immediate use.
10399
10400 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10401             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10402             Anna Tikhonova  <anna.tikhonova@intel.com>
10403             Ilya Tocar  <ilya.tocar@intel.com>
10404             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10405             Ilya Verbin  <ilya.verbin@intel.com>
10406             Kirill Yukhin  <kirill.yukhin@intel.com>
10407             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10408
10409         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10410         * config/i386/subst.md
10411         (define_mode_iterator SUBST_V): Update.
10412         (define_mode_iterator SUBST_A): Ditto.
10413         (define_subst_attr "mask_operand7"): New.
10414         (define_subst_attr "mask_operand10"): New.
10415         (define_subst_attr "mask_operand_arg34") : New.
10416         (define_subst_attr "mask_expand_op3"): New.
10417         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10418         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10419         (define_subst_attr "mask_avx512vl_condition"): New.
10420         (define_subst_attr "round_mask_operand4"): Ditto.
10421         (define_subst_attr "round_mask_scalar_op3"): Delete.
10422         (define_subst_attr "round_mask_op4"): New.
10423         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10424         V16SImode.
10425         (define_subst_attr "round_modev8sf_condition"): New.
10426         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10427         <MODE>mode.
10428         (define_subst_attr "round_saeonly_mask_operand4"): New.
10429         (define_subst_attr "round_saeonly_mask_op4"): New.
10430         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10431         V8DImode, V16SImode.
10432         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10433         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10434         (define_subst_attr "mask_expand4_args"): New.
10435         (define_subst "mask_expand4"): New.
10436
10437 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10439             Anna Tikhonova  <anna.tikhonova@intel.com>
10440             Ilya Tocar  <ilya.tocar@intel.com>
10441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10442             Ilya Verbin  <ilya.verbin@intel.com>
10443             Kirill Yukhin  <kirill.yukhin@intel.com>
10444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10445
10446         * config/i386/i386.md
10447         (define_attr "isa"): Add avx512bw,noavx512bw.
10448         (define_attr "enabled"): Ditto.
10449         (define_split): Add 32/64-bit mask logic.
10450         (define_insn "*k<logic>qi"): New.
10451         (define_insn "*k<logic>hi"): New.
10452         (define_insn "*anddi_1"): Add mask version.
10453         (define_insn "*andsi_1"): Ditto.
10454         (define_insn "*<code><mode>_1"): Ditto.
10455         (define_insn "*<code>hi_1"): Ditto.
10456         (define_insn "kxnor<mode>"): New.
10457         (define_insn "kunpcksi"): New.
10458         (define_insn "kunpckdi"): New.
10459         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10460         (define_insn "*one_cmplhi2_1"): Ditto.
10461
10462 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10463             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10464             Anna Tikhonova  <anna.tikhonova@intel.com>
10465             Ilya Tocar  <ilya.tocar@intel.com>
10466             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10467             Ilya Verbin  <ilya.verbin@intel.com>
10468             Kirill Yukhin  <kirill.yukhin@intel.com>
10469             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10470
10471         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10472         V32HImode.
10473
10474 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10475             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10476             Anna Tikhonova  <anna.tikhonova@intel.com>
10477             Ilya Tocar  <ilya.tocar@intel.com>
10478             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10479             Ilya Verbin  <ilya.verbin@intel.com>
10480             Kirill Yukhin  <kirill.yukhin@intel.com>
10481             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10482
10483         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
10484         registers.
10485         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10486         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10487         xmm/ymm16+ when availble.
10488         * config/i386/i386.h
10489         (HARD_REGNO_NREGS): Add mask regs.
10490         (VALID_AVX512F_REG_MODE): Ditto.
10491         (VALID_AVX512F_REG_MODE) : Define.
10492         (VALID_MASK_AVX512BW_MODE): Ditto.
10493         (reg_class) (MASK_REG_P(X)): Define.
10494         * config/i386/i386.md: Do not split long moves with mask register,
10495         use kmovb if avx512bw is availible.
10496         (movdi_internal): Handle mask registers.
10497
10498 2014-08-14  Richard Biener  <rguenther@suse.de>
10499
10500         PR tree-optimization/62081
10501         * tree-ssa-loop.c (pass_fix_loops): New pass.
10502         (pass_tree_loop::gate):  Do not fixup loops here.
10503         * tree-pass.h (make_pass_fix_loops): Declare.
10504         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10505
10506 2014-08-14  Richard Biener  <rguenther@suse.de>
10507
10508         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10509         (type_hash_canon): ... this and avoid 2nd lookup for the add.
10510
10511 2014-08-14  Richard Biener  <rguenther@suse.de>
10512
10513         PR tree-optimization/62090
10514         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10515         (fold_builtin_2): Do not fold sprintf.
10516         (fold_builtin_3): Likewise.
10517         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10518         moved from builtins.c.
10519         (gimple_fold_builtin): Fold sprintf.
10520
10521 2014-08-14  Richard Biener  <rguenther@suse.de>
10522
10523         PR rtl-optimization/62079
10524         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10525         run cleanup_cfg.
10526
10527 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
10528
10529         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10530         current_function_decl.
10531
10532 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
10533
10534         * cgraph.c (cgraph_node::function_symbol): Fix wrong
10535         cgraph_function_node to cgraph_node::function_symbol
10536         refactoring.
10537
10538 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10539
10540         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10541         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10542
10543 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
10544
10545         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10546         warning.
10547
10548 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
10549
10550         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10551         generator.
10552
10553 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
10554
10555         PR target/62025
10556         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10557         any registers that are used in mem_insn.
10558
10559 2014-08-12  Steve Ellcey  <sellcey@mips.com>
10560
10561         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
10562
10563 2014-08-12  Steve Ellcey  <sellcey@mips.com>
10564
10565         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10566         (MULTILIB_DIRNAMES): Ditto.
10567         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10568         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10569         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10570         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10571         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10572         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10573
10574 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10575
10576         PR target/61413
10577         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10578         of __ARM_SIZEOF_WCHAR_T.
10579
10580 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10581
10582         PR target/62098
10583         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10584         Remove unnecessary attributes.
10585
10586 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
10587
10588         * internal-fn.c (init_internal_fns): Fix off-by-one.
10589
10590 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10591             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10592             Anna Tikhonova  <anna.tikhonova@intel.com>
10593             Ilya Tocar  <ilya.tocar@intel.com>
10594             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10595             Ilya Verbin  <ilya.verbin@intel.com>
10596             Kirill Yukhin  <kirill.yukhin@intel.com>
10597             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10598
10599         * config/i386/i386.c (standard_sse_constant_opcode): Use
10600         vpxord/vpternlog if avx512 is availible.
10601
10602 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10603
10604         PR middle-end/62103
10605         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10606         bitfields, that is when size doesn't match the size of type or the
10607         size of the constructor.
10608
10609 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10610
10611         * config/rs6000/constraints.md (wh constraint): New constraint,
10612         for FP registers if direct move is available.
10613         (wi constraint): New constraint, for VSX/FP registers that can
10614         handle 64-bit integers.
10615         (wj constraint): New constraint for VSX/FP registers that can
10616         handle 64-bit integers for direct moves.
10617         (wk constraint): New constraint for VSX/FP registers that can
10618         handle 64-bit doubles for direct moves.
10619         (wy constraint): Make documentation match implementation.
10620
10621         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10622         scalar_in_vmx_p field to simplify tests of whether SFmode or
10623         DFmode can go in the Altivec registers.
10624         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10625         (rs6000_setup_reg_addr_masks): Likewise.
10626         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10627         field, and wh/wi/wj/wk constraints.
10628         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10629         the wh/wi/wj/wk constraints.
10630         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10631         upper registers, prefer VSX registers unless the operation is a
10632         memory operation with REG+OFFSET addressing.
10633
10634         * config/rs6000/vsx.md (VSr mode attribute): Add support for
10635         DImode.  Change SFmode to use ww constraint instead of d to allow
10636         SF registers in the upper registers.
10637         (VSr2): Likewise.
10638         (VSr3): Likewise.
10639         (VSr5): Fix thinko in comment.
10640         (VSa): New mode attribute that is an alternative to wa, that
10641         returns the VSX register class that a mode can go in, but may not
10642         be the preferred register class.
10643         (VS_64dm): New mode attribute for appropriate register classes for
10644         referencing 64-bit elements of vectors for direct moves and normal
10645         moves.
10646         (VS_64reg): Likewise.
10647         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10648         register allocator to only registers the data type can handle.
10649         (vsx_le_perm_load_<mode>): Likewise.
10650         (vsx_le_perm_store_<mode>): Likewise.
10651         (vsx_xxpermdi2_le_<mode>): Likewise.
10652         (vsx_xxpermdi4_le_<mode>): Likewise.
10653         (vsx_lxvd2x2_le_<mode>): Likewise.
10654         (vsx_lxvd2x4_le_<mode>): Likewise.
10655         (vsx_stxvd2x2_le_<mode>): Likewise.
10656         (vsx_add<mode>3): Likewise.
10657         (vsx_sub<mode>3): Likewise.
10658         (vsx_mul<mode>3): Likewise.
10659         (vsx_div<mode>3): Likewise.
10660         (vsx_tdiv<mode>3_internal): Likewise.
10661         (vsx_fre<mode>2): Likewise.
10662         (vsx_neg<mode>2): Likewise.
10663         (vsx_abs<mode>2): Likewise.
10664         (vsx_nabs<mode>2): Likewise.
10665         (vsx_smax<mode>3): Likewise.
10666         (vsx_smin<mode>3): Likewise.
10667         (vsx_sqrt<mode>2): Likewise.
10668         (vsx_rsqrte<mode>2): Likewise.
10669         (vsx_tsqrt<mode>2_internal): Likewise.
10670         (vsx_fms<mode>4): Likewise.
10671         (vsx_nfma<mode>4): Likewise.
10672         (vsx_eq<mode>): Likewise.
10673         (vsx_gt<mode>): Likewise.
10674         (vsx_ge<mode>): Likewise.
10675         (vsx_eq<mode>_p): Likewise.
10676         (vsx_gt<mode>_p): Likewise.
10677         (vsx_ge<mode>_p): Likewise.
10678         (vsx_xxsel<mode>): Likewise.
10679         (vsx_xxsel<mode>_uns): Likewise.
10680         (vsx_copysign<mode>3): Likewise.
10681         (vsx_float<VSi><mode>2): Likewise.
10682         (vsx_floatuns<VSi><mode>2): Likewise.
10683         (vsx_fix_trunc<mode><VSi>2): Likewise.
10684         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10685         (vsx_x<VSv>r<VSs>i): Likewise.
10686         (vsx_x<VSv>r<VSs>ic): Likewise.
10687         (vsx_btrunc<mode>2): Likewise.
10688         (vsx_b2trunc<mode>2): Likewise.
10689         (vsx_floor<mode>2): Likewise.
10690         (vsx_ceil<mode>2): Likewise.
10691         (vsx_<VS_spdp_insn>): Likewise.
10692         (vsx_xscvspdp): Likewise.
10693         (vsx_xvcvspuxds): Likewise.
10694         (vsx_float_fix_<mode>2): Likewise.
10695         (vsx_set_<mode>): Likewise.
10696         (vsx_extract_<mode>_internal1): Likewise.
10697         (vsx_extract_<mode>_internal2): Likewise.
10698         (vsx_extract_<mode>_load): Likewise.
10699         (vsx_extract_<mode>_store): Likewise.
10700         (vsx_splat_<mode>): Likewise.
10701         (vsx_xxspltw_<mode>): Likewise.
10702         (vsx_xxspltw_<mode>_direct): Likewise.
10703         (vsx_xxmrghw_<mode>): Likewise.
10704         (vsx_xxmrglw_<mode>): Likewise.
10705         (vsx_xxsldwi_<mode>): Likewise.
10706         (vsx_xscvdpspn): Tighten constraints to only use register classes
10707         the types use.
10708         (vsx_xscvspdpn): Likewise.
10709         (vsx_xscvdpspn_scalar): Likewise.
10710
10711         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10712         wj, and wk constraints.
10713         (GPR_REG_CLASS_P): New helper macro for register classes targeting
10714         general purpose registers.
10715
10716         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10717         direct moves.
10718         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10719         DImode instead of wm.  Use wk constraint for direct move of DFmode
10720         instead of wm.
10721         (extendsidi2_lfiwax): Likewise.
10722         (lfiwax): Likewise.
10723         (lfiwzx): Likewise.
10724         (movdi_internal64): Likewise.
10725
10726         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10727         wk constraints. Make the wy constraint documentation match them
10728         implementation.
10729
10730 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
10731
10732         Replacement of isl_int by isl_val
10733         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10734         (compute_bounds_for_param): use isl_val instead of isl_int
10735         (compute_bounds_for_loop): likewise
10736         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10737         (build_linearized_memory_access): use isl_val instead of isl_int
10738         (pdr_stride_in_loop): likewise
10739         * graphite-optimize-isl.c:
10740         (getPrevectorMap): use isl_val instead of isl_int
10741         * graphite-poly.c:
10742         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10743         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10744         (extern the_isl_ctx): declare
10745         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10746         (extract_affine_gmp): likewise
10747         (wrap): likewise
10748         (build_loop_iteration_domains): likewise
10749         (add_param_constraints): likewise
10750
10751 2014-08-11  Richard Biener  <rguenther@suse.de>
10752
10753         PR tree-optimization/62075
10754         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10755         handle uses in patterns.
10756
10757 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10758             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10759             Anna Tikhonova  <anna.tikhonova@intel.com>
10760             Ilya Tocar  <ilya.tocar@intel.com>
10761             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10762             Ilya Verbin  <ilya.verbin@intel.com>
10763             Kirill Yukhin  <kirill.yukhin@intel.com>
10764             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10765
10766         * common/config/i386/i386-common.c
10767         (OPTION_MASK_ISA_AVX512VL_SET): Define.
10768         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10769         (ix86_handle_option): Handle OPT_mavx512vl.
10770         * config/i386/cpuid.h (bit_AVX512VL): Define.
10771         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10772         set -mavx512vl accordingly.
10773         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10774         OPTION_MASK_ISA_AVX512VL.
10775         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10776         (ix86_option_override_internal): Define PTA_AVX512VL, handle
10777         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10778         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10779         * config/i386/i386.h (TARGET_AVX512VL): Define.
10780         (TARGET_AVX512VL_P(x)): Ditto.
10781         * config/i386/i386.opt: Add mavx512vl.
10782
10783 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
10784
10785         PR tree-optimization/62073
10786         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10787         a basic block.
10788
10789 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10790             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10791             Anna Tikhonova  <anna.tikhonova@intel.com>
10792             Ilya Tocar  <ilya.tocar@intel.com>
10793             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10794             Ilya Verbin  <ilya.verbin@intel.com>
10795             Kirill Yukhin  <kirill.yukhin@intel.com>
10796             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10797
10798         * common/config/i386/i386-common.c
10799         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10800         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10801         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10802         (ix86_handle_option): Handle OPT_mavx512bw.
10803         * config/i386/cpuid.h (bit_AVX512BW): Define.
10804         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10805         set -mavx512bw accordingly.
10806         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10807         OPTION_MASK_ISA_AVX512BW.
10808         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10809         (ix86_option_override_internal): Define PTA_AVX512BW, handle
10810         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10811         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10812         * config/i386/i386.h (TARGET_AVX512BW): Define.
10813         (TARGET_AVX512BW_P(x)): Ditto.
10814         * config/i386/i386.opt: Add mavx512bw.
10815
10816 2014-08-11  Richard Biener  <rguenther@suse.de>
10817
10818         PR tree-optimization/62070
10819         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10820         Remove SSA checking.
10821
10822 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
10823
10824         * asan.c (asan_check_flags): New enum.
10825         (build_check_stmt_with_calls): Removed function.
10826         (build_check_stmt): Split inlining logic to
10827         asan_expand_check_ifn.
10828         (instrument_derefs): Rename parameter.
10829         (instrument_mem_region_access): Rename parameter.
10830         (instrument_strlen_call): Likewise.
10831         (asan_expand_check_ifn): New function.
10832         (asan_instrument): Remove old code.
10833         (pass_sanopt::execute): Change handling of
10834         asan-instrumentation-with-call-threshold.
10835         (asan_clear_shadow): Fix formatting.
10836         (asan_function_start): Likewise.
10837         (asan_emit_stack_protection): Likewise.
10838         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10839         Update description.
10840         * internal-fn.c (expand_ASAN_CHECK): New function.
10841         * internal-fn.def (ASAN_CHECK): New internal function.
10842         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10843         Update description.
10844         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10845         * tree.c: Small comment fix.
10846
10847 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
10848
10849         * gimple.c (gimple_call_fnspec): Support internal functions.
10850         (gimple_call_return_flags): Use const.
10851         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10852         * internal-fn.def: Add fnspec information.
10853         * internal-fn.h (internal_fn_fnspec): New function.
10854         (init_internal_fns): Declare new function.
10855         * internal-fn.c (internal_fn_fnspec_array): New global variable.
10856         (init_internal_fns): New function.
10857         * tree-core.h: Update macro call.
10858         * tree.c (build_common_builtin_nodes): Initialize internal fns.
10859
10860 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
10861
10862         * lto-streamer.h (struct output_block::symbol): Change from
10863         struct symtab_node to plain symtab_node.
10864         (referenced_from_this_partition_p): Change first parameter
10865         from struct symtab_node to plain symtab_node.
10866
10867 2014-08-10  Marek Polacek  <polacek@redhat.com>
10868
10869         PR c/51849
10870         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10871
10872 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
10873
10874         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10875         DECL correctly; do not give up on types in static storage.
10876
10877 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
10878
10879         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10880
10881 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
10882
10883         * graphite-isl-ast-to-gimple.c:
10884         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10885
10886         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10887
10888 2014-08-08  Guozhi Wei  <carrot@google.com>
10889
10890         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10891
10892 2014-08-08  Cary Coutant  <ccoutant@google.com>
10893
10894         * dwarf2out.c (get_skeleton_type_unit): Remove.
10895         (output_skeleton_debug_sections): Remove skeleton type units.
10896         (output_comdat_type_unit): Likewise.
10897         (dwarf2out_finish): Likewise.
10898
10899 2014-08-07  Yi Yang  <ahyangyi@google.com>
10900
10901         * predict.c (expr_expected_value_1): Remove the redundant assignment.
10902
10903 2014-08-08  Richard Biener  <rguenther@suse.de>
10904
10905         * lto-streamer.h (struct lto_input_block): Make it a class
10906         with a constructor.
10907         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10908         (struct lto_function_header, struct lto_simple_header,
10909         struct lto_simple_header_with_strings,
10910         struct lto_decl_header, struct lto_function_header): Make
10911         a simple inheritance hieararchy.  Remove unused fields.
10912         (struct lto_asm_header): Remove.
10913         * lto-streamer-out.c (produce_asm): Adjust.
10914         (lto_output_toplevel_asms): Likewise.
10915         (produce_asm_for_decls): Likewise.
10916         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10917         * data-streamer-in.c (string_for_index): Likewise.
10918         * ipa-inline-analysis.c (inline_read_section): Likewise.
10919         * ipa-prop.c (ipa_prop_read_section): Likewise.
10920         (read_replacements_section): Likewise.
10921         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10922         * lto-section-in.c (lto_create_simple_input_block): Likewise.
10923         (lto_destroy_simple_input_block): Likewise.
10924         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10925         (lto_input_toplevel_asms): Likewise.
10926
10927 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10928             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10929             Anna Tikhonova  <anna.tikhonova@intel.com>
10930             Ilya Tocar  <ilya.tocar@intel.com>
10931             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10932             Ilya Verbin  <ilya.verbin@intel.com>
10933             Kirill Yukhin  <kirill.yukhin@intel.com>
10934             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10935
10936         * common/config/i386/i386-common.c
10937         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10938         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10939         (ix86_handle_option): Handle OPT_mavx512dq.
10940         * config/i386/cpuid.h (bit_AVX512DQ): Define.
10941         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10942         set -mavx512dq accordingly.
10943         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10944         OPTION_MASK_ISA_AVX512DQ.
10945         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10946         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10947         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10948         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10949         * config/i386/i386.h (TARGET_AVX512DQ): Define.
10950         (TARGET_AVX512DQ_P(x)): Ditto.
10951         * config/i386/i386.opt: Add mavx512dq.
10952
10953 2014-08-08  Richard Biener  <rguenther@suse.de>
10954
10955         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10956         target_percent, target_percent_s): Export.
10957         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10958         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10959         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10960         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10961         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10962         Move to gimple-fold.c.
10963         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10964         strcat and strcpy.
10965         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10966         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10967         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10968         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10969         (rewrite_call_expr_array): Remove.
10970         (fold_builtin_sprintf_chk): Likewise.
10971         (fold_builtin_snprintf_chk): Likewise.
10972         (fold_builtin_varargs): Remove handling of sprintf_chk,
10973         vsprintf_chk, snprintf_chk and vsnprintf_chk.
10974         (gimple_fold_builtin_sprintf_chk): Remove.
10975         (gimple_fold_builtin_snprintf_chk): Likewise.
10976         (gimple_fold_builtin_varargs): Likewise.
10977         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10978         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10979         * gimple.c (gimple_seq_add_seq_without_update): New function.
10980         * gimple.h (gimple_seq_add_seq_without_update): Declare.
10981         * gimple-fold.c: Include output.h.
10982         (gsi_replace_with_seq_vops): New function, split out from ...
10983         (gimplify_and_update_call_from_tree): ... here.
10984         (replace_call_with_value): New function.
10985         (replace_call_with_call_and_fold): Likewise.
10986         (var_decl_component_p): Moved from builtins.c.
10987         (gimple_fold_builtin_memory_op): Moved from builtins.c
10988         fold_builtin_memory_op and rewritten to GIMPLE.
10989         (gimple_fold_builtin_memset): Likewise.
10990         (gimple_fold_builtin_strcpy): Likewise.
10991         (gimple_fold_builtin_strncpy): Likewise.
10992         (gimple_fold_builtin_strcat): Likewise.
10993         (gimple_fold_builtin_fputs): Likewise.
10994         (gimple_fold_builtin_memory_chk): Likewise.
10995         (gimple_fold_builtin_stxcpy_chk): Likewise.
10996         (gimple_fold_builtin_stxncpy_chk): Likewise.
10997         (gimple_fold_builtin_snprintf_chk): Likewise.
10998         (gimple_fold_builtin_sprintf_chk): Likewise.
10999         (gimple_fold_builtin_strlen): New function.
11000         (gimple_fold_builtin_with_strlen): New function split out from
11001         gimple_fold_builtin.
11002         (gimple_fold_builtin): Change signature and handle
11003         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11004         here.  Call gimple_fold_builtin_with_strlen.
11005         (gimple_fold_call): Adjust.
11006
11007 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11008
11009         * calls.c (precompute_arguments): Check
11010          promoted_for_signed_and_unsigned_p and set the promoted mode.
11011         (promoted_for_signed_and_unsigned_p): New function.
11012         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11013         and set the promoted mode.
11014         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11015         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11016         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11017
11018
11019 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11020
11021         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11022         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11023         (expand_call): Likewise.
11024         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11025         to get promoted mode.
11026         * combine.c (record_promoted_value): Skip > 0 comparison with
11027         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11028         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11029         of SUBREG_PROMOTED_UNSIGNED_P.
11030         (convert_modes): Likewise.
11031         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11032         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11033         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11034         SUBREG_PROMOTED_UNSIGNED_SET.
11035         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11036         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11037         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11038         SUBREG_PROMOTED_SET.
11039         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11040         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11041         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11042         of SUBREG_PROMOTED_UNSIGNED_P.
11043         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11044         (SUBREG_PROMOTED_SET): New define.
11045         (SUBREG_PROMOTED_GET): Likewise.
11046         (SUBREG_PROMOTED_SIGN): Likewise.
11047         (SUBREG_PROMOTED_SIGNED_P): Likewise.
11048         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11049         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11050         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11051         instead of SUBREG_PROMOTED_UNSIGNED_GET.
11052         (nonzero_bits1): Skip > 0 comparison with the results as
11053         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11054         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11055         of !SUBREG_PROMOTED_UNSIGNED_P.
11056         * simplify-rtx.c (simplify_unary_operation_1): Use new
11057         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11058         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11059         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11060         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11061
11062 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
11063
11064         * ipa-devirt.c: Include gimple-pretty-print.h
11065         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11066         further tests.
11067         (decl_maybe_in_construction_p): Fix conditional on cdtor check
11068         (get_polymorphic_call_info): Fix return value
11069         (type_change_info): New sturcture based on ipa-prop
11070         variant.
11071         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11072         based on ipa-prop variant.
11073         (extr_type_from_vtbl_ptr_store): New function
11074         based on ipa-prop variant.
11075         (record_known_type): New function.
11076         (check_stmt_for_type_change): New function.
11077         (get_dynamic_type): New function.
11078         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11079         * tree-ssa-pre.c: ipa-utils.h
11080         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11081         machinery; sanity check with ipa-prop devirtualization.
11082         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11083         polymorphic flag.
11084
11085 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
11086
11087         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11088         * alias.c, cfgexpand.c, cgraphbuild.c,
11089         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11090         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11091         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11092         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11093         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11094         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11095         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11096         dse.c, except.c, gengtype.c, gimple-expr.c,
11097         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11098         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11099         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11100         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11101         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11102         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11103         pointer-set.h.
11104         * pointer-set.c: Remove file.
11105         * pointer-set.h: Remove file.
11106
11107 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11108
11109         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11110         * config/arm/types.md (f_sels, f_seld): Delete.
11111
11112 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11113
11114         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11115         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11116         (aarch64_movdi_<mode>high): Likewise.
11117         (aarch64_mov<mode>high_di): Likewise.
11118         (aarch64_movdi_<mode>low): Likewise.
11119         (aarch64_mov<mode>low_di): Likewise.
11120         (aarch64_movtilow_tilow): Likewise.
11121         Add comment explaining usage of fp,simd attributes and of
11122         TARGET_FLOAT and TARGET_SIMD.
11123
11124 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
11125             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11126
11127         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11128         Use MOVN when one of the half-words is 0xffff.
11129
11130 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
11131
11132         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11133
11134 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11135
11136         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
11137         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11138         (rfs_str): String corresponding to RFS_* constants.
11139         (rank_for_schedule_stats_t): New typedef.
11140         (rank_for_schedule_stats): New static variable.
11141         (rfs_result): New static function.
11142         (rank_for_schedule): Track statistics for deciding heuristics.
11143         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11144         static functions.
11145         (ready_sort): Use them for debug printouts.
11146         (schedule_block): Init statistics state.  Print statistics on
11147         rank_for_schedule decisions.
11148
11149 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11150
11151         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11152
11153 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
11154
11155         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11156         constraint.
11157
11158 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
11159
11160         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11161         function to not conflict.
11162         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11163         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11164         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11165         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11166         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11167         of pointer_map.
11168
11169 2014-08-07  Marek Polacek  <polacek@redhat.com>
11170
11171         * fold-const.c (fold_binary_loc): Add folding of
11172         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11173
11174 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
11175
11176         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11177         instead of type size.
11178         (ASM_FINISH_DECLARE_OBJECT): Likewise.
11179
11180 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
11181
11182         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11183         (*thumb1_movqi_insn): Likewise.
11184         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11185
11186 2014-08-07  Tom de Vries  <tom@codesourcery.com>
11187
11188         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11189         (glibc_2_11_or_earlier): Remove effective-target keywords.
11190
11191 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11192
11193         * config/arm/arm.c (bdesc_2arg): Fix typo.
11194         (arm_atomic_assign_expand_fenv): Remove The default implementation.
11195
11196 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11197
11198         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11199
11200 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
11201
11202         PR debug/61923
11203         * haifa-sched.c (advance_one_cycle): Fix dump.
11204         (schedule_block): Don't advance cycle if we are already at the
11205         beginning of the cycle.
11206
11207 2014-08-06  Martin Jambor  <mjambor@suse.cz>
11208
11209         PR ipa/61393
11210         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11211
11212 2014-08-06  Richard Biener  <rguenther@suse.de>
11213
11214         PR lto/62034
11215         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11216         SCCs here.
11217         (lto_input_tree): Pop SCCs here.
11218
11219 2014-08-06  Richard Biener  <rguenther@suse.de>
11220
11221         PR tree-optimization/61320
11222         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11223         handle misaligned loads.
11224
11225 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
11226
11227         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11228         (aarch64_expand_vec_perm_const): Check for dup before zip.
11229
11230 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11231
11232         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11233         CONST_INT_P instead of GET_CODE and compare.
11234         (aarch64_select_cc_mode): Likewise.
11235         (aarch64_print_operand): Likewise.
11236         (aarch64_rtx_costs): Likewise.
11237         (aarch64_simd_valid_immediate): Likewise.
11238         (aarch64_simd_check_vect_par_cnst_half): Likewise.
11239         (aarch64_simd_emit_pair_result_insn): Likewise.
11240
11241 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
11242
11243         * gdbhooks.py (find_gcc_source_dir): New helper function.
11244         (class PassNames): New class, locating and parsing passes.def.
11245         (class BreakOnPass): New command "break-on-pass".
11246
11247 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
11248
11249         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11250         getting olde.
11251
11252 2014-08-05  Richard Biener  <rguenther@suse.de>
11253
11254         PR rtl-optimization/61672
11255         * emit-rtl.h (mem_attrs_eq_p): Declare.
11256         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
11257         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11258         * cfgcleanup.c (merge_memattrs): Likewise.
11259         Include emit-rtl.h.
11260
11261 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11262
11263         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11264         rather than singleton vectors.
11265         (vqdmlsls_lane_s32): Likewise.
11266
11267 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11268
11269         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11270         Use VSDQ_HSI mode iterator.
11271         (aarch64_sqrdmulh_laneq<mode>): Likewise.
11272         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11273         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11274         Use BUILTIN_VDQHS macro.
11275         (sqrdmulh_laneq): Likewise.
11276         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11277         (vqdmlals_laneq_s32): Likewise.
11278         (vqdmlslh_laneq_s16): Likewise.
11279         (vqdmlsls_laneq_s32): Likewise.
11280         (vqdmulhh_laneq_s16): Likewise.
11281         (vqdmulhs_laneq_s32): Likewise.
11282         (vqrdmulhh_laneq_s16): Likewise.
11283         (vqrdmulhs_laneq_s32): Likewise.
11284
11285 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11286
11287         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11288         (vmuld_laneq_f64): Likewise.
11289         (vmuls_laneq_f32): Likewise.
11290         (vmul_n_f64): Likewise.
11291         (vmuld_lane_f64): Reimplement in C.
11292         (vmuls_lane_f32): Likewise.
11293
11294 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11295
11296         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11297         to reservation.
11298         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11299
11300 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11301
11302         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11303         (rbitsi2): Likewise.
11304         (*arm_rev): Set predicable and predicable_short_it attributes.
11305
11306 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11307
11308         * convert.c (convert_to_integer): Guard transformation to lrint by
11309         -fno-math-errno.
11310
11311 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
11312
11313         * config/aarch64/aarch64-builtins.c
11314         (aarch64_simd_builtin_type_mode): Delete.
11315         (v8qi_UP): Remap to V8QImode.
11316         (v4hi_UP): Remap to V4HImode.
11317         (v2si_UP): Remap to V2SImode.
11318         (v2sf_UP): Remap to V2SFmode.
11319         (v1df_UP): Remap to V1DFmode.
11320         (di_UP): Remap to DImode.
11321         (df_UP): Remap to DFmode.
11322         (v16qi_UP):V16QImode.
11323         (v8hi_UP): Remap to V8HImode.
11324         (v4si_UP): Remap to V4SImode.
11325         (v4sf_UP): Remap to V4SFmode.
11326         (v2di_UP): Remap to V2DImode.
11327         (v2df_UP): Remap to V2DFmode.
11328         (ti_UP): Remap to TImode.
11329         (ei_UP): Remap to EImode.
11330         (oi_UP): Remap to OImode.
11331         (ci_UP): Map to CImode.
11332         (xi_UP): Remap to XImode.
11333         (si_UP): Remap to SImode.
11334         (sf_UP): Remap to SFmode.
11335         (hi_UP): Remap to HImode.
11336         (qi_UP): Remap to QImode.
11337         (aarch64_simd_builtin_datum): Make mode a machine_mode.
11338         (VAR1): Build builtin name.
11339         (aarch64_init_simd_builtins): Remove dead code.
11340
11341 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
11342
11343         * graphite-isl-ast-to-gimple.c:
11344         (set_options): New function.
11345         (scop_to_isl_ast): Add calling of set_options.
11346
11347 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
11348
11349         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11350         (analyze_iv_to_split_insn): Don't initialize them.
11351         (get_ivts_expr): Removed.
11352         (allocate_basic_variable, insert_base_initialization): Use
11353         SET_SRC instead of *get_ivts_expr.
11354         (split_iv): Use &SET_SRC instead of get_ivts_expr.
11355
11356 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
11357
11358         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11359         (translate_isl_ast_for_loop): Add checking of the
11360         flag_loop_parallelize_all.
11361         (ast_build_before_for): New function.
11362         (scop_to_isl_ast): Add checking of the
11363         flag_loop_parallelize_all.
11364         * graphite-dependences.c: Move the defenition of the
11365         scop_get_dependences from graphite-optimize-isl.c to this file.
11366         (apply_schedule_on_deps): Add checking of the ux's emptiness.
11367         (carries_deps): Add checking of the x's value.
11368         * graphite-optimize-isl.c: Move the defenition of the
11369         scop_get_dependences to graphite-dependences.c.
11370         * graphite-poly.h: Add declarations of scop_get_dependences
11371         and carries_deps.
11372
11373 2014-08-04  Rohit  <rohitarulraj@freescale.com>
11374
11375         PR target/60102
11376         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11377         names.
11378         (alt_reg_names): Likewise.
11379         (rs6000_dwarf_register_span): For SPE high registers, replace
11380         dwarf register numbers with GCC hard register numbers.
11381         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11382         (rs6000_dbx_register_number): For SPE high registers, return dwarf
11383         register number for the corresponding GCC hard register number.
11384         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11385         newly added GCC hard register numbers for SPE high registers.
11386         (DWARF_FRAME_REGISTERS):  Likewise.
11387         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11388         (DWARF_FRAME_REGNUM): Likewise.
11389         (FIXED_REGISTERS): Likewise.
11390         (CALL_USED_REGISTERS): Likewise.
11391         (CALL_REALLY_USED_REGISTERS): Likewise.
11392         (REG_ALLOC_ORDER): Likewise.
11393         (enum reg_class): Likewise.
11394         (REG_CLASS_NAMES): Likewise.
11395         (REG_CLASS_CONTENTS): Likewise.
11396         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11397
11398 2014-08-04  Richard Biener  <rguenther@suse.de>
11399
11400         * gimple-fold.h (gimple_fold_builtin): Remove.
11401         * gimple-fold.c (gimple_fold_builtin): Make static.
11402         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11403         fold_stmt, not gimple_fold_builtin.
11404
11405 2014-08-04  Martin Liska <mliska@suse.cz>
11406
11407         * cgraph.h (csi_end_p): Removed.
11408         (csi_next): Likewise.
11409         (csi_node): Likewise.
11410         (csi_start): Likewise.
11411         (cgraph_node_in_set_p): Likewise.
11412         (cgraph_node_set_size): Likewise.
11413         (vsi_end_p): Likewise.
11414         (vsi_next): Likewise.
11415         (vsi_node): Likewise.
11416         (vsi_start): Likewise.
11417         (varpool_node_set_size): Likewise.
11418         (cgraph_node_set_nonempty_p): Likewise.
11419         (varpool_node_set_nonempty_p): Likewise.
11420         * cgraphunit.c (cgraph_process_new_functions): vec replaces
11421         cgraph_node_set.
11422         * ipa-inline-transform.c: Likewise.
11423         * ipa-utils.c (cgraph_node_set_new): Removed.
11424         (cgraph_node_set_add): Likewise.
11425         (cgraph_node_set_remove): Likewise.
11426         (cgraph_node_set_find): Likewise.
11427         (dump_cgraph_node_set): Likewise.
11428         (debug_cgraph_node_set): Likewise.
11429         (free_cgraph_node_set): Likewise.
11430         (varpool_node_set_new): Likewise.
11431         (varpool_node_set_add): Likewise.
11432         (varpool_node_set_remove): Likewise.
11433         (varpool_node_set_find): Likewise.
11434         (dump_varpool_node_set): Likewise.
11435         (free_varpool_node_set): Likewise.
11436         (debug_varpool_node_set): Likewise.
11437         * tree-emutls.c (struct tls_var_data):
11438         (emutls_index): Removed.
11439         (emutls_decl): Likewise.
11440         (gen_emutls_addr): Function implementation uses newly added
11441         hash_map<varpool_node *, tls_var_data>.
11442         (clear_access_vars): Likewise.
11443         (create_emultls_var): Likewise.
11444         (ipa_lower_emutls): Likewise.
11445         (reset_access): New function.
11446
11447 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
11448
11449         * config/i386/i386.c (ix86_option_override_internal): Add
11450         PTA_RDRND and PTA_MOVBE for bdver4.
11451
11452 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11453             James Greenhalgh  <james.greenhalgh@arm.com>
11454
11455         * doc/md.texi (clrsb): Document.
11456         (clz): Change reference to x into operand 1.
11457         (ctz): Likewise.
11458         (popcount): Likewise.
11459
11460 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11461
11462         PR target/61713
11463         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11464         move to subtarget in serial version if result is ignored.
11465
11466 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11467             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11468
11469         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11470         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
11471         (sched_analyze_insn): Update use of try_group_insn to
11472         sched_macro_fuse_insns.
11473         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11474         arguments that are not conditional jumps.
11475
11476 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
11477
11478         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11479         family information. Handle BTVER2 cpu with cpuid family value.
11480
11481 2014-08-04  Tom de Vries  <tom@codesourcery.com>
11482
11483         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11484         (glibc_2_11_or_earlier): Document effective-target keywords.
11485
11486 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
11487
11488         * ipa-devirt.c (odr_type_warn_count): Add type.
11489         (possible_polymorphic_call_targets): Set it.
11490         (ipa_devirt): Use it.
11491
11492 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
11493
11494         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11495         Document.
11496         * ipa-devirt.c: Include hash-map.h
11497         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11498         (clear_speculation): Break out of ...
11499         (get_class_context): ... here; speed up handling obviously useless
11500         speculations.
11501         (odr_type_warn_count, decl_warn_count): New structures.
11502         (final_warning_record): New structure.
11503         (final_warning_records): New static variable.
11504         (possible_polymorphic_call_targets): Cleanup handling of
11505         speculative info; do not build speculation when user do not care;
11506         record info about warnings when asked for.
11507         (add_decl_warning): New function.
11508         (type_warning_cmp): New function.
11509         (decl_warning_cmp): New function.
11510         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11511         (gate): Enable pass when warnings are requested.
11512         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11513         options.
11514
11515 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
11516
11517         * hash-map.h (default_hashmap_traits::mark_key_deleted):
11518         Fix cast.
11519         (hash_map::remove): New method.
11520         (hash_map::traverse): New method.
11521         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11522         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11523         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11524         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11525         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11526         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11527         pointer_map.
11528
11529 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
11530
11531         * hash-set.h: new File.
11532         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11533         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11534         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11535         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11536         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11537         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11538         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11539         varpool.c: Use hash_set instead of pointer_set.
11540
11541 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
11542
11543         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11544
11545 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11546
11547         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11548         for frame access when strict_p is false.
11549
11550 2014-08-01  Renlin Li <renlin.li@arm.com>
11551 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11552
11553         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11554         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11555         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11556         Declaration.
11557         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11558         predicate.
11559         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11560         aarch64_mem_pair_offset.
11561
11562 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11563
11564         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11565         offset.
11566         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11567         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11568
11569 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
11570
11571         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11572
11573 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
11574
11575         PR regression/61510
11576         * cgraphunit.c (analyze_functions): Use get_create rather than get
11577         for decls which are clones of abstract functions.
11578
11579 2014-08-01  Martin Liska  <mliska@suse.cz>
11580
11581         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11582         * ipa-prop.h (count_formal_params): Global function created from static.
11583         * ipa-prop.c (count_formal_params): Likewise.
11584         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11585         profiles for semantically equivalent functions.
11586         * passes.c (do_per_function): If we load body of a function
11587         during WPA, this condition should behave same.
11588         * varpool.c (ctor_for_folding): More tolerant assert for variable
11589         aliases created during WPA.
11590
11591 2014-08-01  Martin Liska  <mliska@suse.cz>
11592
11593         * doc/invoke.texi (Options That Control Optimization): Documentation
11594         for -foptimize-strlen introduced. Optimization levels default options
11595         fixed.
11596
11597 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
11598
11599         * opts.c (common_handle_option): Handle -fsanitize=alignment.
11600         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11601         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11602         type to bool.
11603         * stor-layout.h (min_align_of_type): New prototype.
11604         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11605         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
11606         check.
11607         * ubsan.c: Include builtins.h.
11608         (ubsan_expand_bounds_ifn): Change return type to bool,
11609         always return true.
11610         (ubsan_expand_null_ifn): Change return type to bool, change
11611         argument to gimple_stmt_iterator *.  Handle both null and alignment
11612         sanitization, take type from ckind argument's type rather than
11613         first argument.
11614         (instrument_member_call): Removed.
11615         (instrument_mem_ref): Remove t argument, add mem and base arguments.
11616         Handle both null and alignment sanitization, don't say whole
11617         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
11618         call instead of 2 argument.
11619         (instrument_null): Adjust instrument_mem_ref caller.  Don't
11620         instrument calls here.
11621         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11622         like SANITIZE_NULL.
11623         * stor-layout.c (min_align_of_type): New function.
11624         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11625         Or it into SANITIZE_UNDEFINED.
11626         * doc/invoke.texi (-fsanitize=alignment): Document.
11627
11628 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11629
11630         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11631
11632 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11633
11634         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11635         inchash.
11636         (vn_reference_compute_hash): Dito.
11637         (vn_nary_op_compute_hash): Dito.
11638         (vn_phi_compute_hash): Dito.
11639         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11640
11641 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11642
11643         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11644         Rename to inchash:add_expr_commutative. Convert to inchash.
11645         (iterative_hash_hashable_expr): Rename to
11646         inchash:add_hashable_expr. Convert to inchash.
11647         (avail_expr_hash): Dito.
11648
11649 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11650
11651         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11652         Convert to inchash.
11653
11654 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11655
11656         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11657
11658 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11659
11660         * Makefile.in (OBJS): Add rtlhash.o
11661         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11662         (loc_checksum): Dito.
11663         (loc_checksum_ordered): Dito.
11664         (hash_loc_operands): Dito.
11665         (hash_locs): Dito.
11666         (hash_loc_list): Dito.
11667         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11668         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11669         * rtlhash.c: New file.
11670         * rtlhash.h: New file.
11671
11672 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11673
11674         * inchash.h (inchash): Change inchash class to namespace.
11675         (class hash): ... Rename from inchash.
11676         (add_object): Move from macro to class template.
11677         * lto-streamer-out.c (hash_tree): Change inchash
11678         to inchash::hash.
11679         * tree.c (build_type_attribute_qual_variant): Dito.
11680         (type_hash_list): Dito.
11681         (attribute_hash_list): Dito.
11682         (iterative_hstate_expr): Rename to inchash::add_expr
11683         (build_range_type_1): Change inchash to inchash::hash
11684         and use hash::add_expr.
11685         (build_array_type_1): Dito.
11686         (build_function_type): Dito
11687         (build_method_type_directly): Dito.
11688         (build_offset_type): Dito.
11689         (build_complex_type): Dito.
11690         (make_vector_type): Dito.
11691         * tree.h (iterative_hash_expr): Dito.
11692
11693 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
11694
11695         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11696
11697 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11698
11699         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11700         correct alphabetical position.
11701         (vpaddd_f64): Rewrite using builtins.
11702         (vpaddd_s64): Move to correct alphabetical position.
11703         (vpaddd_u64): New.
11704
11705 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
11706
11707         PR target/61844
11708         * config/sh/sh.c (sh_legitimate_address_p,
11709         sh_legitimize_reload_address): Handle reg+reg address modes when
11710         ALLOW_INDEXED_ADDRESS is false.
11711         * config/sh/predicates.md (general_movsrc_operand,
11712         general_movdst_operand): Likewise.
11713
11714 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11715
11716         * config/aarch64/aarch64-builtins.c
11717         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11718         BYTES_BIG_ENDIAN.
11719
11720 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11721
11722         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11723         the generated mask based on BYTES_BIG_ENDIAN.
11724         (aarch64_simd_check_vect_par_cnst_half): New.
11725         * config/aarch64/aarch64-protos.h
11726         (aarch64_simd_check_vect_par_cnst_half): New.
11727         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11728         the check out to aarch64_simd_check_vect_par_cnst_half.
11729         (vect_par_cnst_lo_half): Likewise.
11730         * config/aarch64/aarch64-simd.md
11731         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11732         (move_hi_quad_<mode>): Always generate a low mask.
11733
11734 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11735
11736         * doc/invoke.texi (AVR Options): Add documentation about
11737         __AVR_DEVICE_NAME__ built-in macro.
11738
11739 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
11740
11741         PR target/61948
11742         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11743         constraints are satisfied.
11744         (<shift>di3_neon): Likewise.
11745
11746 2014-07-31  Richard Biener  <rguenther@suse.de>
11747
11748         PR tree-optimization/61964
11749         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11750         by structural equality.
11751
11752 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
11753
11754         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11755         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11756         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11757         New enums.
11758         * gcc.c (sanitize_spec_function): Support new option.
11759         (SANITIZER_SPEC): Remove now redundant check.
11760         * opts.c (common_handle_option): Support new option.
11761         (finish_options): Check for incompatibilities.
11762         * toplev.c (process_options): Split userspace-specific checks.
11763
11764 2014-07-31  Richard Biener  <rguenther@suse.de>
11765
11766         * lto-streamer.h (struct output_block): Remove global.
11767         (struct data_in): Remove labels, num_named_labels and
11768         num_unnamed_labels.
11769         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11770         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11771
11772 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
11773
11774         PR c++/60517
11775         * common.opt (-Wreturn-local-addr): Moved from c.opt.
11776         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11777         (isolate_path): New argument to avoid inserting a trap.
11778         (find_implicit_erroneous_behaviour): Handle returning the address
11779         of a local variable.
11780         (find_explicit_erroneous_behaviour): Likewise.
11781
11782 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
11783
11784         PR lto/61868
11785         * toplev.c (init_random_seed): Move piece of code never called to
11786         set_random_seed.
11787         (set_random_seed): see above.
11788
11789 2014-07-31  Tom de Vries  <tom@codesourcery.com>
11790
11791         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11792
11793 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
11794
11795         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11796         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11797
11798 2014-07-31  Richard Biener  <rguenther@suse.de>
11799
11800         * data-streamer.h (streamer_write_data_stream): Declare here,
11801         renamed from ...
11802         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
11803         * lto-cgraph.c (lto_output_node): Adjust.
11804         (lto_output_varpool_node): Likewise.
11805         * data-streamer-out.c (streamer_string_index): Likewise.
11806         (streamer_write_data_stream, lto_append_block): Move from ...
11807         * lto-section-out.c (lto_output_data_stream,
11808         lto_append_block): ... here.
11809
11810 2014-07-30  Mike Stump  <mikestump@comcast.net>
11811
11812         * configure.ac: Also check for popen.
11813         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11814         * configure: Regenerate.
11815         * config.in:  Regenerate.
11816
11817 2014-07-30  Martin Jambor  <mjambor@suse.cz>
11818
11819         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11820         parameter to gimple.
11821
11822 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11823
11824         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11825         address as second parameter to __tpf_eh_return routine.
11826
11827 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
11828
11829         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11830         Thumb2.
11831
11832 2014-07-30  Tom Tromey  <tromey@redhat.com>
11833
11834         PR c/59855
11835         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11836         * doc/extend.texi (Type Attributes): Document designated_init
11837         attribute.
11838
11839 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
11840
11841         * graphite-isl-ast-to-gimple.c:
11842         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11843         (gcc_expression_from_isl_expression): Pass type to
11844         gcc_expression_from_isl_ast_expr_id.
11845
11846 2014-07-30  Richard Biener  <rguenther@suse.de>
11847
11848         * lto-streamer.h (lto_write_data): New function.
11849         * langhooks.c (lhd_append_data): Do not free block.
11850         * lto-section-out.c (lto_write_data): New function writing
11851         raw data to the current section.
11852         (lto_write_stream): Adjust for langhook semantic change.
11853         (lto_destroy_simple_output_block): Write header directly.
11854         * lto-opts.c (lto_write_options): Write options directly.
11855         * lto-streamer-out.c (produce_asm): Write heaeder directly.
11856         (lto_output_toplevel_asms): Likewise.
11857         (copy_function_or_variable): Copy data directly.
11858         (write_global_references): Output index table directly.
11859         (lto_output_decl_state_refs): Likewise.
11860         (write_symbol): Write data directly.
11861         (produce_symtab): Adjust.
11862         (produce_asm_for_decls): Output header and refs directly.
11863
11864 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
11865
11866         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11867         to speculative_targets
11868         (get_class_context): Fix handling of contextes without outer type;
11869         avoid matching non-polymorphic types in LTO.
11870         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11871         parameter to speculative_targetsp; handle speculation.
11872         (dump_possible_polymorphic_call_targets): Update dumping.
11873
11874 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
11875
11876         * common.opt (Wodr): Enable by default.
11877
11878 2014-07-29  Olivier Hainque  <hainque@adacore.com>
11879
11880         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11881
11882 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
11883
11884         PR bootstrap/61914
11885         * gengtype.c (strtoken): New function.
11886         (create_user_defined_type): Replace strtok with strtoken.
11887
11888 2014-07-29  Nathan Sidwell  <nathan@acm.org>
11889
11890         * gcov-io.c (gcov_var): Make hidden.
11891         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11892         (gcov_do_dump): Declare.
11893         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11894
11895 2014-07-29  Martin Jambor  <mjambor@suse.cz>
11896
11897         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11898         parameter to gimple.
11899         (sra_modify_assign): Likewise.
11900
11901 2014-07-29  Richard Biener  <rguenther@suse.de>
11902
11903         PR middle-end/52478
11904         * expr.c (expand_expr_real_2): Revert last change.
11905
11906 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
11907
11908         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11909         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11910         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11911         call.
11912         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11913         (contains_type_p): Forward declare.
11914         (polymorphic_call_target_hasher::hash): Hash speculative info.
11915         (polymorphic_call_target_hasher::equal): Compare speculative info.
11916         (get_class_context): Handle speuclation.
11917         (contains_type_p): Update.
11918         (get_polymorphic_call_info_for_decl): Update.
11919         (walk_ssa_copies): Break out from ...
11920         (get_polymorphic_call_info): ... here; set speculative context
11921         before giving up.
11922         * ipa-prop.c (ipa_write_indirect_edge_info,
11923         ipa_read_indirect_edge_info): Stream speculative context.
11924         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11925         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11926         SPECULATIVE_MAYBE_DERIVED_TYPE).
11927         (possible_polymorphic_call_targets overriders): Update.
11928         (dump_possible_polymorphic_call_targets overriders): Update.
11929         (dump_possible_polymorphic_call_target_p overriders): Update.
11930
11931 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
11932
11933         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11934         ipa-devirt path; fix thinko there.
11935
11936 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
11937
11938         * config/i386/i386.c (ix86_return_in_memory): Replace one
11939         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11940
11941 2014-07-28  Marek Polacek  <polacek@redhat.com>
11942
11943         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
11944
11945 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
11946
11947         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11948         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11949         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11950         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11951         (USE_LD_AS_NEEDED): Likewise.
11952         (ASM_APP_ON): Likewise.
11953         (ASM_APP_OFF): Likewise.
11954         (TARGET_POSIX_IO): Likewise.
11955         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11956         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11957         (USE_LD_AS_NEEDED): Likewise.
11958         (ASM_APP_ON): Likewise.
11959         (ASM_APP_OFF): Likewise.
11960         (TARGET_POSIX_IO): Likewise.
11961
11962 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
11963
11964         PR middle-end/61734
11965         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11966         operators other than the equality operators.
11967
11968 2014-07-28  Richard Biener  <rguenther@suse.de>
11969
11970         PR middle-end/52478
11971         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11972         sure to register SImode ones, not only >= word_mode ones.
11973         * expr.c (expand_expr_real_2): When expanding -ftrapv
11974         binops do not use OPTAB_LIB_WIDEN.
11975
11976 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
11977
11978         PR middle-end/61919
11979         * tree-outof-ssa.c (insert_partition_copy_on_edge)
11980         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11981         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11982         inserting them in the insn stream.
11983
11984 2014-07-28  Marek Polacek  <polacek@redhat.com>
11985
11986         PR middle-end/61913
11987         * common.opt (Wodr): Add Var.
11988
11989 2014-07-28  Richard Biener  <rguenther@suse.de>
11990
11991         PR tree-optimization/61921
11992         * tree-ssa-structalias.c (create_variable_info_for_1): Check
11993         if there is a varpool node before dereferencing it.
11994
11995 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
11996
11997         * graphite-sese-to-poly.c:
11998         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11999         id of the pbb), which contains pointer to the pbb1.
12000
12001         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12002
12003 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12004
12005         * graphite-isl-ast-to-gimple.c:
12006         (graphite_create_new_guard): New function.
12007         (translate_isl_ast_node_if): New function.
12008         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12009
12010         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12011
12012 2014-07-27  Anthony Green  <green@moxielogic.com>
12013
12014         * config.gcc: Add moxie-*-moxiebox* configuration.
12015         * config/moxie/moxiebox.h: New file.
12016
12017 2014-07-26  Andrew Pinski  <apinski@cavium.com>
12018
12019         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12020         from the read only register.
12021
12022 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12023
12024         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12025         as the allocation class if it isn't likely to be spilled.
12026
12027 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12028
12029         * rtl.h (tls_referenced_p): Declare.
12030         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12031         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12032         (mips_cannot_force_const_mem): Use tls_referenced_p.
12033         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12034         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12035         instead of pa_tls_referenced_p.
12036         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12037         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12038         (pa_legitimate_constant_p): Likewise.
12039         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12040         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12041         (rs6000_cannot_force_const_mem, rs6000_emit_move)
12042         (rs6000_address_for_altivec): Use tls_referenced_p instead of
12043         rs6000_tls_referenced_p.
12044         (rs6000_tls_symbol_ref_1): Delete.
12045
12046 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
12047
12048         PR target/44551
12049         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12050         Optimize inverse of a VEC_CONCAT.
12051
12052 2014-07-25  Xinliang David Li  <davidxl@google.com>
12053
12054         * params.def: New parameter.
12055         * coverage.c (get_coverage_counts): Check new flag.
12056         (coverage_compute_profile_id): Check new flag.
12057         (coverage_begin_function): Check new flag.
12058         (coverage_end_function): Check new flag.
12059         * value-prof.c (coverage_node_map_initialized_p): New function.
12060         (init_node_map): Populate map with all functions.
12061         * doc/invoke.texi: Document new parameter.
12062
12063 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
12064             Richard Biener <rguenther@suse.de>
12065
12066         * lto-streamer-out.c (struct sccs): Turn to ...
12067         (class DFS): ... this one; refactor the DFS walk so it can
12068         be re-done on per-SCC basis.
12069         (DFS::DFS): New constructor.
12070         (DFS::~DFS): New destructor.
12071         (hash_tree): Add new MAP argument holding in-SCC hash values;
12072         remove POINTER_TYPE hashing hack.
12073         (scc_entry_compare): Rename to ...
12074         (DFS::scc_entry_compare): ... this one.
12075         (hash_scc): Rename to ...
12076         (DFS::hash_scc): ... this one; pass output_block instead
12077         of streamer_cache; work harder to get unique and stable SCC
12078         hashes.
12079         (DFS_write_tree): Rename to ...
12080         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12081         (lto_output_tree): Update.
12082
12083 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12084
12085         * lto-streamer-out.c (hash_tree): Convert to inchash.
12086
12087 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12088
12089         * tree.c (build_type_attribute_qual_variant): Use inchash.
12090         (type_hash_list): Dito.
12091         (attribute_hash_list): Dito
12092         (iterative_hstate_expr): Dito.
12093         (iterative_hash_expr): Dito.
12094         (build_range_type_1): Dito.
12095         (build_array_type_1): Dito.
12096         (build_function_type): Dito.
12097         (build_method_type_directly): Dito.
12098         (build_offset_type): Dito.
12099         (build_complex_type): Dito.
12100         (make_vector_type): Dito.
12101         * tree.h (iterative_hash_expr): Add compat wrapper.
12102         (iterative_hstate_expr): Add.
12103
12104 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12105
12106         * Makefile.in (OBJS): Add inchash.o.
12107         (PLUGIN_HEADERS): Add inchash.h.
12108         * ipa-devirt.c: Include inchash.h.
12109         * lto-streamer-out.c: Dito.
12110         * tree-ssa-dom.c: Dito.
12111         * tree-ssa-pre.c: Dito.
12112         * tree-ssa-sccvn.c: Dito.
12113         * tree-ssa-tail-merge.c: Dito.
12114         * asan.c: Dito.
12115         * tree.c (iterative_hash_hashval_t): Move to ...
12116         (iterative_hash_host_wide_int): Move to ...
12117         * inchash.c: Here. New file.
12118         * tree.h (iterative_hash_hashval_t): Move to ...
12119         (iterative_hash_host_wide_int): Move to ...
12120         * inchash.h: Here. New file.
12121
12122 2014-07-25  Richard Biener  <rguenther@suse.de>
12123
12124         PR middle-end/61762
12125         PR middle-end/61894
12126         * fold-const.c (native_encode_int): Add and handle offset
12127         parameter to do partial encodings of expr.
12128         (native_encode_fixed): Likewise.
12129         (native_encode_real): Likewise.
12130         (native_encode_complex): Likewise.
12131         (native_encode_vector): Likewise.
12132         (native_encode_string): Likewise.
12133         (native_encode_expr): Likewise.
12134         * fold-const.c (native_encode_expr): Add offset parameter
12135         defaulting to -1.
12136         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12137         (fold_ctor_reference): Handle all reads from tcc_constant
12138         ctors.
12139
12140 2014-07-25  Richard Biener  <rguenther@suse.de>
12141
12142         * tree-inline.c (estimate_move_cost): Mark speed_p argument
12143         as possibly unused.
12144
12145 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12146
12147         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12148
12149 2014-07-24  Kyle McMartin  <kyle@redhat.com>
12150
12151         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12152
12153 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12154
12155         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12156         Add prototype.
12157         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12158         function.
12159         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12160         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12161         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12162
12163 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12164
12165         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12166         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12167         aggregate types.  Instead, *all* aggregate types, except for single-
12168         element or homogeneous float/vector aggregates, are quadword-aligned
12169         if required by their type alignment.  Issue -Wpsabi note when a type
12170         is now treated differently than before.
12171
12172 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12173
12174         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12175         does not fit fully into floating-point registers, and there is still
12176         space in the register parameter area, use GPRs to pass those parts
12177         of the argument.  Issue -Wpsabi note if any parameter is now treated
12178         differently than before.
12179         (rs6000_arg_partial_bytes): Update.
12180
12181 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
12182
12183         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12184
12185 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12186
12187         * rtl.h (target_rtl): Remove lang_dependent_initialized.
12188         * toplev.c (initialize_rtl): Don't use it.  Move previously
12189         "language-dependent" calls to...
12190         (backend_init): ...here.
12191         (lang_dependent_init_target): Don't set lang_dependent_initialized.
12192         Assert that RTL initialization hasn't happend yet.
12193
12194 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12195
12196         PR rtl-optimization/61629
12197         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12198         they have already been initialized.
12199
12200 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12201
12202         PR middle-end/61268
12203         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12204         DECL_INCOMING_RTL and entry_parm.
12205         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12206         * calls.c (load_register_parameters): Likewise argument values.
12207         (emit_library_call_value_1, store_one_arg): Likewise argument
12208         save areas.
12209         * config/i386/i386.c (assign_386_stack_local): Likewise the local
12210         stack slot.
12211         * explow.c (validize_mem): Modify the argument in-place.
12212
12213 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12214
12215         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12216         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12217
12218 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12219
12220         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12221         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12222
12223 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12224
12225         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12226         (aarch64_save_callee_saves): New parameter "skip_wb".
12227         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12228
12229 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12230
12231         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12232         "wb_candidate2".
12233         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12234
12235 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
12236
12237         * graphite-isl-ast-to-gimple.c:
12238         (graphite_create_new_loop): Add calling of isl_id_free to properly
12239         decrement reference counts.
12240
12241         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12242
12243 2014-07-24  Martin Liska  <mliska@suse.cz>
12244         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12245         function used.
12246         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12247         (rs6000_code_end): Likewise.
12248
12249 2014-07-24  Martin Liska  <mliska@suse.cz>
12250
12251         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12252         symtab_node funtion used.
12253         (rs6000_xcoff_declare_object_name): Likewise.
12254
12255 2014-07-24  Martin Liska  <mliska@suse.cz>
12256
12257         * cgraphunit.c (compile): Correct function used.
12258
12259 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
12260
12261         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12262         as non-indexable.
12263
12264 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
12265
12266         PR lto/61802
12267         * varasm.c (bss_initializer_p): Handle offlined ctors.
12268         (align_variable, get_variable_align): Likewise.
12269         (make_decl_one_only): Likewise.
12270         (default_binds_local_p_1): Likewise.
12271         (decl_binds_to_current_def_p): Likewise.
12272         (get_variable_section): Get constructor if it is offlined.
12273         (assemble_variable_contents): Sanity check that the caller
12274         streamed in the ctor in LTO.
12275
12276 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
12277
12278         * graphite-isl-ast-to-gimple.c:
12279         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12280         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12281         isl_ast_op_pdiv_r to the different case.
12282
12283         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12284
12285 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12286
12287         PR middle-end/61876
12288         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12289         when flag_errno_math is on.
12290
12291 2014-07-24  Martin Liska  <mliska@suse.cz>
12292
12293         * cgraph.h (varpool_node):
12294         (availability get_availability (void)):
12295         created from cgraph_variable_initializer_availability
12296         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12297         created from: cgraph_variable_initializer_availability
12298         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12299         (void finalize_named_section_flags (void)):
12300         created from varpool_finalize_named_section_flags
12301         (bool assemble_decl (void)): created from varpool_assemble_decl
12302         (void analyze (void)): created from varpool_analyze_node
12303         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12304         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12305         (void remove_initializer (void)): created from varpool_remove_initializer
12306         (tree get_constructor (void)): created from varpool_get_constructor
12307         (bool externally_visible_p (void)): created from varpool_externally_visible_p
12308         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12309         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12310         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12311         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12312         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12313         (static bool output_variables (void)): created from varpool_output_variables
12314         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12315         created from varpool_extra_name_alias
12316         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12317         (static void dump_varpool (FILE *f)): created from dump_varpool
12318         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12319         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12320         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12321         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12322         (void assemble_aliases (void)): created from assemble_aliases
12323
12324 2014-07-24  Martin Liska  <mliska@suse.cz>
12325
12326         * cgraph.h (symtab_node):
12327         (void register_symbol (void)): created from symtab_register_node
12328         (void remove (void)): created from symtab_remove_node
12329         (void dump (FILE *f)): created from dump_symtab_node
12330         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12331         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12332         (struct ipa_ref *add_reference (symtab_node *referred_node,
12333         enum ipa_ref_use use_type)): created from add_reference 
12334         (struct ipa_ref *add_reference (symtab_node *referred_node,
12335         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12336         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12337         gimple stmt)): created from maybe_add_reference
12338         (bool semantically_equivalent_p (symtab_node *target)): created from
12339         symtab_semantically_equivalent_p
12340         (void remove_from_same_comdat_group (void)): created from
12341         remove_from_same_comdat_group
12342         (void add_to_same_comdat_group (symtab_node *old_node)): created from
12343         symtab_add_to_same_comdat_group
12344         (void dissolve_same_comdat_group_list (void)): created from
12345         symtab_dissolve_same_comdat_group_list
12346         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12347         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12348         created from symtab_alias_ultimate_target
12349         (inline symtab_node *next_defined_symbol (void)): created from
12350         symtab_next_defined_symbol
12351         (bool resolve_alias (symtab_node *target)): created from
12352         symtab_resolve_alias
12353         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12354         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12355         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12356         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12357         (void set_section (const char *section)): created from set_section_1 
12358         (enum availability get_availability (void)): created from symtab_node_availability
12359         (void make_decl_local (void)): created from symtab_make_decl_local
12360         (bool real_symbol_p (void)): created from symtab_read_node
12361         (can_be_discarded_p (void)): created from symtab_can_be_discarded
12362         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12363         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12364         symtab_in_same_comdat_p;
12365         (bool address_taken_from_non_vtable_p (void)): created from
12366         address_taken_from_non_vtable_p
12367         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12368         (static void dump_table (FILE *)): created from dump_symtab
12369         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12370         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12371         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12372         symtab_used_from_object_file_p 
12373         (void dump_base (FILE *)): created from dump_symtab_base
12374         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12375         (void unregister (void)): created from symtab_unregister_node
12376         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12377         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12378         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12379         symtab_nonoverwritable_alias_1
12380         * cgraph.h (cgraph_node):
12381         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12382         created from cgraph_remove_node_and_inline_clones
12383         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12384         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12385         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12386         (cgraph_node *function_symbol (enum availability *avail = NULL)):
12387         created from cgraph_function_node
12388         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12389         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12390         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12391         created from cgraph_create_clone 
12392         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12393         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12394         created from cgraph_create_virtual_clone
12395         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12396         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12397         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12398         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12399         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12400         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12401         created from cgraph_function_version_info
12402         (struct cgraph_function_version_info *insert_new_function_version (void)):
12403         created from insert_new_cgraph_node_version
12404         (struct cgraph_function_version_info *function_version (void)): created from
12405         get_cgraph_node_version
12406         (void analyze (void)): created from analyze_function
12407         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12408         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12409         tree real_alias) cgraph_add_thunk
12410         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12411         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12412         created from cgraph_function_or_thunk_node
12413         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12414         created from expand_thunk
12415         (void reset (void)): created from cgraph_reset_node
12416         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12417         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12418         (void remove (void)): created from cgraph_remove_node
12419         (void dump (FILE *f)): created from dump_cgraph_node
12420         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12421         (bool get_body (void)): created from cgraph_get_body
12422         (void release_body (void)): created from cgraph_release_function_body
12423         (void unnest (void)): created from cgraph_unnest_node
12424         (void make_local (void)): created from cgraph_make_node_local
12425         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12426         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12427         gcov_type count, int freq)): created from cgraph_create_edge
12428         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12429         gcov_type count, int freq)): created from cgraph_create_indirect_edge
12430         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12431         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12432         created from cgraph_create_edge_including_clones
12433         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12434         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12435         (void remove_callers (void)): created from cgraph_node_remove_callers
12436         (void remove_callees (void)): created from cgraph_node_remove_callees
12437         (enum availability get_availability (void)): created from cgraph_function_body_availability
12438         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12439         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12440         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12441         (void call_duplication_hooks (cgraph_node *node2)): created from
12442         cgraph_call_node_duplication_hooks
12443         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12444         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12445         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12446         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12447         (void call_function_insertion_hooks (void)):
12448         created from cgraph_call_function_insertion_hooks
12449         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12450         (bool local_p (void)): created from cgraph_local_node
12451         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12452         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12453         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12454         (inline bool only_called_directly_or_aliased_p (void)):
12455         created from cgraph_only_called_directly_or_aliased_p
12456         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12457         created from cgraph_will_be_removed_from_program_if_no_direct_calls
12458         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12459         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12460         (bool can_remove_if_no_direct_calls_p (void)):
12461         created from cgraph_can_remove_if_no_direct_calls_p
12462         (inline bool has_gimple_body_p (void)):
12463         created from cgraph_function_with_gimple_body_p
12464         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12465         (static void dump_cgraph (FILE *f)): created from dump_cgraph
12466         (static inline void debug_cgraph (void)): created from debug_cgraph
12467         (static void record_function_versions (tree decl1, tree decl2)):
12468         created from record_function_versions
12469         (static void delete_function_version (tree decl)):
12470         created from delete_function_version
12471         (static void add_new_function (tree fndecl, bool lowered)):
12472         created from cgraph_add_new_function
12473         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12474         (static cgraph_node * create (tree decl)): created from cgraph_create_node
12475         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12476         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12477         (static cgraph_node *get_for_asmname (tree asmname)):
12478         created from cgraph_node_for_asm
12479         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12480         created from cgraph_same_body_alias 
12481         (static bool used_from_object_file_p_worker (cgraph_node *node,
12482         void *): new function
12483         (static bool non_local_p (cgraph_node *node, void *)):
12484         created from cgraph_non_local_node_p_1
12485         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12486         created from verify_cgraph
12487         (static bool make_local (cgraph_node *node, void *)):
12488         created from cgraph_make_node_local
12489         (static cgraph_node *create_alias (tree alias, tree target)):
12490         created from cgraph_create_function_alias
12491         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12492         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12493         created from cgraph_create_edge_1
12494         * cgraph.h (varpool_node):
12495         (void remove (void)): created from varpool_remove_node
12496         (void dump (FILE *f)): created from dump_varpool_node
12497
12498 2014-07-24  Richard Biener  <rguenther@suse.de>
12499
12500         PR ipa/61823
12501         * tree-ssa-structalias.c (create_variable_info_for_1):
12502         Use varpool_get_constructor.
12503         (create_variable_info_for): Likewise.
12504
12505 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12506
12507         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12508         subtract outgoing area size when restoring stack_pointer_rtx.
12509
12510 2014-07-24  Nick Clifton  <nickc@redhat.com>
12511
12512         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12513         that operations are taking place in parallel.
12514         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12515
12516 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
12517
12518         * omp-low.c (extract_omp_for_data): Add missing break statement.
12519
12520 2014-07-24  Richard Biener  <rguenther@suse.de>
12521
12522         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12523         * tree-inline.c (estimate_move_cost): Add speed_p parameter
12524         and adjust MOVE_RATIO query accordingly.
12525         (estimate_num_insns): Adjust callers.
12526         * ipa-prop.c (ipa_populate_param_decls): Likewise.
12527         * ipa-cp.c (gather_context_independent_values,
12528         estimate_local_effects): Likewise.
12529         * ipa-split.c (consider_split): Likewise.
12530
12531 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
12532
12533         * config/i386/driver-i386.c: Remove names of unused arguments and
12534         unnecessary unused attributes.
12535         * config/i386/host-mingw32.c: Likewise.
12536         * config/i386/i386.c: Likewise.
12537         * config/i386/winnt-stubs.c: Likewise.
12538         * config/i386/winnt.c: Likewise.
12539
12540 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12541
12542         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12543         (aarch64_gen_loadwb_pair): New helper function.
12544         (aarch64_expand_epilogue): Simplify code using new helper functions.
12545         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12546
12547 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12548
12549         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12550         (aarch64_gen_storewb_pair): New helper function.
12551         (aarch64_expand_prologue): Simplify code using new helper functions.
12552         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12553
12554 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12555
12556         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12557         Rename to aarch64_save_callee_saves, remove restore code.
12558         (aarch64_restore_callee_saves): New function.
12559
12560 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12561
12562         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12563         (aarch64_save_callee_saves): New function to handle reg save
12564         for both core and vectore regs.
12565
12566 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12567
12568         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12569         (aarch64_gen_store_pair): New helper function.
12570         (aarch64_save_or_restore_callee_save_registers)
12571         (aarch64_save_or_restore_fprs): Use new helper functions.
12572
12573 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12574
12575         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12576         (aarch64_save_or_restore_callee_save_registers)
12577         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12578
12579 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12580
12581         * config/aarch64/aarch64.c
12582         (aarch64_save_or_restore_callee_save_registers)
12583         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12584
12585 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12586
12587         * config/aarch64/aarch64.c
12588         (aarch64_save_or_restore_callee_save_registers)
12589         (aarch64_save_or_restore_fprs): Remove 'increment'.
12590
12591 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12592
12593         * config/aarch64/aarch64.c
12594         (aarch64_save_or_restore_callee_save_registers)
12595         (aarch64_save_or_restore_fprs): Use register offset in
12596         cfun->machine->frame.reg_offset.
12597
12598 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12599
12600         * config/aarch64/aarch64.c
12601         (aarch64_save_or_restore_callee_save_registers)
12602         (aarch64_save_or_restore_fprs): Remove base_rtx.
12603
12604 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12605
12606         * config/aarch64/aarch64.c
12607         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12608         to 'start_offset'.  Remove local variable 'start_offset'.
12609
12610 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12611
12612         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12613         type to HOST_WIDE_INT.
12614
12615 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12616
12617         * config/aarch64/aarch64.c (aarch64_expand_prologue)
12618         (aarch64_save_or_restore_fprs)
12619         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12620
12621 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12622
12623         * config/arm/t-rtems-eabi: Add
12624         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12625         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12626         mbig-endian/mthumb/march=armv7-r, and
12627         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12628         multilibs.
12629
12630 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12631             Chris Johns <chrisj@rtems.org>
12632             Joel Sherrill <joel.sherrill@oarcorp.com>
12633
12634         * config.gcc: Add nios2-*-rtems*.
12635         * config/nios2/rtems.h: New file.
12636         * gcc/config/nios2/t-rtems: New file.
12637
12638 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
12639
12640         PR target/61396
12641         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12642         constant numbers, not general constants.
12643         (rs6000_expand_vector_init): Ditto.
12644
12645 2014-07-23  Nathan Sidwell  <nathan@acm.org>
12646
12647         * gcov-tool.c (gcov_list): Declare here.
12648         (set_gcov_list): Remove.
12649         (gcov_output_files): Set gcov_list directly.
12650
12651 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
12652
12653         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12654
12655 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12656
12657         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12658         callee-saved registers are available for padding purpose
12659         and r3 is not mandatory, then prefer use those callee-saved
12660         instead of r3.
12661
12662 2014-07-23  Richard Biener  <rguenther@suse.de>
12663
12664         * params.def (PARAM_MAX_COMBINE_INSNS): New.
12665         * combine.c: Include statistics.h and params.h.
12666         (combine_instructions): Guard three and four insn combines
12667         with max-combine-insns value.  Record statistics for combines
12668         performed.
12669         * doc/invoke.texi (max-combine-insns): Document new param.
12670
12671 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
12672
12673         * graphite-isl-ast-to-gimple.c:
12674         (translate_isl_ast_node_block): New function.
12675         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12676
12677         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12678         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12679
12680 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
12681
12682         * graphite-isl-ast-to-gimple.c:
12683         (get_max_schedule_dimensions): New function.
12684         (extend_schedule): Likewise.
12685         (generate_isl_schedule): Add calling of extend_schedule and
12686         get_max_schedule_dimensions.
12687
12688 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12689
12690         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12691         (case UNSPEC): Handle UNSPEC_RBIT.
12692
12693 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12694
12695         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12696         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12697
12698 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12699
12700         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12701
12702 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
12703
12704         * graphite-isl-ast-to-gimple.c:
12705         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12706         (ivs_params_clear):
12707         (build_iv_mapping): New function.
12708         (translate_isl_ast_node_user): Likewise.
12709         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12710
12711         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12712         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12713         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12714
12715 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
12716
12717         PR target/55701
12718         * config/arm/arm.md (setmem): New pattern.
12719         * config/arm/arm-protos.h (struct tune_params): New fields.
12720         (arm_gen_setmem): New prototype.
12721         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12722         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12723         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12724         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12725         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12726         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12727         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12728         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12729         (arm_const_inline_cost): New function.
12730         (arm_block_set_max_insns): New function.
12731         (arm_block_set_non_vect_profit_p): New function.
12732         (arm_block_set_vect_profit_p): New function.
12733         (arm_block_set_unaligned_vect): New function.
12734         (arm_block_set_aligned_vect): New function.
12735         (arm_block_set_unaligned_non_vect): New function.
12736         (arm_block_set_aligned_non_vect): New function.
12737         (arm_block_set_vect, arm_gen_setmem): New functions.
12738
12739 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
12740
12741         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12742
12743 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
12744
12745         PR target/61855
12746         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12747         out of #ifdef __OPTIMIZE__.
12748
12749 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
12750
12751         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12752         different trapping status if -fnon-call-exceptions is enabled.
12753
12754 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
12755
12756         * expr.c (store_field): Handle VOIDmode for calls that return values
12757         in multiple locations.
12758
12759 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12760
12761         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
12762         (altivec_vsldoi_<mode>): Likewise.
12763
12764 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
12765
12766         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12767         to the number of characters in the line.
12768
12769 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
12770
12771         * graphite-isl-ast-to-gimple.c: Add using of
12772         build_nonstandard_integer_type instead of int128_integer_type_node.
12773
12774 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
12775
12776         * toplev.c (output_stack_usage): Adjust the location of the warning.
12777
12778 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
12779
12780         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12781         (*membar_storeload): Disable for LEON3.
12782
12783 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12784
12785         PR rtl-optimization/61461
12786         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12787
12788 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
12789
12790         PR target/61794
12791         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12792         Fix instruction constraint.
12793         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12794
12795 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
12796
12797         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12798
12799 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
12800
12801         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12802         GNU coding standards.
12803         (nds32_register_move_cost): Likewise.
12804         (nds32_memory_move_cost): Likewise.
12805         (nds32_address_cost): Likewise.
12806
12807 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12808
12809         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12810
12811 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
12812
12813         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12814         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12815         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12816         (HAVE_sync_compare_and_swapqi): Define.
12817         (HAVE_sync_compare_and_swaphi): Likewise.
12818         (HAVE_sync_compare_and_swapsi): Likewise.
12819
12820 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
12821
12822         * config/mips/p5600.md: Add missing cpu tests.
12823
12824 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12825
12826         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12827         (vmla_f64): Likewise.
12828         (vfms_f64): Likewise.
12829         (vmls_f64): Likewise.
12830
12831 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12832
12833         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12834         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12835
12836 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12837
12838         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12839         (vmlal_high_lane_s32): Likewise.
12840         (vmlal_high_lane_u16): Likewise.
12841         (vmlal_high_lane_u32): Likewise.
12842         (vmlsl_high_lane_s16): Likewise.
12843         (vmlsl_high_lane_s32): Likewise.
12844         (vmlsl_high_lane_u16): Likewise.
12845         (vmlsl_high_lane_u32): Likewise.
12846
12847 2014-07-17  Terry Guo  <terry.guo@arm.com>
12848
12849         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12850         (alus_reg): Renamed to alus_sreg.
12851         * config/arm/arm-fixed.md: Change type of non-dsp instructions
12852         from alu_reg to alu_sreg.  Change type of dsp instructions from
12853         alu_reg to alu_dsp_reg.
12854         * config/arm/thumb1.md: Likewise.
12855         * config/arm/thumb2.md: Likewise.
12856         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12857         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12858         with alu_sreg and alus_sreg.
12859         * config/arm/arm1026ejs.md (alu_op): Likewise.
12860         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12861         * config/arm/arm926ejs.md (9_alu_op): Likewise.
12862         * config/arm/fa526.md (526_alu_op): Likewise.
12863         * config/arm/fa606te.md (606te_alu_op): Likewise.
12864         * config/arm/fa626te.md (626te_alu_op): Likewise.
12865         * config/arm/fa726te.md (726te_alu_op): Likewise.
12866         * config/arm/fmp626.md (mp626_alu_op): Likewise.
12867         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12868         alu_sreg, alu_dsp_reg and alus_sreg.
12869         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12870         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12871         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12872         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12873         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12874         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12875         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12876         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12877         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12878         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12879         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12880         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12881         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12882         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12883         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12884         alus_reg to alus_sreg.
12885
12886 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
12887
12888         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12889         infinity format.
12890
12891 2014-07-17  Richard Biener  <rguenther@suse.de>
12892
12893         PR rtl-optimization/61801
12894         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12895         don't set reg_pending_barrier if it appears in a debug-insn.
12896
12897 2014-07-16  DJ Delorie  <dj@redhat.com>
12898
12899         * config/rx/rx.c (rx_option_override): Fix alignment values.
12900         (rx_align_for_label): Likewise.
12901
12902 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
12903
12904         PR target/61737.
12905         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12906         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12907         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12908         functions.
12909         (cris_print_index, cris_print_operand, cris_constant_index_p)
12910         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12911         (cris_address_cost): Ditto last CONSTANT_P.
12912         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
12913         callers changed.  Yield cris_offsettable_symbol for non-PIC
12914         constant symbolic expressions including labels.  Yield cris_unspec
12915         for all unspecs.
12916         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
12917         target to pic_offset_table_rtx for calls that will likely go
12918         through PLT, const0_rtx when they can't.  All callers changed.
12919         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12920         symbolic expressions to be PICified.  Remove second, redundant,
12921         assert on can_create_pseudo_p returning non-zero.  Use
12922         replace_equiv_address_nv, not replace_equiv_address, for final
12923         operand update.
12924         * config/cris/cris.md ("movsi"): Move variable t to pattern
12925         toplevel. Adjust assert for new cris_symbol_type member.  Use
12926         CONSTANT_P instead of CONSTANT_ADDRESS_P.
12927         ("*movsi_internal") <case 9>: Make check for valid unspec operands
12928         for lapc stricter.
12929         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12930         ("call", "call_value"): Use second incoming operand as a marker
12931         for pic-offset-table-register being used.
12932         ("*expanded_call_non_v32", "*expanded_call_v32")
12933         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12934         second incoming operand to CALL, match cris_call_type_marker.
12935         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
12936         ("*expanded_call_side"): Ditto.  Fix typo in comment.
12937         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12938         CONSTANT_P.
12939         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12940         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12941         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
12942         users changed.  Add members cris_offsettable_symbol and cris_unspec.
12943         (cris_symbol_type): Rename from cris_pic_symbol_type.
12944         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12945         just CONSTANT_P.
12946         * config/cris/cris-protos.h (cris_symbol_type_of,
12947         cris_expand_pic_call_address): Adjust prototypes.
12948         (cris_legitimate_constant_p): New prototype.
12949
12950         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12951         an existing tmake_file.  Don't add t-slibgcc and t-linux.
12952
12953 2014-07-17  Jason Merrill  <jason@redhat.com>
12954
12955         PR c++/61623
12956         * symtab.c (symtab_remove_from_same_comdat_group): Also
12957         set_comdat_group to NULL_TREE.
12958         (verify_symtab): Fix diagnostic.
12959
12960 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
12961
12962         PR target/61662
12963         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12964
12965 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
12966
12967         Support location tracking for built-in macro tokens
12968         * input.h (is_location_from_builtin_token): New function declaration.
12969         * input.c (is_location_from_builtin_token): New function definition.
12970         * toplev.c (general_init): Tell libcpp what the pre-defined
12971         spelling location for built-in tokens is.
12972
12973 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
12974
12975         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12976         on the FUNCTION_DECL.
12977
12978 2014-07-16  Richard Biener  <rguenther@suse.de>
12979
12980         PR other/61782
12981         * doc/extend.texi (always_inline): Clarify.
12982
12983 2014-07-15  Eric Christopher  <echristo@gmail.com>
12984
12985         * doc/invoke.texi (Link Options): Document -z option.
12986
12987 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
12988
12989         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12990         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12991
12992 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
12993
12994         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12995
12996 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
12997
12998         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12999         varpool_assemble_decl.
13000         * varpool.c (varpool_assemble_decl): Assert that node->definition is
13001         true.
13002
13003 2014-07-15  Michael Matz  <matz@suse.de>
13004
13005         PR rtl-optimization/61772
13006         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13007
13008 2014-07-15  Richard Biener  <rguenther@suse.de>
13009
13010         * opts.c (default_options_table): Disable bit-ccp at -Og.
13011
13012 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13013
13014         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13015
13016 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13017
13018         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13019         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13020         call langhook for unknown declaration.
13021         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13022         * tree.h (DECL_ARGUMENTS): Update.
13023         * print-tree.c (print_node): Update.
13024         * tree-core.h (tree_decl_non_common): Remove arguments.
13025         (tree_function_decl): Add arguments.
13026
13027 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
13028
13029         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13030
13031 2014-07-14  Richard Biener  <rguenther@suse.de>
13032
13033         PR tree-optimization/61779
13034         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13035         simplifying a condition.
13036
13037 2014-07-14  Richard Biener  <rguenther@suse.de>
13038
13039         * builtins.c (c_strlen): Make only_value == 2 really only
13040         affect warning generation.
13041
13042 2014-07-14  Richard Biener  <rguenther@suse.de>
13043
13044         PR tree-optimization/61757
13045         PR tree-optimization/61783
13046         PR tree-optimization/61787
13047         * tree-ssa-dom.c (record_equality): Revert canonicalization
13048         change and add comment.
13049         (propagate_rhs_into_lhs): Revert previous fix, removing
13050         loop depth restriction again.
13051
13052 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13053
13054         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13055         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13056         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13057         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13058         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13059         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13060         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13061
13062 2014-07-14  Richard Biener  <rguenther@suse.de>
13063
13064         * cgraph.h (decl_in_symtab_p): Make inline.
13065
13066 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
13067
13068         PR middle-end/61294
13069         * doc/invoke.texi (-Wmemset-transposed-args): Document.
13070
13071         PR target/61656
13072         * config/i386/i386.c (classify_argument): Don't merge classes above
13073         number of words.
13074
13075 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
13076
13077         * cgraph.h (symtab_node): Add nonzero_address.
13078         (decl_in_symtab_p): Break out from ...
13079         (symtab_get_node): ... here.
13080         * fold-const.c: Include cgraph.h
13081         (tree_single_nonzero_warnv_p): Use symtab to determine
13082         if symbol is non-zero.
13083         * symtab.c (symtab_node::nonzero_address): New method.
13084
13085 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13086
13087         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13088         forgotten in previous commit.
13089
13090 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13091
13092         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13093         on builtin types.
13094         * ipa-devirt.c: Include stor-layout.h and intl.h
13095         (odr_subtypes_equivalent_p): New function.
13096         (warn_odr): New function.
13097         (warn_type_mismatch): New function.
13098         (odr_types_equivalent_p): New function.
13099         (add_type_duplicate): Use it.
13100         * common.opt (Wodr): New flag.
13101         * doc/invoke.texi (Wodr): Document new warning.
13102
13103 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13104
13105         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13106         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13107         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13108         (varpool_get_constructor): Push CTORS_IN timevar.
13109         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13110
13111 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
13112
13113         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13114         Remove VOID_FTYPE_PUSHORT.
13115         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13116         Change code to USHORT_FTYPE_VOID.
13117         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13118         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13119         (ix86_atomic_assign_expand_fenv): Update for
13120         __builtin_ia32_fnstsw changes.
13121         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13122         (fnstsw): Change operand 0 to nonimmediate operand.
13123
13124 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13125
13126         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13127         (varpool_get_constructor): New function.
13128         (varpool_ctor_useable_for_folding_p): Break out from ...
13129         (ctor_for_folding): ... here; use varpool_get_constructor.
13130         (varpool_assemble_decl): Likewise.
13131         * lto-streamer.h (struct output_block): Turn cgraph_node
13132         to symbol filed.
13133         (lto_input_variable_constructor): Declare.
13134         * ipa-visibility.c (function_and_variable_visibility): Use
13135         varpool_get_constructor.
13136         * cgraph.h (varpool_get_constructor): Declare.
13137         (varpool_ctor_useable_for_folding_p): New function.
13138         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13139         parameter; return error_mark_node for non-trivial constructors.
13140         (lto_write_tree_1, DFS_write_tree): Update use of
13141         get_symbol_initial_value.
13142         (output_function): Update initialization of symbol.
13143         (output_constructor): New function.
13144         (copy_function): Rename to ..
13145         (copy_function_or_variable): ... this one; handle vars too.
13146         (lto_output): Output variable sections.
13147         * lto-streamer-in.c (input_constructor): New function.
13148         (lto_read_body): Rename from ...
13149         (lto_read_body_or_constructor): ... this one; handle vars too.
13150         (lto_input_variable_constructor): New function.
13151         * ipa-prop.c (ipa_prop_write_jump_functions,
13152         ipa_prop_write_all_agg_replacement): Update.
13153         * lto-cgraph.c (compute_ltrans_boundary): Use it.
13154         (output_cgraph_opt_summary): Set symbol to NULL.
13155
13156 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13157
13158         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13159         non-polymorphic types.
13160         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13161         * ipa-devirt.c (types_same_for_odr): Do not explode when one
13162         of types is not polymorphic.
13163
13164 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
13165
13166         * lra-constraints.c (remove_inheritance_pseudos): Process
13167         destination pseudo too.
13168
13169 2014-07-11  Rong Xu  <xur@google.com>
13170
13171         * gcov-tool.c (gcov_output_files): Fix build error introduced in
13172         commit r212448.
13173
13174 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13175
13176         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13177         * config/avr/avr-devices.c (AVR_MCU): Same.
13178         (avr_mcu_types): add text start value to end of device list.
13179         * config/avr/avr-mcus.def: Add text section start for all devices.
13180         (ata5782): Add new avr5 device.
13181         (ata5831): Same.
13182         * config/avr/avr-tables.opt: Regenerate.
13183         * config/avr/avr.h: Add declaration for text section start handler.
13184         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13185         SPEC functions.
13186         (LINK_SPEC): Include text section start handler to linker spec.
13187         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13188         pass -Ttext option to linker if the text section start for the device
13189         is not zero.
13190         * config/avr/t-multilib: Regenerate.
13191         * doc/avr-mmcu.texi: Regenerate.
13192
13193 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
13194
13195         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13196         * config/rs6000/aix52.h (LINK_SPEC): Same.
13197         * config/rs6000/aix53.h (LINK_SPEC): Same.
13198         * config/rs6000/aix61.h (LINK_SPEC): Same.
13199         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13200
13201 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
13202
13203         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13204         (graphite_verify): New function.
13205         (ivs_params_clear): New function.
13206         (gcc_expression_from_isl_ast_expr_id): New function.
13207         (gcc_expression_from_isl_expr_int): New function.
13208         (binary_op_to_tree): New function.
13209         (ternary_op_to_tree): New function.
13210         (unary_op_to_tree): New function.
13211         (nary_op_to_tree): New function.
13212         (gcc_expression_from_isl_expr_op): New function.
13213         (gcc_expression_from_isl_expression): New function.
13214         (graphite_create_new_loop): New function.
13215         (translate_isl_ast_for_loop): New function.
13216         (get_upper_bound): New function.
13217         (graphite_create_new_loop_guard): New function.
13218         (translate_isl_ast_node_for): New function.
13219         (translate_isl_ast): New function.
13220         (add_parameters_to_ivs_params): New function.
13221         (scop_to_isl_ast): New parameter ip.
13222         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13223
13224 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13225
13226         * config/xtensa/predicates.md (call expander): Update for
13227         DECL_SECTION_NAME being string.
13228
13229 2014-07-11  Richard Biener  <rguenther@suse.de>
13230
13231         PR middle-end/61473
13232         * builtins.c (fold_builtin_memory_op): Inline memory moves that
13233         can be implemented with a single load followed by a single store.
13234         (c_strlen): Only warn when only_value is not 2.
13235
13236 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
13237
13238         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13239
13240 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
13241
13242         PR target/61561
13243         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13244         (*movhi_bytes): Likewise.
13245         (*arm_movqi_insn): Likewise.
13246
13247 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
13248
13249         PR target/56858
13250         * config/alpha/alpha.c: Include tree-pass.h, context.h
13251         and pass_manager.h.
13252         (pass_data_handle_trap_shadows): New pass.
13253         (pass_handle_trap_shadows::gate): New pass gate function.
13254         (make_pass_handle_trap_shadows): New function.
13255         (rest_of_handle_trap_shadows): Ditto.
13256
13257         (alpha_align_insns_1): Rename from alpha_align_insns.
13258         (pass_data_align_insns): New pass.
13259         (pass_align_insns::gate): New pass gate function.
13260         (make_pass_aling_insns): New function.
13261         (rest_of_align_insns): Ditto.
13262         (alpha_align_insns): Ditto.
13263
13264         (alpha_option_override): Declare handle_trap_shadows info
13265         and align_insns_info.  Register handle_trap_shadows and align_insns
13266         passes here.
13267         (alpha_reorg): Do not call alpha_trap_shadows and
13268         alpha_align_insn from here.
13269
13270         (alpha_pad_function_end): Do not skip BARRIERs.
13271
13272 2014-07-10  Rong Xu  <xur@google.com>
13273
13274         Add gcov-tool: an offline gcda profile processing tool support.
13275         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13276         (gcov_is_error): Ditto.
13277         (gcov_read_string): Ditto.
13278         (gcov_read_sync): Ditto.
13279         * gcov-io.h: Move counter defines to gcov-counter.def.
13280         * gcov-dump.c (tag_counters): Use gcov-counter.def.
13281         * coverage.c: Ditto.
13282         * gcov-tool.c: Offline gcda profile processing tool.
13283         (unlink_gcda_file): Remove one gcda file.
13284         (unlink_profile_dir): Remove gcda files from the profile path.
13285         (gcov_output_files): Output gcda files to an output dir.
13286         (profile_merge): Merge two profiles in directory.
13287         (print_merge_usage_message): Print merge usage.
13288         (merge_usage): Print merge usage and exit.
13289         (do_merge): Driver for profile merge sub-command.
13290         (profile_rewrite): Rewrite profile.
13291         (print_rewrite_usage_message): Print rewrite usage.
13292         (rewrite_usage): Print rewrite usage and exit.
13293         (do_rewrite): Driver for profile rewrite sub-command.
13294         (print_usage): Print gcov-info usage and exit.
13295         (print_version): Print gcov-info version.
13296         (process_args): Process arguments.
13297         (main): Main routine for gcov-tool.
13298         * Makefile.in: Build and install gcov-tool.
13299         * gcov-counter.def: New file split from gcov-io.h.
13300         * doc/gcc.texi: Include gcov-tool.texi.
13301         * doc/gcov-tool.texi: Document for gcov-tool.
13302
13303 2014-07-10  Richard Biener  <rguenther@suse.de>
13304
13305         PR tree-optimization/61757
13306         * tree-ssa-dom.c (loop_depth_of_name): Restore.
13307         (propagate_rhs_into_lhs): Revert part of last change.
13308
13309 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
13310
13311         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13312         FUNCTION_DECLs.
13313
13314 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
13315
13316         PR middle-end/53590
13317         * function.c (allocate_struct_function): Revert r188667 change.
13318
13319         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13320
13321 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
13322
13323         * doc/install.texi: Remove links to defunct package providers for
13324         Solaris.
13325
13326 2014-07-09  Tom de Vries  <tom@codesourcery.com>
13327
13328         * final.c (get_call_fndecl): Declare.
13329         (self_recursive_call_p): New function.
13330         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13331
13332 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13333
13334         * ipa-devirt.c (record_node): Walk through aliases.
13335
13336 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13337
13338         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13339
13340 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13341
13342         Revert:
13343         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13344
13345 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13346
13347         * ipa-visibility.c (function_and_variable_visibility): Remove
13348         temporary hack disabling local aliases on AIX.
13349
13350 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13351
13352         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13353         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13354
13355 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13356
13357         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13358         * rs6000/rs6000.c: Inline output of .set instruction.
13359         (declare_alias_data): New struct.
13360         (rs6000_declare_alias): New function.
13361         (rs6000_xcoff_declare_function_name): Use it.
13362         (rs6000_xcoff_declare_object_name): New function.
13363         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13364         (ASM_OUTPUT_DEF): Turn to empty definition.
13365
13366 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13367
13368         PR bootstrap/61679
13369         * hash-table.h: use hash_table::value_type instead of
13370         Descriptor::value_type in the return types of several methods.
13371
13372 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13373
13374         * tree-pass.h (pass_data): Remove has_execute member.
13375         * passes.c (execute_one_pass): Don't check pass->has_execute.
13376         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13377         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13378         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13379         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13380         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13381         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13382         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13383         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13384         gimple-low.c, gimple-ssa-isolate-paths.c,
13385         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13386         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13387         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13388         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13389         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13390         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13391         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13392         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13393         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13394         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13395         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13396         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13397         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13398         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13399         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13400         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13401         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13402         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13403         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13404         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13405         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13406         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13407         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13408         web.c: Remove initializer for pass_data::has_execute.
13409
13410 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13411
13412         * graphite-htab.h: Use hash_map instead of hash_table.
13413         * graphite-clast-to-gimple.c: Adjust.
13414         * passes.c: Use hash_map instead of hash_table.
13415         * sese.c: Likewise.
13416         * sese.h: Remove now unused code.
13417
13418 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
13419
13420         PR target/61599
13421         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13422         than zero.
13423
13424 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
13425
13426         PR rtl-optimization/61673
13427         * combine.c (simplify_comparison): Test just mode's sign bit
13428         in tmode rather than the sign bit and any bits above it.
13429
13430 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
13431
13432         * graphite-isl-ast-to-gimple.c (generate_isl_context):
13433         Add __isl_give to the declaration.
13434         (generate_isl_schedule): Likewise.
13435         (scop_to_isl_ast): Likewise.
13436
13437 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13438
13439         * config/arm/arm.c (cortexa5_extra_costs): New table.
13440         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13441
13442 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
13443
13444         PR tree-optimization/61725
13445         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13446         range, use range_includes_zerop_p instead of integer_zerop on
13447         vr0->min, only use log2 of max if min is not negative.
13448
13449 2014-07-08  Richard Biener  <rguenther@suse.de>
13450
13451         * tree-ssa-dom.h (loop_depth_of_name): Remove.
13452         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13453         restriction on loop depth difference.
13454         (record_equality): Likewise.
13455         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
13456         (loop_depth_of_name): Remove.
13457         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13458         restriction on loop depth difference.
13459         (init_copy_prop): Likewise.
13460
13461 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13462
13463         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13464         parameter.
13465         (walk_aliased_vdefs): Likewise.
13466         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13467         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13468         (detect_type_change_from_memory_writes): Check if entry was reached.
13469
13470 2014-07-08  Richard Biener  <rguenther@suse.de>
13471
13472         PR tree-optimization/61681
13473         * tree-ssa-structalias.c (find_what_var_points_to): Expand
13474         NONLOCAL inside ESCAPED.
13475
13476 2014-07-08  Richard Biener  <rguenther@suse.de>
13477
13478         PR tree-optimization/61680
13479         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13480         Handle properly all read-write dependences with group accesses.
13481
13482 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
13483
13484         PR tree-optimization/61576
13485         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13486         block containing reduction statement is predecessor of phi basi block.
13487
13488 2014-07-08  Marek Polacek  <polacek@redhat.com>
13489
13490         PR c/60226
13491         * fold-const.c (round_up_loc): Change the parameter type.
13492         Remove assert.
13493         * fold-const.h (round_up_loc): Adjust declaration.
13494         * stor-layout.c (finalize_record_size): Check for too large types.
13495
13496 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
13497
13498         * symtab.c: Include calls.h.
13499         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13500
13501 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
13502
13503         * config/rs6000/rs6000.c (output_vec_const_move): Handle
13504         little-endian code generation.
13505         * config/rs6000/spe.md (spe_evmergehi): Rename to...
13506         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
13507         (spe_evmergehilo): Rename to...
13508         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
13509         (spe_evmergelo): Rename to...
13510         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
13511         (spe_evmergelohi): Rename to...
13512         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
13513         (spe_evmergehi, spe_evmergehilo): New expanders.
13514         (spe_evmergelo, spe_evmergelohi): Likewise.
13515         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13516         (*frob_tf_ti): Likewise.
13517         (*frob_<mode>_di_2): Likewise.
13518         (*frob_tf_di_8_2): Likewise.
13519         (*frob_di_<mode>): Likewise.
13520         (*frob_ti_tf): Likewise.
13521         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13522         (*frob_ti_<mode>_8_2): Likewise.
13523         (*frob_ti_tf_2): Likewise.
13524         (mov_si<mode>_e500_subreg0): Rename to...
13525         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
13526         endianness only.
13527         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13528         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13529         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
13530         the big endianness only.
13531         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13532         (*mov_si<mode>_e500_subreg0_2): Rename to...
13533         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
13534         big big endianness only.
13535         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13536         (*mov_si<mode>_e500_subreg4): Rename to...
13537         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
13538         endianness only.
13539         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13540         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13541         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
13542         the big endianness only.
13543         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13544         pattern.
13545         (*mov_si<mode>_e500_subreg4_2): Rename to...
13546         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
13547         endianness only.
13548         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13549         (*mov_sitf_e500_subreg8): Rename to...
13550         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
13551         endianness only.
13552         (*mov_sitf_e500_subreg8_le): New instruction pattern.
13553         (*mov_sitf_e500_subreg8_2): Rename to...
13554         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
13555         endianness only.
13556         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13557         (*mov_sitf_e500_subreg12): Rename to...
13558         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
13559         endianness only.
13560         (*mov_sitf_e500_subreg12_le): New instruction pattern.
13561         (*mov_sitf_e500_subreg12_2): Rename to...
13562         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
13563         endianness only.
13564         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13565
13566 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
13567
13568         * asan.c (instrument_strlen_call): Do not instrument first byte
13569         in strlen if already instrumented.
13570
13571 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13572
13573         * config/arm/arm.opt (mwords-little-endian): Delete.
13574         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13575         of TARGET_LITTLE_WORDS.
13576         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13577         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13578         warning.
13579         * doc/invoke.texi: Remove references to -mwords-little-endian.
13580
13581 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
13582
13583         * expmed.c (struct init_expmed_rtl): Change all fields but
13584         pow2 and cint from struct rtx_def to rtx.
13585         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13586         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
13587         at the end again.
13588
13589 2014-07-06  Marek Polacek  <polacek@redhat.com>
13590
13591         PR c/6940
13592         * doc/invoke.texi: Document -Wsizeof-array-argument.
13593
13594 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
13595
13596         * wide-int.h (wide_int_storage): Change declaration from struct
13597         to class.
13598
13599 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
13600
13601         * cgraph.c (cgraph_create_indirect_edge): Update call of
13602         get_polymorphic_call_info.
13603         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13604         (possible_polymorphic_call_targets): Add parameter call.
13605         (decl_maybe_in_construction_p): New predicate.
13606         (get_polymorphic_call_info): Add parameter call;
13607         use decl_maybe_in_construction_p.
13608         * gimple-fold.c (fold_gimple_assign): Update use of
13609         possible_polymorphic_call_targets.
13610         (gimple_fold_call): Likewise.
13611         * ipa-prop.c: Inlcude calls.h
13612         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13613         (param_type_may_change_p): New predicate.
13614         (detect_type_change_from_memory_writes): Break out from ...
13615         (detect_type_change): ... this one; use param_type_may_change_p.
13616         (detect_type_change_ssa): Use param_type_may_change_p.
13617         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13618
13619 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
13620
13621         PR target/49423
13622         * config/arm/arm-protos.h (arm_legitimate_address_p,
13623         arm_is_constant_pool_ref): Add prototypes.
13624         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13625         (arm_is_constant_pool_ref) New function.
13626         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13627         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13628         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13629         operand. Remove pool_range and neg_pool_range attributes.
13630         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13631         pool_range and neg_pool_range attributes.
13632         * config/arm/constraints.md (Uh): New constraint.
13633         (Uq): Don't allow constant pool references.
13634
13635 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
13636
13637         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13638         (move_lo_quad_internal_be_<mode>): Likewise.
13639         (move_lo_quad_<mode>): Convert to define_expand.
13640         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13641         (aarch64_simd_move_hi_quad_be_<mode>): New.
13642         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13643         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13644         (aarch64_combinez_be<mode>): New.
13645         (aarch64_combine<mode>): Convert to define_expand.
13646         (aarch64_combine_internal<mode>): New.
13647         (aarch64_simd_combine<mode>): Remove bogus RTL description.
13648
13649 2014-07-04  Tom de Vries  <tom@codesourcery.com>
13650
13651         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13652         combination of earlyclobber and read/write modifiers.
13653
13654 2014-07-04  Tom de Vries  <tom@codesourcery.com>
13655
13656         * config/aarch64/aarch64-simd.md
13657         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13658
13659 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
13660
13661         PR target/61714
13662         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13663
13664 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
13665
13666         PR middle-end/61654
13667         * cgraphunit.c (expand_thunk): Call free_dominance_info.
13668
13669         PR tree-optimization/61684
13670         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13671         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13672
13673 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13674             Kito Cheng  <kito@0xlab.org>
13675             Monk Chiang  <sh.chiang04@gmail.com>
13676
13677         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13678         (nds32_symbol_load_store_p): Move to ...
13679         (nds32_fp_as_gp_check_available): Move to ...
13680         * config/nds32/nds32-fp-as-gp.c: ... here.
13681         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13682         extern declaration.
13683
13684 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13685             Kito Cheng  <kito@0xlab.org>
13686             Monk Chiang  <sh.chiang04@gmail.com>
13687
13688         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13689         (nds32_expand_store_multiple): Move to ...
13690         (nds32_expand_movmemqi): Move to ...
13691         * config/nds32/nds32-memory-manipulation.c: ... here.
13692
13693 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13694             Kito Cheng  <kito@0xlab.org>
13695             Monk Chiang  <sh.chiang04@gmail.com>
13696
13697         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13698         (nds32_output_casesi_pc_relative): Move to ...
13699         (nds32_output_casesi): Move to ...
13700         (nds32_mem_format): Move to ...
13701         (nds32_output_16bit_store): Move to ...
13702         (nds32_output_16bit_load): Move to ...
13703         (nds32_output_32bit_store): Move to ...
13704         (nds32_output_32bit_load): Move to ...
13705         (nds32_output_32bit_load_s): Move to ...
13706         (nds32_output_stack_push): Move to ...
13707         (nds32_output_stack_pop): Move to ...
13708         * config/nds32/nds32-md-auxiliary.c: ... here.
13709
13710 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13711             Ling-Hua Tseng  <uranus@tinlans.org>
13712
13713         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13714         the purpose of this file.
13715
13716 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13717             Kito Cheng  <kito@0xlab.org>
13718             Monk Chiang  <sh.chiang04@gmail.com>
13719
13720         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13721         (nds32_address_cost): Move implementation to ...
13722         * config/nds32/nds32-cost.c: ... here.
13723         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13724         (nds32_address_cost_impl): Declare.
13725
13726 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13727             Kito Cheng  <kito@0xlab.org>
13728             Monk Chiang  <sh.chiang04@gmail.com>
13729
13730         * config/nds32/nds32.c
13731         (nds32_consecutive_registers_load_store_p): Move to ...
13732         (nds32_valid_multiple_load_store): Move to ...
13733         (nds32_valid_stack_push_pop): Move to ...
13734         (nds32_can_use_bclr_p): Move to ...
13735         (nds32_can_use_bset_p): Move to ...
13736         (nds32_can_use_btgl_p): Move to ...
13737         (nds32_can_use_bitci_p): Move to ...
13738         * config/nds32/nds32-predicates.c: ... here.
13739
13740 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13741             Kito Cheng  <kito@0xlab.org>
13742             Monk Chiang  <sh.chiang04@gmail.com>
13743
13744         * config/nds32/nds32.c
13745         (nds32_expand_builtin_null_ftype_reg): Move to ...
13746         (nds32_expand_builtin_reg_ftype_imm): Move to ...
13747         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13748         (nds32_init_builtins): Move implementation to ...
13749         (nds32_expand_builtin): Move implementation to ...
13750         * config/nds32/nds32-intrinsic.c: ... here.
13751         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13752         (nds32_expand_builtin_impl): Declare.
13753
13754 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13755             Kito Cheng  <kito@0xlab.org>
13756             Monk Chiang  <sh.chiang04@gmail.com>
13757
13758         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13759         (nds32_emit_section_tail_template): Move to ...
13760         (nds32_emit_isr_jmptbl_section): Move to ...
13761         (nds32_emit_isr_vector_section): Move to ...
13762         (nds32_emit_isr_reset_conten): Move to ...
13763         (nds32_check_isr_attrs_conflict): Move to ...
13764         (nds32_construct_isr_vectors_information): Move to ...
13765         (nds32_asm_file_start): Move implementation to ...
13766         (nds32_asm_file_end): Move implementation to ...
13767         * config/nds32/nds32-isr.c: ... here.
13768         * config/nds32/nds32-protos.h
13769         (nds32_check_isr_attrs_conflict): Declare.
13770         (nds32_construct_isr_vectors_information): Declare.
13771         (nds32_asm_file_start_for_isr): Declare.
13772         (nds32_asm_file_end_for_isr): Declare.
13773
13774 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13775             Kito Cheng  <kito@0xlab.org>
13776             Monk Chiang  <sh.chiang04@gmail.com>
13777
13778         * config.gcc (nds32*): Add new modules to extra_objs.
13779         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13780         (nds32be-*-*): Likewise.
13781         * config/nds32/nds32-cost.c: New file.
13782         * config/nds32/nds32-fp-as-gp.c: New file.
13783         * config/nds32/nds32-intrinsic.c: New file.
13784         * config/nds32/nds32-isr.c: New file.
13785         * config/nds32/nds32-md-auxiliary.c: New file.
13786         * config/nds32/nds32-memory-manipulation.c: New file.
13787         * config/nds32/nds32-pipelines-auxiliary.c: New file.
13788         * config/nds32/nds32-predicates.c: New file.
13789         * config/nds32/t-nds32: New file.
13790
13791 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
13792
13793         PR tree-optimization/61682
13794         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13795         using cases and when one of the operands is equal to 1.
13796
13797 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
13798
13799         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13800         ashr<mode>3): Correct mode of operands[2].
13801         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13802         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13803         Correct mode of operands[2].  Fix split condition.
13804
13805 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
13806
13807         * arm.md (arch): Add armv6_or_vfpv3.
13808         (arch_enabled): Add test for the above.
13809         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13810         on VFP9.
13811         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13812
13813 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
13814
13815         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13816         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13817         HWI 1 and negate the unsigned value.
13818         * expmed.c (expand_sdiv_pow2): For modes wider than word always
13819         use AND instead of shift.
13820         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13821
13822 2014-07-03  Marek Polacek  <polacek@redhat.com>
13823
13824         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13825         (-fsanitize=float-divide-by-zero): Move to the table with
13826         -fsanitize=undefined suboptions.
13827         (-fsanitize=float-cast-overflow): Likewise.
13828
13829 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
13830
13831         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13832         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13833         endianness.
13834
13835 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13836
13837         * loop-invariant.c (struct invariant): Add a new member: eqno;
13838         (find_identical_invariants): Update eqno;
13839         (create_new_invariant): Init eqno;
13840         (get_inv_cost): Compute comp_cost with eqno;
13841
13842 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
13843
13844         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13845         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13846         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13847         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13848         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13849
13850 2014-07-02  Christian Bruel  <christian.bruel@st.com>
13851
13852         PR target/29349
13853         PR target/53513
13854         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13855         (make_preds_opaque): Delete.
13856         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13857         (commit_mode_sets): New function.
13858         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13859         Process all modes at once.
13860         * basic-block.h (pre_edge_lcm_avs): Declare.
13861         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13862         Call clear_aux_for_edges. Fix comments.
13863         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13864         (pre_edge_rev_lcm): Idem.
13865         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13866         parameter.
13867         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13868         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13869         Idem.
13870         * config/i386/i386.c (x96_emit_mode_set): Idem.
13871         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13872         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
13873         (fpscr_toggle) Disallow from delay slot.
13874         * target.def (emit_mode_set): Add prev_mode parameter.
13875         * doc/tm.texi: Regenerate.
13876
13877 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13878
13879         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13880         variable i.
13881
13882 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
13883
13884         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13885         vtable_pointer_value_to_vtable): Constify.
13886         (contains_polymorphic_type_p): Declare.
13887         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13888         vtable_pointer_value_to_vtable): Constify.
13889         (contains_polymorphic_type_p): New predicate.
13890         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13891         polymorphic types.
13892         (ipa_set_ancestor_jf): Likewise.
13893         (detect_type_change): Return false in easy cases.
13894         (compute_complex_assign_jump_func): Require type to contain
13895         polymorphic type.
13896         (compute_known_type_jump_func): Likewise.
13897
13898 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
13899
13900         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13901         Remove.
13902         (type_in_anonymous_namespace_p): Constify argument.
13903         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13904         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13905         (main_odr_variant): New function.
13906         (hash_type_name): Make static; update assert; do not ICE on
13907         non-records.
13908         (types_same_for_odr): Bring here from tree.c; simplify and remove
13909         old structural comparing code that doesn't work for templates.
13910         (odr_hasher::equal): Update assert.
13911         (add_type_duplicate): Return true when bases should be computed;
13912         replace incomplete loader by complete; do not output duplicated
13913         warnings; do not ICE on non-records; set odr_violated flag.
13914         (get_odr_type): Be ready to replace incomplete type by complete
13915         one; work on ODR variants instead of main variants; reorder item
13916         in array so bases have still smaller indexes.
13917         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13918         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13919
13920 2014-07-01  Cary Coutant  <ccoutant@google.com>
13921
13922         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13923         lookup.
13924         (resolve_addr_in_expr): When replacing the rtx in a location list
13925         entry, get a new address table entry.
13926         (dwarf2out_finish): Call index_location_lists even if there are no
13927         addr_index_table entries yet.
13928
13929 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
13930
13931         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13932         change for not being obvious.
13933
13934 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
13935
13936         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13937         unused argument.
13938
13939 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13940
13941         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13942         (vcagt_f64): Likewise.
13943         (vcale_f64): Likewise.
13944         (vcaled_f64): Likewise.
13945         (vcales_f32): Likewise.
13946         (vcalt_f64): Likewise.
13947         (vcaltd_f64): Likewise.
13948         (vcalts_f32): Likewise.
13949
13950 2014-07-01  Marek Polacek  <polacek@redhat.com>
13951
13952         * doc/invoke.texi: Document -Wint-conversion.
13953
13954 2014-07-01  Marek Polacek  <polacek@redhat.com>
13955
13956         PR c/58286
13957         * doc/invoke.texi: Document -Wincompatible-pointer-types.
13958
13959 2014-07-01  Martin Liska  <mliska@suse.cz>
13960
13961         IPA REF alias refactoring
13962         * cgraph.h (iterate_direct_aliases): New function.
13963         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13964         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13965         FOR_EACH_ALIAS added.
13966         (cgraph_for_node_and_aliases): Likewise.
13967         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13968         * ipa-inline.c (reset_edge_caches): Likewise.
13969         (update_caller_keys): Likewise.
13970         * trans-mem.c (ipa_tm_execute): Likewise.
13971         *varpool.c (varpool_analyze_node): Likewise.
13972         (varpool_for_node_and_aliases): Likewise.
13973         * ipa-ref.h (first_alias): New function.
13974         (last_alias): Likewise.
13975         (has_aliases_p): Likewise.
13976         * ipa-ref.c (ipa_ref::remove_reference): Removal function
13977         is sensitive to IPA_REF_ALIASes.
13978         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13979         are put at the beginning of the list.
13980         (symtab_node::iterate_direct_aliases): New function.
13981
13982 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
13983
13984         Revert:
13985         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13986         type is complete.
13987         (write_ts_type_common_tree_pointers): Do not stream fields not set
13988         for incomplete types; do not stream duplicated fields for variants;
13989         sanity check that variant and type match.
13990         (write_ts_type_non_common_tree_pointers): Likewise.
13991         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13992         TYPE_SIZE whether type is complete.
13993         (lto_input_ts_type_common_tree_pointers): Do same changes as in
13994         write_ts_type_common_tree_pointers
13995         (lto_input_ts_type_non_common_tree_pointers): Likewise.
13996
13997 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
13998
13999         * var-tracking.c (add_stores): Return instead of asserting if old
14000         and new values for conditional store are the same.
14001
14002 2014-06-30  Richard Henderson  <rth@redhat.com>
14003
14004         PR rtl-opt/61608
14005         PR target/39284
14006         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14007         the cfg if there were any changes.
14008         * passes.def: Revert move of peephole2 after reorder_blocks;
14009         move duplicate_computed_gotos before peephole2.
14010
14011 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
14012
14013         * except.c (emit_note_eh_region_end): New helper function.
14014         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14015         emit EH_REGION_END note.
14016         * jump.c (cleanup_barriers): Do not split a call and its
14017         corresponding CALL_ARG_LOCATION note.
14018
14019 2014-06-30  Jeff Law  <law@redhat.com>
14020
14021         PR tree-optimization/61607
14022         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14023         deeper into the SSA_NAME_VALUE chain.
14024
14025 2014-06-30  Marek Polacek  <polacek@redhat.com>
14026
14027         * convert.c (convert_to_integer): Don't instrument conversions if the
14028         function has no_sanitize_undefined attribute.
14029         * ubsan.c: Don't run the ubsan pass if the function has
14030         no_sanitize_undefined attribute.
14031
14032 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14033
14034         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14035         -fsanitize=undefined suboptions.
14036
14037 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
14038
14039         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14040         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14041         against bigendian and adjust indices.
14042
14043 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14044
14045         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
14046
14047 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14048
14049         PR target/61633
14050         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14051         Add alternative; make early clobber.  Adjust both split patterns
14052         to use operand 0 as the working register.
14053
14054 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14055
14056         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14057         as ira_object_id_map might be NULL, or 1.
14058
14059 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14060
14061         * loop-invariant.c (get_inv_cost): Handle register class.
14062         (gain_for_invariant): Check the register pressure of the inv
14063         and its overlapped register class, other than all.
14064
14065 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14066
14067         * doc/invoke.texi (Optimize Options): Fix descriptions of
14068         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14069
14070 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
14071
14072         * doc/extend.texi (Function Attributes): Update 'naked' attribute
14073         documentation.
14074
14075 2014-06-29  Tobias Grosser <tobias@grosser.es>
14076
14077         PR bootstrap/61650
14078         * graphite-isl-ast-to-gimple.c: Add missing guards.
14079
14080 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14081
14082         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14083         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14084         * flag-types.h: Add new enum fgraphite_generator.
14085         * graphite-isl-ast-to-gimple.c: New.
14086         * graphite-isl-ast-to-gimple.h: New.
14087         * graphite.c (graphite_transform_loops): Add choice of Graphite
14088         code generator, which depends on flag_graphite_code_gen.
14089
14090 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14091
14092         * graphite-dependences.c (subtract_commutative_associative_deps):
14093         Add NULL checking of the following variables: must_raw_no_source,
14094         may_raw_no_source, must_war_no_source, may_war_no_source,
14095         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14096         must_war, may_war, must_waw, may_waw.
14097
14098 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14099
14100         * graphite-clast-to-gimple.c: gloog is renamed to
14101         graphite_regenerate_ast_cloog.  gloog_error is renamed to
14102         graphite_regenerate_error.
14103         * graphite-clast-to-gimple.h: The definition of the struct
14104         bb_pbb_def is moved to graphite-htab.h.
14105         Add inclusion of the hash-table.h.
14106         * graphite-htab.h: The declaration of the function gloog is moved
14107         to graphite-clast-to-gimple.h and renamed to
14108         graphite_regenerate_ast_cloog.
14109         * graphite.c (graphite_transform_loops): gloog is renamed
14110         to graphite_regenerate_ast_cloog.
14111
14112 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14113
14114         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14115         type is complete.
14116         (write_ts_type_common_tree_pointers): Do not stream fields not set
14117         for incomplete types; do not stream duplicated fields for variants;
14118         sanity check that variant and type match.
14119         (write_ts_type_non_common_tree_pointers): Likewise.
14120         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14121         TYPE_SIZE whether type is complete.
14122         (lto_input_ts_type_common_tree_pointers): Do same changes as in
14123         write_ts_type_common_tree_pointers
14124         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14125
14126 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14127
14128         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14129
14130 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14131
14132         * tree-inline.c (remap_type_1): Do not duplicate fields
14133         that are shared in between type and its main variant.
14134
14135 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14136
14137         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14138         of the type.
14139         (ipa_set_ancestor_jf) Likewise.
14140         (check_stmt_for_type_change): Check that we work on main variant.
14141         (detect_type_change): Look into main variant.
14142         (compute_known_type_jump_func): Check that main variant has BINFO.
14143
14144 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14145
14146         * ipa-devirt.c (set_type_binfo): New function.
14147         (add_type_duplicate): Use it.
14148         (get_odr_type): Sanity check that binfos points to main variants.
14149         (get_class_context): Be sure the context's outer_type is main variant.
14150         (contains_type_p): Walk main variant.
14151         (get_polymorphic_call_info_for_decl): Set outer_type to be
14152         main variant.
14153         (get_polymorphic_call_info): Likewise.
14154         (possible_polymorphic_call_targets): Sanity check that we operate
14155         on main variant.
14156
14157 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14158
14159         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14160
14161 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14162
14163         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14164         accidental change due to wide-int branch merge.
14165
14166 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14167
14168         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14169         compressed debug support.
14170         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14171         * configure: Regenerate.
14172         * config.in: Regenerate.
14173         * common.opt (compressed_debug_sections): New enum.
14174         (gz, gz=): New options.
14175         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14176         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14177         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14178         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14179         LINK_COMPRESS_DEBUG_SPEC.
14180         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14181         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14182         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14183         (Debugging Options): Document -gz[=type].
14184
14185 2014-06-27  Martin Jambor  <mjambor@suse.cz>
14186
14187         PR ipa/61160
14188         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14189         args_to_skip, use those from node instead.  Copy args_to_skip and
14190         combined_args_to_skip from node to the new thunk.
14191         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14192         (cgraph_create_virtual_clone): Moved computation of
14193         combined_args_to_skip...
14194         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14195
14196 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
14197
14198         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14199         redundant diagnostic machinary.
14200
14201 2014-06-27  Richard Biener  <rguenther@suse.de>
14202
14203         * tree-ssa-math-opts.c (bswap_replace): Fix
14204         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14205
14206 2014-06-27  Martin Liska  <mliska@suse.cz>
14207
14208         * gimple.h (gimple_location_safe): New function introduced.
14209         * cgraphunit.c (walk_polymorphic_call_targets): Usage
14210         of gimple_location_safe replaces gimple_location.
14211         (gimple_fold_call): Likewise.
14212         * ipa-devirt.c (ipa_devirt): Likewise.
14213         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14214         * ipa.c (walk_polymorphic_call_targets): Likewise.
14215         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14216
14217 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
14218
14219         PR tree-optimization/57233
14220         PR tree-optimization/61299
14221         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14222         functions.
14223         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
14224         would be lowered to scalar shifts, check if corresponding
14225         shifts and vector BIT_IOR_EXPR are supported and don't lower
14226         or lower just to narrower vector type in that case.
14227         * expmed.c (expand_shift_1): Fix up handling of vector
14228         shifts and rotates.
14229
14230 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
14231
14232         PR target/61586
14233         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14234
14235 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
14236
14237         * doc/invoke.texi (-fsemantic-interposition): Document.
14238         * common.opt (fsemantic-interposition): New flag.
14239         * varasm.c (decl_replaceable_p): Use it.
14240
14241 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14242
14243         PR target/61542
14244         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14245         extraction other than index 3.
14246
14247 2014-06-26  Teresa Johnson  <tejohnson@google.com>
14248
14249         * doc/invoke.texi: Fix typo.
14250         * dumpfile.c: Add support for documented -fdump-* options
14251         optimized/missed/note/optall.
14252
14253 2014-06-26  Martin Jambor  <mjambor@suse.cz>
14254
14255         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14256         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14257         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14258         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14259         * opts.c (default_options_optimization): Set
14260         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14261         * doc/invoke.texi (allow-load-data-races)
14262         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14263         (allow-store-data-races): Document the new default.
14264
14265 2014-06-26  Martin Jambor  <mjambor@suse.cz>
14266
14267         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14268         renamed to ipa_impossible_devirt_target.  Fix typo.
14269         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14270         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14271         ipa_impossible_devirt_target.
14272
14273 2014-06-26  Richard Biener  <rguenther@suse.de>
14274
14275         PR tree-optimization/61607
14276         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14277         explaining why we restrict copies on loop depth.
14278         * tree-ssa-dom.c (cprop_operand): Remove restriction on
14279         on loop depth.
14280         (record_equivalences_from_phis): Instead add it here.
14281
14282 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
14283
14284         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14285         (LTO_WRAPPER_OBJS): New variable.
14286         (lto-wrapper$(exeext)): Use it.
14287         * collect2.c: Include "collect-utils.h".
14288         (verbose, debug): Remove variables.
14289         (at_file_supplied): No longer static.
14290         (tool_name): New variable.
14291         (do_wait, fork_execute, maybe_unlink): Don't declare.
14292         (tool_cleanup): No longer static.
14293         (notice): Remove function.
14294         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14295         fork_execute calls.
14296         (collect_wait, do_wait, collect_execute): Remove functions.
14297         (maybe_unlink): No longer static.
14298         * collect2.h (verbose, debug): Don't declare.
14299         (at_file_supplied): Declare.
14300         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
14301         changed.
14302         (collect_execute): Replace with implementation from collect2, plus a
14303         new arg use_atfile.  All callers changed.
14304         (collect_wait): Replace with implementation from collect2.
14305         (maybe_unlink_file): Remove function.
14306         (fork_execute): Replace with implementation from collect2, plus a
14307         new arg use_atfile.  All callers changed.
14308         (do_wait): Add call to utils_cleanup to the error path.
14309         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14310         (tool_cleanup): Adjust declarations.
14311         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14312         * tlink.c: Include "collect-utils.h".
14313         (tlink_execute): New arg use_atfile.  All callers changed.
14314         (tlink_init, tlink_execute): Remove declarations.
14315
14316         * collect-utils.c (save_temps): New variable.
14317         (do_wait): Use it instead of debug.  Use fatal_error.
14318         * collect-utils.h (save_temps): Declare.
14319         * collect2.c (verbose): Rename from vflag.  All uses changed.
14320         (tool_cleanup): New function, copied from collect_atexit.
14321         (collect_atexit, handler): Just call it.
14322         * collect2.h (verbose): Declaration renamed from vflag.
14323         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14324         debug.
14325
14326         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14327         (lto-wrapper$(exeext)): Link with collect-utils.o.
14328         * collect-utils.c: New file.
14329         * collect-utils.h: New file.
14330         * lto-wrapper.c: Include "collect-utils.h".
14331         (args_name): Delete variable.
14332         (tool_name): New variable.
14333         (tool_cleanup): New function.
14334         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
14335         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14336         (fork_execute): Remove functions.
14337
14338 2014-06-26  Nick Clifton  <nickc@redhat.com>
14339
14340         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14341
14342         * doc/extend.texi (Function Attributes): Fix typo in description
14343         of RX vector attribute.
14344
14345 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14346
14347         * config.gcc (supported_defaults): Error when passing either
14348         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14349
14350 2014-06-26  Richard Biener  <rguenther@suse.de>
14351
14352         * tree-ssa-dom.c (cprop_operand): Remove restriction on
14353         propagating volatile pointers.
14354
14355 2014-06-26  Richard Biener  <rguenther@suse.de>
14356
14357         PR tree-optimization/61607
14358         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14359         loop if we redirected its latch edge.
14360         (thread_block_1): Do not cancel loops prematurely.
14361
14362 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
14363
14364         * toplev.c (backend_init_target): Move init_emit_regs and
14365         init_regs to...
14366         (backend_init) ... here; skip ira_init_once and backend_init_target.
14367         (target_reinit) ... and here; clear
14368         this_target_rtl->lang_dependent_initialized.
14369         (lang_dependent_init_target): Clear
14370         this_target_rtl->lang_dependent_initialized;
14371         break out rtl initialization to ...
14372         (initialize_rtl): ... here; call also backend_init_target
14373         and ira_init_once.
14374         * toplev.h (initialize_rtl): New function.
14375         * function.c: Include toplev.h
14376         (init_function_start): Call initialize_rtl.
14377         * rtl.h (target_rtl): Add target_specific_initialized,
14378         lang_dependent_initialized.
14379
14380 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
14381             Jakub Jelinek  <jakub@redhat.com>
14382
14383         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14384
14385 2014-06-25  Tom de Vries  <tom@codesourcery.com>
14386
14387         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14388
14389 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14390
14391         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14392         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14393         Issue a strict overflow warning if appropriate.
14394
14395 2014-06-25  Martin Liska  <mliska@suse.cz>
14396
14397         IPA REF refactoring
14398         * Makefile.in: Removed header file (ipa-ref-inline.h).
14399         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14400         called.
14401         (cgraph_speculative_call_info): Likewise.
14402         (cgraph_for_node_thunks_and_aliases): Likewise.
14403         (cgraph_for_node_and_aliases): Likewise.
14404         (verify_cgraph_node): Likewise.
14405         * cgraph.h: Batch of IPA REF functions become member functions of
14406         symtab_node: add_reference, maybe_add_reference, clone_references,
14407         clone_referring, clone_reference, find_reference,
14408         remove_stmt_references, remove_all_references,
14409         remove_all_referring, dump_references, dump_referring,
14410         has_alias_p, iterate_reference, iterate_referring.
14411         * cgraphbuild.c (record_reference): New IPA REF function used.
14412         (record_type_list): Likewise.
14413         (record_eh_tables): Likewise.
14414         (mark_address): Likewise.
14415         (mark_load): Likewise.
14416         (mark_store): Likewise.
14417         (pass_build_cgraph_edges): Likewise.
14418         (rebuild_cgraph_edge): Likewise.
14419         (cgraph_rebuild_references): Likewise.
14420         (pass_remove_cgraph_callee_edges): Likewise.
14421         * cgraphclones.c (cgraph_clone_node): Likewise.
14422         (cgraph_create_virtual_clone): Likewise.
14423         (cgraph_materialize_clone): Likewise.
14424         (cgraph_materialize_all_clones): Likewise.
14425         * cgraphunit.c (cgraph_reset_node): Likewise.
14426         (cgraph_reset_node): Likewise.
14427         (analyze_function): Likewise.
14428         (assemble_thunks_and_aliases): Likewise.
14429         (expand_function): Likewise.
14430         * ipa-comdats.c (propagate_comdat_group): Likewise.
14431         (enqueue_references): Likewise.
14432         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14433         (create_specialized_node): Likewise.
14434         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14435         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14436         * ipa-inline.c (reset_edge_caches): Likewise.
14437         (update_caller_keys): Likewise.
14438         (execute): Likewise.
14439         * ipa-prop.c (remove_described_reference): Likewise.
14440         (propagate_controlled_uses): Likewise.
14441         (ipa_edge_duplication_hook): Likewise.
14442         (ipa_modify_call_arguments): Likewise.
14443         * ipa-pure-const.c (propagate_pure_const): Likewise.
14444         * ipa-ref-inline.h: Header file removed, functions moved
14445         to symtab_node class.
14446         * ipa-ref.c (remove_reference): New class member function.
14447         (cannot_lead_to_return): New class member function.
14448         (referring_ref_list): Likewise.
14449         (referred_ref_list): Likewise.
14450         Rest of functions moved to symtab_node class.
14451         * ipa-ref.h: New member functions remove_reference,
14452         cannot_lead_to_return, referring_ref_list, referred_ref_list added
14453         to ipa_ref class.
14454         ipa_ref_list class has new member functions: first_reference,
14455         first_referring, clear, nreferences.
14456         * ipa-reference.c (analyze_function): New IPA REF function used.
14457         (write_node_summary_p): Likewise.
14458         (ipa_reference_write_optimization_summary): Likewise.
14459         * ipa-split.c (split_function): Likewise.
14460         * ipa-utils.c (ipa_reverse_postorder): Likewise.
14461         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14462         (function_and_variable_visibility): Likewise.
14463         * ipa.c (has_addr_references_p): Likewise.
14464         (process_references): Argument type changed.
14465         (symtab_remove_unreachable_nodes): New IPA REF function used.
14466         (process_references): Likewise.
14467         (set_writeonly_bit): Likewise.
14468         * lto-cgraph.c: Implementation of new symtab_node member functions
14469         that uses new IPA REF functions.
14470         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14471         function used.
14472         * lto-streamer-out.c (output_symbol_p): Likewise.
14473         * lto-streamer.h (referenced_from_this_partition_p): Argument type
14474         changed.
14475         * symtab.c: Implementation of new IPA REF API.
14476         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14477         (ipa_tm_create_version): Likewise.
14478         (ipa_tm_execute): Likewise.
14479         * tree-emutls.c (gen_emutls_addr): Likewise.
14480         * tree-inline.c (copy_bb): Likewise.
14481         (delete_unreachable_blocks_update_callgraph): Likewise.
14482         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14483         (varpool_for_node_and_aliases): Likewise.
14484
14485 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
14486
14487         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14488
14489 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
14490
14491         PR bootstrap/61598
14492         * fold-const.c (fold_checksum_tree): Use a hash_table of const
14493         tree_node * instead of tree_node *.
14494         (fold): Adjust.
14495         (print_fold_checksum): Likewise.
14496         (fold_check_failed): Likewise.
14497         (debug_fold_checksum): Likewise.
14498         (fold_build1_stat_loc): Likewise.
14499         (fold_build2_stat_loc): Likewise.
14500         (fold_build3_stat_loc): Likewise.
14501         (fold_build_call_array_loc): Likewise.
14502
14503 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
14504
14505         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14506         implementation with call to...
14507         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14508         function.
14509         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14510         Declare.
14511
14512 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
14513
14514         PR tree-optimization/57742
14515         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14516         after replacing the statement.
14517
14518 2014-06-25  Nick Clifton  <nickc@redhat.com>
14519
14520         * config/v850/v850.c (GHS_default_section_names): Change to const
14521         char * type.
14522         (GHS_current_section_names): Likewise.
14523         (v850_insert_attributes): Do not build strings, just assign the
14524         names directly.  Change the type of 'chosen_section' to const
14525         char*.
14526         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14527         directly to the array entry.
14528         * config/v850/v850.h (GHS_default_section_names): Change to const
14529         char * type.
14530         (GHS_current_section_names): Likewise.
14531
14532 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
14533
14534         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14535         (LANG_HOOKS_DECLS): Add it.
14536         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14537         has correct type.
14538         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14539         * langhooks.h (struct lang_hooks_for_decls): Add
14540         omp_clause_linear_ctor hook.
14541         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14542         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
14543         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
14544         combined simd loop use omp_clause_linear_ctor hook.
14545
14546 2014-06-24  Cong Hou  <congh@google.com>
14547
14548         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14549         pattern recognition.
14550         (type_conversion_p): PROMOTION is true if it's a type promotion
14551         conversion, and false otherwise.  Return true if the given expression
14552         is a type conversion one.
14553         * tree-vectorizer.h: Adjust the number of patterns.
14554         * tree.def: Add SAD_EXPR.
14555         * optabs.def: Add sad_optab.
14556         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14557         * expr.c (expand_expr_real_2): Likewise.
14558         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14559         * gimple.c (get_gimple_rhs_num_ops): Likewise.
14560         * optabs.c (optab_for_tree_code): Likewise.
14561         * tree-cfg.c (estimate_operator_cost): Likewise.
14562         * tree-ssa-operands.c (get_expr_operands): Likewise.
14563         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14564         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14565         * doc/generic.texi: Add document for SAD_EXPR.
14566         * doc/md.texi: Add document for ssad and usad.
14567
14568 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14569
14570         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14571         qualification in cast.
14572
14573 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
14574
14575         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14576         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14577         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14578         (tree_function_decl): ... here.
14579         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14580         streaming of vindex to ...
14581         (write_ts_function_decl_tree_pointers): ... here.
14582         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14583         Do not stream DECL_VINDEX.
14584         (lto_input_ts_function_decl_tree_pointers): Stream it here.
14585
14586 2014-06-24  Catherine Moore  <clm@codesourcery.com>
14587             Sandra Loosemore  <sandra@codesourcery.com>
14588
14589         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14590         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14591         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14592
14593 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
14594
14595         * doc/invoke.texi (Warning Options): Remove duplicated
14596         -Wmaybe-uninitialized.
14597
14598 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
14599
14600         PR tree-optimization/57742
14601         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14602         (handle_builtin_malloc, handle_builtin_memset): New functions.
14603         (strlen_optimize_stmt): Call them.
14604         * passes.def: Move strlen after loop+dom but before vrp.
14605
14606 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
14607
14608         PR target/61570
14609         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14610         model family 6 CPU with has_longmode never use a CPU without
14611         64-bit support.
14612
14613 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14614
14615         PR target/61570
14616         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14617         the last change.
14618
14619 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14620
14621         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14622         * dominance.c (iterate_fix_dominators): Use hash_map instead of
14623         pointer_map.
14624         * hash-map.h: New file.
14625         * ipa-comdats.c: Use hash_map instead of pointer_map.
14626         * ipa.c: Likewise.
14627         * lto-section-out.c: Adjust.
14628         * lto-streamer.h: Replace pointer_map with hash_map.
14629         * symtab.c (verify_symtab): Likewise.
14630         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14631         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14632         * tree-streamer.h: Likewise.
14633         * tree-streamer.c: Adjust.
14634         * pointer-set.h: Remove pointer_map.
14635
14636 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14637
14638         * hash-table.h: Add a template arg to choose between storing values
14639         and storing pointers to values, and then provide partial
14640         specializations for both.
14641         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14642         should store, not the type values should point to.
14643         * tree-into-ssa.c (var_info_hasher): Likewise.
14644         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14645         * tree-complex.c: Adjust.
14646         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14647         table instead of int_tree_map *.
14648         * tree-parloops.c: Adjust.
14649         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14650         type is being stored.
14651         * tree-vectorizer.c: Adjust.
14652
14653 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14654
14655         * hash-table.h: Remove a layer of indirection from hash_table so that
14656         it contains the hash table's data instead of a pointer to the data.
14657         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14658         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14659         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14660         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14661         fold-const.c, gcse.c, ggc-common.c,
14662         gimple-ssa-strength-reduction.c, gimplify.c,
14663         graphite-clast-to-gimple.c, graphite-dependences.c,
14664         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14665         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14666         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14667         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14668         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14669         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14670         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14671         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14672         tree-ssa-live.c, tree-ssa-loop-im.c,
14673         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14674         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14675         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14676         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14677         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14678         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14679         vtable-verify.c, vtable-verify.h: Adjust.
14680
14681 2014-06-24  Richard Biener  <rguenther@suse.de>
14682
14683         PR tree-optimization/61572
14684         * tree-ssa-sink.c (statement_sink_location): Do not sink
14685         loads from hard registers.
14686
14687 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
14688
14689         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14690         not mentioned in clauses use private clause if the iterator is
14691         declared in #pragma omp for simd, and when adding lastprivate
14692         instead, add it to the outer #pragma omp for too.  Diagnose
14693         if the variable is private in outer context.  For simd collapse > 1
14694         loops, replace all iterators with temporaries.
14695         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14696         same even in collapse > 1 loops.
14697
14698         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14699         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14700         non-NULL.
14701         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14702         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14703         non-NULL.
14704         (gimplify_adjust_omp_clauses): Likewise.
14705         * omp-low.c (lower_rec_simd_input_clauses,
14706         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14707         safelen the same as safelen(1).
14708         * tree-nested.c (convert_nonlocal_omp_clauses,
14709         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
14710         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14711         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14712         Fixup handling of GIMPLE_OMP_TARGET.
14713         (convert_tramp_reference_stmt, convert_gimple_call): Handle
14714         GIMPLE_OMP_TARGET.
14715
14716 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
14717
14718         PR tree-optimization/61554
14719         * tree-ssa-propagate.c: Include "bitmap.h".
14720         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14721         properly update constructor/destructor.
14722         (substitute_and_fold_dom_walker::before_dom_children):
14723         Remove call to gimple_purge_dead_eh_edges, add bb->index to
14724         need_eh_cleaup instead.
14725         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14726         need_eh_cleanup.
14727
14728 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
14729
14730         * varpool.c (dump_varpool_node): Dump used_by_single_function.
14731         * tree-pass.h (make_pass_ipa_single_use): New pass.
14732         * cgraph.h (used_by_single_function): New flag.
14733         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14734         Stream it.
14735         * passes.def (pass_ipa_single_use): Scedule.
14736         * ipa.c (BOTTOM): New macro.
14737         (meet): New function
14738         (propagate_single_user): New function.
14739         (ipa_single_use): New function.
14740         (pass_data_ipa_single_use): New pass.
14741         (pass_ipa_single_use): New pass.
14742         (pass_ipa_single_use::gate): New gate.
14743         (make_pass_ipa_single_use): New function.
14744
14745 2014-06-23  Kai Tietz  <ktietz@redhat.com>
14746
14747         PR target/39284
14748         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14749         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14750
14751 2014-06-23  Richard Biener  <rguenther@suse.de>
14752
14753         * tree-ssa-loop.c (gate_loop): New function.
14754         (pass_tree_loop::gate): Call it.
14755         (pass_data_tree_no_loop, pass_tree_no_loop,
14756         make_pass_tree_no_loop): New.
14757         * tree-vectorizer.c: Include tree-scalar-evolution.c
14758         (pass_slp_vectorize::execute): Initialize loops and SCEV if
14759         required.
14760         (pass_slp_vectorize::clone): New method.
14761         * timevar.def (TV_TREE_NOLOOP): New.
14762         * tree-pass.h (make_pass_tree_no_loop): Declare.
14763         * passes.def (pass_tree_no_loop): New pass group with
14764         SLP vectorizer.
14765
14766 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
14767
14768         PR target/61570
14769         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14770         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14771
14772 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
14773
14774         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14775         "yes" where needed.
14776
14777 2014-06-23  Alan Modra  <amodra@gmail.com>
14778
14779         PR bootstrap/61583
14780         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14781         to zero on debug statements.
14782
14783 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
14784
14785         PR target/60825
14786         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14787         Ignore third operand if present by marking qualifier_internal.
14788
14789         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14790
14791         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14792         vector extension.
14793         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14794         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14795         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14796         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14797         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14798         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14799         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14800         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14801         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14802         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14803         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14804         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14805         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14806         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14807         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14808         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14809         logic in GCC vector extensions
14810
14811         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14812         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14813         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14814         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14815         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14816         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14817         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14818         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14819         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14820         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14821
14822         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14823
14824         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14825         extensions.
14826
14827         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14828         (vget_low_s64): Use __GET_LOW macro.
14829         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14830         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14831         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14832         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14833         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14834
14835         (vcombine_s64): Use GCC vector extensions; remove cast.
14836         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14837         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14838         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14839         Fix type signature; remove cast.
14840
14841 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
14842
14843         PR target/60825
14844         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14845         V1DFmode.
14846         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14847         add V1DFmode
14848         (BUILTIN_VD1): New.
14849         (BUILTIN_VD_RE): Remove.
14850         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14851         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14852         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14853         variant but not df.
14854         (vreinterpretv1df*, vreinterpret*v1df): New.
14855         (vreinterpretdf*, vreinterpret*df): Remove.
14856         * config/aarch64/aarch64-simd.md (aarch64_create,
14857         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14858         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14859         (VD1): New.
14860         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14861         (vcreate_f64): Remove cast, use v1df builtin.
14862         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14863         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14864         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14865         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14866         vmov_n_f64, vst1_f64): Use gcc vector extensions.
14867         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14868         add range check using __builtin_aarch64_im_lane_boundsi.
14869         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14870         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14871         type signature, use gcc vector extensions.
14872         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14873         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14874         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14875         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14876         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14877         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14878         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14879         vreinterpret_u64_f64): Use v1df builtin not df.
14880
14881 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
14882
14883         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14884         vector registers.
14885
14886 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
14887
14888         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14889         priority directly.
14890
14891 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14892
14893         * loop-invariant.c (pre_check_invariant_p): New function.
14894         (find_invariant_insn): Call pre_check_invariant_p.
14895
14896 2014-06-22  Richard Henderson  <rth@redhat.com>
14897
14898         PR target/61565
14899         * compare-elim.c (struct comparison): Add eh_note.
14900         (find_comparison_dom_walker::before_dom_children): Don't eliminate
14901         a redundant comparison in a different EH region.  Purge EH edges if
14902         necessary.
14903
14904 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14905
14906         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14907         (var_shift): Use it.
14908         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14909         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14910         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14911         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14912         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14913         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14914         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14915         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14916         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14917         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14918         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14919         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14920         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14921         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14922         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14923         *rotldi3_internal15be): Use the new attribute.  Merge register and
14924         integer alternatives.
14925
14926 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14927
14928         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14929         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14930         split, *ashrdi3_internal3 and split): Delete, merge into...
14931         (ashr<mode>3): New expander.
14932         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14933         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
14934
14935 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14936
14937         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14938         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14939         *rotldi3_internal3 and split): Delete, merge into...
14940         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14941         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
14942         Use "rotlw" extended mnemonic.
14943
14944 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14945
14946         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14947         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14948         and split, *ashldi3_internal3 and split): Delete, merge into...
14949         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14950         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
14951
14952 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14953
14954         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14955         (lshrsi3, two anonymous define_insns and define_splits,
14956         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14957         *lshrdi3_internal3 and split): Delete, merge into...
14958         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14959         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
14960
14961 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14962
14963         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14964         Remove "O" alternative.
14965
14966 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
14967
14968         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14969         (mips_move_from_gpr_cost): Likewise.
14970         (mips_register_move_cost): Update accordingly.
14971         (mips_secondary_reload_class): Remove name of in_p.
14972
14973 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
14974
14975         PR target/61503
14976         * config/i386/i386.md (x86_64_shrd, x86_shrd,
14977         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14978
14979 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14980
14981         * config/nios2/nios2.c: Include "builtins.h".
14982
14983 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
14984
14985         * cgraph.h (tls_model_names): New variable.
14986         * print-tree.c (print_node): Simplify.
14987         * varpool.c (tls_model_names): New variable.
14988         (dump_varpool_node): Output tls model.
14989
14990 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
14991
14992         * ipa-visibility.c (function_and_variable_visibility): Disable
14993         temporarily local aliases for some targets.
14994
14995 2014-06-20  Marek Polacek  <polacek@redhat.com>
14996
14997         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14998         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14999         into SANITIZE_UNDEFINED.
15000         * doc/invoke.texi: Describe -fsanitize=bounds.
15001         * gimplify.c (gimplify_call_expr): Add gimplification of internal
15002         functions created in the FEs.
15003         * internal-fn.c: Move "internal-fn.h" after "tree.h".
15004         (expand_UBSAN_BOUNDS): New function.
15005         * internal-fn.def (UBSAN_BOUNDS): New internal function.
15006         * internal-fn.h: Don't define internal functions here.
15007         * opts.c (common_handle_option): Add -fsanitize=bounds.
15008         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15009         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15010         * tree-core.h: Define internal functions here.
15011         (struct tree_base): Add ifn field.
15012         * tree-pretty-print.c: Include "internal-fn.h".
15013         (dump_generic_node): Handle functions without CALL_EXPR_FN.
15014         * tree.c (get_callee_fndecl): Likewise.
15015         (build_call_expr_internal_loc): New function.
15016         * tree.def (CALL_EXPR): Update description.
15017         * tree.h (CALL_EXPR_IFN): Define.
15018         (build_call_expr_internal_loc): Declare.
15019         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15020         types.
15021         (ubsan_type_descriptor): Change bool parameter to enum
15022         ubsan_print_style.  Adjust the code.  Add handling of
15023         UBSAN_PRINT_ARRAY.
15024         (ubsan_expand_bounds_ifn): New function.
15025         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15026         (ubsan_build_overflow_builtin): Likewise.
15027         (instrument_bool_enum_load): Likewise.
15028         (ubsan_instrument_float_cast): Likewise.
15029         * ubsan.h (enum ubsan_print_style): New enum.
15030         (ubsan_expand_bounds_ifn): Declare.
15031         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
15032
15033 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
15034
15035         * config/rs6000/rs6000.md: Append `DONE' to preparation
15036         statements of `bswap' pattern splitters.
15037
15038 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15039
15040         * target.def (call_fusage_contains_non_callee_clobbers): Update
15041         definition.
15042         * doc/tm.texi: Regenerate.
15043
15044 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15045             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15046
15047         PR sanitizer/61547
15048         * asan.c (instrument_strlen_call): Fixed instrumentation of
15049         trailing byte.
15050
15051 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15052
15053         PR ipa/61540
15054         * ipa-prop.c (impossible_devirt_target): New function.
15055         (try_make_edge_direct_virtual_call): Use it, also instead of
15056         asserting.
15057
15058 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15059             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15060
15061         PR sanitizer/61530
15062         * asan.c (build_check_stmt): Add condition.
15063
15064 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15065
15066         PR ipa/61211
15067         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15068         expanded clones.
15069
15070 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15071
15072         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15073         Update comments.
15074         (VCONQ): Make comment more helpful.
15075         (VCON): Delete.
15076         * config/aarch64/aarch64-simd.md
15077         (aarch64_sqdmulh_lane<mode>):
15078         Use VCOND for operands 2.  Update lane checking and flipping logic.
15079         (aarch64_sqrdmulh_lane<mode>): Likewise.
15080         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15081         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15082         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15083         attribute of operand 3 to VCOND.
15084         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15085         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15086         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15087         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15088         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15089         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15090         define_insn.
15091         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15092         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15093         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15094         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15095         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15096         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15097         operand to VCOND.  Update lane flipping and bounds checking logic.
15098         (aarch64_sqdmlal2_lane<mode>): Likewise.
15099         (aarch64_sqdmlsl_lane<mode>): Likewise.
15100         (aarch64_sqdmull_lane<mode>): Likewise.
15101         (aarch64_sqdmull2_lane<mode>): Likewise.
15102         (aarch64_sqdmlal_laneq<mode>):
15103         Replace VCON usage with VCONQ.
15104         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15105         (aarch64_sqdmlal2_laneq<mode>): Emit
15106         aarch64_sqdmlal2_laneq<mode>_internal insn.
15107         Replace VCON with VCONQ.
15108         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15109         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15110         (aarch64_sqdmull_laneq<mode>): Emit
15111         aarch64_sqdmull_laneq<mode>_internal insn.
15112         Replace VCON with VCONQ.
15113         (aarch64_sqdmull2_laneq<mode>): Emit
15114         aarch64_sqdmull2_laneq<mode>_internal insn.
15115         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15116         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15117         of 3rd argument to int16x4_t.
15118         (vqdmlalh_lane_s16): Likewise.
15119         (vqdmlslh_lane_s16): Likewise.
15120         (vqdmull_high_lane_s16): Likewise.
15121         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15122         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15123         (vqdmlsl_lane_s16): Likewise.
15124         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15125         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15126         (vqdmlals_lane_s32): Likewise.
15127         (vqdmlsls_lane_s32): Likewise.
15128         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15129         (vqdmulls_lane_s32): Likewise.
15130         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15131         (vqdmlsl_lane_s32): Likewise.
15132         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15133         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15134         (vqrdmulhh_lane_s16): Likewise.
15135         (vqdmlsl_high_lane_s16): Likewise.
15136         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15137         (vqdmlsl_high_lane_s32): Likewise.
15138         (vqrdmulhs_lane_s32): Likewise.
15139
15140 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15141
15142         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15143         get_call_reg_set_usage.
15144
15145 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15146
15147         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15148         it contains all call_used_regs.
15149
15150 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15151
15152         * final.c (collect_fn_hard_reg_usage): Add and use variable
15153         function_used_regs.
15154
15155 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15156
15157         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15158         (set_init_priority, get_init_priority, set_fini_priority,
15159         get_fini_priority): New methods.
15160         * tree.c (init_priority_for_decl): Remove.
15161         (init_ttree): Do not initialize init priority.
15162         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15163         (decl_priority_info): Remove.
15164         (decl_init_priority_insert): Rewrite.
15165         (decl_fini_priority_insert): Rewrite.
15166         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15167         tree_priority_map_marked_p): Remove.
15168         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15169         * lto-streamer-out.c (hash_tree): Do not hash priorities.
15170         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15171         not output priorities.
15172         (pack_ts_function_decl_value_fields): Likewise.
15173         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15174         not input priorities.
15175         (unpack_ts_function_decl_value_fields): Likewise.
15176         * symtab.c (symbol_priority_map): Declare.
15177         (init_priority_hash): Declare.
15178         (symtab_unregister_node): Unregister from priority hash, too.
15179         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15180         New methods.
15181         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15182         (symbol_priority_info): New function.
15183         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15184         New methods.
15185         * tree-core.h (tree_priority_map): Remove.
15186
15187 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
15188
15189         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15190         0xff to uint64_t before shifting it up.
15191
15192 2014-06-20  Julian Brown  <julian@codesourcery.com>
15193             Chung-Lin Tang  <cltang@codesourcery.com>
15194
15195         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15196         TARGET_THUMB1_ONLY. Add comments.
15197
15198 2014-06-19  Tom de Vries  <tom@codesourcery.com>
15199
15200         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15201         return type to void.
15202         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15203
15204 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15205
15206         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15207         as "move", from depends_on.
15208
15209 2014-06-19  Terry Guo  <terry.guo@arm.com>
15210
15211         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15212         stage.
15213
15214 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
15215
15216         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15217         Remove cr5.
15218         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
15219
15220 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15221
15222         PR target/61550
15223         * config/sh/sh.c (prepare_move_operands): Don't process TLS
15224         addresses here if reload in progress or completed.
15225
15226 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15227
15228         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15229         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15230         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15231         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15232         (mips_register_priority): New function that implements the target
15233         hook TARGET_REGISTER_PRIORITY.
15234         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15235         (mips_lra_p): Likewise for TARGET_LRA_P.
15236         (TARGET_REGISTER_PRIORITY): Define macro.
15237         (TARGET_SPILL_CLASS): Likewise.
15238         (TARGET_LRA_P): Likewise.
15239         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15240         classes.
15241         (REG_CLASS_NAMES): Likewise.
15242         (REG_CLASS_CONTENTS): Likewise.
15243         (BASE_REG_CLASS): Use M16_SP_REGS.
15244         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15245         New set attribute to enable alternatives depending on the register
15246         allocator used.
15247         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15248         (*lea64): Disable pattern for MIPS16.
15249         * config/mips/mips.opt (mlra): New option.
15250
15251 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15252
15253         * lra-constraints.c (base_to_reg): New function.
15254         (process_address): Use new function.
15255
15256 2014-06-18  Tom de Vries  <tom@codesourcery.com>
15257
15258         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15259         * config/aarch64/aarch64.c
15260         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15261         (aarch64_emit_call_insn): New function.
15262         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15263         of emit_call_insn.
15264         * config/aarch64/aarch64.md (define_expand "call_internal")
15265         (define_expand "call_value_internal", define_expand "sibcall_internal")
15266         (define_expand "sibcall_value_internal"): New.
15267         (define_expand "call", define_expand "call_value")
15268         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15269         expand variant and aarch64_emit_call_insn.
15270
15271 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
15272             Tom de Vries  <tom@codesourcery.com>
15273
15274         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15275         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15276         Redefine to true.
15277         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
15278         clobbers to CALL_INSN_FUNCTION_USAGE.
15279         (define_expand "sibcall_internal")
15280         (define_expand "sibcall_value_internal"): New.
15281         (define_expand "call", define_expand "call_value"): Add argument to
15282         arm_emit_call_insn.
15283         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15284         (define_expand "sibcall_value"): Use sibcall_value_internal and
15285         arm_emit_call_insn.
15286
15287 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15288
15289         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15290
15291 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15292
15293         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15294         __udivmoddi4.
15295
15296 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15297
15298         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15299         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15300         annotations. Fix DWARF information.
15301
15302 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15303
15304         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15305         __udivmoddi4, and fixups for negative operands.
15306
15307 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15308
15309         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15310
15311 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15312
15313         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15314         to __udivmoddi4.
15315
15316 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15317
15318         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15319         manipulation.
15320
15321 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15322
15323         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15324         describing register usage on function entry and exit.
15325
15326 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15327
15328         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15329         (__aeabi_ldivmod): Fix whitespace.
15330
15331 2014-06-18  Andreas Schwab  <schwab@suse.de>
15332
15333         * doc/md.texi (Standard Names): Use @itemx for grouped items.
15334         Remove blank line after @item.
15335
15336 2014-06-18  Richard Henderson  <rth@redhat.com>
15337
15338         PR target/61545
15339         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15340
15341 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15342
15343         * config/arm/arm.c (neon_vector_mem_operand): Allow register
15344         POST_MODIFY for neon loads and stores.
15345         (arm_print_operand): Output post-index register for neon loads and
15346         stores.
15347
15348 2014-06-18  Richard Biener  <rguenther@suse.de>
15349
15350         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15351
15352 2014-06-18  Richard Biener  <rguenther@suse.de>
15353
15354         * tree-pass.h (make_pass_dce_loop): Remove.
15355         * passes.def: Replace pass_dce_loop with pass_dce.
15356         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15357         changed free niter estimates and reset the scev cache.
15358         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15359         make_pass_dce_loop): Remove.
15360         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15361         (fini_copy_prop): Return whether something changed.  Always
15362         let substitute_and_fold perform DCE and free niter estimates
15363         and reset the scev cache if so.
15364         (execute_copy_prop): If sth changed schedule cleanup-cfg.
15365         (pass_data_copy_prop): Do not unconditionally schedule
15366         cleanup-cfg or update-ssa.
15367
15368 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
15369
15370         PR tree-optimization/61518
15371         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15372         reduction var is used in reduction stmt or phi-function only.
15373
15374 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15375
15376         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15377
15378 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15379
15380         PR tree-optimization/61517
15381         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15382         whose rhs's first tree is the source expression instead of the
15383         expression itself.
15384         (find_bswap_or_nop): Likewise.
15385         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15386         gimple stmt whose rhs's first tree is the source. In the memory source
15387         case, move the stmt to be replaced close to one of the original load to
15388         avoid the problem of a store between the load and the stmt's original
15389         location.
15390         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15391         signature.
15392
15393 2014-06-18  Andreas Schwab  <schwab@suse.de>
15394
15395         PR rtl-optimization/54555
15396         * postreload.c (move2add_use_add2_insn): Substitute
15397         STRICT_LOW_PART only if it is cheaper.
15398
15399 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
15400
15401         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15402         Do not use unspec as call operand.  Use memory_operand instead of
15403         memory_nox32_operand and add "m" operand constraint.  Disable
15404         pattern for TARGET_X32.
15405         (*sibcall_pop_memory): Ditto.
15406         (*sibcall_value_memory): Ditto.
15407         (*sibcall_value_pop_memory): Ditto.
15408         (sibcall peepholes): Merge SImode and DImode patterns using
15409         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
15410         Disable pattern for TARGET_X32.  Check if eliminated register is
15411         really dead after call insn.  Generate call RTX without unspec operand.
15412         (sibcall_value peepholes): Ditto.
15413         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
15414         instead of memory_nox32_operand.  Check if eliminated register is
15415         really dead after call insn. Generate call RTX without unspec operand.
15416         (sibcall_value_pop peepholes): Ditto.
15417         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15418
15419 2014-06-18  Terry Guo  <terry.guo@arm.com>
15420
15421         PR target/61544
15422         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15423         reach the head.
15424
15425 2014-06-18  Olivier Hainque  <hainque@adacore.com>
15426
15427         * tree-core.h (tree_block): Add an "end_locus" field, allowing
15428         memorization of the end of block source location.
15429         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15430         * gimplify.c (gimplify_bind_expr): Propagate the block start and
15431         end source location info we have on the block entry/exit code we
15432         generate.
15433
15434 2014-06-18  Richard Biener  <rguenther@suse.de>
15435
15436         * common.opt (fssa-phiopt): New option.
15437         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15438         but not with -Og.
15439         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15440         * doc/invoke.texi (-fssa-phiopt): Document.
15441
15442 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15443
15444         * genattrtab.c (n_bypassed): New variable.
15445         (process_bypasses): Initialise n_bypassed.
15446         Count number of bypassed reservations.
15447         (make_automaton_attrs): Allocate space for bypassed reservations
15448         rather than number of bypasses.
15449
15450 2014-06-18  Richard Biener  <rguenther@suse.de>
15451
15452         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15453         we propagated anything.
15454         (substitute_and_fold_dom_walker::before_dom_children): Something
15455         changed if we propagated into PHI arguments.
15456         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15457         we removed a stmt.
15458
15459 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
15460
15461         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15462         vector case.
15463         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15464         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15465         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15466         Introduces alternative way of loads group permutaions.
15467         (vect_transform_grouped_load): Try alternative way of permutations.
15468
15469 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
15470
15471         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15472         changed in ORT_TARGET region, don't jump to do_outer.
15473         (struct gimplify_adjust_omp_clauses_data): New type.
15474         (gimplify_adjust_omp_clauses_1): Adjust for data being
15475         a struct gimplify_adjust_omp_clauses_data pointer instead
15476         of tree *.  Pass pre_p as a new argument to
15477         lang_hooks.decls.omp_finish_clause hook.
15478         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15479         splay_tree_foreach to pass both list_p and pre_p.
15480         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15481         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15482         gimplify_adjust_omp_clauses callers.
15483         * langhooks.c (lhd_omp_finish_clause): New function.
15484         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15485         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15486         * langhooks.h (struct lang_hooks_for_decls): Add a new
15487         gimple_seq * argument to omp_finish_clause hook.
15488         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15489         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15490         (scan_omp_parallel, lower_omp_for): When adding
15491         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15492         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15493         * tree-nested.c (convert_nonlocal_omp_clauses,
15494         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15495         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15496
15497 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
15498
15499         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15500         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15501
15502 2014-06-17  Xinliang David Li  <davidxl@google.com>
15503
15504         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15505         * passes.c (pass_init_dump_file): Do not set initialize
15506         flag to false unconditionally.
15507
15508 2014-06-17  Richard Biener  <rguenther@suse.de>
15509
15510         * genopinit.c (main): Use vec<>::qsort method.
15511         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15512         Likewise.
15513         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15514
15515 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
15516
15517         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15518         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15519         (mips_move_to_gpr_cost): Remove ST_REGS case.
15520         (mips_move_from_gpr_cost): Likewise.
15521         (mips_register_move_cost): Likewise.
15522         (mips_secondary_reload_class): Likewise.
15523
15524 2014-06-17  Richard Biener  <rguenther@suse.de>
15525
15526         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15527         (pass_all_optimizations): Move 3rd copy-prop pass from after
15528         fre to before ifcombine/phiopt.
15529
15530 2014-06-17  Richard Biener  <rguenther@suse.de>
15531
15532         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15533         and allow all blocks to be forwarders.
15534
15535 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
15536
15537         PR target/61483
15538         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15539         variable 'size'; calculate 'size' right in the front; use
15540         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15541         pcum->aapcs_stack_words.
15542
15543 2014-06-17  Nick Clifton  <nickc@redhat.com>
15544
15545         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15546         (umulhi3, mulsidi3, umulsidi3): Likewise.
15547
15548 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
15549
15550         PR middle-end/61508
15551         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15552         check for section name.
15553
15554 2014-06-17  Richard Biener  <rguenther@suse.de>
15555
15556         * tree-ssa-propagate.c: Include domwalk.h.
15557         (substitute_and_fold): Outline main worker into a domwalker ...
15558         (substitute_and_fold_dom_walker::before_dom_children): ... here.
15559         Schedule stmts we can fully propagate for removal.  Remove
15560         poor-mans DCE.
15561         (substitute_and_fold): Apply a dominator walk to perform
15562         substitution.  Process stmts scheduled for removal here.
15563
15564 2014-06-17  Richard Biener  <rguenther@suse.de>
15565
15566         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15567         of PHI node moving.
15568
15569 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
15570
15571         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15572         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15573         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15574         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15575         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15576         TARGET_HARD_FLOAT.
15577         (get_fpscr) : Likewise.
15578
15579 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
15580
15581         PR rtl-optimization/61325
15582         * lra-constraints.c (valid_address_p): Add forward declaration.
15583         (simplify_operand_subreg): Check address validity before and after
15584         alter_reg of memory subreg.
15585
15586 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
15587
15588         * config/i386/i386.c (decide_alg): Correctly handle
15589         maximum size of stringop algorithm.
15590
15591 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
15592
15593         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15594
15595 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
15596
15597         PR rtl-optimization/61522
15598         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15599
15600 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
15601
15602         Revert:
15603         * symtab.c (symtab_node::reset_section): New method.
15604         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15605         for localization.
15606         * cgraph.h (reset_section): Declare.
15607         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15608         do not consider comdat locals.
15609         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15610         for new symbol.
15611         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15612         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15613         reset sections of symbols dragged out of the comdats.
15614         (function_and_variable_visibility): Reset sections of
15615         localized symbols.
15616
15617 2014-06-16  Richard Biener  <rguenther@suse.de>
15618
15619         PR tree-optimization/61482
15620         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15621         [-INF(OVF), +INF(OVF)] range.
15622
15623 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15624
15625         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15626         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15627         handling 32-bit multiplication.
15628
15629 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
15630
15631         PR middle-end/61430
15632         * lra-lives.c (process_bb_lives): Skip creating copy during
15633         insn scan when src/dest has constrained to same regno.
15634
15635 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
15636
15637         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15638         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15639
15640 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
15641
15642         * asan.c (check_func): New function.
15643         (maybe_create_ssa_name): Likewise.
15644         (build_check_stmt_with_calls): Likewise.
15645         (use_calls_p): Likewise.
15646         (report_error_func): Change interface.
15647         (build_check_stmt): Allow non-integer lengths; add support
15648         for new parameter.
15649         (asan_instrument): Likewise.
15650         (instrument_mem_region_access): Moved code to build_check_stmt.
15651         (instrument_derefs): Likewise.
15652         (instrument_strlen_call): Likewise.
15653         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15654         * doc/invoke.texi: Describe new parameter.
15655         * params.def: Define new parameter.
15656         * params.h: Likewise.
15657         * sanitizer.def: Describe new builtins.
15658
15659 2014-06-16  Richard Biener  <rguenther@suse.de>
15660
15661         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15662         Make all defs available at the end.
15663         (eliminate): If we remove a PHI node schedule cfg-cleanup.
15664
15665 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
15666
15667         PR plugins/45078
15668         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15669
15670 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
15671
15672         PR bootstrap/61516
15673         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15674         initialization.  Replace remaining use of uid.
15675
15676 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
15677
15678         * c-family/c-common.c (handle_tls_model_attribute): Use
15679         set_decl_tls_model.
15680         * c-family/c-common.c (handle_tls_model_attribute): Use
15681         set_decl_tls_model.
15682         * cgraph.h (struct varpool_node): Add tls_model.
15683         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15684         * tree.h (DECL_TLS_MODEL): Update.
15685         (DECL_THREAD_LOCAL_P): Check that variable is static.
15686         (decl_tls_model): Declare.
15687         (set_decl_tls_model): Declare.
15688         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15689         set symbol prorperties.
15690         (get_emutls_init_templ_addr): Cleanup.
15691         (new_emutls_decl): Update.
15692         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15693         (lto_input_varpool_node): Likewise.
15694         * lto-streamer-out.c (hash_tree): Likewise.
15695         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15696         not stream DECL_TLS_MODEL.
15697         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15698         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15699
15700 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15701
15702         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15703
15704 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15705
15706         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15707         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15708         lists.
15709         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15710         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15711         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15712         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15713         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15714         (df_get_artificial_defs, df_get_artificial_uses)
15715         (df_single_def, df_single_use): Update accordingly.
15716         (df_refs_chain_dump): Take the first element in a linked list as
15717         parameter, rather than a pointer to an array of pointers.
15718         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15719         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15720         (df_chain_create_bb_process_use): Likewise.
15721         (df_md_bb_local_compute_process_def): Likewise.
15722         * fwprop.c (process_defs, process_uses): Likewise.
15723         (register_active_defs, update_uses): Likewise.
15724         (forward_propagate_asm): Update for new df_ref linking.
15725         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15726         (df_null_ref_rec, df_null_mw_rec): Likewise.
15727         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15728         explicitly.
15729         (df_scan_free_bb_info): Remove check for null artificial_defs.
15730         (df_install_ref_incremental): Adjust for new df_ref linking.
15731         Use a single-element insertion rather than a full sort.
15732         (df_ref_chain_delete_du_chain): Take the first element
15733         in a linked list as parameter, rather than a pointer to an array of
15734         pointers.
15735         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15736         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15737         (df_insn_info_delete): Remove check for null defs and call to
15738         df_scan_free_mws_vec.
15739         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15740         null rather than df_null_*_rec.
15741         (df_insn_rescan_debug_internal): Likewise, and update null
15742         checks in the same way.  Remove check for null defs.
15743         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15744         Move a single element rather doing a full sort.
15745         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15746         linking.
15747         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
15748         Initialize df_ref and df_mw_hardreg lists to null rather than
15749         df_null_*_rec.
15750         (df_ref_compare): Take df_refs as parameter, transferring the
15751         old interface to...
15752         (df_ref_ptr_compare): ...this new function.
15753         (df_sort_and_compress_refs): Update accordingly.
15754         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15755         old interface to...
15756         (df_mw_ptr_compare): ...this new function.
15757         (df_sort_and_compress_mws): Update accordingly.
15758         (df_install_refs, df_install_mws): Return a linked list rather than
15759         an array of pointers.
15760         (df_refs_add_to_chains): Assert that old lists are empty rather
15761         than freeing them.
15762         (df_insn_refs_verify): Don't handle null defs speciailly.
15763         * web.c (union_match_dups): Update for new df_ref linking.
15764
15765 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15766
15767         * df.h (df_ref_create, df_ref_remove): Delete.
15768         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15769         (df_ref_remove): Likewise.
15770
15771 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15772
15773         * df.h (df_single_def, df_single_use): New functions.
15774         * ira.c (find_moveable_pseudos): Use them.
15775
15776 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15777
15778         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15779         * df-problems.c (df_note_bb_compute): Use it.
15780         * regstat.c (regstat_bb_compute_ri): Likewise.
15781
15782 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15783
15784         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15785         * cse.c (cse_extended_basic_block): Use them.
15786         * dce.c (mark_artificial_use): Likewise.
15787         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15788         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15789         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15790         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15791         (df_simulate_initialize_backwards): Likewise.
15792         (df_simulate_finalize_backwards): Likewise.
15793         (df_simulate_initialize_forwards): Likewise.
15794         (df_md_simulate_artificial_defs_at_top): Likewise.
15795         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15796         * regrename.c (init_rename_info): Likewise.
15797         * regstat.c (regstat_bb_compute_ri): Likewise.
15798         (regstat_bb_compute_calls_crossed): Likewise.
15799
15800 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15801
15802         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15803         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15804         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15805         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15806         * combine.c (create_log_links): Likewise.
15807         * compare-elim.c (find_flags_uses_in_insn): Likewise.
15808         (try_eliminate_compare): Likewise.
15809         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15810         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15811         (remove_reg_equal_equiv_notes_for_defs): Likewise.
15812         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15813         (word_dce_process_block, dce_process_block): Likewise.
15814         * ddg.c (def_has_ccmode_p): Likewise.
15815         * df-core.c (df_bb_regno_first_def_find): Likewise.
15816         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15817         * df-problems.c (df_rd_simulate_one_insn): Likewise.
15818         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15819         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15820         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15821         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15822         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15823         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15824         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15825         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15826         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15827         * fwprop.c (local_ref_killed_between_p): Likewise.
15828         (all_uses_available_at, free_load_extend): Likewise.
15829         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15830         * hw-doloop.c (scan_loop): Likewise.
15831         * ifcvt.c (dead_or_predicable): Likewise.
15832         * init-regs.c (initialize_uninitialized_regs): Likewise.
15833         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15834         (process_bb_node_lives): Likewise.
15835         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15836         (find_moveable_pseudos): Likewise.
15837         * loop-invariant.c (check_dependencies, record_uses): Likewise.
15838         * recog.c (peep2_find_free_register): Likewise.
15839         * ree.c (get_defs): Likewise.
15840         * regstat.c (regstat_bb_compute_ri): Likewise.
15841         (regstat_bb_compute_calls_crossed): Likewise.
15842         * sched-deps.c (find_inc, find_mem): Likewise.
15843         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15844         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15845         * shrink-wrap.c (requires_stack_frame_p): Likewise.
15846         (prepare_shrink_wrap): Likewise.
15847         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15848         * web.c (union_defs, pass_web::execute): Likewise.
15849         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15850         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15851
15852 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
15853
15854         * lra-assign.c (assign_by_spills): Add code to assign vector regs
15855         to inheritance pseudos.
15856         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15857
15858 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
15859
15860         PR target/61415
15861         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15862         (BU_MISC_2): Rename to ...
15863         (BU_LDBL128_2): ... this.
15864         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15865         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15866         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15867         RS6000_BTM_LDBL128.
15868         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15869         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15870         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15871         (unpacktf_1): Likewise.
15872         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15873         (__builtin_longdouble_dw1): Likewise.
15874         * doc/sourcebuild.texi (longdouble128): Document.
15875
15876 2014-06-13  Jeff Law  <law@redhat.com>
15877
15878         PR rtl-optimization/61094
15879         PR rtl-optimization/61446
15880         * ree.c (combine_reaching_defs): Get the mode for the copy from
15881         the extension insn rather than the defining insn.
15882
15883 2014-06-13  Dehao Chen  <dehao@google.com>
15884
15885         * dwarf2out.c (add_linkage_name): Emit more linkage name.
15886
15887 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
15888
15889         * doc/install.texi (--enable-linker-plugin-configure-flags)
15890         (--enable-linker-plugin-flags): Document new flags.
15891
15892 2014-06-13  Martin Jambor  <mjambor@suse.cz>
15893
15894         PR ipa/61186
15895         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15896         cache_token if returning early.
15897
15898 2014-06-13  Nick Clifton  <nickc@redhat.com>
15899
15900         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15901         requested alignment is active.
15902         (LABEL_ALIGN): Likewise.
15903         (LOOP_ALIGN): Likewise.
15904
15905 2014-06-13  Richard Biener  <rguenther@suse.de>
15906
15907         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15908         Rewrite to propagate the VN result into all uses where
15909         possible and to remove stmts becoming dead because of that.
15910         (eliminate): Generalize stmt removal handling, remove in
15911         reverse dominator order to support proper debug stmt
15912         generation.  Update stmts before removing stmts.
15913         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15914
15915 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15916
15917         PR tree-optimization/61375
15918         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15919         symbolic number cannot be represented in an uint64_t.
15920         (find_bswap_or_nop_1): Likewise.
15921
15922 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
15923
15924         * symtab.c (symtab_node::reset_section): New method.
15925         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15926         for localization.
15927         * cgraph.h (reset_section): Declare.
15928         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15929         do not consider comdat locals.
15930         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15931         for new symbol.
15932         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15933         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15934         reset sections of symbols dragged out of the comdats.
15935         (function_and_variable_visibility): Reset sections of
15936         localized symbols.
15937
15938 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
15939
15940         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15941         to use symtab and decl_binds_to_current_def_p
15942         * tree-vectorizer.c (increase_alignment): Increase alignment
15943         of alias target, too.
15944
15945 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
15946
15947         PR middle-end/61486
15948         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15949         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15950         if outer combined construct is distribute.
15951         (gimplify_omp_for): For OMP_DISTRIBUTE set
15952         gimplify_omp_ctxp->distribute.
15953         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15954         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15955         mapping into decl map.
15956
15957 2014-06-12  Jason Merrill  <jason@redhat.com>
15958
15959         * common.opt (fabi-version): Change default to 0.
15960
15961 2014-06-12  Jason Merrill  <jason@redhat.com>
15962
15963         * toplev.c (process_options): Reject -fabi-version=1.
15964
15965 2014-06-12  Jeff Law  <law@redhat.com>
15966
15967         PR tree-optimization/61009
15968         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15969         value when we stop processing a block due to problematic PHIs.
15970
15971 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
15972
15973         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15974         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15975         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15976         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15977         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15978         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15979         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15980         are not in the spec.
15981
15982 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
15983
15984         PR target/59843
15985         * config/aarch64/aarch64-modes.def: Add V1DFmode.
15986         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15987         Support V1DFmode.
15988
15989 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
15990
15991         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15992
15993 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
15994
15995         PR target/61443
15996         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15997         loading from address spaces.
15998
15999 2014-06-12  Martin Liska  <mliska@suse.cz>
16000
16001         PR ipa/61462
16002         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16003         statement is reachable.
16004
16005 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
16006
16007         * symtab.c (section_hash): New hash.
16008         (symtab_unregister_node): Clear section before freeing.
16009         (hash_section_hash_entry): New haser.
16010         (eq_sections): New function.
16011         (symtab_node::set_section_for_node): New method.
16012         (set_section_1): Update.
16013         (symtab_node::set_section): Take string instead of tree as parameter.
16014         (symtab_resolve_alias): Update.
16015         * cgraph.h (section_hash_entry_d): New structure.
16016         (section_hash_entry): New typedef.
16017         (cgraph_node): Change comdat_group_ to x_comdat_group,
16018         change section_ to x_section and turn into section_hash_entry;
16019         update accestors; put set_section_for_node offline.
16020         * tree.c (decl_section_name): Turn into string.
16021         (set_decl_section_name): Change parameter to be string.
16022         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16023         * sdbout.c (sdbout_one_type): Update.
16024         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16025         * varasm.c (IN_NAMED_SECTION, get_named_section,
16026         resolve_unique_section, hot_function_section, get_named_text_section,
16027         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16028         make_decl_rtl, default_unique_section): Update.
16029         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16030         (c6x_elf_unique_section): Update.
16031         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16032         * config/pa/pa.c (pa_function_section): Update.
16033         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16034         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16035         * config/arc/arc.c (arc_in_small_data_p): Update.
16036         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16037         * config/mcore/mcore.c (mcore_unique_section): Update.
16038         * config/mips/mips.c (mips16_build_function_stub): Update.
16039         (mips16_build_call_stub): Update.
16040         (mips_function_rodata_section): Update.
16041         (mips_in_small_data_p): Update.
16042         * config/score/score.c (score_in_small_data_p): Update.
16043         * config/rx/rx.c (rx_in_small_data): Update.
16044         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16045         (rs6000_xcoff_asm_named_section): Update.
16046         (rs6000_xcoff_unique_section): Update.
16047         * config/frv/frv.c (frv_string_begins_with): Update.
16048         (frv_in_small_data_p): Update.
16049         * config/v850/v850.c (v850_encode_data_area): Update.
16050         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16051         (bfin_handle_l1_data_attribute): Update.
16052         (bfin_handle_l2_attribute): Update.
16053         * config/mep/mep.c (mep_unique_section): Update.
16054         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16055         Update.
16056         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16057         (h8300_handle_tiny_data_attribute): Update.
16058         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16059         (m32r_in_small_data_p): Update.
16060         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16061         * config/i386/i386.c (ix86_in_large_data_p): Update.
16062         * config/i386/winnt.c (i386_pe_unique_section): Update.
16063         * config/darwin.c (darwin_function_section): Update.
16064         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16065         * tree-emutls.c (get_emutls_init_templ_addr): Update.
16066         (new_emutls_decl): Update.
16067         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16068         input_varpool_node): Update.
16069         (ead_string_cst): Turn to ...
16070         (read_string): ... this one.
16071         * dwarf2out.c (secname_for_decl): Update.
16072         * asan.c (asan_protect_global): Update.
16073
16074 2014-06-11  DJ Delorie  <dj@redhat.com>
16075
16076         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16077         cache lines.
16078         * config/rx/rx.c (rx_option_override): Likewise.
16079         (rx_align_for_label): Likewise.
16080
16081         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16082
16083 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
16084
16085         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16086         prototype.
16087
16088 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16089
16090         * common.md: New file.
16091         * doc/md.texi: Update description of generic, machine-independent
16092         constraints.
16093         * config/s390/constraints.md (e): Delete.
16094         * Makefile.in (md_file): Include common.md.
16095         * config/m32c/t-m32c (md_file): Likewise.
16096         * genpreds.c (general_mem): New array.
16097         (generic_constraint_letters): Remove constraints now defined by
16098         common.md.
16099         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16100         Allow the first character to be '<' or '>' as well.
16101         * genoutput.c (general_mem): New array.
16102         (indep_constraints): Remove constraints now defined by common.md.
16103         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16104         Remove special handling of 'm'.
16105         * ira-costs.c (record_reg_classes): Remove special handling of
16106         constraints now defined by common.md.
16107         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16108         * ira-lives.c (single_reg_class): Likewise.
16109         (ira_implicitly_set_insn_hard_regs): Likewise.
16110         * lra-constraints.c (reg_class_from_constraints): Likewise.
16111         (process_alt_operands, process_address, curr_insn_transform): Likewise.
16112         * postreload.c (reload_cse_simplify_operands): Likewise.
16113         * reload.c (push_secondary_reload, scratch_reload_class)
16114         (find_reloads, alternative_allows_const_pool_ref): Likewise.
16115         * reload1.c (maybe_fix_stack_asms): Likewise.
16116         * targhooks.c (default_secondary_reload): Likewise.
16117         * stmt.c (parse_output_constraint): Likewise.
16118         * recog.c (preprocess_constraints): Likewise.
16119         (constrain_operands, peep2_find_free_register): Likewise.
16120         (asm_operand_ok): Likewise, but add a comment saying why 'o'
16121         must be handled specially.
16122
16123 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16124
16125         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16126         * genpreds.c (have_const_dbl_constraints): Delete.
16127         (add_constraint): Don't set it.
16128         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16129         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16130         constraints using the lookup_constraint logic.
16131         * ira-lives.c (single_reg_class): Likewise.
16132         * ira.c (ira_setup_alts): Likewise.
16133         * lra-constraints.c (process_alt_operands): Likewise.
16134         * recog.c (asm_operand_ok, constrain_operands): Likewise.
16135         * reload.c (find_reloads): Likewise.
16136
16137 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16138
16139         * genpreds.c (const_int_start, const_int_end): New variables.
16140         (choose_enum_order): Output CONST_INT constraints before memory
16141         constraints.
16142         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16143         Add CT_CONST_INT.
16144         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16145         * ira.c (ira_setup_alts): Likewise.
16146         * lra-constraints.c (process_alt_operands): Likewise.
16147         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16148         * reload.c (find_reloads): Likewise.
16149
16150 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16151
16152         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16153         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
16154         * recog.c (preprocess_constraints): Update accordingly.
16155
16156 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16157
16158         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16159         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16160         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16161         * genpreds.c (print_type_tree): New function.
16162         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16163         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16164         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16165         Write out enum constraint_type and get_constraint_type.
16166         * lra-constraints.c (satisfies_memory_constraint_p): Take a
16167         constraint_num rather than a constraint string.
16168         (satisfies_address_constraint_p): Likewise.
16169         (reg_class_from_constraints): Avoid old constraint macros.
16170         (process_alt_operands, process_address_1): Likewise.
16171         (curr_insn_transform): Likewise.
16172         * ira-costs.c (record_reg_classes): Likewise.
16173         (record_operand_costs): Likewise.
16174         * ira-lives.c (single_reg_class): Likewise.
16175         (ira_implicitly_set_insn_hard_regs): Likewise.
16176         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16177         * postreload.c (reload_cse_simplify_operands): Likewise.
16178         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16179         (constrain_operands, peep2_find_free_register): Likewise.
16180         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16181         (find_reloads, alternative_allows_const_pool_ref): Likewise.
16182         * reload1.c (maybe_fix_stack_asms): Likewise.
16183         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16184         * targhooks.c (default_secondary_reload): Likewise.
16185         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16186         to EXTRA_CONSTRAINT_STR.
16187         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16188
16189 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16190
16191         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16192         (write_constraint_satisfied_p_array): ...this new function.
16193         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16194         an array.
16195         (write_insn_preds_c): Update accordingly.
16196
16197 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16198
16199         * genpreds.c (write_lookup_constraint): Rename to...
16200         (write_lookup_constraint_1): ...this.
16201         (write_lookup_constraint_array): New function.
16202         (write_tm_preds_h): Define lookup_constraint as an inline function
16203         that uses write_lookup_constraint_array where possible.
16204         (write_insn_preds_c): Update for the changes above.
16205
16206 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16207
16208         * doc/md.texi (regclass_for_constraint): Rename to...
16209         (reg_class_for_constraint): ...this.
16210         * genpreds.c (num_constraints, enum_order, register_start)
16211         (register_end, satisfied_start, memory_start, memory_end)
16212         (address_start, address_end): New variables.
16213         (add_constraint): Count the number of constraints.
16214         (choose_enum_order): New function.
16215         (write_enum_constraint_num): Iterate over enum_order.
16216         (write_regclass_for_constraint): Rename to...
16217         (write_reg_class_for_constraint_1): ...this and update output
16218         accordingly.
16219         (write_constraint_satisfied_p): Rename to...
16220         (write_constraint_satisfied_p_1): ...this and update output
16221         accordingly.  Do nothing if all extra constraints are register
16222         constraints.
16223         (write_insn_extra_memory_constraint): Delete.
16224         (write_insn_extra_address_constraint): Delete.
16225         (write_range_function): New function.
16226         (write_tm_preds_h): Define constraint_satisfied_p and
16227         reg_class_for_constraint as inline functions that do a range check
16228         before calling the out-of-line function.  Use write_range_function
16229         to implement insn_extra_{register,memory,address}_constraint,
16230         the first of which is new.
16231         (write_insn_preds_c): Update after above changes to write_* functions.
16232         (main): Call choose_enum_order.
16233
16234 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16235
16236         PR tree-optimization/61306
16237         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16238         expression instead of its size.
16239         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16240         false to prevent optimization when the result is unpredictable due to
16241         arithmetic right shift of signed type with highest byte is set.
16242         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16243         (init_symbolic_number): Likewise.
16244         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16245         when the result is unpredictable due to sign extension.
16246
16247 2014-06-11  Terry Guo  <terry.guo@arm.com>
16248
16249         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16250         (*thumb1_addsi3): Ditto.
16251         (*thumb_subdi3): Ditto.
16252         (thumb1_subsi3_insn): Ditto.
16253         (*thumb_mulsi3): Ditto.
16254         (*thumb_mulsi3_v6): Ditto.
16255         (*thumb1_andsi3_insn): Ditto.
16256         (thumb1_bicsi3): Ditto.
16257         (*thumb1_iorsi3_insn): Ditto.
16258         (*thumb1_xorsi3_insn): Ditto.
16259         (*thumb1_ashlsi3): Ditto.
16260         (*thumb1_ashrsi3): Ditto.
16261         (*thumb1_lshrsi3): Ditto.
16262         (*thumb1_rotrsi3): Ditto.
16263         (*thumb1_negdi2): Ditto.
16264         (*thumb1_negsi2): Ditto.
16265         (*thumb1_abssi2): Ditto.
16266         (*thumb1_neg_abssi2): Ditto.
16267         (*thumb1_one_cmplsi2): Ditto.
16268         (*thumb1_zero_extendhisi2): Ditto.
16269         (*thumb1_zero_extendqisi2): Ditto.
16270         (*thumb1_zero_extendqisi2_v6): Ditto.
16271         (thumb1_extendhisi2): Ditto.
16272         (thumb1_extendqisi2): Ditto.
16273         (*thumb1_movdi_insn): Ditto.
16274         (*thumb1_movsi_insn): Ditto.
16275         (*thumb1_movhi_insn): Ditto.
16276         (thumb_movhi_clobber): Ditto.
16277         (*thumb1_movqi_insn): Ditto.
16278         (*thumb1_movhf): Ditto.
16279         (*thumb1_movsf_insn): Ditto.
16280         (*thumb_movdf_insn): Ditto.
16281         (movmem12b): Ditto.
16282         (movmem8b): Ditto.
16283         (cbranchqi4): Ditto.
16284         (cbranchsi4_insn): Ditto.
16285         (cbranchsi4_scratch): Ditto.
16286         (*negated_cbranchsi4): Ditto.
16287         (*tbit_cbranch): Ditto.
16288         (*tlobits_cbranch): Ditto.
16289         (*tstsi3_cbranch): Ditto.
16290         (*cbranchne_decr1): Ditto.
16291         (*addsi3_cbranch): Ditto.
16292         (*addsi3_cbranch_scratch): Ditto.
16293         (*thumb_cmpdi_zero): Ditto.
16294         (cstoresi_eq0_thumb1): Ditto.
16295         (cstoresi_ne0_thumb1): Ditto.
16296         (*cstoresi_eq0_thumb1_insn): Ditto.
16297         (*cstoresi_ne0_thumb1_insn): Ditto.
16298         (cstoresi_nltu_thumb1): Ditto.
16299         (cstoresi_ltu_thumb1): Ditto.
16300         (thumb1_addsi3_addgeu): Ditto.
16301         (*thumb_jump): Ditto.
16302         (*call_reg_thumb1_v5): Ditto.
16303         (*call_reg_thumb1): Ditto.
16304         (*call_value_reg_thumb1_v5): Ditto.
16305         (*call_value_reg_thumb1): Ditto.
16306         (*call_insn): Ditto.
16307         (*call_value_insn): Ditto.
16308         (thumb1_casesi_internal_pic): Ditto.
16309         (thumb1_casesi_dispatch): Ditto.
16310         (*thumb1_indirect_jump): Ditto.
16311         (prologue_thumb1_interwork): Ditto.
16312         (*epilogue_insns): Ditto.
16313         (consttable_1): Ditto.
16314         (consttable_2): Ditto.
16315         (tablejump): Ditto.
16316         (*thumb1_tablejump): Ditto.
16317         (thumb_eh_return): Ditto.
16318         (define_peephole2): Two of them are thumb1 only and got moved into
16319         new file thumb1.md.
16320         (define_split): Six of them are thumb1 only and got moved into new
16321         file thumb1.md.
16322         * config/arm/thumb1.md: New file comprised of above thumb1 only
16323         patterns.
16324
16325 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16326
16327         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16328         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16329         dependencies.
16330         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16331         (aarch64_crc_builtin_datum): New struct.
16332         (aarch64_crc_builtin_data): New.
16333         (aarch64_init_crc32_builtins): New function.
16334         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16335         (aarch64_crc32_expand_builtin): New.
16336         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16337         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16338         __ARM_FEATURE_CRC32 when appropriate.
16339         (TARGET_CRC32): Define.
16340         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16341         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16342         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16343         (aarch64_<crc_variant>): New pattern.
16344         * config/aarch64/arm_acle.h: New file.
16345         * config/aarch64/iterators.md (CRC): New int iterator.
16346         (crc_variant, crc_mode): New int attributes.
16347         * doc/aarch64-acle-intrinsics.texi: New file.
16348         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16349         Include aarch64-acle-intrinsics.texi.
16350
16351 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
16352
16353         * tree-vect-data-refs.c (vect_grouped_store_supported): New
16354         check for stores group of length 3.
16355         (vect_permute_store_chain): New permutations for stores group of
16356         length 3.
16357         * tree-vect-stmts.c (vect_model_store_cost): Change cost
16358         of vec_perm_shuffle for the new permutations.
16359
16360 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
16361
16362         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16363         table rewriting temporarily on targets not supporting ONE_ONLY.
16364
16365 2014-06-11  Richard Biener  <rguenther@suse.de>
16366
16367         PR middle-end/61437
16368         Revert
16369         2014-06-04  Richard Biener  <rguenther@suse.de>
16370
16371         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16372         TREE_PUBLIC and DECL_EXTERNAL decls.
16373
16374 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
16375
16376         * varasm.c (set_implicit_section): New function.
16377         (resolve_unique_section): Use it to set implicit section
16378         for aliases, too.
16379         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16380         (default_function_section): Likewise.
16381         (decl_binds_to_current_def_p): Constify argument.
16382         * varasm.h (decl_binds_to_current_def_p): Update prototype.
16383         * asan.c (asan_protect_global): Use
16384         symtab_get_node (decl)->implicit_section.
16385         * symtab.c (dump_symtab_base): Dump implicit sections.
16386         (verify_symtab_base): Verify sanity of sectoins and comdats.
16387         (symtab_resolve_alias): Alias share the section of its target.
16388         (set_section_1): New function.
16389         (symtab_node::set_section): Move here, recurse to aliases.
16390         (verify_symtab): Check for duplicated symtab lists.
16391         * tree-core.h (implicit_section_name_p): Remove.
16392         * tree-vect-data-refs.c: Include varasm.h.
16393         (vect_can_force_dr_alignment_p): Fix conditional on when
16394         decl bints to current definition; use
16395         symtab_get_node (decl)->implicit_section.
16396         * cgraph.c (cgraph_make_node_local_1): Fix section set.
16397         * cgraph.h (struct symtab_node): Add implicit_section.
16398         (set_section): Rename to ...
16399         (set_section_for_node): ... this one.
16400         (set_section): Declare.
16401         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16402         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16403         input_overwrite_node, input_varpool_node): Stream implicit_section.
16404         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16405         removal; it will fail in LTO.
16406
16407 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16408
16409         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16410         Change second alternative type to f_mcr.
16411         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16412         and 12th alternatives' types to f_mcr and f_mrc.
16413         (*movdi_aarch64): Same for 12th and 13th alternatives.
16414         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16415         (aarch64_movtilow_tilow): Change type to fmov.
16416
16417 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
16418
16419         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16420         (aarch64_save_or_restore_callee_save_registers): Fix layout.
16421
16422 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16423
16424         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16425         New expander.
16426         (aarch64_sqrdmulh_lane<mode>): Likewise.
16427         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16428         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16429         (aarch64_sqdmulh_laneq<mode>): New expander.
16430         (aarch64_sqrdmulh_laneq<mode>): Likewise.
16431         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16432         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16433         (aarch64_sqdmulh_lane<mode>): New expander.
16434         (aarch64_sqrdmulh_lane<mode>): Likewise.
16435         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16436         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16437         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16438         (aarch64_sqdmlal_laneq<mode>): Likewise.
16439         (aarch64_sqdmlsl_lane<mode>): Likewise.
16440         (aarch64_sqdmlsl_laneq<mode>): Likewise.
16441         (aarch64_sqdmlal2_lane<mode>): Likewise.
16442         (aarch64_sqdmlal2_laneq<mode>): Likewise.
16443         (aarch64_sqdmlsl2_lane<mode>): Likewise.
16444         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16445         (aarch64_sqdmull_lane<mode>): Likewise.
16446         (aarch64_sqdmull_laneq<mode>): Likewise.
16447         (aarch64_sqdmull2_lane<mode>): Likewise.
16448         (aarch64_sqdmull2_laneq<mode>): Likewise.
16449
16450 2014-06-10  Richard Biener  <rguenther@suse.de>
16451
16452         PR tree-optimization/61438
16453         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16454         (eliminate_dom_walker::before_dom_children): Only try to inhibit
16455         insertion of IVs if running PRE.
16456         (eliminate): Adjust.
16457         (pass_pre::execute): Likewise.
16458         (pass_fre::execute): Likewise.
16459
16460 2014-06-10  Richard Biener  <rguenther@suse.de>
16461
16462         PR middle-end/61456
16463         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16464         Do not use the main variant for the type comparison.
16465         (ncr_compar): Likewise.
16466         (nonoverlapping_component_refs_p): Likewise.
16467
16468 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16469
16470         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16471         REG_CFA_RESTORE mode.
16472
16473 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
16474
16475         * config/i386/i386.c (expand_vec_perm_pblendv): New.
16476         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16477         expand_vec_perm_pblendv.
16478
16479 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16480
16481         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16482         available.
16483         Simplify description of __crc32d and __crc32cd intrinsics.
16484         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16485         availability.
16486
16487 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16488
16489         PR lto/61334
16490         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16491         * config.in: Regenerate.
16492         * configure: Likewise.
16493
16494 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
16495
16496         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16497         and public vars.
16498         (intersect_static_var_sets): Remove.
16499         (propagate): Do not prune local statics.
16500
16501 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16502
16503         PR fortran/60928
16504         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16505         Set lastprivate_firstprivate even if omp_private_outer_ref
16506         langhook returns true.
16507         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16508         langhook, call unshare_expr on new_var and call
16509         build_outer_var_ref to get the last argument.
16510
16511 2014-06-10  Marek Polacek  <polacek@redhat.com>
16512
16513         PR c/60988
16514         * doc/extend.texi: Add cindex for transparent_union.
16515
16516 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16517
16518         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16519         init_symbolic_number ().
16520
16521 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
16522
16523         PR middle-end/61141
16524         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16525         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16526         (verify_rtl_sharing): Likewise.
16527
16528 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
16529
16530         PR c++/54442
16531         * tree.c (build_qualified_type): Use a canonical type for
16532         TYPE_CANONICAL.
16533
16534 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16535
16536         * config/arm/arm-modes.def: Remove XFmode.
16537
16538 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
16539
16540         PR target/61062
16541         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16542         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16543         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16544         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16545         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16546         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16547         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16548         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16549         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16550
16551 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
16552
16553         * tree-core.h (tree_decl_with_vis): Remove section_name.
16554
16555 2014-06-09  Kito Cheng  <kito@0xlab.org>
16556
16557         * ira.c (ira): Don't call init_caller_save if LRA enabled
16558         since LRA use its own infrastructure to handle that.
16559
16560 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16561
16562         * symtab.c (dump_symtab_base): Update dumping.
16563         (symtab_make_decl_local): Clear only DECL_COMDAT.
16564         * tree-vect-data-refs.c (Check that variable is static before
16565         tampering with sections.
16566         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16567         (cgraph_create_virtual_clone): Likewise.
16568         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16569         (decl_section_name, set_decl_section_name): New accessors.
16570         (find_decls_types_r): Do not walk section name
16571         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16572         (decl_comdat_group, decl_comdat_group_id): Constify.
16573         (decl_section_name, set_decl_section_name): Update.
16574         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16575         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16576         (cgraph_make_node_local_1): Clear section and comdat group.
16577         * cgraph.h (set_comdat_group): Sanity check.
16578         (get_section, set_section): New.
16579         * ipa-comdats.c (ipa_comdats): Use get_section.
16580         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16581         * lto-streamer-out.c: Do not follow section names.
16582         * c-family/c-common.c (handle_section_attribute): Update.
16583         * lto-cgraph.c (lto_output_node): Output section.
16584         (lto_output_varpool_node): Likewise.
16585         (read_comdat_group): Rename to ...
16586         (read_identifier): ... this one.
16587         (read_string_cst): New function.
16588         (input_node, input_varpool_node): Input section names.
16589         * tree-emutls.c (get_emutls_init_templ_addr): Update.
16590         (new_emutls_decl): Update.
16591         (secname_for_decl): Check section names only of static vars.
16592         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16593         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16594         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16595         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16596         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16597         * config/mcore/mcore.c (mcore_unique_section): Likewise.
16598         * config/mips/mips.c (mips16_build_function_stub): Likewise.
16599         * config/v850/v850.c (v850_insert_attributes): Likewise.
16600         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16601         Likewise.
16602         (h8300_handle_tiny_data_attribute): Likewise.
16603         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16604         (bfin_handle_l2_attribute): Likewise.
16605
16606 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16607
16608         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16609         remove static initializer.
16610
16611 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16612
16613         * varasm.c (use_blocks_for_decl_p): Check symbol table
16614         instead of alias attribute.
16615         (place_block_symbol): Recurse on aliases.
16616
16617 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16618
16619         * ipa-visibility.c: Include varasm.h
16620         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16621
16622 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16623
16624         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16625         outputting aliases.
16626
16627 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
16628
16629         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16630         from test_insn into GGC space escape via SET_SRC.
16631
16632 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
16633
16634         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16635         call statement, if any.
16636         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16637         statements, if any.  Tidy up.
16638
16639 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16640
16641         PR target/61431
16642         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16643         iterators, VSX_D that handles 64-bit types, and VSX_LE that
16644         handles swapping the two 64-bit double words on little endian
16645         systems.  Include V1TImode and optionally TImode in VSX_LE so that
16646         these types are properly swapped.  Change all of the insns and
16647         splits that do the 64-bit swaps to use VSX_LE.
16648         (vsx_le_perm_load_<mode>): Likewise.
16649         (vsx_le_perm_store_<mode>): Likewise.
16650         (splitters for little endian memory operations): Likewise.
16651         (vsx_xxpermdi2_le_<mode>): Likewise.
16652         (vsx_lxvd2x2_le_<mode>): Likewise.
16653         (vsx_stxvd2x2_le_<mode>): Likewise.
16654
16655 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
16656
16657         PR target/61423
16658         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16659         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16660         and corresponding splitters.  Zero extend general register
16661         or memory input operand to XMM temporary.  Enable for
16662         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16663         (floatunssi<mode>2): Update expander predicate.
16664
16665 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
16666
16667         PR rtl-optimization/61325
16668         * lra-constraints.c (process_address_1): Check scale equal to one
16669         to prevent transformation: base + scale * index => base + new_reg.
16670
16671 2014-06-06  Richard Biener  <rguenther@suse.de>
16672
16673         PR tree-optimization/59299
16674         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16675         a def operand.
16676         (nearest_common_dominator_of_uses): Likewise.
16677         (statement_sink_location): Adjust.  Support sinking loads.
16678
16679 2014-06-06  Martin Jambor  <mjambor@suse.cz>
16680
16681         * ipa-prop.c (get_place_in_agg_contents_list): New function.
16682         (build_agg_jump_func_from_list): Likewise.
16683         (determine_known_aggregate_parts): Renamed to
16684         determine_locally_known_aggregate_parts.  Moved some functionality
16685         to the two functions above, removed bound checks.
16686
16687 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
16688
16689         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16690         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16691         (aarch64_progress_pointer): Likewise.
16692         (aarch64_copy_one_part_and_move_pointers): Likewise.
16693         (aarch64_expand_movmen): Likewise.
16694         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16695         * config/aarch64/aarch64.md (movmem<mode>): New.
16696
16697 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
16698
16699         * targhooks.c (default_add_stmt_cost): Call target specific
16700         hook instead of default one.
16701
16702 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16703
16704         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16705         endianness instead of host endianness.
16706         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16707         comments.
16708
16709 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16710
16711         PR debug/53927
16712         * function.c (instantiate_decls): Process the saved static chain.
16713         (expand_function_start): If not optimizing, save the static chain
16714         onto the stack.
16715         * tree-nested.c (convert_all_function_calls): Always create the static
16716         chain for nested functions if not optimizing.
16717
16718 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16719
16720         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16721
16722 2014-06-06  Richard Biener  <rguenther@suse.de>
16723
16724         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16725         (construct_init_block): Likewise.
16726         (construct_exit_block): Likewise.
16727         (pass_expand::execute): Likewise.
16728         * graphite.c (graphite_transforms): Replace check for current_loops
16729         with a check for > 1 loops.
16730         (pass_graphite_transforms::execute): Adjust.
16731         * ipa-split.c (split_function): Remove check for current_loops.
16732         * omp-low.c (expand_parallel_call): Likewise.
16733         (expand_omp_for_init_counts): Likewise.
16734         (extract_omp_for_update_vars): Likewise.
16735         (expand_omp_for_generic): Likewise.
16736         (expand_omp_sections): Likewise.
16737         (expand_omp_target): Likewise.
16738         * tracer.c (tail_duplicate): Likewise.
16739         (pass_tracer::execute): Likewise.
16740         * trans-mem.c (expand_transaction): Likewise.
16741         * tree-complex.c (expand_complex_div_wide): Likewise.
16742         * tree-eh.c (lower_resx): Likewise.
16743         (cleanup_empty_eh_merge_phis): Likewise.
16744         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16745         current_loops with a check for > 1 loops.
16746         (pass_predcom::execute): Adjust.
16747         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16748         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16749         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16750         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16751         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16752         * tree-switch-conversion.c (process_switch): Likewise.
16753         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16754         * tree-vrp.c (vrp_visit_phi_node): Likewise.
16755         (execute_vrp): Likewise.
16756         * ubsan.c (ubsan_expand_null_ifn): Likewise.
16757
16758 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16759
16760         * rtl.h (insn_location): Declare.
16761         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16762         with UNKNOWN_LOCATION.
16763         * emit-rtl.c (insn_location): New function.
16764         * final.c (notice_source_line): Check that the instruction has a
16765         location before retrieving it and use insn_location.
16766         * modulo-sched.c (loop_single_full_bb_p): Likewise.
16767         * print-rtl.c (print_rtx): Likewise.
16768
16769 2014-06-06  Richard Biener  <rguenther@suse.de>
16770
16771         * passes.def: Move 2nd VRP pass before phi-only-cprop.
16772
16773 2014-06-06  Christian Bruel  <christian.bruel@st.com>
16774
16775         PR tree-optimization/43934
16776         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16777         cost.
16778
16779 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
16780
16781         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
16782         return NO_REGS for extra address and memory constraints.  Handle
16783         operands that match (or are equivalent to something that matches)
16784         extra constant constraints.  Ignore other non-register operands.
16785
16786 2014-06-06  Alan Modra  <amodra@gmail.com>
16787
16788         PR target/61300
16789         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16790         * doc/tm.texi: Regenerate.
16791         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16792         Use throughout in place of REG_PARM_STACK_SPACE.
16793         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16794         "incoming" param.  Pass to rs6000_function_parms_need_stack.
16795         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16796         prototype_p when incoming.  Use function decl when incoming
16797         to handle K&R style functions.
16798         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16799         (INCOMING_REG_PARM_STACK_SPACE): Define.
16800
16801 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16802
16803         PR target/52472
16804         * cfgexpand.c (expand_debug_expr): Use address space of nested
16805         TREE_TYPE for ADDR_EXPR and MEM_REF.
16806
16807 2014-06-05  Jeff Law  <law@redhat.com>
16808
16809         PR tree-optimization/61289
16810         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16811         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
16812         looking for those which match LHS.  All callers changed.
16813         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16814         parameters and code which manipulated them.  All callers changed.
16815         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16816         and DST_MAP parameters.  Simplify invalidation code by just calling
16817         invalidate_equivalences.  All callers changed.
16818         (thread_across_edge): Simplify now that we don't need to maintain
16819         the map of equivalences to invalidate.
16820
16821 2014-06-05  Kai Tietz  <ktietz@redhat.com>
16822             Richard Henderson  <rth@redhat.com>
16823
16824         PR target/46219
16825         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16826         checking for !TARGET_X32.
16827         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16828         (sibcall_intern): New define_insn, plus required peepholes.
16829         (sibcall_pop_intern): Likewise.
16830         (sibcall_value_intern): Likewise.
16831         (sibcall_value_pop_intern): Likewise.
16832
16833 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
16834
16835         * tree-inline.c (tree_function_versioning): Check DF info existence
16836         before accessing it.
16837
16838 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16839
16840         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16841         frame_size.
16842         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16843         aarch64_frame hard_fp_offset and frame_size.
16844         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16845         frame_size; remove original_frame_size.
16846         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16847         (aarch64_initial_elimination_offset): Remove frame_size and
16848         offset.  Use aarch64_frame frame_size.
16849
16850 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16851             Jiong Wang  <jiong.wang@arm.com>
16852             Renlin  <renlin.li@arm.com>
16853
16854         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16855         initialization of R30 offset.  Update offset.  Iterate core
16856         regisers upto X30.  Remove X29, X30 specific code.
16857
16858 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16859             Jiong Wang  <jiong.wang@arm.com>
16860
16861         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16862         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16863         (aarch64_register_saved_on_entry): Adjust test.
16864
16865 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16866
16867         * config/aarch64/aarch64.h (machine_function): Move
16868         saved_varargs_size from here...
16869         (aarch64_frame): ... to here.
16870
16871         * config/aarch64/aarch64.c (aarch64_expand_prologue)
16872         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16873         (aarch64_initial_elimination_offset)
16874         (aarch64_setup_incoming_varargs): Adjust location of
16875         saved_varargs_size.
16876
16877 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16878
16879         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16880         layout comment.
16881
16882 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
16883             Prachi Godbole  <Prachi.Godbole@imgtec.com>
16884
16885         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
16886         mips32r5 entry to use PROCESSOR_P5600.
16887         * config/mips/mips-tables.opt: Regenerate.
16888         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16889         * config/mips/mips.c (mips_fmadd_bypass): New function.
16890         (mips_rtx_cost_data): Add costs for p5600.
16891         (mips_issue_rate): Add support for p5600.
16892         (mips_multipass_dfa_lookahead): Likewise.
16893         * config/mips/mips.h (TUNE_P5600): New define.
16894         (TUNE_MACC_CHAINS): Add TUNE_P5600.
16895         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16896         * config/mips/mips.md: Include p5600.md.
16897         (processor): Add p5600.
16898         * config/mips/p5600.md: New file.
16899
16900 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
16901
16902         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16903         * config/i386/predicates.md (palignr_operand): New.
16904         Indicates if permutation is suitable for palignr instruction.
16905
16906 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
16907
16908         PR tree-optimization/61319
16909         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16910         stmt belongs to loop.
16911
16912 2014-06-05  Richard Biener  <rguenther@suse.de>
16913
16914         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16915         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16916         (lookup_tmp_var): Adjust.
16917         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16918
16919 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16920
16921         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16922
16923 2014-06-05  Marek Polacek  <polacek@redhat.com>
16924
16925         PR c/49706
16926         * doc/invoke.texi: Document -Wlogical-not-parentheses.
16927
16928 2014-06-04  Tom de Vries  <tom@codesourcery.com>
16929
16930         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16931         CONST_INT.
16932
16933 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
16934
16935         PR tree-optimization/61385
16936         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16937
16938 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
16939
16940         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
16941         changed to use fatal_error.
16942         (main): Ensure lto_wrapper_cleanup is run atexit.
16943
16944 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16945
16946         * lra-constraints.c (valid_address_p): Move earlier in file.
16947         (address_eliminator): New structure.
16948         (satisfies_memory_constraint_p): New function.
16949         (satisfies_address_constraint_p): Likewise.
16950         (process_alt_operands, process_address, curr_insn_transform): Use them.
16951
16952 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16953
16954         * lra-int.h (lra_static_insn_data): Make operand_alternative a
16955         const pointer.
16956         (target_lra_int, default_target_lra_int, this_target_lra_int)
16957         (op_alt_data): Delete.
16958         * lra.h (lra_init): Delete.
16959         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16960         (init_insn_code_data_once): Remove op_alt_data handling.
16961         (finish_insn_code_data_once): Likewise.
16962         (init_op_alt_data): Delete.
16963         (get_static_insn_data): Initialize operand_alternative to null.
16964         (free_insn_recog_data): Cast operand_alternative before freeing it.
16965         (setup_operand_alternative): Take the operand_alternative as
16966         parameter and assume it isn't already cached in the static
16967         insn data.
16968         (lra_set_insn_recog_data): Update accordingly.
16969         (lra_init): Delete.
16970         * ira.c (ira_init): Don't call lra_init.
16971         * target-globals.h (this_target_lra_int): Declare.
16972         (target_globals): Remove lra_int.
16973         (restore_target_globals): Update accordingly.
16974         * target-globals.c: Don't include lra-int.h.
16975         (default_target_globals, save_target_globals): Remove lra_int.
16976
16977 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16978
16979         * recog.h (operand_alternative): Convert reg_class, reject,
16980         matched and matches into bitfields.
16981         (preprocess_constraints): New overload.
16982         (preprocess_insn_constraints): New function.
16983         (preprocess_constraints): Take the insn as parameter.
16984         (recog_op_alt): Change into a pointer.
16985         (target_recog): Add x_op_alt.
16986         * recog.c (asm_op_alt): New variable.
16987         (recog_op_alt): Change into a pointer.
16988         (preprocess_constraints): New overload, replacing the old function
16989         definition with one that doesn't use global state.
16990         (preprocess_insn_constraints): New function.
16991         (preprocess_constraints): Use them.  Take the insn as parameter.
16992         Use asm_op_alt for asms.
16993         (recog_init): Free existing x_op_alt entries.
16994         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16995         pointer const.
16996         (make_early_clobber_and_input_conflicts): Likewise.
16997         (process_bb_node_lives): Pass the insn to process_constraints.
16998         * reg-stack.c (check_asm_stack_operands): Likewise.
16999         (subst_asm_stack_regs): Likewise.
17000         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17001         * regrename.c (build_def_use): Likewise.
17002         * sched-deps.c (sched_analyze_insn): Likewise.
17003         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17004         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17005         (note_invalid_constants): Likewise.
17006         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17007         (ix86_legitimate_combined_insn): Make operand_alternative pointer
17008         const.
17009
17010 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17011
17012         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17013         * ira-lives.c (check_and_make_def_conflict): Check for disabled
17014         alternatives.
17015         (make_early_clobber_and_input_conflicts): Likewise.
17016         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17017
17018 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17019
17020         * recog.h (alternative_class): New function.
17021         (which_op_alt): Return a const recog_op_alt.
17022         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17023         (subst_asm_stack_regs): Likewise.
17024         * config/arm/arm.c (note_invalid_constants): Likewise.
17025         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
17026         the operand_alternative; use alternative class instead.
17027         * sel-sched.c (get_reg_class): Likewise.
17028         * regrename.c (build_def_use): Likewise.
17029         (hide_operands, restore_operands, record_out_operands): Update type
17030         accordingly.
17031
17032 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17033
17034         * recog.h (recog_op_alt): Convert to a flat array.
17035         (which_op_alt): New function.
17036         * recog.c (recog_op_alt): Convert to a flat array.
17037         (preprocess_constraints): Update accordingly, grouping all
17038         operands of the same alternative together, rather than the
17039         other way around.
17040         * ira-lives.c (check_and_make_def_conflict): Likewise.
17041         (make_early_clobber_and_input_conflicts): Likewise.
17042         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17043         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17044         (subst_asm_stack_regs): Likewise.
17045         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17046         * regrename.c (hide_operands, record_out_operands): Likewise.
17047         (build_def_use): Likewise.
17048         * sel-sched.c (get_reg_class): Likewise.
17049         * config/arm/arm.c (note_invalid_constants): Likewise.
17050
17051 2014-06-04  Jason Merrill  <jason@redhat.com>
17052
17053         PR c++/51253
17054         PR c++/61382
17055         * gimplify.c (gimplify_arg): Non-static.
17056         * gimplify.h: Declare it.
17057
17058 2014-06-04  Richard Biener  <rguenther@suse.de>
17059
17060         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17061         TREE_PUBLIC and DECL_EXTERNAL decls.
17062
17063 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
17064
17065         * regcprop.c (copyprop_hardreg_forward_1): Account for
17066         HARD_REGNO_CALL_PART_CLOBBERED.
17067
17068 2014-06-04  Richard Biener  <rguenther@suse.de>
17069
17070         * configure.ac: Check whether the underlying type of int64_t
17071         is long or long long.
17072         * configure: Regenerate.
17073         * config.in: Likewise.
17074         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17075         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17076
17077 2014-06-04  Richard Biener  <rguenther@suse.de>
17078
17079         PR tree-optimization/60098
17080         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17081         we hit a kill.
17082         (dse_optimize_stmt): Simplify, now that we found a kill
17083         earlier.
17084
17085 2014-06-04  Richard Biener  <rguenther@suse.de>
17086
17087         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17088         of accesses with non-invariant address.
17089
17090 2014-06-04  Martin Liska  <mliska@suse.cz>
17091
17092         * cgraph.h (cgraph_make_wrapper): New function introduced.
17093         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17094         * ipa-inline.h (inline_analyze_function): The function is global.
17095         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17096
17097 2014-06-04  Martin Liska  <mliska@suse.cz>
17098
17099         * tree.h (private_lookup_attribute_starting): New function.
17100         (lookup_attribute_starting): Likewise.
17101         * tree.c (private_lookup_attribute_starting): Likewise.
17102
17103 2014-06-04  Martin Liska  <mliska@suse.cz>
17104
17105         * cgraph.h (expand_thunk): New argument added.
17106         (address_taken_from_non_vtable_p): New global function.
17107         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17108         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17109         * cgraphunit.c (analyze_function): Likewise.
17110         (assemble_thunks_and_aliases): Argument added to call.
17111         (expand_thunk): New argument forces to produce GIMPLE thunk.
17112
17113 2014-06-04  Martin Liska  <mliska@suse.cz>
17114
17115         * coverage.h (coverage_compute_cfg_checksum): Argument added.
17116         * coverage.c (coverage_compute_cfg_checksum): Likewise.
17117         * profile.c (branch_prob): Likewise.
17118
17119 2014-06-04  Martin Jambor  <mjambor@suse.cz>
17120
17121         PR ipa/61340
17122         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17123         handler for switch on an ipa_ref_use enum.
17124         * ipa-reference.c (analyze_function): Likewise.
17125
17126 2014-06-04  Kai Tietz  <ktietz@redhat.com>
17127
17128         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17129         from old call-instruction.
17130
17131 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
17132
17133         * config/aarch64/aarch64.c (aarch64_classify_address)
17134         (aarch64_legitimize_reload_address): Support full addressing modes
17135         for vector modes.
17136         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17137         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17138
17139 2014-06-03  Andrew Pinski  <apinski@cavium.com>
17140
17141         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17142         for OP0.
17143
17144 2014-06-03  Andrew Pinski  <apinski@cavium.com>
17145
17146         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17147         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17148
17149 2014-06-03  Kai Tietz  <ktietz@redhat.com>
17150
17151         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17152         for 64-bit ms-abi.
17153
17154 2014-06-03  Dehao Chen  <dehao@google.com>
17155
17156         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17157         the same loop.
17158
17159 2014-06-03  Marek Polacek  <polacek@redhat.com>
17160
17161         PR c/60439
17162         * doc/invoke.texi: Document -Wswitch-bool.
17163         * function.c (stack_protect_epilogue): Cast controlling expression of
17164         the switch to int.
17165         * gengtype.c (walk_type): Generate switch expression with its
17166         controlling expression cast to int.
17167
17168 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
17169
17170         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17171         and attiny841.
17172         * config/avr/avr-tables.opt: Regenerate.
17173         * config/avr/t-multilib: Regenerate.
17174         * doc/avr-mmcu.texi: Regenerate.
17175
17176 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
17177             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
17178
17179         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17180         (ata6617c, ata664251): Add new avr35 devices.
17181         (ata6612c): Add new avr4 device.
17182         (ata6613c, ata6614q): Add new avr5 devices.
17183         * config/avr/avr-tables.opt: Regenerate.
17184         * config/avr/t-multilib: Regenerate.
17185         * doc/avr-mmcu.texi: Regenerate.
17186
17187 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17188
17189         * gcc/config/aarch64/aarch64-builtins.c
17190         (aarch64_types_binop_ssu_qualifiers): New static data.
17191         (TYPES_BINOP_SSU): Define.
17192         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17193         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17194         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17195         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17196         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17197         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17198         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17199         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17200         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17201         suffix to builtin function name, remove cast.
17202         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17203         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17204         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17205
17206 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17207
17208         * gcc/config/aarch64/aarch64-builtins.c
17209         (aarch64_types_binop_uus_qualifiers,
17210         aarch64_types_shift_to_unsigned_qualifiers,
17211         aarch64_types_unsigned_shiftacc_qualifiers): Define.
17212         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17213         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17214         sqshlu_n, uqshl_n): Update qualifiers.
17215         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17216         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17217         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17218         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17219         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17220         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17221         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17222         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17223         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17224         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17225         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17226         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17227         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17228         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17229         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17230         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17231         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17232         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17233         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17234         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17235         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17236         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17237         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17238         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17239         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17240         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17241         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17242
17243 2014-06-03  Teresa Johnson  <tejohnson@google.com>
17244
17245         * tree-sra.c (modify_function): Record caller nodes after rebuild.
17246
17247 2014-06-02  Jason Merrill  <jason@redhat.com>
17248
17249         PR c++/61020
17250         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17251
17252 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17253
17254         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17255         location == 0.
17256
17257 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17258
17259         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17260         New pattern.
17261         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17262         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17263         * config/aarch64/iterators.md (REVERSE): New iterator.
17264         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17265         (rev_op): New int_attribute.
17266         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17267         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17268         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17269         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17270         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17271         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17272         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17273         Replace temporary __asm__ with __builtin_shuffle.
17274
17275 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
17276
17277         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17278         mips64r5.
17279         * config/mips/mips-tables.opt: Regenerate.
17280         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17281         to use mips_isa_rev rather than ISA_MIPS32R2.
17282         * config/mips/mips.h (ISA_MIPS32R3): New define.
17283         (ISA_MIPS32R5): New define.
17284         (ISA_MIPS64R3): New define.
17285         (ISA_MIPS64R5): New define.
17286         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17287         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17288         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17289         and mips64r5.
17290         (MIPS_ISA_SYNCI_SPEC): Likewise.
17291         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17292         (LINK_SPEC): Added mips32r3 and mips32r5.
17293         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17294         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17295         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17296         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17297         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17298         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17299         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17300
17301 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
17302
17303         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17304         options.
17305         * config/mips/mips.opt (mxpa): New option.
17306         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17307         assembler.
17308
17309 2014-06-03  Martin Jambor  <mjambor@suse.cz>
17310
17311         PR ipa/61160
17312         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17313         thunks.
17314
17315 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17316
17317         PR tree-optimization/61328
17318         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17319         initialization from find_bswap_or_nop_1.
17320         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17321         in source_expr2 before using the size value the function sets. Also
17322         make use of init_symbolic_number () in both the old place and
17323         find_bswap_or_nop_load () to avoid reading uninitialized memory when
17324         doing recursion in the GIMPLE_BINARY_RHS case.
17325
17326 2014-06-03  Richard Biener  <rguenther@suse.de>
17327
17328         PR tree-optimization/61383
17329         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17330         stmts can't trap.
17331
17332 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
17333
17334         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17335         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17336         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17337         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17338         in this file.
17339         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17340         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17341         * system.h: ...here and make it unconditional.
17342         * target.def (conditional_register_usage): Mention
17343         define_register_constraint instead of old-style constraint macros.
17344         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17345         * doc/tm.texi: Regenerate.
17346         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17347         protected by !USE_MD_CONSTRAINTS.
17348         * config/frv/frv.md: Remove quote from old version of documentation.
17349         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17350         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17351         CONST_DOUBLE_OK_FOR_LETTER.
17352         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17353
17354 2014-06-02  Andrew Pinski  <apinski@cavium.com>
17355
17356         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17357         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17358         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17359         file whose name depends on -mabi= and -mbig-endian.
17360         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17361         Handle LP64 better and handle ilp32 too.
17362         (MULTILIB_OPTIONS): Delete.
17363         (MULTILIB_DIRNAMES): Delete.
17364
17365 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
17366
17367         * expr.h: Remove prototypes of functions defined in builtins.c.
17368         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17369         Remove prototypes of functions defined in builtins.c.
17370         * builtins.h: Update prototype list to include all exported functions.
17371         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17372         no_c99_libc_has_function): Move to targhooks.c
17373         (build_string_literal, build_call_expr_loc_array,
17374         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17375         to tree.c.
17376         (expand_builtin_object_size, fold_builtin_object_size): Make static.
17377         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17378         no_c99_libc_has_function): Relocate from builtins.c.
17379         * tree.c: Include builtins.h.
17380         (build_call_expr_loc_array, build_call_expr_loc_vec,
17381         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17382         from builtins.c.
17383         * fold-const.h (fold_fma): Move prototype to builtins.h.
17384         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17385         * asan.c: Include builtins.h.
17386         * cfgexpand.c: Likewise.
17387         * convert.c: Likewise.
17388         * emit-rtl.c: Likewise.
17389         * except.c: Likewise.
17390         * expr.c: Likewise.
17391         * fold-const.c: Likewise.
17392         * gimple-fold.c: Likewise.
17393         * gimple-ssa-strength-reduction.c: Likewise.
17394         * gimplify.c: Likewise.
17395         * ipa-inline.c: Likewise.
17396         * ipa-prop.c: Likewise.
17397         * lto-streamer-out.c: Likewise.
17398         * stmt.c: Likewise.
17399         * tree-inline.c: Likewise.
17400         * tree-object-size.c: Likewise.
17401         * tree-sra.c: Likewise.
17402         * tree-ssa-ccp.c: Likewise.
17403         * tree-ssa-forwprop.c: Likewise.
17404         * tree-ssa-loop-ivcanon.c: Likewise.
17405         * tree-ssa-loop-ivopts.c: Likewise.
17406         * tree-ssa-math-opts.c: Likewise.
17407         * tree-ssa-reassoc.c: Likewise.
17408         * tree-ssa-threadedge.c: Likewise.
17409         * tree-streamer-in.c: Likewise.
17410         * tree-vect-data-refs.c: Likewise.
17411         * tree-vect-patterns.c: Likewise.
17412         * tree-vect-stmts.c: Likewise.
17413         * config/aarch64/aarch64.c: Likewise.
17414         * config/alpha/alpha.c: Likewise.
17415         * config/arc/arc.c: Likewise.
17416         * config/arm/arm.c: Likewise.
17417         * config/avr/avr.c: Likewise.
17418         * config/bfin/bfin.c: Likewise.
17419         * config/c6x/c6x.c: Likewise.
17420         * config/cr16/cr16.c: Likewise.
17421         * config/cris/cris.c: Likewise.
17422         * config/epiphany/epiphany.c: Likewise.
17423         * config/fr30/fr30.c: Likewise.
17424         * config/frv/frv.c: Likewise.
17425         * config/h8300/h8300.c: Likewise.
17426         * config/i386/i386.c: Likewise.
17427         * config/i386/winnt.c: Likewise.
17428         * config/ia64/ia64.c: Likewise.
17429         * config/iq2000/iq2000.c: Likewise.
17430         * config/lm32/lm32.c: Likewise.
17431         * config/m32c/m32c.c: Likewise.
17432         * config/m32r/m32r.c: Likewise.
17433         * config/m68k/m68k.c: Likewise.
17434         * config/mcore/mcore.c: Likewise.
17435         * config/mep/mep.c: Likewise.
17436         * config/microblaze/microblaze.c: Likewise.
17437         * config/mips/mips.c: Likewise.
17438         * config/mmix/mmix.c: Likewise.
17439         * config/mn10300/mn10300.c: Likewise.
17440         * config/moxie/moxie.c: Likewise.
17441         * config/msp430/msp430.c: Likewise.
17442         * config/nds32/nds32.c: Likewise.
17443         * config/pa/pa.c: Likewise.
17444         * config/pdp11/pdp11.c: Likewise.
17445         * config/picochip/picochip.c: Likewise.
17446         * config/rl78/rl78.c: Likewise.
17447         * config/rs6000/rs6000.c: Likewise.
17448         * config/rx/rx.c: Likewise.
17449         * config/s390/s390.c: Likewise.
17450         * config/score/score.c: Likewise.
17451         * config/sh/sh.c: Likewise.
17452         * config/sparc/sparc.c: Likewise.
17453         * config/spu/spu.c: Likewise.
17454         * config/stormy16/stormy16.c: Likewise.
17455         * config/tilegx/tilegx.c: Likewise.
17456         * config/tilepro/tilepro.c: Likewise.
17457         * config/v850/v850.c: Likewise.
17458         * config/vax/vax.c: Likewise.
17459         * config/xtensa/xtensa.c: Likewise.
17460
17461 2014-06-02  Jeff Law  <law@redhat.com>
17462
17463         PR rtl-optimization/61094
17464         * ree.c (combine_reaching_defs): Do not reextend an insn if it
17465         was marked as do_no_reextend.  If a copy is needed to eliminate
17466         an extension, then mark it as do_not_reextend.
17467
17468 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17469
17470         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17471
17472 2014-06-02  Richard Henderson  <rth@redhat.com>
17473
17474         PR target/61336
17475         * config/alpha/alpha.c (print_operand_address): Allow symbolic
17476         addresses inside asms.  Use output_operand_lossage instead of
17477         gcc_unreachable.
17478
17479 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
17480
17481         PR target/61239
17482         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17483         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17484
17485 2014-06-02  Tom de Vries  <tom@codesourcery.com>
17486
17487         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17488         case that x has VOIDmode.
17489
17490 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
17491
17492         * varasm.c (copy_constant): Delete function.
17493         (build_constant_desc): Don't call it.
17494
17495 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17496
17497         PR target/61154
17498         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17499         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17500         with immediate_operand.
17501
17502 2014-06-02  Andreas Schwab  <schwab@suse.de>
17503
17504         * config/ia64/ia64.c
17505         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17506         pending_data_specs first.
17507
17508 2014-06-02  Richard Biener  <rguenther@suse.de>
17509
17510         PR tree-optimization/61378
17511         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17512         valueized_anything.
17513
17514 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
17515
17516         * config/i386/constraints.md (Bw): Rename from 'w'.
17517         (Bz): Rename from 'z'.
17518         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17519
17520 2014-06-01  Kai Tietz  <ktietz@redhat.com>
17521
17522         PR target/61377
17523         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17524         * config/i386/i386.md (sibcall_insn_operand): Use Bs
17525         instead of m constraint.
17526
17527 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
17528
17529         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17530         a separate alternative where the scratch operand 2 is marked as
17531         early clobber.
17532
17533 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
17534
17535         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17536         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17537         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17538         and __builtins_arm_get_fpscr.
17539         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17540         __builtins_arm_get_fpscr.
17541         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17542         __builtins_arm_ldfpscr.
17543         (arm_atomic_assign_expand_fenv): New function.
17544         * config/arm/vfp.md (set_fpscr): New pattern.
17545         (get_fpscr) : Likewise.
17546         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17547         VUNSPEC_SET_FPSCR.
17548         * doc/extend.texi (AARCH64 Built-in Functions) : Document
17549         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17550
17551 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
17552
17553         * asan.c (report_error_func): Add SLOW_P argument, use
17554         BUILT_IN_ASAN_*_N if set.
17555         (build_check_stmt): Likewise.
17556         (instrument_derefs): If T has insufficient alignment,
17557         force same handling as for odd sizes.
17558
17559         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17560         BUILT_IN_ASAN_REPORT_STORE_N): New.
17561         * asan.c (struct asan_mem_ref): Change access_size type to
17562         HOST_WIDE_INT.
17563         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17564         update_mem_ref_hash_table): Likewise.
17565         (asan_mem_ref_hasher::hash): Hash in a HWI.
17566         (report_error_func): Change size_in_bytes argument to HWI.
17567         Use *_N builtins if size_in_bytes is larger than 16 or not power of
17568         two.
17569         (build_shadow_mem_access): New function.
17570         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
17571         Handle size_in_bytes not power of two or larger than 16.
17572         (instrument_derefs): Don't give up if size_in_bytes is not
17573         power of two or is larger than 16.
17574
17575 2014-05-30  Kai Tietz  <ktietz@redhat.com>
17576
17577         PR target/60104
17578         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17579         for sibling-tail-calls.
17580         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17581         to its use.
17582         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17583         (sibcall_insn_operand): Add check for sibcall_memory_operand.
17584
17585 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17586
17587         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17588         * config/avr/avr-tables.opt: Regenerate.
17589         * config/avr/t-multilib: Regenerate.
17590         * doc/avr-mmcu.texi: Regenerate.
17591
17592 2014-05-30  Ian Lance Taylor  <iant@google.com>
17593
17594         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17595         target("sse").
17596
17597 2014-05-30  Tom de Vries  <tom@codesourcery.com>
17598
17599         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17600         Redefine as true.
17601
17602 2014-05-30  Tom de Vries  <tom@codesourcery.com>
17603
17604         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17605         * lra.c (initialize_lra_reg_info_element): Add init of
17606         actual_call_used_reg_set field.
17607         (lra): Call lra_create_live_ranges before lra_inheritance for
17608         -fuse-caller-save.
17609         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17610         -fuse-caller-save.
17611         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17612         instead of call_used_reg_set for -fuse-caller-save.
17613         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17614
17615 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17616
17617         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17618         to mov_imm.
17619         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17620
17621 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
17622
17623         * ira.c (ira_get_dup_out_num): Check for output operands at
17624         the start of the loop.  Handle cases where an included alternative
17625         follows an excluded one.
17626
17627 2014-05-29  Mike Stump  <mikestump@comcast.net>
17628
17629         PR debug/61352
17630         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17631         post ld passes when lto is used.
17632
17633 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
17634
17635         PR rtl-optimization/61325
17636         * lra-constraints.c (process_address): Rename to process_address_1.
17637         (process_address): New function.
17638
17639 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
17640
17641         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17642         TYPES_BINOPV): New static data.
17643         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17644         New builtin.
17645         * config/aarch64/aarch64-simd.md (aarch64_ext,
17646         aarch64_im_lane_boundsi): New patterns.
17647         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17648         patterns for EXT.
17649         (aarch64_evpc_ext): New function.
17650
17651         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17652
17653         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17654         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17655         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17656         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17657         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17658
17659 2014-05-29  Tom de Vries  <tom@codesourcery.com>
17660
17661         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17662
17663 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
17664             Richard Sandiford  <rdsandiford@googlemail.com>
17665
17666         * arm/iterators.md (shiftable_ops): New code iterator.
17667         (t2_binop0, arith_shift_insn): New code attributes.
17668         * arm/predicates.md (shift_nomul_operator): New predicate.
17669         * arm/arm.md (insn_enabled): Delete.
17670         (enabled): Remove insn_enabled test.
17671         (*arith_shiftsi): Delete.  Replace with ...
17672         (*<arith_shift_insn>_multsi): ... new pattern.
17673         (*<arith_shift_insn>_shiftsi): ... new pattern.
17674         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17675
17676 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
17677             Tom de Vries  <tom@codesourcery.com>
17678
17679         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17680         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17681         clobber.
17682         (mips_split_call): Use POST_CALL_TMP_REG.
17683         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17684
17685 2014-05-29  Tom de Vries  <tom@codesourcery.com>
17686
17687         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17688         with #ifdef STACK_REGS.
17689
17690 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
17691
17692         * varasm.c (get_variable_section): Walk aliases.
17693         (place_block_symbol): Walk aliases.
17694
17695 2014-05-28  Tom de Vries  <tom@codesourcery.com>
17696
17697         Revert:
17698         2014-05-28  Tom de Vries  <tom@codesourcery.com>
17699
17700         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17701         * lra.c (initialize_lra_reg_info_element): Add init of
17702         actual_call_used_reg_set field.
17703         (lra): Call lra_create_live_ranges before lra_inheritance for
17704         -fuse-caller-save.
17705         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17706         -fuse-caller-save.
17707         * lra-constraints.c (need_for_call_save_p): Use
17708         actual_call_used_reg_set instead of call_used_reg_set for
17709         -fuse-caller-save.
17710         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17711
17712 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
17713
17714         * doc/md.texi: Document that the % constraint character must
17715         be at the beginning of the string.
17716         * genoutput.c (validate_insn_alternatives): Check that '=',
17717         '+' and '%' only appear at the beginning of a constraint.
17718         * ira.c (commutative_constraint_p): Delete.
17719         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17720         at the start of the string.
17721         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17722         duplicate '='s.
17723         * config/arm/neon.md (bicdi3_neon): Likewise.
17724         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17725         (slt_si, sltu_si): Likewise.
17726         * config/vax/vax.md (sbcdi3): Likewise.
17727         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17728         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17729         (mul64): Move '%' to beginning of constraint.
17730         * config/arm/arm.md (*xordi3_insn): Likewise.
17731         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17732         (xorsi3): Likewise.
17733
17734 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
17735
17736         * doc/md.texi: Document the restrictions on the "enabled" attribute.
17737
17738 2014-05-28  Jason Merrill  <jason@redhat.com>
17739
17740         PR c++/47202
17741         * cgraph.h (symtab_node::get_comdat_group_id): New.
17742         * cgraphunit.c (analyze_functions): Call it.
17743         * symtab.c (dump_symtab_node): Likewise.
17744         * tree.c (decl_comdat_group_id): New.
17745         * tree.h: Declare it.
17746         * lto-streamer-out.c (write_symbol): Use it.
17747         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17748
17749 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17750
17751         PR bootstrap/PR61146
17752         * wide-int.cc: Do not include longlong.h when compiling with clang.
17753
17754 2014-05-28  Richard Biener  <rguenther@suse.de>
17755
17756         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17757         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17758         (vrp_visit_assignment_or_call): Print less vertical space.
17759         (vrp_visit_stmt): Likewise.
17760         (vrp_visit_phi_node): Likewise.  For a PHI argument with
17761         VR_VARYING range consider recording it as copy.
17762
17763 2014-05-28  Richard Biener  <rguenther@suse.de>
17764
17765         Revert
17766         2014-05-28  Richard Biener  <rguenther@suse.de>
17767
17768         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17769
17770 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17771
17772         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17773         sufficiently aligned and an offset is used at the same time.
17774         (expand_expr_real_1): Likewise.
17775
17776 2014-05-28  Richard Biener  <rguenther@suse.de>
17777
17778         PR middle-end/61045
17779         * fold-const.c (fold_comparison): When folding
17780         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17781         the sign of the remaining constant operand stays the same.
17782
17783 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
17784
17785         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17786         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17787         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17788         to the assembler.
17789         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17790         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17791         (m32bit-doubles) Likewise.
17792         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17793         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17794         option for RL78.
17795
17796 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17797
17798         * configure.ac ($gcc_cv_ld_clearcap): New test.
17799         * configure: Regenerate.
17800         * config.in: Regenerate.
17801         * config/sol2.opt (mclear-hwcap): New option.
17802         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17803         * config/sol2-clearcap.map: Moved here from
17804         testsuite/gcc.target/i386/clearcap.map.
17805         * config/sol2-clearcapv2.map: Move here from
17806         gcc.target/i386/clearcapv2.map.
17807         * config/t-sol2 (install): Depend on install-clearcap-map.
17808         (install-clearcap-map): New target.
17809         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17810         -mclear-hwcap.
17811
17812 2014-05-28  Richard Biener  <rguenther@suse.de>
17813
17814         * hwint.h (*_HALF_WIDE_INT*): Move to ...
17815         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17816         ... here and remove the rest.
17817         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17818
17819 2014-05-28  Richard Biener  <rguenther@suse.de>
17820
17821         PR tree-optimization/61335
17822         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17823         new range fails, drop to varying.
17824
17825 2014-05-28  Olivier Hainque  <hainque@adacore.com>
17826
17827         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17828         (CPP_SPEC): Add entry for -mcpu=8548.
17829         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17830         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17831
17832 2014-05-28  Tom de Vries  <tom@codesourcery.com>
17833
17834         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17835         * lra.c (initialize_lra_reg_info_element): Add init of
17836         actual_call_used_reg_set field.
17837         (lra): Call lra_create_live_ranges before lra_inheritance for
17838         -fuse-caller-save.
17839         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17840         -fuse-caller-save.
17841         * lra-constraints.c (need_for_call_save_p): Use
17842         actual_call_used_reg_set instead of call_used_reg_set for
17843         -fuse-caller-save.
17844         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17845
17846 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
17847             Tom de Vries  <tom@codesourcery.com>
17848
17849         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17850         to gccoptlist.
17851         (@item -fuse-caller-save): New item.
17852
17853 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
17854             Tom de Vries  <tom@codesourcery.com>
17855
17856         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17857         OPT_fuse_caller_save.
17858
17859 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
17860             Tom de Vries  <tom@codesourcery.com>
17861
17862         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17863         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17864         get_call_reg_set_usage.
17865         * resource.c (mark_set_resources, mark_target_live_regs): Use
17866         get_call_reg_set_usage.
17867         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17868         field.
17869         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17870         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17871         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17872         * ira-build.c (ira_create_allocno): Init
17873         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17874         (create_cap_allocno, propagate_allocno_info)
17875         (propagate_some_info_from_allocno)
17876         (copy_info_to_removed_store_destinations): Handle
17877         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17878         * ira-costs.c (ira_tune_allocno_costs): Use
17879         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17880
17881 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
17882             Tom de Vries  <tom@codesourcery.com>
17883
17884         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17885         and function_used_regs_valid fields.
17886         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17887         find_all_hard_reg_sets.
17888         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17889         (get_call_reg_set_usage): New function.
17890         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17891         * regs.h (get_call_reg_set_usage): Declare.
17892
17893 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
17894
17895         PR libgcc/61152
17896         * config/dbx.h (License): Add Runtime Library Exception.
17897         * config/newlib-stdint.h (License): Same.
17898         * config/rtems.h (License): Same
17899         * config/initfini-array.h (License): Same
17900         * config/v850/v850.h (License): Same.
17901         * config/v850/v850-opts.h (License): Same
17902         * config/v850/rtems.h (License): Same.
17903
17904 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
17905
17906         PR target/61044
17907         * doc/extend.texi (Local Labels): Note that label differences are
17908         not supported for AVR.
17909
17910 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
17911             Olivier Hainque  <hainque@adacore.com>
17912
17913         * rtl.h (set_for_reg_notes): Declare.
17914         * emit-rtl.c (set_for_reg_notes): New function.
17915         (set_unique_reg_note): Use it.
17916         * optabs.c (add_equal_note): Likewise
17917
17918 2014-05-27  Andrew Pinski  <apinski@cavium.com>
17919
17920         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17921         Use <w> for the register in assembly template.
17922         (stack_protect_test): Use the mode of operands[0] for the result.
17923         (stack_protect_test_<mode>): Use <w> for the register
17924         in assembly template.
17925
17926 2014-05-27  DJ Delorie  <dj@redhat.com>
17927
17928         * config/rx/rx.c (add_vector_labels): New.
17929         (rx_output_function_prologue): Call it.
17930         (rx_handle_func_attribute): Don't require empty arguments.
17931         (rx_handle_vector_attribute): New.
17932         (rx_attribute_table): Add "vector" attribute.
17933         * doc/extend.texi (interrupt, vector): Document new/changed
17934         RX-specific attributes.
17935
17936         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17937
17938 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17939
17940         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17941         predicate to detect a negative quotient.
17942
17943 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17944
17945         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17946         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17947         Add X - Y CMP 0 to X CMP Y transformation.
17948         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17949
17950 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
17951
17952         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17953         before printing.
17954
17955 2014-05-27  Steve Ellcey  <sellcey@mips.com>
17956
17957         * config/mips/mips.c: Add include of cgraph.h.
17958
17959 2014-05-27  Richard Biener  <rguenther@suse.de>
17960
17961         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17962
17963 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
17964
17965         PR libgcc/61152
17966         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17967         * config/arm/arm-cores.def (License): Same.
17968         * config/arm/arm-opts.h (License): Same.
17969         * config/arm/aout.h (License): Same.
17970         * config/arm/bpabi.h (License): Same.
17971         * config/arm/elf.h (License): Same.
17972         * config/arm/linux-elf.h (License): Same.
17973         * config/arm/linux-gas.h (License): Same.
17974         * config/arm/netbsd-elf.h (License): Same.
17975         * config/arm/uclinux-eabi.h (License): Same.
17976         * config/arm/uclinux-elf.h (License): Same.
17977         * config/arm/vxworks.h (License): Same.
17978
17979 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17980
17981         * config/arm/neon.md (neon_bswap<mode>): New pattern.
17982         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17983         (arm_init_neon_builtins): Handle NEON_BSWAP.
17984         Define required type nodes.
17985         (arm_expand_neon_builtin): Handle NEON_BSWAP.
17986         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17987         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17988         * config/arm/iterators.md (VDQHSD): New mode iterator.
17989
17990 2014-05-27  Richard Biener  <rguenther@suse.de>
17991
17992         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17993         Try using literal operands when comparing value-ranges failed.
17994
17995 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
17996
17997         * ira.c (commutative_operand): Adjust for change to recog_data.
17998         [Missing from previous commit.]
17999
18000 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18001
18002         * system.h (TEST_BIT): New macro.
18003         * recog.h (alternative_mask): New type.
18004         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18005         (recog_data_d): Replace alternative_enabled_p array with
18006         enabled_alternatives.
18007         (target_recog): New structure.
18008         (default_target_recog, this_target_recog): Declare.
18009         (get_enabled_alternatives, recog_init): Likewise.
18010         * recog.c (default_target_recog, this_target_recog): New variables.
18011         (get_enabled_alternatives): New function.
18012         (extract_insn): Use it.
18013         (recog_init): New function.
18014         (preprocess_constraints, constrain_operands): Adjust for change to
18015         recog_data.
18016         * postreload.c (reload_cse_simplify_operands): Likewise.
18017         * reload.c (find_reloads): Likewise.
18018         * ira-costs.c (record_reg_classes): Likewise.
18019         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
18020         all alternatives after a disabled one would be skipped.
18021         (ira_implicitly_set_insn_hard_regs): Likewise.
18022         * ira.c (ira_setup_alts): Adjust for change to recog_data.
18023         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18024         with enabled_alternatives.
18025         * lra.c (free_insn_recog_data): Update accordingly.
18026         (lra_update_insn_recog_data): Likewise.
18027         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
18028         * lra-constraints.c (process_alt_operands): Likewise.  Handle
18029         only_alternative as part of the enabled mask.
18030         * target-globals.h (this_target_recog): Declare.
18031         (target_globals): Add a recog field.
18032         (restore_target_globals): Restore this_target_recog.
18033         * target-globals.c: Include recog.h.
18034         (default_target_globals): Initialize recog field.
18035         (save_target_globals): Likewise.
18036         * reginfo.c (reinit_regs): Call recog_init.
18037         * toplev.c (backend_init_target): Likewise.
18038
18039 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18040
18041         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18042         rather than any named insn's code.
18043
18044 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18045
18046         PR libgcc/61152
18047         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18048         * config/arm/arm-cores.def (License): Same.
18049
18050 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
18051
18052         * tree.h (decl_comdat_group): Declare.
18053         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18054         * tree.c (decl_comdat_group): Here.
18055
18056 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
18057
18058         PR rtl-optimization/61222
18059         * combine.c (simplify_shift_const_1): When moving a PLUS outside
18060         the shift, truncate the PLUS operand to the result mode.
18061
18062 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
18063
18064         PR target/61271
18065         * config/i386/i386.c (ix86_rtx_costs)
18066         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18067         Fix condition.
18068
18069 2014-05-26  Martin Jambor  <mjambor@suse.cz>
18070
18071         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18072         subreg uses.
18073
18074 2014-05-26  Richard Biener  <rguenther@suse.de>
18075
18076         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18077         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18078         Provide specializations.
18079         (wi::int_traits <HOST_WIDE_INT>,
18080         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18081
18082 2014-05-26  Alan Modra  <amodra@gmail.com>
18083
18084         PR target/61098
18085         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18086         params and return a bool.  Remove dead code.  Update comment.
18087         Assert we have a const_int source.  Remove bogus code from
18088         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
18089         handling of constants > 2G and reg_equal note, from..
18090         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
18091         return value.  Update comment.  If we can, use a new pseudo
18092         for intermediate calculations.
18093         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18094         prototype.
18095         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18096         call to rs6000_emit_set_const in splitter.
18097         (movdi_internal64+2, +3): Likewise.
18098
18099 2014-05-26  Richard Biener  <rguenther@suse.de>
18100
18101         * system.h: Define __STDC_FORMAT_MACROS before
18102         including inttypes.h.
18103         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18104         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18105         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18106         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18107         HOST_WIDEST_INT_C): Remove.
18108         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18109         if C99 inttypes.h is not available.
18110         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18111         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18112         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18113         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18114         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18115         (struct output_info): Likewise.
18116         (print_statistics): Adjust.
18117         (dump_bitmap_statistics): Likewise.
18118         * bt-load.c (migrate_btr_defs): Print with PRId64.
18119         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18120         (MAX_SAFE_MULTIPLIER): Adjust.
18121         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18122         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18123         dump_cgraph_node): Likewise.
18124         * final.c (dump_basic_block_info): Likewise.
18125         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18126         * gcov.c (format_gcov): Likewise.
18127         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
18128         for calculation.
18129         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18130         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18131         (inline_small_functions, dump_overall_stats, dump_inline_stats):
18132         Use PRId64 for dumping.
18133         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18134         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18135         (add_allocno_hard_regs): Adjust.
18136         * loop-doloop.c (doloop_modify): Print using PRId64.
18137         * loop-iv.c (inverse): Compute in uint64_t.
18138         (determine_max_iter, iv_number_of_iterations): Likewise.
18139         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18140         Print using PRId64.
18141         * lto-streamer-out.c (write_symbol): Use uint64_t.
18142         * mcf.c (CAP_INFINITY): Use int64_t maximum.
18143         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18144         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18145         * modulo-sched.c (const_iteration_count): Use int64_t.
18146         (sms_schedule): Dump using PRId64.
18147         * predict.c (dump_prediction): Likewise.
18148         * pretty-print.h (pp_widest_integer): Remove.
18149         * profile.c (get_working_sets, is_edge_inconsistent,
18150         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18151         * tree-pretty-print.c (pp_double_int): Remove case handling
18152         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18153         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18154         and adjust users.
18155         (pass_optimize_bswap::execute): Remove restriction on hosts.
18156         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18157         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18158         * tree.c (widest_int_cst_value): Remove.
18159         * tree.h (widest_int_cst_value): Likewise.
18160         * value-prof.c (dump_histogram_value): Print using PRId64.
18161         * gengtype.c (main): Also inject int64_t.
18162         * ggc-page.c (struct max_alignment): Use int64_t.
18163         * alloc-pool.c (struct allocation_object_def): Likewise.
18164         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18165         for computation.
18166         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18167         * doc/tm.texi: Regenerated.
18168         * gengtype-lex.l (IWORD): Handle [u]int64_t.
18169         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18170         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18171         mmix_output_register_setting): Use [u]int64_t in prototypes.
18172         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18173         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18174         mmix_output_octa, mmix_output_shifted_value): Adjust.
18175         (mmix_intval): Adjust.  Remove unreachable case.
18176         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18177
18178 2014-05-26  Richard Biener  <rguenther@suse.de>
18179
18180         * configure.ac: Drop __int64 type check.  Insist that we
18181         found uint64_t and int64_t.
18182         * hwint.h (HOST_BITS_PER___INT64): Remove.
18183         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18184         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18185         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18186         (HOST_WIDEST_FAST_INT): Remove __int64 case.
18187         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18188         for dst_q_src_df_rms_cdt.
18189         * configure: Regenerate.
18190         * config.in: Likewise.
18191
18192 2014-05-26  Michael Tautschnig  <mt@debian.org>
18193
18194         PR target/61249
18195         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18196         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18197
18198 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18199
18200         PR rtl-optimization/61278
18201         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18202
18203 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18204
18205         PR rtl-optimization/61220
18206         Part of PR rtl-optimization/61225
18207         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18208         insn; skip split_edge for a block with only one successor.
18209
18210 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18211
18212         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18213         for variables.
18214
18215 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18216
18217         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18218         (update_vtable_references): New function.
18219         (function_and_variable_visibility): Rewrite also vtable initializers.
18220         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18221
18222 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18223
18224         * ggc.h (ggc_grow): New function.
18225         * ggc-none.c (ggc_grow): New function.
18226         * ggc-page.c (ggc_grow): Likewise.
18227
18228 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18229
18230         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18231         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18232         comdat_can_be_unshared_p, cgraph_externally_visible_p,
18233         varpool_externally_visible_p, can_replace_by_local_alias,
18234         update_visibility_by_resolution_info, function_and_variable_visibility,
18235         pass_data_ipa_function_and_variable_visibility,
18236         make_pass_ipa_function_and_variable_visibility,
18237         whole_program_function_and_variable_visibility,
18238         pass_data_ipa_whole_program_visibility,
18239         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18240         * cgraph.h (cgraph_local_node_p): Declare.
18241         * ipa-visibility.c: New file.
18242         * Makefile.in (OBJS): Add ipa-visiblity.o
18243
18244 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18245
18246         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18247         that var decl is available.
18248
18249 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18250
18251         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18252         symtab_node pointer.
18253         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18254         (find_decls_types_r): Do not walk COMDAT_GROUP.
18255         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18256         * varasm.c (make_decl_one_only): Use set_comdat_group;
18257         create node if needed.
18258         * ipa-inline-transform.c (save_inline_function_body): Update
18259         way we decl->symtab mapping.
18260         * symtab.c (symtab_hash, hash_node, eq_node
18261         symtab_insert_node_to_hashtable): Remove.
18262         (symtab_register_node): Update.
18263         (symtab_unregister_node): Update.
18264         (symtab_get_node): Reimplement as inline function.
18265         (symtab_add_to_same_comdat_group): Update.
18266         (symtab_dissolve_same_comdat_group_list): Update.
18267         (dump_symtab_base): Update.
18268         (verify_symtab_base): Update.
18269         (symtab_make_decl_local): Update.
18270         (fixup_same_cpp_alias_visibility): Update.
18271         (symtab_nonoverwritable_alias): Update.
18272         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18273         * ipa.c (update_visibility_by_resolution_info): UPdate.
18274         * bb-reorder.c: Include cgraph.h
18275         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18276         with comdat groups.
18277         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18278         * cgraph.c (cgraph_get_create_node): Update.
18279         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18280         and comdat_group_.
18281         (symtab_get_node): Make inline.
18282         (symtab_insert_node_to_hashtable): Remove.
18283         (symtab_can_be_discarded): Update.
18284         (decl_comdat_group): New function.
18285         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18286         Update.
18287         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18288         comdat group name.
18289         (read_comdat_group): New function.
18290         (input_node, input_varpool_node): Use it.
18291         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18292         comdat groups.
18293         * mips.c (mips_start_unique_function): Likewise.
18294         (ix86_code_end): Likewise.
18295         (rs6000_code_end): Likweise.
18296         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18297
18298 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18299
18300         * gengtype-state.c (fatal_reading_state): Bring offline.
18301         * optabs.c (widening_optab_handler): Bring offline.
18302         * optabs.h (widening_optab_handler): Likewise.
18303         * final.c (get_attr_length_1): Likewise.
18304
18305 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18306
18307         * sched-int.h (sd_iterator_cond): Manually tail recurse.
18308
18309 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18310
18311         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18312         (ppc440-compare): Include shift with dot.
18313         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18314         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18315         without dot.
18316         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18317         without dot.
18318         (e6500_sfx2): Include it.
18319         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18320         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18321         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18322         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18323         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18324         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18325         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18326         *lshiftrt_internal1le, *lshiftrt_internal1be,
18327         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18328         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18329         *rotldi3_internal10le, *rotldi3_internal10be,
18330         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18331         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18332         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18333         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18334         define_insns): Use type "shift" in the appropriate alternatives.
18335
18336 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18337
18338         * config/rs6000/rs6000.md (type): Add "logical".  Delete
18339         "fast_compare".
18340         (dot): Adjust comment.
18341         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18342         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18343         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18344         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18345         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18346         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18347         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18348         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18349
18350         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18351         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18352         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18353         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18354         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18355         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18356         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18357         * config/rs6000/8540.md (ppc8540_su): Adjust.
18358         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18359         cell-cmp-microcoded): Adjust.
18360         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18361         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18362         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18363         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18364         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18365         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18366         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18367         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18368         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18369         Adjust.
18370         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18371         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18372         Adjust.  Adjust comment.
18373         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18374         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18375
18376 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18377
18378         * config/rs6000/rs6000.md (type): Add "add".
18379         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18380         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18381         define_insns): Use it.
18382         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18383
18384         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18385         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18386         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18387         * config/rs6000/601.md (ppc601-integer): Adjust.
18388         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18389         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18390         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18391         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18392         * config/rs6000/8540.md (ppc8540_su): Adjust.
18393         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18394         cell-cmp-microcoded): Adjust.
18395         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18396         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18397         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18398         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18399         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18400         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18401         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18402         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18403         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18404         Adjust.
18405         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18406         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18407         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18408         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18409
18410 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18411
18412         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18413         "delayed_compare", "var_delayed_compare".
18414         (var_shift): New attribute.
18415         (cell_micro): Adjust.
18416         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18417         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18418         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18419         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18420         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18421         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18422         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18423         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18424         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18425         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18426         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18427         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18428         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18429         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18430         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18431         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18432         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18433         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18434         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18435         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18436         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18437         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18438         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18439         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18440         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18441
18442         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18443         * config/rs6000/440.md (ppc440-integer): Adjust.
18444         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18445         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18446         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18447         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18448         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18449         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18450         * config/rs6000/8540.md (ppc8540_su): Adjust.
18451         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18452         cell-cmp-microcoded): Adjust.
18453         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18454         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18455         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18456         e500mc64_delayed): Adjust.
18457         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18458         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18459         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18460         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18461         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18462         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18463         power6-delayed-compare, power6-var-delayed-compare): Adjust.
18464         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18465         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18466         Adjust comment.
18467         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18468         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18469
18470 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18471
18472         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
18473         (bits): New mode_attr.
18474         (idiv_ldiv): Delete mode_attr.
18475         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18476         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18477         rs6000_adjust_priority, is_nonpipeline_insn,
18478         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18479
18480         * config/rs6000/40x.md (ppc403-idiv): Adjust.
18481         * config/rs6000/440.md (ppc440-idiv): Adjust.
18482         * config/rs6000/476.md (ppc476-idiv): Adjust.
18483         * config/rs6000/601.md (ppc601-idiv): Adjust.
18484         * config/rs6000/603.md (ppc603-idiv): Adjust.
18485         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18486         ppc620-ldiv): Adjust.
18487         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18488         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18489         * config/rs6000/8540.md (ppc8540_divide): Adjust.
18490         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18491         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18492         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18493         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18494         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18495         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18496         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18497         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18498         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18499         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18500         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18501         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18502         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18503         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18504         * config/rs6000/titan.md (titan_fxu_div): Adjust.
18505
18506 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18507
18508         * config/rs6000/rs6000.md (type): Delete "insert_word",
18509         "insert_dword".  Add "insert".
18510         (size): Update comment.
18511         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18512         insn_must_be_first_in_group): Adjust.
18513         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18514         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18515         *insvsi_internal6, insvdi_internal): Adjust.
18516
18517         * config/rs6000/40x.md (ppc403-integer): Adjust.
18518         * config/rs6000/440.md (ppc440-integer): Adjust.
18519         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18520         * config/rs6000/601.md (ppc601-integer): Adjust.
18521         * config/rs6000/603.md (ppc603-integer): Adjust.
18522         * config/rs6000/6xx.md (ppc604-integer): Adjust.
18523         * config/rs6000/7450.md (ppc7450-integer): Adjust.
18524         * config/rs6000/7xx.md (ppc750-integer): Adjust.
18525         * config/rs6000/8540.md (ppc8540_su): Adjust.
18526         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18527         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18528         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18529         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18530         * config/rs6000/e5500.md (e5500_sfx): Adjust.
18531         * config/rs6000/e6500.md (e6500_sfx): Adjust.
18532         * config/rs6000/mpc.md (mpccore-integer): Adjust.
18533         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18534         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18535         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18536         * config/rs6000/power7.md (power7-integer): Adjust.
18537         * config/rs6000/power8.md (power8-1cyc): Adjust.
18538         * config/rs6000/rs64.md (rs64a-integer): Adjust.
18539         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18540
18541 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18542
18543         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
18544         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18545         (size): New attribute.
18546         (dot): New attribute.
18547         (cell_micro): Adjust.
18548         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18549         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18550         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18551         umuldi3_highpart): Adjust.
18552         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18553         rs6000_adjust_priority, is_nonpipeline_insn,
18554         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18555
18556         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18557         ppc405-imul3): Adjust.
18558         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18559         * config/rs6000/476.md (ppc476-imul): Adjust.
18560         * config/rs6000/601.md (ppc601-imul): Adjust.
18561         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18562         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18563         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18564         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18565         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18566         Adjust.
18567         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18568         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18569         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18570         cell-imul): Adjust.
18571         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18572         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18573         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18574         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18575         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18576         * config/rs6000/mpc.md (mpccore-imul): Adjust.
18577         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18578         power4-lmul, power4-imul, power4-imul3): Adjust.
18579         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18580         power5-lmul, power5-imul, power5-imul3): Adjust.
18581         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18582         power6-lmul, power6-imul, power6-imul3): Adjust.
18583         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18584         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18585
18586         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18587         rs64a-lmul): Adjust.
18588         * config/rs6000/titan.md (titan_imul): Adjust.
18589
18590 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18591
18592         * config/rs6000/rs6000.md (type): Add new value "halfmul".
18593         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18594         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18595         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18596         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18597         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18598         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18599         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18600         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18601         * config/rs6000/titan.md: Delete nonsensical comment.
18602         (titan_imul): Add type imul3.
18603         (titan_mulhw): Remove type imul3; add type halfmul.
18604
18605 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18606
18607         * config/rs6000/rs6000.md (type): Reorder, reformat.
18608
18609 2014-05-23  Martin Jambor  <mjambor@suse.cz>
18610
18611         PR tree-optimization/53787
18612         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18613         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18614         analysis_done, update all uses.
18615         * ipa-prop.c: Include domwalk.h
18616         (param_analysis_info): Removed.
18617         (param_aa_status): New type.
18618         (ipa_bb_info): Likewise.
18619         (func_body_info): Likewise.
18620         (ipa_get_bb_info): New function.
18621         (aa_overwalked): Likewise.
18622         (find_dominating_aa_status): Likewise.
18623         (parm_bb_aa_status_for_bb): Likewise.
18624         (parm_preserved_before_stmt_p): Changed to use new param AA info.
18625         (load_from_unmodified_param): Accept func_body_info as a parameter
18626         instead of parms_ainfo.
18627         (parm_ref_data_preserved_p): Changed to use new param AA info.
18628         (parm_ref_data_pass_through_p): Likewise.
18629         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
18630         (compute_complex_assign_jump_func): Changed to use new param AA info.
18631         (compute_complex_ancestor_jump_func): Likewise.
18632         (ipa_compute_jump_functions_for_edge): Likewise.
18633         (ipa_compute_jump_functions): Removed.
18634         (ipa_compute_jump_functions_for_bb): New function.
18635         (ipa_analyze_indirect_call_uses): Likewise, moved variable
18636         declarations down.
18637         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18638         and info, moved variable declarations down.
18639         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18640         node and info.
18641         (ipa_analyze_stmt_uses): Likewise.
18642         (ipa_analyze_params_uses): Removed.
18643         (ipa_analyze_params_uses_in_bb): New function.
18644         (ipa_analyze_controlled_uses): Likewise.
18645         (free_ipa_bb_info): Likewise.
18646         (analysis_dom_walker): New class.
18647         (ipa_analyze_node): Handle node-specific forbidden analysis,
18648         initialize and free func_body_info, use dominator walker.
18649         (ipcp_modif_dom_walker): New class.
18650         (ipcp_transform_function): Create and free func_body_info, use
18651         ipcp_modif_dom_walker, moved a lot of functionality there.
18652
18653 2014-05-23  Marek Polacek  <polacek@redhat.com>
18654             Jakub Jelinek  <jakub@redhat.com>
18655
18656         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18657         * gcc.c (sanitize_spec_function): Likewise.
18658         * convert.c (convert_to_integer): Include "ubsan.h".  Add
18659         floating-point to integer instrumentation.
18660         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18661         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18662         SANITIZE_NONDEFAULT.
18663         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18664         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18665         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18666         * ubsan.c: Include "realmpfr.h" and "dfp.h".
18667         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18668         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18669         float/double/long double.
18670         (ubsan_instrument_float_cast): New function.
18671         * ubsan.h (ubsan_instrument_float_cast): Declare.
18672
18673 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
18674
18675         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18676         predicate.
18677         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
18678         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18679         Adjust for tailcalling through registers.
18680         * config/aarch64/aarch64.h (enum reg_class): New caller save
18681         register class.
18682         (REG_CLASS_NAMES): Likewise.
18683         (REG_CLASS_CONTENTS): Likewise.
18684         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18685         Allow tailcalling without decls.
18686
18687 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
18688
18689         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18690         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18691
18692         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18693         gsi, and variables v_* to v*.
18694
18695 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
18696
18697         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18698
18699 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
18700
18701         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18702         * omp-low.c: Update accordingly.
18703
18704         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18705         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18706         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18707         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18708         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18709         GF_OMP_TARGET_KIND_UPDATE.
18710
18711         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18712         Explicitly enumerate the expected region types.
18713
18714 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18715
18716         PR other/56955
18717         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
18718         documentation; the old documentation didn't clearly state the
18719         constraints on the contents of the pointed-to storage.
18720
18721 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18722
18723         Fix bootstrap error on ia64
18724         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18725         Return default value.
18726
18727 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18728
18729         PR tree-optimization/54733
18730         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18731         (CMPNOP): Define.
18732         (find_bswap_or_nop_load): New.
18733         (find_bswap_1): Renamed to ...
18734         (find_bswap_or_nop_1): This. Also add support for memory source.
18735         (find_bswap): Renamed to ...
18736         (find_bswap_or_nop): This. Also add support for memory source and
18737         detection of bitwise operations equivalent to load in target
18738         endianness.
18739         (execute_optimize_bswap): Likewise. Also move its leading comment back
18740         in place and split statement transformation into ...
18741         (bswap_replace): This.
18742
18743 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
18744
18745         PR rtl-optimization/61215
18746         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18747         simplify_gen_subreg until final substitution.
18748
18749 2014-05-23  Alan Modra  <amodra@gmail.com>
18750
18751         PR target/61231
18752         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18753         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18754         Use "Y" constraint rather than "m".
18755
18756 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18757
18758         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18759         define.
18760         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18761         New function declaration.
18762         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18763         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18764         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18765         (aarch64_init_builtins) : Initialize builtins
18766         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18767         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18768         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18769         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18770         and __builtins_aarch64_set_fpsr.
18771         (aarch64_atomic_assign_expand_fenv): New function.
18772         * config/aarch64/aarch64.md (set_fpcr): New pattern.
18773         (get_fpcr) : Likewise.
18774         (set_fpsr) : Likewise.
18775         (get_fpsr) : Likewise.
18776         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18777          and UNSPECV_SET_FPSR.
18778         * doc/extend.texi (AARCH64 Built-in Functions) : Document
18779         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18780         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18781
18782 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
18783
18784         PR rtl-optimization/60969
18785         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18786         constraints.  Set up mem cost for NO_REGS case.
18787
18788 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
18789
18790         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18791
18792 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
18793
18794         * config/darwin.c: Include "lto-section-names.h".
18795         (LTO_SEGMENT_NAME): Don't define.
18796         * config/i386/winnt.c: Include "lto-section-names.h".
18797         * lto-streamer.c: Include "lto-section-names.h".
18798         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18799         * lto-wrapper.c: Include "lto-section-names.h".
18800         (LTO_SECTION_NAME_PREFIX): Don't define.
18801         * lto-section-names.h: New file.
18802         * cgraphunit.c: Include "lto-section-names.h".
18803
18804 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
18805
18806         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18807
18808 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
18809
18810         PR target/61208
18811         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18812
18813 2014-05-22  Nick Clifton  <nickc@redhat.com>
18814
18815         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18816
18817 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
18818
18819         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18820         -> (T)A transformation to integer types.
18821
18822 2014-05-22  Teresa Johnson  <tejohnson@google.com>
18823
18824         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18825         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18826         (gcov_rewrite): Use gcov_nonruntime_assert.
18827         (gcov_open): Ditto.
18828         (gcov_write_words): Ditto.
18829         (gcov_write_length): Ditto.
18830         (gcov_read_words): Use gcov_nonruntime_assert, and remove
18831         gcc_assert from IN_LIBGCOV code.
18832         (gcov_read_summary): Use gcov_error to flag profile corruption.
18833         (gcov_sync): Use gcov_nonruntime_assert.
18834         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18835         (gcov_histo_index): Use gcov_nonruntime_assert.
18836         (static void gcov_histogram_merge): Ditto.
18837         (compute_working_sets): Ditto.
18838         * gcov-io.h (gcov_nonruntime_assert): Define.
18839         (gcov_error): Define for !IN_LIBGCOV
18840
18841 2014-05-22  Richard Biener  <rguenther@suse.de>
18842
18843         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18844         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18845         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18846         and deallocation site.
18847         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18848         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18849         passing through the incoming points-to set.
18850         (handle_lhs_call): Use flags argument instead of recomputing it.
18851         (find_func_aliases_for_call): Call handle_lhs_call with proper
18852         call return flags.
18853
18854 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
18855
18856         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18857         all padding bits in REAL_VALUE_TYPE are cleared.
18858
18859 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18860
18861         Cleanup and improve multipass_dfa_lookahead_guard
18862         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18863         (core2i7_first_cycle_multipass_begin,)
18864         (core2i7_first_cycle_multipass_issue,)
18865         (core2i7_first_cycle_multipass_backtrack): Update signature.
18866         * config/ia64/ia64.c
18867         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18868         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18869         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18870         hook definition.
18871         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18872         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
18873         values.
18874         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18875         return values.
18876         * doc/tm.texi: Regenerate.
18877         * doc/tm.texi.in
18878         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18879         * haifa-sched.c (ready_try): Make signed to allow negative values.
18880         (rebug_ready_list_1): Update.
18881         (choose_ready): Simplify.
18882         (sched_extend_ready_list): Update.
18883
18884 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18885
18886         Remove IA64 speculation tweaking flags
18887         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18888         speculation tuning flags.
18889         (msched-prefer-non-data-spec-insns,)
18890         (msched-prefer-non-control-spec-insns): Obsolete options.
18891         * haifa-sched.c (choose_ready): Remove handling of
18892         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18893         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18894         and PREFER_NON_DATA_SPEC.
18895         * sel-sched.c (process_spec_exprs): Remove handling of
18896         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18897
18898 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18899
18900         Improve scheduling debug output
18901         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18902         (advance_one_cycle): Update.
18903         (schedule_insn, queue_to_ready): Add debug printouts.
18904         (debug_ready_list_1): New static function.
18905         (debug_ready_list): Update.
18906         (max_issue): Add debug printouts.
18907         (dump_insn_stream): New static function.
18908         (schedule_block): Use it.  Also better indent printouts.
18909
18910 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18911
18912         Fix sched_insn debug counter
18913         * haifa-sched.c (schedule_insn): Update.
18914         (struct haifa_saved_data): Add nonscheduled_insns_begin.
18915         (save_backtrack_point, restore_backtrack_point): Update.
18916         (first_nonscheduled_insn): New static function.
18917         (queue_to_ready, choose_ready): Use it.
18918         (schedule_block): Init nonscheduled_insns_begin.
18919         (sched_emit_insn): Update.
18920
18921
18922 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
18923
18924         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18925         to GENERAL_REGS.
18926         (aarch64_secondary_reload) : LikeWise.
18927         (aarch64_class_max_nregs) : Remove CORE_REGS.
18928         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18929         (REG_CLASS_NAMES) : Likewise.
18930         (REG_CLASS_CONTENTS) : LikeWise.
18931         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18932
18933 2014-05-21  Guozhi Wei  <carrot@google.com>
18934
18935         PR target/61202
18936         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18937         constraint.
18938         (vqdmulhq_n_s16): Likewise.
18939
18940 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
18941
18942         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18943
18944 2014-05-21  Marek Polacek  <polacek@redhat.com>
18945
18946         PR sanitizer/61272
18947         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18948
18949 2014-05-21  Martin Jambor  <mjambor@suse.cz>
18950
18951         * doc/invoke.texi (Optimize Options): Document parameters
18952         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18953         ipa-cp-array-index-hint-bonus.
18954
18955 2014-05-21  Mark Wielaard  <mjw@redhat.com>
18956
18957         PR debug/16063
18958         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18959         version >= 3 or not strict DWARF.
18960         * langhooks.h (struct lang_hooks_for_types): Add
18961         enum_underlying_base_type.
18962         * langhooks.c (lhd_enum_underlying_base_type): New function.
18963         * gcc/langhooks.h (struct lang_hooks_for_types): Add
18964         enum_underlying_base_type.
18965         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18966         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18967         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18968
18969 2014-05-21  Richard Biener  <rguenther@suse.de>
18970
18971         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18972
18973 2014-05-21  John Marino  <gnugcc@marino.st>
18974
18975         * config.gcc (*-*-dragonfly*): New target.
18976         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18977         * configure: Regenerate.
18978         * config/dragonfly-stdint.h: New.
18979         * config/dragonfly.h: New.
18980         * config/dragonfly.opt: New.
18981         * config/i386/dragonfly.h: New.
18982         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18983
18984 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
18985
18986         * tree.def (VOID_CST): New.
18987         * tree-core.h (TI_VOID): New.
18988         * tree.h (void_node): New.
18989         * tree.c (tree_node_structure_for_code, tree_code_size)
18990         (iterative_hash_expr): Handle VOID_CST.
18991         (build_common_tree_nodes): Initialize void_node.
18992
18993 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
18994
18995         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18996         functions.
18997         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18998
18999         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19000         more places.
19001
19002         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19003         flag_reorder_blocks_and_partition.
19004         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19005
19006 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
19007
19008         PR target/54236
19009         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
19010         constraints.
19011         (*addc_r_t): Add new insn_and_split.
19012
19013 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
19014
19015         PR middle-end/61252
19016         * omp-low.c (handle_simd_reference): New function.
19017         (lower_rec_input_clauses): Use it.  Defer adding reference
19018         initialization even for reduction without placeholder if in simd,
19019         handle it properly later on.
19020
19021 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19022
19023         PR tree-optimization/60899
19024         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19025         assume all static symbols will have definition wile parsing and
19026         check the do have definition later in compilation; check that
19027         variable referring symbol will be output before concluding that
19028         reference is safe; be conservative for referring local statics;
19029         be more precise about when comdat is output in other partition.
19030
19031 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19032
19033         PR bootstrap/60984
19034         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19035         parameter.
19036         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19037         (ipa_inline): Loop inline_to_all_callers until no more aliases
19038         are removed.
19039
19040 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19041
19042         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19043         set writeonly flag only for vars actually written to.
19044
19045 2014-05-20  Dehao Chen  <dehao@google.com>
19046
19047         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19048         and callee count to get clone count.
19049         * tree-inline.c (expand_call_inline): Use callee count instead of bb
19050         count in copy_body.
19051
19052 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19053
19054         PR rtl-optimization/61243
19055         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19056
19057 2014-05-20  Xinliang David Li  <davidxl@google.com>
19058
19059         * cgraphunit.c (walk_polymorphic_call_targets): Add
19060         dbgcnt and fopt-info support.
19061         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19062         * ipa-devirt.c (ipa_devirt): Ditto.
19063         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19064         * ipa.c (walk_polymorphic_call_targets): Ditto.
19065         * gimple-fold.c (fold_gimple_assign): Ditto.
19066         (gimple_fold_call): Ditto.
19067         * dbgcnt.def: New counter.
19068
19069 2014-05-20  DJ Delorie  <dj@redhat.com>
19070
19071         * config/msp430/msp430.md (split): Don't allow subregs when
19072         splitting SImode adds.
19073         (andneghi): Fix subtraction logic.
19074         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19075
19076 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19077
19078         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19079         symbols.
19080         * except.c (switch_to_exception_section, resolve_unique_section,
19081         get_named_text_section, default_function_rodata_section,
19082         align_variable, get_block_for_decl, default_section_type_flags):
19083         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19084         * symtab.c (symtab_add_to_same_comdat_group,
19085         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19086         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19087         Likewise.
19088         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19089         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19090         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19091         (c6x_function_in_section_p): Likewise.
19092         * config/darwin.c (machopic_select_section): Likewise.
19093         * config/arm/arm.c (arm_function_in_section_p): Likewise.
19094         * config/mips/mips.c (mips_function_rodata_section): Likewise.
19095         * config/mep/mep.c (mep_select_section): LIkewise.
19096         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19097
19098 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
19099
19100         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19101         EH region of calls to pure functions that can throw an exception.
19102         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19103         (copy_reference_ops_from_call): Also copy the EH region of the call if
19104         it can throw an exception.
19105
19106 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19107
19108         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19109         nested VEC_SELECTs that are inverses of each other.
19110
19111 2014-05-20  Richard Biener  <rguenther@suse.de>
19112
19113         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19114         (extract_and_process_scc_for_name): not here.
19115         (cond_dom_walker::before_dom_children): Only process
19116         stmts that end the BB in interesting ways.
19117         (run_scc_vn): Mark param uses as visited.
19118
19119 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19120
19121         * config/arm/arm.md (arith_shiftsi): Do not predicate for
19122         arm_restrict_it.
19123
19124 2014-05-20  Nick Clifton  <nickc@redhat.com>
19125
19126         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19127         (msp430_gimplify_va_arg_expr): New function.
19128         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19129
19130         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19131         operand 0 in order to prevent confusion about the number of
19132         registers involved.
19133
19134 2014-05-20  Richard Biener  <rguenther@suse.de>
19135
19136         PR tree-optimization/61221
19137         * tree-ssa-pre.c (el_to_update): Remove.
19138         (eliminate_dom_walker::before_dom_children): Handle released
19139         VDEFs by value-numbering them to the associated VUSE.  Update
19140         stmt immediately for substituted call address.
19141         (eliminate): Remove delayed stmt updating code.
19142         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19143         possibly late re-numbered vuses.
19144         (vn_reference_lookup_2): Adjust.
19145         (vn_reference_lookup_pieces): Likewise.
19146         (vn_reference_lookup): Likewise.
19147
19148 2014-05-20  Richard Biener  <rguenther@suse.de>
19149
19150         * config.gcc: Remove need_64bit_hwint.
19151         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19152         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19153         it to be true.
19154         * config.in: Regenerate.
19155         * configure: Likewise.
19156
19157 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
19158
19159         * doc/extend.texi: Create Label Attributes section,
19160         move all label attributes into it and reference it.
19161
19162 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
19163
19164         * arm.c (thumb1_reorg): When scanning backwards skip anything
19165         that's not a proper insn.
19166
19167 2014-05-19  Richard Biener  <rguenther@suse.de>
19168
19169         PR tree-optimization/61221
19170         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19171         Do nothing for unreachable blocks.
19172         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19173         Improve unreachability detection.
19174
19175 2014-05-19  Richard Biener  <rguenther@suse.de>
19176
19177         PR tree-optimization/61209
19178         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19179
19180 2014-05-19  Nick Clifton  <nickc@redhat.com>
19181
19182         * except.c (init_eh): Fix computation of builtin setjmp buffer
19183         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19184
19185 2014-05-19  Richard Biener  <rguenther@suse.de>
19186
19187         PR tree-optimization/61184
19188         * tree-vrp.c (is_negative_overflow_infinity): Use
19189         TREE_OVERFLOW_P and do that check first.
19190         (is_positive_overflow_infinity): Likewise.
19191         (is_overflow_infinity): Likewise.
19192         (vrp_operand_equal_p): Properly treat operands with
19193         differing overflow as not equal.
19194
19195 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
19196
19197         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19198         shift simplification where it was intended.
19199
19200 2014-05-19  Christian Bruel  <christian.bruel@st.com>
19201
19202         PR target/61195
19203         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19204
19205 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
19206
19207         PR target/61084
19208         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19209         than wide_int.
19210
19211 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19212
19213         * reg-notes.def (CROSSING_JUMP): Likewise.
19214         * rtl.h (rtx_def): Update comment for jump flag.
19215         (CROSSING_JUMP_P): Define.
19216         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19217         of a REG_CROSSING_JUMP note.
19218         * cfghooks.c (tidy_fallthru_edges): Likewise.
19219         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19220         * emit-rtl.c (try_split): Likewise.
19221         * haifa-sched.c (sched_create_recovery_edges): Likewise.
19222         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19223         * jump.c (redirect_jump_2): Likewise.
19224         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19225         (relax_delay_slots): Likewise.
19226         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19227         (bbit_di): Likewise.
19228         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19229         * config/sh/sh.md (jump_compact): Likewise.
19230         * bb-reorder.c (rotate_loop): Likewise.
19231         (pass_duplicate_computed_gotos::execute): Likewise.
19232         (add_reg_crossing_jump_notes): Rename to...
19233         (update_crossing_jump_flags): ...this.
19234         (pass_partition_blocks::execute): Update accordingly.
19235
19236 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19237
19238         * tree.h: Remove extraneous template <>.
19239
19240 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19241
19242         * ipa.c (symtab_remove_unreachable_nodes): Remove
19243         symbol from comdat group if its body was eliminated.
19244         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19245         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19246         (symtab_unregister_node): ... this one.
19247         (verify_symtab_base): More strict checking of comdats.
19248         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19249
19250 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19251
19252         * tree-pass.h (make_pass_ipa_comdats): New pass.
19253         * timevar.def (TV_IPA_COMDATS): New timevar.
19254         * passes.def (pass_ipa_comdats): Add.
19255         * Makefile.in (OBJS): Add ipa-comdats.o
19256         * ipa-comdats.c: New file.
19257
19258 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19259
19260         * ipa.c (update_visibility_by_resolution_info): New function.
19261         (function_and_variable_visibility): Use it.
19262
19263 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19264
19265         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19266         New functions.
19267         (FOR_EACH_DEFINED_SYMBOL): New macro.
19268         (varpool_first_static_initializer, varpool_next_static_initializer,
19269         varpool_first_defined_variable, varpool_next_defined_variable):
19270         Fix comments.
19271         (symtab_in_same_comdat_p): Correctly deal with inline functions.
19272
19273 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19274
19275         * ggc-page.c (ggc_handle_finalizers): Add comment.
19276
19277 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19278
19279         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19280         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19281         (ggc_internal_cleared_alloc): Likewise.
19282         * ggc-page.c (finalizer): New class.
19283         (vec_finalizer): Likewise.
19284         (globals::finalizers): New member.
19285         (globals::vec_finalizers): Likewise.
19286         (ggc_internal_alloc): Record the finalizer if any for the block being
19287         allocated.
19288         (ggc_handle_finalizers): New function.
19289         (ggc_collect): Call ggc_handle_finalizers.
19290         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19291         finalizer.
19292         (ggc_internal_cleared_alloc): Likewise.
19293         (finalize): New function.
19294         (need_finalization_p): Likewise.
19295         (ggc_alloc): Install the type's destructor as the finalizer if it
19296         might do something.
19297         (ggc_cleared_alloc): Likewise.
19298         (ggc_vec_alloc): Likewise.
19299         (ggc_cleared_vec_alloc): Likewise.
19300
19301 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19302
19303         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19304
19305 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19306
19307         * alias.c (record_alias_subset): Adjust.
19308         * bitmap.c (bitmap_element_allocate): Likewise.
19309         (bitmap_gc_alloc_stat): Likewise.
19310         * cfg.c (init_flow): Likewise.
19311         (alloc_block): Likewise.
19312         (unchecked_make_edge): Likewise.
19313         * cfgloop.c (alloc_loop): Likewise.
19314         (flow_loops_find): Likewise.
19315         (rescan_loop_exit): Likewise.
19316         * cfgrtl.c (init_rtl_bb_info): Likewise.
19317         * cgraph.c (insert_new_cgraph_node_version): Likewise.
19318         (cgraph_allocate_node): Likewise.
19319         (cgraph_create_edge_1): Likewise.
19320         (cgraph_allocate_init_indirect_info): Likewise.
19321         * cgraphclones.c (cgraph_clone_edge): Likewise.
19322         * cgraphunit.c (add_asm_node): Likewise.
19323         (init_lowered_empty_function): Likewise.
19324         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19325         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19326         (alpha_use_linkage): Likewise.
19327         * config/arc/arc.c (arc_init_machine_status): Likewise.
19328         * config/arm/arm.c (arm_init_machine_status): Likewise.
19329         * config/avr/avr.c (avr_init_machine_status): Likewise.
19330         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19331         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19332         * config/cris/cris.c (cris_init_machine_status): Likewise.
19333         * config/darwin.c (machopic_indirection_name): Likewise.
19334         (darwin_build_constant_cfstring): Likewise.
19335         (darwin_enter_string_into_cfstring_table): Likewise.
19336         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19337         * config/frv/frv.c (frv_init_machine_status): Likewise.
19338         * config/i386/i386.c (get_dllimport_decl): Likewise.
19339         (ix86_init_machine_status): Likewise.
19340         (assign_386_stack_local): Likewise.
19341         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19342         (i386_pe_maybe_record_exported_symbol): Likewise.
19343         (i386_pe_record_stub): Likewise.
19344         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19345         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19346         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19347         (m32c_note_pragma_address): Likewise.
19348         * config/mep/mep.c (mep_init_machine_status): Likewise.
19349         (mep_note_pragma_flag): Likewise.
19350         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19351         (mips16_local_alias): Likewise.
19352         (mips_init_machine_status): Likewise.
19353         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19354         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19355         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19356         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19357         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19358         * config/pa/pa.c (pa_init_machine_status): Likewise.
19359         (pa_get_deferred_plabel): Likewise.
19360         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19361         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19362         (rs6000_init_machine_status): Likewise.
19363         (output_toc): Likewise.
19364         * config/s390/s390.c (s390_init_machine_status): Likewise.
19365         * config/score/score.c (score_output_external): Likewise.
19366         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19367         * config/spu/spu.c (spu_init_machine_status): Likewise.
19368         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19369         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19370         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19371         * coverage.c (coverage_end_function): Likewise.
19372         * dbxout.c (dbxout_init): Likewise.
19373         * doc/gty.texi: Don't mention variable_size attribute.
19374         * dwarf2cfi.c (new_cfi): Adjust.
19375         (new_cfi_row): Likewise.
19376         (copy_cfi_row): Likewise.
19377         (create_cie_data): Likewise.
19378         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19379         (new_loc_descr): Likewise.
19380         (find_AT_string_in_table): Likewise.
19381         (add_addr_table_entry): Likewise.
19382         (new_die): Likewise.
19383         (add_var_loc_to_decl): Likewise.
19384         (clone_die): Likewise.
19385         (clone_as_declaration): Likewise.
19386         (break_out_comdat_types): Likewise.
19387         (new_loc_list): Likewise.
19388         (add_loc_descr_to_each): Likewise.
19389         (add_location_or_const_value_attribute): Likewise.
19390         (add_linkage_name): Likewise.
19391         (lookup_filename): Likewise.
19392         (dwarf2out_var_location): Likewise.
19393         (new_line_info_table): Likewise.
19394         (dwarf2out_init): Likewise.
19395         (mem_loc_descriptor): Likewise.
19396         (loc_descriptor): Likewise.
19397         (add_const_value_attribute): Likewise.
19398         (tree_add_const_value_attribute): Likewise.
19399         (comp_dir_string): Likewise.
19400         (dwarf2out_vms_debug_main_pointer): Likewise.
19401         (string_cst_pool_decl): Likewise.
19402         * emit-rtl.c (set_mem_attrs): Likewise.
19403         (get_reg_attrs): Likewise.
19404         (start_sequence): Likewise.
19405         (init_emit): Likewise.
19406         (init_emit_regs): Likewise.
19407         * except.c (init_eh_for_function): Likewise.
19408         (gen_eh_region): Likewise.
19409         (gen_eh_region_catch): Likewise.
19410         (gen_eh_landing_pad): Likewise.
19411         (add_call_site): Likewise.
19412         * function.c (add_frame_space): Likewise.
19413         (insert_temp_slot_address): Likewise.
19414         (assign_stack_temp_for_type): Likewise.
19415         (get_hard_reg_initial_val): Likewise.
19416         (allocate_struct_function): Likewise.
19417         (prepare_function_start): Likewise.
19418         (types_used_by_var_decl_insert): Likewise.
19419         * gengtype.c (variable_size_p): Remove function.
19420         (enum alloc_quantity): Remove enum.
19421         (write_typed_alloc_def): Remove function.
19422         (write_typed_struct_alloc_def): Likewise.
19423         (write_typed_typedef_alloc_def): Likewise.
19424         (write_typed_alloc_defns): Likewise.
19425         (main): Adjust.
19426         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19427         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19428         * ggc.h (ggc_alloc): new function.
19429         (ggc_cleared_alloc): Likewise.
19430         (ggc_vec_alloc): Template on type of vector element, and remove
19431         element size argument.
19432         (ggc_cleared_vec_alloc): Likewise.
19433         * gimple.c (gimple_build_omp_for): Adjust.
19434         (gimple_copy): Likewise.
19435         * ipa-cp.c (get_replacement_map): Likewise.
19436         (find_aggregate_values_for_callers_subset): Likewise.
19437         (known_aggs_to_agg_replacement_list): Likewise.
19438         * ipa-devirt.c (get_odr_type): Likewise.
19439         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19440         (read_agg_replacement_chain): Likewise.
19441         * loop-iv.c (get_simple_loop_desc): Likewise.
19442         * lto-cgraph.c (input_node_opt_summary): Likewise.
19443         * lto-section-in.c (lto_new_in_decl_state): Likewise.
19444         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19445         (input_eh_region): Likewise.
19446         (input_eh_lp): Likewise.
19447         (input_cfg): Likewise.
19448         * optabs.c (set_optab_libfunc): Likewise.
19449         (init_tree_optimization_optabs): Likewise.
19450         (set_conv_libfunc): Likewise.
19451         * passes.c (do_per_function_toporder): Likewise.
19452         * rtl.h: Don't use variable_size gty attribute.
19453         * sese.c (if_region_set_false_region): Adjust.
19454         * stringpool.c (gt_pch_save_stringpool): Likewise.
19455         * target-globals.c (save_target_globals): Likewise.
19456         * toplev.c (general_init): Likewise.
19457         * trans-mem.c (record_tm_replacement): Likewise.
19458         (split_bb_make_tm_edge): Likewise.
19459         * tree-cfg.c (move_sese_region_to_fn): Likewise.
19460         * tree-data-ref.h (lambda_vector_new): Likewise.
19461         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19462         * tree-iterator.c (tsi_link_before): Likewise.
19463         (tsi_link_after): Likewise.
19464         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19465         * tree-ssa-loop-niter.c (record_estimate): Likewise.
19466         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19467         * tree-ssa-operands.h: Don't use variable_size gty attribute.
19468         * tree-ssa.c (init_tree_ssa): Adjust.
19469         * tree-ssanames.c (set_range_info): Likewise.
19470         (get_ptr_info): Likewise.
19471         (duplicate_ssa_name_ptr_info): Likewise.
19472         (duplicate_ssa_name_range_info): Likewise.
19473         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19474         (unpack_ts_fixed_cst_value_fields): Likewise.
19475         * tree.c (build_fixed): Likewise.
19476         (build_real): Likewise.
19477         (build_string): Likewise.
19478         (decl_priority_info): Likewise.
19479         (decl_debug_expr_insert): Likewise.
19480         (decl_value_expr_insert): Likewise.
19481         (decl_debug_args_insert): Likewise.
19482         (type_hash_add): Likewise.
19483         (build_omp_clause): Likewise.
19484         * ubsan.c (decl_for_type_insert): Likewise.
19485         * varasm.c (get_unnamed_section): Likewise.
19486         (get_noswitch_section): Likewise.
19487         (get_section): Likewise.
19488         (get_block_for_section): Likewise.
19489         (create_block_symbol): Likewise.
19490         (build_constant_desc): Likewise.
19491         (create_constant_pool): Likewise.
19492         (force_const_mem): Likewise.
19493         (record_tm_clone_pair): Likewise.
19494         * varpool.c (varpool_create_empty_node): Likewise.
19495
19496 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19497
19498         * dwarf2out.c (tree_add_const_value_attribute): Call
19499         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19500         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19501         instead of ggc_internal_<x>alloc_stat.
19502         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19503         (ggc_realloc): Likewise.
19504         * ggc-none.c (ggc_internal_alloc): Likewise.
19505         (ggc_internal_cleared_alloc): Likewise.
19506         * ggc-page.c: Likewise.
19507         * ggc.h (ggc_internal_alloc_stat): Likewise.
19508         (ggc_internal_alloc): Remove macro.
19509         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19510         (ggc_internal_cleared_alloc): Remove macro.
19511         (GGC_RESIZEVEC): Adjust.
19512         (ggc_resizevar): Remove macro.
19513         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19514         (ggc_internal_cleared_vec_alloc_stat): Likewise.
19515         (ggc_internal_vec_cleared_alloc): Remove macro.
19516         (ggc_alloc_atomic_stat): Drop _stat suffix.
19517         (ggc_alloc_atomic): Remove macro.
19518         (ggc_alloc_cleared_atomic): Remove macro.
19519         (ggc_alloc_string_stat): Drop _stat suffix.
19520         (ggc_alloc_string): Remove macro.
19521         (ggc_alloc_rtx_def_stat): Adjust.
19522         (ggc_alloc_tree_node_stat): Likewise.
19523         (ggc_alloc_cleared_tree_node_stat): Likewise.
19524         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19525         (ggc_alloc_cleared_simd_clone_stat): Likewise.
19526         * gimple.c (gimple_build_omp_for): Likewise.
19527         (gimple_copy): Likewise.
19528         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19529         * toplev.c (realloc_for_line_map): Adjust.
19530         * tree-data-ref.h (lambda_vector_new): Likewise.
19531         * tree-phinodes.c (allocate_phi_node): Likewise.
19532         * tree.c (grow_tree_vec_stat): Likewise.
19533         * vec.h (va_gc::reserve): Adjust.
19534
19535 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
19536
19537         * config/microblaze/microblaze.c (break_handler): New Declaration.
19538         (microblaze_break_function_p,microblaze_is_break_handler): New.
19539         (compute_frame_size): Use microblaze_break_function_p.
19540         Add the test of break_handler.
19541         (microblaze_function_prologue) : Add the test of variable
19542         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
19543         (microblaze_function_epilogue) : Add the test of break_handler.
19544         (microblaze_globalize_label) : Add the test of break_handler.
19545         Check the name by BREAK_HANDLER_NAME.
19546
19547         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19548
19549         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19550         microblaze_is_break_handler test.
19551         (call_internal1,call_value_intern): Use microblaze_break_function_p.
19552         Use SYMBOL_REF_DECL.
19553
19554         * config/microblaze/microblaze-protos.h
19555         (microblaze_break_function_p,microblaze_is_break_handler):
19556         New Declaration.
19557
19558         * doc/extend.texi (MicroBlaze break_handler Functions): Document
19559         new MicroBlaze break_handler functions.
19560
19561 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
19562
19563         * doc/extend.texi (Size of an asm): Move node text according
19564         to its @menu entry position.
19565
19566 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
19567
19568         PR tree-optimization/61140
19569         PR tree-optimization/61150
19570         PR tree-optimization/61197
19571         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19572
19573 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
19574
19575         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
19576
19577 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
19578
19579         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19580         __SIZEOF_INT128__ is defined.
19581
19582 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
19583
19584         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19585         (rs6000_delegitimize_address): Use it.
19586
19587 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
19588
19589         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19590         inplace argument.  Store the new address in the original MEM when true.
19591         * emit-rtl.c (change_address_1): Likewise.
19592         (adjust_address_1, adjust_automodify_address_1, offset_address):
19593         Update accordingly.
19594         * rtl.h (plus_constant): Add an inplace argument.
19595         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
19596         when true.  Avoid generating (plus X (const_int 0)).
19597         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19598         in-place.  Pass true to plus_constant.
19599         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19600
19601 2014-05-16  Dehao Chen  <dehao@google.com>
19602
19603         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19604
19605 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19606
19607         PR target/54089
19608         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19609         patterns.
19610         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19611
19612 2014-05-16  Dehao Chen  <dehao@google.com>
19613
19614         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19615         optimize_function_for_size_p.
19616         * regs.h (REG_FREQ_FROM_BB): Likewise.
19617
19618 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19619
19620         PR target/51244
19621         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19622         negt_reg_operand cases.
19623         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19624         predicate.
19625         * config/sh/predicates.md (cbranch_treg_value): Simplify.
19626
19627 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19628
19629         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19630         target variants.
19631
19632 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
19633
19634         Revert:
19635         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
19636
19637         * tree-cfg.c (dump_function_to_file): Dump the return type of
19638         functions, in a line to itself before the function body, mimicking
19639         the layout of a C function.
19640
19641 2014-05-16  Dehao Chen  <dehao@google.com>
19642
19643         * cfghooks.c (make_forwarder_block): Use direct computation to
19644         get fall-through edge's count and frequency.
19645
19646 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
19647
19648         * config/arc/arc.c (arc_init): Fix typo in error message.
19649         * config/i386/i386.c (ix86_expand_builtin): Likewise.
19650         (split_stack_prologue_scratch_regno): Likewise.
19651         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19652         word from error message.
19653
19654 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19655
19656         * ira-costs.c: Fix typo in comment.
19657
19658 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
19659
19660         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19661
19662 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
19663
19664         * varpool.c (dump_varpool_node): Dump write-only flag.
19665         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19666         write-only flag.
19667         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19668         write-only variables.
19669         * ipa.c (process_references): New function.
19670         (set_readonly_bit): New function.
19671         (set_writeonly_bit): New function.
19672         (clear_addressable_bit): New function.
19673         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19674         fix handling of aliases.
19675         * cgraph.h (struct varpool_node): Add writeonly flag.
19676
19677 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
19678
19679         PR rtl-optimization/60969
19680         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19681         Calculate costs for this case.
19682
19683 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19684
19685         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19686         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19687
19688 2014-05-16  Richard Biener  <rguenther@suse.de>
19689
19690         PR tree-optimization/61194
19691         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19692         bool patterns ending in a COND_EXPR.
19693
19694 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19695
19696         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19697
19698 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19699
19700         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19701         where we were unable to cost an RTX.
19702
19703 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19704
19705         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19706         HIGH, LO_SUM.
19707
19708 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19709             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19710
19711         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19712
19713 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19714             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19715
19716         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19717         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19718
19719 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19720             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19721
19722         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19723         operators.
19724
19725 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19726             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19727
19728         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19729         DIV/MOD.
19730
19731 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19732             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19733
19734         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19735         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19736
19737 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19738             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19739
19740         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19741         rotates and shifts.
19742
19743 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19744             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19745
19746         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19747         ZERO_EXTEND and SIGN_EXTEND better.
19748
19749 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19750             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19751
19752         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19753         logical operations.
19754
19755 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19756             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19757
19758         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19759         costs when costing loads and stores to memory.
19760
19761 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19762             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
19763
19764         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19765         for SET RTX.
19766
19767 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19768
19769         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19770
19771 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19772             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19773
19774         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19775         to...
19776         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19777         well formed.
19778         (aarch64_rtx_mult_cost): New.
19779         (aarch64_rtx_costs): Use it, refactor as appropriate.
19780
19781 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19782             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19783
19784         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19785         emit instructions, return number of instructions which would
19786         be emitted.
19787         (aarch64_add_constant): Update call to aarch64_build_constant.
19788         (aarch64_output_mi_thunk): Likewise.
19789         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19790         a CONST_DOUBLE.
19791
19792 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19793
19794         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19795         (TARGET_RTX_COSTS): Call it.
19796
19797 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19798
19799         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19800         (cortexa57_vector_cost): Likewise.
19801         (cortexa57_tunings): Use them.
19802
19803 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19804
19805         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19806         (cpu_addrcost_table): Use it.
19807         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19808         (aarch64_address_cost): Rewrite using aarch64_classify_address,
19809         move it.
19810
19811 2014-05-16  Richard Biener  <rguenther@suse.de>
19812
19813         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19814         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19815         (visit_phi): Ignore edges marked as not executable.
19816         (class cond_dom_walker): New.
19817         (cond_dom_walker::before_dom_children): Value-number
19818         control statements and mark successor edges as not
19819         executable if possible.
19820         (run_scc_vn): First walk all control statements in
19821         dominator order, marking edges as not executable.
19822         * tree-inline.c (copy_edges_for_bb): Be not confused
19823         about random edge flags.
19824
19825 2014-05-16  Richard Biener  <rguenther@suse.de>
19826
19827         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19828
19829 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
19830
19831         PR target/61193
19832         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19833         (__TM_simple_begin): Use it.
19834         (__TM_begin): Likewise.
19835
19836 2014-05-15  Martin Jambor  <mjambor@suse.cz>
19837
19838         PR ipa/61085
19839         * ipa-prop.c (update_indirect_edges_after_inlining): Check
19840         type_preserved flag when the indirect edge is polymorphic.
19841
19842 2014-05-15  Martin Jambor  <mjambor@suse.cz>
19843
19844         PR tree-optimization/61090
19845         * tree-sra.c (sra_modify_expr): Pass the current gsi to
19846         build_ref_for_model.
19847
19848 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19849
19850         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19851         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19852
19853 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
19854
19855         PR tree-optimization/61158
19856         * fold-const.c (fold_binary_loc): If X is zero-extended and
19857         shiftc >= prec, make sure zerobits is all ones instead of
19858         invoking undefined behavior.
19859
19860 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19861
19862         * regcprop.h: New file.
19863         * regcprop.c (skip_debug_insn_p): New decl.
19864         (replace_oldest_value_reg): Check skip_debug_insn_p.
19865         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19866         * shrink-wrap.c: Include regcprop.h.
19867         (prepare_shrink_wrap): Call
19868         copyprop_hardreg_forward_bb_without_debug_insn.
19869
19870 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19871
19872         * shrink-wrap.h: Update comment.
19873         * shrink-wrap.c: Update comment.
19874         (next_block_for_reg): Rename to live_edge_for_reg.
19875         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19876         (move_insn_for_shrink_wrap): Split live_edge.
19877         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19878
19879 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19880
19881         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19882         Delete.
19883         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19884         * config/sparc/sparc.md (fptype_ut699): New attribute.
19885         (in_branch_delay): Return false if -mfix-ut699 is specified and
19886         fptype_ut699 is set to single.
19887         (truncdfsf2): Add fptype_ut699 attribute.
19888         (fix_truncdfsi2): Likewise.
19889         (floatsisf2): Change fptype attribute.
19890         (fix_truncsfsi2): Likewise.
19891         (negtf2_notv9): Delete.
19892         (negtf2_v9): Likewise.
19893         (negtf2_hq): New instruction.
19894         (negtf2): New instruction and splitter.
19895         (negdf2_notv9): Rewrite.
19896         (abstf2_notv9): Delete.
19897         (abstf2_hq_v9): Likewise.
19898         (abstf2_v9): Likewise.
19899         (abstf2_hq): New instruction.
19900         (abstf2): New instruction and splitter.
19901         (absdf2_notv9): Rewrite.
19902
19903 2014-05-14  Cary Coutant  <ccoutant@google.com>
19904
19905         PR debug/61013
19906         * opts.c (common_handle_option): Don't special-case "-g".
19907         (set_debug_level): Default to at least level 2 with "-g".
19908
19909 2014-05-14  DJ Delorie  <dj@redhat.com>
19910
19911         * config/msp430/msp430.c (msp430_builtin): Add
19912         MSP430_BUILTIN_DELAY_CYCLES.
19913         (msp430_init_builtins): Register void __delay_cycles(long long).
19914         (msp430_builtin_decl): Add it.
19915         (cg_magic_constant): New.
19916         (msp430_expand_delay_cycles): New.
19917         (msp430_expand_builtin): Call it.
19918         (msp430_print_operand_raw): Change integer printing from "int" to
19919         HOST_WIDE_INT.
19920         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19921         (delay_cycles_start): New.
19922         (delay_cycles_end): New.
19923         (delay_cycles_32): New.
19924         (delay_cycles_32x): New.
19925         (delay_cycles_16): New.
19926         (delay_cycles_16x): New.
19927         (delay_cycles_2): New.
19928         (delay_cycles_1): New.
19929         * doc/extend.texi: Document __delay_cycles().
19930
19931 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
19932
19933         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19934         length attribute computation.
19935
19936 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
19937
19938         PR debug/61188
19939         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19940
19941 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
19942
19943         PR target/61084
19944         * config/sparc/sparc.md: Fix types of low and high in DI constant
19945         splitter.  Use gen_int_mode in some other splitters.
19946
19947 2014-05-14  Martin Jambor  <mjambor@suse.cz>
19948
19949         PR ipa/60897
19950         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19951
19952 2014-05-14  James Norris  <jnorris@codesourcery.com>
19953
19954         * omp-low.c (expand_parallel_call): Remove shadow variable.
19955         (expand_omp_taskreg): Likewise.
19956
19957 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
19958
19959         * common/config/i386/i386-common.c
19960         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19961         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19962         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19963         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19964         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19965         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19966         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19967         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19968         xsavecintrin.h, xsavesintrin.h.
19969         (x86_64-*-*): Ditto.
19970         * config/i386/clflushoptintrin.h: New.
19971         * config/i386/xsavecintrin.h: Ditto.
19972         * config/i386/xsavesintrin.h: Ditto.
19973         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19974         (bit_XSAVES): Ditto.
19975         (bit_XSAVES): Ditto.
19976         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19977         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19978         -mno-clflushopt.
19979         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19980         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19981         OPTION_MASK_ISA_XSAVES.
19982         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19983         -mxsavec, -mxsaves.
19984         (PTA_CLFLUSHOPT) Define.
19985         (PTA_XSAVEC): Ditto.
19986         (PTA_XSAVES): Ditto.
19987         (ix86_option_override_internal): Handle new options.
19988         (ix86_valid_target_attribute_inner_p): Ditto.
19989         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19990         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19991         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19992         (bdesc_special_args): Add __builtin_ia32_xsaves,
19993         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19994         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19995         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19996         (ix86_expand_builtin): Handle new builtins.
19997         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19998         (TARGET_CLFLUSHOPT_P): Ditto.
19999         (TARGET_XSAVEC): Ditto.
20000         (TARGET_XSAVEC_P): Ditto.
20001         (TARGET_XSAVES): Ditto.
20002         (TARGET_XSAVES_P): Ditto.
20003         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20004         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20005         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20006         (ANY_XRSTOR): New.
20007         (ANY_XRSTOR64): Ditto.
20008         (xrstor): Ditto.
20009         (xrstor): Change into <xrstor>.
20010         (xrstor_rex64): Change into <xrstor>_rex64.
20011         (xrstor64): Change into <xrstor>64
20012         (clflushopt): New.
20013         * config/i386/i386.opt (mclflushopt): New.
20014         (mxsavec): Ditto.
20015         (mxsaves): Ditto.
20016         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20017         xsavecintrin.h.
20018         * doc/invoke.texi: Document new options.
20019
20020 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20021
20022         PR rtl-optimization/60866
20023         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20024         Default it to -1.  Pass it down to init_simplejump_data.
20025         (init_simplejump_data): New parameter old_seqno.  Pass it down
20026         to get_seqno_for_a_jump.
20027         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
20028         initializing new jump seqno as a last resort.  Add comment.
20029         (sel_redirect_edge_and_branch): Save old seqno of the conditional
20030         jump and pass it down to sel_init_new_insn.
20031         (sel_redirect_edge_and_branch_force): Likewise.
20032
20033 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
20034
20035         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20036         shifted values to avoid build warning.
20037
20038 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20039
20040         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20041         * cfgrtl.c (rtl_merge_blocks): Fix comment.
20042         (cfg_layout_merge_blocks): Likewise.
20043         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20044
20045 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20046
20047         PR rtl-optimization/60901
20048         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20049         bb predecessor belongs to the same scheduling region.  Adjust comment.
20050
20051 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
20052
20053         * doc/sourcebuild.texi: (dfp_hw): Document.
20054         (p8vector_hw): Likewise.
20055         (powerpc_eabi_ok): Likewise.
20056         (powerpc_elfv2): Likewise.
20057         (powerpc_htm_ok): Likewise.
20058         (ppc_recip_hw): Likewise.
20059         (vsx_hw): Likewise.
20060
20061 2014-05-13  Cary Coutant  <ccoutant@google.com>
20062
20063         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20064
20065 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
20066
20067         * gengtype-parse.c (require3): Eliminate in favor of...
20068         (require4): New.
20069         (require_template_declaration): Update to support optional single *
20070         on a type.
20071
20072         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20073         (create_user_defined_type): Handle a single level of explicit
20074         pointerness within template arguments.
20075         (struct write_types_data): Add field "kind".
20076         (filter_type_name): Handle "*" character.
20077         (write_user_func_for_structure_ptr): Require a write_types_data
20078         rather than just a prefix string, so that we can look up the kind
20079         of the wtd and use it as an index into wrote_user_func_for_ptr,
20080         ensuring that such functions are written at most once.  Support
20081         subclasses by invoking the marking function of the ultimate base class.
20082         (write_user_func_for_structure_body): Require a write_types_data
20083         rather than just a prefix string, so that we can pass this to
20084         write_user_func_for_structure_ptr.
20085         (write_func_for_structure): Likewise.
20086         (ggc_wtd): Add initializer of new "kind" field.
20087         (pch_wtd): Likewise.
20088
20089         * gengtype.h (enum write_types_kinds): New.
20090         (struct type): Add field wrote_user_func_for_ptr to the "s"
20091         union member.
20092
20093 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
20094
20095         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20096         instead of const_binop.
20097         (fold_binary_loc): Likewise.
20098
20099 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
20100
20101         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20102         calculation to match get_ref_base_and_extent.
20103
20104 2014-05-13  Catherine Moore  <clm@codesourcery.com>
20105             Sandra Loosemore  <sandra@codesourcery.com>
20106
20107         * configure.ac: Fix assembly for explicit JALR relocation check.
20108         * configure: Regenerate.
20109
20110 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20111
20112         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20113         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20114         Remove associated type declarations and initialisations.
20115         (arm_expand_neon_builtin): Likewise.
20116         (neon_emit_pair_result_insn): Delete.
20117         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20118         * config/arm/neon.md (neon_vtrn<mode>): Delete.
20119         (neon_vzip<mode>): Likewise.
20120         (neon_vuzp<mode>): Likewise.
20121
20122 2014-05-13  Richard Biener  <rguenther@suse.de>
20123
20124         PR ipa/60973
20125         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20126         it needs revisiting whether the call still may be tail-called.
20127
20128 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20129
20130         * rtl.def (SYMBOL_REF): Remove middle "0" field.
20131         * rtl.h (block_symbol): Reduce number of fields to 2.
20132         (rtx_def): Add u2.symbol_ref_flags.
20133         (SYMBOL_REF_FLAGS): Use it.
20134         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20135         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20136         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20137         Lower index of SYMBOL_REF_DATA.
20138         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20139         Print SYMBOL_REF_FLAGS at the same time.
20140         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20141
20142 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20143
20144         * rtl.def (VAR_LOCATION): Remove "i" field.
20145         * rtl.h (rtx_def): Add u2.var_location_status.
20146         (PAT_VAR_LOCATION_STATUS): Use it.
20147         (gen_rtx_VAR_LOCATION): Declare.
20148         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20149         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20150         * var-tracking.c (emit_note_insn_var_location): Remove casts.
20151
20152 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20153
20154         * rtl.def (scratch): Fix outdated comment and remove "0" field.
20155         * gengtype.c (adjust_field_rtx_def): Update accordingly.
20156
20157 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20158
20159         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20160         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20161         * rtl.h (rtx_def): Add insn_uid to u2 field.
20162         (RTX_FLAG_CHECK8): Delete in favor of...
20163         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20164         (INSN_DELETED_P): Update accordingly.
20165         (INSN_UID): Use u2.insn_uid.
20166         (INSN_CHAIN_CODE_P): Define.
20167         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20168         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20169         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20170         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20171         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20172         indices accordingly.
20173         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20174         Update indices for insn-chain rtxes.
20175         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20176         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20177         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20178         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20179         * combine.c (try_combine): Likewise.
20180         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20181
20182 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20183
20184         * rtl.def (REG): Remove middle field.
20185         * rtl.h (rtx_def): Add orignal_regno to u2.
20186         (ORIGINAL_REGNO): Use it instead of field 1.
20187         (REG_ATTRS): Lower field index accordingly.
20188         * gengtype.c (adjust_field_rtx_def): Remove handling of
20189         ORIGINAL_REGNO.  Move REG_ATTRS index down.
20190         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20191         code that prints the REGNO.
20192
20193 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20194
20195         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20196         GENERATOR_FILE.
20197
20198 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20199
20200         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20201
20202 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
20203
20204         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20205         (alloc_iv): Lower base expressions containing ADDR_EXPR.
20206
20207 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
20208
20209         * config/aarch64/aarch64-protos.h
20210         (aarch64_hard_regno_caller_save_mode): New prototype.
20211         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20212         New function.
20213         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20214
20215 2014-05-13  Christian Bruel  <christian.bruel@st.com>
20216
20217         * target.def (mode_switching): New hook vector.
20218         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20219         (mode_exit, modepriority_to_mode): Likewise.
20220         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20221         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20222         * target.h: Include tm.h and hard-reg-set.h.
20223         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20224         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20225         * doc/tm.texi Regenerate.
20226         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20227         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20228         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20229         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20230         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20231         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20232         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20233         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20234         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20235         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20236         (ix86_emit_mode_set): Hookify.
20237         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20238         Delete.
20239         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20240         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20241         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20242         (epiphany_mode_priority_to_mode): Remove declaration.
20243         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20244         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20245         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20246         Likewise.
20247         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
20248         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20249         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20250
20251 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
20252
20253         PR target/61060
20254         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20255         is const0_rtx, return immediately.  Don't test count == 0 when
20256         it is always true.
20257
20258 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20259
20260         * Makefile.in: add shrink-wrap.o.
20261         * config/i386/i386.c: include "shrink-wrap.h"
20262         * function.c: Likewise.
20263         (requires_stack_frame_p, next_block_for_reg,
20264         move_insn_for_shrink_wrap, prepare_shrink_wrap,
20265         dup_block_and_redirect): Move to shrink-wrap.c
20266         (thread_prologue_and_epilogue_insns): Extract three code segments
20267         as functions in shrink-wrap.c
20268         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20269         shrink-wrap.h
20270         * shrink-wrap.c: New file.
20271         * shrink-wrap.h: New file.
20272
20273 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
20274
20275         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
20276         reference to Solaris.
20277
20278 2014-05-12  Mike Stump  <mikestump@comcast.net>
20279
20280         PR other/31778
20281         * genattrtab.c (filename): Add.
20282         (convert_set_attr_alternative): Improve error message.
20283         (check_defs): Restore read_md_filename for error messages.
20284         (gen_insn): Save filename.
20285
20286 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
20287
20288         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20289         -fno-local-ivars and -fivar-visibility.
20290         * c-family/c.opt: Make -Wshadow also implicitly enable
20291         -Wshadow-ivar.
20292
20293 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
20294
20295         * doc/tm.texi: Remove reference to deleted macro.
20296         * doc/tm.texi.in: Likewise.
20297
20298 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20299
20300         PR target/60991
20301         * config/avr/avr.c (avr_out_store_psi): Use correct constant
20302         to restore Y.
20303
20304 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
20305
20306         PR libgcc/61152
20307         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20308         * config/arm/aout.h (License): Same.
20309         * config/arm/bpabi.h (License): Same.
20310         * config/arm/elf.h (License): Same.
20311         * config/arm/linux-elf.h (License): Same.
20312         * config/arm/linux-gas.h (License): Same.
20313         * config/arm/netbsd-elf.h (License): Same.
20314         * config/arm/uclinux-eabi.h (License): Same.
20315         * config/arm/uclinux-elf.h (License): Same.
20316         * config/arm/vxworks.h (License): Same.
20317
20318 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
20319
20320         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20321         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20322         number of operands to 3.
20323         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20324         * tree-nested.c (convert_nonlocal_omp_clauses,
20325         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20326         * gimplify.c (gimplify_scan_omp_clauses): Handle
20327         OMP_CLAUSE_LINEAR_STMT.
20328         * omp-low.c (lower_rec_input_clauses): Fix typo.
20329         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20330         cast between Fortran boolean_type_node and C _Bool if
20331         needed.
20332
20333 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
20334
20335         PR tree-optimization/61136
20336         * wide-int.h (multiple_of_p): Define a version that doesn't return
20337         the quotient.
20338         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20339         integer_zerop/const_binop pair.
20340         (multiple_of_p): Likewise, converting both operands to widest_int
20341         precision.
20342
20343 2014-05-09  Teresa Johnson  <tejohnson@google.com>
20344
20345         * cgraphunit.c (analyze_functions): Use correct dump file.
20346
20347 2014-05-09  Florian Weimer  <fweimer@redhat.com>
20348
20349         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20350         expand_used_vars.
20351         (stack_protect_return_slot_p): New function.
20352         (expand_used_vars): Call stack_protect_decl_p and
20353         stack_protect_return_slot_p for -fstack-protector-strong.
20354
20355 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
20356         Andrew Haley <aph@redhat.com>
20357         Richard Sandiford <rdsandiford@googlemail.com>
20358
20359         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20360         pages.
20361
20362 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
20363
20364         PR middle-end/61111
20365         * fold-const.c (fold_binary_loc): Changed width of mask.
20366
20367 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
20368
20369         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20370         unsigned int initializers for regno_in, regno_out.
20371
20372 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
20373
20374         PR target/61055
20375         * config/avr/avr.md (cc): Add new attribute set_vzn.
20376         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20377         Set cc insn attribute to set_vzn instead of set_zn for alternatives
20378         with INC, DEC or NEG.
20379         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20380         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20381         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20382
20383 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20384
20385         Revert:
20386         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20387
20388         * wide-int.cc (UTItype): Define.
20389         (UDWtype): Define for appropriate W_TYPE_SIZE.
20390
20391 2014-05-09  Richard Biener  <rguenther@suse.de>
20392
20393         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20394         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20395         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20396         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20397         ssa_propagate): Adjust.
20398
20399 2014-05-08  Jeff Law  <law@redhat.com>
20400
20401         PR tree-optimization/61009
20402         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20403         tri-state rather than a boolean.  When a block is too big to
20404         thread through, inform caller via negative return value.
20405         (thread_across_edge): If a block was too big for normal threading,
20406         then it's too big for a joiner too, so remove temporary equivalences
20407         and return immediately.
20408
20409 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20410             Matthias Klose  <doko@ubuntu.com>
20411
20412         PR driver/61106
20413         * optc-gen.awk: Fix option handling for -Wunused-parameter.
20414
20415 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
20416
20417         PR target/59952
20418         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20419
20420 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
20421
20422         PR target/61092
20423         * config/alpha/alpha.c: Include gimple-iterator.h.
20424         (alpha_gimple_fold_builtin): New function.  Move
20425         ALPHA_BUILTIN_UMULH folding from ...
20426         (alpha_fold_builtin): ... here.
20427         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20428
20429 2014-05-08  Wei Mi  <wmi@google.com>
20430
20431         PR target/58066
20432         * config/i386/i386.c (ix86_compute_frame_layout): Update
20433         preferred_stack_boundary for call, expanded from tls descriptor.
20434         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20435         to depend on SP register.
20436         (*tls_local_dynamic_base_32_gnu): Ditto.
20437         (*tls_local_dynamic_32_once): Ditto.
20438         (tls_global_dynamic_64_<mode>): Set
20439         ix86_tls_descriptor_calls_expanded_in_cfun.
20440         (tls_local_dynamic_base_64_<mode>): Ditto.
20441         (tls_global_dynamic_32): Set
20442         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20443         to depend on SP register.
20444         (tls_local_dynamic_base_32): Ditto.
20445
20446 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20447
20448         * config/arm/arm_neon.h: Update comment.
20449         * config/arm/neon-docgen.ml: Delete.
20450         * config/arm/neon-gen.ml: Delete.
20451         * doc/arm-neon-intrinsics.texi: Update comment.
20452
20453 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20454
20455         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20456         and v4sf versions.
20457         (vand, vorr, veor, vorn, vbic): Remove.
20458         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20459         iterator.
20460         (neon_vsub_unspec): Likewise.
20461         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20462
20463 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20464
20465         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20466         (vadd_s16): Likewise.
20467         (vadd_s32): Likewise.
20468         (vadd_f32): Likewise.
20469         (vadd_u8): Likewise.
20470         (vadd_u16): Likewise.
20471         (vadd_u32): Likewise.
20472         (vadd_s64): Likewise.
20473         (vadd_u64): Likewise.
20474         (vaddq_s8): Likewise.
20475         (vaddq_s16): Likewise.
20476         (vaddq_s32): Likewise.
20477         (vaddq_s64): Likewise.
20478         (vaddq_f32): Likewise.
20479         (vaddq_u8): Likewise.
20480         (vaddq_u16): Likewise.
20481         (vaddq_u32): Likewise.
20482         (vaddq_u64): Likewise.
20483         (vmul_s8): Likewise.
20484         (vmul_s16): Likewise.
20485         (vmul_s32): Likewise.
20486         (vmul_f32): Likewise.
20487         (vmul_u8): Likewise.
20488         (vmul_u16): Likewise.
20489         (vmul_u32): Likewise.
20490         (vmul_p8): Likewise.
20491         (vmulq_s8): Likewise.
20492         (vmulq_s16): Likewise.
20493         (vmulq_s32): Likewise.
20494         (vmulq_f32): Likewise.
20495         (vmulq_u8): Likewise.
20496         (vmulq_u16): Likewise.
20497         (vmulq_u32): Likewise.
20498         (vsub_s8): Likewise.
20499         (vsub_s16): Likewise.
20500         (vsub_s32): Likewise.
20501         (vsub_f32): Likewise.
20502         (vsub_u8): Likewise.
20503         (vsub_u16): Likewise.
20504         (vsub_u32): Likewise.
20505         (vsub_s64): Likewise.
20506         (vsub_u64): Likewise.
20507         (vsubq_s8): Likewise.
20508         (vsubq_s16): Likewise.
20509         (vsubq_s32): Likewise.
20510         (vsubq_s64): Likewise.
20511         (vsubq_f32): Likewise.
20512         (vsubq_u8): Likewise.
20513         (vsubq_u16): Likewise.
20514         (vsubq_u32): Likewise.
20515         (vsubq_u64): Likewise.
20516         (vand_s8): Likewise.
20517         (vand_s16): Likewise.
20518         (vand_s32): Likewise.
20519         (vand_u8): Likewise.
20520         (vand_u16): Likewise.
20521         (vand_u32): Likewise.
20522         (vand_s64): Likewise.
20523         (vand_u64): Likewise.
20524         (vandq_s8): Likewise.
20525         (vandq_s16): Likewise.
20526         (vandq_s32): Likewise.
20527         (vandq_s64): Likewise.
20528         (vandq_u8): Likewise.
20529         (vandq_u16): Likewise.
20530         (vandq_u32): Likewise.
20531         (vandq_u64): Likewise.
20532         (vorr_s8): Likewise.
20533         (vorr_s16): Likewise.
20534         (vorr_s32): Likewise.
20535         (vorr_u8): Likewise.
20536         (vorr_u16): Likewise.
20537         (vorr_u32): Likewise.
20538         (vorr_s64): Likewise.
20539         (vorr_u64): Likewise.
20540         (vorrq_s8): Likewise.
20541         (vorrq_s16): Likewise.
20542         (vorrq_s32): Likewise.
20543         (vorrq_s64): Likewise.
20544         (vorrq_u8): Likewise.
20545         (vorrq_u16): Likewise.
20546         (vorrq_u32): Likewise.
20547         (vorrq_u64): Likewise.
20548         (veor_s8): Likewise.
20549         (veor_s16): Likewise.
20550         (veor_s32): Likewise.
20551         (veor_u8): Likewise.
20552         (veor_u16): Likewise.
20553         (veor_u32): Likewise.
20554         (veor_s64): Likewise.
20555         (veor_u64): Likewise.
20556         (veorq_s8): Likewise.
20557         (veorq_s16): Likewise.
20558         (veorq_s32): Likewise.
20559         (veorq_s64): Likewise.
20560         (veorq_u8): Likewise.
20561         (veorq_u16): Likewise.
20562         (veorq_u32): Likewise.
20563         (veorq_u64): Likewise.
20564         (vbic_s8): Likewise.
20565         (vbic_s16): Likewise.
20566         (vbic_s32): Likewise.
20567         (vbic_u8): Likewise.
20568         (vbic_u16): Likewise.
20569         (vbic_u32): Likewise.
20570         (vbic_s64): Likewise.
20571         (vbic_u64): Likewise.
20572         (vbicq_s8): Likewise.
20573         (vbicq_s16): Likewise.
20574         (vbicq_s32): Likewise.
20575         (vbicq_s64): Likewise.
20576         (vbicq_u8): Likewise.
20577         (vbicq_u16): Likewise.
20578         (vbicq_u32): Likewise.
20579         (vbicq_u64): Likewise.
20580         (vorn_s8): Likewise.
20581         (vorn_s16): Likewise.
20582         (vorn_s32): Likewise.
20583         (vorn_u8): Likewise.
20584         (vorn_u16): Likewise.
20585         (vorn_u32): Likewise.
20586         (vorn_s64): Likewise.
20587         (vorn_u64): Likewise.
20588         (vornq_s8): Likewise.
20589         (vornq_s16): Likewise.
20590         (vornq_s32): Likewise.
20591         (vornq_s64): Likewise.
20592         (vornq_u8): Likewise.
20593         (vornq_u16): Likewise.
20594         (vornq_u32): Likewise.
20595         (vornq_u64): Likewise.
20596
20597 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20598
20599         * wide-int.cc (UTItype): Define.
20600         (UDWtype): Define for appropriate W_TYPE_SIZE.
20601
20602 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
20603
20604         PR tree-optimization/59100
20605         * tree-ssa-phiopt.c: Include tree-inline.h.
20606         (neutral_element_p, absorbing_element_p): New functions.
20607         (value_replacement): Handle conditional binary operations with a
20608         neutral or absorbing element.
20609
20610 2014-05-08  Richard Biener  <rguenther@suse.de>
20611
20612         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20613         folding the expression.
20614         (valueize_expr): Remove.
20615         (visit_reference_op_load): Do not valueize the result of
20616         vn_get_expr_for.
20617         (simplify_binary_expression): Likewise.
20618         (simplify_unary_expression): Likewise.
20619
20620 2014-05-08  Richard Biener  <rguenther@suse.de>
20621
20622         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20623         looking at TYPE_ARG_TYPES.
20624
20625 2014-05-08  Richard Biener  <rguenther@suse.de>
20626
20627         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20628         pointer propagation special-case.
20629
20630 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
20631
20632         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20633         core part of address expressions.
20634
20635 2014-05-08  Alan Modra  <amodra@gmail.com>
20636
20637         PR target/60737
20638         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20639         loads and stores when -mno-strict-align at any alignment.
20640         (expand_block_clear): Similarly.  Also correct calculation of
20641         instruction count.
20642
20643 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20644
20645         PR middle-end/39246
20646         * tree-complex.c (expand_complex_move): Keep line info when expanding
20647         complex move.
20648         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20649         of complex expression. Use new argument to display correct location
20650         for values coming from phi statement.
20651         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20652         (warn_uninitialized_phi): Pass location of phi argument to
20653         warn_uninit.
20654         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20655         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20656
20657 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
20658
20659         * config/rs6000/predicates.md (indexed_address_mem): New.
20660         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20661         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20662         fpstore_ux, fpstore_u.
20663         (sign_extend, indexed, update): New.
20664         (cell_micro): Adjust.
20665         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20666         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20667         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20668         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20669         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20670         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20671         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20672         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20673         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20674         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20675         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20676         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20677         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20678         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20679         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20680
20681         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20682         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20683         *vsx_extract_<mode>_store): Adjust.
20684         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20685         is_cracked_insn, insn_must_be_first_in_group,
20686         insn_must_be_last_in_group): Adjust.
20687
20688         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20689         Adjust.
20690         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20691         ppc440-fpstore): Adjust.
20692         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20693         ppc476-fpstore): Adjust.
20694         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20695         ppc601-fpstore): Adjust.
20696         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20697         Adjust.
20698         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20699         Adjust.
20700         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20701         ppc7450-fpstore): Adjust.
20702         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20703         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20704         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20705         Adjust.
20706         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20707         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20708         cell-fpstore, cell-fpstore-update): Adjust.
20709         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20710         ppce300c3_store, ppce300c3_fpstore): Adjust.
20711         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20712         e500mc_fpstore): Adjust.
20713         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20714         e500mc64_store, e500mc64_fpstore): Adjust.
20715         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20716         e5500_fpstore): Adjust.
20717         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20718         e6500_fpstore): Adjust.
20719         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20720         Adjust.
20721         * config/rs6000/power4.md (power4-load, power4-load-ext,
20722         power4-load-ext-update, power4-load-ext-update-indexed,
20723         power4-load-update-indexed, power4-load-update, power4-fpload,
20724         power4-fpload-update, power4-store, power4-store-update,
20725         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20726         Adjust.
20727         * config/rs6000/power5.md (power5-load, power5-load-ext,
20728         power5-load-ext-update, power5-load-ext-update-indexed,
20729         power5-load-update-indexed, power5-load-update, power5-fpload,
20730         power5-fpload-update, power5-store, power5-store-update,
20731         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20732         Adjust.
20733         * config/rs6000/power6.md (power6-load, power6-load-ext,
20734         power6-load-update, power6-load-update-indexed,
20735         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20736         power6-fpload-update, power6-store, power6-store-update,
20737         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20738         Adjust.
20739         * config/rs6000/power7.md (power7-load, power7-load-ext,
20740         power7-load-update, power7-load-update-indexed,
20741         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20742         power7-fpload-update, power7-store, power7-store-update,
20743         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20744         Adjust.
20745         * config/rs6000/power8.md (power8-load, power8-load-update,
20746         power8-load-ext, power8-load-ext-update, power8-fpload,
20747         power8-fpload-update, power8-store, power8-store-update-indexed,
20748         power8-fpstore, power8-fpstore-update): Adjust.
20749         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20750         Adjust.
20751         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20752         titan_lsu_store, titan_lsu_fpstore): Adjust.
20753         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20754
20755 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
20756
20757         PR target/60884
20758         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20759         unrolled byte insns.  Emit address increments after move insns.
20760
20761 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
20762
20763         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20764         const_gimple, rather than a gimple.
20765         (gimple_call_builtin_p): Likewise, for the three variants.
20766
20767         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20768         (gimple_call_builtin_p): Likewise, for the three variants.
20769
20770 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20771
20772         PR tree-optimization/61095
20773         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20774
20775 2014-05-07  Richard Biener  <rguenther@suse.de>
20776
20777         PR tree-optimization/61034
20778         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20779         (maybe_skip_until): Use translate to take into account
20780         lattices when trying to do disambiguations.
20781         (get_continuation_for_phi_1): Likewise.
20782         (get_continuation_for_phi): Adjust for added translate arguments.
20783         (walk_non_aliased_vuses): Likewise.
20784         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20785         (walk_non_aliased_vuses): Likewise.
20786         (call_may_clobber_ref_p_1): Declare.
20787         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20788         calls.  Stop early if we are only supposed to disambiguate.
20789         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20790
20791 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
20792
20793         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20794         Emit an error when the function has arguments.
20795
20796 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
20797
20798         * cfgloop.h (unswitch_loops): Remove.
20799         * doc/passes.texi: Remove references to loop-unswitch.c
20800         * timevar.def (TV_LOOP_UNSWITCH): Remove.
20801
20802 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
20803
20804         * tree-vect-data-refs.c (vect_grouped_load_supported): New
20805         check for loads group of length 3.
20806         (vect_permute_load_chain): New permutations for loads group of
20807         length 3.
20808         * tree-vect-stmts.c (vect_model_load_cost): Change cost
20809         of vec_perm_shuffle for the new permutations.
20810
20811 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
20812
20813         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20814         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20815         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20816         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20817         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20818         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20819         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20820         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20821
20822 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
20823
20824         * loop-unswitch.c: Delete.
20825
20826 2014-05-07  Richard Biener  <rguenther@suse.de>
20827
20828         * config.gcc: Always set need_64bit_hwint to yes.
20829
20830 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
20831
20832         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20833         of using optimize_size.
20834
20835 2014-05-06  Mike Stump  <mikestump@comcast.net>
20836
20837         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20838
20839 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
20840
20841         * config/i386/sse.md (*mov<mode>_internal)
20842         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20843         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20844         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20845         (*<code><mode>3, *andnot<mode>3<mask_name>)
20846         (<mask_codefor><code><mode>3<mask_name>): Only consider
20847         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20848
20849 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
20850
20851         Revert:
20852         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
20853
20854         * lra-constraints.c (valid_address_p): Move earlier in file.
20855         Add a constraint argument to the address_info version.
20856         (satisfies_memory_constraint_p): New function.
20857         (satisfies_address_constraint_p): Likewise.
20858         (process_alt_operands, curr_insn_transform): Use them.
20859         (process_address): Pass the constraint to valid_address_p when
20860         checking address operands.
20861
20862 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
20863
20864         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20865         to their respective blocks.  Fix inadvertent use of "node".
20866
20867 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
20868
20869         * emit-rtl.c (init_derived_machine_modes): New functionm, split
20870         out from...
20871         (init_emit_once): ...here.
20872         * rtl.h (init_derived_machine_modes): Declare.
20873         * toplev.c (do_compile): Call it even if no_backend.
20874
20875 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
20876             Mike Stump  <mikestump@comcast.net>
20877             Richard Sandiford  <rdsandiford@googlemail.com>
20878             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20879
20880         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20881         (rtx_equal_for_memref_p): Update comment.
20882         (adjust_offset_for_component_ref): Use wide-int interfaces.
20883         * builtins.c (get_object_alignment_2): Likewise.
20884         (c_readstr): Likewise.
20885         (target_char_cast): Add comment.
20886         (determine_block_size): Use wide-int interfaces.
20887         (expand_builtin_signbit): Likewise.
20888         (fold_builtin_int_roundingfn): Likewise.
20889         (fold_builtin_bitop): Likewise.
20890         (fold_builtin_bswap): Likewise.
20891         (fold_builtin_logarithm): Use signop.
20892         (fold_builtin_pow): Likewise.
20893         (fold_builtin_memory_op): Use wide-int interfaces.
20894         (fold_builtin_object_size): Likewise.
20895         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20896         nb_iterations_estimate.
20897         (record_niter_bound): Use wide-int interfaces.
20898         (get_estimated_loop_iterations_int): Likewise.
20899         (get_estimated_loop_iterations): Likewise.
20900         (get_max_loop_iterations): Likewise.
20901         * cfgloop.h: Include wide-int.h.
20902         (struct nb_iter_bound): Change bound to widest_int.
20903         (struct loop): Change nb_iterations_upper_bound and
20904         nb_iterations_estimate to widest_int.
20905         (record_niter_bound): Switch to use widest_int.
20906         (get_estimated_loop_iterations): Likewise.
20907         (get_max_loop_iterations): Likewise.
20908         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20909         update for wide-int.
20910         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20911         * combine.c (try_combine): Likewise.
20912         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20913         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20914         interfaces.
20915         (aarch64_float_const_representable_p): Likewise.
20916         * config/arc/arc.c: Include wide-int.h.
20917         (arc_can_use_doloop_p): Use wide-int interfaces.
20918         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20919         (vfp3_const_double_index): Likewise.
20920         * config/avr/avr.c (avr_out_round): Likewise.
20921         (avr_fold_builtin): Likewise.
20922         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20923         (bfin_can_use_doloop_p): Likewise.
20924         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20925         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20926         * config/i386/i386.c: Include wide-int.h.
20927         (ix86_data_alignment): Use wide-int interfaces.
20928         (ix86_local_alignment): Likewise.
20929         (ix86_emit_swsqrtsf): Update real_from_integer.
20930         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20931         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20932         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20933         (zero_constant): Likewise.
20934         (input_operand): Likewise.
20935         (splat_input_operand): Likewise.
20936         (non_logical_cint_operand): Change const_double to const_wide_int.
20937         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20938         (easy_altivec_constant): Remove comment.
20939         (paired_expand_vector_init): Use CONSTANT_P.
20940         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20941         (rs6000_emit_move): Update checks.
20942         (rs6000_aggregate_candidate): Use wide-int interfaces.
20943         (rs6000_expand_ternop_builtin): Likewise.
20944         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20945         (rs6000_assemble_integer): Likewise.
20946         (rs6000_hash_constant): Likewise.
20947         (output_toc): Likewise.
20948         (rs6000_rtx_costs): Likewise.
20949         (rs6000_emit_swrsqrt); Update call to real_from_integer.
20950         * config/rs6000/rs6000-c.c: Include wide-int.h.
20951         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20952         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20953         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20954         Handle CONST_WIDE_INT.
20955         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20956         Use tree_fits_uhwi_p.
20957         * config/sparc/sparc.c: Include wide-int.h.
20958         (sparc_fold_builtin): Use wide-int interfaces.
20959         * config/vax/vax.c: Include wide-int.h.
20960         (vax_float_literal): Use real_from_integer.
20961         * coretypes.h (struct hwivec_def): New.
20962         (hwivec): New.
20963         (const_hwivec): New.
20964         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20965         (equiv_constant): Handle CONST_WIDE_INT.
20966         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20967         (cselib_hash_rtx): Handle CONST_WIDE_INT.
20968         * dbxout.c (stabstr_U): Use wide-int interfaces.
20969         (dbxout_type): Update to use cst_fits_shwi_p.
20970         * defaults.h (LOG2_BITS_PER_UNIT): Define.
20971         (TARGET_SUPPORTS_WIDE_INT): Add default.
20972         * dfp.c: Include wide-int.h.
20973         (decimal_real_to_integer2): Use wide-int interfaces and rename to
20974         decimal_real_to_integer.
20975         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20976         decimal_real_to_integer.
20977         * doc/generic.texi (Constant expressions): Update for wide_int.
20978         * doc/rtl.texi (const_double): Likewise.
20979         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20980         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20981         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20982         (REAL_VALUE_FROM_INT): Remove.
20983         (TARGET_SUPPORTS_WIDE_INT): New.
20984         * doc/tm.texi: Regenerate.
20985         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20986         * double-int.h: Include wide-int.h.
20987         (struct wi::int_traits): New.
20988         * dwarf2out.c (get_full_len): New.
20989         (dw_val_equal_p): Add case dw_val_class_wide_int.
20990         (size_of_loc_descr): Likewise.
20991         (output_loc_operands): Likewise.
20992         (insert_double): Remove.
20993         (insert_wide_int): New.
20994         (add_AT_wide): New.
20995         (print_die): Add case dw_val_class_wide_int.
20996         (attr_checksum): Likewise.
20997         (attr_checksum_ordered): Likewise.
20998         (same_dw_val_p): Likewise.
20999         (size_of_die): Likewise.
21000         (value_format): Likewise.
21001         (output_die): Likewise.
21002         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21003         Use wide-int.
21004         (clz_loc_descriptor): Use wide-int interfaces.
21005         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
21006         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
21007         (round_up_to_align): Use wide-int interfaces.
21008         (field_byte_offset): Likewise.
21009         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
21010         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
21011         CONST_DOUBLE handling.  Use wide-int interfaces.
21012         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
21013         (gen_enumeration_type_die): Use add_AT_wide.
21014         (hash_loc_operands): Add case dw_val_class_wide_int.
21015         (compare_loc_operands): Likewise.
21016         * dwarf2out.h: Include wide-int.h.
21017         (wide_int_ptr): New.
21018         (enum dw_val_class): Add dw_val_class_wide_int.
21019         (struct dw_val_struct): Add val_wide.
21020         * emit-rtl.c (const_wide_int_htab): New.
21021         (const_wide_int_htab_hash): New.
21022         (const_wide_int_htab_eq): New.
21023         (lookup_const_wide_int): New.
21024         (const_double_htab_hash): Use wide-int interfaces.
21025         (const_double_htab_eq): Likewise.
21026         (rtx_to_double_int): Conditionally compile for wide-int.
21027         (immed_double_int_const): Rename to immed_wide_int_const and
21028         update for wide-int.
21029         (immed_double_const): Conditionally compile for wide-int.
21030         (init_emit_once): Use wide-int interfaces.
21031         * explow.c (plus_constant): Likewise.
21032         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
21033         (lshift_value): Use wide-int interfaces.
21034         (expand_mult): Likewise.
21035         (choose_multiplier): Likewise.
21036         (expand_smod_pow2): Likewise.
21037         (make_tree): Likewise.
21038         * expr.c (convert_modes): Consolidate handling of constants.
21039         Use wide-int interfaces.
21040         (emit_group_load_1): Add note.
21041         (store_expr): Update comment.
21042         (get_inner_reference): Use wide-int interfaces.
21043         (expand_constructor): Update comment.
21044         (expand_expr_real_2): Use wide-int interfaces.
21045         (expand_expr_real_1): Likewise.
21046         (reduce_to_bit_field_precision): Likewise.
21047         (const_vector_from_tree): Likewise.
21048         * final.c: Include wide-int-print.h.
21049         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
21050         * fixed-value.c: Include wide-int.h.
21051         (fixed_from_string): Use wide-int interfaces.
21052         (fixed_to_decimal): Likewise.
21053         (fixed_convert_from_real): Likewise.
21054         (real_convert_from_fixed): Likewise.
21055         * fold-const.h (mem_ref_offset): Return an offset_int.
21056         (div_if_zero_remainder): Remove code parameter.
21057         * fold-const.c (div_if_zero_remainder): Remove code parameter.
21058         Use wide-int interfaces.
21059         (may_negate_without_overflow_p): Use wide-int interfaces.
21060         (negate_expr_p): Likewise.
21061         (fold_negate_expr): Likewise.
21062         (int_const_binop_1): Likewise.
21063         (const_binop): Likewise.
21064         (fold_convert_const_int_from_int): Likewise.
21065         (fold_convert_const_int_from_real): Likewise.
21066         (fold_convert_const_int_from_fixed): Likewise.
21067         (fold_convert_const_fixed_from_int): Likewise.
21068         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
21069         (sign_bit_p): Use wide-int interfaces.
21070         (make_range_step): Likewise.
21071         (build_range_check): Likewise.  Pass an integer of the correct type
21072         instead of using integer_one_node.
21073         (range_predecessor): Pass an integer of the correct type instead
21074         of using integer_one_node.
21075         (range_successor): Likewise.
21076         (merge_ranges): Likewise.
21077         (unextend): Use wide-int interfaces.
21078         (extract_muldiv_1): Likewise.
21079         (fold_div_compare): Likewise.
21080         (fold_single_bit_test): Likewise.
21081         (fold_sign_changed_comparison): Likewise.
21082         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21083         (fold_plusminus_mult_expr): Use wide-int interfaces.
21084         (native_encode_int): Likewise.
21085         (native_interpret_int): Likewise.
21086         (fold_unary_loc): Likewise.
21087         (pointer_may_wrap_p): Likewise.
21088         (size_low_cst): Likewise.
21089         (mask_with_tz): Likewise.
21090         (fold_binary_loc): Likewise.
21091         (fold_ternary_loc): Likewise.
21092         (multiple_of_p): Likewise.
21093         (tree_call_nonnegative_warnv_p): Update calls to
21094         tree_int_cst_min_precision and real_from_integer.
21095         (fold_negate_const): Use wide-int interfaces.
21096         (fold_abs_const): Likewise.
21097         (fold_relational_const): Use tree_int_cst_lt.
21098         (round_up_loc): Use wide-int interfaces.
21099         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21100         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21101         * gengtype.c: Remove include of double-int.h.
21102         (do_typedef): Use wide-int interfaces.
21103         (open_base_files): Add wide-int.h.
21104         (main): Add offset_int and widest_int typedefs.
21105         * gengtype-lex.l: Handle "^".
21106         (CXX_KEYWORD): Add "static".
21107         * gengtype-parse.c (require3): New.
21108         (require_template_declaration): Handle constant template arguments
21109         and nested templates.
21110         * gengtype-state.c: Don't include "double-int.h".
21111         * genpreds.c (write_one_predicate_function): Update comment.
21112         (write_tm_constrs_h): Add check for hval and lval use in
21113         CONST_WIDE_INT.
21114         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21115         (add_to_sequence): Likewise.
21116         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21117         and const_double_operand.
21118         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21119         interfaces.
21120         * gimple-fold.c (get_base_constructor): Likewise.
21121         (fold_array_ctor_reference): Likewise.
21122         (fold_nonarray_ctor_reference): Likewise.
21123         (fold_const_aggregate_ref_1): Likewise.
21124         (gimple_val_nonnegative_real_p): Likewise.
21125         (gimple_fold_indirect_ref): Likewise.
21126         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21127         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21128         (struct slsr_cand_d): Change index to be widest_int.
21129         (struct incr_info_d): Change incr to be widest_int.
21130         (alloc_cand_and_find_basis): Use wide-int interfaces.
21131         (slsr_process_phi): Likewise.
21132         (backtrace_base_for_ref): Likewise.  Return a widest_int.
21133         (restructure_reference): Take a widest_int instead of a double_int.
21134         (slsr_process_ref): Use wide-int interfaces.
21135         (create_mul_ssa_cand): Likewise.
21136         (create_mul_imm_cand): Likewise.
21137         (create_add_ssa_cand): Likewise.
21138         (create_add_imm_cand): Take a widest_int instead of a double_int.
21139         (slsr_process_add): Use wide-int interfaces.
21140         (slsr_process_cast): Likewise.
21141         (slsr_process_copy): Likewise.
21142         (dump_candidate): Likewise.
21143         (dump_incr_vec): Likewise.
21144         (replace_ref): Likewise.
21145         (cand_increment): Likewise.  Return a widest_int.
21146         (cand_abs_increment): Likewise.
21147         (replace_mult_candidate): Take a widest_int instead of a double_int.
21148         (replace_unconditional_candidate): Use wide-int interfaces.
21149         (incr_vec_index): Take a widest_int instead of a double_int.
21150         (create_add_on_incoming_edge): Likewise.
21151         (create_phi_basis): Use wide-int interfaces.
21152         (replace_conditional_candidate): Likewise.
21153         (record_increment): Take a widest_int instead of a double_int.
21154         (record_phi_increments): Use wide-int interfaces.
21155         (phi_incr_cost): Take a widest_int instead of a double_int.
21156         (lowest_cost_path): Likewise.
21157         (total_savings): Likewise.
21158         (analyze_increments): Use wide-int interfaces.
21159         (ncd_with_phi): Take a widest_int instead of a double_int.
21160         (ncd_of_cand_and_phis): Likewise.
21161         (nearest_common_dominator_for_cands): Likewise.
21162         (insert_initializers): Use wide-int interfaces.
21163         (all_phi_incrs_profitable): Likewise.
21164         (replace_one_candidate): Likewise.
21165         (replace_profitable_candidates): Likewise.
21166         * godump.c: Include wide-int-print.h.
21167         (go_output_typedef): Use wide-int interfaces.
21168         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21169         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21170         (build_loop_iteration_domains): Likewise.
21171         * hooks.h: Include wide-int.h rather than double-int.h.
21172         (hook_bool_dint_dint_uint_bool_true): Delete.
21173         (hook_bool_wint_wint_uint_bool_true): Declare.
21174         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21175         (hook_bool_wint_wint_uint_bool_true): New.
21176         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21177         interfaces.
21178         (ubsan_expand_si_overflow_mul_check): Likewise.
21179         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21180         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21181         (get_ancestor_addr_info): Likewise.
21182         (ipa_modify_call_arguments): Likewise.
21183         * loop-doloop.c (doloop_modify): Likewise.
21184         (doloop_optimize): Likewise.
21185         * loop-iv.c (iv_number_of_iterations): Likewise.
21186         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21187         (unroll_loop_constant_iterations): Likewise.
21188         (decide_unroll_runtime_iterations): Likewise.
21189         (unroll_loop_runtime_iterations): Likewise.
21190         (decide_peel_simple): Likewise.
21191         (decide_unroll_stupid): Likewise.
21192         * lto-streamer-in.c (streamer_read_wi): Add.
21193         (input_cfg): Use wide-int interfaces.
21194         (lto_input_tree_1): Likewise.
21195         * lto-streamer-out.c (streamer_write_wi): Add.
21196         (hash_tree): Use wide-int interfaces.
21197         (output_cfg): Likewise.
21198         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21199         (GTFILES): Add wide-int.h and signop.h.
21200         (TAGS): Look for .cc files too.
21201         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21202         * optabs.c (expand_subword_shift): Likewise.
21203         (expand_doubleword_shift): Likewise.
21204         (expand_absneg_bit): Likewise.
21205         (expand_copysign_absneg): Likewise.
21206         (expand_copysign_bit): Likewise.
21207         * postreload.c (reload_cse_simplify_set): Likewise.
21208         * predict.c (predict_iv_comparison): Likewise.
21209         * pretty-print.h: Include wide-int-print.h.
21210         (pp_wide_int) New.
21211         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21212         * print-tree.c: Include wide-int-print.h.
21213         (print_node_brief): Use wide-int interfaces.
21214         (print_node): Likewise.
21215         * read-rtl.c (validate_const_wide_int): New.
21216         (read_rtx_code): Add CONST_WIDE_INT case.
21217         * real.c: Include wide-int.h.
21218         (real_to_integer2): Delete.
21219         (real_to_integer): New function, returning a wide_int.
21220         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21221         (ten_to_ptwo): Update call to real_from_integer.
21222         (real_digit): Likewise.
21223         * real.h: Include signop.h, wide-int.h and insn-modes.h.
21224         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21225         (REAL_VALUE_TO_INT): Delete.
21226         (real_to_integer): Declare a wide-int form.
21227         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21228         * recog.c (const_int_operand): Improve comment.
21229         (const_scalar_int_operand): New.
21230         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21231         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21232         (split_double): Likewise.
21233         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21234         (rtx_size): Likewise.
21235         (rtx_alloc_stat_v): New.
21236         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21237         (cwi_output_hex): New.
21238         (iterative_hash_rtx): Handle CONST_WIDE_INT.
21239         (cwi_check_failed_bounds): New.
21240         * rtl.def (CONST_WIDE_INT): New.
21241         * rtl.h: Include <utility> and wide-int.h.
21242         (struct hwivec_def): New.
21243         (CWI_GET_NUM_ELEM): New.
21244         (CWI_PUT_NUM_ELEM): New.
21245         (struct rtx_def): Add num_elem and hwiv.
21246         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21247         (CASE_CONST_UNIQUE): Likewise.
21248         (CASE_CONST_ANY): Likewise.
21249         (CONST_SCALAR_INT_P): Likewise.
21250         (CONST_WIDE_INT_P): New.
21251         (CWI_ELT): New.
21252         (HWIVEC_CHECK): New.
21253         (cwi_check_failed_bounds): New.
21254         (CWI_ELT): New.
21255         (HWIVEC_CHECK): New.
21256         (CONST_WIDE_INT_VEC) New.
21257         (CONST_WIDE_INT_NUNITS) New.
21258         (CONST_WIDE_INT_ELT) New.
21259         (rtx_mode_t): New type.
21260         (wi::int_traits <rtx_mode_t>): New.
21261         (wi::shwi): New.
21262         (wi::min_value): New.
21263         (wi::max_value): New.
21264         (rtx_alloc_v) New.
21265         (const_wide_int_alloc): New.
21266         (immed_wide_int_const): New.
21267         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21268         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21269         * signop.h: New file.
21270         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21271         (simplify_const_unary_operation): Use wide-int interfaces.
21272         (simplify_binary_operation_1): Likewise.
21273         (simplify_const_binary_operation): Likewise.
21274         (simplify_const_relational_operation): Likewise.
21275         (simplify_immed_subreg): Likewise.
21276         * stmt.c (expand_case): Likewise.
21277         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21278         signop rather than a bool.
21279         * stor-layout.c (layout_type): Use wide-int interfaces.
21280         (initialize_sizetypes): Update calls to
21281         set_min_and_max_values_for_integral_type.
21282         (set_min_and_max_values_for_integral_type): Take a signop rather
21283         than a bool.  Use wide-int interfaces.
21284         (fixup_signed_type): Update accordingly.  Remove
21285         HOST_BITS_PER_DOUBLE_INT limit.
21286         (fixup_unsigned_type): Likewise.
21287         * system.h (STATIC_CONSTANT_P): New.
21288         (STATIC_ASSERT): New.
21289         * target.def (can_use_doloop_p): Take widest_ints rather than
21290         double_ints.
21291         * target.h: Include wide-int.h rather than double-int.h.
21292         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21293         than double_ints.
21294         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21295         rather than INT_CST_LT_UNSIGNED.
21296         (can_use_doloop_if_innermost): Take widest_ints rather than
21297         double_ints.
21298         * tree-affine.c: Include wide-int-print.h.
21299         (double_int_ext_for_comb): Delete.
21300         (wide_int_ext_for_comb): New.
21301         (aff_combination_zero): Use wide-int interfaces.
21302         (aff_combination_const): Take a widest_int instead of a double_int.
21303         (aff_combination_elt): Use wide-int interfaces.
21304         (aff_combination_scale): Take a widest_int instead of a double_int.
21305         (aff_combination_add_elt): Likewise.
21306         (aff_combination_add_cst): Likewise.
21307         (aff_combination_add): Use wide-int interfaces.
21308         (aff_combination_convert): Likewise.
21309         (tree_to_aff_combination): Likewise.
21310         (add_elt_to_tree): Take a widest_int instead of a double_int.
21311         (aff_combination_to_tree): Use wide-int interfaces.
21312         (aff_combination_remove_elt): Likewise.
21313         (aff_combination_add_product): Take a widest_int instead of
21314         a double_int.
21315         (aff_combination_mult): Use wide-int interfaces.
21316         (aff_combination_expand): Likewise.
21317         (double_int_constant_multiple_p): Delete.
21318         (wide_int_constant_multiple_p): New.
21319         (aff_combination_constant_multiple_p): Take a widest_int pointer
21320         instead of a double_int pointer.
21321         (print_aff): Use wide-int interfaces.
21322         (get_inner_reference_aff): Take a widest_int pointer
21323         instead of a double_int pointer.
21324         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21325         * tree-affine.h: Include wide-int.h.
21326         (struct aff_comb_elt): Change type of coef to widest_int.
21327         (struct affine_tree_combination): Change type of offset to widest_int.
21328         (double_int_ext_for_comb): Delete.
21329         (wide_int_ext_for_comb): New.
21330         (aff_combination_const): Use widest_int instead of double_int.
21331         (aff_combination_scale): Likewise.
21332         (aff_combination_add_elt): Likewise.
21333         (aff_combination_constant_multiple_p): Likewise.
21334         (get_inner_reference_aff): Likewise.
21335         (aff_comb_cannot_overlap_p): Likewise.
21336         (aff_combination_zero_p): Use wide-int interfaces.
21337         * tree.c: Include tree.h.
21338         (init_ttree): Use make_int_cst.
21339         (tree_code_size): Removed code for INTEGER_CST case.
21340         (tree_size): Add INTEGER_CST case.
21341         (make_node_stat): Update comment.
21342         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21343         (build_int_cst_type): Use wide-int interfaces.
21344         (double_int_to_tree): Likewise.
21345         (double_int_fits_to_tree_p): Delete.
21346         (force_fit_type_double): Delete.
21347         (force_fit_type): New.
21348         (int_cst_hash_hash): Use wide-int interfaces.
21349         (int_cst_hash_eq): Likewise.
21350         (build_int_cst_wide): Delete.
21351         (wide_int_to_tree): New.
21352         (cache_integer_cst): Use wide-int interfaces.
21353         (build_low_bits_mask): Likewise.
21354         (cst_and_fits_in_hwi): Likewise.
21355         (real_value_from_int_cst): Likewise.
21356         (make_int_cst_stat): New.
21357         (integer_zerop): Use wide_int interfaces.
21358         (integer_onep): Likewise.
21359         (integer_all_onesp): Likewise.
21360         (integer_pow2p): Likewise.
21361         (integer_nonzerop): Likewise.
21362         (tree_log2): Likewise.
21363         (tree_floor_log2): Likewise.
21364         (tree_ctz): Likewise.
21365         (int_size_in_bytes): Likewise.
21366         (mem_ref_offset): Return an offset_int rather than a double_int.
21367         (build_type_attribute_qual_variant): Use wide_int interfaces.
21368         (type_hash_eq): Likewise
21369         (tree_int_cst_equal): Likewise.
21370         (tree_int_cst_lt): Delete.
21371         (tree_int_cst_compare): Likewise.
21372         (tree_fits_shwi_p): Use wide_int interfaces.
21373         (tree_fits_uhwi_p): Likewise.
21374         (tree_int_cst_sign_bit): Likewise.
21375         (tree_int_cst_sgn): Likewise.
21376         (tree_int_cst_min_precision): Take a signop rather than a bool.
21377         (simple_cst_equal): Use wide_int interfaces.
21378         (compare_tree_int): Likewise.
21379         (iterative_hash_expr): Likewise.
21380         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
21381         INT_CST_LT.
21382         (get_type_static_bounds): Use wide_int interfaces.
21383         (tree_int_cst_elt_check_failed): New.
21384         (build_common_tree_nodes): Reordered to set prec before filling in
21385         value.
21386         (int_cst_value): Check cst_and_fits_in_hwi.
21387         (widest_int_cst_value): Use wide_int interfaces.
21388         (upper_bound_in_type): Likewise.
21389         (lower_bound_in_type): Likewise.
21390         (num_ending_zeros): Likewise.
21391         (drop_tree_overflow): Likewise.
21392         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21393         (gen_conditions_for_pow_cst_base): Likewise.
21394         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21395         (group_case_labels_stmt): Use wide-int interfaces.
21396         (verify_gimple_assign_binary): Likewise.
21397         (print_loop): Likewise.
21398         * tree-chrec.c (tree_fold_binomial): Likewise.
21399         * tree-core.h (struct tree_base): Add int_length.
21400         (struct tree_int_cst): Change rep of value.
21401         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21402         (dr_may_alias_p): Likewise.
21403         (max_stmt_executions_tree): Likewise.
21404         * tree.def (INTEGER_CST): Update comment.
21405         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21406         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21407         * tree-dump.c: Include wide-int.h and wide-int-print.h.
21408         (dequeue_and_dump): Use wide-int interfaces.
21409         * tree.h: Include wide-int.h.
21410         (NULL_TREE): Moved to earlier loc in file.
21411         (TREE_INT_CST_ELT_CHECK): New.
21412         (tree_int_cst_elt_check_failed): New.
21413         (TYPE_SIGN): New.
21414         (TREE_INT_CST): Delete.
21415         (TREE_INT_CST_LOW): Use wide-int interfaces.
21416         (TREE_INT_CST_HIGH): Delete.
21417         (TREE_INT_CST_NUNITS): New.
21418         (TREE_INT_CST_EXT_NUNITS): Likewise.
21419         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21420         (TREE_INT_CST_ELT): Likewise.
21421         (INT_CST_LT): Delete.
21422         (tree_int_cst_elt_check): New (two forms).
21423         (type_code_size): Update comment.
21424         (make_int_cst_stat, make_int_cst): New.
21425         (tree_to_double_int): Delete.
21426         (double_int_fits_to_tree_p): Delete.
21427         (force_fit_type_double): Delete.
21428         (build_int_cstu): Replace with out-of-line function.
21429         (build_int_cst_wide): Delete.
21430         (tree_int_cst_lt): Define inline.
21431         (tree_int_cst_le): New.
21432         (tree_int_cst_compare): Define inline.
21433         (tree_int_cst_min_precision): Take a signop rather than a bool.
21434         (wi::int_traits <const_tree>): New.
21435         (wi::int_traits <tree>): New.
21436         (wi::extended_tree): New.
21437         (wi::int_traits <wi::extended_tree>): New.
21438         (wi::to_widest): New.
21439         (wi::to_offset): New.
21440         (wi::fits_to_tree_p): New.
21441         (wi::min_value): New.
21442         (wi::max_value): New.
21443         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21444         (copy_tree_body_r): Likewise.
21445         * tree-object-size.c (compute_object_offset): Likewise.
21446         (addr_object_size): Likewise.
21447         * tree-predcom.c: Include wide-int-print.h.
21448         (struct dref_d): Change type of offset to widest_int.
21449         (dump_dref): Call wide-int printer.
21450         (aff_combination_dr_offset): Use wide-int interfaces.
21451         (determine_offset): Take a widest_int pointer rather than a
21452         double_int pointer.
21453         (split_data_refs_to_components): Use wide-int interfaces.
21454         (suitable_component_p): Likewise.
21455         (order_drefs): Likewise.
21456         (add_ref_to_chain): Likewise.
21457         (valid_initializer_p): Likewise.
21458         (determine_roots_comp): Likewise.
21459         * tree-pretty-print.c: Include wide-int-print.h.
21460         (dump_generic_node): Use wide-int interfaces.
21461         * tree-sra.c (sra_ipa_modify_expr): Likewise.
21462         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21463         (move_fixed_address_to_symbol): Likewise.
21464         (move_hint_to_base): Likewise.
21465         (move_pointer_to_base): Likewise.
21466         (move_variant_to_index): Likewise.
21467         (most_expensive_mult_to_index): Likewise.
21468         (addr_to_parts): Likewise.
21469         (copy_ref_info): Likewise.
21470         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21471         (indirect_refs_may_alias_p): Likewise.
21472         (stmt_kills_ref_p_1): Likewise.
21473         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21474         * tree-ssa-ccp.c: Update comment at top of file.  Include
21475         wide-int-print.h.
21476         (struct prop_value_d): Change type of mask to widest_int.
21477         (extend_mask): New function.
21478         (dump_lattice_value): Use wide-int interfaces.
21479         (get_default_value): Likewise.
21480         (set_constant_value): Likewise.
21481         (set_value_varying): Likewise.
21482         (valid_lattice_transition): Likewise.
21483         (set_lattice_value): Likewise.
21484         (value_to_double_int): Delete.
21485         (value_to_wide_int): New.
21486         (get_value_from_alignment): Use wide-int interfaces.
21487         (get_value_for_expr): Likewise.
21488         (do_dbg_cnt): Likewise.
21489         (ccp_finalize): Likewise.
21490         (ccp_lattice_meet): Likewise.
21491         (bit_value_unop_1): Use widest_ints rather than double_ints.
21492         (bit_value_binop_1): Likewise.
21493         (bit_value_unop): Use wide-int interfaces.
21494         (bit_value_binop): Likewise.
21495         (bit_value_assume_aligned): Likewise.
21496         (evaluate_stmt): Likewise.
21497         (ccp_fold_stmt): Likewise.
21498         (visit_cond_stmt): Likewise.
21499         (ccp_visit_stmt): Likewise.
21500         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21501         (constant_pointer_difference): Likewise.
21502         (associate_pointerplus): Likewise.
21503         (combine_conversions): Likewise.
21504         * tree-ssa-loop.h: Include wide-int.h.
21505         (struct tree_niter_desc): Change type of max to widest_int.
21506         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21507         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21508         (remove_redundant_iv_tests): Likewise.
21509         (canonicalize_loop_induction_variables): Likewise.
21510         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21511         (constant_multiple_of): Take a widest_int pointer instead of
21512         a double_int pointer.
21513         (get_computation_aff): Use wide-int interfaces.
21514         (ptr_difference_cost): Likewise.
21515         (difference_cost): Likewise.
21516         (get_loop_invariant_expr_id): Likewise.
21517         (get_computation_cost_at): Likewise.
21518         (iv_elimination_compare_lt): Likewise.
21519         (may_eliminate_iv): Likewise.
21520         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21521         instead of double_int.
21522         (max_loop_iterations): Likewise.
21523         (max_stmt_executions): Likewise.
21524         (estimated_stmt_executions): Likewise.
21525         * tree-ssa-loop-niter.c: Include wide-int-print.h.
21526         (split_to_var_and_offset): Use wide-int interfaces.
21527         (determine_value_range): Likewise.
21528         (bound_difference_of_offsetted_base): Likewise.
21529         (bounds_add): Take a widest_int instead of a double_int.
21530         (number_of_iterations_ne_max): Use wide-int interfaces.
21531         (number_of_iterations_ne): Likewise.
21532         (number_of_iterations_lt_to_ne): Likewise.
21533         (assert_loop_rolls_lt): Likewise.
21534         (number_of_iterations_lt): Likewise.
21535         (number_of_iterations_le): Likewise.
21536         (number_of_iterations_cond): Likewise.
21537         (number_of_iterations_exit): Likewise.
21538         (finite_loop_p): Likewise.
21539         (derive_constant_upper_bound_assign): Likewise.
21540         (derive_constant_upper_bound): Return a widest_int.
21541         (derive_constant_upper_bound_ops): Likewise.
21542         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21543         (record_estimate): Take a widest_int rather than a double_int.
21544         (record_nonwrapping_iv): Use wide-int interfaces.
21545         (double_int_cmp): Delete.
21546         (wide_int_cmp): New.
21547         (bound_index): Take a widest_int rather than a double_int.
21548         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21549         (maybe_lower_iteration_bound): Likewise.
21550         (estimate_numbers_of_iterations_loop): Likewise.
21551         (estimated_loop_iterations): Take a widest_int pointer than than
21552         a double_int pointer.
21553         (estimated_loop_iterations_int): Use wide-int interfaces.
21554         (max_loop_iterations): Take a widest_int pointer than than
21555         a double_int pointer.
21556         (max_loop_iterations_int): Use wide-int interfaces.
21557         (max_stmt_executions): Take a widest_int pointer than than
21558         a double_int pointer.
21559         (estimated_stmt_executions): Likewise.
21560         (n_of_executions_at_most): Use wide-int interfaces.
21561         (scev_probably_wraps_p): Likewise.
21562         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21563         to real_to_integer.
21564         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21565         interfaces.
21566         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21567         double_ints.  Adjust for trailing_wide_ints <3> representation.
21568         (set_nonzero_bits): Likewise.
21569         (get_range_info): Return wide_ints rather than double_ints.
21570         Adjust for trailing_wide_ints <3> representation.
21571         (get_nonzero_bits): Likewise.
21572         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21573         representation.
21574         * tree-ssanames.h (struct range_info_def): Replace min, max and
21575         nonzero_bits with a trailing_wide_ints <3>.
21576         (set_range_info): Use wide_int_refs rather than double_ints.
21577         (set_nonzero_bits): Likewise.
21578         (get_range_info): Return wide_ints rather than double_ints.
21579         (get_nonzero_bits): Likewise.
21580         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21581         * tree-ssa-pre.c (phi_translate_1): Likewise.
21582         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21583         (acceptable_pow_call): Likewise.
21584         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21585         interfaces.
21586         (vn_reference_fold_indirect): Likewise.
21587         (vn_reference_maybe_forwprop_address): Likewise.
21588         (valueize_refs_1): Likewise.
21589         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21590         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21591         tree_int_cst_lt and tree_int_cst_le.
21592         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21593         interfaces.
21594         (streamer_alloc_tree): Likewise.
21595         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21596         (streamer_write_tree_header): Likewise.
21597         (streamer_write_integer_cst): Likewise.
21598         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21599         (build_constructors): Likewise.
21600         (array_value_type): Likewise.
21601         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21602         (vect_check_gather): Likewise.
21603         * tree-vect-generic.c (build_replicated_const): Likewise.
21604         (expand_vector_divmod): Likewise.
21605         * tree-vect-loop.c (vect_transform_loop): Likewise.
21606         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21607         (vect_do_peeling_for_alignment): Likewise.
21608         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21609         * tree-vrp.c: Include wide-int.h.
21610         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21611         (extract_range_from_assert): Use wide-int interfaces.
21612         (vrp_int_const_binop): Likewise.
21613         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21614         double_int pointers.
21615         (ranges_from_anti_range): Use wide-int interfaces.
21616         (quad_int_cmp): Delete.
21617         (quad_int_pair_sort): Likewise.
21618         (extract_range_from_binary_expr_1): Use wide-int interfaces.
21619         (extract_range_from_unary_expr_1): Likewise.
21620         (adjust_range_with_scev): Likewise.
21621         (masked_increment): Take and return wide_ints rather than double_ints.
21622         (register_edge_assert_for_2): Use wide-int interfaces.
21623         (check_array_ref): Likewise.
21624         (search_for_addr_array): Likewise.
21625         (maybe_set_nonzero_bits): Likewise.
21626         (union_ranges): Pass an integer of the correct type instead of
21627         using integer_one_node.
21628         (intersect_ranges): Likewise.
21629         (simplify_truth_ops_using_ranges): Likewise.
21630         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21631         (range_fits_type_p): Likewise.
21632         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
21633         a bool.
21634         (simplify_conversion_using_ranges): Use wide-int interfaces.
21635         (simplify_float_conversion_using_ranges): Likewise.
21636         (vrp_finalize): Likewise.
21637         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21638         (gimple_stringops_transform): Likewise.
21639         * varasm.c (decode_addr_const): Likewise.
21640         (const_hash_1): Likewise.
21641         (const_rtx_hash_1): Likewise
21642         (output_constant): Likewise.
21643         (array_size_for_constructor): Likewise.
21644         (output_constructor_regular_field): Likewise.
21645         (output_constructor_bitfield): Likewise.
21646         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21647         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21648         GENERATOR_FILEs.
21649         * gencheck.c: Define BITS_PER_UNIT.
21650         * wide-int.cc: New.
21651         * wide-int.h: New.
21652         * wide-int-print.cc: New.
21653         * wide-int-print.h: New.
21654
21655 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21656
21657         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21658
21659 2014-05-06  Richard Biener  <rguenther@suse.de>
21660
21661         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21662         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21663         (TODO_verify_all): Adjust.
21664         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21665         TODO_verify_stmts and TODO_verify_rtl_sharing.
21666         * bb-reorder.c: Likewise.
21667         * cfgexpand.c: Likewise.
21668         * cprop.c: Likewise.
21669         * cse.c: Likewise.
21670         * function.c: Likewise.
21671         * fwprop.c: Likewise.
21672         * gcse.c: Likewise.
21673         * gimple-ssa-isolate-paths.c: Likewise.
21674         * gimple-ssa-strength-reduction.c: Likewise.
21675         * ipa-split.c: Likewise.
21676         * loop-init.c: Likewise.
21677         * loop-unroll.c: Likewise.
21678         * lower-subreg.c: Likewise.
21679         * modulo-sched.c: Likewise.
21680         * postreload-gcse.c: Likewise.
21681         * predict.c: Likewise.
21682         * recog.c: Likewise.
21683         * sched-rgn.c: Likewise.
21684         * store-motion.c: Likewise.
21685         * tracer.c: Likewise.
21686         * trans-mem.c: Likewise.
21687         * tree-call-cdce.c: Likewise.
21688         * tree-cfg.c: Likewise.
21689         * tree-cfgcleanup.c: Likewise.
21690         * tree-complex.c: Likewise.
21691         * tree-eh.c: Likewise.
21692         * tree-emutls.c: Likewise.
21693         * tree-if-conv.c: Likewise.
21694         * tree-into-ssa.c: Likewise.
21695         * tree-loop-distribution.c: Likewise.
21696         * tree-object-size.c: Likewise.
21697         * tree-parloops.c: Likewise.
21698         * tree-pass.h: Likewise.
21699         * tree-sra.c: Likewise.
21700         * tree-ssa-ccp.c: Likewise.
21701         * tree-ssa-copy.c: Likewise.
21702         * tree-ssa-copyrename.c: Likewise.
21703         * tree-ssa-dce.c: Likewise.
21704         * tree-ssa-dom.c: Likewise.
21705         * tree-ssa-dse.c: Likewise.
21706         * tree-ssa-forwprop.c: Likewise.
21707         * tree-ssa-ifcombine.c: Likewise.
21708         * tree-ssa-loop-ch.c: Likewise.
21709         * tree-ssa-loop-ivcanon.c: Likewise.
21710         * tree-ssa-loop.c: Likewise.
21711         * tree-ssa-math-opts.c: Likewise.
21712         * tree-ssa-phiopt.c: Likewise.
21713         * tree-ssa-phiprop.c: Likewise.
21714         * tree-ssa-pre.c: Likewise.
21715         * tree-ssa-reassoc.c: Likewise.
21716         * tree-ssa-sink.c: Likewise.
21717         * tree-ssa-strlen.c: Likewise.
21718         * tree-ssa-tail-merge.c: Likewise.
21719         * tree-ssa-uncprop.c: Likewise.
21720         * tree-switch-conversion.c: Likewise.
21721         * tree-tailcall.c: Likewise.
21722         * tree-vect-generic.c: Likewise.
21723         * tree-vectorizer.c: Likewise.
21724         * tree-vrp.c: Likewise.
21725         * tsan.c: Likewise.
21726         * var-tracking.c: Likewise.
21727         * bt-load.c: Likewise.
21728         * cfgcleanup.c: Likewise.
21729         * combine-stack-adj.c: Likewise.
21730         * combine.c: Likewise.
21731         * compare-elim.c: Likewise.
21732         * config/epiphany/resolve-sw-modes.c: Likewise.
21733         * config/i386/i386.c: Likewise.
21734         * config/mips/mips.c: Likewise.
21735         * config/s390/s390.c: Likewise.
21736         * config/sh/sh_treg_combine.cc: Likewise.
21737         * config/sparc/sparc.c: Likewise.
21738         * dce.c: Likewise.
21739         * dse.c: Likewise.
21740         * final.c: Likewise.
21741         * ifcvt.c: Likewise.
21742         * mode-switching.c: Likewise.
21743         * passes.c: Likewise.
21744         * postreload.c: Likewise.
21745         * ree.c: Likewise.
21746         * reg-stack.c: Likewise.
21747         * regcprop.c: Likewise.
21748         * regrename.c: Likewise.
21749         * web.c: Likewise.
21750
21751 2014-05-06  Richard Biener  <rguenther@suse.de>
21752
21753         PR middle-end/61070
21754         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21755         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21756
21757 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
21758
21759         PR ipa/60965
21760         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21761
21762 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
21763             Tom de Vries  <tom@codesourcery.com>
21764
21765         * target.def (call_fusage_contains_non_callee_clobbers): New
21766         DEFHOOKPOD.
21767         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21768         Hooks to @menu.
21769         (@node Miscellaneous Register Hooks): New node.
21770         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21771         * doc/tm.texi: Regenerate.
21772
21773 2014-05-05  Marek Polacek  <polacek@redhat.com>
21774
21775         PR driver/61065
21776         * opts.c (common_handle_option): Call error_at instead of warning_at.
21777
21778 2014-05-05  Richard Biener  <rguenther@suse.de>
21779
21780         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21781         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
21782         under the TODO_verify_il umbrella.
21783
21784 2014-05-05  Richard Biener  <rguenther@suse.de>
21785
21786         * passes.c (execute_function_todo): Move TODO_verify_flow under
21787         the TODO_verify_ul umbrella.
21788
21789 2014-05-05  Richard Biener  <rguenther@suse.de>
21790
21791         PR middle-end/61010
21792         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21793         X & CST away from a CST that is the mask of a mode.
21794
21795 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21796
21797         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21798         int argument to enum machine_mode.
21799         (picochip_class_max_nregs): Ditto.
21800         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21801         (picochip_class_max_nregs): Ditto.
21802
21803 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21804
21805         * target.def: Add new target hook.
21806         * doc/tm.texi: Regenerate.
21807         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21808         * targhooks.c (default_keep_leaf_when_profiled): New function.
21809
21810         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21811         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21812
21813 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
21814
21815         PR tree-optimization/60363
21816         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21817         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
21818         (update_destination_phis): New parameter.
21819         (create_edge_and_update_destination_phis): Ditto.
21820         (ssa_fix_duplicate_block_edges): Pass new arguments.
21821         (thread_single_edge): Ditto.
21822
21823 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
21824
21825         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21826         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21827         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21828         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21829         Use RS6000_BTM_HARD_FLOAT.
21830         (BU_MISC_2): Likewise.
21831         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21832         RS6000_BTM_HARD_FLOAT.
21833         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21834         is explicitly used.
21835         (rs6000_invalid_builtin): Add hard floating builtin support.
21836         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21837         hard float builtins.
21838         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21839
21840 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21841
21842         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21843         Add missing function* argument.
21844
21845 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21846
21847         * lra-constraints.c (valid_address_p): Move earlier in file.
21848         Add a constraint argument to the address_info version.
21849         (satisfies_memory_constraint_p): New function.
21850         (satisfies_address_constraint_p): Likewise.
21851         (process_alt_operands, curr_insn_transform): Use them.
21852         (process_address): Pass the constraint to valid_address_p when
21853         checking address operands.
21854
21855 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21856
21857         * config/mips/mips.c (mips_isa_rev): New variable.
21858         (mips_set_architecture): Set it.
21859         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21860         from mips_isa_rev.
21861         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21862         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21863         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21864         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21865         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21866         conditions in terms of mips_isa_rev.
21867         (mips_isa_rev): Declare.
21868
21869 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21870
21871         * config/sh/sh-mem.cc: Use tabs instead of spaces.
21872         (prob_unlikely, prob_likely): Make variables const.
21873
21874 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
21875
21876         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21877
21878 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21879
21880         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21881
21882 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21883
21884         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21885         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21886         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21887         functions.
21888         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21889         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21890         sh_pass_in_reg_p.
21891         Replace usage of ROUND_REG with sh_round_reg.
21892         Use CEIL instead of ROUND_ADVANCE.
21893
21894 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21895
21896         PR target/61026
21897         * config/sh/sh.c: Include stdlib headers before everything else.
21898
21899 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
21900
21901         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21902         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21903         (gimplify_adjust_omp_clauses): Simd region is never
21904         directly nested in combined parallel.  Instead, for linear
21905         with copyin/copyout, if in combined for simd loop, make decl
21906         firstprivate/lastprivate on OMP_FOR.
21907         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21908         expand_omp_for_static_chunk): When setting endvar, also set
21909         fd->loop.v to the same value.
21910
21911 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21912
21913         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21914
21915 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
21916
21917         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21918         expression.
21919
21920 2014-05-02  Marek Polacek  <polacek@redhat.com>
21921
21922         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21923
21924 2014-05-02  Kito Cheng  <kito@0xlab.org>
21925
21926         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21927         to a C expression marco.
21928         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21929         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21930         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21931         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21932         HONOR_REG_ALLOC_ORDER.
21933         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21934
21935 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21936
21937         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21938
21939 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21940
21941         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21942
21943 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
21944
21945         * tree-if-conv.c (is_cond_scalar_reduction): New function.
21946         (convert_scalar_cond_reduction): Likewise.
21947         (predicate_scalar_phi): Add recognition and transformation
21948         of simple conditioanl reduction to be vectorizable.
21949
21950 2014-05-01  Marek Polacek  <polacek@redhat.com>
21951
21952         PR c/43245
21953         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21954
21955 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
21956
21957         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21958         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21959         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21960         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21961         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21962         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21963         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21964         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21965
21966 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21967
21968         * config/arc/arc.opt (mlra): Move comment above option name
21969         to avoid mis-parsing as language options.
21970
21971 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21972
21973         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21974         * config/sol2.h: ... here.
21975         * config/sol2-10.h: Remove.
21976
21977         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21978         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21979         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21980         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21981         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21982         * config/sol2.h: ... here.
21983         (SECTION_NAME_FORMAT): Don't redefine.
21984         (STARTFILE_ARCH32_SPEC): Rename to ...
21985         (STARTFILE_ARCH_SPEC): ... this.
21986         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21987         * config/sparc/sol2.h: ... here.
21988         (SECTION_NAME_FORMAT): Don't undef.
21989         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21990         (SUBTARGET_EXTRA_SPECS): Remove.
21991         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21992
21993         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21994         (MD_STARTFILE_PREFIX): Remove.
21995         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21996         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21997         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21998         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21999         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22000         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22001         * config/i386/sol2.h: ... here.
22002         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22003         * config/i386/sol2-bi.h: Remove.
22004         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22005         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22006
22007         * config/i386/t-sol2-64: Rename to ...
22008         * config/i386/t-sol2: ... this.
22009         * config/sparc/t-sol2-64: Rename to ...
22010         * config/sparc/t-sol2: ... this.
22011
22012         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22013         sol2_tm_file_head, sol2_tm_file_tail.
22014         Include ${cpu_type}/sol2.h before sol2.h.
22015         Remove sol2-10.h.
22016         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22017         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22018         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22019         Reflect i386/t-sol2-64 renaming.
22020         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22021         Reflect sparc/t-sol2-64 renaming.
22022
22023 2014-04-30  Richard Biener  <rguenther@suse.de>
22024
22025         * passes.c (execute_function_todo): Move TODO_verify_stmts
22026         and TODO_verify_ssa under the TODO_verify_il umbrella.
22027         * tree-ssa.h (verify_ssa): Adjust prototype.
22028         * tree-ssa.c (verify_ssa): Add parameter to tell whether
22029         we should verify SSA operands.
22030         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22031         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22032         whether we should verify whether not throwing stmts have EH info.
22033         * graphite-scop-detection.c (create_sese_edges): Adjust.
22034         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22035         * tree-eh.c (lower_try_finally_switch): Do not add the
22036         default case label twice.
22037
22038 2014-04-30  Marek Polacek  <polacek@redhat.com>
22039
22040         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22041         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22042         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22043         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22044
22045 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22046
22047         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22048         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22049         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22050         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22051         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22052         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22053         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22054         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22055
22056 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22057
22058         * tree-cfg.c (dump_function_to_file): Dump the return type of
22059         functions, in a line to itself before the function body, mimicking
22060         the layout of a C function.
22061
22062 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
22063
22064         PR tree-optimization/60971
22065         * tree-tailcall.c (process_assignment): Reject conversions which
22066         reduce precision.
22067
22068 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22069
22070         * calls.c (initialize_argument_information): Always treat
22071         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22072         (expand_call): Likewise.
22073         (emit_library_call_calue_1): Likewise.
22074         * expr.c (PUSH_ARGS_REVERSED): Do not define.
22075         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22076         code accordingly.
22077
22078 2014-04-29  Nick Clifton  <nickc@redhat.com>
22079
22080         * config/msp430/msp430.md (umulsidi): Fix typo.
22081         (mulhisi3): Enable even inside interrupt handlers.
22082         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22083         bigger return address pushed in large mode.
22084
22085 2014-04-29  Nick Clifton  <nickc@redhat.com>
22086
22087         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22088         (arc_init_reg_tables): Use a machine_mode enum to iterate over
22089         available modes.
22090         * config/m32r/m32r.c (init_reg_tables): Likewise.
22091         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22092         enum to hold the modes.
22093
22094 2014-04-29  Richard Biener  <rguenther@suse.de>
22095
22096         * dominance.c (free_dominance_info): Add overload with
22097         function parameter.
22098         (dom_info_state): Likewise.
22099         (dom_info_available_p): Likewise.
22100         * basic-block.h (free_dominance_info, dom_info_state,
22101         dom_info_available_p): Declare overloads.
22102         * passes.c (execute_function_todo): Verify that verifiers
22103         don't change dominator info state.  Drop dominator info
22104         for IPA pass invocations.
22105         * cgraph.c (release_function_body): Restore asserts that
22106         dominator information is released.
22107
22108 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
22109
22110         * doc/invoke.texi: Fix typo.
22111         * tree-vrp.c: Fix typos.
22112         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22113
22114 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22115
22116         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22117
22118 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
22119
22120         * config/aarch64/aarch64-builtins.c
22121         (aarch64_types_storestruct_lane_qualifiers): New.
22122         (TYPES_STORESTRUCT_LANE): Likewise.
22123         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22124         (st3_lane): Likewise.
22125         (st4_lane): Likewise.
22126         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22127         (vec_store_lanesci_lane<mode>): Likewise.
22128         (vec_store_lanesxi_lane<mode>): Likewise.
22129         (aarch64_st2_lane<VQ:mode>): Likewise.
22130         (aarch64_st3_lane<VQ:mode>): Likewise.
22131         (aarch64_st4_lane<VQ:mode>): Likewise.
22132         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22133         * config/aarch64/arm_neon.h
22134         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22135         use new macro arguments.
22136         (__ST3_LANE_FUNC): Likewise.
22137         (__ST4_LANE_FUNC): Likewise.
22138         * config/aarch64/iterators.md (V_TWO_ELEM): New.
22139         (V_THREE_ELEM): Likewise.
22140         (V_FOUR_ELEM): Likewise.
22141
22142 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
22143
22144         * doc/gimple.texi: Replace the description of the now-defunct
22145         union gimple_statement_d with a diagram showing the
22146         gimple_statement_base class hierarchy and its relationships to
22147         the GSS_ and GIMPLE_ enums.
22148
22149 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
22150
22151         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22152         * config/aarch64/aarch64.c
22153         (aarch64_cannot_change_mode_class): Weaken conditions.
22154         (aarch64_modes_tieable_p): New.
22155         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22156
22157 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
22158
22159         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22160         (loadsync_<mode>): Change mode.
22161         (load_quadpti, store_quadpti): New.
22162         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22163         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22164
22165 2014-04-28  Martin Jambor  <mjambor@suse.cz>
22166
22167         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22168         same alias type as the original statement.
22169         (subreplacement_assignment_data): New type.
22170         (handle_unscalarized_data_in_subtree): New type of parameter,
22171         generate new memory accesses with same alias type as the original
22172         statement.
22173         (load_assign_lhs_subreplacements): Likewise.
22174         (sra_modify_constructor_assign): Generate new memory accesses with
22175         same alias type as the original statement.
22176
22177 2014-04-28  Richard Biener  <rguenther@suse.de>
22178
22179         * tree-pass.h (TODO_verify_il): Define.
22180         (TODO_verify_all): Complete properly.
22181         * passes.c (execute_function_todo): Move existing loop-closed
22182         SSA verification under TODO_verify_il.
22183         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22184         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22185         Fix tree sharing issue.
22186
22187 2014-04-28  Richard Biener  <rguenther@suse.de>
22188
22189         PR middle-end/60092
22190         * builtins.def (DEF_C11_BUILTIN): Add.
22191         (BUILT_IN_ALIGNED_ALLOC): Likewise.
22192         * coretypes.h (enum function_class): Add function_c11_misc.
22193         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22194         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22195         (call_may_clobber_ref_p_1): Likewise.
22196         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22197         (mark_all_reaching_defs_necessary_1): Likewise.
22198         (propagate_necessity): Likewise.
22199         (eliminate_unnecessary_stmts): Likewise.
22200         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22201
22202 2014-04-28  Richard Biener  <rguenther@suse.de>
22203
22204         * tree-vrp.c (vrp_var_may_overflow): Remove.
22205         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22206         with overflow immediately bump to one before that value and
22207         let iteration figure out overflow status.
22208
22209 2014-04-28  Richard Biener  <rguenther@suse.de>
22210
22211         * configure.ac: Do valgrind header checks unconditionally.
22212         Add --enable-valgrind-annotations.
22213         * system.h: Guard valgrind header inclusion with
22214         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22215         * alloc-pool.c (pool_alloc, pool_free): Use
22216         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22217         to guard possibly dead code.
22218         * config.in: Regenerated.
22219         * configure: Likewise.
22220
22221 2014-04-28  Jeff Law  <law@redhat.com>
22222
22223         PR tree-optimization/60902
22224         * tree-ssa-threadedge.c
22225         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22226         over real defs when invalidating outputs from statements that do not
22227         produce useful outputs for threading.
22228
22229 2014-04-28  Richard Biener  <rguenther@suse.de>
22230
22231         PR tree-optimization/60979
22232         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22233         SCOPs that end in a block with a successor with abnormal
22234         predecessors.
22235
22236 2014-04-28  Richard Biener  <rguenther@suse.de>
22237
22238         * tree-pass.h (execute_pass_list): Adjust prototype.
22239         * passes.c (pass_manager::execute_early_local_passes): Adjust.
22240         (do_per_function): Change callback signature, push all actual
22241         work to the callbals.
22242         (do_per_function_toporder): Likewise.
22243         (execute_function_dump): Adjust.
22244         (execute_function_todo): Likewise.
22245         (clear_last_verified): Likewise.
22246         (verify_curr_properties): Likewise.
22247         (update_properties_after_pass): Likewise.
22248         (execute_pass_list_1): Split out from ...
22249         (execute_pass_list): ... here.  Adjust.
22250         (execute_ipa_pass_list): Likewise.
22251         * cgraphunit.c (cgraph_add_new_function): Adjust.
22252         (analyze_function): Likewise.
22253         (expand_function): Likewise.
22254         * cgraph.c (release_function_body): Free dominance info
22255         here instead of asserting it was magically freed elsewhere.
22256
22257 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22258
22259         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22260         * configure: Regenerate.
22261         * config/sparc/sparc.opt (muser-mode): New option.
22262         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22263         for LEON3.
22264         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22265         * doc/invoke.texi (SPARC options): Document -muser-mode.
22266
22267 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
22268
22269         * cselib.c (find_slot_memmode): Delete.
22270         (cselib_hasher): Change compare_type to a struct.
22271         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
22272         constants.
22273         (preserve_constants_and_equivs): Adjust for new compare_type.
22274         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
22275         (wrap_constant): Delete.
22276         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22277
22278 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
22279
22280         * doc/install.texi (Building with profile feedback): Remove
22281         outdated sentence.
22282
22283 2014-04-26  Tom de Vries  <tom@codesourcery.com>
22284
22285         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22286         array accesses.
22287
22288 2014-04-25  Cary Coutant  <ccoutant@google.com>
22289
22290         PR debug/60929
22291         * dwarf2out.c (should_move_die_to_comdat): A type definition
22292         can contain a subprogram definition, but don't move it to a
22293         comdat unit.
22294         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22295         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22296         from original DIE.
22297         (clone_tree_hash): Rename to...
22298         (clone_tree_partial): ...this; change callers.  Copy
22299         DW_TAG_subprogram DIEs as declarations.
22300         (copy_decls_walk): Don't copy children of a declaration into a
22301         type unit.
22302
22303 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
22304
22305         PR target/60969
22306         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22307         alternative 12.
22308
22309 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
22310
22311         * config/arm/predicates.md (call_insn_operand): Add long_call check.
22312         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22313         reg for long_call.
22314         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22315         restriction.
22316
22317 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22318
22319         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22320
22321 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22322
22323         PR tree-optimization/60930
22324         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
22325         creating a multiply candidate by folding two constant
22326         multiplicands when the result overflows.
22327
22328 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
22329
22330         PR tree-optimization/60960
22331         * tree-vect-generic.c (expand_vector_operation): Only call
22332         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22333
22334 2014-04-25  Tom de Vries  <tom@codesourcery.com>
22335
22336         * expr.c (clobber_reg_mode): New function.
22337         * expr.h (clobber_reg): New function.
22338
22339 2014-04-25  Tom de Vries  <tom@codesourcery.com>
22340
22341         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22342         clobbers.
22343
22344 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
22345             Tom de Vries  <tom@codesourcery.com>
22346
22347         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22348         handle.
22349         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22350         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22351         new argument to find_all_hard_reg_sets call.
22352
22353 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22354
22355         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22356         Use HOST_WIDE_INT_C for mask literal.
22357         (aarch_rev16_shleft_mask_imm_p): Likewise.
22358
22359 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
22360
22361         PR target/60941
22362         * config/sparc/sparc.md (ashlsi3_extend): Delete.
22363
22364 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
22365
22366         PR preprocessor/56540
22367         * config/i386/i386-c.c (ix86_target_macros): Define
22368         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22369
22370 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22371
22372         * configure.ac (tga_func): Remove.
22373         (LIB_TLS_SPEC): Remove.
22374         * configure: Regenerate.
22375         * config.in: Regenerate.
22376         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22377
22378 2014-04-25  Richard Biener  <rguenther@suse.de>
22379
22380         PR ipa/60912
22381         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22382         call stmt use/clobber sets during stmt walk instead of
22383         walking the possibly incomplete set of caller edges.
22384
22385 2014-04-25  Richard Biener  <rguenther@suse.de>
22386
22387         PR ipa/60911
22388         * passes.c (apply_ipa_transforms): Inline into only caller ...
22389         (execute_one_pass): ... here.  Properly bring in function
22390         bodies for nodes we want to apply IPA transforms to.
22391
22392 2014-04-24  Cong Hou  <congh@google.com>
22393
22394         PR tree-optimization/60896
22395         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22396         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22397         (vect_mark_pattern_stmts): Set the def type of all statements in
22398         PATTERN_DEF_SEQ as vect_internal_def.
22399
22400 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22401
22402         * doc/extend.texi (PowerPC Built-in Functions): Document new
22403         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22404         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22405
22406         * config/rs6000/predicates.md (const_0_to_3_operand): New
22407         predicate to match 0..3 integer constants.
22408
22409         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22410         to support adding miscellaneous builtin functions.
22411         (BU_DFP_MISC_2): Likewise.
22412         (BU_P7_MISC_1): Likewise.
22413         (BU_P7_MISC_2): Likewise.
22414         (BU_P8V_MISC_3): Likewise.
22415         (BU_MISC_1): Likewise.
22416         (BU_MISC_2): Likewise.
22417         (DIVWE): Add extended divide builtin functions.
22418         (DIVWEO): Likewise.
22419         (DIVWEU): Likewise.
22420         (DIVWEUO): Likewise.
22421         (DIVDE): Likewise.
22422         (DIVDEO): Likewise.
22423         (DIVDEU): Likewise.
22424         (DIVDEUO): Likewise.
22425         (DXEX): Add decimal floating-point builtin functions.
22426         (DXEXQ): Likewise.
22427         (DDEDPD): Likewise.
22428         (DDEDPDQ): Likewise.
22429         (DENBCD): Likewise.
22430         (DENBCDQ): Likewise.
22431         (DIEX): Likewise.
22432         (DIEXQ): Likewise.
22433         (DSCLI): Likewise.
22434         (DSCLIQ): Likewise.
22435         (DSCRI): Likewise.
22436         (DSCRIQ): Likewise.
22437         (CDTBCD): Add new BCD builtin functions.
22438         (CBCDTD): Likewise.
22439         (ADDG6S): Likewise.
22440         (BCDADD): Likewise.
22441         (BCDADD_LT): Likewise.
22442         (BCDADD_EQ): Likewise.
22443         (BCDADD_GT): Likewise.
22444         (BCDADD_OV): Likewise.
22445         (BCDSUB): Likewise.
22446         (BCDSUB_LT): Likewise.
22447         (BCDSUB_EQ): Likewise.
22448         (BCDSUB_GT): Likewise.
22449         (BCDSUB_OV): Likewise.
22450         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22451         (UNPACK_TD): Likewise.
22452         (PACK_TF): Likewise.
22453         (UNPACK_TF): Likewise.
22454         (UNPACK_TF_0): Likewise.
22455         (UNPACK_TF_1): Likewise.
22456         (PACK_V1TI): Likewise.
22457         (UNPACK_V1TI): Likewise.
22458
22459         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22460         support for decimal floating point builtin functions.
22461         (rs6000_expand_ternop_builtin): Add checks for the new builtin
22462         functions that take constant arguments.
22463         (rs6000_invalid_builtin): Add decimal floating point builtin support.
22464         (rs6000_init_builtins): Setup long double, _Decimal64, and
22465         _Decimal128 types for new builtin functions.
22466         (builtin_function_type): Set the unsigned flags appropriately for
22467         the new builtin functions.
22468         (rs6000_opt_masks): Add support for decimal floating point builtin
22469         functions.
22470
22471         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22472         floating point builtin functions.
22473         (RS6000_BTM_COMMON): Likewise.
22474         (RS6000_BTI_long_double): Likewise.
22475         (RS6000_BTI_dfloat64): Likewise.
22476         (RS6000_BTI_dfloat128): Likewise.
22477         (long_double_type_internal_node): Likewise.
22478         (dfloat64_type_internal_node): Likewise.
22479         (dfloat128_type_internal_node): Likewise.
22480
22481         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22482         2.07 bcd arithmetic instructions.
22483         (UNSPEC_BCDSUB): Likewise.
22484         (UNSPEC_BCD_OVERFLOW): Likewise.
22485         (UNSPEC_BCD_ADD_SUB): Likewise.
22486         (bcd_add_sub): Likewise.
22487         (BCD_TEST): Likewise.
22488         (bcd<bcd_add_sub>): Likewise.
22489         (bcd<bcd_add_sub>_test): Likewise.
22490         (bcd<bcd_add_sub>_test2): Likewise.
22491         (bcd<bcd_add_sub>_<code>): Likewise.
22492         (peephole2 for combined bcd ops): Likewise.
22493
22494         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22495         decimal floating point builtin functions.
22496         (UNSPEC_DENBCD): Likewise.
22497         (UNSPEC_DXEX): Likewise.
22498         (UNSPEC_DIEX): Likewise.
22499         (UNSPEC_DSCLI): Likewise.
22500         (UNSPEC_DSCRI): Likewise.
22501         (D64_D128): Likewise.
22502         (dfp_suffix): Likewise.
22503         (dfp_ddedpd_<mode>): Likewise.
22504         (dfp_denbcd_<mode>): Likewise.
22505         (dfp_dxex_<mode>): Likewise.
22506         (dfp_diex_<mode>): Likewise.
22507         (dfp_dscli_<mode>): Likewise.
22508         (dfp_dscri_<mode>): Likewise.
22509
22510         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22511         builtin functions.
22512         (UNSPEC_CDTBCD): Likewise.
22513         (UNSPEC_CBCDTD): Likewise.
22514         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22515         (UNSPEC_DIVEO): Likewise.
22516         (UNSPEC_DIVEU): Likewise.
22517         (UNSPEC_DIVEUO): Likewise.
22518         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22519         pack/unpack 128-bit types.
22520         (UNSPEC_PACK_128BIT): Likewise.
22521         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22522         (udiv<mode>3): Use idiv_ldiv mode attribute.
22523         (div<mode>3): Likewise.
22524         (addg6s): Add new BCD builtin functions.
22525         (cdtbcd): Likewise.
22526         (cbcdtd): Likewise.
22527         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22528         (div_extend): Likewise.
22529         (div<div_extend>_<mode>"): Likewise.
22530         (FP128_64): Add support for new builtin functions to pack/unpack
22531         128-bit types.
22532         (unpack<mode>): Likewise.
22533         (unpacktf_0): Likewise.
22534         (unpacktf_1): Likewise.
22535         (unpack<mode>_dm): Likewise.
22536         (unpack<mode>_nodm): Likewise.
22537         (pack<mode>): Likewise.
22538         (unpackv1ti): Likewise.
22539         (packv1ti): Likewise.
22540
22541 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
22542
22543         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22544         is disabled.
22545
22546 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
22547
22548         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22549         * gimplify.c (omp_is_private): Change last argument's type to int.
22550         Only diagnose lastprivate if the simd argument is 1, only diagnose
22551         linear if the simd argument is 2.
22552         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
22553         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
22554         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
22555         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22556         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22557         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22558         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22559         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22560         * tree-nested.c (convert_nonlocal_omp_clauses,
22561         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22562
22563 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
22564
22565         PR target/60822
22566         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22567         operand 1.
22568
22569 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
22570
22571         * flag-types.h (enum ivar_visibility): Add.
22572
22573 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
22574
22575         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22576         function * argument.
22577
22578 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
22579
22580         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22581
22582 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
22583             Tom de Vries  <tom@codesourcery.com>
22584
22585         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22586         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22587         reg-note.
22588         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22589         * emit-rtl.c (try_split): Same.
22590
22591 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
22592             Tom de Vries  <tom@codesourcery.com>
22593
22594         * common.opt (fuse-caller-save): New option.
22595
22596 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
22597
22598         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22599         elements for big-endian.
22600
22601 2014-04-24  Richard Biener  <rguenther@suse.de>
22602
22603         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22604         during TER and instead use the sepops interface for expanding
22605         non-GIMPLE_SINGLE_RHS.
22606
22607 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22608
22609         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22610         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22611
22612 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22613
22614         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22615         assembler 64-bit option.
22616         * configure: Regenerate.
22617
22618 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22619
22620         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22621         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22622         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22623         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22624         (TARGET_CRYPTO): Take TARGET_SIMD into account.
22625
22626 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22627
22628         * config/aarch64/aarch64-builtins.c
22629         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22630         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22631         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22632         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22633         builtins.
22634         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22635         (Vrevsuff): New mode attribute.
22636
22637 2014-04-24  Terry Guo  <terry.guo@arm.com>
22638
22639         * config/arm/arm.h (machine_function): Define variable
22640         after_arm_reorg here.
22641         * config/arm/arm.c (after_arm_reorg): Remove the definition.
22642         (arm_split_constant): Update the way to access variable
22643         after_arm_reorg.
22644         (arm_reorg): Ditto.
22645         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22646
22647 2014-04-23  Tom de Vries  <tom@codesourcery.com>
22648
22649         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22650
22651 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
22652
22653         * is-a.h: Update comments to reflect the following changes to the
22654         "pointerness" of the API, making the template parameter match the
22655         return type, allowing use of is-a.h with typedefs of pointers.
22656         (is_a_helper::cast): Return a T rather then a pointer to a T, so
22657         that the return type matches the parameter to the is_a_helper.
22658         (as_a): Likewise.
22659         (dyn_cast): Likewise.
22660
22661         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22662         pointer from the is-a.h API.
22663
22664         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22665         (is_a_helper <cgraph_node *>::test): ...this, matching change to
22666         is-a.h API.
22667         (is_a_helper <varpool_node>::test): Likewise, convert to...
22668         (is_a_helper <varpool_node *>::test): ...this.
22669
22670         (varpool_first_variable): Update for removal of implicit pointer
22671         from the is-a.h API.
22672         (varpool_next_variable): Likewise.
22673         (varpool_first_static_initializer): Likewise.
22674         (varpool_next_static_initializer): Likewise.
22675         (varpool_first_defined_variable): Likewise.
22676         (varpool_next_defined_variable): Likewise.
22677         (cgraph_first_defined_function): Likewise.
22678         (cgraph_next_defined_function): Likewise.
22679         (cgraph_first_function): Likewise.
22680         (cgraph_next_function): Likewise.
22681         (cgraph_first_function_with_gimple_body): Likewise.
22682         (cgraph_next_function_with_gimple_body): Likewise.
22683         (cgraph_alias_target): Likewise.
22684         (varpool_alias_target): Likewise.
22685         (cgraph_function_or_thunk_node): Likewise.
22686         (varpool_variable_node): Likewise.
22687         (symtab_real_symbol_p): Likewise.
22688         * cgraphunit.c (referred_to_p): Likewise.
22689         (analyze_functions): Likewise.
22690         (handle_alias_pairs): Likewise.
22691         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22692         * gimple-ssa.h (gimple_vuse_op): Likewise.
22693         (gimple_vdef_op): Likewise.
22694         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22695         * gimple.c (gimple_build_asm_1): Likewise.
22696         (gimple_build_try): Likewise.
22697         (gimple_build_resx): Likewise.
22698         (gimple_build_eh_dispatch): Likewise.
22699         (gimple_build_omp_for): Likewise.
22700         (gimple_omp_for_set_clauses): Likewise.
22701
22702         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22703         (is_a_helper <gimple_statement_asm *>::test): ...this.
22704         (is_a_helper <gimple_statement_bind>::test): Convert to...
22705         (is_a_helper <gimple_statement_bind *>::test): ...this.
22706         (is_a_helper <gimple_statement_call>::test): Convert to...
22707         (is_a_helper <gimple_statement_call *>::test): ...this.
22708         (is_a_helper <gimple_statement_catch>::test): Convert to...
22709         (is_a_helper <gimple_statement_catch *>::test): ...this.
22710         (is_a_helper <gimple_statement_resx>::test): Convert to...
22711         (is_a_helper <gimple_statement_resx *>::test): ...this.
22712         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22713         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22714         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22715         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22716         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22717         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22718         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22719         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22720         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22721         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22722         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22723         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22724         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22725         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22726         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22727         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22728         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22729         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22730         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22731         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22732         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22733         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22734         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22735         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22736         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22737         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22738         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22739         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22740         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22741         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22742         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22743         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22744         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22745         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22746         (is_a_helper <gimple_statement_phi>::test): Convert to...
22747         (is_a_helper <gimple_statement_phi *>::test): ...this.
22748         (is_a_helper <gimple_statement_transaction>::test): Convert to...
22749         (is_a_helper <gimple_statement_transaction *>::test): ...this.
22750         (is_a_helper <gimple_statement_try>::test): Convert to...
22751         (is_a_helper <gimple_statement_try *>::test): ...this.
22752         (is_a_helper <gimple_statement_wce>::test): Convert to...
22753         (is_a_helper <gimple_statement_wce *>::test): ...this.
22754         (is_a_helper <const gimple_statement_asm>::test): Convert to...
22755         (is_a_helper <const gimple_statement_asm *>::test): ...this.
22756         (is_a_helper <const gimple_statement_bind>::test): Convert to...
22757         (is_a_helper <const gimple_statement_bind *>::test): ...this.
22758         (is_a_helper <const gimple_statement_call>::test): Convert to...
22759         (is_a_helper <const gimple_statement_call *>::test): ...this.
22760         (is_a_helper <const gimple_statement_catch>::test): Convert to...
22761         (is_a_helper <const gimple_statement_catch *>::test): ...this.
22762         (is_a_helper <const gimple_statement_resx>::test): Convert to...
22763         (is_a_helper <const gimple_statement_resx *>::test): ...this.
22764         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22765         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22766         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22767         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22768         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22769         Convert to...
22770         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22771         ...this.
22772         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22773         Convert to...
22774         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22775         ...this.
22776         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22777         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22778         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22779         to...
22780         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22781         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22782         to...
22783         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22784         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22785         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22786         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22787         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22788         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22789         to...
22790         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22791         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22792         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22793         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22794         to...
22795         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22796         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22797         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22798         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22799         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22800         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22801         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22802         (is_a_helper <const gimple_statement_phi>::test): Convert to...
22803         (is_a_helper <const gimple_statement_phi *>::test): ...this.
22804         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22805         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22806         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22807         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22808         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22809         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22810         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22811         to...
22812         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22813         ...this.
22814         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22815         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22816
22817         (gimple_use_ops): Update for removal of implicit pointer from the
22818         is-a.h API.
22819         (gimple_set_use_ops): Likewise.
22820         (gimple_vuse): Likewise.
22821         (gimple_vdef): Likewise.
22822         (gimple_vuse_ptr): Likewise.
22823         (gimple_vdef_ptr): Likewise.
22824         (gimple_set_vuse): Likewise.
22825         (gimple_set_vdef): Likewise.
22826         (gimple_omp_return_set_lhs): Likewise.
22827         (gimple_omp_return_lhs): Likewise.
22828         (gimple_omp_return_lhs_ptr): Likewise.
22829         (gimple_call_fntype): Likewise.
22830         (gimple_call_set_fntype): Likewise.
22831         (gimple_call_set_internal_fn): Likewise.
22832         (gimple_call_use_set): Likewise.
22833         (gimple_call_clobber_set): Likewise.
22834         (gimple_bind_vars): Likewise.
22835         (gimple_bind_set_vars): Likewise.
22836         (gimple_bind_body_ptr): Likewise.
22837         (gimple_bind_set_body): Likewise.
22838         (gimple_bind_add_stmt): Likewise.
22839         (gimple_bind_block): Likewise.
22840         (gimple_bind_set_block): Likewise.
22841         (gimple_asm_ninputs): Likewise.
22842         (gimple_asm_noutputs): Likewise.
22843         (gimple_asm_nclobbers): Likewise.
22844         (gimple_asm_nlabels): Likewise.
22845         (gimple_asm_input_op): Likewise.
22846         (gimple_asm_input_op_ptr): Likewise.
22847         (gimple_asm_output_op): Likewise.
22848         (gimple_asm_output_op_ptr): Likewise.
22849         (gimple_asm_set_output_op): Likewise.
22850         (gimple_asm_clobber_op): Likewise.
22851         (gimple_asm_set_clobber_op): Likewise.
22852         (gimple_asm_label_op): Likewise.
22853         (gimple_asm_set_label_op): Likewise.
22854         (gimple_asm_string): Likewise.
22855         (gimple_catch_types): Likewise.
22856         (gimple_catch_types_ptr): Likewise.
22857         (gimple_catch_handler_ptr): Likewise.
22858         (gimple_catch_set_types): Likewise.
22859         (gimple_catch_set_handler): Likewise.
22860         (gimple_eh_filter_types): Likewise.
22861         (gimple_eh_filter_types_ptr): Likewise.
22862         (gimple_eh_filter_failure_ptr): Likewise.
22863         (gimple_eh_filter_set_types): Likewise.
22864         (gimple_eh_filter_set_failure): Likewise.
22865         (gimple_eh_must_not_throw_fndecl): Likewise.
22866         (gimple_eh_must_not_throw_set_fndecl): Likewise.
22867         (gimple_eh_else_n_body_ptr): Likewise.
22868         (gimple_eh_else_e_body_ptr): Likewise.
22869         (gimple_eh_else_set_n_body): Likewise.
22870         (gimple_eh_else_set_e_body): Likewise.
22871         (gimple_try_eval_ptr): Likewise.
22872         (gimple_try_cleanup_ptr): Likewise.
22873         (gimple_try_set_eval): Likewise.
22874         (gimple_try_set_cleanup): Likewise.
22875         (gimple_wce_cleanup_ptr): Likewise.
22876         (gimple_wce_set_cleanup): Likewise.
22877         (gimple_phi_capacity): Likewise.
22878         (gimple_phi_num_args): Likewise.
22879         (gimple_phi_result): Likewise.
22880         (gimple_phi_result_ptr): Likewise.
22881         (gimple_phi_set_result): Likewise.
22882         (gimple_phi_arg): Likewise.
22883         (gimple_phi_set_arg): Likewise.
22884         (gimple_resx_region): Likewise.
22885         (gimple_resx_set_region): Likewise.
22886         (gimple_eh_dispatch_region): Likewise.
22887         (gimple_eh_dispatch_set_region): Likewise.
22888         (gimple_omp_critical_name): Likewise.
22889         (gimple_omp_critical_name_ptr): Likewise.
22890         (gimple_omp_critical_set_name): Likewise.
22891         (gimple_omp_for_clauses): Likewise.
22892         (gimple_omp_for_clauses_ptr): Likewise.
22893         (gimple_omp_for_set_clauses): Likewise.
22894         (gimple_omp_for_collapse): Likewise.
22895         (gimple_omp_for_index): Likewise.
22896         (gimple_omp_for_index_ptr): Likewise.
22897         (gimple_omp_for_set_index): Likewise.
22898         (gimple_omp_for_initial): Likewise.
22899         (gimple_omp_for_initial_ptr): Likewise.
22900         (gimple_omp_for_set_initial): Likewise.
22901         (gimple_omp_for_final): Likewise.
22902         (gimple_omp_for_final_ptr): Likewise.
22903         (gimple_omp_for_set_final): Likewise.
22904         (gimple_omp_for_incr): Likewise.
22905         (gimple_omp_for_incr_ptr): Likewise.
22906         (gimple_omp_for_set_incr): Likewise.
22907         (gimple_omp_for_pre_body_ptr): Likewise.
22908         (gimple_omp_for_set_pre_body): Likewise.
22909         (gimple_omp_parallel_clauses): Likewise.
22910         (gimple_omp_parallel_clauses_ptr): Likewise.
22911         (gimple_omp_parallel_set_clauses): Likewise.
22912         (gimple_omp_parallel_child_fn): Likewise.
22913         (gimple_omp_parallel_child_fn_ptr): Likewise.
22914         (gimple_omp_parallel_set_child_fn): Likewise.
22915         (gimple_omp_parallel_data_arg): Likewise.
22916         (gimple_omp_parallel_data_arg_ptr): Likewise.
22917         (gimple_omp_parallel_set_data_arg): Likewise.
22918         (gimple_omp_task_clauses): Likewise.
22919         (gimple_omp_task_clauses_ptr): Likewise.
22920         (gimple_omp_task_set_clauses): Likewise.
22921         (gimple_omp_task_child_fn): Likewise.
22922         (gimple_omp_task_child_fn_ptr): Likewise.
22923         (gimple_omp_task_set_child_fn): Likewise.
22924         (gimple_omp_task_data_arg): Likewise.
22925         (gimple_omp_task_data_arg_ptr): Likewise.
22926         (gimple_omp_task_set_data_arg): Likewise.
22927         (gimple_omp_taskreg_clauses): Likewise.
22928         (gimple_omp_taskreg_clauses_ptr): Likewise.
22929         (gimple_omp_taskreg_set_clauses): Likewise.
22930         (gimple_omp_taskreg_child_fn): Likewise.
22931         (gimple_omp_taskreg_child_fn_ptr): Likewise.
22932         (gimple_omp_taskreg_set_child_fn): Likewise.
22933         (gimple_omp_taskreg_data_arg): Likewise.
22934         (gimple_omp_taskreg_data_arg_ptr): Likewise.
22935         (gimple_omp_taskreg_set_data_arg): Likewise.
22936         (gimple_omp_task_copy_fn): Likewise.
22937         (gimple_omp_task_copy_fn_ptr): Likewise.
22938         (gimple_omp_task_set_copy_fn): Likewise.
22939         (gimple_omp_task_arg_size): Likewise.
22940         (gimple_omp_task_arg_size_ptr): Likewise.
22941         (gimple_omp_task_set_arg_size): Likewise.
22942         (gimple_omp_task_arg_align): Likewise.
22943         (gimple_omp_task_arg_align_ptr): Likewise.
22944         (gimple_omp_task_set_arg_align): Likewise.
22945         (gimple_omp_single_clauses): Likewise.
22946         (gimple_omp_single_clauses_ptr): Likewise.
22947         (gimple_omp_single_set_clauses): Likewise.
22948         (gimple_omp_target_clauses): Likewise.
22949         (gimple_omp_target_clauses_ptr): Likewise.
22950         (gimple_omp_target_set_clauses): Likewise.
22951         (gimple_omp_target_child_fn): Likewise.
22952         (gimple_omp_target_child_fn_ptr): Likewise.
22953         (gimple_omp_target_set_child_fn): Likewise.
22954         (gimple_omp_target_data_arg): Likewise.
22955         (gimple_omp_target_data_arg_ptr): Likewise.
22956         (gimple_omp_target_set_data_arg): Likewise.
22957         (gimple_omp_teams_clauses): Likewise.
22958         (gimple_omp_teams_clauses_ptr): Likewise.
22959         (gimple_omp_teams_set_clauses): Likewise.
22960         (gimple_omp_sections_clauses): Likewise.
22961         (gimple_omp_sections_clauses_ptr): Likewise.
22962         (gimple_omp_sections_set_clauses): Likewise.
22963         (gimple_omp_sections_control): Likewise.
22964         (gimple_omp_sections_control_ptr): Likewise.
22965         (gimple_omp_sections_set_control): Likewise.
22966         (gimple_omp_for_set_cond): Likewise.
22967         (gimple_omp_for_cond): Likewise.
22968         (gimple_omp_atomic_store_set_val): Likewise.
22969         (gimple_omp_atomic_store_val): Likewise.
22970         (gimple_omp_atomic_store_val_ptr): Likewise.
22971         (gimple_omp_atomic_load_set_lhs): Likewise.
22972         (gimple_omp_atomic_load_lhs): Likewise.
22973         (gimple_omp_atomic_load_lhs_ptr): Likewise.
22974         (gimple_omp_atomic_load_set_rhs): Likewise.
22975         (gimple_omp_atomic_load_rhs): Likewise.
22976         (gimple_omp_atomic_load_rhs_ptr): Likewise.
22977         (gimple_omp_continue_control_def): Likewise.
22978         (gimple_omp_continue_control_def_ptr): Likewise.
22979         (gimple_omp_continue_set_control_def): Likewise.
22980         (gimple_omp_continue_control_use): Likewise.
22981         (gimple_omp_continue_control_use_ptr): Likewise.
22982         (gimple_omp_continue_set_control_use): Likewise.
22983         (gimple_transaction_body_ptr): Likewise.
22984         (gimple_transaction_label): Likewise.
22985         (gimple_transaction_label_ptr): Likewise.
22986         (gimple_transaction_set_body): Likewise.
22987         (gimple_transaction_set_label): Likewise.
22988
22989         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22990         * ipa-inline-analysis.c (inline_write_summary): Likewise.
22991         * ipa-ref.c (ipa_record_reference): Likewise.
22992         * ipa-reference.c (analyze_function): Likewise.
22993         (ipa_reference_write_optimization_summary): Likewise.
22994         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22995         (address_taken_from_non_vtable_p): Likewise.
22996         (comdat_can_be_unshared_p_1): Likewise.
22997         * lto-cgraph.c (lto_output_ref): Likewise.
22998         (add_references): Likewise.
22999         (compute_ltrans_boundary): Likewise.
23000         (output_symtab): Likewise.
23001         (input_ref): Likewise.
23002         (input_cgraph_1): Likewise.
23003         (output_cgraph_opt_summary): Likewise.
23004         * lto-streamer-out.c (lto_output): Likewise.
23005         (output_symbol_p): Likewise.
23006         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23007         (lsei_start_function_in_partition): Likewise.
23008         (lsei_next_variable_in_partition): Likewise.
23009         (lsei_start_variable_in_partition): Likewise.
23010         * symtab.c (insert_to_assembler_name_hash): Likewise.
23011         (unlink_from_assembler_name_hash): Likewise.
23012         (symtab_unregister_node): Likewise.
23013         (symtab_remove_node): Likewise.
23014         (dump_symtab_node): Likewise.
23015         (verify_symtab_base): Likewise.
23016         (verify_symtab_node): Likewise.
23017         (symtab_make_decl_local): Likewise.
23018         (symtab_alias_ultimate_target): Likewise.
23019         (symtab_resolve_alias): Likewise.
23020         (symtab_get_symbol_partitioning_class): Likewise.
23021         * tree-phinodes.c (allocate_phi_node): Likewise.
23022         (reserve_phi_args_for_new_edge): Likewise.
23023         (remove_phi_args): Likewise.
23024         * varpool.c (varpool_node_for_asm): Likewise.
23025         (varpool_remove_unreferenced_decls): Likewise.
23026
23027 2014-04-23  Jeff Law  <law@redhat.com>
23028
23029         PR tree-optimization/60902
23030         * tree-ssa-threadedge.c
23031         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23032         invalidate outputs from statements that do not produce useful
23033         outputs for threading.
23034
23035 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
23036
23037         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23038         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23039         machine descriptions for Stack Smashing Protector.
23040
23041 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
23042
23043         * aarch64.md (<optab>_rol<mode>3): New pattern.
23044         (<optab>_rolsi3_uxtw): Likewise.
23045         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23046
23047 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
23048
23049         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23050         (arm_cortex_a12_tune): Likewise.
23051
23052 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23053
23054         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23055
23056 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23057
23058         * config/arm/arm.md (arm_rev16si2): New pattern.
23059         (arm_rev16si2_alt): Likewise.
23060         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23061
23062 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23063
23064         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23065         (rev16<mode>2_alt): Likewise.
23066         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23067         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23068         (aarch_rev16_shleft_mask_imm_p): Likewise.
23069         (aarch_rev16_p_1): Likewise.
23070         (aarch_rev16_p): Likewise.
23071         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23072         (aarch_rev16_shright_mask_imm_p): Likewise.
23073         (aarch_rev16_shleft_mask_imm_p): Likewise.
23074
23075 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23076
23077         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23078         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23079         rev cost.
23080         (cortex_a53_extra_costs): Likewise.
23081         (cortex_a57_extra_costs): Likewise.
23082         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23083         (cortexa7_extra_costs): Likewise.
23084         (cortexa8_extra_costs): Likewise.
23085         (cortexa12_extra_costs): Likewise.
23086         (cortexa15_extra_costs): Likewise.
23087         (v7m_extra_costs): Likewise.
23088         (arm_new_rtx_costs): Handle BSWAP.
23089
23090 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23091
23092         * config/arm/arm.c (cortexa8_extra_costs): New table.
23093         (arm_cortex_a8_tune): New tuning struct.
23094         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23095
23096 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23097
23098         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23099
23100 2014-04-23  Richard Biener  <rguenther@suse.de>
23101
23102         * Makefile.in (OBJS): Remove loop-unswitch.o.
23103         * tree-pass.h (make_pass_rtl_unswitch): Remove.
23104         * passes.def (pass_rtl_unswitch): Likewise.
23105         * loop-init.c (gate_rtl_unswitch): Likewise.
23106         (rtl_unswitch): Likewise.
23107         (pass_data_rtl_unswitch): Likewise.
23108         (pass_rtl_unswitch): Likewise.
23109         (make_pass_rtl_unswitch): Likewise.
23110         * rtl.h (reversed_condition): Likewise.
23111         (compare_and_jump_seq): Likewise.
23112         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23113         and make static.
23114         * loop-unroll.c (compare_and_jump_seq): Likewise.
23115
23116 2014-04-23  Richard Biener  <rguenther@suse.de>
23117
23118         PR tree-optimization/60903
23119         * tree-ssa-loop-im.c (analyze_memory_references): Remove
23120         commented code block.
23121         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23122         loop flags to newly created BBs and edges.
23123
23124 2014-04-23  Nick Clifton  <nickc@redhat.com>
23125
23126         * config/msp430/msp430.c (msp430_handle_option): Move function
23127         to msp430-common.c
23128         (msp430_option_override): Simplify mcu and mcpu option handling.
23129         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
23130         support for -mhwmult command line option.
23131         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
23132         -mhwmult command line option.
23133         (msp430_hwmult_enabled): Delete.
23134         (msp43o_output_labelref): Add support for -mhwmult command line option.
23135         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23136         (umulsidi3): Likewise.
23137         * config/msp430/msp430.opt (mmcu): Add Report attribute.
23138         (mcpu, mlarge, msmall): Likewise.
23139         (mhwmult): New option.
23140         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23141         prototype.
23142         (msp430_is_f5_mcu): Remove prototype.
23143         (msp430_use_f5_series_hwmult): Add prototype.
23144         * config/msp430/msp430-opts.h: New file.
23145         * common/config/msp430: New directory.
23146         * common/config/msp430/msp430-common.c: New file.
23147         * config.gcc (msp430): Remove target_has_targetm_common.
23148         * doc/invoke.texi: Document -mhwmult command line option.
23149
23150 2014-04-23  Nick Clifton  <nickc@redhat.com>
23151
23152         * config/i386/cygwin.h (ENDFILE_SPEC): Include
23153         default-manifest.o if it can be found in the search path.
23154         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23155
23156 2014-04-23  Terry Guo  <terry.guo@arm.com>
23157
23158         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23159
23160 2014-04-23  Richard Biener  <rguenther@suse.de>
23161
23162         PR middle-end/60895
23163         * tree-inline.c (declare_return_variable): Use mark_addressable.
23164
23165 2014-04-23  Richard Biener  <rguenther@suse.de>
23166
23167         PR middle-end/60891
23168         * loop-init.c (loop_optimizer_init): Make sure to apply
23169         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23170
23171 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23172
23173         PR sanitizer/60275
23174         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23175         New options.
23176         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23177         if flag_sanitize_undefined_trap_on_error.
23178         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23179         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23180         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23181         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23182         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23183         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23184         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23185         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23186         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23187         * ubsan.c (ubsan_instrument_unreachable): Return
23188         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23189         (ubsan_expand_null_ifn): Emit __builtin_trap ()
23190         if flag_sanitize_undefined_trap_on_error and
23191         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23192         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23193         instrument_bool_enum_load): Emit __builtin_trap () if
23194         flag_sanitize_undefined_trap_on_error and
23195         __builtin_handle_*_abort () if !flag_sanitize_recover.
23196         * doc/invoke.texi (-fsanitize-recover,
23197         -fsanitize-undefined-trap-on-error): Document.
23198
23199 2014-04-22  Christian Bruel  <christian.bruel@st.com>
23200
23201         * config/sh/sh.md (mov<mode>): Replace movQIHI.
23202          Force immediates to SImode.
23203
23204 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
23205
23206         * config/nios2/nios2.md (UNSPEC_ROUND): New.
23207         (lroundsfsi2): New.
23208         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23209         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23210         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23211         (nios2_fpu_insn): Add entry for round.
23212         (N2FPU_NO_ERRNO_P): Define.
23213         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23214         flag_errno_math.
23215         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23216
23217 2014-04-22  Richard Henderson  <rth@redhat.com>
23218
23219         * config/aarch64/aarch64 (addti3, subti3): New expanders.
23220         (add<GPI>3_compare0): Remove leading * from name.
23221         (add<GPI>3_carryin): Likewise.
23222         (sub<GPI>3_compare0): Likewise.
23223         (sub<GPI>3_carryin): Likewise.
23224         (<su_optab>mulditi3): New expander.
23225         (multi3): New expander.
23226         (madd<GPI>): Remove leading * from name.
23227
23228 2014-04-22  Martin Jambor  <mjambor@suse.cz>
23229
23230         * cgraphclones.c (cgraph_function_versioning): Copy
23231         ipa_transforms_to_apply instead of asserting it is empty.
23232
23233 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
23234
23235         PR target/60868
23236         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23237         on count_exp to get mode.
23238
23239 2014-04-22  Andrew Pinski  <apinski@cavium.com>
23240
23241         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23242         Handle TLS for ILP32.
23243         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23244         (tlsie_small_<mode>): this and handle PTR.
23245         (tlsie_small_sidi): New pattern.
23246         (tlsle_small): Change to an expand to handle ILP32.
23247         (tlsle_small_<mode>): New pattern.
23248         (tlsdesc_small): Rename to ...
23249         (tlsdesc_small_<mode>): this and handle PTR.
23250
23251 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23252
23253         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23254
23255 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23256
23257         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23258         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23259         (aarch64_types_signed_poly_qualifiers): Likewise.
23260         (aarch64_types_unsigned_signed_qualifiers): Likewise.
23261         (aarch64_types_poly_signed_qualifiers): Likewise.
23262         (TYPES_REINTERP_SS): Type macro added.
23263         (TYPES_REINTERP_SU): Likewise.
23264         (TYPES_REINTERP_SP): Likewise.
23265         (TYPES_REINTERP_US): Likewise.
23266         (TYPES_REINTERP_PS): Likewise.
23267         (aarch64_fold_builtin): New expression folding added.
23268         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23269         Declarations removed.
23270         (REINTERP_SS): Declarations added.
23271         (REINTERP_US): Likewise.
23272         (REINTERP_PS): Likewise.
23273         (REINTERP_SU): Likewise.
23274         (REINTERP_SP): Likewise.
23275         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23276         (vreinterpretq_p8_f64): Likewise.
23277         (vreinterpret_p16_f64): Likewise.
23278         (vreinterpretq_p16_f64): Likewise.
23279         (vreinterpret_f32_f64): Likewise.
23280         (vreinterpretq_f32_f64): Likewise.
23281         (vreinterpret_f64_f32): Likewise.
23282         (vreinterpret_f64_p8): Likewise.
23283         (vreinterpret_f64_p16): Likewise.
23284         (vreinterpret_f64_s8): Likewise.
23285         (vreinterpret_f64_s16): Likewise.
23286         (vreinterpret_f64_s32): Likewise.
23287         (vreinterpret_f64_s64): Likewise.
23288         (vreinterpret_f64_u8): Likewise.
23289         (vreinterpret_f64_u16): Likewise.
23290         (vreinterpret_f64_u32): Likewise.
23291         (vreinterpret_f64_u64): Likewise.
23292         (vreinterpretq_f64_f32): Likewise.
23293         (vreinterpretq_f64_p8): Likewise.
23294         (vreinterpretq_f64_p16): Likewise.
23295         (vreinterpretq_f64_s8): Likewise.
23296         (vreinterpretq_f64_s16): Likewise.
23297         (vreinterpretq_f64_s32): Likewise.
23298         (vreinterpretq_f64_s64): Likewise.
23299         (vreinterpretq_f64_u8): Likewise.
23300         (vreinterpretq_f64_u16): Likewise.
23301         (vreinterpretq_f64_u32): Likewise.
23302         (vreinterpretq_f64_u64): Likewise.
23303         (vreinterpret_s64_f64): Likewise.
23304         (vreinterpretq_s64_f64): Likewise.
23305         (vreinterpret_u64_f64): Likewise.
23306         (vreinterpretq_u64_f64): Likewise.
23307         (vreinterpret_s8_f64): Likewise.
23308         (vreinterpretq_s8_f64): Likewise.
23309         (vreinterpret_s16_f64): Likewise.
23310         (vreinterpretq_s16_f64): Likewise.
23311         (vreinterpret_s32_f64): Likewise.
23312         (vreinterpretq_s32_f64): Likewise.
23313         (vreinterpret_u8_f64): Likewise.
23314         (vreinterpretq_u8_f64): Likewise.
23315         (vreinterpret_u16_f64): Likewise.
23316         (vreinterpretq_u16_f64): Likewise.
23317         (vreinterpret_u32_f64): Likewise.
23318         (vreinterpretq_u32_f64): Likewise.
23319
23320 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23321
23322         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23323         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23324         (vreinterpret_p8_s8): Likewise.
23325         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23326         (vreinterpret_p8_s16): Likewise.
23327         (vreinterpret_p8_s32): Likewise.
23328         (vreinterpret_p8_s64): Likewise.
23329         (vreinterpret_p8_f32): Likewise.
23330         (vreinterpret_p8_u8): Likewise.
23331         (vreinterpret_p8_u16): Likewise.
23332         (vreinterpret_p8_u32): Likewise.
23333         (vreinterpret_p8_u64): Likewise.
23334         (vreinterpret_p8_p16): Likewise.
23335         (vreinterpretq_p8_s8): Likewise.
23336         (vreinterpretq_p8_s16): Likewise.
23337         (vreinterpretq_p8_s32): Likewise.
23338         (vreinterpretq_p8_s64): Likewise.
23339         (vreinterpretq_p8_f32): Likewise.
23340         (vreinterpretq_p8_u8): Likewise.
23341         (vreinterpretq_p8_u16): Likewise.
23342         (vreinterpretq_p8_u32): Likewise.
23343         (vreinterpretq_p8_u64): Likewise.
23344         (vreinterpretq_p8_p16): Likewise.
23345         (vreinterpret_p16_s8): Likewise.
23346         (vreinterpret_p16_s16): Likewise.
23347         (vreinterpret_p16_s32): Likewise.
23348         (vreinterpret_p16_s64): Likewise.
23349         (vreinterpret_p16_f32): Likewise.
23350         (vreinterpret_p16_u8): Likewise.
23351         (vreinterpret_p16_u16): Likewise.
23352         (vreinterpret_p16_u32): Likewise.
23353         (vreinterpret_p16_u64): Likewise.
23354         (vreinterpret_p16_p8): Likewise.
23355         (vreinterpretq_p16_s8): Likewise.
23356         (vreinterpretq_p16_s16): Likewise.
23357         (vreinterpretq_p16_s32): Likewise.
23358         (vreinterpretq_p16_s64): Likewise.
23359         (vreinterpretq_p16_f32): Likewise.
23360         (vreinterpretq_p16_u8): Likewise.
23361         (vreinterpretq_p16_u16): Likewise.
23362         (vreinterpretq_p16_u32): Likewise.
23363         (vreinterpretq_p16_u64): Likewise.
23364         (vreinterpretq_p16_p8): Likewise.
23365         (vreinterpret_f32_s8): Likewise.
23366         (vreinterpret_f32_s16): Likewise.
23367         (vreinterpret_f32_s32): Likewise.
23368         (vreinterpret_f32_s64): Likewise.
23369         (vreinterpret_f32_u8): Likewise.
23370         (vreinterpret_f32_u16): Likewise.
23371         (vreinterpret_f32_u32): Likewise.
23372         (vreinterpret_f32_u64): Likewise.
23373         (vreinterpret_f32_p8): Likewise.
23374         (vreinterpret_f32_p16): Likewise.
23375         (vreinterpretq_f32_s8): Likewise.
23376         (vreinterpretq_f32_s16): Likewise.
23377         (vreinterpretq_f32_s32): Likewise.
23378         (vreinterpretq_f32_s64): Likewise.
23379         (vreinterpretq_f32_u8): Likewise.
23380         (vreinterpretq_f32_u16): Likewise.
23381         (vreinterpretq_f32_u32): Likewise.
23382         (vreinterpretq_f32_u64): Likewise.
23383         (vreinterpretq_f32_p8): Likewise.
23384         (vreinterpretq_f32_p16): Likewise.
23385         (vreinterpret_s64_s8): Likewise.
23386         (vreinterpret_s64_s16): Likewise.
23387         (vreinterpret_s64_s32): Likewise.
23388         (vreinterpret_s64_f32): Likewise.
23389         (vreinterpret_s64_u8): Likewise.
23390         (vreinterpret_s64_u16): Likewise.
23391         (vreinterpret_s64_u32): Likewise.
23392         (vreinterpret_s64_u64): Likewise.
23393         (vreinterpret_s64_p8): Likewise.
23394         (vreinterpret_s64_p16): Likewise.
23395         (vreinterpretq_s64_s8): Likewise.
23396         (vreinterpretq_s64_s16): Likewise.
23397         (vreinterpretq_s64_s32): Likewise.
23398         (vreinterpretq_s64_f32): Likewise.
23399         (vreinterpretq_s64_u8): Likewise.
23400         (vreinterpretq_s64_u16): Likewise.
23401         (vreinterpretq_s64_u32): Likewise.
23402         (vreinterpretq_s64_u64): Likewise.
23403         (vreinterpretq_s64_p8): Likewise.
23404         (vreinterpretq_s64_p16): Likewise.
23405         (vreinterpret_u64_s8): Likewise.
23406         (vreinterpret_u64_s16): Likewise.
23407         (vreinterpret_u64_s32): Likewise.
23408         (vreinterpret_u64_s64): Likewise.
23409         (vreinterpret_u64_f32): Likewise.
23410         (vreinterpret_u64_u8): Likewise.
23411         (vreinterpret_u64_u16): Likewise.
23412         (vreinterpret_u64_u32): Likewise.
23413         (vreinterpret_u64_p8): Likewise.
23414         (vreinterpret_u64_p16): Likewise.
23415         (vreinterpretq_u64_s8): Likewise.
23416         (vreinterpretq_u64_s16): Likewise.
23417         (vreinterpretq_u64_s32): Likewise.
23418         (vreinterpretq_u64_s64): Likewise.
23419         (vreinterpretq_u64_f32): Likewise.
23420         (vreinterpretq_u64_u8): Likewise.
23421         (vreinterpretq_u64_u16): Likewise.
23422         (vreinterpretq_u64_u32): Likewise.
23423         (vreinterpretq_u64_p8): Likewise.
23424         (vreinterpretq_u64_p16): Likewise.
23425         (vreinterpret_s8_s16): Likewise.
23426         (vreinterpret_s8_s32): Likewise.
23427         (vreinterpret_s8_s64): Likewise.
23428         (vreinterpret_s8_f32): Likewise.
23429         (vreinterpret_s8_u8): Likewise.
23430         (vreinterpret_s8_u16): Likewise.
23431         (vreinterpret_s8_u32): Likewise.
23432         (vreinterpret_s8_u64): Likewise.
23433         (vreinterpret_s8_p8): Likewise.
23434         (vreinterpret_s8_p16): Likewise.
23435         (vreinterpretq_s8_s16): Likewise.
23436         (vreinterpretq_s8_s32): Likewise.
23437         (vreinterpretq_s8_s64): Likewise.
23438         (vreinterpretq_s8_f32): Likewise.
23439         (vreinterpretq_s8_u8): Likewise.
23440         (vreinterpretq_s8_u16): Likewise.
23441         (vreinterpretq_s8_u32): Likewise.
23442         (vreinterpretq_s8_u64): Likewise.
23443         (vreinterpretq_s8_p8): Likewise.
23444         (vreinterpretq_s8_p16): Likewise.
23445         (vreinterpret_s16_s8): Likewise.
23446         (vreinterpret_s16_s32): Likewise.
23447         (vreinterpret_s16_s64): Likewise.
23448         (vreinterpret_s16_f32): Likewise.
23449         (vreinterpret_s16_u8): Likewise.
23450         (vreinterpret_s16_u16): Likewise.
23451         (vreinterpret_s16_u32): Likewise.
23452         (vreinterpret_s16_u64): Likewise.
23453         (vreinterpret_s16_p8): Likewise.
23454         (vreinterpret_s16_p16): Likewise.
23455         (vreinterpretq_s16_s8): Likewise.
23456         (vreinterpretq_s16_s32): Likewise.
23457         (vreinterpretq_s16_s64): Likewise.
23458         (vreinterpretq_s16_f32): Likewise.
23459         (vreinterpretq_s16_u8): Likewise.
23460         (vreinterpretq_s16_u16): Likewise.
23461         (vreinterpretq_s16_u32): Likewise.
23462         (vreinterpretq_s16_u64): Likewise.
23463         (vreinterpretq_s16_p8): Likewise.
23464         (vreinterpretq_s16_p16): Likewise.
23465         (vreinterpret_s32_s8): Likewise.
23466         (vreinterpret_s32_s16): Likewise.
23467         (vreinterpret_s32_s64): Likewise.
23468         (vreinterpret_s32_f32): Likewise.
23469         (vreinterpret_s32_u8): Likewise.
23470         (vreinterpret_s32_u16): Likewise.
23471         (vreinterpret_s32_u32): Likewise.
23472         (vreinterpret_s32_u64): Likewise.
23473         (vreinterpret_s32_p8): Likewise.
23474         (vreinterpret_s32_p16): Likewise.
23475         (vreinterpretq_s32_s8): Likewise.
23476         (vreinterpretq_s32_s16): Likewise.
23477         (vreinterpretq_s32_s64): Likewise.
23478         (vreinterpretq_s32_f32): Likewise.
23479         (vreinterpretq_s32_u8): Likewise.
23480         (vreinterpretq_s32_u16): Likewise.
23481         (vreinterpretq_s32_u32): Likewise.
23482         (vreinterpretq_s32_u64): Likewise.
23483         (vreinterpretq_s32_p8): Likewise.
23484         (vreinterpretq_s32_p16): Likewise.
23485         (vreinterpret_u8_s8): Likewise.
23486         (vreinterpret_u8_s16): Likewise.
23487         (vreinterpret_u8_s32): Likewise.
23488         (vreinterpret_u8_s64): Likewise.
23489         (vreinterpret_u8_f32): Likewise.
23490         (vreinterpret_u8_u16): Likewise.
23491         (vreinterpret_u8_u32): Likewise.
23492         (vreinterpret_u8_u64): Likewise.
23493         (vreinterpret_u8_p8): Likewise.
23494         (vreinterpret_u8_p16): Likewise.
23495         (vreinterpretq_u8_s8): Likewise.
23496         (vreinterpretq_u8_s16): Likewise.
23497         (vreinterpretq_u8_s32): Likewise.
23498         (vreinterpretq_u8_s64): Likewise.
23499         (vreinterpretq_u8_f32): Likewise.
23500         (vreinterpretq_u8_u16): Likewise.
23501         (vreinterpretq_u8_u32): Likewise.
23502         (vreinterpretq_u8_u64): Likewise.
23503         (vreinterpretq_u8_p8): Likewise.
23504         (vreinterpretq_u8_p16): Likewise.
23505         (vreinterpret_u16_s8): Likewise.
23506         (vreinterpret_u16_s16): Likewise.
23507         (vreinterpret_u16_s32): Likewise.
23508         (vreinterpret_u16_s64): Likewise.
23509         (vreinterpret_u16_f32): Likewise.
23510         (vreinterpret_u16_u8): Likewise.
23511         (vreinterpret_u16_u32): Likewise.
23512         (vreinterpret_u16_u64): Likewise.
23513         (vreinterpret_u16_p8): Likewise.
23514         (vreinterpret_u16_p16): Likewise.
23515         (vreinterpretq_u16_s8): Likewise.
23516         (vreinterpretq_u16_s16): Likewise.
23517         (vreinterpretq_u16_s32): Likewise.
23518         (vreinterpretq_u16_s64): Likewise.
23519         (vreinterpretq_u16_f32): Likewise.
23520         (vreinterpretq_u16_u8): Likewise.
23521         (vreinterpretq_u16_u32): Likewise.
23522         (vreinterpretq_u16_u64): Likewise.
23523         (vreinterpretq_u16_p8): Likewise.
23524         (vreinterpretq_u16_p16): Likewise.
23525         (vreinterpret_u32_s8): Likewise.
23526         (vreinterpret_u32_s16): Likewise.
23527         (vreinterpret_u32_s32): Likewise.
23528         (vreinterpret_u32_s64): Likewise.
23529         (vreinterpret_u32_f32): Likewise.
23530         (vreinterpret_u32_u8): Likewise.
23531         (vreinterpret_u32_u16): Likewise.
23532         (vreinterpret_u32_u64): Likewise.
23533         (vreinterpret_u32_p8): Likewise.
23534         (vreinterpret_u32_p16): Likewise.
23535         (vreinterpretq_u32_s8): Likewise.
23536         (vreinterpretq_u32_s16): Likewise.
23537         (vreinterpretq_u32_s32): Likewise.
23538         (vreinterpretq_u32_s64): Likewise.
23539         (vreinterpretq_u32_f32): Likewise.
23540         (vreinterpretq_u32_u8): Likewise.
23541         (vreinterpretq_u32_u16): Likewise.
23542         (vreinterpretq_u32_u64): Likewise.
23543         (vreinterpretq_u32_p8): Likewise.
23544         (vreinterpretq_u32_p16): Likewise.
23545
23546 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23547
23548         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23549         Pattern extended.
23550         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23551         (sqabs): Likewise.
23552         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23553         (vqnegd_s64): Likewise.
23554         (vqabs_s64): Likewise.
23555         (vqabsd_s64): Likewise.
23556
23557 2014-04-22  Richard Henderson  <rth@redhat.com>
23558
23559         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23560         computation to the top of the loop.
23561
23562 2014-04-22  Renlin  <renlin.li@arm.com>
23563             Jiong Wang  <jiong.wang@arm.com>
23564
23565         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23566         * config/aarch64/aarch64.c (aarch64_layout_frame)
23567         (aarch64_initial_elimination_offset): Likewise.
23568
23569 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23570
23571         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23572         Fix indentation.
23573
23574 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
23575
23576         * machmode.h (bitwise_mode_for_mode): Declare.
23577         * stor-layout.h (bitwise_type_for_mode): Likewise.
23578         * stor-layout.c (bitwise_mode_for_mode): New function.
23579         (bitwise_type_for_mode): Likewise.
23580         * builtins.c (fold_builtin_memory_op): Use it instead of
23581         int_mode_for_mode and build_nonstandard_integer_type.
23582
23583 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23584
23585         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23586         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23587         (*-*-solaris2*): Simplify.
23588         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23589         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23590         *-*-solaris2.9* handling.
23591
23592         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23593         as bug.
23594         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23595         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23596         handling, simplify.
23597         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23598         * configure: Regenerate.
23599
23600         * config/i386/sol2-9.h: Remove.
23601
23602         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23603         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23604         Remove Solaris 9 references.
23605
23606 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
23607
23608         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23609         (floatuns<GPI:mode><GPF:mode>2): Remove.
23610         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23611         and floatuns conversions.
23612         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23613         and floatuns conversions.
23614         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23615         (w1,w2): New mode attributes for inequal width conversions.
23616
23617 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
23618
23619         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23620         the output asm format.
23621
23622 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
23623
23624         * config/aarch64/aarch64-simd.md
23625         (aarch64_cm<optab>di): Always split.
23626         (*aarch64_cm<optab>di): New.
23627         (aarch64_cmtstdi): Always split.
23628         (*aarch64_cmtstdi): New.
23629
23630 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23631
23632         PR tree-optimization/60823
23633         * omp-low.c (ipa_simd_modify_function_body): Go through
23634         all SSA_NAMEs and for those refering to vector arguments
23635         which are going to be replaced adjust SSA_NAME_VAR and,
23636         if it is a default definition, change it into a non-default
23637         definition assigned at the beginning of function from new_decl.
23638         (ipa_simd_modify_stmt_ops): Rewritten.
23639         * tree-dfa.c (set_ssa_default_def): When removing default def,
23640         check for NULL loc instead of NULL *loc.
23641
23642 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23643
23644         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23645         restrictions on core registers for DImode values in Thumb2.
23646
23647 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23648
23649         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23650         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23651
23652 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23653
23654         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23655         (*iordi_notzesidi_di): Likewise.
23656         (*iordi_notsesidi_di): Likewise.
23657
23658 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23659
23660         * config/arm/arm-protos.h (tune_params): New struct members.
23661         * config/arm/arm.c: Initialise tune_params per processor.
23662         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23663         for speed, based on new tune_params.
23664
23665 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23666
23667         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23668         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23669         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23670         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23671         * config/aarch64/arm_neon.h (vrnd_f64): Added.
23672         (vrnda_f64): Likewise.
23673         (vrndi_f64): Likewise.
23674         (vrndm_f64): Likewise.
23675         (vrndn_f64): Likewise.
23676         (vrndp_f64): Likewise.
23677         (vrndx_f64): Likewise.
23678
23679 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23680
23681         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23682         GET_MODE_SIZE argument is enum machine_mode.
23683
23684 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23685
23686         PR target/60910
23687         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23688         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23689
23690 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
23691
23692         PR middle-end/60281
23693         * asan.c (asan_emit_stack_protection): Force the base to align to
23694         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
23695         appropriate bits if STRICT_ALIGNMENT.
23696         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23697         when asan is on.
23698         (expand_used_vars): Leave a space in the stack frame for alignment
23699         if STRICT_ALIGNMENT.
23700
23701 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
23702
23703         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23704         than a gimple.
23705         (gimple_store_p): Likewise.
23706         (gimple_assign_load_p): Likewise.
23707         (gimple_assign_cast_p): Likewise.
23708         (gimple_clobber_p): Likewise.
23709
23710         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23711         rather than a gimple.
23712         (gimple_assign_cast_p): Likewise.
23713
23714 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23715
23716         PR target/60735
23717         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23718         If mode is DDmode and TARGET_E500_DOUBLE allow move.
23719
23720         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23721         more debug information for E500 if -mdebug=reg.
23722
23723 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
23724
23725         PR target/60909
23726         * config/i386/i386.c (ix86_expand_builtin)
23727         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23728         register for target RTX.
23729         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23730
23731 2014-04-18  Cong Hou  <congh@google.com>
23732
23733         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23734         the widen-mult pattern by handling two operands with different sizes,
23735         and operands whose size is smaller than half of the result type.
23736
23737 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
23738
23739         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23740         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23741         (do_estimate_edge_time): Compute it.
23742         * ipa-inline.c (want_inline_small_function_p): Bypass
23743         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23744
23745 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
23746
23747         * ipa-inline.c (spec_rem): New static variable.
23748         (dump_overall_stats): New function.
23749         (dump_inline_stats): New function.
23750
23751 2014-04-18  Richard Henderson  <rth@redhat.com>
23752
23753         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23754         to GET_MODE_SIZE, not a reg_class_t.
23755
23756 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23757
23758         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23759         (vsx_xxmrglw_<mode>): Likewise.
23760
23761 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
23762
23763         PR target/60876
23764         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23765         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23766         (rs6000_init_hard_regno_mode_ok): Likewise.
23767
23768 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
23769
23770         * ipa-inline.c (inline_small_functions): Account only non-cold
23771         functions.
23772         * doc/invoke.texi (inline-unit-growth): Update documentation.
23773
23774 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
23775
23776         * config/rs6000/rs6000.md (addti3, subti3): New.
23777
23778 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
23779
23780         PR target/60863
23781         * config/i386/i386.c (ix86_expand_clear): Remove outdated
23782         comment.  Check optimize_insn_for_size_p instead of
23783         optimize_insn_for_speed_p.
23784
23785 2014-04-17  Martin Jambor  <mjambor@suse.cz>
23786
23787         * gimple-iterator.c (gsi_start_edge): New function.
23788         * gimple-iterator.h (gsi_start_edge): Declare.
23789         * tree-sra.c (single_non_eh_succ): New function.
23790         (disqualify_ops_if_throwing_stmt): Renamed to
23791         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
23792         having one non-EH successor BB.
23793         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23794         generate loads into replacements.
23795         (sra_modify_assign): Likewise and and also use the simple path for
23796         such statements.
23797         (sra_modify_function_body): Commit statements on edges.
23798
23799 2014-04-17  Richard Biener  <rguenther@suse.de>
23800
23801         PR middle-end/60849
23802         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23803         comparison results and add clarifying comment.
23804
23805 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
23806
23807         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23808         (blank_mode): Initialize it.
23809         (emit_mode_size_inline, emit_mode_nunits_inline,
23810         emit_mode_inner_inline): New functions.
23811         (emit_insn_modes_h): Call them and surround their output with
23812         #if GCC_VERSION >= 4001 ... #endif.
23813         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23814         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23815         mode_* arrays if the argument is __builtin_constant_p.
23816         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23817         is enum machine_mode.
23818
23819 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23820
23821         * passes.c (opt_pass::execute): Adjust.
23822         (pass_manager::execute_pass_mode_switching): Likewise.
23823         (early_local_passes::execute): Likewise.
23824         (execute_one_pass): Pass cfun to the pass's execute method.
23825         * tree-pass.h (opt_pass::execute): Add function * argument.
23826         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23827         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23828         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23829         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23830         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23831         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23832         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23833         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23834         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23835         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23836         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23837         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23838         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23839         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23840         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23841         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23842         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23843         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23844         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23845         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23846         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23847         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23848         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23849         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23850         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23851         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23852         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23853         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23854         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23855         Adjust.
23856
23857 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23858
23859         * passes.c (opt_pass::gate): Take function * argument.
23860         (gate_all_early_local_passes): Merge into
23861         (early_local_passes::gate): this.
23862         (gate_all_early_optimizations): Merge into
23863         (all_early_optimizations::gate): this.
23864         (gate_all_optimizations): Mege into
23865         (all_optimizations::gate): this.
23866         (gate_all_optimizations_g): Merge into
23867         (all_optimizations_g::gate): this.
23868         (gate_rest_of_compilation): Mege into
23869         (rest_of_compilation::gate): this.
23870         (gate_postreload): Merge into
23871         (postreload::gate): this.
23872         (dump_one_pass): Pass cfun to the pass's gate method.
23873         (execute_ipa_summary_passes): Likewise.
23874         (execute_one_pass): Likewise.
23875         (ipa_write_summaries_2): Likewise.
23876         (ipa_write_optimization_summaries_1): Likewise.
23877         (ipa_read_summaries_1): Likewise.
23878         (ipa_read_optimization_summaries_1): Likewise.
23879         (execute_ipa_stmt_fixups): Likewise.
23880         * tree-pass.h (opt_pass::gate): Add function * argument.
23881         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23882         combine-stack-adj.c, combine.c, compare-elim.c,
23883         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23884         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23885         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23886         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
23887         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23888         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23889         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23890         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23891         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23892         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23893         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23894         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23895         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23896         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23897         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23898         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23899         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23900         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23901         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23902         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23903         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23904         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23905         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23906         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23907         var-tracking.c, vtable-verify.c, web.c: Adjust.
23908
23909 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23910
23911         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23912         * configure: Regenerate.
23913
23914 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23915
23916         * passes.c (dump_one_pass): don't check pass->has_gate.
23917         (execute_ipa_summary_passes): Likewise.
23918         (execute_one_pass): Likewise.
23919         (ipa_write_summaries_2): Likewise.
23920         (ipa_write_optimization_summaries_1): Likewise.
23921         (ipa_read_optimization_summaries_1): Likewise.
23922         (execute_ipa_stmt_fixups): Likewise.
23923         * tree-pass.h (pass_data::has_gate): Remove.
23924         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23925         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23926         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23927         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23928         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23929         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23930         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23931         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23932         gimple-low.c, gimple-ssa-isolate-paths.c,
23933         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23934         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23935         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23936         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23937         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23938         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23939         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23940         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23941         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23942         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23943         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23944         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23945         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23946         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23947         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23948         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23949         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23950         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23951         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23952         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23953         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23954         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23955         Adjust.
23956
23957 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23958
23959         * pass_manager.h (pass_manager::register_dump_files_1): Remove
23960         declaration.
23961         * passes.c (pass_manager::register_dump_files_1): Merge into
23962         (pass_manager::register_dump_files): this, and remove its handling of
23963         properties since the pass always has the properties anyway.
23964         (pass_manager::pass_manager): Adjust.
23965
23966 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23967
23968         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23969         * passes.c (pass_manager::register_dump_files_1): Remove dead code
23970         dealing with properties.
23971         (pass_manager::register_dump_files): Adjust.
23972
23973 2014-03-20  Mark Wielaard  <mjw@redhat.com>
23974
23975         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23976         then represent the bound as normal constant value.
23977
23978 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
23979
23980         PR target/60847
23981         Forward port from 4.8 branch
23982         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
23983
23984         * config/i386/bmiintrin.h (_blsi_u32): New.
23985         (_blsi_u64): Ditto.
23986         (_blsr_u32): Ditto.
23987         (_blsr_u64): Ditto.
23988         (_blsmsk_u32): Ditto.
23989         (_blsmsk_u64): Ditto.
23990         (_tzcnt_u32): Ditto.
23991         (_tzcnt_u64): Ditto.
23992
23993 2014-04-17  Kito Cheng  <kito@0xlab.org>
23994
23995         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23996
23997 2014-04-17  Richard Biener  <rguenther@suse.de>
23998
23999         PR middle-end/60849
24000         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24001         boolean results for comparisons.
24002
24003 2014-04-17  Richard Biener  <rguenther@suse.de>
24004
24005         PR tree-optimization/60836
24006         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24007         initial PHI args to be gimple values.
24008
24009 2014-04-17  Richard Biener  <rguenther@suse.de>
24010
24011         PR tree-optimization/60841
24012         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24013         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24014         of stmts to SLP build.
24015         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24016         (vect_analyze_slp): Likewise.
24017         (vect_analyze_slp_instance): Likewise.
24018         (vect_build_slp_tree): Limit overall SLP tree growth.
24019         * tree-vectorizer.h (vect_analyze_data_refs,
24020         vect_analyze_slp): Adjust prototypes.
24021
24022 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24023
24024         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24025         Silvermont.
24026
24027 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24028
24029         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24030         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24031         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24032         for TARGET_SLOW_PSHUFB
24033
24034 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24035
24036         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24037         * config/i386/i386.c (intel_cost): Ditto.
24038
24039 2014-04-17  Joey Ye  <joey.ye@arm.com>
24040
24041         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24042
24043 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24044
24045         * opts.c (common_handle_option): Disable -fipa-reference coorectly
24046         with -fuse-profile.
24047
24048 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24049
24050         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24051         (type_all_derivations_known_p): New predicate.
24052         (type_all_ctors_visible_p): New predicate.
24053         (type_possibly_instantiated_p): New predicate.
24054         (get_odr_type): Compute all_derivations_known.
24055         (dump_odr_type): Dump the flag.
24056         (maybe_record_type): Cleanup.
24057         (record_target_from_binfo): Add bases_to_consider array;
24058         record bases for types w/o instances and skip CXX destructor.
24059         (possible_polymorphic_call_targets_1): Add bases_to_consider
24060         and consider_construction parameters; check if type may have instance.
24061         (get_polymorphic_call_info): Set maybe_in_construction to true
24062         when we know nothing.
24063         (record_targets_from_bases): Skip CXX destructors; they are
24064         never called for types in construction.
24065         (possible_polymorphic_call_targets): Do not record target when
24066         type may not have instance.
24067
24068 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24069
24070         PR ipa/60854
24071         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24072         external aliases alive, too.
24073
24074 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
24075
24076         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24077         definition.
24078
24079 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
24080
24081         * final.c (compute_alignments): Do not apply loop alignment to a block
24082         falling through to the exit.
24083
24084 2014-04-16  Catherine Moore  <clm@codesourcery.com>
24085
24086         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24087         Adjust constraints for microMIPS store patterns.
24088
24089 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
24090
24091         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24092
24093 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
24094
24095         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24096         (append_use): Run at -O0.
24097         (append_vdef): Likewise.
24098         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24099         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24100
24101 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
24102
24103         PR tree-optimization/60844
24104         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24105         (propagate_op_to_single_use, remove_visited_stmt_chain,
24106         linearize_expr, repropagate_negates, reassociate_bb): Use it
24107         instead of gsi_remove.
24108
24109 2014-04-16  Martin Jambor  <mjambor@suse.cz>
24110
24111         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24112         ipa_transforms_to_apply.
24113         (cgraph_function_versioning): Assert that old_node has empty
24114         ipa_transforms_to_apply.
24115         * trans-mem.c (ipa_tm_create_version): Likewise.
24116         * tree-inline.c (tree_function_versioning): Do not duplicate
24117         ipa_transforms_to_apply.
24118
24119 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24120
24121         PR target/60817
24122         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24123         x86_64-*-* cases.
24124         Pass necessary as flags on 64-bit Solaris/x86.
24125         Use lowercase relocs for x86_64-*-*.
24126         * configure: Regenerate.
24127
24128 2014-04-15  Jan Hubicka  <jh@suse.cz>
24129
24130         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24131         (maybe_record_node, likely_target_p): Use it.
24132
24133 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24134
24135         PR target/60839
24136         Revert following patch
24137
24138         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24139
24140         PR target/60735
24141         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24142         software floating point or no floating point registers, do not
24143         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
24144         in GPRs that occurs after we tested for GPRs that would never be
24145         true.
24146
24147         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24148         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24149         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
24150         specifically allow DDmode, since that does not use the SPE SIMD
24151         instructions.
24152
24153 2014-03-21  Mark Wielaard  <mjw@redhat.com>
24154
24155         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24156         as unsigned or int depending on type and value used.
24157
24158 2014-04-15  Richard Biener  <rguenther@suse.de>
24159
24160         PR rtl-optimization/56965
24161         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24162         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24163         ... here.
24164         * alias.c (true_dependence_1): Do not call
24165         nonoverlapping_component_refs_p.
24166         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24167         nonoverlapping_component_refs_p.
24168         (indirect_refs_may_alias_p): Likewise.
24169
24170 2014-04-15  Teresa Johnson  <tejohnson@google.com>
24171
24172         * cfg.c (dump_bb_info): Fix flags check.
24173         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24174
24175 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24176
24177         PR rtl-optimization/60663
24178         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24179         avoid 0 cost.
24180
24181 2014-04-15  Richard Biener  <rguenther@suse.de>
24182
24183         * lto-streamer.h (LTO_major_version): Bump to 4.
24184
24185 2014-04-15  Richard Biener  <rguenther@suse.de>
24186
24187         * common.opt (lto_partition_model): New enum.
24188         (flto-partition=): Merge separate options with a single with argument,
24189         add -flto-partition=one support.
24190         * flag-types.h (enum lto_partition_model): Declare.
24191         * opts.c (finish_options): Remove duplicate -flto-partition=
24192         option check.
24193         * lto-wrapper.c (run_gcc): Adjust.
24194
24195 2014-04-15  Richard Biener  <rguenther@suse.de>
24196
24197         * alias.c (ncr_compar): New function.
24198         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24199
24200 2014-04-15  Richard Biener  <rguenther@suse.de>
24201
24202         * alias.c (record_component_aliases): Do not walk BINFOs.
24203
24204 2014-04-15  Richard Biener  <rguenther@suse.de>
24205
24206         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24207         Add struct function argument and adjust.
24208         (find_func_aliases_for_call): Likewise.
24209         (find_func_aliases): Likewise.
24210         (find_func_clobbers): Likewise.
24211         (intra_create_variable_infos): Likewise.
24212         (compute_points_to_sets): Likewise.
24213         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
24214
24215 2014-04-15  Richard Biener  <rguenther@suse.de>
24216
24217         * tree.c (iterative_hash_expr): Use enum tree_code_class
24218         to store TREE_CODE_CLASS.
24219         (tree_block): Likewise.
24220         (tree_set_block): Likewise.
24221         * tree.h (fold_build_pointer_plus_loc): Use
24222         convert_to_ptrofftype_loc.
24223
24224 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
24225
24226         PR plugins/59335
24227         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24228         added in 4.9.
24229
24230 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
24231
24232         * cfgloop.h (struct loop): Move force_vectorize down.
24233         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24234         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24235         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24236         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24237         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24238         * tree-core.h (enum annot_expr_kind): Add new kind values.
24239         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24240         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24241         kinds.
24242         * tree.def (ANNOTATE_EXPR): Tweak comment.
24243
24244 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24245
24246         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24247         cxa_pure_virtual).
24248
24249 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
24250
24251         * tree.h (TYPE_IDENTIFIER): Declare.
24252         * tree.c (subrange_type_for_debug_p): Use it.
24253         * godump.c (go_format_type): Likewise.
24254         * dwarf2out.c (is_cxx_auto, modified_type_die,
24255         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24256         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24257
24258 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24259
24260         PR lto/60820
24261         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24262
24263 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
24264
24265         * config/i386/i386.c (examine_argument): Return bool.  Return true if
24266         parameter should be passed in memory.
24267         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24268         (construct_container): Update calls to examine_argument.
24269         (function_arg_advance_64): Ditto.
24270         (return_in_memory_32): Merge with ix86_return_in_memory.
24271         (return_in_memory_64): Ditto.
24272         (return_in_memory_ms_64): Ditto.
24273
24274 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24275
24276         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24277         * coverage.c (coverage_compute_profile_id): Handle externally visible
24278         symbols.
24279
24280 2014-04-14  Martin Jambor  <mjambor@suse.cz>
24281
24282         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24283         DECL_DISREGARD_INLINE_LIMITS functions.
24284
24285 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
24286
24287         PR target/60827
24288         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24289
24290 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
24291
24292         PR target/60827
24293         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24294         optimize_insn_for_speed_p instead of
24295         optimize_function_for_speed_p.
24296
24297 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
24298
24299         * doc/invoke.texi (free): Document AArch64.
24300
24301 2014-04-14  Richard Biener  <rguenther@suse.de>
24302
24303         PR tree-optimization/60042
24304         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24305         (insert_into_preds_of_block): Do not prevent PHI insertion
24306         for REFERENCE exprs here ...
24307         (eliminate_dom_walker::before_dom_children): ... but prevent
24308         their use here under similar conditions when applied to the
24309         IL after PRE optimizations.
24310
24311 2014-04-14  Richard Biener  <rguenther@suse.de>
24312
24313         * passes.def: Move early points-to after early SRA.
24314
24315 2014-04-14  Richard Biener  <rguenther@suse.de>
24316
24317         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24318         check for which sign-changes we allow when forwarding
24319         a converted value into a switch.
24320
24321 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
24322
24323         * stor-layout.c (place_field): Finalize non-constant offset for the
24324         field, if any.
24325
24326 2014-04-14  Richard Biener  <rguenther@suse.de>
24327
24328         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24329         as argument.
24330         (expand_switch_using_bit_tests_p): Likewise.
24331         (process_switch): Compute and pass on speed_p based on the
24332         switch stmt.
24333         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24334         optimize_bb_for_speed_p.
24335
24336 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
24337
24338         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24339         * function.h (struct function): Rename has_force_vect_loops into
24340         has_force_vectorize_loops.
24341         * lto-streamer-in.c (input_cfg): Adjust for renaming.
24342         (input_struct_function_base): Likewise.
24343         * lto-streamer-out.c (output_cfg): Likewise.
24344         (output_struct_function_base): Likewise.
24345         * omp-low.c (expand_omp_simd): Likewise.
24346         * tree-cfg.c (move_sese_region_to_fn): Likewise.
24347         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24348         (version_loop_for_if_conversion): Likewise.
24349         (tree_if_conversion): Likewise.
24350         (main_tree_if_conversion): Likewise.
24351         (gate_tree_if_conversion): Likewise.
24352         * tree-inline.c (copy_loops): Likewise.
24353         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24354         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24355         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24356         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24357         * tree-vectorizer.c (vectorize_loops): Likewise.
24358         * tree-vectorizer.h (unlimited_cost_model): Likewise.
24359
24360 2014-04-14  Richard Biener  <rguenther@suse.de>
24361
24362         PR lto/60720
24363         * lto-streamer-out.c (wrap_refs): New function.
24364         (lto_output): Wrap symbol references in global initializes in
24365         type-preserving MEM_REFs.
24366
24367 2014-04-14  Christian Bruel  <christian.bruel@st.com>
24368
24369         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24370
24371 2014-04-14  Christian Bruel  <christian.bruel@st.com>
24372
24373         * config/sh/sh.md (setmemqi): New expand pattern.
24374         * config/sh/sh.h (CLEAR_RATIO): Define.
24375         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24376         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24377
24378 2014-04-14  Richard Biener  <rguenther@suse.de>
24379
24380         PR middle-end/55022
24381         * fold-const.c (negate_expr_p): Don't negate directional rounding
24382         division.
24383         (fold_negate_expr): Likewise.
24384
24385 2014-04-14  Richard Biener  <rguenther@suse.de>
24386
24387         PR tree-optimization/59817
24388         PR tree-optimization/60453
24389         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24390         recursion to catch all CHRECs in the scalar evolution and restrict
24391         the predicate for the remains appropriately.
24392
24393 2014-04-12  Catherine Moore  <clm@codesourcery.com>
24394
24395         * config/mips/constraints.md: Add new register constraint "kb".
24396         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24397         (*movhi_internal): Likewise.
24398         (*movqi_internal): Likewise.
24399         * config/mips/mips.h (M16_STORE_REGS): New register class.
24400         (REG_CLASS_NAMES): Add M16_STORE_REGS.
24401         (REG_CLASS_CONTENTS): Likewise.
24402         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24403
24404 2014-04-11  Tobias Burnus  <burnus@net-b.de>
24405
24406         PR c/60194
24407         * doc/invoke.texi (-Wformat-signedness): Document it.
24408         (Wformat=2): Mention that this enables -Wformat-signedness.
24409
24410 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24411
24412         * common/config/epiphany/epiphany-common.c
24413         (epiphany_option_optimization_table): Enable section anchors by
24414         default at -O1 or higher.
24415         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24416         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24417         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24418         carries no extra cost.
24419         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24420         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24421         * config/epiphany/predicates.md (memclob_operand): New predicate.
24422         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24423         Use memclob_operand predicate and X constraint for operand 3.
24424
24425 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24426
24427         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24428         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24429         its operands.
24430
24431 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24432
24433         PR rtl-optimization/60651
24434         * mode-switching.c (optimize_mode_switching): Make sure to emit
24435         sets of a lower numbered entity before sets of a higher numbered
24436         entity to a mode of the same or lower priority.
24437         When creating a seginfo for a basic block that starts with a code
24438         label, move the insertion point past the code label.
24439         (new_seginfo): Document and enforce requirement that
24440         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24441         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24442         * doc/tm.texi: Regenerate.
24443
24444 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24445
24446         PR target/60811
24447         * config/arc/arc.c (arc_save_restore): Fix assert typo.
24448
24449 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
24450
24451         * BASE-VER: Set to 4.10.0.
24452
24453 2014-04-11  Tobias Burnus  <burnus@net-b.de>
24454
24455         PR other/59055
24456         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24457         * doc/gcc.texi (Service): Update description in the @menu
24458         * doc/invoke.texi (Option Summary): Remove misplaced and
24459         duplicated @menu.
24460
24461 2014-04-11  Steve Ellcey  <sellcey@mips.com>
24462             Jakub Jelinek  <jakub@redhat.com>
24463
24464         PR middle-end/60556
24465         * expr.c (convert_move): Use emit_store_flag_force instead of
24466         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
24467         argument to it.
24468
24469 2014-04-11  Richard Biener  <rguenther@suse.de>
24470
24471         PR middle-end/60797
24472         * varasm.c (assemble_alias): Avoid endless error reporting
24473         recursion by setting TREE_ASM_WRITTEN.
24474
24475 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24476
24477         * config/s390/s390.md: Add a splitter for NOT rtx.
24478
24479 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
24480
24481         PR rtl-optimization/60663
24482         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24483
24484 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
24485             Jakub Jelinek  <jakub@redhat.com>
24486
24487         PR lto/60567
24488         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24489         flag from decl_node to node.
24490
24491 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24492
24493         PR debug/60655
24494         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24495         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24496         ameliorating the cases where it can be.
24497
24498 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
24499
24500         Revert
24501         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
24502
24503         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24504         (loadsync_<mode>): Change mode.
24505         (load_quadpti, store_quadpti): New.
24506         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24507         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24508         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24509
24510 2014-04-09  Cong Hou  <congh@google.com>
24511
24512         PR testsuite/60773
24513         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24514         documentation.
24515
24516 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24517
24518         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24519         instead of vnor to exploit possible fusion opportunity in the
24520         future.
24521         (altivec_expand_vec_perm_const_le): Likewise.
24522
24523 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
24524
24525         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24526         (loadsync_<mode>): Change mode.
24527         (load_quadpti, store_quadpti): New.
24528         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24529         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24530
24531 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
24532
24533         PR target/60763
24534         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24535         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24536         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24537
24538 2014-04-08  Richard Biener  <rguenther@suse.de>
24539
24540         PR middle-end/60706
24541         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24542         a 64bit widest int print double-int similar to on HWI64 hosts.
24543
24544 2014-04-08  Richard Biener  <rguenther@suse.de>
24545
24546         PR tree-optimization/60785
24547         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24548         default defs properly.
24549
24550 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
24551
24552         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24553         (Weffc++): Likewise.
24554
24555 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
24556
24557         * ipa-devirt.c (maybe_record_node): When node is not recorded,
24558         set completep to false rather than true.
24559
24560 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
24561
24562         PR target/60504
24563         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24564         ARM_TARGET2_DWARF_FORMAT.
24565
24566 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
24567
24568         PR target/60609
24569         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24570         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24571         ADDR_DIFF_VEC.
24572
24573 2014-04-07  Richard Biener  <rguenther@suse.de>
24574
24575         PR tree-optimization/60766
24576         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24577         (may_eliminate_iv): Convert cand_value_at result to desired type.
24578
24579 2014-04-07  Jason Merrill  <jason@redhat.com>
24580
24581         PR c++/60731
24582         * common.opt (-fno-gnu-unique): Add.
24583         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24584
24585 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24586
24587         * haifa-sched.c: Fix outdated function reference and minor
24588         grammar errors in introductory comment.
24589
24590 2014-04-07  Richard Biener  <rguenther@suse.de>
24591
24592         PR middle-end/60750
24593         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24594         for noreturn calls.
24595         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24596
24597 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
24598
24599         PR debug/55794
24600         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24601         size accounting for thunks.
24602         (pa_asm_output_mi_thunk): Use final_start_function() and
24603         final_end_function() to output function start and end directives.
24604
24605 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
24606
24607         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24608         device specific ISA/ feature information. Remove short_sp and
24609         errata_skip ds.  Add avr_device_specific_features enum to have device
24610         specific info.
24611         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24612         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24613         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24614         updated device specific info.
24615         * config/avr/avr-mcus.def: Merge device specific details to
24616         dev_attribute field.
24617         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24618         errata_skip.
24619         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24620         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24621         assembler if RMW isa supported by current device.
24622         * config/avr/genmultilib.awk: Update as device info structure changed.
24623         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24624
24625 2014-04-04  Cong Hou  <congh@google.com>
24626
24627         PR tree-optimization/60656
24628         * tree-vect-stmts.c (supportable_widening_operation):
24629         Fix a bug that elements in a vector with vect_used_by_reduction
24630         property are incorrectly reordered when the operation on it is not
24631         consistant with the one in reduction operation.
24632
24633 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
24634
24635         PR rtl-optimization/60155
24636         * gcse.c (record_set_data): New function.
24637         (single_set_gcse): New function.
24638         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24639         (hoist_code): Likewise.
24640         (get_pressure_class_and_nregs): Likewise.
24641
24642 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
24643
24644         * explow.c (probe_stack_range): Emit a final optimization blockage.
24645
24646 2014-04-04  Anthony Green  <green@moxielogic.com>
24647
24648         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24649         typos.
24650
24651 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
24652
24653         PR ipa/59626
24654         * lto-cgraph.c (input_overwrite_node): Check that partitioning
24655         flags are set only during streaming.
24656         * ipa.c (process_references, walk_polymorphic_call_targets,
24657         symtab_remove_unreachable_nodes): Drop bodies of always inline
24658         after early inlining.
24659         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24660
24661 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
24662         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24663
24664         PR debug/60655
24665         * dwarf2out.c (const_ok_for_output_1): Reject expressions
24666         containing a NOT.
24667
24668 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24669
24670         PR bootstrap/60743
24671         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24672         duration.
24673         (cortex_a53_fdivd): Likewise.
24674
24675 2014-04-04  Martin Jambor  <mjambor@suse.cz>
24676
24677         PR ipa/60640
24678         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24679         Adjust all callers.
24680         * cgraph.c (clone_of_p): Also return true if thunks match.
24681         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24682         cgraph_function_or_thunk_node and an obsolete comment.
24683         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24684         file.
24685         (build_function_decl_skip_args): Likewise.
24686         (set_new_clone_decl_and_node_flags): New function.
24687         (duplicate_thunk_for_node): Likewise.
24688         (redirect_edge_duplicating_thunks): Likewise.
24689         (cgraph_clone_node): New parameter args_to_skip, pass it to
24690         redirect_edge_duplicating_thunks which is called instead of
24691         cgraph_redirect_edge_callee.
24692         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24693         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24694
24695 2014-04-04  Jeff Law  <law@redhat.com>
24696
24697         PR target/60657
24698         * config/arm/predicates.md (const_int_I_operand): New predicate.
24699         (const_int_M_operand): Similarly.
24700         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24701         const_int_operand.
24702         (insv_t2, extv_reg, extzv_t2): Likewise.
24703         (load_multiple_with_writeback): Similarly for const_int_I_operand.
24704         (pop_multiple_with_writeback_and_return): Likewise.
24705         (vfp_pop_multiple_with_writeback): Likewise
24706
24707 2014-04-04  Richard Biener  <rguenther@suse.de>
24708
24709         PR ipa/60746
24710         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24711         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24712         non-GIMPLE_LABELs.
24713         * gimplify.h (gimple_add_tmp_var_fn): Declare.
24714         * gimplify.c (gimple_add_tmp_var_fn): New function.
24715         * gimple-expr.h (create_tmp_reg_fn): Declare.
24716         * gimple-expr.c (create_tmp_reg_fn): New function.
24717         * gimple-low.c (record_vars_into): Don't change cfun.
24718         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24719         code generation without cfun.
24720
24721 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
24722
24723         PR bootstrap/60719
24724         * Makefile.in (install-driver): Fix shell scripting.
24725
24726 2014-04-03  Cong Hou  <congh@google.com>
24727
24728         PR tree-optimization/60505
24729         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24730         threshold of number of iterations below which no vectorization
24731         will be done.
24732         * tree-vect-loop.c (new_loop_vec_info):
24733         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24734         * tree-vect-loop.c (vect_analyze_loop_operations):
24735         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24736         * tree-vect-loop.c (vect_transform_loop):
24737         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24738         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24739         of iterations of the loop and see if we should build the epilogue.
24740
24741 2014-04-03  Richard Biener  <rguenther@suse.de>
24742
24743         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24744         (streamer_tree_cache_create): Adjust.
24745         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24746         to allow optional nodes array.
24747         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24748         (streamer_tree_cache_append): Likewise.
24749         (streamer_tree_cache_create): Create nodes array optionally
24750         as specified by parameter.
24751         * lto-streamer-out.c (create_output_block): Avoid maintaining
24752         the node array in the writer cache.
24753         (DFS_write_tree): Remove assertion.
24754         (produce_asm_for_decls): Free the out decl state hash table early.
24755         * lto-streamer-in.c (lto_data_in_create): Adjust for
24756         streamer_tree_cache_create prototype change.
24757
24758 2014-04-03  Richard Biener  <rguenther@suse.de>
24759
24760         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24761         set TREE_CHAIN to NULL_TREE.
24762
24763 2014-04-03  Richard Biener  <rguenther@suse.de>
24764
24765         PR tree-optimization/60740
24766         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24767         over all GIMPLE_COND operands.
24768
24769 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
24770
24771         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24772         (Weffc++): Remove Scott's numbering, merge lists and reference
24773         Wnon-virtual-dtor.
24774
24775 2014-04-03  Nick Clifton  <nickc@redhat.com>
24776
24777         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24778         properly.
24779
24780 2014-04-03  Martin Jambor  <mjambor@suse.cz>
24781
24782         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24783         mention gcc_unreachable before failing.
24784         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24785         removed symbols.
24786
24787 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
24788
24789         PR ipa/60659
24790         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24791         inconsistent code and instead mark the context inconsistent.
24792         (possible_polymorphic_call_targets): For inconsistent contexts
24793         return empty complete list.
24794
24795 2014-04-02  Anthony Green  <green@moxielogic.com>
24796
24797         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24798         (extendqisi2, extendhisi2): Define.
24799         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24800         (WCHAR_TYPE): Change to unsigned int.
24801
24802 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24803
24804         PR tree-optimization/60733
24805         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24806         insertion point for PHI candidates to be the end of the feeding
24807         block for the PHI argument.
24808
24809 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
24810
24811         PR rtl-optimization/60650
24812         * lra-constraints.c (process_alt_operands): Decrease reject for
24813         earlyclobber matching.
24814
24815 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24816
24817         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24818
24819 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24820
24821         * config/spu/spu.c (pad_bb): Do not crash when the last
24822         insn is CODE_FOR_blockage.
24823
24824 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24825
24826         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24827         lies outside the target mode.
24828
24829 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24830
24831         PR target/60735
24832         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24833         software floating point or no floating point registers, do not
24834         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
24835         in GPRs that occurs after we tested for GPRs that would never be
24836         true.
24837
24838         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24839         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24840         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
24841         specifically allow DDmode, since that does not use the SPE SIMD
24842         instructions.
24843
24844 2014-04-02  Richard Biener  <rguenther@suse.de>
24845
24846         PR middle-end/60729
24847         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24848         MODE_INTs.  Properly use negv_optab.
24849         (expand_abs): Likewise.
24850
24851 2014-04-02  Richard Biener  <rguenther@suse.de>
24852
24853         PR bootstrap/60719
24854         * Makefile.in (install-driver): Guard extra installs with special
24855         names properly.
24856
24857 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
24858
24859         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24860         Document vec_vgbbd.
24861
24862 2014-04-01  Richard Henderson  <rth@redhat.com>
24863
24864         PR target/60704
24865         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24866         alternative enabled before register allocation.
24867
24868 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
24869
24870         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24871         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24872         typo.
24873         (nios2_large_got_address): Remove unneeded 'sym' parameter.
24874         (nios2_got_address): Update nios2_large_got_address call site.
24875         (nios2_delegitimize_address): New function.
24876         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24877         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24878         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24879
24880 2014-04-01  Martin Husemann  <martin@duskware.de>
24881
24882         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24883         for -mabi=32.
24884
24885 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
24886
24887         PR rtl-optimization/60604
24888         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24889         check from register_operand.
24890         (register_operand): Redefine in terms of general_operand.
24891         (nonmemory_operand): Use register_operand for the non-constant cases.
24892
24893 2014-04-01  Richard Biener  <rguenther@suse.de>
24894
24895         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24896
24897 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24898
24899         * doc/invoke.texi (mapp-regs): Clarify.
24900
24901 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
24902
24903         * config/i386/avx512fintrin.h (__v32hi): Define type.
24904         (__v64qi): Likewise.
24905         (_mm512_set1_epi8): Define.
24906         (_mm512_set1_epi16): Define.
24907         (_mm512_set4_epi32): Define.
24908         (_mm512_set4_epi64): Define.
24909         (_mm512_set4_pd): Define.
24910         (_mm512_set4_ps): Define.
24911         (_mm512_setr4_epi64): Define.
24912         (_mm512_setr4_epi32): Define.
24913         (_mm512_setr4_pd): Define.
24914         (_mm512_setr4_ps): Define.
24915         (_mm512_setzero_epi32): Define.
24916
24917 2014-03-31  Martin Jambor  <mjambor@suse.cz>
24918
24919         PR middle-end/60647
24920         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24921         callsite_arguments_match_p.  Updated all callers.  Also check types of
24922         corresponding formal parameters and actual arguments.
24923         (not_all_callers_have_enough_arguments_p) Renamed to
24924         some_callers_have_mismatched_arguments_p.
24925
24926 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
24927
24928         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24929
24930 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
24931
24932         PR target/60034
24933         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24934         section anchor.
24935
24936 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
24937
24938         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24939         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24940         Split out
24941         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24942         Use FMAMODE_NOVF512 mode iterator.
24943         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24944         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24945         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24946         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24947         Split out
24948         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24949         Use VF_128_256 mode iterator.
24950         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24951         Ditto.
24952
24953 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
24954
24955         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24956         static chain if needed.
24957
24958 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
24959
24960         PR target/60697
24961         * lra-constraints.c (index_part_to_reg): New.
24962         (process_address): Use it.
24963
24964 2014-03-27  Jeff Law  <law@redhat.com>
24965             Jakub Jelinek  <jakub@redhat.com>
24966
24967         PR target/60648
24968         * expr.c (do_tablejump): Use simplify_gen_binary rather than
24969         gen_rtx_{PLUS,MULT} to build up the address expression.
24970
24971         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24972         creating non-canonical RTL.
24973
24974 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
24975
24976         PR ipa/60243
24977         * ipa-inline.c (want_inline_small_function_p): Short circuit large
24978         functions; reorganize to make cheap checks first.
24979         (inline_small_functions): Do not estimate growth when dumping;
24980         it is expensive.
24981         * ipa-inline.h (inline_summary): Add min_size.
24982         (growth_likely_positive): New function.
24983         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24984         (set_cond_stmt_execution_predicate): Cleanup.
24985         (estimate_edge_size_and_time): Compute min_size.
24986         (estimate_calls_size_and_time): Likewise.
24987         (estimate_node_size_and_time): Likewise.
24988         (inline_update_overall_summary): Update min_size.
24989         (do_estimate_edge_time): Likewise.
24990         (do_estimate_edge_size): Update.
24991         (do_estimate_edge_hints): Update.
24992         (growth_likely_positive): New function.
24993
24994 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
24995
24996         PR target/60693
24997         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24998         also if addr has VOIDmode.
24999
25000 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25001
25002         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25003         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25004         Declare extern.
25005         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25006         instructions as well as AdvancedSIMD loads.
25007
25008 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25009
25010         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25011         Use crypto_aese type.
25012         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25013         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25014         crypto_aese, crypto_aesmc.  Move to types.md.
25015         * config/arm/types.md (crypto_aes): Split into crypto_aese,
25016         crypto_aesmc.
25017         * config/arm/iterators.md (crypto_type): Likewise.
25018
25019 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25020
25021         * cgraph.c: Include expr.h and tree-dfa.h.
25022         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25023         remove LHS.
25024
25025 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25026
25027         PR target/60675
25028         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25029         regs from checking multi-reg pseudos.
25030
25031 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25032
25033         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25034
25035 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25036
25037         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25038         if it would clobber the stack pointer, even temporarily.
25039
25040 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25041
25042         * mode-switching.c: Make small adjustments to the top comment.
25043
25044 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
25045
25046         * config/rs6000/constraints.md (wD constraint): New constraint to
25047         match the constant integer to get the top DImode/DFmode out of a
25048         vector in a VSX register.
25049
25050         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25051         match the constant integer to get the top DImode/DFmode out of a
25052         vector in a VSX register.
25053
25054         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25055         for ISA 2.07.
25056
25057         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25058         vbpermq builtins.
25059
25060         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25061         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25062
25063         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25064         Optimize vec_extract of 64-bit values, where the value being
25065         extracted is in the top word, where we can use scalar
25066         instructions.  Add direct move and store support.  Combine the big
25067         endian/little endian vector select load support into a single insn.
25068         (vsx_extract_<mode>_internal1): Likewise.
25069         (vsx_extract_<mode>_internal2): Likewise.
25070         (vsx_extract_<mode>_load): Likewise.
25071         (vsx_extract_<mode>_store): Likewise.
25072         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25073         combined into vsx_extract_<mode>_load.
25074         (vsx_extract_<mode>_one_le): Likewise.
25075
25076         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25077         define the top 64-bit vector element.
25078
25079         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25080         constraint.
25081
25082         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25083         Document vec_vbpermq builtin.
25084
25085         PR target/60672
25086         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25087         enable use of xxsldwi and xxpermdi builtin functions.
25088         (vec_xxpermdi): Likewise.
25089
25090         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25091         Document use of vec_xxsldwi and vec_xxpermdi builtins.
25092
25093 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25094
25095         PR rtl-optimization/60650
25096         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25097         first_p.  Use it.
25098         (find_spills_for): New.
25099         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25100         Spill all pseudos on the second iteration.
25101
25102 2014-03-27  Marek Polacek  <polacek@redhat.com>
25103
25104         PR c/50347
25105         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25106         types.
25107
25108 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25109
25110         * config/s390/s390.c (s390_can_use_return_insn): Check for
25111         call-saved FPRs on 31 bit.
25112
25113 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
25114
25115         PR middle-end/60682
25116         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25117         if they need regimplification, just drop them instead of
25118         calling gimple_regimplify_operands on them.
25119
25120 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25121
25122         PR target/60580
25123         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25124         (aarch64_frame_pointer_required): Adjust logic.
25125         (aarch64_can_eliminate): Adjust logic.
25126         (aarch64_override_options_after_change): Adjust logic.
25127
25128 2014-03-27  Dehao Chen  <dehao@google.com>
25129
25130         * ipa-inline.c (early_inliner): Update node's inline info.
25131
25132 2014-03-26  Dehao Chen  <dehao@google.com>
25133
25134         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25135         compiler inserted conditional jumps for NAN float check.
25136
25137 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
25138
25139         * ubsan.h (ubsan_create_data): Change second argument's type
25140         to const location_t *.
25141         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25142         _("<unknown>").
25143         (ubsan_create_data): Change second argument to const location_t *PLOC.
25144         Create Loc field whenever PLOC is non-NULL.
25145         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25146         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25147         callers.
25148
25149         PR other/59545
25150         * real.c (real_to_integer2): Change type of low to UHWI.
25151
25152 2014-03-26  Tobias Burnus  <burnus@net-b.de>
25153
25154         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25155         (CILK_SELF_SPECS): New define.
25156         (driver_self_specs): Use it.
25157
25158 2014-03-26  Richard Biener  <rguenther@suse.de>
25159
25160         * tree-pretty-print.c (percent_K_format): Implement special
25161         case for LTO and its stripped down BLOCK tree.
25162
25163 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
25164
25165         PR sanitizer/60636
25166         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25167
25168         * tree-vrp.c (simplify_internal_call_using_ranges): If only
25169         one range is range_int_cst_p, but not both, at least optimize
25170         addition/subtraction of 0 and multiplication by 0 or 1.
25171         * gimple-fold.c (gimple_fold_call): Fold
25172         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25173         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25174         INTEGER_CSTs, try to fold at least x * 0 and y - y.
25175
25176 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25177
25178         PR rtl-optimization/60452
25179         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25180         <case REG>: Return 1 for invalid offsets from the frame pointer.
25181
25182 2014-03-26  Marek Polacek  <polacek@redhat.com>
25183
25184         PR c/37428
25185         * doc/extend.texi (C Extensions): Mention variable-length arrays in
25186         a structure/union.
25187
25188 2014-03-26  Marek Polacek  <polacek@redhat.com>
25189
25190         PR c/39525
25191         * doc/extend.texi (Designated Inits): Describe what happens to omitted
25192         field members.
25193
25194 2014-03-26  Marek Polacek  <polacek@redhat.com>
25195
25196         PR other/59545
25197         * ira-color.c (update_conflict_hard_regno_costs): Perform the
25198         multiplication in unsigned type.
25199
25200 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
25201
25202         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25203
25204 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
25205
25206         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25207
25208 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
25209
25210         PR ipa/60315
25211         * cif-code.def (UNREACHABLE) New code.
25212         * ipa-inline.c (inline_small_functions): Skip edges to
25213         __builtlin_unreachable.
25214         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25215         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25216         predicate to __bulitin_unreachable.
25217         (set_cond_stmt_execution_predicate): Fix issue when
25218         invert_tree_comparison returns ERROR_MARK.
25219         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25220         propagate to inline clones.
25221         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25222         to unreachable.
25223         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25224         * cgraphclones.c (cgraph_clone_node): If call destination is already
25225         ureachable, do not redirect it back.
25226         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25227         unreachable.
25228
25229 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
25230
25231         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25232         Do not modify inline clones.
25233
25234 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
25235
25236         * config/i386/i386.md (general_sext_operand): New mode attr.
25237         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25238         don't generate (sign_extend (const_int)).
25239         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25240         operands[2].  Use We constraint instead of <i> and
25241         <general_sext_operand> predicate instead of <general_operand>.
25242         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25243         * config/i386/constraints.md (We): New constraint.
25244         * config/i386/predicates.md (x86_64_sext_operand,
25245         sext_operand): New predicates.
25246
25247 2014-03-25  Martin Jambor  <mjambor@suse.cz>
25248
25249         PR ipa/60600
25250         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25251         inconsistent devirtualizations to __builtin_unreachable.
25252
25253 2014-03-25  Marek Polacek  <polacek@redhat.com>
25254
25255         PR c/35449
25256         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25257
25258 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
25259
25260         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25261         order of elements for big-endian.
25262
25263 2014-03-25  Richard Biener  <rguenther@suse.de>
25264
25265         PR middle-end/60635
25266         * gimplify-me.c (gimple_regimplify_operands): Update the
25267         re-gimplifed stmt.
25268
25269 2014-03-25  Martin Jambor  <mjambor@suse.cz>
25270
25271         PR ipa/59176
25272         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25273         (lto_output_varpool_node): Likewise.
25274         (input_overwrite_node): Likewise.
25275         (input_varpool_node): Likewise.
25276
25277 2014-03-25  Richard Biener  <rguenther@suse.de>
25278
25279         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25280         (run_gcc): Likewise.
25281
25282 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
25283
25284         * combine.c (simplify_compare_const): Add MODE argument.
25285         Handle mode_width 0 as very large mode_width.
25286         (try_combine, simplify_comparison): Adjust callers.
25287
25288         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25289         type to avoid signed integer overflow.
25290         * explow.c (plus_constant): Likewise.
25291
25292 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25293
25294         * doc/generic.texi: Correct typos.
25295
25296 2014-03-24  Tobias Burnus  <burnus@net-b.de>
25297
25298         * doc/invoke.texi (-flto): Expand section about
25299         using static libraries with LTO.
25300
25301 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25302
25303         PR rtl-optimization/60501
25304         * optabs.def (addptr3_optab): New optab.
25305         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25306         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25307         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25308
25309         * lra.c (emit_add3_insn): Use the addptr pattern if available.
25310
25311         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25312
25313 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
25314
25315         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25316         _mm512_set1_pd.
25317
25318         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25319         (_mm256_undefined_ps): Define.
25320         (_mm256_undefined_pd): Define.
25321         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25322         (_mm_undefined_pd): Define.
25323         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25324         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25325         (_mm512_undefined_ps): Define.
25326         (_mm512_undefined_pd): Define.
25327         Use _mm*_undefined_*.
25328         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25329
25330 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
25331
25332         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25333         (lshr_simd): DI mode added.
25334         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25335         (aarch64_ushr_simddi): Likewise.
25336         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25337         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25338         (vshrd_n_u64): Likewise.
25339
25340 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25341
25342         * Makefile.in (s-macro_list): Depend on cc1.
25343
25344 2014-03-23  Teresa Johnson  <tejohnson@google.com>
25345
25346         * ipa-utils.c (ipa_print_order): Use specified dump file.
25347
25348 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
25349
25350         PR rtl-optimization/60601
25351         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25352
25353         * gcc.c (eval_spec_function): Initialize save_growing_value.
25354
25355 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
25356
25357         PR sanitizer/60613
25358         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25359         code == MINUS_EXPR, never swap op0 with op1.
25360
25361         * toplev.c (init_local_tick): Avoid signed integer multiplication
25362         overflow.
25363         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25364         shift by first operand's bitsize.
25365
25366 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
25367
25368         PR target/60610
25369         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25370         redefine to 1 or 0.
25371         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25372         TARGET_ISA_64BIT_P(x).
25373
25374 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25375
25376         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25377         pattern for vector nor instead of subtract from splat(-1).
25378         (altivec_expand_vec_perm_const_le): Likewise.
25379
25380 2014-03-21  Richard Henderson  <rth@twiddle.net>
25381
25382         PR target/60598
25383         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25384         related insns after epilogue_completed.
25385
25386 2014-03-21  Martin Jambor  <mjambor@suse.cz>
25387
25388         PR ipa/59176
25389         * cgraph.h (symtab_node): New flag body_removed.
25390         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25391         when removing bodies.
25392         * symtab.c (dump_symtab_base): Dump body_removed flag.
25393         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25394         had their bodies removed.
25395
25396 2014-03-21  Martin Jambor  <mjambor@suse.cz>
25397
25398         PR ipa/60419
25399         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25400         in the border.
25401
25402 2014-03-21  Richard Biener  <rguenther@suse.de>
25403
25404         PR tree-optimization/60577
25405         * tree-core.h (struct tree_base): Document nothrow_flag use
25406         in DECL_NONALIASED.
25407         * tree.h (DECL_NONALIASED): New.
25408         (may_be_aliased): Adjust.
25409         * coverage.c (build_var): Set DECL_NONALIASED.
25410
25411 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25412
25413         * expr.c (expand_expr_real_1): Remove outdated comment.
25414
25415 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
25416
25417         PR middle-end/60597
25418         * ira.c (adjust_cleared_regs): Call copy_rtx on
25419         *reg_equiv[REGNO (loc)].src_p before passing it to
25420         simplify_replace_fn_rtx.
25421
25422         PR target/60568
25423         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25424         into CONST, put pic register as first operand of PLUS.  Use
25425         gen_const_mem for both 32-bit and 64-bit PIC got loads.
25426
25427 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25428
25429         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25430
25431 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25432
25433         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25434         around for store forwarding issue in the FPU on the UT699.
25435         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25436         loads and operations if -mfix-ut699 is specified.
25437         (divtf3_hq): Tweak attribute.
25438         (sqrttf2_hq): Likewise.
25439
25440 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25441
25442         * calls.c (store_one_arg): Remove incorrect const qualification on the
25443         type of the temporary.
25444         * cfgexpand.c (expand_return): Likewise.
25445         * expr.c (expand_constructor): Likewise.
25446         (expand_expr_real_1): Likewise.
25447
25448 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25449
25450         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25451         of parts.
25452
25453 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25454
25455         PR target/60039
25456         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25457
25458 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
25459
25460         * config/arm/aarch-common-protos.h
25461         (alu_cost_table): Fix spelling of "extend".
25462         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25463
25464 2014-03-19  Richard Biener  <rguenther@suse.de>
25465
25466         PR middle-end/60553
25467         * tree-core.h (tree_type_common): Re-order pointer members
25468         to reduce recursion depth during GC walks.
25469
25470 2014-03-19  Marek Polacek  <polacek@redhat.com>
25471
25472         PR sanitizer/60569
25473         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25474         before accessing it.
25475
25476 2014-03-19  Richard Biener  <rguenther@suse.de>
25477
25478         PR lto/59543
25479         * lto-streamer-in.c (input_function): In WPA stage do not drop
25480         debug stmts.
25481
25482 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
25483
25484         PR tree-optimization/60559
25485         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25486         with build_zero_cst assignment.
25487
25488 2014-03-18  Kai Tietz  <ktietz@redhat.com>
25489
25490         PR rtl-optimization/56356
25491         * sdbout.c (sdbout_parms): Verify that parms'
25492         incoming argument is valid.
25493         (sdbout_reg_parms): Likewise.
25494
25495 2014-03-18  Richard Henderson  <rth@redhat.com>
25496
25497         PR target/60562
25498         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25499         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
25500         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25501
25502 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
25503
25504         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25505         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25506         Italicize plugin event names in description.  Explain that
25507         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
25508         Remind that no GCC functions should be called after PLUGIN_FINISH.
25509         Explain what pragmas with expansion are.
25510
25511 2014-03-18  Martin Liska  <mliska@suse.cz>
25512
25513         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25514         gimple call statement is update.
25515         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25516         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25517
25518 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
25519
25520         PR sanitizer/60557
25521         * ubsan.c (ubsan_instrument_unreachable): Call
25522         initialize_sanitizer_builtins.
25523         (ubsan_pass): Likewise.
25524
25525         PR sanitizer/60535
25526         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25527         varpool_finalize_decl instead of rest_of_decl_compilation.
25528
25529 2014-03-18  Richard Biener  <rguenther@suse.de>
25530
25531         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25532         by using bitmap_and_compl instead of bitmap_and_compl_into.
25533         (df_rd_transfer_function): Likewise.
25534
25535 2014-03-18  Richard Biener  <rguenther@suse.de>
25536
25537         * doc/lto.texi (fresolution): Fix typo.
25538
25539 2014-03-18  Richard Biener  <rguenther@suse.de>
25540
25541         * doc/invoke.texi (flto): Update for changes in 4.9.
25542
25543 2014-03-18  Richard Biener  <rguenther@suse.de>
25544
25545         * doc/loop.texi: Remove section on the removed lambda framework.
25546         Update loop docs with recent changes in preserving loop structure.
25547
25548 2014-03-18  Richard Biener  <rguenther@suse.de>
25549
25550         * doc/lto.texi (-fresolution): Document.
25551
25552 2014-03-18  Richard Biener  <rguenther@suse.de>
25553
25554         * doc/contrib.texi: Adjust my name.
25555
25556 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
25557
25558         PR ipa/58721
25559         * internal-fn.c: Include diagnostic-core.h.
25560         (expand_BUILTIN_EXPECT): New function.
25561         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25562         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25563         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25564         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25565         IFN_BUILTIN_EXPECT.
25566         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25567         Revert 3 argument __builtin_expect code.
25568         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25569         * gimple-fold.c (gimple_fold_call): Likewise.
25570         * tree.h (fold_builtin_expect): New prototype.
25571         * builtins.c (build_builtin_expect_predicate): Add predictor
25572         argument, if non-NULL, create 3 argument __builtin_expect.
25573         (fold_builtin_expect): No longer static.  Add ARG2 argument,
25574         pass it through to build_builtin_expect_predicate.
25575         (fold_builtin_2): Adjust caller.
25576         (fold_builtin_3): Handle BUILT_IN_EXPECT.
25577         * internal-fn.def (BUILTIN_EXPECT): New.
25578
25579 2014-03-18  Tobias Burnus  <burnus@net-b.de>
25580
25581         PR ipa/58721
25582         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25583         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25584         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25585
25586 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
25587
25588         PR ipa/58721
25589         * predict.c (combine_predictions_for_bb): Fix up formatting.
25590         (expr_expected_value_1, expr_expected_value): Add predictor argument,
25591         fill what it points to if non-NULL.
25592         (tree_predict_by_opcode): Adjust caller, use the predictor.
25593         * predict.def (PRED_COMPARE_AND_SWAP): Add.
25594
25595 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
25596
25597         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25598         proper constant for the store mode.
25599
25600 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
25601
25602         * symtab.c (change_decl_assembler_name): Fix transparent alias
25603         chain construction.
25604
25605 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
25606
25607         * config/aarch64/aarch64.c: Correct the comments about the
25608         aarch64 stack layout.
25609
25610 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
25611
25612         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25613         check for GF_OMP_FOR_KIND_FOR.
25614
25615 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
25616
25617         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25618         ymm and zmm register names.
25619
25620 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
25621
25622         PR target/60516
25623         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25624         note creation for the 2010-08-31 changes.
25625
25626 2014-03-17  Marek Polacek  <polacek@redhat.com>
25627
25628         PR middle-end/60534
25629         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25630         as -fno-tree-loop-vectorize.
25631         (expand_omp_simd): Likewise.
25632
25633 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25634
25635         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25636         (eligible_for_call_delay): New prototype.
25637         * config/sparc/sparc.c (tls_call_delay): Rename into...
25638         (eligible_for_call_delay): ...this.  Return false if the instruction
25639         cannot be put in the delay slot of a branch.
25640         (eligible_for_restore_insn): Simplify.
25641         (eligible_for_return_delay): Return false if the instruction cannot be
25642         put in the delay slot of a branch and simplify.
25643         (eligible_for_sibcall_delay): Return false if the instruction cannot be
25644         put in the delay slot of a branch.
25645         * config/sparc/sparc.md (fix_ut699): New attribute.
25646         (tls_call_delay): Delete.
25647         (in_call_delay): Reimplement.
25648         (eligible_for_sibcall_delay): Rename into...
25649         (in_sibcall_delay): ...this.
25650         (eligible_for_return_delay): Rename into...
25651         (in_return_delay): ...this.
25652         (in_branch_delay): Reimplement.
25653         (in_uncond_branch_delay): Delete.
25654         (in_annul_branch_delay): Delete.
25655
25656 2014-03-14  Richard Henderson  <rth@redhat.com>
25657
25658         PR target/60525
25659         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25660         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25661         (*floathi<X87MODEF>2_i387_with_temp): Remove.
25662         (floathi splitters): Remove.
25663         (float<SWI48x>xf2): New pattern.
25664         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
25665         code that tried to handle DImode for 32-bit, but which was excluded
25666         by the pattern's condition.  Drop allocation of stack temporary.
25667         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25668         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25669         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25670         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25671         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25672         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25673         (*float<SWI48><MODEF>2_sse_interunit): Remove.
25674         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25675         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25676         (*float<SWI48x><X87MODEF>2_i387): Remove.
25677         (all float _with_temp splitters): Remove.
25678         (*float<SWI48x><MODEF>2_i387): New pattern.
25679         (*float<SWI48><MODEF>2_sse): New pattern.
25680         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25681         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25682
25683 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
25684             Marek Polacek  <polacek@redhat.com>
25685
25686         PR middle-end/60484
25687         * common.opt (dump_base_name_prefixed): New Variable.
25688         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25689         if x_dump_base_name_prefixed is already set, set it at the end.
25690
25691 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
25692
25693         PR rtl-optimization/60508
25694         * lra-constraints.c (get_reload_reg): Add new parameter
25695         in_subreg_p.
25696         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25697         Pass the new parameter values.
25698
25699 2014-03-14  Richard Biener  <rguenther@suse.de>
25700
25701         * common.opt: Revert unintented changes from r205065.
25702         * opts.c: Likewise.
25703
25704 2014-03-14  Richard Biener  <rguenther@suse.de>
25705
25706         PR middle-end/60518
25707         * cfghooks.c (split_block): Properly adjust all loops the
25708         block was a latch of.
25709
25710 2014-03-14  Martin Jambor  <mjambor@suse.cz>
25711
25712         PR lto/60461
25713         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25714         and simplify it.
25715
25716 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
25717
25718         PR target/59396
25719         * config/avr/avr.c (avr_set_current_function): Pass function name
25720         through default_strip_name_encoding before sanity checking instead
25721         of skipping the first char of the assembler name.
25722
25723 2014-03-13  Richard Henderson  <rth@redhat.com>
25724
25725         PR debug/60438
25726         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25727         (ix86_force_to_memory, ix86_free_from_memory): Remove.
25728         * config/i386/i386-protos.h: Likewise.
25729         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25730         in the expander instead of a splitter.
25731         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25732         any possibility of requiring a memory.
25733         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25734         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25735         (fp branch splitters): Update for ix86_split_fp_branch.
25736         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25737         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25738         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25739         (*fop_<MODEF>_2_i387): Remove f/r alternative.
25740         (*fop_<MODEF>_3_i387): Likewise.
25741         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25742         (splitters for the fop_* register patterns): Remove.
25743         (fscalexf4_i387): Rename from *fscalexf4_i387.
25744         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25745
25746 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
25747
25748         PR tree-optimization/59779
25749         * tree-dfa.c (get_ref_base_and_extent): Use double_int
25750         type for bitsize and maxsize instead of HOST_WIDE_INT.
25751
25752 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
25753
25754         PR rtl-optimization/57320
25755         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25756         the CFG after thread_prologue_and_epilogue_insns.
25757
25758 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
25759
25760         PR rtl-optimization/57189
25761         * lra-constraints.c (process_alt_operands): Disfavor spilling
25762         vector pseudos.
25763
25764 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
25765
25766         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25767
25768 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
25769
25770         PR tree-optimization/59025
25771         PR middle-end/60418
25772         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25773         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25774
25775 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
25776
25777         PR target/60486
25778         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25779         calls of avr_out_plus_1.
25780
25781 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
25782
25783         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25784         BB's single pred and update the father loop's latch info later.
25785
25786 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
25787
25788         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25789         (VEC_M): Likewise.
25790         (VEC_N): Likewise.
25791         (VEC_R): Likewise.
25792         (VEC_base): Likewise.
25793         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25794         registers, we need to swap double words in little endian mode.
25795
25796         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25797         to be a container mode for 128-bit integer operations added in ISA
25798         2.07.  Unlike TImode and PTImode, the preferred register set is
25799         the Altivec/VMX registers for the 128-bit operations.
25800
25801         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25802         declarations.
25803         (rs6000_split_128bit_ok_p): Likewise.
25804
25805         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25806         macros for creating ISA 2.07 normal and overloaded builtin
25807         functions with 3 arguments.
25808         (BU_P8V_OVERLOAD_3): Likewise.
25809         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25810         for use as overloaded functions.
25811         (VPERM_1TI_UNS): Likewise.
25812         (VSEL_1TI): Likewise.
25813         (VSEL_1TI_UNS): Likewise.
25814         (ST_INTERNAL_1ti): Likewise.
25815         (LD_INTERNAL_1ti): Likewise.
25816         (XXSEL_1TI): Likewise.
25817         (XXSEL_1TI_UNS): Likewise.
25818         (VPERM_1TI): Likewise.
25819         (VPERM_1TI_UNS): Likewise.
25820         (XXPERMDI_1TI): Likewise.
25821         (SET_1TI): Likewise.
25822         (LXVD2X_V1TI): Likewise.
25823         (STXVD2X_V1TI): Likewise.
25824         (VEC_INIT_V1TI): Likewise.
25825         (VEC_SET_V1TI): Likewise.
25826         (VEC_EXT_V1TI): Likewise.
25827         (EQV_V1TI): Likewise.
25828         (NAND_V1TI): Likewise.
25829         (ORC_V1TI): Likewise.
25830         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25831         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
25832         overloaded builtin.
25833         (VADDUQM): Likewise.
25834         (VSUBCUQ): Likewise.
25835         (VADDEUQM): Likewise.
25836         (VADDECUQ): Likewise.
25837         (VSUBEUQM): Likewise.
25838         (VSUBECUQ): Likewise.
25839
25840         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25841         __int128_t and __uint128_t types.
25842         (__uint128_type): Likewise.
25843         (altivec_categorize_keyword): Add support for vector __int128_t,
25844         vector __uint128_t, vector __int128, and vector unsigned __int128
25845         as a container type for TImode operations that need to be done in
25846         VSX/Altivec registers.
25847         (rs6000_macro_to_expand): Likewise.
25848         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25849         to support 128-bit integer instructions vaddcuq, vadduqm,
25850         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25851         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25852
25853         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25854         for V1TImode, and set up preferences to use VSX/Altivec registers.
25855         Setup VSX reload handlers.
25856         (rs6000_debug_reg_global): Likewise.
25857         (rs6000_init_hard_regno_mode_ok): Likewise.
25858         (rs6000_preferred_simd_mode): Likewise.
25859         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25860         (easy_altivec_constant): Likewise.
25861         (output_vec_const_move): Likewise.
25862         (rs6000_expand_vector_set): Convert V1TImode set and extract to
25863         simple move.
25864         (rs6000_expand_vector_extract): Likewise.
25865         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25866         addressing.
25867         (rs6000_const_vec): Add support for V1TImode.
25868         (rs6000_emit_le_vsx_load): Swap double words when loading or
25869         storing TImode/V1TImode.
25870         (rs6000_emit_le_vsx_store): Likewise.
25871         (rs6000_emit_le_vsx_move): Likewise.
25872         (rs6000_emit_move): Add support for V1TImode.
25873         (altivec_expand_ld_builtin): Likewise.
25874         (altivec_expand_st_builtin): Likewise.
25875         (altivec_expand_vec_init_builtin): Likewise.
25876         (altivec_expand_builtin): Likewise.
25877         (rs6000_init_builtins): Add support for V1TImode type.  Add
25878         support for ISA 2.07 128-bit integer builtins.  Define type names
25879         for the VSX/Altivec vector types.
25880         (altivec_init_builtins): Add support for overloaded vector
25881         functions with V1TImode type.
25882         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25883         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25884         external function.
25885         (rs6000_split_128bit_ok_p): Likewise.
25886         (rs6000_handle_altivec_attribute): Create V1TImode from vector
25887         __int128_t and vector __uint128_t.
25888
25889         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25890         and mode attributes.
25891         (VSX_M): Likewise.
25892         (VSX_M2): Likewise.
25893         (VSm): Likewise.
25894         (VSs): Likewise.
25895         (VSr): Likewise.
25896         (VSv): Likewise.
25897         (VS_scalar): Likewise.
25898         (VS_double): Likewise.
25899         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25900
25901         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25902         we support the ISA 2.07 128-bit integer arithmetic instructions.
25903         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25904         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25905         and TImode types for use with the builtin functions.
25906         (V1TI_type_node): Likewise.
25907         (unsigned_V1TI_type_node): Likewise.
25908         (intTI_type_internal_node): Likewise.
25909         (uintTI_type_internal_node): Likewise.
25910
25911         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25912         128-bit builtin functions.
25913         (UNSPEC_VADDEUQM): Likewise.
25914         (UNSPEC_VADDECUQ): Likewise.
25915         (UNSPEC_VSUBCUQ): Likewise.
25916         (UNSPEC_VSUBEUQM): Likewise.
25917         (UNSPEC_VSUBECUQ): Likewise.
25918         (VM): Add V1TImode to vector mode iterators.
25919         (VM2): Likewise.
25920         (VI_unit): Likewise.
25921         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25922         (altivec_vaddcuq): Likewise.
25923         (altivec_vsubuqm): Likewise.
25924         (altivec_vsubcuq): Likewise.
25925         (altivec_vaddeuqm): Likewise.
25926         (altivec_vaddecuq): Likewise.
25927         (altivec_vsubeuqm): Likewise.
25928         (altivec_vsubecuq): Likewise.
25929
25930         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25931         mode iterators.
25932         (BOOL_128): Likewise.
25933         (BOOL_REGS_OUTPUT): Likewise.
25934         (BOOL_REGS_OP1): Likewise.
25935         (BOOL_REGS_OP2): Likewise.
25936         (BOOL_REGS_UNARY): Likewise.
25937         (BOOL_REGS_AND_CR0): Likewise.
25938
25939         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25940         128-bit integer builtin support.
25941         (vec_vadduqm): Likewise.
25942         (vec_vaddecuq): Likewise.
25943         (vec_vaddeuqm): Likewise.
25944         (vec_vsubecuq): Likewise.
25945         (vec_vsubeuqm): Likewise.
25946         (vec_vsubcuq): Likewise.
25947         (vec_vsubuqm): Likewise.
25948
25949         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25950         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25951         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25952         128-bit integer add/subtract to ISA 2.07.
25953
25954 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
25955
25956         * config/arc/arc.c (arc_predicate_delay_insns):
25957         Fix third argument passed to conditionalize_nonjump.
25958
25959 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
25960
25961         * config/aarch64/aarch64-builtins.c
25962         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25963         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25964         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25965         instead of __builtin_lfloor.
25966         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25967
25968 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
25969
25970         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25971         (tree_ssa_ifcombine_bb_1): New function.
25972         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
25973         is an empty forwarder block to then_bb or vice versa and then_bb
25974         and else_bb are effectively swapped.
25975
25976 2014-03-12  Christian Bruel  <christian.bruel@st.com>
25977
25978         PR target/60264
25979         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25980         REG_CFA_DEF_CFA note.
25981         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25982         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25983
25984 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25985
25986         PR tree-optimization/60454
25987         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25988
25989 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25990
25991         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25992         Do not define target_cpu_default2 to generic.
25993         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25994         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25995         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25996
25997 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
25998             Marc Glisse  <marc.glisse@inria.fr>
25999
26000         PR tree-optimization/60502
26001         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26002         instead of build_low_bits_mask.
26003
26004 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26005
26006         PR middle-end/60482
26007         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26008         if there are multiple uses, but op doesn't live on E edge.
26009         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26010         clobber stmts before __builtin_unreachable.
26011
26012 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
26013
26014         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26015         hard_frame_pointer_rtx.
26016         * cse.c (cse_insn): Remove volatile check.
26017         * cselib.c (cselib_process_insn): Likewise.
26018         * dse.c (scan_insn): Likewise.
26019
26020 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26021
26022         * config/arc/arc.c (conditionalize_nonjump): New function,
26023         broken out of ...
26024         (arc_ifcvt): ... this.
26025         (arc_predicate_delay_insns): Use it.
26026
26027 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26028
26029         * config/arc/predicates.md (extend_operand): During/after reload,
26030         allow const_int_operand.
26031         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26032         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
26033         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26034         to "i".
26035         (umulsi3_highpart_i): Likewise.
26036
26037 2014-03-11  Richard Biener  <rguenther@suse.de>
26038
26039         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26040         Add asserts to guard possible wrong-code bugs.
26041
26042 2014-03-11  Richard Biener  <rguenther@suse.de>
26043
26044         PR tree-optimization/60429
26045         PR tree-optimization/60485
26046         * tree-ssa-structalias.c (set_union_with_increment): Properly
26047         take into account all fields that overlap the shifted vars.
26048         (do_sd_constraint): Likewise.
26049         (do_ds_constraint): Likewise.
26050         (get_constraint_for_ptr_offset): Likewise.
26051
26052 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
26053
26054         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26055         (nios2_compute_frame_layout):
26056         Add calculation of cfun->machine->fp_save_offset.
26057         (nios2_expand_prologue): Correct setting of frame pointer register
26058         in prologue.
26059         (nios2_expand_epilogue): Update recovery of stack pointer from
26060         frame pointer accordingly.
26061         (nios2_initial_elimination_offset): Update calculation of offset
26062         for eliminating to HARD_FRAME_POINTER_REGNUM.
26063
26064 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
26065
26066         PR ipa/60457
26067         * ipa.c (symtab_remove_unreachable_nodes): Don't call
26068         cgraph_get_create_node on VAR_DECLs.
26069
26070 2014-03-10  Richard Biener  <rguenther@suse.de>
26071
26072         PR middle-end/60474
26073         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26074
26075 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
26076
26077         * config/vms/vms.opt (vms_float_format): New variable.
26078
26079 2014-03-08  Tobias Burnus  <burnus@net-b.de>
26080
26081         * doc/invoke.texi (-fcilkplus): Update implementation status.
26082
26083 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
26084             Richard Biener  <rguenther@suse.de>
26085
26086         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26087         consistently accross all TUs.
26088         (run_gcc): Enable -fshort-double automatically at link at link-time
26089         and disallow override.
26090
26091 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
26092
26093         PR target/58271
26094         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26095         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26096         if they can't be used.
26097
26098 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26099
26100         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26101         for Solaris 11/x86 ld.
26102         * configure: Regenerate.
26103
26104 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26105
26106         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26107         (LIB_TLS_SPEC): Save as ld_tls_libs.
26108         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26109         (HAVE_AS_IX86_TLSLDM): New test.
26110         * configure, config.in: Regenerate.
26111         * config/i386/i386.c (legitimize_tls_address): Fall back to
26112         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26113         cannot support TLS_MODEL_LOCAL_DYNAMIC.
26114         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26115         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26116
26117 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
26118
26119         * common.opt (fira-loop-pressure): Mark as optimization.
26120
26121 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
26122
26123         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26124         an OpenMP mappable type.
26125
26126 2014-03-06  Matthias Klose  <doko@ubuntu.com>
26127
26128         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26129         MULTILIB_OSDIRNAMES is not defined.
26130
26131 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
26132             Meador Inge  <meadori@codesourcery.com>
26133
26134         PR target/58595
26135         * config/arm/arm.c (arm_tls_symbol_p): Remove.
26136         (arm_legitimize_address): Call legitimize_tls_address for any
26137         arm_tls_referenced_p expression, handle constant addend.  Call it
26138         before testing for !TARGET_ARM.
26139         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26140
26141 2014-03-06  Richard Biener  <rguenther@suse.de>
26142
26143         PR middle-end/60445
26144         PR lto/60424
26145         PR lto/60427
26146         Revert
26147         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
26148
26149         * tree-streamer.c (record_common_node): Assert we don't record
26150         nodes with type double.
26151         (preload_common_node): Skip type double, complex double and double
26152         pointer since it is now frontend dependent due to fshort-double option.
26153
26154 2014-03-06  Richard Biener  <rguenther@suse.de>
26155
26156         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26157         or -fno-lto is specified and the linker has full plugin support.
26158         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26159         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26160         * lto-wrapper.c (merge_and_complain): Merge compile-time
26161         optimization levels.
26162         (run_gcc): And pass it through to the link options.
26163
26164 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
26165
26166         PR debug/60381
26167         Revert:
26168         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26169         PR debug/59992
26170         * cselib.c (remove_useless_values): Skip to avoid quadratic
26171         behavior if the condition moved from...
26172         (cselib_process_insn): ... here holds.
26173
26174 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
26175
26176         PR plugins/59335
26177         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26178         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26179
26180         PR plugins/59335
26181         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26182         (TM_H): Add x86-tune.def.
26183
26184 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26185
26186         * config/aarch64/aarch64.c (generic_tunings):
26187         Use cortexa57_extra_costs.
26188
26189 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
26190
26191         PR lto/60404
26192         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26193         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26194         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26195         cost for in_lto_p.
26196
26197 2014-03-04  Heiher  <r@hev.cc>
26198
26199         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26200         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26201
26202 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
26203
26204         * config/i386/predicates.md (const2356_operand): Change to ...
26205         (const2367_operand): ... this.
26206         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26207         const2367_operand.
26208         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26209         (*avx512pf_scatterpf<mode>sf): Ditto.
26210         (avx512pf_scatterpf<mode>df): Ditto.
26211         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26212         (*avx512pf_scatterpf<mode>df): Ditto.
26213         * config/i386/i386.c (ix86_expand_builtin): Update
26214         incorrect hint operand error message.
26215
26216 2014-03-04  Richard Biener  <rguenther@suse.de>
26217
26218         * lto-section-in.c (lto_get_section_data): Fix const cast.
26219
26220 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
26221
26222         * tree-streamer.c (record_common_node): Assert we don't record
26223         nodes with type double.
26224         (preload_common_node): Skip type double, complex double and double
26225         pointer since it is now frontend dependent due to fshort-double option.
26226
26227 2014-03-04  Richard Biener  <rguenther@suse.de>
26228
26229         PR lto/60405
26230         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26231         (lto_input_toplevel_asms): Likewise.
26232         * lto-section-in.c (lto_get_section_data): Instead do it here
26233         for every section.
26234
26235 2014-03-04  Richard Biener  <rguenther@suse.de>
26236
26237         PR tree-optimization/60382
26238         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26239         dead PHIs a reduction.
26240
26241 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
26242
26243         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26244         hint value.
26245         (_mm_prefetch): Move out of GCC target("sse") pragma.
26246         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26247         GCC target("prfchw") pragma.
26248         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26249         for locality <= 2.
26250         * config/i386/i386.c (ix86_option_override_internal): Enable
26251         -mprfchw with -mprefetchwt1.
26252
26253 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
26254
26255         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26256         Mark as varying.
26257
26258 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
26259
26260         * opts.h (CL_PCH_IGNORE): Define.
26261         * targhooks.c (option_affects_pch_p):
26262         Return false for options that have CL_PCH_IGNORE set.
26263         * opt-functions.awk: Process PchIgnore.
26264         * doc/options.texi: Document PchIgnore.
26265
26266         * config/arc/arc.opt (misize): Add PchIgnore property.
26267
26268 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26269
26270         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26271         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26272         constraint on constants to permit them being loaded into
26273         GENERAL_REGS or BASE_REGS.
26274
26275 2014-03-03  Nick Clifton  <nickc@redhat.com>
26276
26277         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26278         anti-cacnonical alternatives.
26279         (negandhi3_real): New pattern.
26280         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26281
26282 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26283
26284         * config/avr/avr-mcus.def: Remove atxmega16x1.
26285         * config/avr/avr-tables.opt: Regenerate.
26286         * config/avr/t-multilib: Regenerate.
26287         * doc/avr-mmcu.texi: Regenerate.
26288
26289 2014-03-03  Tobias Grosser  <tobias@grosser.es>
26290             Mircea Namolaru  <mircea.namolaru@inria.fr>
26291
26292         PR tree-optimization/58028
26293         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26294         scalar dimensions.
26295
26296 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26297
26298         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26299         not handled by recognizers.
26300
26301 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
26302
26303         PR middle-end/60175
26304         * function.c (expand_function_end): Don't emit
26305         clobber_return_register sequence if clobber_after is a BARRIER.
26306         * cfgexpand.c (construct_exit_block): Append instructions before
26307         return_label to prev_bb.
26308
26309 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26310
26311         * config/rs6000/constraints.md: Document reserved use of "wc".
26312
26313 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
26314
26315         PR ipa/60150
26316         * ipa.c (function_and_variable_visibility): When dissolving comdat
26317         group, also set all symbols to local.
26318
26319 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
26320
26321         PR ipa/60306
26322
26323         Revert:
26324         2013-12-14  Jan Hubicka  <jh@suse.cz>
26325         PR middle-end/58477
26326         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26327
26328 2014-03-02  Jon Beniston  <jon@beniston.com>
26329
26330         PR bootstrap/48230
26331         PR bootstrap/50927
26332         PR bootstrap/52466
26333         PR target/46898
26334         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26335           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26336         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26337         (simple_return, *simple_return): New patterns
26338         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26339         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26340
26341 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
26342
26343         * dwarf2out.c (gen_subprogram_die): Tidy.
26344
26345 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
26346
26347         PR target/60071
26348         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26349         (*mov_t_msb_neg_negc): ... this new insn.
26350
26351 2014-02-28  Jason Merrill  <jason@redhat.com>
26352
26353         PR c++/58678
26354         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26355         function.
26356
26357 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
26358
26359         PR c++/60314
26360         * dwarf2out.c (decltype_auto_die): New static.
26361         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26362         (gen_type_die_with_usage): Handle 'decltype(auto)'.
26363         (is_cxx_auto): Likewise.
26364
26365 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
26366
26367         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26368         we are not using general regs only.
26369
26370 2014-02-28  Richard Biener  <rguenther@suse.de>
26371
26372         PR target/60280
26373         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26374         previous fix and only allow to remove trivial pre-headers
26375         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26376         (remove_forwarder_block): Properly update the latch of a loop.
26377
26378 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26379
26380         PR debug/59992
26381         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26382         (cselib_preserved_hash_table): New.
26383         (preserve_constants_and_equivs): Move preserved vals to it.
26384         (cselib_find_slot): Look it up first.
26385         (cselib_init): Initialize it.
26386         (cselib_finish): Release it.
26387         (dump_cselib_table): Dump it.
26388
26389 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26390
26391         PR debug/59992
26392         * cselib.c (remove_useless_values): Skip to avoid quadratic
26393         behavior if the condition moved from...
26394         (cselib_process_insn): ... here holds.
26395
26396 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26397
26398         PR debug/57232
26399         * var-tracking.c (vt_initialize): Apply the same condition to
26400         preserve the CFA base value.
26401
26402 2014-02-28  Joey Ye  <joey.ye@arm.com>
26403
26404         PR target/PR60169
26405         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26406         if reload in progress or completed.
26407
26408 2014-02-28  Tobias Burnus  <burnus@net-b.de>
26409
26410         PR middle-end/60147
26411         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26412         NAMELIST_DECL.
26413
26414 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26415
26416         * doc/tm.texi.in (Condition Code Status): Update documention for
26417         relative locations of cc0-setter and cc0-user.
26418
26419 2014-02-27  Jeff Law  <law@redhat.com>
26420
26421         PR rtl-optimization/52714
26422         * combine.c (try_combine): When splitting an unrecognized PARALLEL
26423         into two independent simple sets, if I3 is a jump, ensure the
26424         pattern we place into I3 is a (set (pc) ...).
26425
26426 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
26427             Jeff Law  <law@redhat.com>
26428
26429         PR rtl-optimization/49847
26430         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26431         are in different blocks.
26432         * doc/tm.texi (Condition Code Status): Update documention for
26433         relative locations of cc0-setter and cc0-user.
26434
26435 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
26436
26437         PR target/59222
26438         * lra.c (lra_emit_add): Check SUBREG too.
26439
26440 2014-02-27  Andreas Schwab  <schwab@suse.de>
26441
26442         * config/m68k/m68k.c (m68k_option_override): Disable
26443         -flive-range-shrinkage for classic m68k.
26444         (m68k_override_options_after_change): Likewise.
26445
26446 2014-02-27  Marek Polacek  <polacek@redhat.com>
26447
26448         PR middle-end/59223
26449         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26450         -Wmaybe-uninitialized.
26451
26452 2014-02-27  Alan Modra  <amodra@gmail.com>
26453
26454         PR target/57936
26455         * reload1.c (emit_input_reload_insns): When reload_override_in,
26456         set old to rl->in_reg when rl->in_reg is a subreg.
26457
26458 2014-02-26  Richard Biener  <rguenther@suse.de>
26459
26460         PR bootstrap/60343
26461         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26462
26463 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
26464
26465         * common/config/i386/predicates.md (const1256_operand): Remove.
26466         (const2356_operand): New.
26467         (const_1_to_2_operand): Remove.
26468         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26469         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26470         (*avx512pf_gatherpf<mode>sf): Ditto.
26471         (avx512pf_gatherpf<mode>df): Ditto.
26472         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26473         (*avx512pf_gatherpf<mode>df): Ditto.
26474         (avx512pf_scatterpf<mode>sf): Ditto.
26475         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26476         (*avx512pf_scatterpf<mode>sf): Ditto.
26477         (avx512pf_scatterpf<mode>df): Ditto.
26478         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26479         (*avx512pf_scatterpf<mode>df): Ditto.
26480         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26481
26482 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
26483
26484         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26485         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26486         (_mm512_mask_testn_epi64_mask): Move to ...
26487         * config/i386/avx512cdintrin.h: Here.
26488         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26489         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26490         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26491         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26492         TARGET_AVX512F from TARGET_AVX512CD.
26493
26494 2014-02-26  Richard Biener  <rguenther@suse.de>
26495
26496         PR ipa/60327
26497         * ipa.c (walk_polymorphic_call_targets): Properly guard
26498         call to inline_update_overall_summary.
26499
26500 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
26501
26502         PR target/60280
26503         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26504         and latches only if requested.  Fix latch if it is removed.
26505         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26506         LOOPS_HAVE_PREHEADERS.
26507
26508 2014-02-25  Andrew Pinski  <apinski@cavium.com>
26509
26510         * builtins.c (expand_builtin_thread_pointer): Create a new target
26511         when the target is NULL.
26512
26513 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
26514
26515         PR rtl-optimization/60317
26516         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26517         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26518         * lra-assigns.c: Include params.h.
26519         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26520         other reload pseudos considerations.
26521
26522 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26523
26524         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26525         to use canonical form for nor<mode>3.
26526
26527 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26528
26529         PR target/55426
26530         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26531         conversions.
26532
26533 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
26534
26535         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26536         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26537         (ix86_handle_option): Handle OPT_mprefetchwt1.
26538         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26539         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26540         PREFETCHWT1 CPUID.
26541         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26542         OPTION_MASK_ISA_PREFETCHWT1.
26543         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26544         (PTA_PREFETCHWT1): New.
26545         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26546         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26547         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26548         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26549         (*prefetch_avx512pf_<mode>_: Change into ...
26550         (*prefetch_prefetchwt1_<mode>: This.
26551         * config/i386/i386.opt (mprefetchwt1): New.
26552         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26553         (_mm_prefetch): Handle intent to write.
26554         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26555
26556 2014-02-25  Richard Biener  <rguenther@suse.de>
26557
26558         PR middle-end/60291
26559         * emit-rtl.c (mem_attrs_htab): Remove.
26560         (mem_attrs_htab_hash): Likewise.
26561         (mem_attrs_htab_eq): Likewise.
26562         (set_mem_attrs): Always allocate new mem-attrs when something changed.
26563         (init_emit_once): Do not allocate mem_attrs_htab.
26564
26565 2014-02-25  Richard Biener  <rguenther@suse.de>
26566
26567         PR lto/60319
26568         * lto-opts.c (lto_write_options): Output non-explicit conservative
26569         -fwrapv, -fno-trapv and -fno-strict-overflow.
26570         * lto-wrapper.c (merge_and_complain): Handle merging those options.
26571         (run_gcc): And pass them through.
26572
26573 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
26574
26575         * sel-sched.c (calculate_new_fences): New parameter ptime.
26576         Calculate it as a maximum over all fence cycles.
26577         (sel_sched_region_2): Adjust the call to calculate_new_fences.
26578         Print the final schedule timing when sched_verbose.
26579
26580 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
26581
26582         PR rtl-optimization/60292
26583         * sel-sched.c (fill_vec_av_set): Do not reset target availability
26584         bit fot the fence instruction.
26585
26586 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
26587
26588         * calls.h: Fix typo in comment.
26589
26590 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
26591
26592         * config/pa/pa.c (pa_output_move_double): Don't valididate when
26593         adjusting offsetable addresses.
26594
26595 2014-02-24  Guozhi Wei  <carrot@google.com>
26596
26597         * sparseset.h (sparseset_pop): Fix the wrong index.
26598
26599 2014-02-24  Walter Lee  <walt@tilera.com>
26600
26601         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26602         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26603         triplet.
26604         * common/config/tilegx/tilegx-common.c
26605         (TARGET_DEFAULT_TARGET_FLAGS): Define.
26606         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26607         (LINK_SPEC): Ditto.
26608         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26609         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26610         (tilegx_gimplify_va_arg_expr): Handle big endian.
26611         (tilegx_expand_unaligned_load): Ditto.
26612         (tilegx_expand_unaligned_store): Ditto.
26613         (TARGET_RETURN_IN_MSB): New.
26614         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26615         (TARGET_ENDIAN_DEFAULT): New.
26616         (TARGET_BIG_ENDIAN): Handle big endian.
26617         (BYTES_BIG_ENDIAN): Ditto.
26618         (WORDS_BIG_ENDIAN): Ditto.
26619         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26620         (ENDIAN_SPEC): New.
26621         (EXTRA_SPECS): New.
26622         * config/tilegx/tilegx.md (extv): Handle big endian.
26623         (extzv): Ditto.
26624         (insn_st<n>): Ditto.
26625         (insn_st<n>_add<bitsuffix>): Ditto.
26626         (insn_stnt<n>): Ditto.
26627         (insn_stnt<n>_add<bitsuffix>):Ditto.
26628         (vec_interleave_highv8qi): Handle big endian.
26629         (vec_interleave_highv8qi_be): New.
26630         (vec_interleave_highv8qi_le): New.
26631         (insn_v1int_h): Handle big endian.
26632         (vec_interleave_lowv8qi): Handle big endian.
26633         (vec_interleave_lowv8qi_be): New.
26634         (vec_interleave_lowv8qi_le): New.
26635         (insn_v1int_l): Handle big endian.
26636         (vec_interleave_highv4hi): Handle big endian.
26637         (vec_interleave_highv4hi_be): New.
26638         (vec_interleave_highv4hi_le): New.
26639         (insn_v2int_h): Handle big endian.
26640         (vec_interleave_lowv4hi): Handle big endian.
26641         (vec_interleave_lowv4hi_be): New.
26642         (vec_interleave_lowv4hi_le): New.
26643         (insn_v2int_l): Handle big endian.
26644         (vec_interleave_highv2si): Handle big endian.
26645         (vec_interleave_highv2si_be): New.
26646         (vec_interleave_highv2si_le): New.
26647         (insn_v4int_h): Handle big endian.
26648         (vec_interleave_lowv2si): Handle big endian.
26649         (vec_interleave_lowv2si_be): New.
26650         (vec_interleave_lowv2si_le): New.
26651         (insn_v4int_l): Handle big endian.
26652         * config/tilegx/tilegx.opt (mbig-endian): New option.
26653         (mlittle-endian): New option.
26654         * doc/install.texi: Document tilegxbe-linux.
26655         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26656
26657 2014-02-24  Martin Jambor  <mjambor@suse.cz>
26658
26659         PR ipa/60266
26660         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26661         there are no parameter descriptors.
26662
26663 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
26664
26665         PR rtl-optimization/60268
26666         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26667         initialization to ...
26668         (sched_rgn_init): ... here.
26669         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26670
26671 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26672
26673         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26674         names.
26675
26676 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
26677
26678         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26679         definition.
26680
26681 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26682
26683         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26684         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26685
26686 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26687
26688         * config/microblaze/predicates.md: Add cmp_op predicate.
26689         * config/microblaze/microblaze.md: Add branch_compare instruction
26690         which uses cmp_op predicate and emits cmp insn before branch.
26691         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26692         to microblaze_expand_conditional_branch and consolidate logic.
26693         (microblaze_expand_conditional_branch): emit branch_compare
26694         insn instead of handling cmp op separate from branch insn.
26695
26696 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26697
26698         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26699         to permit subregs.
26700
26701 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26702
26703         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26704         define_insn with define_expand and new define_insn
26705         *altivec_lve<VI_char>x_internal.
26706         (altivec_stve<VI_char>x): Replace define_insn with define_expand
26707         and new define_insn *altivec_stve<VI_char>x_internal.
26708         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26709         prototype.
26710         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26711         lve*x built-ins.
26712         (altivec_expand_stvex_be): New function.
26713
26714 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
26715
26716         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26717         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26718         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26719         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26720
26721 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
26722
26723         PR target/60298
26724         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26725         instead of emit_move_insn.
26726
26727 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26728
26729         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26730         vspltw with vsldoi.
26731         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26732         gen_altivec_vsumsws.
26733
26734 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26735
26736         * config/rs6000/altivec.md (altivec_lvxl): Rename as
26737         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26738         (altivec_lvxl_<mode>): New define_expand incorporating
26739         -maltivec=be semantics where needed.
26740         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26741         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26742         semantics where needed.
26743         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26744         (altivec_stvx_<mode>): New define_expand incorporating
26745         -maltivec=be semantics where needed.
26746         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26747         VM2 iterator instead of V4SI.
26748         (altivec_stvxl_<mode>): New define_expand incorporating
26749         -maltivec=be semantics where needed.
26750         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26751         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26752         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26753         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26754         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26755         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26756         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26757         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26758         ALTIVEC_BUILTIN_STVXL.
26759         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26760         (altivec_expand_stvx_be): Likewise.
26761         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26762         (altivec_expand_lvx_be): Likewise.
26763         (altivec_expand_stvx_be): Likewise.
26764         (altivec_expand_builtin): Add cases for
26765         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26766         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26767         (altivec_init_builtins): Add definitions for
26768         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26769         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26770
26771 2014-02-21  Catherine Moore  <clm@codesourcery.com>
26772
26773         * doc/invoke.texi (mvirt, mno-virt): Document.
26774         * config/mips/mips.opt (mvirt): New option.
26775         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26776
26777 2014-02-21  Richard Biener  <rguenther@suse.de>
26778
26779         PR tree-optimization/60276
26780         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26781         (STMT_VINFO_MIN_NEG_DIST): New macro.
26782         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26783         STMT_VINFO_MIN_NEG_DIST.
26784         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26785         made for negative dependence distances still hold.
26786
26787 2014-02-21  Richard Biener  <rguenther@suse.de>
26788
26789         PR middle-end/60291
26790         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26791         DECL_INITIAL for globals not in the current function context.
26792
26793 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
26794
26795         PR tree-optimization/56490
26796         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26797         * tree-ssa-uninit.c: Include params.h.
26798         (compute_control_dep_chain): Add num_calls argument, return false
26799         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26800         num_calls to recursive call.
26801         (find_predicates): Change dep_chain into normal array,
26802         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26803         variable and adjust compute_control_dep_chain caller.
26804         (find_def_preds): Likewise.
26805
26806 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
26807
26808         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26809         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26810
26811 2014-02-21  Nick Clifton  <nickc@redhat.com>
26812
26813         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26814         (pushhi1): Likewise.
26815         (popqi1): Add mode to pre_dec.
26816         (pophi1): Likewise.
26817
26818 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
26819
26820         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26821         mode for mask of V8SFmode permutation.
26822
26823 2014-02-20  Richard Henderson  <rth@redhat.com>
26824
26825         PR c++/60272
26826         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26827         a new pseudo for OLDVAL.
26828
26829 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
26830
26831         PR target/57896
26832         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26833         gen_reg_rtx if d->testing_p.
26834         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26835         if d->testing_p and we will certainly return true.
26836         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
26837         if d->testing_p.
26838
26839 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
26840
26841         * emit-rtl.c (gen_reg_rtx): Assert that
26842         crtl->emit.regno_pointer_align_length is non-zero.
26843
26844 2014-02-20  Richard Henderson  <rth@redhat.com>
26845
26846         PR c++/60272
26847         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26848         on failure the store back into EXPECT.
26849
26850 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
26851             Sandra Loosemore  <sandra@codesourcery.com>
26852
26853         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26854         * config/nios2/nios2.c (nios2_function_profiler): Add
26855         -fPIC (flag_pic == 2) support.
26856         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26857         (nios2_large_offset_p): New function.
26858         (nios2_unspec_reloc_p): Move up position, update to use
26859         nios2_large_offset_p.
26860         (nios2_unspec_address): Remove function.
26861         (nios2_unspec_offset): New function.
26862         (nios2_large_got_address): New function.
26863         (nios2_got_address): Add large offset support.
26864         (nios2_legitimize_tls_address): Update usage of removed and new
26865         functions.
26866         (nios2_symbol_binds_local_p): New function.
26867         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26868         (nios2_legitimize_address): Update to use nios2_large_offset_p.
26869         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26870         (nios2_print_operand): Merge H/L processing, add hiadj/lo
26871         processing for (const (unspec ...)).
26872         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26873
26874 2014-02-20  Richard Biener  <rguenther@suse.de>
26875
26876         * tree-cfg.c (replace_uses_by): Mark altered BBs before
26877         doing the substitution.
26878         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26879
26880 2014-02-20  Martin Jambor  <mjambor@suse.cz>
26881
26882         PR ipa/55260
26883         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26884         info when checking whether lattices are bottom.
26885
26886 2014-02-20  Richard Biener  <rguenther@suse.de>
26887
26888         PR middle-end/60221
26889         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26890         regions at -O0.
26891
26892 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
26893
26894         PR ipa/58555
26895         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26896         parameter specifying the scaling.
26897         (inline_call): Update.
26898         (want_inline_recursively): Guard division by zero.
26899         (recursive_inlining): Update.
26900         * ipa-inline.h (clone_inlined_nodes): Update.
26901
26902 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
26903
26904         PR target/60204
26905         * config/i386/i386.c (classify_argument): Pass structures of size
26906         64 bytes or less in register.
26907
26908 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
26909             Kirill Yukhin  <kirill.yukhin@intel.com>
26910
26911         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26912         (_mm_rcp28_round_ss): Ditto.
26913         (_mm_rsqrt28_round_sd): Ditto.
26914         (_mm_rsqrt28_round_ss): Ditto.
26915         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26916         (_mm_rcp14_round_ss): Ditto.
26917         (_mm_rsqrt14_round_sd): Ditto.
26918         (_mm_rsqrt14_round_ss): Ditto.
26919         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26920         the first input operand, get rid of match_dup.
26921         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26922         attribute to sse.
26923         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26924         Ditto.
26925         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26926         operand as the first input operand, set type attribute.
26927         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26928         Set type attribute.
26929         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26930         operand as the first input operand, set type attribute.
26931
26932 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26933
26934         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26935         bit of zero.
26936
26937 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
26938
26939         PR target/60207
26940         * config/i386/i386.c (construct_container): Remove TFmode check
26941         for X86_64_INTEGER_CLASS.
26942
26943 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
26944
26945         PR target/59794
26946         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26947         only when -Wpsabi is enabled.
26948
26949 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
26950
26951          PR target/59799
26952         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26953         passing arrays in registers are the same as for structs, so remove the
26954         special case for them.
26955
26956 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
26957
26958         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26959         destination type, extract only the valid bits if the source type is not
26960         integral and has a different mode.
26961
26962 2014-02-19  Richard Biener  <rguenther@suse.de>
26963
26964         PR ipa/60243
26965         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26966         for all calls.
26967
26968 2014-02-19  Richard Biener  <rguenther@suse.de>
26969
26970         PR ipa/60243
26971         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26972         (ipa_modify_call_arguments): Emit an argument load explicitely and
26973         preserve virtual SSA form there and for the replacement call.
26974         Do not update SSA form nor free dominance info.
26975
26976 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
26977
26978         * ipa.c (function_and_variable_visibility): Also clear WEAK
26979         flag when disolving COMDAT_GROUP.
26980
26981 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
26982
26983         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26984         * ipa-prop.c (ipa_set_jf_known_type): Return early when
26985         not devirtualizing.
26986         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26987         do more sanity checks.
26988         (detect_type_change): Return true when giving up early.
26989         (compute_complex_assign_jump_func): Fix type parameter of
26990         ipa_set_ancestor_jf.
26991         (compute_complex_ancestor_jump_func): Likewise.
26992         (update_jump_functions_after_inlining): Fix updating of
26993         ancestor function.
26994         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26995
26996 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
26997
26998         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26999         inline clones when edge disappears.
27000
27001 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
27002
27003         PR target/60203
27004         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27005         Split 64-bit moves into 2 patterns.  Do not allow the use of
27006         direct move for TDmode in little endian, since the decimal value
27007         has little endian bytes within a word, but the 64-bit pieces are
27008         ordered in a big endian fashion, and normal subreg's of TDmode are
27009         not allowed.
27010         (mov<mode>_64bit_dm): Likewise.
27011         (movtd_64bit_nodm): Likewise.
27012
27013 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27014
27015         PR tree-optimization/60174
27016         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27017         statement of an SSA_NAME that occurs in an abnormal PHI node.
27018
27019 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27020
27021         PR sanitizer/60142
27022         * final.c (SEEN_BB): Remove.
27023         (SEEN_NOTE, SEEN_EMITTED): Renumber.
27024         (final_scan_insn): Don't force_source_line on second
27025         NOTE_INSN_BASIC_BLOCK.
27026
27027 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
27028
27029         PR target/60205
27030         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27031         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27032         (type_natural_mode): Warn ABI change when %zmm register is not
27033         available for AVX512F vector value passing.
27034
27035 2014-02-18  Kai Tietz  <ktietz@redhat.com>
27036
27037         PR target/60193
27038         * config/i386/i386.c (ix86_expand_prologue): Use value in
27039         rax register as displacement when restoring %r10 or %rax.
27040         Fix wrong offset when restoring both registers.
27041
27042 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27043
27044         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27045         assertion with conditional return.
27046
27047 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27048             Uros Bizjak  <ubizjak@gmail.com>
27049
27050         PR driver/60233
27051         * config/i386/driver-i386.c (host_detect_local_cpu): If
27052         YMM state is not saved by the OS, also clear has_f16c.  Move
27053         CPUID 0x80000001 handling before YMM state saving checking.
27054
27055 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
27056
27057         PR rtl-optimization/58960
27058         * haifa-sched.c (alloc_global_sched_pressure_data): New,
27059         factored out from ...
27060         (sched_init): ... here.
27061         (free_global_sched_pressure_data): New, factored out from ...
27062         (sched_finish): ... here.
27063         * sched-int.h (free_global_sched_pressure_data): Declare.
27064         * sched-rgn.c (nr_regions_initial): New static global.
27065         (haifa_find_rgns): Initialize it.
27066         (schedule_region): Disable sched-pressure for the newly
27067         generated regions.
27068
27069 2014-02-17  Richard Biener  <rguenther@suse.de>
27070
27071         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27072         release SSA defs of pattern stmts.
27073
27074 2014-02-17  Richard Biener  <rguenther@suse.de>
27075
27076         * tree-inline.c (expand_call_inline): Release the virtual
27077         operand defined by the call we are about to inline.
27078
27079 2014-02-17  Richard Biener  <rguenther@suse.de>
27080
27081         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27082
27083 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
27084             Ilya Tocar  <ilya.tocar@intel.com>
27085
27086         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27087         arguments order in builtin.
27088         (_mm512_permutexvar_epi64): Ditto.
27089         (_mm512_mask_permutexvar_epi64): Ditto
27090         (_mm512_maskz_permutexvar_epi32): Ditto
27091         (_mm512_permutexvar_epi32): Ditto
27092         (_mm512_mask_permutexvar_epi32): Ditto
27093
27094 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27095
27096         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27097         (p8_vmrgow): Likewise.
27098
27099 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27100
27101         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27102         endian targets.
27103
27104 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
27105
27106         PR target/60203
27107         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27108         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27109         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
27110         using direct move instructions on ISA 2.07.  Also adjust
27111         instruction length for 64-bit.
27112         (mov<mode>_64bit, TFmode/TDmode): Likewise.
27113         (mov<mode>_32bit, TFmode/TDmode): Likewise.
27114
27115 2014-02-15  Alan Modra  <amodra@gmail.com>
27116
27117         PR target/58675
27118         PR target/57935
27119         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27120         find_replacement on parts of insn rtl that might be reloaded.
27121
27122 2014-02-15  Richard Biener  <rguenther@suse.de>
27123
27124         PR tree-optimization/60183
27125         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27126         (tree_ssa_phiprop): Calculate and free post-dominators.
27127
27128 2014-02-14  Jeff Law  <law@redhat.com>
27129
27130         PR rtl-optimization/60131
27131         * ree.c (get_extended_src_reg): New function.
27132         (combine_reaching_defs): Use it rather than assuming location of REG.
27133         (find_and_remove_re): Verify first operand of extension is
27134         a REG before adding the insns to the copy list.
27135
27136 2014-02-14  Roland McGrath  <mcgrathr@google.com>
27137
27138         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27139         * configure: Regenerated.
27140         * config.in: Regenerated.
27141         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27142         instead of ASM_SHORT.
27143
27144 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
27145             Richard Earnshaw  <rearnsha@arm.com>
27146
27147         PR rtl-optimization/59535
27148         * lra-constraints.c (process_alt_operands): Encourage alternative
27149         when unassigned pseudo class is superset of the alternative class.
27150         (inherit_reload_reg): Don't inherit when optimizing for code size.
27151         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27152         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27153         modes not less than 4 for Thumb1.
27154
27155 2014-02-14  Kyle McMartin  <kyle@redhat.com>
27156
27157         PR pch/60010
27158         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27159
27160 2014-02-14  Richard Biener  <rguenther@suse.de>
27161
27162         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27163         (get_frame_arg): Drop the assert with langhook types_compatible_p.
27164         Do not strip INDIRECT_REFs.
27165
27166 2014-02-14  Richard Biener  <rguenther@suse.de>
27167
27168         PR lto/60179
27169         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27170         DECL_FUNCTION_SPECIFIC_TARGET.
27171         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27172         * tree-streamer-out.c (pack_ts_target_option): Remove.
27173         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27174         (write_ts_function_decl_tree_pointers): Do not stream
27175         DECL_FUNCTION_SPECIFIC_TARGET.
27176         * tree-streamer-in.c (unpack_ts_target_option): Remove.
27177         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27178         (lto_input_ts_function_decl_tree_pointers): Do not stream
27179         DECL_FUNCTION_SPECIFIC_TARGET.
27180
27181 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
27182
27183         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27184         (get_initial_def_for_induction, vectorizable_induction): Ignore
27185         debug stmts when looking for exit_phi.
27186         (vectorizable_live_operation): Fix up condition.
27187
27188 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27189
27190         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27191         nreverse() because it changes the content of original tree list.
27192
27193 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27194
27195         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27196         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27197
27198 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27199
27200         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27201         GNU coding standards.
27202
27203 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
27204
27205         PR debug/60152
27206         * dwarf2out.c (gen_subprogram_die): Don't call
27207         add_calling_convention_attribute if subr_die is old_die.
27208
27209 2014-02-13  Sharad Singhai  <singhai@google.com>
27210
27211         * doc/optinfo.texi: Fix order of nodes.
27212
27213 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
27214
27215         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27216         operands[2], not operands[3].
27217
27218 2014-02-13  Richard Biener  <rguenther@suse.de>
27219
27220         PR bootstrap/59878
27221         * doc/install.texi (ISL): Update recommended version to 0.12.2,
27222         mention the possibility of an in-tree build.
27223         (CLooG): Update recommended version to 0.18.1, mention the
27224         possibility of an in-tree build and clarify that the ISL
27225         bundled with CLooG does not work.
27226
27227 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
27228
27229         PR target/43546
27230         * expr.c (compress_float_constant): If x is a hard register,
27231         extend into a pseudo and then move to x.
27232
27233 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27234
27235         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27236         caused by bad second argument to warning_at() with -mhotpatch and
27237         nested functions (e.g. with gfortran).
27238
27239 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
27240
27241         * opts.c (option_name): Remove "enabled by default" rider.
27242
27243 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
27244
27245         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27246
27247 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27248             Uros Bizjak  <ubizjak@gmail.com>
27249
27250         PR target/60151
27251         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27252         * configure: Regenerated.
27253
27254 2014-02-12  Richard Biener  <rguenther@suse.de>
27255
27256         * vec.c (vec_prefix::calculate_allocation): Move as
27257         inline variant to vec.h.
27258         (vec_prefix::calculate_allocation_1): New out-of-line version.
27259         * vec.h (vec_prefix::calculate_allocation_1): Declare.
27260         (vec_prefix::m_has_auto_buf): Rename to ...
27261         (vec_prefix::m_using_auto_storage): ... this.
27262         (vec_prefix::calculate_allocation): Inline the easy cases
27263         and dispatch to calculate_allocation_1 which doesn't need the
27264         prefix address.
27265         (va_heap::reserve): Use gcc_checking_assert.
27266         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27267         m_using_auto_storage.
27268         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27269         member and adjust.
27270         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27271         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27272         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27273
27274 2014-02-12  Richard Biener  <rguenther@suse.de>
27275
27276         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27277         when we found a dependence.
27278
27279 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
27280
27281         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27282         common code...
27283         (maybe_fold_stmt): ... into this new function.
27284         * omp-low.c (lower_omp): Update comment.
27285
27286         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27287         last use.
27288
27289         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27290         dereference.
27291
27292 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
27293
27294         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27295         identifiers in comments.
27296         (cortexa53_extra_costs): Likewise.
27297         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27298         (cortexa7_extra_costs): Likewise.
27299         (cortexa12_extra_costs): Likewise.
27300         (cortexa15_extra_costs): Likewise.
27301         (v7m_extra_costs): Likewise.
27302
27303 2014-02-12  Richard Biener  <rguenther@suse.de>
27304
27305         PR middle-end/60092
27306         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27307         of posix_memalign being successful.
27308         (lower_stmt): Restrict lowering of posix_memalign to when
27309         -ftree-bit-ccp is enabled.
27310
27311 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27312
27313         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27314         arg_loc.
27315         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27316
27317 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
27318
27319         PR rtl-optimization/60116
27320         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27321         other_insn once the combination has been validated.
27322
27323 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
27324
27325         PR lto/59468
27326         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27327         and wrapper.
27328         * ipa-devirt.c: Include demangle.h
27329         (odr_violation_reported): New static variable.
27330         (add_type_duplicate): Update odr_violations.
27331         (maybe_record_node): Add completep parameter; update it.
27332         (record_target_from_binfo): Add COMPLETEP parameter;
27333         update it as needed.
27334         (possible_polymorphic_call_targets_1): Likewise.
27335         (struct polymorphic_call_target_d): Add nonconstruction_targets;
27336         rename FINAL to COMPLETE.
27337         (record_targets_from_bases): Sanity check we found the binfo;
27338         fix COMPLETEP updating.
27339         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27340         parameter, fix computing of COMPLETEP.
27341         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27342         at LTO time do demangling.
27343         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27344         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27345         parameter.
27346         (gimple_get_virt_method_for_binfo): Likewise.
27347         * gimple-fold.h (gimple_get_virt_method_for_binfo,
27348         gimple_get_virt_method_for_vtable): Update prototypes.
27349
27350 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
27351
27352         PR target/49008
27353         * genautomata.c (add_presence_absence): Fix typo with
27354         {final_}presence_list.
27355
27356 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27357
27358         PR target/60137
27359         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27360         for VSX/Altivec vectors that land in GPR registers.
27361
27362 2014-02-11  Richard Henderson  <rth@redhat.com>
27363             Jakub Jelinek  <jakub@redhat.com>
27364
27365         PR debug/59776
27366         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27367         around drhs if type conversion to lacc->type is not useless.
27368
27369 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27370
27371         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27372         tuning struct.
27373         (cortex-a57.cortex-a53): Likewise.
27374         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27375
27376 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27377
27378         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27379         arm_restrict_it.
27380
27381 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
27382
27383         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27384         add_options_for_arm_vfp3.
27385
27386 2014-02-11  Jeff Law  <law@redhat.com>
27387
27388         PR middle-end/54041
27389         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27390         object with an undesirable mode.
27391
27392 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27393
27394         PR libgomp/60107
27395         * config/i386/sol2-9.h: New file.
27396         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27397         *-*-solaris2.9*): Use it.
27398
27399 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
27400
27401         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27402         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27403
27404 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
27405
27406         * config/microblaze/microblaze.c: Extend mcpu version format
27407
27408 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
27409
27410         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27411
27412 2014-02-10  Richard Henderson  <rth@redhat.com>
27413
27414         PR target/59927
27415         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27416         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27417         ms-abi vs -mno-accumulate-outgoing-args.
27418         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27419         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27420         respect to ms-abi.
27421
27422 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27423
27424         PR middle-end/60080
27425         * cfgexpand.c (expand_asm_operands): Attach source location to
27426         ASM_INPUT rtx objects.
27427         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27428
27429 2014-02-10  Nick Clifton  <nickc@redhat.com>
27430
27431         * config/mn10300/mn10300.c (popcount): New function.
27432         (mn10300_expand_prologue): Include saved registers in stack usage
27433         count.
27434
27435 2014-02-10  Jeff Law  <law@redhat.com>
27436
27437         PR middle-end/52306
27438         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27439         when changing the SET_DEST of a prior insn to avoid an input reload.
27440
27441 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27442
27443         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27444         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27445         -mcall-openbsd, or -mcall-linux.
27446         (CC1_ENDIAN_BIG_SPEC): Remove.
27447         (CC1_ENDIAN_LITTLE_SPEC): Remove.
27448         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27449         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27450         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27451         and %cc1_endian_default.
27452         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27453
27454 2014-02-10  Richard Biener  <rguenther@suse.de>
27455
27456         PR tree-optimization/60115
27457         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27458         MEM_REF handling.  Properly verify that the accesses are not
27459         out of the objects bound.
27460
27461 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27462
27463         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27464         coretex to cortex.
27465
27466 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
27467
27468         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27469         proper constants and fix formatting.
27470         (possible_polymorphic_call_targets): Fix formatting.
27471
27472 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
27473             Ilya Tocar  <ilya.tocar@intel.com>
27474
27475         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27476         (_mm512_loadu_epi32): Renamed into...
27477         (_mm512_loadu_si512): This.
27478         (_mm512_storeu_epi32): Renamed into...
27479         (_mm512_storeu_si512): This.
27480         (_mm512_maskz_ceil_ps): Removed.
27481         (_mm512_maskz_ceil_pd): Ditto.
27482         (_mm512_maskz_floor_ps): Ditto.
27483         (_mm512_maskz_floor_pd): Ditto.
27484         (_mm512_floor_round_ps): Ditto.
27485         (_mm512_floor_round_pd): Ditto.
27486         (_mm512_ceil_round_ps): Ditto.
27487         (_mm512_ceil_round_pd): Ditto.
27488         (_mm512_mask_floor_round_ps): Ditto.
27489         (_mm512_mask_floor_round_pd): Ditto.
27490         (_mm512_mask_ceil_round_ps): Ditto.
27491         (_mm512_mask_ceil_round_pd): Ditto.
27492         (_mm512_maskz_floor_round_ps): Ditto.
27493         (_mm512_maskz_floor_round_pd): Ditto.
27494         (_mm512_maskz_ceil_round_ps): Ditto.
27495         (_mm512_maskz_ceil_round_pd): Ditto.
27496         (_mm512_expand_pd): Ditto.
27497         (_mm512_expand_ps): Ditto.
27498         * config/i386/i386.c (ix86_builtins): Remove
27499         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27500         (bdesc_args): Ditto.
27501         * config/i386/predicates.md (const1256_operand): New.
27502         (const_1_to_2_operand): Ditto.
27503         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27504         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27505         (*avx512pf_gatherpf<mode>sf): Ditto.
27506         (avx512pf_gatherpf<mode>df): Ditto.
27507         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27508         (*avx512pf_gatherpf<mode>df): Ditto.
27509         (avx512pf_scatterpf<mode>sf): Ditto.
27510         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27511         (*avx512pf_scatterpf<mode>sf): Ditto.
27512         (avx512pf_scatterpf<mode>df): Ditto.
27513         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27514         (*avx512pf_scatterpf<mode>df): Ditto.
27515         (avx512f_expand<mode>): Removed.
27516         (<shift_insn><mode>3<mask_name>): Change predicate type.
27517
27518 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
27519
27520         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27521         not at the end of datarefs vector use ordered_remove to avoid
27522         reordering datarefs vector.
27523
27524         PR c/59984
27525         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27526         mark local addressable non-static vars as GOVD_PRIVATE
27527         instead of GOVD_LOCAL.
27528         * omp-low.c (lower_omp_for): Move gimple_bind_vars
27529         and BLOCK_VARS of gimple_bind_block to new_stmt rather
27530         than copying them.
27531
27532         PR middle-end/60092
27533         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27534         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27535         assume_aligned or alloc_align attributes.
27536         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27537         arguments.  Handle also assume_aligned and alloc_align attributes.
27538         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
27539         calls to functions with assume_aligned or alloc_align attributes.
27540         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27541
27542 2014-02-08  Terry Guo  <terry.guo@arm.com>
27543
27544         * doc/invoke.texi: Document ARM -march=armv7e-m.
27545
27546 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
27547
27548         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27549         flag on __cilkrts_rethrow builtin.
27550
27551         PR ipa/60026
27552         * ipa-cp.c (determine_versionability): Fail at -O0
27553         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27554         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27555
27556         Revert:
27557         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
27558
27559         PR ipa/60026
27560         * tree-inline.c (copy_forbidden): Fail for
27561         __attribute__((optimize (0))) functions.
27562
27563 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
27564
27565         * varpool.c: Include pointer-set.h.
27566         (varpool_remove_unreferenced_decls): Variables in other partitions
27567         will not be output; be however careful to not lose information
27568         about partitioning.
27569
27570 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
27571
27572         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27573         lookup in the vtable constructor.
27574
27575 2014-02-07  Jeff Law  <law@redhat.com>
27576
27577         PR target/40977
27578         * config/m68k/m68k.md (ashldi_extsi): Turn into a
27579         define_insn_and_split.
27580
27581         * ipa-inline.c (inline_small_functions): Fix typos.
27582
27583 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27584
27585         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27586         (s390_can_use_return_insn): Declare.
27587         * config/s390/s390.h (EPILOGUE_USES): Define.
27588         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27589         instructions.
27590         (s390_chunkify_start): Handle return JUMP_LABELs.
27591         (s390_early_mach): Emit a main_pool instruction on the entry edge.
27592         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27593         (s390_can_use_return_insn): New functions.
27594         (s390_fix_long_loop_prediction): Handle conditional returns.
27595         (TARGET_SET_UP_BY_PROLOGUE): Define.
27596         * config/s390/s390.md (ANY_RETURN): New code iterator.
27597         (*creturn, *csimple_return, return, simple_return): New patterns.
27598
27599 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27600
27601         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27602         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
27603         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
27604         REG_CFA_RESTORE list when deciding not to restore a register.
27605
27606 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27607
27608         * config/s390/s390.c: Include tree-pass.h and context.h.
27609         (s390_early_mach): New function, split out from...
27610         (s390_emit_prologue): ...here.
27611         (pass_data_s390_early_mach): New pass structure.
27612         (pass_s390_early_mach): New class.
27613         (s390_option_override): Create and register early_mach pass.
27614         Move to end of file.
27615
27616 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27617
27618         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27619         to match for the exit block.
27620
27621 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27622
27623         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27624         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27625         Reject misaligned operands.
27626
27627 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27628
27629         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27630
27631 2014-02-07  Richard Biener  <rguenther@suse.de>
27632
27633         PR middle-end/60092
27634         * gimple-low.c (lower_builtin_posix_memalign): New function.
27635         (lower_stmt): Call it to lower posix_memalign in a way
27636         to make alignment info accessible.
27637
27638 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
27639
27640         PR c++/60082
27641         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27642         __builtin_setjmp_receiver.
27643
27644 2014-02-07  Richard Biener  <rguenther@suse.de>
27645
27646         PR middle-end/60092
27647         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27648         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27649         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27650         Handle BUILT_IN_POSIX_MEMALIGN.
27651         (find_func_clobbers): Likewise.
27652         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27653         (call_may_clobber_ref_p_1): Likewise.
27654
27655 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27656
27657         PR ipa/59918
27658         * ipa-devirt.c (record_target_from_binfo): Remove overactive
27659         sanity check.
27660
27661 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27662
27663         PR ipa/59469
27664         * lto-cgraph.c (lto_output_node): Use
27665         symtab_get_symbol_partitioning_class.
27666         (lto_output_varpool_node): likewise.
27667         (symtab_get_symbol_partitioning_class): Move here from
27668         lto/lto-partition.c
27669         * cgraph.h (symbol_partitioning_class): Likewise.
27670         (symtab_get_symbol_partitioning_class): Declare.
27671
27672 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27673
27674         * ggc.h (ggc_internal_cleared_alloc): New macro.
27675         * vec.h (vec_safe_copy): Handle memory stats.
27676         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27677         * target-globals.c (save_target_globals): Likewise.
27678
27679 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27680
27681         PR target/60077
27682         * expr.c (emit_move_resolve_push): Export; be bit more selective
27683         on when to clear alias set.
27684         * expr.h (emit_move_resolve_push): Declare.
27685         * function.h (struct function): Add tail_call_marked.
27686         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27687         * config/i386/i386-protos.h (ix86_expand_push): Remove.
27688         * config/i386/i386.md (TImode move expander): De not call
27689         ix86_expand_push.
27690         (FP push expanders): Preserve memory attributes.
27691         * config/i386/sse.md (push<mode>1): Remove.
27692         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27693         (ix86_expand_push): Remove.
27694         * config/i386/mmx.md (push<mode>1): Remove.
27695
27696 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27697
27698         PR rtl-optimization/60030
27699         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27700         lopart with paradoxical subreg before shifting it up by hprec.
27701
27702 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27703
27704         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27705         Remove extra newline at end of file.
27706         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27707         (arm_issue_rate): Handle cortexa57.
27708         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27709         (cortex-a57.cortex-a53): Likewise.
27710
27711 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27712
27713         PR target/59575
27714         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27715         don't record in REG_FRAME_RELATED_EXPR registers not set in that
27716         bitmask.
27717         (arm_expand_prologue): Adjust all callers.
27718         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27719         info, registers also at the lowest numbered registers side.  Use
27720         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27721         XEXP.
27722
27723         PR debug/59992
27724         * var-tracking.c (adjust_mems): Before adding a SET to
27725         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27726
27727 2014-02-06  Alan Modra  <amodra@gmail.com>
27728
27729         PR target/60032
27730         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27731         change SDmode to DDmode when lra_in_progress.
27732
27733 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27734
27735         PR middle-end/59150
27736         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27737         free_data_ref on the dr first, and before goto again also set dr
27738         to the next dr.  For simd_lane_access, free old datarefs[i] before
27739         overwriting it.  For get_vectype_for_scalar_type failure, don't
27740         free_data_ref if simd_lane_access.
27741
27742         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27743
27744         PR target/60062
27745         * tree.h (opts_for_fn): New inline function.
27746         (opt_for_fn): Define.
27747         * config/i386/i386.c (ix86_function_regparm): Use
27748         opt_for_fn (decl, optimize) instead of optimize.
27749
27750 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27751
27752         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27753         for SYMBOL_REF in large memory model.
27754
27755 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27756
27757         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27758         and crypto support.
27759         (cortex-a57): Likewise.
27760         (cortex-a57.cortex-a53): Likewise.
27761
27762 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
27763             Kugan Vivekanandarajah  <kuganv@linaro.org>
27764
27765         * config/arm/arm.c (arm_vector_alignment_reachable): Check
27766         unaligned_access.
27767         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27768
27769 2014-02-06  Richard Biener  <rguenther@suse.de>
27770
27771         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27772         set_loop_copy and initialize_original_copy_tables.
27773
27774 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
27775
27776         * config/aarch64/aarch64-simd.md
27777         (aarch64_ashr_simddi): Change QI to SI.
27778
27779 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
27780             Jakub Jelinek  <jakub@redhat.com>
27781
27782         PR middle-end/60013
27783         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27784         of the dataflow.
27785
27786 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27787
27788         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27789         CODE_FOR_altivec_vpku[hw]um to
27790         CODE_FOR_altivec_vpku[hw]um_direct.
27791         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27792         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27793         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27794         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27795
27796 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27797
27798         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27799         generation for -maltivec=be.
27800         (altivec_vsumsws): Simplify redundant test.
27801
27802 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27803
27804         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27805         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27806         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27807         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27808         gen_altivec_vpkuwum.
27809         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27810         BYTES_BIG_ENDIAN.
27811         (altivec_vpks<VI_char>ss): Likewise.
27812         (altivec_vpks<VI_char>us): Likewise.
27813         (altivec_vpku<VI_char>us): Likewise.
27814         (altivec_vpku<VI_char>um): Likewise.
27815         (altivec_vpku<VI_char>um_direct): New (copy of
27816         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27817         internal use).
27818         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27819         target is little endian and -maltivec=be is not specified.
27820         (*altivec_vupkhs<VU_char>_direct): New (copy of
27821         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27822         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27823         target is little endian and -maltivec=be is not specified.
27824         (*altivec_vupkls<VU_char>_direct): New (copy of
27825         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27826         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27827         little endian and -maltivec=be is not specified.
27828         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27829         little endian and -maltivec=be is not specified.
27830
27831 2014-02-05  Richard Henderson  <rth@redhat.com>
27832
27833         PR debug/52727
27834         * combine-stack-adj.c: Revert r206943.
27835         * sched-int.h (struct deps_desc): Add last_args_size.
27836         * sched-deps.c (init_deps): Initialize it.
27837         (sched_analyze_insn): Add OUTPUT dependencies between insns that
27838         contain REG_ARGS_SIZE notes.
27839
27840 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
27841
27842         * lto-cgraph.c (asm_nodes_output): Make global.
27843         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27844         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27845         (driver_handle_option): Handle OPT_fwpa.
27846
27847 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
27848
27849         PR ipa/59947
27850         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27851         a comment typo and formatting issue.  If odr_hash hasn't been
27852         created, return vNULL and set *completep to false.
27853
27854         PR middle-end/57499
27855         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27856         bb with no successors.
27857
27858 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
27859
27860         PR target/59718
27861         * doc/invoke.texi (-march): Clarify documentation for ARM.
27862         (-mtune): Likewise.
27863         (-mcpu): Likewise.
27864
27865 2014-02-05  Richard Biener  <rguenther@suse.de>
27866
27867         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27868         when not vectorizing because of too many alias checks.
27869         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27870         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27871
27872 2014-02-05  Nick Clifton  <nickc@redhat.com>
27873
27874         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27875         accept extended registers in any mode when compiling for the MN10300.
27876
27877 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
27878
27879         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27880         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27881         sanitization attributes.
27882         (can_inline_edge_p): Likewise.
27883         (sanitize_attrs_match_for_inline_p): New function.
27884
27885 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
27886
27887         * ipa-prop.c (detect_type_change): Shor circuit testing of
27888         type changes on THIS pointer.
27889
27890 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
27891
27892         PR target/59777
27893         * config/pa/pa.c (legitimize_tls_address): Return original address
27894         if not passed a SYMBOL_REF rtx.
27895         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27896         addresses.
27897         (pa_emit_move_sequence): Simplify TLS source operands.
27898         (pa_legitimate_constant_p): Reject all TLS constants.
27899         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27900         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27901
27902 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
27903
27904         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27905         groups when we know they are controlled by LTO.
27906         * varasm.c (default_binds_local_p_1): If object is in other partition,
27907         it will be resolved locally.
27908
27909 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27910
27911         * config/host-linux.c (linux_gt_pch_use_address): Don't
27912         use SSIZE_MAX because it is not always defined.
27913
27914 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
27915
27916         PR bootstrap/59913
27917         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27918         threshold for pseudo splitting.
27919         (update_ebb_live_info): Process call argument hard registers and
27920         hard registers from insn definition too.
27921         (max_small_class_regs_num): New constant.
27922         (inherit_in_ebb): Update live hard regs through EBBs.  Update
27923         reloads_num only for small register classes.  Don't split for
27924         outputs of jumps.
27925
27926 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
27927
27928         PR ipa/60058
27929         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27930         is non-null.
27931
27932 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
27933
27934         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27935         visibility is safe.
27936
27937 2014-02-04  Marek Polacek  <polacek@redhat.com>
27938
27939         * gdbinit.in (pel): Define.
27940
27941 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27942
27943         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27944         behavior.
27945
27946 2014-02-04  Richard Biener  <rguenther@suse.de>
27947
27948         PR lto/59723
27949         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27950         in function context local.
27951         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27952         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27953         similar to LTO_imported_decl_ref.
27954
27955 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
27956
27957         PR tree-optimization/60002
27958         * cgraphclones.c (build_function_decl_skip_args): Clear
27959         DECL_LANG_SPECIFIC.
27960
27961         PR tree-optimization/60023
27962         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27963         false to gsi_replace.
27964         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27965         has been in some EH region and vec_stmt could throw, add
27966         vec_stmt into the same EH region.
27967         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27968         has no lhs, ignore it.
27969         * internal-fn.c (expand_MASK_LOAD): Likewise.
27970
27971         PR ipa/60026
27972         * tree-inline.c (copy_forbidden): Fail for
27973         __attribute__((optimize (0))) functions.
27974
27975         PR other/58712
27976         * omp-low.c (simd_clone_struct_copy): If from->inbranch
27977         is set, copy one less argument.
27978         (expand_simd_clones): Don't subtract clone_info->inbranch
27979         from simd_clone_struct_alloc argument.
27980
27981         PR rtl-optimization/57915
27982         * recog.c (simplify_while_replacing): If all unary/binary/relational
27983         operation arguments are constant, attempt to simplify those.
27984
27985         PR middle-end/59261
27986         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27987         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27988
27989 2014-02-04  Richard Biener  <rguenther@suse.de>
27990
27991         PR tree-optimization/60012
27992         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27993         TBAA disambiguation to all DDRs.
27994
27995 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27996
27997         PR target/59788
27998         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27999         (LINK_SPEC): Use it for -shared, -shared-libgcc.
28000
28001 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28002
28003         PR ipa/59882
28004         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28005
28006 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28007
28008         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28009         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28010
28011 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28012
28013         PR ipa/59831
28014         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28015         to figure out targets of polymorphic calls with known decl.
28016         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28017         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28018         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28019         (get_polymorphic_call_info): ... here.
28020         (get_polymorphic_call_info_from_invariant): New function.
28021
28022 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28023
28024         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28025         lookup via vtable pointer; check for type consistency
28026         and turn inconsitent facts into UNREACHABLE.
28027         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28028         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28029         type inconsistent querries; return UNREACHABLE instead.
28030
28031 2014-02-03  Richard Henderson  <rth@twiddle.net>
28032
28033         PR tree-opt/59924
28034         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28035         already processed this node.
28036         (normalize_one_pred_1): Pass along mark_set.
28037         (normalize_one_pred): Create and destroy a pointer_set_t.
28038         (normalize_one_pred_chain): Likewise.
28039
28040 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
28041
28042         PR gcov-profile/58602
28043         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28044
28045 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28046
28047         PR ipa/59831
28048         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28049         -fno-devirtualize; try to devirtualize by the knowledge of
28050         virtual table pointer given by aggregate propagation.
28051         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28052         (ipa_print_node_jump_functions): Dump also offset that
28053         is relevant for polymorphic calls.
28054         (determine_known_aggregate_parts): Add arg_type parameter; use it
28055         instead of determining the type from pointer type.
28056         (ipa_compute_jump_functions_for_edge): Update call of
28057         determine_known_aggregate_parts.
28058         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28059         (gimple_get_virt_method_for_binfo): ... here; simplify using
28060         vtable_pointer_value_to_vtable.
28061         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28062         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28063         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28064         (vtable_pointer_value_to_vtable): Break out from ...; handle also
28065         POINTER_PLUS_EXPR.
28066         (vtable_pointer_value_to_binfo): ... here.
28067         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28068
28069 2014-02-03  Teresa Johnson  <tejohnson@google.com>
28070
28071         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28072         redef of outer loop index variable.
28073
28074 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
28075
28076         PR c++/53017
28077         PR c++/59211
28078         * doc/extend.texi (Function Attributes): Typo.
28079
28080 2014-02-03  Cong Hou  <congh@google.com>
28081
28082         PR tree-optimization/60000
28083         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28084         if the vectorized statement is a store.  A store statement can only
28085         appear at the end of pattern statements.
28086
28087 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
28088
28089         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28090         (ix86_option_override_internal): Default long double to 64-bit for
28091         32-bit Bionic and to 128-bit for 64-bit Bionic.
28092
28093         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28094         TARGET_LONG_DOUBLE_128 is true.
28095         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28096
28097         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28098         (mlong-double-64): Negate -mlong-double-128.
28099         (mlong-double-128): New option.
28100
28101         * config/i386/i386-c.c (ix86_target_macros): Define
28102         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28103
28104         * doc/invoke.texi: Document -mlong-double-128.
28105
28106 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
28107
28108         PR rtl-optimization/60024
28109         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28110
28111 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
28112
28113         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28114
28115 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
28116
28117         PR rtl-optimization/57662
28118         * sel-sched.c (code_motion_path_driver): Do not mark already not
28119         existing blocks in the visiting bitmap.
28120
28121 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
28122
28123         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28124         on the insn being emitted.
28125
28126 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
28127             Will Deacon  <will.deacon@arm.com>
28128
28129         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28130
28131 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28132
28133         * config/arm/arm-tables.opt: Regenerate.
28134
28135 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28136
28137         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28138         for vector types other than V16QImode.
28139         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28140         define_expand, and call altivec_expand_vec_perm_le when producing
28141         code with little endian element order.
28142         (*altivec_vperm_<mode>_internal): New insn having previous
28143         behavior of altivec_vperm_<mode>.
28144         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28145         altivec_expand_vec_perm_le when producing code with little endian
28146         element order.
28147         (*altivec_vperm_<mode>_uns_internal): New insn having previous
28148         behavior of altivec_vperm_<mode>_uns.
28149
28150 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28151
28152         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28153         (altivec_vsumsws): Add handling for -maltivec=be with a little
28154         endian target.
28155         (altivec_vsumsws_direct): New.
28156         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28157         gen_altivec_vsumsws.
28158
28159 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
28160
28161         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28162         vtable_pointer_value_to_binfo): New functions.
28163         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28164         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28165
28166 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
28167
28168         * config/nios2/nios2.md (load_got_register): Initialize GOT
28169         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28170         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28171
28172 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
28173
28174         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28175         preserverd by passthrough, do not propagate the type.
28176
28177 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28178
28179         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28180         (mips_atomic_assign_expand_fenv): New function.
28181         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28182
28183 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28184
28185         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28186         (__builtin_mips_set_fcsr): Likewise.
28187         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28188         MIPS_USI_FTYPE_VOID.
28189         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28190         (mips16_expand_set_fcsr): Likewise.
28191         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28192         (mips16_set_fcsr_stub): Likewise.
28193         (mips16_get_fcsr_one_only_stub): New class.
28194         (mips16_set_fcsr_one_only_stub): Likewise.
28195         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28196         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28197         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28198         (hard_float): New availability predicate.
28199         (mips_builtins): Add get_fcsr and set_fcsr.
28200         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28201         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28202         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28203         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28204         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28205         patterns.
28206
28207 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28208
28209         * config/mips/mips.c (mips_one_only_stub): New class.
28210         (mips_need_mips16_rdhwr_p): Replace with...
28211         (mips16_rdhwr_stub): ...this new variable.
28212         (mips16_stub_call_address): New function.
28213         (mips16_rdhwr_one_only_stub): New class.
28214         (mips_expand_thread_pointer): Use mips16_stub_call_address.
28215         (mips_output_mips16_rdhwr): Delete.
28216         (mips_finish_stub): New function.
28217         (mips_code_end): Use it to handle rdhwr stubs.
28218
28219 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
28220
28221         PR target/60017
28222         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28223         when calculating size of integer atomic types.
28224
28225 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
28226
28227         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28228
28229 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
28230
28231         PR tree-optimization/60003
28232         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28233         * profile.c (branch_prob): Use gimple_call_builtin_p
28234         to check for BUILT_IN_SETJMP_RECEIVER.
28235         * tree-inline.c (copy_bb): Call notice_special_calls.
28236
28237 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
28238
28239         PR bootstrap/59985
28240         * lra-constraints.c (process_alt_operands): Update reload_sum only
28241         on the first pass.
28242
28243 2014-01-31  Richard Henderson  <rth@redhat.com>
28244
28245         PR middle-end/60004
28246         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28247         until after else_eh is processed.
28248
28249 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
28250
28251         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28252         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28253         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28254         in smmintrin.h, remove them.
28255         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28256         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28257         * config/i386/i386.md (ROUND_SAE): Fix value.
28258         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28259         (const48_operand): New.
28260         * config/i386/subst.md (round), (round_expand): Use
28261         const_4_or_8_to_11_operand.
28262         (round_saeonly), (round_saeonly_expand): Use const48_operand.
28263
28264 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
28265
28266         * config/i386/constraints.md (Yk): Swap meaning with k.
28267         * config/i386/i386.md (movhi_internal): Change Yk to k.
28268         (movqi_internal): Ditto.
28269         (*k<logic><mode>): Ditto.
28270         (*andhi_1): Ditto.
28271         (*andqi_1): Ditto.
28272         (kandn<mode>): Ditto.
28273         (*<code>hi_1): Ditto.
28274         (*<code>qi_1): Ditto.
28275         (kxnor<mode>): Ditto.
28276         (kortestzhi): Ditto.
28277         (kortestchi): Ditto.
28278         (kunpckhi): Ditto.
28279         (*one_cmplhi2_1): Ditto.
28280         (*one_cmplqi2_1): Ditto.
28281         * config/i386/sse.md (): Change k to Yk.
28282         (avx512f_load<mode>_mask): Ditto.
28283         (avx512f_blendm<mode>): Ditto.
28284         (avx512f_store<mode>_mask): Ditto.
28285         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28286         (avx512f_storedqu<mode>_mask): Ditto.
28287         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28288         Ditto.
28289         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28290         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28291         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28292         (avx512f_maskcmp<mode>3): Ditto.
28293         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28294         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28295         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28296         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28297         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28298         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28299         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28300         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28301         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28302         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28303         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28304         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28305         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28306         (vec_extract_lo_<mode>_maskm): Ditto.
28307         (vec_extract_hi_<mode>_maskm): Ditto.
28308         (avx512f_vternlog<mode>_mask): Ditto.
28309         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28310         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28311         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28312         (avx512f_<code>v8div16qi2_mask): Ditto.
28313         (avx512f_<code>v8div16qi2_mask_store): Ditto.
28314         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28315         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28316         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28317         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28318         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28319         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28320         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28321         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28322         (avx512cd_maskb_vec_dupv8di): Ditto.
28323         (avx512cd_maskw_vec_dupv16si): Ditto.
28324         (avx512f_vpermi2var<mode>3_maskz): Ditto.
28325         (avx512f_vpermi2var<mode>3_mask): Ditto.
28326         (avx512f_vpermi2var<mode>3_mask): Ditto.
28327         (avx512f_vpermt2var<mode>3_maskz): Ditto.
28328         (*avx512f_gathersi<mode>): Ditto.
28329         (*avx512f_gathersi<mode>_2): Ditto.
28330         (*avx512f_gatherdi<mode>): Ditto.
28331         (*avx512f_gatherdi<mode>_2): Ditto.
28332         (*avx512f_scattersi<mode>): Ditto.
28333         (*avx512f_scatterdi<mode>): Ditto.
28334         (avx512f_compress<mode>_mask): Ditto.
28335         (avx512f_compressstore<mode>_mask): Ditto.
28336         (avx512f_expand<mode>_mask): Ditto.
28337         * config/i386/subst.md (mask): Change k to Yk.
28338         (mask_scalar_merge): Ditto.
28339         (sd): Ditto.
28340
28341 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
28342
28343         * doc/extend.texi (Vector Extensions): Document ?: in C++.
28344
28345 2014-01-31  Richard Biener  <rguenther@suse.de>
28346
28347         PR middle-end/59990
28348         * builtins.c (fold_builtin_memory_op): Make sure to not
28349         use a floating-point mode or a boolean or enumeral type for
28350         the copy operation.
28351
28352 2014-01-30  DJ Delorie  <dj@redhat.com>
28353
28354         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28355         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28356         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28357         whenever main() has an epilogue.
28358
28359 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28360
28361         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28362         unused variable "field".
28363         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28364         (vsx_mergeh_<mode>): Likewise.
28365         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28366         (altivec_vmrghh): Likewise.
28367         (altivec_vmrghw): Likewise.
28368         (altivec_vmrglb): Likewise.
28369         (altivec_vmrglh): Likewise.
28370         (altivec_vmrglw): Likewise.
28371         (altivec_vspltb): Add missing uses.
28372         (altivec_vsplth): Likewise.
28373         (altivec_vspltw): Likewise.
28374         (altivec_vspltsf): Likewise.
28375
28376 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
28377
28378         PR target/59923
28379         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28380         frame related instructions.
28381
28382 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28383
28384         PR rtl-optimization/59959
28385         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28386         any reload of register whose subreg is invalid.
28387
28388 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
28389
28390         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28391         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28392         Add missing return type - void.
28393
28394 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28395
28396         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28397         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28398         remove element index adjustment for endian (now handled in vsx.md
28399         and altivec.md).
28400         (altivec_expand_vec_perm_const): Use
28401         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28402         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28403         (vsx_xxspltw_<mode>): Adjust element index for little endian.
28404         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28405         define_expand and a new define_insn *altivec_vspltb_internal;
28406         adjust for -maltivec=be on a little endian target.
28407         (altivec_vspltb_direct): New.
28408         (altivec_vsplth): Divide into a define_expand and a new
28409         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28410         little endian target.
28411         (altivec_vsplth_direct): New.
28412         (altivec_vspltw): Divide into a define_expand and a new
28413         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28414         little endian target.
28415         (altivec_vspltw_direct): New.
28416         (altivec_vspltsf): Divide into a define_expand and a new
28417         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28418         a little endian target.
28419
28420 2014-01-30  Richard Biener  <rguenther@suse.de>
28421
28422         PR tree-optimization/59993
28423         * tree-ssa-forwprop.c (associate_pointerplus): Check we
28424         can propagate form the earlier stmt and avoid the transform
28425         when the intermediate result is needed.
28426
28427 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
28428
28429         * README.Portability: Fix typo.
28430
28431 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
28432
28433         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28434         comparison_operator with ordered_comparison_operator.
28435
28436 2014-01-30  Nick Clifton  <nickc@redhat.com>
28437
28438         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28439         Rename to mn10300_store_multiple_regs.
28440         * config/mn10300/mn10300.c: Likewise.
28441         * config/mn10300/mn10300.md (store_movm): Fix typo: call
28442         store_multiple_regs.
28443         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28444         Call mn10300_store_multiple_regs.
28445
28446 2014-01-30  Nick Clifton  <nickc@redhat.com>
28447             DJ Delorie  <dj@redhat.com>
28448
28449         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28450         %fp 2 to keep registers after it properly word-aligned.
28451         (rl78_alloc_physical_registers_umul): Handle the case where both
28452         input operands are the same.
28453
28454 2014-01-30  Richard Biener  <rguenther@suse.de>
28455
28456         PR tree-optimization/59903
28457         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28458         check properly.
28459
28460 2014-01-30  Jason Merrill  <jason@redhat.com>
28461
28462         PR c++/59633
28463         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28464
28465         PR c++/59645
28466         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28467
28468 2014-01-30  Richard Biener  <rguenther@suse.de>
28469
28470         PR tree-optimization/59951
28471         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28472
28473 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
28474
28475         PR target/59784
28476         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28477         SFmode to DFmode case.
28478
28479 2014-01-29  DJ Delorie  <dj@redhat.com>
28480
28481         * config/msp430/msp430.opt (-minrt): New.
28482         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28483         if -minrt given.
28484         (ENDFILE_SPEC): Likewise.
28485
28486 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
28487
28488         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28489         (estimate_function_body_sizes): Use it.
28490
28491 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
28492
28493         PR c++/58561
28494         * dwarf2out.c (is_cxx_auto): New.
28495         (is_base_type): Use it.
28496         (gen_type_die_with_usage): Likewise.
28497
28498 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28499
28500         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
28501         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28502         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28503         -maltivec=be with LE targets.
28504         (vsx_mergeh_<mode>): Likewise.
28505         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28506         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28507         (altivec_vmrghb): Replace with define_expand and new
28508         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28509         (altivec_vmrghb_direct): New define_insn.
28510         (altivec_vmrghh): Replace with define_expand and new
28511         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28512         (altivec_vmrghh_direct): New define_insn.
28513         (altivec_vmrghw): Replace with define_expand and new
28514         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28515         (altivec_vmrghw_direct): New define_insn.
28516         (*altivec_vmrghsf): Adjust for endianness.
28517         (altivec_vmrglb): Replace with define_expand and new
28518         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28519         (altivec_vmrglb_direct): New define_insn.
28520         (altivec_vmrglh): Replace with define_expand and new
28521         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28522         (altivec_vmrglh_direct): New define_insn.
28523         (altivec_vmrglw): Replace with define_expand and new
28524         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28525         (altivec_vmrglw_direct): New define_insn.
28526         (*altivec_vmrglsf): Adjust for endianness.
28527         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28528         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28529         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28530         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28531         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28532         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28533         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28534         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28535
28536 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28537
28538         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28539         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28540         whitespace.
28541
28542 2014-01-29  Richard Biener  <rguenther@suse.de>
28543
28544         PR tree-optimization/58742
28545         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28546         associate_pointerplus_align.
28547         (associate_pointerplus_diff): New function.
28548         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
28549         and associate_pointerplus_diff.
28550
28551 2014-01-29  Richard Biener  <rguenther@suse.de>
28552
28553         * lto-streamer.h (LTO_major_version): Bump to 3.
28554         (LTO_minor_version): Reset to 0.
28555
28556 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
28557
28558         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28559         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28560         (arm_file_start): Generate correct asm header for armv7ve.
28561         * config/arm/bpabi.h: Add multilib support for armv7ve.
28562         * config/arm/driver-arm.c: Change the architectures of cortex-a7
28563         and cortex-a15 to armv7ve.
28564         * config/arm/t-aprofile: Add multilib support for armv7ve.
28565         * doc/invoke.texi: Document -march=armv7ve.
28566
28567 2014-01-29  Richard Biener  <rguenther@suse.de>
28568
28569         PR tree-optimization/58742
28570         * tree-ssa-forwprop.c (associate_plusminus): Return true
28571         if we changed sth, defer EH cleanup to ...
28572         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
28573         (simplify_mult): New function.
28574
28575 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
28576
28577         PR middle-end/59917
28578         PR tree-optimization/59920
28579         * tree.c (build_common_builtin_nodes): Remove
28580         __builtin_setjmp_dispatcher initialization.
28581         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28582         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28583         instead of gsi_after_labels + manually skipping debug stmts.
28584         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28585         ignore bbs with IFN_ABNORMAL_DISPATCHER.
28586         * tree-inline.c (copy_edges_for_bb): Remove
28587         can_make_abnormal_goto argument, instead add abnormal_goto_dest
28588         argument.  Ignore computed_goto_p stmts.  Don't call
28589         make_abnormal_goto_edges.  If a call might need abnormal edges
28590         for non-local gotos, see if it already has an edge to
28591         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28592         with true argument, don't do anything then, otherwise add
28593         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28594         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28595         caller.
28596         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28597         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28598         (lower_stmt): Don't set data->calls_builtin_setjmp.
28599         (lower_builtin_setjmp): Adjust comment.
28600         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28601         * tree-cfg.c (found_computed_goto): Remove.
28602         (factor_computed_gotos): Remove.
28603         (make_goto_expr_edges): Return bool, true for computed gotos.
28604         Don't call make_abnormal_goto_edges.
28605         (build_gimple_cfg): Don't set found_computed_goto, don't call
28606         factor_computed_gotos.
28607         (computed_goto_p): No longer static.
28608         (make_blocks): Don't set found_computed_goto.
28609         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28610         (make_edges): If make_goto_expr_edges returns true, push bb
28611         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28612         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28613         vector.  Record mapping between bbs and OpenMP regions if there
28614         are any, adjust make_gimple_omp_edges caller.  Call
28615         handle_abnormal_edges.
28616         (make_abnormal_goto_edges): Remove.
28617         * tree-cfg.h (make_abnormal_goto_edges): Remove.
28618         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28619         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28620         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28621         * internal-fn.def (ABNORMAL_DISPATCHER): New.
28622         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28623         filling *region also set *region_idx to (*region)->entry->index.
28624
28625         PR other/58712
28626         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28627         For REGs set ORIGINAL_REGNO.
28628
28629 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
28630
28631         * doc/md.texi: Mention that a target shouldn't implement
28632         vec_widen_(s|u)mul_even/odd pair if it is less efficient
28633         than hi/lo pair.
28634
28635 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
28636
28637         PR tree-optimization/59594
28638         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28639         a copy of the datarefs vector rather than the vector itself.
28640
28641 2014-01-28  Jason Merrill  <jason@redhat.com>
28642
28643         PR c++/53756
28644         * dwarf2out.c (auto_die): New static.
28645         (gen_type_die_with_usage): Handle C++1y 'auto'.
28646         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28647         on definition.
28648
28649 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
28650
28651         PR target/59672
28652         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28653         (SPEC_X32): Likewise.
28654         (SPEC_64): Likewise.
28655         * config/i386/i386.c (ix86_option_override_internal): Turn off
28656         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28657         for TARGET_16BIT.
28658         (x86_file_start): Output .code16gcc for TARGET_16BIT.
28659         * config/i386/i386.h (TARGET_16BIT): New macro.
28660         (TARGET_16BIT_P): Likewise.
28661         * config/i386/i386.opt: Add m16.
28662         * doc/invoke.texi: Document -m16.
28663
28664 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
28665
28666         PR preprocessor/59935
28667         * input.c (location_get_source_line): Bail out on when line number
28668         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28669
28670 2014-01-28  Richard Biener  <rguenther@suse.de>
28671
28672         PR tree-optimization/58742
28673         * tree-ssa-forwprop.c (associate_plusminus): Handle
28674         pointer subtraction of the form (T)(P + A) - (T)P.
28675
28676 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28677
28678         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28679         at const_int_cost.
28680
28681 2014-01-28  Richard Biener  <rguenther@suse.de>
28682
28683         Revert
28684         2014-01-28  Richard Biener  <rguenther@suse.de>
28685
28686         PR rtl-optimization/45364
28687         PR rtl-optimization/59890
28688         * var-tracking.c (local_get_addr_clear_given_value): Handle
28689         already cleared slot.
28690         (val_reset): Handle not allocated local_get_addr_cache.
28691         (vt_find_locations): Use post-order on the inverted CFG.
28692
28693 2014-01-28  Richard Biener  <rguenther@suse.de>
28694
28695         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28696
28697 2014-01-28  Richard Biener  <rguenther@suse.de>
28698
28699         PR rtl-optimization/45364
28700         PR rtl-optimization/59890
28701         * var-tracking.c (local_get_addr_clear_given_value): Handle
28702         already cleared slot.
28703         (val_reset): Handle not allocated local_get_addr_cache.
28704         (vt_find_locations): Use post-order on the inverted CFG.
28705
28706 2014-01-28  Alan Modra  <amodra@gmail.com>
28707
28708         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28709         * configure.ac <recursive call for build != host>: Define
28710         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28711         and LD_FOR_BUILD too.
28712         * configure: Regenerate.
28713
28714 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
28715
28716         * config/i386/i386.c (get_builtin_code_for_version): Separate
28717         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28718         Broadwell from Haswell.
28719
28720 2014-01-27  Steve Ellcey  <sellcey@mips.com>
28721
28722         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28723         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28724         * config/mips/mips.c (mips_option_override): Change setting
28725         of TARGET_DSP.
28726         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28727         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28728         Change from Mask to Var.
28729
28730 2014-01-27  Jeff Law  <law@redhat.com>
28731
28732         * ipa-inline.c (inline_small_functions): Fix typo.
28733
28734 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
28735
28736         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28737         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28738         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28739         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28740         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28741         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28742         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28743         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28744         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28745         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28746         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28747         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28748         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28749         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28750         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28751         (_mm512_storeu_epi64): Ditto.
28752         (_mm512_cmpge_epi32_mask): Ditto.
28753         (_mm512_cmpge_epu32_mask): Ditto.
28754         (_mm512_cmpge_epi64_mask): Ditto.
28755         (_mm512_cmpge_epu64_mask): Ditto.
28756         (_mm512_cmple_epi32_mask): Ditto.
28757         (_mm512_cmple_epu32_mask): Ditto.
28758         (_mm512_cmple_epi64_mask): Ditto.
28759         (_mm512_cmple_epu64_mask): Ditto.
28760         (_mm512_cmplt_epi32_mask): Ditto.
28761         (_mm512_cmplt_epu32_mask): Ditto.
28762         (_mm512_cmplt_epi64_mask): Ditto.
28763         (_mm512_cmplt_epu64_mask): Ditto.
28764         (_mm512_cmpneq_epi32_mask): Ditto.
28765         (_mm512_cmpneq_epu32_mask): Ditto.
28766         (_mm512_cmpneq_epi64_mask): Ditto.
28767         (_mm512_cmpneq_epu64_mask): Ditto.
28768         (_mm512_expand_pd): Ditto.
28769         (_mm512_expand_ps): Ditto.
28770         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28771         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28772         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28773         * config/i386/i386.c (ix86_builtins): Add
28774         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28775         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28776         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28777         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28778         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28779         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28780         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28781         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28782         IX86_BUILTIN_PMOVUSQW512_MEM.
28783         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28784         __builtin_ia32_pmovsqd512mem_mask,
28785         __builtin_ia32_pmovqd512mem_mask,
28786         __builtin_ia32_pmovusqw512mem_mask,
28787         __builtin_ia32_pmovsqw512mem_mask,
28788         __builtin_ia32_pmovqw512mem_mask,
28789         __builtin_ia32_pmovusdw512mem_mask,
28790         __builtin_ia32_pmovsdw512mem_mask,
28791         __builtin_ia32_pmovdw512mem_mask,
28792         __builtin_ia32_pmovqb512mem_mask,
28793         __builtin_ia32_pmovusqb512mem_mask,
28794         __builtin_ia32_pmovsqb512mem_mask,
28795         __builtin_ia32_pmovusdb512mem_mask,
28796         __builtin_ia32_pmovsdb512mem_mask,
28797         __builtin_ia32_pmovdb512mem_mask.
28798         (bdesc_args): Add __builtin_ia32_expanddf512,
28799         __builtin_ia32_expandsf512.
28800         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28801         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28802         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28803         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28804         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28805         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28806         (avx512f_<code>v8div16qi2_mask_store): This.
28807         (avx512f_expand<mode>): New.
28808
28809 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
28810
28811         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28812         New.
28813         (_mm512_mask_prefetch_i64gather_pd): Ditto.
28814         (_mm512_prefetch_i32scatter_pd): Ditto.
28815         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28816         (_mm512_prefetch_i64scatter_pd): Ditto.
28817         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28818         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28819         (_mm512_mask_prefetch_i64gather_ps): Ditto.
28820         (_mm512_prefetch_i32scatter_ps): Ditto.
28821         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28822         (_mm512_prefetch_i64scatter_ps): Ditto.
28823         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28824         * config/i386/i386-builtin-types.def: Define
28825         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28826         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28827         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28828         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28829         IX86_BUILTIN_SCATTERPFQPD.
28830         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28831         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28832         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28833         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28834         __builtin_ia32_scatterpfqps.
28835         (ix86_expand_builtin): Expand new built-ins.
28836         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28837         fix memory access data type.
28838         (*avx512pf_gatherpf<mode>_mask): Ditto.
28839         (*avx512pf_gatherpf<mode>): Ditto.
28840         (avx512pf_scatterpf<mode>): Ditto.
28841         (*avx512pf_scatterpf<mode>_mask): Ditto.
28842         (*avx512pf_scatterpf<mode>): Ditto.
28843         (GATHER_SCATTER_SF_MEM_MODE): New.
28844         (avx512pf_gatherpf<mode>df): Ditto.
28845         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28846         (*avx512pf_scatterpf<mode>df): Ditto.
28847
28848 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
28849
28850         PR bootstrap/59934
28851         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28852         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28853         reached.
28854
28855 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
28856
28857         * common/config/arm/arm-common.c
28858         (arm_rewrite_mcpu): Handle multiple names.
28859         * config/arm/arm.h
28860         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28861
28862 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
28863
28864         * gimple-builder.h (create_gimple_tmp): Delete.
28865
28866 2014-01-27  Christian Bruel  <christian.bruel@st.com>
28867
28868         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28869         words comparisons.
28870
28871 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
28872
28873         * config/pa/pa.md (call): Generate indirect long calls to non-local
28874         functions when outputing 32-bit code.
28875         (call_value): Likewise except for special call to buggy powf function.
28876
28877         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28878         portable runtime and PIC indirect calls.
28879         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28880         and PIC call sequences.  Use ldo instead of blr to set return register
28881         in PIC call sequence.
28882
28883 2014-01-25  Walter Lee  <walt@tilera.com>
28884
28885         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28886         avoid clobbering a live register.
28887
28888 2014-01-25  Walter Lee  <walt@tilera.com>
28889
28890         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28891         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28892         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28893         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28894
28895 2014-01-25  Walter Lee  <walt@tilera.com>
28896
28897         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28898         arguments on even registers.
28899         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28900         STACK_BOUNDARY.
28901         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28902         (BIGGEST_ALIGNMENT): Ditto.
28903         (BIGGEST_FIELD_ALIGNMENT): Ditto.
28904
28905 2014-01-25  Walter Lee  <walt@tilera.com>
28906
28907         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28908         insns before bundling.
28909         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28910
28911 2014-01-25  Walter Lee  <walt@tilera.com>
28912
28913         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28914         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28915         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28916
28917 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
28918
28919         * config/mips/constraints.md (kl): Delete.
28920         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28921         define expands, using...
28922         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28923         instructions for MIPS16.
28924         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28925         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28926
28927 2014-01-25  Walter Lee  <walt@tilera.com>
28928
28929         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28930         (clzdi2): Ditto.
28931         (ffsdi2): Ditto.
28932
28933 2014-01-25  Walter Lee  <walt@tilera.com>
28934
28935         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28936         (TARGET_EXPAND_TO_RTL_HOOK): Define.
28937
28938 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
28939
28940         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28941         Handle XOR.
28942
28943 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
28944
28945         * print-rtl.c (in_call_function_usage): New var.
28946         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28947         EXPR_LIST mode as mode and not as reg note name.
28948
28949         PR middle-end/59561
28950         * cfgloopmanip.c (copy_loop_info): If
28951         loop->warned_aggressive_loop_optimizations, make sure
28952         the flag is set in target loop too.
28953
28954 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
28955
28956         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28957         flag_cilkplus.
28958         * builtins.def: Likewise.
28959         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28960         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28961         * ira.c (ira_setup_eliminable_regset): Likewise.
28962         * omp-low.c (gate_expand_omp): Likewise.
28963         (execute_lower_omp): Likewise.
28964         (diagnose_sb_0): Likewise.
28965         (gate_diagnose_omp_blocks): Likewise.
28966         (simd_clone_clauses_extract): Likewise.
28967         (gate): Likewise.
28968
28969 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28970
28971         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28972         correction for little endian...
28973         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28974         here.
28975
28976 2014-01-24  Jeff Law  <law@redhat.com>
28977
28978         PR tree-optimization/59919
28979         * tree-vrp.c (find_assert_locations_1): Do not register asserts
28980         for non-returning calls.
28981
28982 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
28983
28984         * common/config/aarch64/aarch64-common.c
28985         (aarch64_rewrite_mcpu): Handle multiple names.
28986         * config/aarch64/aarch64.h
28987         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28988
28989 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
28990
28991         * input.c (add_file_to_cache_tab): Handle the case where fopen
28992         returns NULL.
28993
28994 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
28995
28996         PR target/59929
28997         * config/i386/i386.md (pushsf splitter): Get stack adjustment
28998         from push operand if code of push isn't PRE_DEC.
28999
29000 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
29001
29002         PR target/59909
29003         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29004         -mquad-memory-atomic.  Update -mquad-memory documentation to say
29005         it is only used for non-atomic loads/stores.
29006
29007         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29008         -mquad-memory or -mquad-memory-atomic switches.
29009
29010         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29011         -mquad-memory-atomic to ISA 2.07 support.
29012
29013         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29014         to separate support of normal quad word memory operations (ldq, stq)
29015         from the atomic quad word memory operations.
29016
29017         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29018         support to separate non-atomic quad word operations from atomic
29019         quad word operations.  Disable non-atomic quad word operations in
29020         little endian mode so that we don't have to swap words after the
29021         load and before the store.
29022         (quad_load_store_p): Add comment about atomic quad word support.
29023         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29024         options printed with -mdebug=reg.
29025
29026         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29027         -mquad-memory-atomic as the test for whether we have quad word
29028         atomic instructions.
29029         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29030         or -mp8-vector are used, allow byte/half-word atomic operations.
29031
29032         * config/rs6000/sync.md (load_lockedti): Insure that the address
29033         is a proper indexed or indirect address for the lqarx instruction.
29034         On little endian systems, swap the hi/lo registers after the lqarx
29035         instruction.
29036         (load_lockedpti): Use indexed_or_indirect_operand predicate to
29037         insure the address is valid for the lqarx instruction.
29038         (store_conditionalti): Insure that the address is a proper indexed
29039         or indirect address for the stqcrx. instruction.  On little endian
29040         systems, swap the hi/lo registers before doing the stqcrx.
29041         instruction.
29042         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29043         insure the address is valid for the stqcrx. instruction.
29044
29045         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29046         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29047         type of quad memory support is available.
29048
29049 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
29050
29051         PR regression/59915
29052         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29053         there is a danger of looping.
29054
29055 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
29056
29057         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29058         force flag_ira_loop_pressure if set via command line.
29059
29060 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29061
29062         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29063         (ashr_simd): New builtin handling DI mode.
29064         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29065         (aarch64_sshr_simddi): New match pattern.
29066         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29067         (vshrd_n_s64): Likewise.
29068         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29069
29070 2014-01-23  Nick Clifton  <nickc@redhat.com>
29071
29072         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29073         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29074         favour of mcu specific scripts.
29075         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29076         430x multilibs.
29077
29078 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
29079             Alex Velenko  <Alex.Velenko@arm.com>
29080
29081         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29082         (vaddv_s16): Likewise.
29083         (vaddv_s32): Likewise.
29084         (vaddv_u8): Likewise.
29085         (vaddv_u16): Likewise.
29086         (vaddv_u32): Likewise.
29087         (vaddvq_s8): Likewise.
29088         (vaddvq_s16): Likewise.
29089         (vaddvq_s32): Likewise.
29090         (vaddvq_s64): Likewise.
29091         (vaddvq_u8): Likewise.
29092         (vaddvq_u16): Likewise.
29093         (vaddvq_u32): Likewise.
29094         (vaddvq_u64): Likewise.
29095         (vaddv_f32): Likewise.
29096         (vaddvq_f32): Likewise.
29097         (vaddvq_f64): Likewise.
29098         (vmaxv_f32): Likewise.
29099         (vmaxv_s8): Likewise.
29100         (vmaxv_s16): Likewise.
29101         (vmaxv_s32): Likewise.
29102         (vmaxv_u8): Likewise.
29103         (vmaxv_u16): Likewise.
29104         (vmaxv_u32): Likewise.
29105         (vmaxvq_f32): Likewise.
29106         (vmaxvq_f64): Likewise.
29107         (vmaxvq_s8): Likewise.
29108         (vmaxvq_s16): Likewise.
29109         (vmaxvq_s32): Likewise.
29110         (vmaxvq_u8): Likewise.
29111         (vmaxvq_u16): Likewise.
29112         (vmaxvq_u32): Likewise.
29113         (vmaxnmv_f32): Likewise.
29114         (vmaxnmvq_f32): Likewise.
29115         (vmaxnmvq_f64): Likewise.
29116         (vminv_f32): Likewise.
29117         (vminv_s8): Likewise.
29118         (vminv_s16): Likewise.
29119         (vminv_s32): Likewise.
29120         (vminv_u8): Likewise.
29121         (vminv_u16): Likewise.
29122         (vminv_u32): Likewise.
29123         (vminvq_f32): Likewise.
29124         (vminvq_f64): Likewise.
29125         (vminvq_s8): Likewise.
29126         (vminvq_s16): Likewise.
29127         (vminvq_s32): Likewise.
29128         (vminvq_u8): Likewise.
29129         (vminvq_u16): Likewise.
29130         (vminvq_u32): Likewise.
29131         (vminnmv_f32): Likewise.
29132         (vminnmvq_f32): Likewise.
29133         (vminnmvq_f64): Likewise.
29134
29135 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
29136
29137         * config/aarch64/aarch64-simd.md
29138         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29139         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29140         (*aarch64_mul3_elt<mode>): Likewise.
29141         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29142         (*aarch64_mul3_elt_to_64v2df): Likewise.
29143         (*aarch64_mla_elt<mode>): Likewise.
29144         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29145         (*aarch64_mls_elt<mode>): Likewise.
29146         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29147         (*aarch64_fma4_elt<mode>): Likewise.
29148         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29149         (*aarch64_fma4_elt_to_64v2df): Likewise.
29150         (*aarch64_fnma4_elt<mode>): Likewise.
29151         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29152         (*aarch64_fnma4_elt_to_64v2df): Likewise.
29153         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29154         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29155         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29156         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29157         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29158         (aarch64_sqdmull_lane<mode>_internal): Likewise.
29159         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29160
29161 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29162
29163         * config/aarch64/aarch64-simd.md
29164         (aarch64_be_checked_get_lane<mode>): New define_expand.
29165         * config/aarch64/aarch64-simd-builtins.def
29166         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29167         New builtin definition.
29168         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29169         Use new safe be builtin.
29170
29171 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29172
29173         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29174         New define_insn.
29175         (aarch64_be_st1<mode>): Likewise.
29176         (aarch_ld1<VALL:mode>): Define_expand modified.
29177         (aarch_st1<VALL:mode>): Likewise.
29178         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29179         (UNSPEC_ST1): Likewise.
29180
29181 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
29182
29183         * config/microblaze/microblaze.md: Add trap insn and attribute
29184
29185 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
29186
29187         PR preprocessor/58580
29188         * input.h (location_get_source_line): Take an additional line_size
29189         parameter.
29190         (void diagnostics_file_cache_fini): Declare new function.
29191         * input.c (struct fcache): New type.
29192         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29193         New static constants.
29194         (diagnostic_file_cache_init, total_lines_num)
29195         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29196         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29197         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29198         (get_next_line, read_next_line, goto_next_line, read_line_num):
29199         New static function definitions.
29200         (diagnostic_file_cache_fini): New function.
29201         (location_get_source_line): Take an additional output line_len
29202         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
29203         read_line_num.
29204         * diagnostic.c (diagnostic_finish): Call
29205         diagnostic_file_cache_fini.
29206         (adjust_line): Take an additional input parameter for the length
29207         of the line, rather than calculating it with strlen.
29208         (diagnostic_show_locus): Adjust the use of
29209         location_get_source_line and adjust_line with respect to their new
29210         signature.  While displaying a line now, do not stop at the first
29211         null byte.  Rather, display the zero byte as a space and keep
29212         going until we reach the size of the line.
29213         * Makefile.in: Add vec.o to OBJS-libcommon
29214
29215 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
29216             Ilya Tocar  <ilya.tocar@intel.com>
29217
29218         * config/i386/avx512fintrin.h (_mm512_kmov): New.
29219         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29220         (__builtin_ia32_kmov16): Ditto.
29221         * config/i386/i386.md (UNSPEC_KMOV): New.
29222         (kmovw): Ditto.
29223
29224 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
29225
29226         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29227         (_mm512_storeu_si512): Ditto.
29228
29229 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
29230
29231         PR target/52125
29232         * rtl.h (get_referenced_operands): Declare.
29233         * recog.c (get_referenced_operands): New function.
29234         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29235         operands have been referenced when recording LO_SUM references.
29236
29237 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
29238
29239         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29240
29241 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
29242
29243         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29244         Enable for generic and recent AMD targets.
29245
29246 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
29247
29248         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29249         ARG_SIZE note when adjustment was eliminated.
29250
29251 2014-01-22  Jeff Law  <law@redhat.com>
29252
29253         PR tree-optimization/59597
29254         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29255         in file.  Accept new argument REGISTERING and use it to modify
29256         dump output appropriately.
29257         (register_jump_thread): Corresponding changes.
29258         (mark_threaded_blocks): Reinstate code to cancel unprofitable
29259         thread paths involving joiner blocks.  Add code to dump cancelled
29260         jump threading paths.
29261
29262 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
29263
29264         PR rtl-optimization/59477
29265         * lra-constraints.c (inherit_in_ebb): Process call for living hard
29266         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
29267
29268 2014-01-22  Tom Tromey  <tromey@redhat.com>
29269
29270         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29271         PARAMS.
29272         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29273
29274 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29275
29276         PR rtl-optimization/59896
29277         * lra-constraints.c (process_alt_operands): Check unused note for
29278         matched operands of insn with no output reloads.
29279
29280 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
29281
29282         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29283         (mips_move_from_gpr_cost): Likewise.
29284
29285 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29286
29287         PR rtl-optimization/59858
29288         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29289         ira_class_hard_regs_num.
29290         (process_alt_operands): Increase reject for dying matched operand.
29291
29292 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
29293
29294         PR target/59003
29295         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29296         smaller than size, perform several stores or loads and stores
29297         at dst + count - size to store or copy all of size bytes, rather
29298         than just last modesize bytes.
29299
29300 2014-01-20  DJ Delorie  <dj@redhat.com>
29301
29302         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29303         that CLOBBERs are REGs before propogating their values.
29304
29305 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
29306
29307         PR middle-end/59789
29308         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29309         (cgraph_inline_failed_type): New function.
29310         * cgraph.h (DEFCIFCODE): Add type.
29311         (cgraph_inline_failed_type_t): New enum.
29312         (cgraph_inline_failed_type): New prototype.
29313         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29314         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29315         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29316         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29317         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29318         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29319         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29320         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29321         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29322         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29323         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29324         OPTIMIZATION_MISMATCH.
29325         * tree-inline.c (expand_call_inline): Emit errors during
29326         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29327
29328 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
29329
29330         PR target/59685
29331         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29332         mode attribute in insn output.
29333
29334 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
29335
29336         * output.h (output_constant): Delete.
29337         * varasm.c (output_constant): Make private.
29338
29339 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
29340
29341         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29342
29343 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
29344
29345         PR middle-end/59860
29346         * tree.h (fold_builtin_strcat): New prototype.
29347         * builtins.c (fold_builtin_strcat): No longer static.  Add len
29348         argument, if non-NULL, don't call c_strlen.  Optimize
29349         directly into __builtin_memcpy instead of __builtin_strcpy.
29350         (fold_builtin_2): Adjust fold_builtin_strcat caller.
29351         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29352
29353 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
29354
29355         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29356         for SImode_address_operand operands, having only a REG argument.
29357
29358 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29359
29360         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29361         loader name using mbig-endian.
29362         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29363
29364 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
29365
29366         * doc/invoke.texi (-march): Clarify documentation for AArch64.
29367         (-mtune): Likewise.
29368         (-mcpu): Likewise.
29369
29370 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
29371
29372         * config/aarch64/aarch64-protos.h
29373         (aarch64_cannot_change_mode_class_ptr): Declare.
29374         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29375         aarch64_cannot_change_mode_class_ptr): New.
29376         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29377         backend hook aarch64_cannot_change_mode_class.
29378
29379 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
29380
29381         * common/config/aarch64/aarch64-common.c
29382         (aarch64_handle_option): Don't handle any option order logic here.
29383         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29384         selected_cpu, warn on architecture version mismatch.
29385         (aarch64_override_options): Fix parsing order for option strings.
29386
29387 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29388             Iain Sandoe  <iain@codesourcery.com>
29389
29390         PR bootstrap/59496
29391         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29392         warning.  Amend comment to reflect current functionality.
29393
29394 2014-01-20  Richard Biener  <rguenther@suse.de>
29395
29396         PR middle-end/59860
29397         * builtins.c (fold_builtin_strcat): Remove case better handled
29398         by tree-ssa-strlen.c.
29399
29400 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
29401
29402         * config/aarch64/aarch64.opt
29403         (mcpu, march, mtune): Make case-insensitive.
29404
29405 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
29406
29407         PR target/59880
29408         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29409         if operands[1] is a REG or ZERO_EXTEND of a REG.
29410
29411 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
29412
29413         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29414
29415 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
29416
29417         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29418         long non-pic millicode calls.
29419
29420 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29421
29422         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29423
29424 2014-01-19  Kito Cheng  <kito@0xlab.org>
29425
29426         * builtins.c (expand_movstr): Check movstr expand done or fail.
29427
29428 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29429             H.J. Lu  <hongjiu.lu@intel.com>
29430
29431         PR target/59379
29432         * config/i386/i386.md (*lea<mode>): Zero-extend return register
29433         to DImode for zero-extended addresses.
29434
29435 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
29436
29437         PR rtl-optimization/57763
29438         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29439         on the new indirect jump_insn and increment LABEL_NUSES (label).
29440
29441 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
29442
29443         PR bootstrap/59580
29444         PR bootstrap/59583
29445         * config.gcc (x86_archs): New variable.
29446         (x86_64_archs): Likewise.
29447         (x86_cpus): Likewise.
29448         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29449         --with-arch/--with-cpu= options.
29450         Support --with-arch=/--with-cpu={nehalem,westmere,
29451         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29452
29453 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29454
29455         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29456         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
29457
29458 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29459
29460         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29461
29462 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
29463
29464         PR target/58944
29465         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29466         clear cpp_get_options (parse_in)->warn_unused_macros for
29467         ix86_target_macros_internal with cpp_define.
29468
29469 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
29470
29471         * jump.c (delete_related_insns): Keep (use (insn))s.
29472         * reorg.c (redundant_insn): Check for barriers too.
29473
29474 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29475
29476         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29477
29478 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
29479
29480         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29481         call to $$dyncall when TARGET_LONG_CALLS is true.
29482
29483 2014-01-17  Jeff Law  <law@redhat.com>
29484
29485         * ree.c (combine_set_extension): Temporarily disable test for
29486         changing number of hard registers.
29487
29488 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
29489
29490         PR middle-end/58125
29491         * ipa-inline-analysis.c (inline_free_summary):
29492         Do not free summary of aliases.
29493
29494 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
29495
29496         PR middle-end/59706
29497         * gimplify.c (gimplify_expr): Use create_tmp_var
29498         instead of create_tmp_var_raw.  If cond doesn't have
29499         integral type, don't add the IFN_ANNOTATE builtin at all.
29500
29501 2014-01-17  Martin Jambor  <mjambor@suse.cz>
29502
29503         PR ipa/59736
29504         * ipa-cp.c (prev_edge_clone): New variable.
29505         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29506         Also resize prev_edge_clone vector.
29507         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29508         (ipcp_edge_removal_hook): New function.
29509         (ipcp_driver): Register ipcp_edge_removal_hook.
29510
29511 2014-01-17  Andrew Pinski  <apinski@cavium.com>
29512             Steve Ellcey  <sellcey@mips.com>
29513
29514         PR target/59462
29515         * config/mips/mips.c (mips_print_operand): Check operand mode instead
29516         of operator mode.
29517
29518 2014-01-17  Jeff Law  <law@redhat.com>
29519
29520         PR middle-end/57904
29521         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29522         so that pass_ccp runs first.
29523
29524 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29525
29526         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29527         (ix86_adjust_cost): Use !TARGET_XXX.
29528         (do_reorder_for_imul): Likewise.
29529         (swap_top_of_ready_list): Likewise.
29530         (ix86_sched_reorder): Likewise.
29531
29532 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29533
29534         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29535         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
29536         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
29537         (intel_memset): New.  Duplicate slm_memset.
29538         (intel_cost): New.  Duplicate slm_cost.
29539         (m_INTEL): New macro.
29540         (processor_target_table): Add "intel".
29541         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29542         with PROCESSOR_INTEL for "intel".
29543         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
29544         PROCESSOR_SILVERMONT.
29545         (ix86_issue_rate): Likewise.
29546         (ix86_adjust_cost): Likewise.
29547         (ia32_multipass_dfa_lookahead): Likewise.
29548         (swap_top_of_ready_list): Likewise.
29549         (ix86_sched_reorder): Likewise.
29550         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29551         instead of TARGET_OPT_AGU.
29552         * config/i386/i386.h (TARGET_INTEL): New.
29553         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29554         (processor_type): Add PROCESSOR_INTEL.
29555         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29556         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29557
29558 2014-01-17  Marek Polacek  <polacek@redhat.com>
29559
29560         PR c/58346
29561         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29562         size is zero.
29563
29564 2014-01-17  Richard Biener  <rguenther@suse.de>
29565
29566         PR tree-optimization/46590
29567         * opts.c (default_options_table): Add entries for
29568         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29569         all enabled at -O1 but not for -Og.
29570         * common.opt (fbranch-count-reg): Remove Init(1).
29571         (fmove-loop-invariants): Likewise.
29572         (ftree-pta): Likewise.
29573
29574 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
29575
29576         * config/i386/i386.c (ix86_data_alignment): For compatibility with
29577         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29578         decls to at least the GCC 4.8 used alignments.
29579
29580         PR fortran/59440
29581         * tree-nested.c (convert_nonlocal_reference_stmt,
29582         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29583         of GIMPLE_BIND stmts, adjust associated decls.
29584
29585 2014-01-17  Richard Biener  <rguenther@suse.de>
29586
29587         PR tree-optimization/46590
29588         * vec.h (vec<>::bseach): New member function implementing
29589         binary search according to C89 bsearch.
29590         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29591         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29592         bitmap pointer again.  Make accesses_in_loop a flat array.
29593         (mem_ref_obstack): New global.
29594         (outermost_indep_loop): Adjust for mem_ref->stored changes.
29595         (mark_ref_stored): Likewise.
29596         (ref_indep_loop_p_2): Likewise.
29597         (set_ref_stored_in_loop): New helper function.
29598         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29599         (memref_free): Adjust.
29600         (record_mem_ref_loc): Simplify.
29601         (gather_mem_refs_stmt): Adjust.
29602         (sort_locs_in_loop_postorder_cmp): New function.
29603         (analyze_memory_references): Sort accesses_in_loop after
29604         loop postorder number.
29605         (find_ref_loc_in_loop_cmp): New function.
29606         (for_all_locs_in_loop): Find relevant cluster of locs in
29607         accesses_in_loop and iterate without recursion.
29608         (execute_sm): Avoid uninit warning.
29609         (struct ref_always_accessed): Simplify.
29610         (ref_always_accessed::operator ()): Likewise.
29611         (ref_always_accessed_p): Likewise.
29612         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29613         loop postorder numbers here.
29614         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29615         numbers.
29616
29617 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
29618
29619         PR c++/57945
29620         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29621         on decls for which assemble_alias has been called.
29622
29623 2014-01-17  Nick Clifton  <nickc@redhat.com>
29624
29625         * config/msp430/msp430.opt: (mcpu): New option.
29626         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29627         (msp430_option_override): Parse target_cpu.  If the MCU name
29628         matches a generic string, clear target_mcu.
29629         (msp430_attr): Allow numeric interrupt values up to 63.
29630         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29631         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29632         option.
29633         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29634         Add mcpu matches.
29635         * config/msp430/msp430.md (popm): Use %J rather than %I.
29636         (addsi3): Use msp430_nonimmediate_operand for operand 2.
29637         (addhi_cy_i): Use immediate_operand for operand 2.
29638         * doc/invoke.texi: Document -mcpu option.
29639
29640 2014-01-17  Richard Biener  <rguenther@suse.de>
29641
29642         PR rtl-optimization/38518
29643         * df.h (df_analyze_loop): Declare.
29644         * df-core.c: Include cfgloop.h.
29645         (df_analyze_1): Split out main part of df_analyze.
29646         (df_analyze): Adjust.
29647         (loop_inverted_post_order_compute): New function.
29648         (loop_post_order_compute): Likewise.
29649         (df_analyze_loop): New function avoiding whole-function
29650         postorder computes.
29651         * loop-invariant.c (find_defs): Use df_analyze_loop.
29652         (find_invariants): Adjust.
29653         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29654
29655 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
29656
29657         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29658         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29659
29660 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
29661
29662         * ipa-ref.c (ipa_remove_stmt_references): Fix references
29663         traversal when removing references.
29664
29665 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
29666
29667         PR ipa/59775
29668         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29669
29670 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
29671
29672         PR middle-end/56791
29673         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29674         pushing a reload for an autoinc when we had previously reloaded an
29675         inner part of the address.
29676
29677 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
29678
29679         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29680         field.
29681         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29682         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29683         when not giving up or versioning for alias only because of
29684         loop->safelen.
29685         (vect_analyze_data_ref_dependences): Set to true.
29686         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29687         is a GIMPLE_PHI.
29688         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29689         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29690         to the condition.
29691
29692         PR middle-end/58344
29693         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29694
29695         PR target/59839
29696         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29697         operand 0 predicate for gathers, use a new pseudo as subtarget.
29698
29699 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
29700
29701         PR middle-end/59609
29702         * lra-constraints.c (process_alt_operands): Add printing debug info.
29703         Check absence of input/output reloads for matched operands too.
29704
29705 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
29706
29707         PR rtl-optimization/59835
29708         * ira.c (ira_init_register_move_cost): Increase cost for
29709         impossible modes.
29710
29711 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
29712
29713         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29714
29715 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
29716
29717         PR target/59780
29718         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29719         non-register objects.  Use gen_(high/low)part more consistently.
29720         Fix assertions.
29721
29722 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
29723
29724         PR target/59844
29725         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29726         endian support, remove tests for WORDS_BIG_ENDIAN.
29727         (p8_mfvsrd_3_<mode>): Likewise.
29728         (reload_gpr_from_vsx<mode>): Likewise.
29729         (reload_gpr_from_vsxsf): Likewise.
29730         (p8_mfvsrd_4_disf): Likewise.
29731
29732 2014-01-16  Richard Biener  <rguenther@suse.de>
29733
29734         PR rtl-optimization/46590
29735         * lcm.c (compute_antinout_edge): Use postorder iteration.
29736         (compute_laterin): Use inverted postorder iteration.
29737
29738 2014-01-16  Nick Clifton  <nickc@redhat.com>
29739
29740         PR middle-end/28865
29741         * varasm.c (output_constant): Return the number of bytes actually
29742         emitted.
29743         (output_constructor_array_range): Update the field size with the
29744         number of bytes emitted by output_constant.
29745         (output_constructor_regular_field): Likewise.  Also do not
29746         complain if the total number of bytes emitted is now greater
29747         than the expected fieldpos.
29748         * output.h (output_constant): Update prototype and descriptive comment.
29749
29750 2014-01-16  Marek Polacek  <polacek@redhat.com>
29751
29752         PR middle-end/59827
29753         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29754         it is error_mark_node.
29755
29756 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
29757
29758         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29759         VALID_AVX256_REG_OR_OI_MODE.
29760
29761 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
29762
29763         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29764         current procedure should be profiled.
29765
29766 2014-01-15  Andrew Pinski  <apinski@cavium.com>
29767
29768         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29769         of moving from/to the STACK_REG register class.
29770
29771 2014-01-15  Richard Henderson  <rth@redhat.com>
29772
29773         PR debug/54694
29774         * reginfo.c (global_regs_decl): Globalize.
29775         * rtl.h (global_regs_decl): Declare.
29776         * ira.c (do_reload): Diagnose frame_pointer_needed and it
29777         reserved via global_regs.
29778
29779 2014-01-15  Teresa Johnson  <tejohnson@google.com>
29780
29781         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29782
29783 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
29784
29785         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29786         and vmulosh rather than call gen_vec_widen_smult_*.
29787         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29788         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29789         (vec_widen_smult_even_v16qi): Likewise.
29790         (vec_widen_umult_even_v8hi): Likewise.
29791         (vec_widen_smult_even_v8hi): Likewise.
29792         (vec_widen_umult_odd_v16qi): Likewise.
29793         (vec_widen_smult_odd_v16qi): Likewise.
29794         (vec_widen_umult_odd_v8hi): Likewise.
29795         (vec_widen_smult_odd_v8hi): Likewise.
29796         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29797         vmuloub rather than call gen_vec_widen_umult_*.
29798         (vec_widen_umult_lo_v16qi): Likewise.
29799         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29800         vmulosb rather than call gen_vec_widen_smult_*.
29801         (vec_widen_smult_lo_v16qi): Likewise.
29802         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29803         rather than call gen_vec_widen_umult_*.
29804         (vec_widen_umult_lo_v8hi): Likewise.
29805         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29806         rather than call gen_vec_widen_smult_*.
29807         (vec_widen_smult_lo_v8hi): Likewise.
29808
29809 2014-01-15  Jeff Law  <law@redhat.com>
29810
29811         PR tree-optimization/59747
29812         * ree.c (find_and_remove_re): Properly handle case where a second
29813         eliminated extension requires widening a copy created for elimination
29814         of a prior extension.
29815         (combine_set_extension): Ensure that the number of hard regs needed
29816         for a destination register does not change when we widen it.
29817
29818 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29819
29820         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29821         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29822         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29823         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29824         (avr-*-rtems*): Likewise.
29825         (bfin*-rtems*): Likewise.
29826         (moxie-*-rtems*): Likewise.
29827         (h8300-*-rtems*): Likewise.
29828         (i[34567]86-*-rtems*): Likewise.
29829         (lm32-*-rtems*): Likewise.
29830         (m32r-*-rtems*): Likewise.
29831         (m68k-*-rtems*): Likewise.
29832         (microblaze*-*-rtems*): Likewise.
29833         (mips*-*-rtems*): Likewise.
29834         (powerpc-*-rtems*): Likewise.
29835         (sh-*-rtems*): Likewise.
29836         (sparc-*-rtems*): Likewise.
29837         (sparc64-*-rtems*): Likewise.
29838         (v850-*-rtems*): Likewise.
29839         (m32c-*-rtems*): Likewise.
29840
29841 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
29842
29843         PR rtl-optimization/59511
29844         * ira.c (ira_init_register_move_cost): Use memory costs for some
29845         cases of register move cost calculations.
29846         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29847         instead of BB frequency.
29848         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29849         * lra-assigns.c (find_hard_regno_for): Ditto.
29850
29851 2014-01-15  Richard Biener  <rguenther@suse.de>
29852
29853         PR tree-optimization/59822
29854         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29855         (vectorizable_load): Use it to hoist defs of uses of invariant
29856         loads out of the loop.
29857
29858 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
29859             Kugan Vivekanandarajah  <kuganv@linaro.org>
29860
29861         PR target/59695
29862         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29863         truncation.
29864
29865 2014-01-15  Richard Biener  <rguenther@suse.de>
29866
29867         PR rtl-optimization/59802
29868         * lcm.c (compute_available): Use inverted postorder to seed
29869         the initial worklist.
29870
29871 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29872
29873         PR target/59803
29874         * config/s390/s390.c (s390_preferred_reload_class): Don't return
29875         ADDR_REGS for invalid symrefs in non-PIC code.
29876
29877 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
29878
29879         PR other/58712
29880         * builtins.c (determine_block_size): Initialize *probable_max_size
29881         even if len_rtx is CONST_INT.
29882
29883 2014-01-14  Andrew Pinski  <apinski@cavium.com>
29884
29885         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29886         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29887         (cortexa53_tunings): Likewise.
29888         (aarch64_sched_issue_rate): New function.
29889         (TARGET_SCHED_ISSUE_RATE): Define.
29890
29891 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
29892
29893         * ira-costs.c (find_costs_and_classes): Add missed
29894         ira_init_register_move_cost_if_necessary.
29895
29896 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
29897
29898         PR target/59787
29899         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29900
29901 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
29902
29903         PR target/59794
29904         * config/i386/i386.c (type_natural_mode): Add a bool parameter
29905         to indicate if type is used for function return value.  Warn ABI
29906         change if the vector mode isn't available for function return value.
29907         (ix86_function_arg_advance): Pass false to type_natural_mode.
29908         (ix86_function_arg): Likewise.
29909         (ix86_gimplify_va_arg): Likewise.
29910         (function_arg_32): Don't warn ABI change.
29911         (ix86_function_value): Pass true to type_natural_mode.
29912         (ix86_return_in_memory): Likewise.
29913         (ix86_struct_value_rtx): Removed.
29914         (TARGET_STRUCT_VALUE_RTX): Likewise.
29915
29916 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29917
29918         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29919         converting a conditional jump into a conditional return.
29920
29921 2014-01-14  Richard Biener  <rguenther@suse.de>
29922
29923         PR tree-optimization/58921
29924         PR tree-optimization/59006
29925         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29926         hoisting invariant stmts.
29927         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29928         invariant loads on the preheader edge if possible.
29929
29930 2014-01-14  Joey Ye  <joey.ye@arm.com>
29931
29932         * doc/plugin.texi (Building GCC plugins): Update to C++.
29933
29934 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
29935
29936         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29937         (_mm_rcp28_round_ss): Ditto.
29938         (_mm_rsqrt28_round_sd): Ditto.
29939         (_mm_rsqrt28_round_ss): Ditto.
29940         (_mm_rcp28_sd): Ditto.
29941         (_mm_rcp28_ss): Ditto.
29942         (_mm_rsqrt28_sd): Ditto.
29943         (_mm_rsqrt28_ss): Ditto.
29944         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29945         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29946         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29947         (IX86_BUILTIN_RCP28SD): Ditto.
29948         (IX86_BUILTIN_RCP28SS): Ditto.
29949         (IX86_BUILTIN_RSQRT28SD): Ditto.
29950         (IX86_BUILTIN_RSQRT28SS): Ditto.
29951         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29952         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29953         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29954         (ix86_expand_special_args_builtin): Expand new FTYPE.
29955         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29956         (srcp14<mode>): Make insn unary.
29957         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29958         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29959         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29960         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29961         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29962         Fix rounding: make it SAE only.
29963         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29964         Ditto.
29965         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29966         Ditto.
29967         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29968         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29969         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29970         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29971         (round_saeonly_mask_scalar_operand4): Ditto.
29972         (round_saeonly_mask_scalar_op3): Ditto.
29973         (round_saeonly_mask_scalar_op4): Ditto.
29974
29975 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29976
29977         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29978         Implement -maltivec=be for vec_insert and vec_extract.
29979
29980 2014-01-10  DJ Delorie  <dj@redhat.com>
29981
29982         * config/msp430/msp430.md (call_internal): Don't allow memory
29983         references with SP as the base register.
29984         (call_value_internal): Likewise.
29985         * config/msp430/constraints.md (Yc): New.  For memory references
29986         that don't use SP as a base register.
29987
29988         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29989         "an integer without a # prefix"
29990         * config/msp430/msp430.md (epilogue_helper): Use it.
29991
29992 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
29993
29994         PR target/59617
29995         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29996         AVX512F gather builtins.
29997         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29998         on gather decls with INTEGER_TYPE masktype.
29999         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30000         directly into the builtin rather than hoisting it before loop.
30001
30002         PR tree-optimization/59387
30003         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30004         (scev_const_prop): If folded_casts and type has undefined overflow,
30005         use force_gimple_operand instead of force_gimple_operand_gsi and
30006         for each added stmt if it is assign with
30007         arith_code_with_undefined_signed_overflow, call
30008         rewrite_to_defined_overflow.
30009         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30010         gimple-fold.h instead.
30011         (arith_code_with_undefined_signed_overflow,
30012         rewrite_to_defined_overflow): Moved to ...
30013         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30014         rewrite_to_defined_overflow): ... here.  No longer static.
30015         Include gimplify-me.h.
30016         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30017         rewrite_to_defined_overflow): New prototypes.
30018
30019 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30020
30021         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30022
30023 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
30024
30025         * builtins.c (get_object_alignment_2): Minor tweak.
30026         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30027
30028 2014-01-13  Christian Bruel  <christian.bruel@st.com>
30029
30030         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30031         optimized non constant lengths.
30032
30033 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30034
30035         PR libgomp/59194
30036         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30037         load as __atomic_load_N if possible.
30038
30039 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30040
30041         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30042         target parameter.
30043         (rs6000_expand_builtin): Adjust call.
30044
30045 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30046
30047         PR target/58115
30048         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30049         * config/rs6000/rs6000.c: Include target-globals.h.
30050         (rs6000_set_current_function): Instead of doing target_reinit
30051         unconditionally, use save_target_globals_default_opts and
30052         restore_target_globals.
30053
30054         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30055         FPSCR.
30056         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30057         (rs6000_expand_builtin): Handle mffs and mtfsf.
30058         (rs6000_init_builtins): Define mffs and mtfsf.
30059         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30060         (rs6000_mffs): New pattern.
30061         (rs6000_mtfsf): New pattern.
30062
30063 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
30064
30065         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30066         Start narrowing with START.  Apply candidate-use pair
30067         and check overall cost in narrowing.
30068         (iv_ca_prune): Pass new argument.
30069
30070 2014-01-10  Jeff Law  <law@redhat.com>
30071
30072         PR middle-end/59743
30073         * ree.c (combine_reaching_defs): Ensure the defining statement
30074         occurs before the extension when optimizing extensions with
30075         different source and destination hard registers.
30076
30077 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
30078
30079         PR ipa/58585
30080         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30081         vtables into the type inheritance graph.
30082
30083 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30084
30085         PR rtl-optimization/59754
30086         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30087         modes in the REGNO != REGNO case.
30088
30089 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30090
30091         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30092
30093 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30094
30095         PR tree-optimization/59745
30096         * tree-predcom.c (tree_predictive_commoning_loop): Call
30097         free_affine_expand_cache if giving up because components is NULL.
30098
30099         * target-globals.c (save_target_globals): Allocate < 4KB structs using
30100         GC in payload of target_globals struct instead of allocating them on
30101         the heap and the larger structs separately using GC.
30102         * target-globals.h (struct target_globals): Make regs, hard_regs,
30103         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30104         of GTY((skip)) and change type to void *.
30105         (reset_target_globals): Cast loads from those fields to corresponding
30106         types.
30107
30108 2014-01-10  Steve Ellcey  <sellcey@mips.com>
30109
30110         PR plugins/59335
30111         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30112         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30113         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30114
30115 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
30116
30117         PR target/59744
30118         * aarch64-modes.def (CC_Zmode): New flags mode.
30119         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30120         represents an equality.
30121         (aarch64_get_condition_code): Handle CC_Zmode.
30122         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30123
30124 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30125
30126         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30127         extraction in good case.
30128
30129 2014-01-10  Richard Biener  <rguenther@suse.de>
30130
30131         PR tree-optimization/59374
30132         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30133         checking after SLP discovery.  Mark stmts not participating
30134         in any SLP instance properly.
30135
30136 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30137
30138         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30139         when handling a SET rtx.
30140
30141 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30142
30143         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30144         (cortex-a57): Likewise.
30145         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30146
30147 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30148
30149         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30150         non-iwmmxt builtins.
30151
30152 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
30153
30154         PR ipa/58252
30155         PR ipa/59226
30156         * ipa-devirt.c record_target_from_binfo): Take as argument
30157         stack of binfos and lookup matching one for virtual inheritance.
30158         (possible_polymorphic_call_targets_1): Update.
30159
30160 2014-01-10  Huacai Chen  <chenhc@lemote.com>
30161
30162         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30163         kernel strings for Loongson-2E/2F/3A.
30164
30165 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30166
30167         PR middle-end/59670
30168         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30169         is_gimple_call before calling gimple_call_internal_p.
30170
30171 2014-01-09  Steve Ellcey  <sellcey@mips.com>
30172
30173         * Makefile.in (TREE_FLOW_H): Remove.
30174         (TREE_SSA_H): Add file names from tree-flow.h.
30175         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30176         * tree.h: Remove tree-flow.h reference.
30177         * hash-table.h: Remove tree-flow.h reference.
30178         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30179         reference with tree-ssa-loop.h.
30180
30181 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30182
30183         * doc/invoke.texi: Add -maltivec={be,le} options, and document
30184         default element-order behavior for -maltivec.
30185         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30186         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30187         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30188         when targeting big endian, at least for now.
30189         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30190
30191 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30192
30193         PR middle-end/47735
30194         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30195         var satisfies use_register_for_decl, just take into account type
30196         alignment, rather than decl alignment.
30197
30198         PR tree-optimization/59622
30199         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
30200         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30201         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30202         Don't devirtualize for inplace at all.  For targets.length () == 1,
30203         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30204
30205 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
30206
30207         * config/i386/i386.md (cpu): Remove the unused btver1.
30208
30209 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
30210
30211         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30212
30213 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30214
30215         PR target/58115
30216         * tree-core.h (struct target_globals): New forward declaration.
30217         (struct tree_target_option): Add globals field.
30218         * tree.h (TREE_TARGET_GLOBALS): Define.
30219         (prepare_target_option_nodes_for_pch): New prototype.
30220         * target-globals.h (struct target_globals): Define even if
30221         !SWITCHABLE_TARGET.
30222         * tree.c (prepare_target_option_node_for_pch,
30223         prepare_target_option_nodes_for_pch): New functions.
30224         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30225         * config/i386/i386.c: Include target-globals.h.
30226         (ix86_set_current_function): Instead of doing target_reinit
30227         unconditionally, use save_target_globals_default_opts and
30228         restore_target_globals.
30229
30230 2014-01-09  Richard Biener  <rguenther@suse.de>
30231
30232         PR tree-optimization/59715
30233         * tree-cfg.h (split_critical_edges): Declare.
30234         * tree-cfg.c (split_critical_edges): Export.
30235         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30236
30237 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30238
30239         * cfgexpand.c (expand_stack_vars): Optionally disable
30240         asan stack protection.
30241         (expand_used_vars): Likewise.
30242         (partition_stack_vars): Likewise.
30243         * asan.c (asan_emit_stack_protection): Optionally disable
30244         after return stack usage.
30245         (instrument_derefs): Optionally disable memory access instrumentation.
30246         (instrument_builtin_call): Likewise.
30247         (instrument_strlen_call): Likewise.
30248         (asan_protect_global): Optionally disable global variables protection.
30249         * doc/invoke.texi: Added doc for new options.
30250         * params.def: Added new options.
30251         * params.h: Likewise.
30252
30253 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30254
30255         PR rtl-optimization/59724
30256         * ifcvt.c (cond_exec_process_if_block): Don't call
30257         flow_find_head_matching_sequence with 0 longest_match.
30258         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30259         non-active insns if !stop_after.
30260         (try_head_merge_bb): Revert 2014-01-07 changes.
30261
30262 2014-01-08  Jeff Law  <law@redhat.com>
30263
30264         * ree.c (get_sub_rtx): New function, extracted from...
30265         (merge_def_and_ext): Here.
30266         (combine_reaching_defs): Use get_sub_rtx.
30267
30268 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
30269
30270         * cgraph.h (varpool_variable_node): Do not choke on null node.
30271
30272 2014-01-08  Catherine Moore  <clm@codesourcery.com>
30273
30274         * config/mips/mips.md (simple_return): Attempt to use JRC
30275         for microMIPS.
30276         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30277
30278 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
30279
30280         PR rtl-optimization/59137
30281         * reorg.c (steal_delay_list_from_target): Call update_block for
30282         elided insns.
30283         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30284
30285 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30286
30287         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30288         two duplicate entries.
30289
30290 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
30291
30292         Revert:
30293         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
30294
30295         * config/mips/mips.c (mips_truncated_op_cost): New function.
30296         (mips_rtx_costs): Adjust test for BADDU.
30297         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30298
30299         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
30300
30301         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30302         (*baddu_si): ...this new pattern.
30303
30304 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
30305
30306         PR ipa/59722
30307         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30308
30309 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30310
30311         PR middle-end/57748
30312         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30313         inner_reference_p.
30314         (expand_expr, expand_normal): Adjust.
30315         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30316         inner_reference_p. Use inner_reference_p to expand inner references.
30317         (store_expr): Adjust.
30318         * cfgexpand.c (expand_call_stmt): Adjust.
30319
30320 2014-01-08  Rong Xu  <xur@google.com>
30321
30322         * gcov-io.c (gcov_var): Move from gcov-io.h.
30323         (gcov_position): Ditto.
30324         (gcov_is_error): Ditto.
30325         (gcov_rewrite): Ditto.
30326         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30327         only part to libgcc/libgcov.h.
30328
30329 2014-01-08  Marek Polacek  <polacek@redhat.com>
30330
30331         PR middle-end/59669
30332         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30333
30334 2014-01-08  Marek Polacek  <polacek@redhat.com>
30335
30336         PR sanitizer/59667
30337         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30338
30339 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
30340
30341         PR rtl-optimization/59649
30342         * stor-layout.c (get_mode_bounds): For BImode return
30343         0 and STORE_FLAG_VALUE.
30344
30345 2014-01-08  Richard Biener  <rguenther@suse.de>
30346
30347         PR middle-end/59630
30348         * gimple.h (is_gimple_builtin_call): Remove.
30349         (gimple_builtin_call_types_compatible_p): New.
30350         (gimple_call_builtin_p): New overload.
30351         * gimple.c (is_gimple_builtin_call): Remove.
30352         (validate_call): Rename to ...
30353         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
30354         check return types.
30355         (validate_type): New static function.
30356         (gimple_call_builtin_p): New overload and adjust.
30357         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30358         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
30359         (gimple_fold_stmt_to_constant_1): Likewise.
30360         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30361
30362 2014-01-08  Richard Biener  <rguenther@suse.de>
30363
30364         PR middle-end/59471
30365         * gimplify.c (gimplify_expr): Gimplify register-register type
30366         VIEW_CONVERT_EXPRs to separate stmts.
30367
30368 2014-01-07  Jeff Law  <law@redhat.com>
30369
30370         PR middle-end/53623
30371         * ree.c (combine_set_extension): Handle case where source
30372         and destination registers in an extension insn are different.
30373         (combine_reaching_defs): Allow source and destination registers
30374         in extension to be different under limited circumstances.
30375         (add_removable_extension): Remove restriction that the
30376         source and destination registers in the extension are the same.
30377         (find_and_remove_re): Emit a copy from the extension's
30378         destination to its source after the defining insn if
30379         the source and destination registers are different.
30380
30381         PR middle-end/59285
30382         * ifcvt.c (merge_if_block): If we are merging a block with more than
30383         one successor with a block with no successors, remove any BARRIER
30384         after the second block.
30385
30386 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
30387
30388         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30389
30390 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
30391
30392         PR target/59652
30393         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30394         for 14-bit register offsets when INT14_OK_STRICT is false.
30395
30396 2014-01-07  Roland Stigge  <stigge@antcom.de>
30397             Michael Meissner  <meissner@linux.vnet.ibm.com>
30398
30399         PR 57386/target
30400         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30401         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
30402
30403 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
30404
30405         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30406         -mcpu.
30407
30408 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
30409
30410         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30411         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30412         rtx is const0_rtx or not.
30413
30414 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
30415
30416         PR target/58115
30417         * target-globals.c (save_target_globals): Remove this_fn_optab
30418         handling.
30419         * toplev.c: Include optabs.h.
30420         (target_reinit): Temporarily restore the global options if another
30421         set of options are in force.
30422
30423 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
30424
30425         PR rtl-optimization/58668
30426         * cfgcleanup.c (flow_find_cross_jump): Don't count
30427         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
30428         to determine what is counted.
30429         (flow_find_head_matching_sequence): Use active_insn_p to determine
30430         what is counted.
30431         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30432         counting change.
30433         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30434         determine what is counted.
30435
30436         PR tree-optimization/59643
30437         * tree-predcom.c (split_data_refs_to_components): If one dr is
30438         read and one write, determine_offset fails and the write isn't
30439         in the bad component, just put the read into the bad component.
30440
30441 2014-01-07  Mike Stump  <mikestump@comcast.net>
30442             Jakub Jelinek  <jakub@redhat.com>
30443
30444         PR pch/59436
30445         * tree-core.h (struct tree_optimization_option): Change optabs
30446         type from unsigned char * to void *.
30447         * optabs.c (init_tree_optimization_optabs): Adjust
30448         TREE_OPTIMIZATION_OPTABS initialization.
30449
30450 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
30451
30452         PR target/59644
30453         * config/i386/i386.h (struct machine_function): Add
30454         no_drap_save_restore field.
30455         * config/i386/i386.c (ix86_save_reg): Use
30456         !cfun->machine->no_drap_save_restore instead of
30457         crtl->stack_realign_needed.
30458         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30459         this function clears frame_pointer_needed.  Set
30460         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30461         and DRAP reg is needed.
30462
30463 2014-01-06  Marek Polacek  <polacek@redhat.com>
30464
30465         PR c/57773
30466         * doc/implement-c.texi: Mention that other integer types are
30467         permitted as bit-field types in strictly conforming mode.
30468
30469 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
30470
30471         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30472         is newly allocated.
30473
30474 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
30475
30476         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30477
30478 2014-01-06  Martin Jambor  <mjambor@suse.cz>
30479
30480         PR ipa/59008
30481         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30482         to int.
30483         * ipa-prop.c (ipa_print_node_params): Fix indentation.
30484
30485 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
30486
30487         PR debug/59350
30488         PR debug/59510
30489         * var-tracking.c (add_stores): Preserve the value of the source even if
30490         we don't record the store.
30491
30492 2014-01-06  Terry Guo  <terry.guo@arm.com>
30493
30494         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30495
30496 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
30497
30498         PR bootstrap/59541
30499         * config/darwin.c (darwin_function_section): Adjust return values to
30500         correspond to optimisation changes made in r206070.
30501
30502 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
30503
30504         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30505         from prefetch_block tune setting.
30506         (nocona_cost): Correct size of prefetch block to 64.
30507
30508 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30509
30510         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30511         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30512         used to save the static chain register in the computation of the offset
30513         from which the FP registers need to be restored.
30514
30515 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
30516
30517         PR tree-optimization/59519
30518         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30519         ICE if get_current_def (current_new_name) is already non-NULL, as long
30520         as it is a phi result of some other phi in *new_exit_bb that has
30521         the same argument.
30522
30523         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30524         or vmovdqu* for misaligned_operand.
30525         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30526         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30527         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30528         aligned_mem for AVX512F masked aligned load and store builtins and for
30529         non-temporal moves.
30530
30531 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
30532
30533         PR tree-optimization/59651
30534         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30535         Address range for negative step should be added by TYPE_SIZE_UNIT.
30536
30537 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
30538
30539         * config/m68k/m68k.c (handle_move_double): Handle pushes with
30540         overlapping registers also for registers other than the stack pointer.
30541
30542 2014-01-03  Marek Polacek  <polacek@redhat.com>
30543
30544         PR other/59661
30545         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30546         __builtin_FILE.
30547
30548 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
30549
30550         PR target/59625
30551         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30552         asm goto as jump.
30553
30554         * config/i386/i386.md (MODE_SIZE): New mode attribute.
30555         (push splitter): Use <P:MODE_SIZE> instead of
30556         GET_MODE_SIZE (<P:MODE>mode).
30557         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30558         (mov -1, reg peephole2): Likewise.
30559         * config/i386/sse.md (*mov<mode>_internal,
30560         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30561         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30562         *<code><mode>3, *andnot<mode>3<mask_name>,
30563         <mask_codefor><code><mode>3<mask_name>): Likewise.
30564         * config/i386/subst.md (mask_mode512bit_condition,
30565         sd_mask_mode512bit_condition): Likewise.
30566
30567 2014-01-02  Xinliang David Li  <davidxl@google.com>
30568
30569         PR tree-optimization/59303
30570         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30571         (dump_predicates): Better output format.
30572         (pred_equal_p): New function.
30573         (is_neq_relop_p): Ditto.
30574         (is_neq_zero_form_p): Ditto.
30575         (pred_expr_equal_p): Ditto.
30576         (pred_neg_p): Ditto.
30577         (simplify_pred): Ditto.
30578         (simplify_preds_2): Ditto.
30579         (simplify_preds_3): Ditto.
30580         (simplify_preds_4): Ditto.
30581         (simplify_preds): Ditto.
30582         (push_pred): Ditto.
30583         (push_to_worklist): Ditto.
30584         (get_pred_info_from_cmp): Ditto.
30585         (is_degenerated_phi): Ditto.
30586         (normalize_one_pred_1): Ditto.
30587         (normalize_one_pred): Ditto.
30588         (normalize_one_pred_chain): Ditto.
30589         (normalize_preds): Ditto.
30590         (normalize_cond_1): Remove function.
30591         (normalize_cond): Ditto.
30592         (is_gcond_subset_of): Ditto.
30593         (is_subset_of_any): Ditto.
30594         (is_or_set_subset_of): Ditto.
30595         (is_and_set_subset_of): Ditto.
30596         (is_norm_cond_subset_of): Ditto.
30597         (pred_chain_length_cmp): Ditto.
30598         (convert_control_dep_chain_into_preds): Type change.
30599         (find_predicates): Ditto.
30600         (find_def_preds): Ditto.
30601         (destroy_predicates_vecs): Ditto.
30602         (find_matching_predicates_in_rest_chains): Ditto.
30603         (use_pred_not_overlap_with_undef_path_pred): Ditto.
30604         (is_pred_expr_subset): Ditto.
30605         (is_pred_chain_subset_of): Ditto.
30606         (is_included_in): Ditto.
30607         (is_superset_of): Ditto.
30608
30609 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30610
30611         Update copyright years.
30612
30613 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30614
30615         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30616         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30617         config/arc/arc.md, config/arc/arc.opt,
30618         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30619         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30620         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30621         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30622         config/linux-protos.h, config/linux.c, config/winnt-c.c,
30623         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30624         vtable-verify.c, vtable-verify.h: Use the standard form for the
30625         copyright notice.
30626
30627 2014-01-02  Tobias Burnus  <burnus@net-b.de>
30628
30629         * gcc.c (process_command): Update copyright notice dates.
30630         * gcov-dump.c: Ditto.
30631         * gcov.c: Ditto.
30632         * doc/cpp.texi: Bump @copying's copyright year.
30633         * doc/cppinternals.texi: Ditto.
30634         * doc/gcc.texi: Ditto.
30635         * doc/gccint.texi: Ditto.
30636         * doc/gcov.texi: Ditto.
30637         * doc/install.texi: Ditto.
30638         * doc/invoke.texi: Ditto.
30639
30640 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30641
30642         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30643
30644 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
30645
30646         * config/i386/sse.md (*mov<mode>_internal): Guard
30647         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30648
30649         PR rtl-optimization/59647
30650         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30651         new_rtx into UNSIGNED_FLOAT rtxes.
30652 \f
30653 Copyright (C) 2014 Free Software Foundation, Inc.
30654
30655 Copying and distribution of this file, with or without modification,
30656 are permitted in any medium without royalty provided the copyright
30657 notice and this notice are preserved.